Expand Defs to encompass all the possibly-call-clobbered regs.
[oota-llvm.git] / projects / Stacker / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for [Stacker] [1.0].
4 #
5 # Report bugs to <rspencer@x10sys.com>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='[Stacker]'
425 PACKAGE_TARNAME='--stacker--'
426 PACKAGE_VERSION='[1.0]'
427 PACKAGE_STRING='[Stacker] [1.0]'
428 PACKAGE_BUGREPORT='rspencer@x10sys.com'
429
430 ac_unique_file="Makefile.common.in"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SHLIBEXT LLVM_SRC LLVM_OBJ LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [Stacker] [1.0] to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [Stacker] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037   --with-pic              try to use only PIC/non-PIC objects [default=use
1038                           both]
1039   --with-tags[=TAGS]
1040                           include additional configurations [automatic]
1041   --with-llvmsrc          Location of LLVM Source Code
1042   --with-llvmobj          Location of LLVM Object Code
1043
1044 Some influential environment variables:
1045   CC          C compiler command
1046   CFLAGS      C compiler flags
1047   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1048               nonstandard directory <lib dir>
1049   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050               headers in a nonstandard directory <include dir>
1051   CPP         C preprocessor
1052   CXX         C++ compiler command
1053   CXXFLAGS    C++ compiler flags
1054   CXXCPP      C++ preprocessor
1055   F77         Fortran 77 compiler command
1056   FFLAGS      Fortran 77 compiler flags
1057
1058 Use these variables to override the choices made by `configure' or to help
1059 it to find libraries and programs with nonstandard names/locations.
1060
1061 Report bugs to <rspencer@x10sys.com>.
1062 _ACEOF
1063 fi
1064
1065 if test "$ac_init_help" = "recursive"; then
1066   # If there are subdirs, report their specific --help.
1067   ac_popdir=`pwd`
1068   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069     test -d $ac_dir || continue
1070     ac_builddir=.
1071
1072 if test "$ac_dir" != .; then
1073   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074   # A "../" for each directory in $ac_dir_suffix.
1075   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077   ac_dir_suffix= ac_top_builddir=
1078 fi
1079
1080 case $srcdir in
1081   .)  # No --srcdir option.  We are building in place.
1082     ac_srcdir=.
1083     if test -z "$ac_top_builddir"; then
1084        ac_top_srcdir=.
1085     else
1086        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087     fi ;;
1088   [\\/]* | ?:[\\/]* )  # Absolute path.
1089     ac_srcdir=$srcdir$ac_dir_suffix;
1090     ac_top_srcdir=$srcdir ;;
1091   *) # Relative path.
1092     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1095
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1100 *)
1101   case "$ac_dir" in
1102   .) ac_abs_builddir=`pwd`;;
1103   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105   esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 *)
1110   case ${ac_top_builddir}. in
1111   .) ac_abs_top_builddir=$ac_abs_builddir;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114   esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1118 *)
1119   case $ac_srcdir in
1120   .) ac_abs_srcdir=$ac_abs_builddir;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 *)
1128   case $ac_top_srcdir in
1129   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132   esac;;
1133 esac
1134
1135     cd $ac_dir
1136     # Check for guested configure; otherwise get Cygnus style configure.
1137     if test -f $ac_srcdir/configure.gnu; then
1138       echo
1139       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1140     elif test -f $ac_srcdir/configure; then
1141       echo
1142       $SHELL $ac_srcdir/configure  --help=recursive
1143     elif test -f $ac_srcdir/configure.ac ||
1144            test -f $ac_srcdir/configure.in; then
1145       echo
1146       $ac_configure --help
1147     else
1148       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1149     fi
1150     cd $ac_popdir
1151   done
1152 fi
1153
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156   cat <<\_ACEOF
1157 [Stacker] configure [1.0]
1158 generated by GNU Autoconf 2.59
1159
1160 Copyright (C) 2003 Free Software Foundation, Inc.
1161 This configure script is free software; the Free Software Foundation
1162 gives unlimited permission to copy, distribute and modify it.
1163 _ACEOF
1164   exit 0
1165 fi
1166 exec 5>config.log
1167 cat >&5 <<_ACEOF
1168 This file contains any messages produced by compilers while
1169 running configure, to aid debugging if configure makes a mistake.
1170
1171 It was created by [Stacker] $as_me [1.0], which was
1172 generated by GNU Autoconf 2.59.  Invocation command line was
1173
1174   $ $0 $@
1175
1176 _ACEOF
1177 {
1178 cat <<_ASUNAME
1179 ## --------- ##
1180 ## Platform. ##
1181 ## --------- ##
1182
1183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188
1189 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1191
1192 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1193 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1194 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1196 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1197 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1198 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1199
1200 _ASUNAME
1201
1202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203 for as_dir in $PATH
1204 do
1205   IFS=$as_save_IFS
1206   test -z "$as_dir" && as_dir=.
1207   echo "PATH: $as_dir"
1208 done
1209
1210 } >&5
1211
1212 cat >&5 <<_ACEOF
1213
1214
1215 ## ----------- ##
1216 ## Core tests. ##
1217 ## ----------- ##
1218
1219 _ACEOF
1220
1221
1222 # Keep a trace of the command line.
1223 # Strip out --no-create and --no-recursion so they do not pile up.
1224 # Strip out --silent because we don't want to record it for future runs.
1225 # Also quote any args containing shell meta-characters.
1226 # Make two passes to allow for proper duplicate-argument suppression.
1227 ac_configure_args=
1228 ac_configure_args0=
1229 ac_configure_args1=
1230 ac_sep=
1231 ac_must_keep_next=false
1232 for ac_pass in 1 2
1233 do
1234   for ac_arg
1235   do
1236     case $ac_arg in
1237     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239     | -silent | --silent | --silen | --sile | --sil)
1240       continue ;;
1241     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243     esac
1244     case $ac_pass in
1245     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246     2)
1247       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248       if test $ac_must_keep_next = true; then
1249         ac_must_keep_next=false # Got value, back to normal.
1250       else
1251         case $ac_arg in
1252           *=* | --config-cache | -C | -disable-* | --disable-* \
1253           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255           | -with-* | --with-* | -without-* | --without-* | --x)
1256             case "$ac_configure_args0 " in
1257               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258             esac
1259             ;;
1260           -* ) ac_must_keep_next=true ;;
1261         esac
1262       fi
1263       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264       # Get rid of the leading space.
1265       ac_sep=" "
1266       ;;
1267     esac
1268   done
1269 done
1270 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272
1273 # When interrupted or exit'd, cleanup temporary files, and complete
1274 # config.log.  We remove comments because anyway the quotes in there
1275 # would cause problems or look ugly.
1276 # WARNING: Be sure not to use single quotes in there, as some shells,
1277 # such as our DU 5.0 friend, will then `close' the trap.
1278 trap 'exit_status=$?
1279   # Save into config.log some information that might help in debugging.
1280   {
1281     echo
1282
1283     cat <<\_ASBOX
1284 ## ---------------- ##
1285 ## Cache variables. ##
1286 ## ---------------- ##
1287 _ASBOX
1288     echo
1289     # The following way of writing the cache mishandles newlines in values,
1290 {
1291   (set) 2>&1 |
1292     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293     *ac_space=\ *)
1294       sed -n \
1295         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297       ;;
1298     *)
1299       sed -n \
1300         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301       ;;
1302     esac;
1303 }
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ----------------- ##
1308 ## Output variables. ##
1309 ## ----------------- ##
1310 _ASBOX
1311     echo
1312     for ac_var in $ac_subst_vars
1313     do
1314       eval ac_val=$`echo $ac_var`
1315       echo "$ac_var='"'"'$ac_val'"'"'"
1316     done | sort
1317     echo
1318
1319     if test -n "$ac_subst_files"; then
1320       cat <<\_ASBOX
1321 ## ------------- ##
1322 ## Output files. ##
1323 ## ------------- ##
1324 _ASBOX
1325       echo
1326       for ac_var in $ac_subst_files
1327       do
1328         eval ac_val=$`echo $ac_var`
1329         echo "$ac_var='"'"'$ac_val'"'"'"
1330       done | sort
1331       echo
1332     fi
1333
1334     if test -s confdefs.h; then
1335       cat <<\_ASBOX
1336 ## ----------- ##
1337 ## confdefs.h. ##
1338 ## ----------- ##
1339 _ASBOX
1340       echo
1341       sed "/^$/d" confdefs.h | sort
1342       echo
1343     fi
1344     test "$ac_signal" != 0 &&
1345       echo "$as_me: caught signal $ac_signal"
1346     echo "$as_me: exit $exit_status"
1347   } >&5
1348   rm -f core *.core &&
1349   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350     exit $exit_status
1351      ' 0
1352 for ac_signal in 1 2 13 15; do
1353   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354 done
1355 ac_signal=0
1356
1357 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1358 rm -rf conftest* confdefs.h
1359 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360 echo >confdefs.h
1361
1362 # Predefined preprocessor variables.
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_NAME "$PACKAGE_NAME"
1366 _ACEOF
1367
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_STRING "$PACKAGE_STRING"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386 _ACEOF
1387
1388
1389 # Let the site file select an alternate cache file if it wants to.
1390 # Prefer explicitly selected file to automatically selected ones.
1391 if test -z "$CONFIG_SITE"; then
1392   if test "x$prefix" != xNONE; then
1393     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394   else
1395     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396   fi
1397 fi
1398 for ac_site_file in $CONFIG_SITE; do
1399   if test -r "$ac_site_file"; then
1400     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401 echo "$as_me: loading site script $ac_site_file" >&6;}
1402     sed 's/^/| /' "$ac_site_file" >&5
1403     . "$ac_site_file"
1404   fi
1405 done
1406
1407 if test -r "$cache_file"; then
1408   # Some versions of bash will fail to source /dev/null (special
1409   # files actually), so we avoid doing that.
1410   if test -f "$cache_file"; then
1411     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412 echo "$as_me: loading cache $cache_file" >&6;}
1413     case $cache_file in
1414       [\\/]* | ?:[\\/]* ) . $cache_file;;
1415       *)                      . ./$cache_file;;
1416     esac
1417   fi
1418 else
1419   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420 echo "$as_me: creating cache $cache_file" >&6;}
1421   >$cache_file
1422 fi
1423
1424 # Check that the precious variables saved in the cache have kept the same
1425 # value.
1426 ac_cache_corrupted=false
1427 for ac_var in `(set) 2>&1 |
1428                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430   eval ac_new_set=\$ac_env_${ac_var}_set
1431   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432   eval ac_new_val="\$ac_env_${ac_var}_value"
1433   case $ac_old_set,$ac_new_set in
1434     set,)
1435       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437       ac_cache_corrupted=: ;;
1438     ,set)
1439       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441       ac_cache_corrupted=: ;;
1442     ,);;
1443     *)
1444       if test "x$ac_old_val" != "x$ac_new_val"; then
1445         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1448 echo "$as_me:   former value:  $ac_old_val" >&2;}
1449         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1450 echo "$as_me:   current value: $ac_new_val" >&2;}
1451         ac_cache_corrupted=:
1452       fi;;
1453   esac
1454   # Pass precious variables to config.status.
1455   if test "$ac_new_set" = set; then
1456     case $ac_new_val in
1457     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459     *) ac_arg=$ac_var=$ac_new_val ;;
1460     esac
1461     case " $ac_configure_args " in
1462       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1463       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464     esac
1465   fi
1466 done
1467 if $ac_cache_corrupted; then
1468   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472    { (exit 1); exit 1; }; }
1473 fi
1474
1475 ac_ext=c
1476 ac_cpp='$CPP $CPPFLAGS'
1477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508 ac_aux_dir=
1509 for ac_dir in autoconf $srcdir/autoconf; do
1510   if test -f $ac_dir/install-sh; then
1511     ac_aux_dir=$ac_dir
1512     ac_install_sh="$ac_aux_dir/install-sh -c"
1513     break
1514   elif test -f $ac_dir/install.sh; then
1515     ac_aux_dir=$ac_dir
1516     ac_install_sh="$ac_aux_dir/install.sh -c"
1517     break
1518   elif test -f $ac_dir/shtool; then
1519     ac_aux_dir=$ac_dir
1520     ac_install_sh="$ac_aux_dir/shtool install -c"
1521     break
1522   fi
1523 done
1524 if test -z "$ac_aux_dir"; then
1525   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1526 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533
1534
1535
1536
1537           ac_config_commands="$ac_config_commands Makefile"
1538
1539
1540           ac_config_commands="$ac_config_commands lib/Makefile"
1541
1542
1543           ac_config_commands="$ac_config_commands lib/compiler/Makefile"
1544
1545
1546           ac_config_commands="$ac_config_commands lib/runtime/Makefile"
1547
1548
1549           ac_config_commands="$ac_config_commands test/Makefile"
1550
1551
1552           ac_config_commands="$ac_config_commands tools/Makefile"
1553
1554
1555           ac_config_commands="$ac_config_commands tools/stkrc/Makefile"
1556
1557
1558
1559
1560 # Check whether --enable-shared or --disable-shared was given.
1561 if test "${enable_shared+set}" = set; then
1562   enableval="$enable_shared"
1563   p=${PACKAGE-default}
1564     case $enableval in
1565     yes) enable_shared=yes ;;
1566     no) enable_shared=no ;;
1567     *)
1568       enable_shared=no
1569       # Look at the argument we got.  We use all the common list separators.
1570       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1571       for pkg in $enableval; do
1572         IFS="$lt_save_ifs"
1573         if test "X$pkg" = "X$p"; then
1574           enable_shared=yes
1575         fi
1576       done
1577       IFS="$lt_save_ifs"
1578       ;;
1579     esac
1580 else
1581   enable_shared=yes
1582 fi;
1583
1584 # Check whether --enable-static or --disable-static was given.
1585 if test "${enable_static+set}" = set; then
1586   enableval="$enable_static"
1587   p=${PACKAGE-default}
1588     case $enableval in
1589     yes) enable_static=yes ;;
1590     no) enable_static=no ;;
1591     *)
1592      enable_static=no
1593       # Look at the argument we got.  We use all the common list separators.
1594       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1595       for pkg in $enableval; do
1596         IFS="$lt_save_ifs"
1597         if test "X$pkg" = "X$p"; then
1598           enable_static=yes
1599         fi
1600       done
1601       IFS="$lt_save_ifs"
1602       ;;
1603     esac
1604 else
1605   enable_static=yes
1606 fi;
1607
1608 # Check whether --enable-fast-install or --disable-fast-install was given.
1609 if test "${enable_fast_install+set}" = set; then
1610   enableval="$enable_fast_install"
1611   p=${PACKAGE-default}
1612     case $enableval in
1613     yes) enable_fast_install=yes ;;
1614     no) enable_fast_install=no ;;
1615     *)
1616       enable_fast_install=no
1617       # Look at the argument we got.  We use all the common list separators.
1618       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1619       for pkg in $enableval; do
1620         IFS="$lt_save_ifs"
1621         if test "X$pkg" = "X$p"; then
1622           enable_fast_install=yes
1623         fi
1624       done
1625       IFS="$lt_save_ifs"
1626       ;;
1627     esac
1628 else
1629   enable_fast_install=yes
1630 fi;
1631
1632 # Make sure we can run config.sub.
1633 $ac_config_sub sun4 >/dev/null 2>&1 ||
1634   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1635 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 echo "$as_me:$LINENO: checking build system type" >&5
1639 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1640 if test "${ac_cv_build+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   ac_cv_build_alias=$build_alias
1644 test -z "$ac_cv_build_alias" &&
1645   ac_cv_build_alias=`$ac_config_guess`
1646 test -z "$ac_cv_build_alias" &&
1647   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1648 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1649    { (exit 1); exit 1; }; }
1650 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1651   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1653    { (exit 1); exit 1; }; }
1654
1655 fi
1656 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1657 echo "${ECHO_T}$ac_cv_build" >&6
1658 build=$ac_cv_build
1659 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662
1663
1664 echo "$as_me:$LINENO: checking host system type" >&5
1665 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1666 if test "${ac_cv_host+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   ac_cv_host_alias=$host_alias
1670 test -z "$ac_cv_host_alias" &&
1671   ac_cv_host_alias=$ac_cv_build_alias
1672 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1673   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1675    { (exit 1); exit 1; }; }
1676
1677 fi
1678 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1679 echo "${ECHO_T}$ac_cv_host" >&6
1680 host=$ac_cv_host
1681 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684
1685
1686 ac_ext=c
1687 ac_cpp='$CPP $CPPFLAGS'
1688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1691 if test -n "$ac_tool_prefix"; then
1692   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   if test -n "$CC"; then
1700   ac_cv_prog_CC="$CC" # Let the user override the test.
1701 else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705   IFS=$as_save_IFS
1706   test -z "$as_dir" && as_dir=.
1707   for ac_exec_ext in '' $ac_executable_extensions; do
1708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 fi
1717 fi
1718 CC=$ac_cv_prog_CC
1719 if test -n "$CC"; then
1720   echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1722 else
1723   echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1725 fi
1726
1727 fi
1728 if test -z "$ac_cv_prog_CC"; then
1729   ac_ct_CC=$CC
1730   # Extract the first word of "gcc", so it can be a program name with args.
1731 set dummy gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$ac_ct_CC"; then
1738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_ac_ct_CC="gcc"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765   CC=$ac_ct_CC
1766 else
1767   CC="$ac_cv_prog_CC"
1768 fi
1769
1770 if test -z "$CC"; then
1771   if test -n "$ac_tool_prefix"; then
1772   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}cc; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777   echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779   if test -n "$CC"; then
1780   ac_cv_prog_CC="$CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1784 do
1785   IFS=$as_save_IFS
1786   test -z "$as_dir" && as_dir=.
1787   for ac_exec_ext in '' $ac_executable_extensions; do
1788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789     ac_cv_prog_CC="${ac_tool_prefix}cc"
1790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791     break 2
1792   fi
1793 done
1794 done
1795
1796 fi
1797 fi
1798 CC=$ac_cv_prog_CC
1799 if test -n "$CC"; then
1800   echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807 fi
1808 if test -z "$ac_cv_prog_CC"; then
1809   ac_ct_CC=$CC
1810   # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$ac_ct_CC"; then
1818   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_ac_ct_CC="cc"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845   CC=$ac_ct_CC
1846 else
1847   CC="$ac_cv_prog_CC"
1848 fi
1849
1850 fi
1851 if test -z "$CC"; then
1852   # Extract the first word of "cc", so it can be a program name with args.
1853 set dummy cc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862   ac_prog_rejected=no
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1871        ac_prog_rejected=yes
1872        continue
1873      fi
1874     ac_cv_prog_CC="cc"
1875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876     break 2
1877   fi
1878 done
1879 done
1880
1881 if test $ac_prog_rejected = yes; then
1882   # We found a bogon in the path, so make sure we never use it.
1883   set dummy $ac_cv_prog_CC
1884   shift
1885   if test $# != 0; then
1886     # We chose a different compiler from the bogus one.
1887     # However, it has the same basename, so the bogon will be chosen
1888     # first if we set CC to just the basename; use the full file name.
1889     shift
1890     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1891   fi
1892 fi
1893 fi
1894 fi
1895 CC=$ac_cv_prog_CC
1896 if test -n "$CC"; then
1897   echo "$as_me:$LINENO: result: $CC" >&5
1898 echo "${ECHO_T}$CC" >&6
1899 else
1900   echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904 fi
1905 if test -z "$CC"; then
1906   if test -n "$ac_tool_prefix"; then
1907   for ac_prog in cl
1908   do
1909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$CC"; then
1917   ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937   echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944     test -n "$CC" && break
1945   done
1946 fi
1947 if test -z "$CC"; then
1948   ac_ct_CC=$CC
1949   for ac_prog in cl
1950 do
1951   # Extract the first word of "$ac_prog", so it can be a program name with args.
1952 set dummy $ac_prog; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$ac_ct_CC"; then
1959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_ac_ct_CC="$ac_prog"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986   test -n "$ac_ct_CC" && break
1987 done
1988
1989   CC=$ac_ct_CC
1990 fi
1991
1992 fi
1993
1994
1995 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: no acceptable C compiler found in \$PATH
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000
2001 # Provide some information about the compiler.
2002 echo "$as_me:$LINENO:" \
2003      "checking for C compiler version" >&5
2004 ac_compiler=`set X $ac_compile; echo $2`
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2006   (eval $ac_compiler --version </dev/null >&5) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }
2010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2011   (eval $ac_compiler -v </dev/null >&5) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }
2015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2016   (eval $ac_compiler -V </dev/null >&5) 2>&5
2017   ac_status=$?
2018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019   (exit $ac_status); }
2020
2021 cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h.  */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h.  */
2027
2028 int
2029 main ()
2030 {
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 ac_clean_files_save=$ac_clean_files
2037 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2038 # Try to create an executable without -o first, disregard a.out.
2039 # It will help us diagnose broken compilers, and finding out an intuition
2040 # of exeext.
2041 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2042 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2043 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2045   (eval $ac_link_default) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }; then
2049   # Find the output, starting from the most likely.  This scheme is
2050 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2051 # resort.
2052
2053 # Be careful to initialize this variable, since it used to be cached.
2054 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2055 ac_cv_exeext=
2056 # b.out is created by i960 compilers.
2057 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2058 do
2059   test -f "$ac_file" || continue
2060   case $ac_file in
2061     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2062         ;;
2063     conftest.$ac_ext )
2064         # This is the source file.
2065         ;;
2066     [ab].out )
2067         # We found the default executable, but exeext='' is most
2068         # certainly right.
2069         break;;
2070     *.* )
2071         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072         # FIXME: I believe we export ac_cv_exeext for Libtool,
2073         # but it would be cool to find out if it's true.  Does anybody
2074         # maintain Libtool? --akim.
2075         export ac_cv_exeext
2076         break;;
2077     * )
2078         break;;
2079   esac
2080 done
2081 else
2082   echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: C compiler cannot create executables
2088 See \`config.log' for more details." >&2;}
2089    { (exit 77); exit 77; }; }
2090 fi
2091
2092 ac_exeext=$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_file" >&5
2094 echo "${ECHO_T}$ac_file" >&6
2095
2096 # Check the compiler produces executables we can run.  If not, either
2097 # the compiler is broken, or we cross compile.
2098 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2099 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2101 # If not cross compiling, check that we can run a simple program.
2102 if test "$cross_compiling" != yes; then
2103   if { ac_try='./$ac_file'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; }; then
2109     cross_compiling=no
2110   else
2111     if test "$cross_compiling" = maybe; then
2112         cross_compiling=yes
2113     else
2114         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2115 If you meant to cross compile, use \`--host'.
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot run C compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&2;}
2120    { (exit 1); exit 1; }; }
2121     fi
2122   fi
2123 fi
2124 echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6
2126
2127 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2128 ac_clean_files=$ac_clean_files_save
2129 # Check the compiler produces executables we can run.  If not, either
2130 # the compiler is broken, or we cross compile.
2131 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2132 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2134 echo "${ECHO_T}$cross_compiling" >&6
2135
2136 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2137 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2139   (eval $ac_link) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; then
2143   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2145 # work properly (i.e., refer to `conftest.exe'), while it won't with
2146 # `rm'.
2147 for ac_file in conftest.exe conftest conftest.*; do
2148   test -f "$ac_file" || continue
2149   case $ac_file in
2150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2151     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152           export ac_cv_exeext
2153           break;;
2154     * ) break;;
2155   esac
2156 done
2157 else
2158   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2161 See \`config.log' for more details." >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2164
2165 rm -f conftest$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2167 echo "${ECHO_T}$ac_cv_exeext" >&6
2168
2169 rm -f conftest.$ac_ext
2170 EXEEXT=$ac_cv_exeext
2171 ac_exeext=$EXEEXT
2172 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2173 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2174 if test "${ac_cv_objext+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   cat >conftest.$ac_ext <<_ACEOF
2178 /* confdefs.h.  */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h.  */
2183
2184 int
2185 main ()
2186 {
2187
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 rm -f conftest.o conftest.obj
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194   (eval $ac_compile) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }; then
2198   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2199   case $ac_file in
2200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2201     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2202        break;;
2203   esac
2204 done
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2212 See \`config.log' for more details." >&2;}
2213    { (exit 1); exit 1; }; }
2214 fi
2215
2216 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2217 fi
2218 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2219 echo "${ECHO_T}$ac_cv_objext" >&6
2220 OBJEXT=$ac_cv_objext
2221 ac_objext=$OBJEXT
2222 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2223 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2224 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h.  */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h.  */
2233
2234 int
2235 main ()
2236 {
2237 #ifndef __GNUC__
2238        choke me
2239 #endif
2240
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247   (eval $ac_compile) 2>conftest.er1
2248   ac_status=$?
2249   grep -v '^ *+' conftest.er1 >conftest.err
2250   rm -f conftest.er1
2251   cat conftest.err >&5
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); } &&
2254          { ac_try='test -z "$ac_c_werror_flag"
2255                          || test ! -s conftest.err'
2256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257   (eval $ac_try) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; } &&
2261          { ac_try='test -s conftest.$ac_objext'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; }; then
2267   ac_compiler_gnu=yes
2268 else
2269   echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 ac_compiler_gnu=no
2273 fi
2274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2275 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2276
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2279 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2280 GCC=`test $ac_compiler_gnu = yes && echo yes`
2281 ac_test_CFLAGS=${CFLAGS+set}
2282 ac_save_CFLAGS=$CFLAGS
2283 CFLAGS="-g"
2284 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2285 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2286 if test "${ac_cv_prog_cc_g+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>conftest.er1
2307   ac_status=$?
2308   grep -v '^ *+' conftest.er1 >conftest.err
2309   rm -f conftest.er1
2310   cat conftest.err >&5
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); } &&
2313          { ac_try='test -z "$ac_c_werror_flag"
2314                          || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   ac_cv_prog_cc_g=yes
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 ac_cv_prog_cc_g=no
2332 fi
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2336 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2337 if test "$ac_test_CFLAGS" = set; then
2338   CFLAGS=$ac_save_CFLAGS
2339 elif test $ac_cv_prog_cc_g = yes; then
2340   if test "$GCC" = yes; then
2341     CFLAGS="-g -O2"
2342   else
2343     CFLAGS="-g"
2344   fi
2345 else
2346   if test "$GCC" = yes; then
2347     CFLAGS="-O2"
2348   else
2349     CFLAGS=
2350   fi
2351 fi
2352 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2353 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2354 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   ac_cv_prog_cc_stdc=no
2358 ac_save_CC=$CC
2359 cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365 #include <stdarg.h>
2366 #include <stdio.h>
2367 #include <sys/types.h>
2368 #include <sys/stat.h>
2369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2370 struct buf { int x; };
2371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372 static char *e (p, i)
2373      char **p;
2374      int i;
2375 {
2376   return p[i];
2377 }
2378 static char *f (char * (*g) (char **, int), char **p, ...)
2379 {
2380   char *s;
2381   va_list v;
2382   va_start (v,p);
2383   s = g (p, va_arg (v,int));
2384   va_end (v);
2385   return s;
2386 }
2387
2388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2389    function prototypes and stuff, but not '\xHH' hex character constants.
2390    These don't provoke an error unfortunately, instead are silently treated
2391    as 'x'.  The following induces an error, until -std1 is added to get
2392    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2393    array size at least.  It's necessary to write '\x00'==0 to get something
2394    that's true only with -std1.  */
2395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2396
2397 int test (int i, double x);
2398 struct s1 {int (*f) (int a);};
2399 struct s2 {int (*f) (double a);};
2400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2401 int argc;
2402 char **argv;
2403 int
2404 main ()
2405 {
2406 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 # Don't try gcc -ansi; that turns off useful extensions and
2412 # breaks some systems' header files.
2413 # AIX                   -qlanglvl=ansi
2414 # Ultrix and OSF/1      -std1
2415 # HP-UX 10.20 and later -Ae
2416 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2417 # SVR4                  -Xc -D__EXTENSIONS__
2418 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2419 do
2420   CC="$ac_save_CC $ac_arg"
2421   rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   ac_cv_prog_cc_stdc=$ac_arg
2444 break
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 fi
2450 rm -f conftest.err conftest.$ac_objext
2451 done
2452 rm -f conftest.$ac_ext conftest.$ac_objext
2453 CC=$ac_save_CC
2454
2455 fi
2456
2457 case "x$ac_cv_prog_cc_stdc" in
2458   x|xno)
2459     echo "$as_me:$LINENO: result: none needed" >&5
2460 echo "${ECHO_T}none needed" >&6 ;;
2461   *)
2462     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2463 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2464     CC="$CC $ac_cv_prog_cc_stdc" ;;
2465 esac
2466
2467 # Some people use a C++ compiler to compile C.  Since we use `exit',
2468 # in C++ we need to declare it.  In case someone uses the same compiler
2469 # for both compiling C and C++ we need to have the C++ compiler decide
2470 # the declaration of exit, since it's the most demanding environment.
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #ifndef __cplusplus
2473   choke me
2474 #endif
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag"
2486                          || test ! -s conftest.err'
2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488   (eval $ac_try) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; } &&
2492          { ac_try='test -s conftest.$ac_objext'
2493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494   (eval $ac_try) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; }; then
2498   for ac_declaration in \
2499    '' \
2500    'extern "C" void std::exit (int) throw (); using std::exit;' \
2501    'extern "C" void std::exit (int); using std::exit;' \
2502    'extern "C" void exit (int) throw ();' \
2503    'extern "C" void exit (int);' \
2504    'void exit (int);'
2505 do
2506   cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512 $ac_declaration
2513 #include <stdlib.h>
2514 int
2515 main ()
2516 {
2517 exit (42);
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>conftest.er1
2525   ac_status=$?
2526   grep -v '^ *+' conftest.er1 >conftest.err
2527   rm -f conftest.er1
2528   cat conftest.err >&5
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -z "$ac_c_werror_flag"
2532                          || test ! -s conftest.err'
2533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534   (eval $ac_try) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; } &&
2538          { ac_try='test -s conftest.$ac_objext'
2539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540   (eval $ac_try) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; }; then
2544   :
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 continue
2550 fi
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558 $ac_declaration
2559 int
2560 main ()
2561 {
2562 exit (42);
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -z "$ac_c_werror_flag"
2577                          || test ! -s conftest.err'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   break
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 fi
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596 done
2597 rm -f conftest*
2598 if test -n "$ac_declaration"; then
2599   echo '#ifdef __cplusplus' >>confdefs.h
2600   echo $ac_declaration      >>confdefs.h
2601   echo '#endif'             >>confdefs.h
2602 fi
2603
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 fi
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615
2616 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2617 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2618 if test "${lt_cv_path_SED+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   # Loop through the user's path and test for sed and gsed.
2622 # Then use that list of sed's as ones to test for truncation.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for lt_ac_prog in sed gsed; do
2629     for ac_exec_ext in '' $ac_executable_extensions; do
2630       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2631         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2632       fi
2633     done
2634   done
2635 done
2636 lt_ac_max=0
2637 lt_ac_count=0
2638 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2639 # along with /bin/sed that truncates output.
2640 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2641   test ! -f $lt_ac_sed && break
2642   cat /dev/null > conftest.in
2643   lt_ac_count=0
2644   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2645   # Check for GNU sed and select it if it is found.
2646   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2647     lt_cv_path_SED=$lt_ac_sed
2648     break
2649   fi
2650   while true; do
2651     cat conftest.in conftest.in >conftest.tmp
2652     mv conftest.tmp conftest.in
2653     cp conftest.in conftest.nl
2654     echo >>conftest.nl
2655     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2656     cmp -s conftest.out conftest.nl || break
2657     # 10000 chars as input seems more than enough
2658     test $lt_ac_count -gt 10 && break
2659     lt_ac_count=`expr $lt_ac_count + 1`
2660     if test $lt_ac_count -gt $lt_ac_max; then
2661       lt_ac_max=$lt_ac_count
2662       lt_cv_path_SED=$lt_ac_sed
2663     fi
2664   done
2665 done
2666 SED=$lt_cv_path_SED
2667
2668 fi
2669
2670 echo "$as_me:$LINENO: result: $SED" >&5
2671 echo "${ECHO_T}$SED" >&6
2672
2673 echo "$as_me:$LINENO: checking for egrep" >&5
2674 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2675 if test "${ac_cv_prog_egrep+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2679     then ac_cv_prog_egrep='grep -E'
2680     else ac_cv_prog_egrep='egrep'
2681     fi
2682 fi
2683 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2684 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2685  EGREP=$ac_cv_prog_egrep
2686
2687
2688
2689 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2690 if test "${with_gnu_ld+set}" = set; then
2691   withval="$with_gnu_ld"
2692   test "$withval" = no || with_gnu_ld=yes
2693 else
2694   with_gnu_ld=no
2695 fi;
2696 ac_prog=ld
2697 if test "$GCC" = yes; then
2698   # Check if gcc -print-prog-name=ld gives a path.
2699   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2700 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2701   case $host in
2702   *-*-mingw*)
2703     # gcc leaves a trailing carriage return which upsets mingw
2704     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2705   *)
2706     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2707   esac
2708   case $ac_prog in
2709     # Accept absolute paths.
2710     [\\/]* | ?:[\\/]*)
2711       re_direlt='/[^/][^/]*/\.\./'
2712       # Canonicalize the path of ld
2713       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2714       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2715         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2716       done
2717       test -z "$LD" && LD="$ac_prog"
2718       ;;
2719   "")
2720     # If it fails, then pretend we aren't using GCC.
2721     ac_prog=ld
2722     ;;
2723   *)
2724     # If it is relative, then search for the first ld in PATH.
2725     with_gnu_ld=unknown
2726     ;;
2727   esac
2728 elif test "$with_gnu_ld" = yes; then
2729   echo "$as_me:$LINENO: checking for GNU ld" >&5
2730 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2731 else
2732   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2733 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2734 fi
2735 if test "${lt_cv_path_LD+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   if test -z "$LD"; then
2739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2740   for ac_dir in $PATH; do
2741     IFS="$lt_save_ifs"
2742     test -z "$ac_dir" && ac_dir=.
2743     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2744       lt_cv_path_LD="$ac_dir/$ac_prog"
2745       # Check to see if the program is GNU ld.  I'd rather use --version,
2746       # but apparently some GNU ld's only accept -v.
2747       # Break only if it was the GNU/non-GNU ld that we prefer.
2748       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2749       *GNU* | *'with BFD'*)
2750         test "$with_gnu_ld" != no && break
2751         ;;
2752       *)
2753         test "$with_gnu_ld" != yes && break
2754         ;;
2755       esac
2756     fi
2757   done
2758   IFS="$lt_save_ifs"
2759 else
2760   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2761 fi
2762 fi
2763
2764 LD="$lt_cv_path_LD"
2765 if test -n "$LD"; then
2766   echo "$as_me:$LINENO: result: $LD" >&5
2767 echo "${ECHO_T}$LD" >&6
2768 else
2769   echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2771 fi
2772 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2773 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2774    { (exit 1); exit 1; }; }
2775 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2776 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2777 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2781 case `"$LD" -v 2>&1 </dev/null` in
2782 *GNU* | *'with BFD'*)
2783   lt_cv_prog_gnu_ld=yes
2784   ;;
2785 *)
2786   lt_cv_prog_gnu_ld=no
2787   ;;
2788 esac
2789 fi
2790 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2791 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2792 with_gnu_ld=$lt_cv_prog_gnu_ld
2793
2794
2795 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2796 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2797 if test "${lt_cv_ld_reload_flag+set}" = set; then
2798   echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800   lt_cv_ld_reload_flag='-r'
2801 fi
2802 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2803 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2804 reload_flag=$lt_cv_ld_reload_flag
2805 case $reload_flag in
2806 "" | " "*) ;;
2807 *) reload_flag=" $reload_flag" ;;
2808 esac
2809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2810
2811 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2812 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2813 if test "${lt_cv_path_NM+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$NM"; then
2817   # Let the user override the test.
2818   lt_cv_path_NM="$NM"
2819 else
2820   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2821   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2822     IFS="$lt_save_ifs"
2823     test -z "$ac_dir" && ac_dir=.
2824     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2825     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2826       # Check to see if the nm accepts a BSD-compat flag.
2827       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2828       #   nm: unknown option "B" ignored
2829       # Tru64's nm complains that /dev/null is an invalid object file
2830       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2831       */dev/null* | *'Invalid file or object type'*)
2832         lt_cv_path_NM="$tmp_nm -B"
2833         break
2834         ;;
2835       *)
2836         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2837         */dev/null*)
2838           lt_cv_path_NM="$tmp_nm -p"
2839           break
2840           ;;
2841         *)
2842           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2843           continue # so that we can try to find one that supports BSD flags
2844           ;;
2845         esac
2846       esac
2847     fi
2848   done
2849   IFS="$lt_save_ifs"
2850   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2851 fi
2852 fi
2853 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2854 echo "${ECHO_T}$lt_cv_path_NM" >&6
2855 NM="$lt_cv_path_NM"
2856
2857 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2858 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2859 LN_S=$as_ln_s
2860 if test "$LN_S" = "ln -s"; then
2861   echo "$as_me:$LINENO: result: yes" >&5
2862 echo "${ECHO_T}yes" >&6
2863 else
2864   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2865 echo "${ECHO_T}no, using $LN_S" >&6
2866 fi
2867
2868 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2869 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2870 if test "${lt_cv_deplibs_check_method+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   lt_cv_file_magic_cmd='$MAGIC_CMD'
2874 lt_cv_file_magic_test_file=
2875 lt_cv_deplibs_check_method='unknown'
2876 # Need to set the preceding variable on all platforms that support
2877 # interlibrary dependencies.
2878 # 'none' -- dependencies not supported.
2879 # `unknown' -- same as none, but documents that we really don't know.
2880 # 'pass_all' -- all dependencies passed with no checks.
2881 # 'test_compile' -- check by making test program.
2882 # 'file_magic [[regex]]' -- check by looking for files in library path
2883 # which responds to the $file_magic_cmd with a given extended regex.
2884 # If you have `file' or equivalent on your system and you're not sure
2885 # whether `pass_all' will *always* work, you probably want this one.
2886
2887 case $host_os in
2888 aix4* | aix5*)
2889   lt_cv_deplibs_check_method=pass_all
2890   ;;
2891
2892 beos*)
2893   lt_cv_deplibs_check_method=pass_all
2894   ;;
2895
2896 bsdi4*)
2897   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2898   lt_cv_file_magic_cmd='/usr/bin/file -L'
2899   lt_cv_file_magic_test_file=/shlib/libc.so
2900   ;;
2901
2902 cygwin* | mingw* | pw32*)
2903   # win32_libid is a shell function defined in ltmain.sh
2904   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2905   lt_cv_file_magic_cmd='win32_libid'
2906   ;;
2907
2908 darwin* | rhapsody*)
2909   # this will be overwritten by pass_all, but leave it in just in case
2910   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2911   lt_cv_file_magic_cmd='/usr/bin/file -L'
2912   case "$host_os" in
2913   rhapsody* | darwin1.[012])
2914     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2915     ;;
2916   *) # Darwin 1.3 on
2917     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2918     ;;
2919   esac
2920   lt_cv_deplibs_check_method=pass_all
2921   ;;
2922
2923 freebsd*)
2924   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2925     case $host_cpu in
2926     i*86 )
2927       # Not sure whether the presence of OpenBSD here was a mistake.
2928       # Let's accept both of them until this is cleared up.
2929       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2930       lt_cv_file_magic_cmd=/usr/bin/file
2931       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2932       ;;
2933     esac
2934   else
2935     lt_cv_deplibs_check_method=pass_all
2936   fi
2937   ;;
2938
2939 gnu*)
2940   lt_cv_deplibs_check_method=pass_all
2941   ;;
2942
2943 hpux10.20* | hpux11*)
2944   lt_cv_file_magic_cmd=/usr/bin/file
2945   case "$host_cpu" in
2946   ia64*)
2947     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2948     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2949     ;;
2950   hppa*64*)
2951     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]'
2952     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2953     ;;
2954   *)
2955     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2956     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2957     ;;
2958   esac
2959   ;;
2960
2961 irix5* | irix6* | nonstopux*)
2962   case $host_os in
2963   irix5* | nonstopux*)
2964     # this will be overridden with pass_all, but let us keep it just in case
2965     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2966     ;;
2967   *)
2968     case $LD in
2969     *-32|*"-32 ") libmagic=32-bit;;
2970     *-n32|*"-n32 ") libmagic=N32;;
2971     *-64|*"-64 ") libmagic=64-bit;;
2972     *) libmagic=never-match;;
2973     esac
2974     # this will be overridden with pass_all, but let us keep it just in case
2975     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2976     ;;
2977   esac
2978   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2979   lt_cv_deplibs_check_method=pass_all
2980   ;;
2981
2982 # This must be Linux ELF.
2983 linux*)
2984   case $host_cpu in
2985   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2986     lt_cv_deplibs_check_method=pass_all ;;
2987   *)
2988     # glibc up to 2.1.1 does not perform some relocations on ARM
2989     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2990   esac
2991   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2992   ;;
2993
2994 netbsd*)
2995   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2996     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2997   else
2998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2999   fi
3000   ;;
3001
3002 newos6*)
3003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3004   lt_cv_file_magic_cmd=/usr/bin/file
3005   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3006   ;;
3007
3008 nto-qnx)
3009   lt_cv_deplibs_check_method=unknown
3010   ;;
3011
3012 openbsd*)
3013   lt_cv_file_magic_cmd=/usr/bin/file
3014   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3015   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3016     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3017   else
3018     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3019   fi
3020   ;;
3021
3022 osf3* | osf4* | osf5*)
3023   # this will be overridden with pass_all, but let us keep it just in case
3024   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3025   lt_cv_file_magic_test_file=/shlib/libc.so
3026   lt_cv_deplibs_check_method=pass_all
3027   ;;
3028
3029 sco3.2v5*)
3030   lt_cv_deplibs_check_method=pass_all
3031   ;;
3032
3033 solaris*)
3034   lt_cv_deplibs_check_method=pass_all
3035   lt_cv_file_magic_test_file=/lib/libc.so
3036   ;;
3037
3038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3039   case $host_vendor in
3040   motorola)
3041     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]'
3042     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3043     ;;
3044   ncr)
3045     lt_cv_deplibs_check_method=pass_all
3046     ;;
3047   sequent)
3048     lt_cv_file_magic_cmd='/bin/file'
3049     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3050     ;;
3051   sni)
3052     lt_cv_file_magic_cmd='/bin/file'
3053     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3054     lt_cv_file_magic_test_file=/lib/libc.so
3055     ;;
3056   siemens)
3057     lt_cv_deplibs_check_method=pass_all
3058     ;;
3059   esac
3060   ;;
3061
3062 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3063   lt_cv_deplibs_check_method=pass_all
3064   ;;
3065 esac
3066
3067 fi
3068 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3069 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3070 file_magic_cmd=$lt_cv_file_magic_cmd
3071 deplibs_check_method=$lt_cv_deplibs_check_method
3072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3073
3074
3075
3076
3077 # If no C compiler was specified, use CC.
3078 LTCC=${LTCC-"$CC"}
3079
3080 # Allow CC to be a program name with arguments.
3081 compiler=$CC
3082
3083
3084 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3085 if test "${enable_libtool_lock+set}" = set; then
3086   enableval="$enable_libtool_lock"
3087
3088 fi;
3089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3090
3091 # Some flags need to be propagated to the compiler or linker for good
3092 # libtool support.
3093 case $host in
3094 ia64-*-hpux*)
3095   # Find out which ABI we are using.
3096   echo 'int i;' > conftest.$ac_ext
3097   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098   (eval $ac_compile) 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; then
3102     case `/usr/bin/file conftest.$ac_objext` in
3103     *ELF-32*)
3104       HPUX_IA64_MODE="32"
3105       ;;
3106     *ELF-64*)
3107       HPUX_IA64_MODE="64"
3108       ;;
3109     esac
3110   fi
3111   rm -rf conftest*
3112   ;;
3113 *-*-irix6*)
3114   # Find out which ABI we are using.
3115   echo '#line 3115 "configure"' > conftest.$ac_ext
3116   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117   (eval $ac_compile) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; then
3121    if test "$lt_cv_prog_gnu_ld" = yes; then
3122     case `/usr/bin/file conftest.$ac_objext` in
3123     *32-bit*)
3124       LD="${LD-ld} -melf32bsmip"
3125       ;;
3126     *N32*)
3127       LD="${LD-ld} -melf32bmipn32"
3128       ;;
3129     *64-bit*)
3130       LD="${LD-ld} -melf64bmip"
3131       ;;
3132     esac
3133    else
3134     case `/usr/bin/file conftest.$ac_objext` in
3135     *32-bit*)
3136       LD="${LD-ld} -32"
3137       ;;
3138     *N32*)
3139       LD="${LD-ld} -n32"
3140       ;;
3141     *64-bit*)
3142       LD="${LD-ld} -64"
3143       ;;
3144     esac
3145    fi
3146   fi
3147   rm -rf conftest*
3148   ;;
3149
3150 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3151   # Find out which ABI we are using.
3152   echo 'int i;' > conftest.$ac_ext
3153   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154   (eval $ac_compile) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; then
3158     case "`/usr/bin/file conftest.o`" in
3159     *32-bit*)
3160       case $host in
3161         x86_64-*linux*)
3162           LD="${LD-ld} -m elf_i386"
3163           ;;
3164         ppc64-*linux*)
3165           LD="${LD-ld} -m elf32ppclinux"
3166           ;;
3167         s390x-*linux*)
3168           LD="${LD-ld} -m elf_s390"
3169           ;;
3170         sparc64-*linux*)
3171           LD="${LD-ld} -m elf32_sparc"
3172           ;;
3173       esac
3174       ;;
3175     *64-bit*)
3176       case $host in
3177         x86_64-*linux*)
3178           LD="${LD-ld} -m elf_x86_64"
3179           ;;
3180         ppc*-*linux*|powerpc*-*linux*)
3181           LD="${LD-ld} -m elf64ppc"
3182           ;;
3183         s390*-*linux*)
3184           LD="${LD-ld} -m elf64_s390"
3185           ;;
3186         sparc*-*linux*)
3187           LD="${LD-ld} -m elf64_sparc"
3188           ;;
3189       esac
3190       ;;
3191     esac
3192   fi
3193   rm -rf conftest*
3194   ;;
3195
3196 *-*-sco3.2v5*)
3197   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3198   SAVE_CFLAGS="$CFLAGS"
3199   CFLAGS="$CFLAGS -belf"
3200   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3201 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3202 if test "${lt_cv_cc_needs_belf+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211      cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228   (eval $ac_link) 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -z "$ac_c_werror_flag"
3236                          || test ! -s conftest.err'
3237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238   (eval $ac_try) 2>&5
3239   ac_status=$?
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); }; } &&
3242          { ac_try='test -s conftest$ac_exeext'
3243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244   (eval $ac_try) 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }; }; then
3248   lt_cv_cc_needs_belf=yes
3249 else
3250   echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 lt_cv_cc_needs_belf=no
3254 fi
3255 rm -f conftest.err conftest.$ac_objext \
3256       conftest$ac_exeext conftest.$ac_ext
3257      ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263 fi
3264 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3265 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3266   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3267     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3268     CFLAGS="$SAVE_CFLAGS"
3269   fi
3270   ;;
3271
3272 esac
3273
3274 need_locks="$enable_libtool_lock"
3275
3276
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3283 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3284 # On Suns, sometimes $CPP names a directory.
3285 if test -n "$CPP" && test -d "$CPP"; then
3286   CPP=
3287 fi
3288 if test -z "$CPP"; then
3289   if test "${ac_cv_prog_CPP+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292       # Double quotes because CPP needs to be expanded
3293     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3294     do
3295       ac_preproc_ok=false
3296 for ac_c_preproc_warn_flag in '' yes
3297 do
3298   # Use a header file that comes with gcc, so configuring glibc
3299   # with a fresh cross-compiler works.
3300   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3301   # <limits.h> exists even on freestanding compilers.
3302   # On the NeXT, cc -E runs the code through the compiler's parser,
3303   # not just through cpp. "Syntax error" is here to catch this case.
3304   cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 #ifdef __STDC__
3311 # include <limits.h>
3312 #else
3313 # include <assert.h>
3314 #endif
3315                      Syntax error
3316 _ACEOF
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } >/dev/null; then
3325   if test -s conftest.err; then
3326     ac_cpp_err=$ac_c_preproc_warn_flag
3327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328   else
3329     ac_cpp_err=
3330   fi
3331 else
3332   ac_cpp_err=yes
3333 fi
3334 if test -z "$ac_cpp_err"; then
3335   :
3336 else
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340   # Broken: fails on valid input.
3341 continue
3342 fi
3343 rm -f conftest.err conftest.$ac_ext
3344
3345   # OK, works on sane cases.  Now check whether non-existent headers
3346   # can be detected and how.
3347   cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #include <ac_nonexistent.h>
3354 _ACEOF
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } >/dev/null; then
3363   if test -s conftest.err; then
3364     ac_cpp_err=$ac_c_preproc_warn_flag
3365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3366   else
3367     ac_cpp_err=
3368   fi
3369 else
3370   ac_cpp_err=yes
3371 fi
3372 if test -z "$ac_cpp_err"; then
3373   # Broken: success on invalid input.
3374 continue
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379   # Passes both tests.
3380 ac_preproc_ok=:
3381 break
3382 fi
3383 rm -f conftest.err conftest.$ac_ext
3384
3385 done
3386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3387 rm -f conftest.err conftest.$ac_ext
3388 if $ac_preproc_ok; then
3389   break
3390 fi
3391
3392     done
3393     ac_cv_prog_CPP=$CPP
3394
3395 fi
3396   CPP=$ac_cv_prog_CPP
3397 else
3398   ac_cv_prog_CPP=$CPP
3399 fi
3400 echo "$as_me:$LINENO: result: $CPP" >&5
3401 echo "${ECHO_T}$CPP" >&6
3402 ac_preproc_ok=false
3403 for ac_c_preproc_warn_flag in '' yes
3404 do
3405   # Use a header file that comes with gcc, so configuring glibc
3406   # with a fresh cross-compiler works.
3407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408   # <limits.h> exists even on freestanding compilers.
3409   # On the NeXT, cc -E runs the code through the compiler's parser,
3410   # not just through cpp. "Syntax error" is here to catch this case.
3411   cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #ifdef __STDC__
3418 # include <limits.h>
3419 #else
3420 # include <assert.h>
3421 #endif
3422                      Syntax error
3423 _ACEOF
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } >/dev/null; then
3432   if test -s conftest.err; then
3433     ac_cpp_err=$ac_c_preproc_warn_flag
3434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435   else
3436     ac_cpp_err=
3437   fi
3438 else
3439   ac_cpp_err=yes
3440 fi
3441 if test -z "$ac_cpp_err"; then
3442   :
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Broken: fails on valid input.
3448 continue
3449 fi
3450 rm -f conftest.err conftest.$ac_ext
3451
3452   # OK, works on sane cases.  Now check whether non-existent headers
3453   # can be detected and how.
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #include <ac_nonexistent.h>
3461 _ACEOF
3462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } >/dev/null; then
3470   if test -s conftest.err; then
3471     ac_cpp_err=$ac_c_preproc_warn_flag
3472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3473   else
3474     ac_cpp_err=
3475   fi
3476 else
3477   ac_cpp_err=yes
3478 fi
3479 if test -z "$ac_cpp_err"; then
3480   # Broken: success on invalid input.
3481 continue
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486   # Passes both tests.
3487 ac_preproc_ok=:
3488 break
3489 fi
3490 rm -f conftest.err conftest.$ac_ext
3491
3492 done
3493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494 rm -f conftest.err conftest.$ac_ext
3495 if $ac_preproc_ok; then
3496   :
3497 else
3498   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&5
3500 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3501 See \`config.log' for more details." >&2;}
3502    { (exit 1); exit 1; }; }
3503 fi
3504
3505 ac_ext=c
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
3511
3512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3514 if test "${ac_cv_header_stdc+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include <stdlib.h>
3524 #include <stdarg.h>
3525 #include <string.h>
3526 #include <float.h>
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538   (eval $ac_compile) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag"
3546                          || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_cv_header_stdc=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_cv_header_stdc=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566
3567 if test $ac_cv_header_stdc = yes; then
3568   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3569   cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575 #include <string.h>
3576
3577 _ACEOF
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579   $EGREP "memchr" >/dev/null 2>&1; then
3580   :
3581 else
3582   ac_cv_header_stdc=no
3583 fi
3584 rm -f conftest*
3585
3586 fi
3587
3588 if test $ac_cv_header_stdc = yes; then
3589   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590   cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596 #include <stdlib.h>
3597
3598 _ACEOF
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600   $EGREP "free" >/dev/null 2>&1; then
3601   :
3602 else
3603   ac_cv_header_stdc=no
3604 fi
3605 rm -f conftest*
3606
3607 fi
3608
3609 if test $ac_cv_header_stdc = yes; then
3610   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3611   if test "$cross_compiling" = yes; then
3612   :
3613 else
3614   cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620 #include <ctype.h>
3621 #if ((' ' & 0x0FF) == 0x020)
3622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3624 #else
3625 # define ISLOWER(c) \
3626                    (('a' <= (c) && (c) <= 'i') \
3627                      || ('j' <= (c) && (c) <= 'r') \
3628                      || ('s' <= (c) && (c) <= 'z'))
3629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3630 #endif
3631
3632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3633 int
3634 main ()
3635 {
3636   int i;
3637   for (i = 0; i < 256; i++)
3638     if (XOR (islower (i), ISLOWER (i))
3639         || toupper (i) != TOUPPER (i))
3640       exit(2);
3641   exit (0);
3642 }
3643 _ACEOF
3644 rm -f conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646   (eval $ac_link) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; }; then
3655   :
3656 else
3657   echo "$as_me: program exited with status $ac_status" >&5
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ( exit $ac_status )
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 fi
3667 fi
3668 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3670 if test $ac_cv_header_stdc = yes; then
3671
3672 cat >>confdefs.h <<\_ACEOF
3673 #define STDC_HEADERS 1
3674 _ACEOF
3675
3676 fi
3677
3678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3689                   inttypes.h stdint.h unistd.h
3690 do
3691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3692 echo "$as_me:$LINENO: checking for $ac_header" >&5
3693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703 $ac_includes_default
3704
3705 #include <$ac_header>
3706 _ACEOF
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709   (eval $ac_compile) 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -z "$ac_c_werror_flag"
3717                          || test ! -s conftest.err'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } &&
3723          { ac_try='test -s conftest.$ac_objext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   eval "$as_ac_Header=yes"
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 eval "$as_ac_Header=no"
3735 fi
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741   cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3743 _ACEOF
3744
3745 fi
3746
3747 done
3748
3749
3750
3751 for ac_header in dlfcn.h
3752 do
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755   echo "$as_me:$LINENO: checking for $ac_header" >&5
3756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 fi
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3762 else
3763   # Is the header compilable?
3764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h.  */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h.  */
3772 $ac_includes_default
3773 #include <$ac_header>
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777   (eval $ac_compile) 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } &&
3784          { ac_try='test -z "$ac_c_werror_flag"
3785                          || test ! -s conftest.err'
3786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }; } &&
3791          { ac_try='test -s conftest.$ac_objext'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; }; then
3797   ac_header_compiler=yes
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 ac_header_compiler=no
3803 fi
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3806 echo "${ECHO_T}$ac_header_compiler" >&6
3807
3808 # Is the header present?
3809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 #include <$ac_header>
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } >/dev/null; then
3827   if test -s conftest.err; then
3828     ac_cpp_err=$ac_c_preproc_warn_flag
3829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830   else
3831     ac_cpp_err=
3832   fi
3833 else
3834   ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837   ac_header_preproc=yes
3838 else
3839   echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842   ac_header_preproc=no
3843 fi
3844 rm -f conftest.err conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3846 echo "${ECHO_T}$ac_header_preproc" >&6
3847
3848 # So?  What about this header?
3849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3850   yes:no: )
3851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3855     ac_header_preproc=yes
3856     ;;
3857   no:yes:* )
3858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3870     (
3871       cat <<\_ASBOX
3872 ## ---------------------------------- ##
3873 ## Report this to rspencer@x10sys.com ##
3874 ## ---------------------------------- ##
3875 _ASBOX
3876     ) |
3877       sed "s/^/$as_me: WARNING:     /" >&2
3878     ;;
3879 esac
3880 echo "$as_me:$LINENO: checking for $ac_header" >&5
3881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   eval "$as_ac_Header=\$ac_header_preproc"
3886 fi
3887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3889
3890 fi
3891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3892   cat >>confdefs.h <<_ACEOF
3893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3894 _ACEOF
3895
3896 fi
3897
3898 done
3899
3900 ac_ext=cc
3901 ac_cpp='$CXXCPP $CPPFLAGS'
3902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905 if test -n "$ac_tool_prefix"; then
3906   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3907   do
3908     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_CXX+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   if test -n "$CXX"; then
3916   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923   for ac_exec_ext in '' $ac_executable_extensions; do
3924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930 done
3931
3932 fi
3933 fi
3934 CXX=$ac_cv_prog_CXX
3935 if test -n "$CXX"; then
3936   echo "$as_me:$LINENO: result: $CXX" >&5
3937 echo "${ECHO_T}$CXX" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943     test -n "$CXX" && break
3944   done
3945 fi
3946 if test -z "$CXX"; then
3947   ac_ct_CXX=$CXX
3948   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3949 do
3950   # Extract the first word of "$ac_prog", so it can be a program name with args.
3951 set dummy $ac_prog; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   if test -n "$ac_ct_CXX"; then
3958   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965   for ac_exec_ext in '' $ac_executable_extensions; do
3966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967     ac_cv_prog_ac_ct_CXX="$ac_prog"
3968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969     break 2
3970   fi
3971 done
3972 done
3973
3974 fi
3975 fi
3976 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3977 if test -n "$ac_ct_CXX"; then
3978   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3979 echo "${ECHO_T}$ac_ct_CXX" >&6
3980 else
3981   echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3983 fi
3984
3985   test -n "$ac_ct_CXX" && break
3986 done
3987 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3988
3989   CXX=$ac_ct_CXX
3990 fi
3991
3992
3993 # Provide some information about the compiler.
3994 echo "$as_me:$LINENO:" \
3995      "checking for C++ compiler version" >&5
3996 ac_compiler=`set X $ac_compile; echo $2`
3997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3998   (eval $ac_compiler --version </dev/null >&5) 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); }
4002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4003   (eval $ac_compiler -v </dev/null >&5) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }
4007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4008   (eval $ac_compiler -V </dev/null >&5) 2>&5
4009   ac_status=$?
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); }
4012
4013 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4014 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4015 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024
4025 int
4026 main ()
4027 {
4028 #ifndef __GNUC__
4029        choke me
4030 #endif
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -z "$ac_cxx_werror_flag"
4046                          || test ! -s conftest.err'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; } &&
4052          { ac_try='test -s conftest.$ac_objext'
4053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054   (eval $ac_try) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; }; then
4058   ac_compiler_gnu=yes
4059 else
4060   echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_compiler_gnu=no
4064 fi
4065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4071 GXX=`test $ac_compiler_gnu = yes && echo yes`
4072 ac_test_CXXFLAGS=${CXXFLAGS+set}
4073 ac_save_CXXFLAGS=$CXXFLAGS
4074 CXXFLAGS="-g"
4075 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4076 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4077 if test "${ac_cv_prog_cxx_g+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097   (eval $ac_compile) 2>conftest.er1
4098   ac_status=$?
4099   grep -v '^ *+' conftest.er1 >conftest.err
4100   rm -f conftest.er1
4101   cat conftest.err >&5
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -z "$ac_cxx_werror_flag"
4105                          || test ! -s conftest.err'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; } &&
4111          { ac_try='test -s conftest.$ac_objext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   ac_cv_prog_cxx_g=yes
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 ac_cv_prog_cxx_g=no
4123 fi
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 fi
4126 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4127 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4128 if test "$ac_test_CXXFLAGS" = set; then
4129   CXXFLAGS=$ac_save_CXXFLAGS
4130 elif test $ac_cv_prog_cxx_g = yes; then
4131   if test "$GXX" = yes; then
4132     CXXFLAGS="-g -O2"
4133   else
4134     CXXFLAGS="-g"
4135   fi
4136 else
4137   if test "$GXX" = yes; then
4138     CXXFLAGS="-O2"
4139   else
4140     CXXFLAGS=
4141   fi
4142 fi
4143 for ac_declaration in \
4144    '' \
4145    'extern "C" void std::exit (int) throw (); using std::exit;' \
4146    'extern "C" void std::exit (int); using std::exit;' \
4147    'extern "C" void exit (int) throw ();' \
4148    'extern "C" void exit (int);' \
4149    'void exit (int);'
4150 do
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 $ac_declaration
4158 #include <stdlib.h>
4159 int
4160 main ()
4161 {
4162 exit (42);
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } &&
4176          { ac_try='test -z "$ac_cxx_werror_flag"
4177                          || test ! -s conftest.err'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; } &&
4183          { ac_try='test -s conftest.$ac_objext'
4184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185   (eval $ac_try) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; }; then
4189   :
4190 else
4191   echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194 continue
4195 fi
4196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197   cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h.  */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h.  */
4203 $ac_declaration
4204 int
4205 main ()
4206 {
4207 exit (42);
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_cxx_werror_flag"
4222                          || test ! -s conftest.err'
4223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224   (eval $ac_try) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }; } &&
4228          { ac_try='test -s conftest.$ac_objext'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   break
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 fi
4240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241 done
4242 rm -f conftest*
4243 if test -n "$ac_declaration"; then
4244   echo '#ifdef __cplusplus' >>confdefs.h
4245   echo $ac_declaration      >>confdefs.h
4246   echo '#endif'             >>confdefs.h
4247 fi
4248
4249 ac_ext=cc
4250 ac_cpp='$CXXCPP $CPPFLAGS'
4251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4254
4255 ac_ext=cc
4256 ac_cpp='$CXXCPP $CPPFLAGS'
4257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4260 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4261 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4262 if test -z "$CXXCPP"; then
4263   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266       # Double quotes because CXXCPP needs to be expanded
4267     for CXXCPP in "$CXX -E" "/lib/cpp"
4268     do
4269       ac_preproc_ok=false
4270 for ac_cxx_preproc_warn_flag in '' yes
4271 do
4272   # Use a header file that comes with gcc, so configuring glibc
4273   # with a fresh cross-compiler works.
4274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275   # <limits.h> exists even on freestanding compilers.
4276   # On the NeXT, cc -E runs the code through the compiler's parser,
4277   # not just through cpp. "Syntax error" is here to catch this case.
4278   cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 #ifdef __STDC__
4285 # include <limits.h>
4286 #else
4287 # include <assert.h>
4288 #endif
4289                      Syntax error
4290 _ACEOF
4291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } >/dev/null; then
4299   if test -s conftest.err; then
4300     ac_cpp_err=$ac_cxx_preproc_warn_flag
4301     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4302   else
4303     ac_cpp_err=
4304   fi
4305 else
4306   ac_cpp_err=yes
4307 fi
4308 if test -z "$ac_cpp_err"; then
4309   :
4310 else
4311   echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314   # Broken: fails on valid input.
4315 continue
4316 fi
4317 rm -f conftest.err conftest.$ac_ext
4318
4319   # OK, works on sane cases.  Now check whether non-existent headers
4320   # can be detected and how.
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 #include <ac_nonexistent.h>
4328 _ACEOF
4329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4331   ac_status=$?
4332   grep -v '^ *+' conftest.er1 >conftest.err
4333   rm -f conftest.er1
4334   cat conftest.err >&5
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); } >/dev/null; then
4337   if test -s conftest.err; then
4338     ac_cpp_err=$ac_cxx_preproc_warn_flag
4339     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4340   else
4341     ac_cpp_err=
4342   fi
4343 else
4344   ac_cpp_err=yes
4345 fi
4346 if test -z "$ac_cpp_err"; then
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353   # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4356 fi
4357 rm -f conftest.err conftest.$ac_ext
4358
4359 done
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then
4363   break
4364 fi
4365
4366     done
4367     ac_cv_prog_CXXCPP=$CXXCPP
4368
4369 fi
4370   CXXCPP=$ac_cv_prog_CXXCPP
4371 else
4372   ac_cv_prog_CXXCPP=$CXXCPP
4373 fi
4374 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4375 echo "${ECHO_T}$CXXCPP" >&6
4376 ac_preproc_ok=false
4377 for ac_cxx_preproc_warn_flag in '' yes
4378 do
4379   # Use a header file that comes with gcc, so configuring glibc
4380   # with a fresh cross-compiler works.
4381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382   # <limits.h> exists even on freestanding compilers.
4383   # On the NeXT, cc -E runs the code through the compiler's parser,
4384   # not just through cpp. "Syntax error" is here to catch this case.
4385   cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 #ifdef __STDC__
4392 # include <limits.h>
4393 #else
4394 # include <assert.h>
4395 #endif
4396                      Syntax error
4397 _ACEOF
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } >/dev/null; then
4406   if test -s conftest.err; then
4407     ac_cpp_err=$ac_cxx_preproc_warn_flag
4408     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4409   else
4410     ac_cpp_err=
4411   fi
4412 else
4413   ac_cpp_err=yes
4414 fi
4415 if test -z "$ac_cpp_err"; then
4416   :
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421   # Broken: fails on valid input.
4422 continue
4423 fi
4424 rm -f conftest.err conftest.$ac_ext
4425
4426   # OK, works on sane cases.  Now check whether non-existent headers
4427   # can be detected and how.
4428   cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434 #include <ac_nonexistent.h>
4435 _ACEOF
4436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4438   ac_status=$?
4439   grep -v '^ *+' conftest.er1 >conftest.err
4440   rm -f conftest.er1
4441   cat conftest.err >&5
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } >/dev/null; then
4444   if test -s conftest.err; then
4445     ac_cpp_err=$ac_cxx_preproc_warn_flag
4446     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4447   else
4448     ac_cpp_err=
4449   fi
4450 else
4451   ac_cpp_err=yes
4452 fi
4453 if test -z "$ac_cpp_err"; then
4454   # Broken: success on invalid input.
4455 continue
4456 else
4457   echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460   # Passes both tests.
4461 ac_preproc_ok=:
4462 break
4463 fi
4464 rm -f conftest.err conftest.$ac_ext
4465
4466 done
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then
4470   :
4471 else
4472   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4473 See \`config.log' for more details." >&5
4474 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4475 See \`config.log' for more details." >&2;}
4476    { (exit 1); exit 1; }; }
4477 fi
4478
4479 ac_ext=cc
4480 ac_cpp='$CXXCPP $CPPFLAGS'
4481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4484
4485
4486 ac_ext=f
4487 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4488 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4490 if test -n "$ac_tool_prefix"; then
4491   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4492   do
4493     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_F77+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   if test -n "$F77"; then
4501   ac_cv_prog_F77="$F77" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516
4517 fi
4518 fi
4519 F77=$ac_cv_prog_F77
4520 if test -n "$F77"; then
4521   echo "$as_me:$LINENO: result: $F77" >&5
4522 echo "${ECHO_T}$F77" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 fi
4527
4528     test -n "$F77" && break
4529   done
4530 fi
4531 if test -z "$F77"; then
4532   ac_ct_F77=$F77
4533   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4534 do
4535   # Extract the first word of "$ac_prog", so it can be a program name with args.
4536 set dummy $ac_prog; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   if test -n "$ac_ct_F77"; then
4543   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552     ac_cv_prog_ac_ct_F77="$ac_prog"
4553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557 done
4558
4559 fi
4560 fi
4561 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4562 if test -n "$ac_ct_F77"; then
4563   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4564 echo "${ECHO_T}$ac_ct_F77" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570   test -n "$ac_ct_F77" && break
4571 done
4572
4573   F77=$ac_ct_F77
4574 fi
4575
4576
4577 # Provide some information about the compiler.
4578 echo "$as_me:4578:" \
4579      "checking for Fortran 77 compiler version" >&5
4580 ac_compiler=`set X $ac_compile; echo $2`
4581 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4582   (eval $ac_compiler --version </dev/null >&5) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }
4586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4587   (eval $ac_compiler -v </dev/null >&5) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }
4591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4592   (eval $ac_compiler -V </dev/null >&5) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }
4596 rm -f a.out
4597
4598 # If we don't use `.F' as extension, the preprocessor is not run on the
4599 # input file.  (Note that this only needs to work for GNU compilers.)
4600 ac_save_ext=$ac_ext
4601 ac_ext=F
4602 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4603 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4604 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   cat >conftest.$ac_ext <<_ACEOF
4608       program main
4609 #ifndef __GNUC__
4610        choke me
4611 #endif
4612
4613       end
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617   (eval $ac_compile) 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -z "$ac_f77_werror_flag"
4625                          || test ! -s conftest.err'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; } &&
4631          { ac_try='test -s conftest.$ac_objext'
4632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633   (eval $ac_try) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   ac_compiler_gnu=yes
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_compiler_gnu=no
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4646
4647 fi
4648 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4649 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4650 ac_ext=$ac_save_ext
4651 ac_test_FFLAGS=${FFLAGS+set}
4652 ac_save_FFLAGS=$FFLAGS
4653 FFLAGS=
4654 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4655 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4656 if test "${ac_cv_prog_f77_g+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   FFLAGS=-g
4660 cat >conftest.$ac_ext <<_ACEOF
4661       program main
4662
4663       end
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667   (eval $ac_compile) 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } &&
4674          { ac_try='test -z "$ac_f77_werror_flag"
4675                          || test ! -s conftest.err'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_cv_prog_f77_g=yes
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_cv_prog_f77_g=no
4693 fi
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695
4696 fi
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4698 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4699 if test "$ac_test_FFLAGS" = set; then
4700   FFLAGS=$ac_save_FFLAGS
4701 elif test $ac_cv_prog_f77_g = yes; then
4702   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4703     FFLAGS="-g -O2"
4704   else
4705     FFLAGS="-g"
4706   fi
4707 else
4708   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4709     FFLAGS="-O2"
4710   else
4711     FFLAGS=
4712   fi
4713 fi
4714
4715 G77=`test $ac_compiler_gnu = yes && echo yes`
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722
4723
4724 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4725
4726 # find the maximum length of command line arguments
4727 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4728 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4729 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732     i=0
4733   testring="ABCD"
4734
4735   case $build_os in
4736   msdosdjgpp*)
4737     # On DJGPP, this test can blow up pretty badly due to problems in libc
4738     # (any single argument exceeding 2000 bytes causes a buffer overrun
4739     # during glob expansion).  Even if it were fixed, the result of this
4740     # check would be larger than it should be.
4741     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4742     ;;
4743
4744   gnu*)
4745     # Under GNU Hurd, this test is not required because there is
4746     # no limit to the length of command line arguments.
4747     # Libtool will interpret -1 as no limit whatsoever
4748     lt_cv_sys_max_cmd_len=-1;
4749     ;;
4750
4751   cygwin* | mingw*)
4752     # On Win9x/ME, this test blows up -- it succeeds, but takes
4753     # about 5 minutes as the teststring grows exponentially.
4754     # Worse, since 9x/ME are not pre-emptively multitasking,
4755     # you end up with a "frozen" computer, even though with patience
4756     # the test eventually succeeds (with a max line length of 256k).
4757     # Instead, let's just punt: use the minimum linelength reported by
4758     # all of the supported platforms: 8192 (on NT/2K/XP).
4759     lt_cv_sys_max_cmd_len=8192;
4760     ;;
4761
4762  *)
4763     # If test is not a shell built-in, we'll probably end up computing a
4764     # maximum length that is only half of the actual maximum length, but
4765     # we can't tell.
4766     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4767                = "XX$testring") >/dev/null 2>&1 &&
4768             new_result=`expr "X$testring" : ".*" 2>&1` &&
4769             lt_cv_sys_max_cmd_len=$new_result &&
4770             test $i != 17 # 1/2 MB should be enough
4771     do
4772       i=`expr $i + 1`
4773       testring=$testring$testring
4774     done
4775     testring=
4776     # Add a significant safety factor because C++ compilers can tack on massive
4777     # amounts of additional arguments before passing them to the linker.
4778     # It appears as though 1/2 is a usable value.
4779     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4780     ;;
4781   esac
4782
4783 fi
4784
4785 if test -n $lt_cv_sys_max_cmd_len ; then
4786   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4787 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4788 else
4789   echo "$as_me:$LINENO: result: none" >&5
4790 echo "${ECHO_T}none" >&6
4791 fi
4792
4793
4794
4795
4796 # Check for command to grab the raw symbol name followed by C symbol from nm.
4797 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4798 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4799 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4800   echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802
4803 # These are sane defaults that work on at least a few old systems.
4804 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4805
4806 # Character class describing NM global symbol codes.
4807 symcode='[BCDEGRST]'
4808
4809 # Regexp to match symbols that can be accessed directly from C.
4810 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4811
4812 # Transform the above into a raw symbol and a C symbol.
4813 symxfrm='\1 \2\3 \3'
4814
4815 # Transform an extracted symbol line into a proper C declaration
4816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4817
4818 # Transform an extracted symbol line into symbol name and symbol address
4819 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'"
4820
4821 # Define system-specific variables.
4822 case $host_os in
4823 aix*)
4824   symcode='[BCDT]'
4825   ;;
4826 cygwin* | mingw* | pw32*)
4827   symcode='[ABCDGISTW]'
4828   ;;
4829 hpux*) # Its linker distinguishes data from code symbols
4830   if test "$host_cpu" = ia64; then
4831     symcode='[ABCDEGRST]'
4832   fi
4833   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4834   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'"
4835   ;;
4836 irix* | nonstopux*)
4837   symcode='[BCDEGRST]'
4838   ;;
4839 osf*)
4840   symcode='[BCDEGQRST]'
4841   ;;
4842 solaris* | sysv5*)
4843   symcode='[BDT]'
4844   ;;
4845 sysv4)
4846   symcode='[DFNSTU]'
4847   ;;
4848 esac
4849
4850 # Handle CRLF in mingw tool chain
4851 opt_cr=
4852 case $build_os in
4853 mingw*)
4854   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4855   ;;
4856 esac
4857
4858 # If we're using GNU nm, then use its standard symbol codes.
4859 case `$NM -V 2>&1` in
4860 *GNU* | *'with BFD'*)
4861   symcode='[ABCDGISTW]' ;;
4862 esac
4863
4864 # Try without a prefix undercore, then with it.
4865 for ac_symprfx in "" "_"; do
4866
4867   # Write the raw and C identifiers.
4868   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4869
4870   # Check to see that the pipe works correctly.
4871   pipe_works=no
4872
4873   rm -f conftest*
4874   cat > conftest.$ac_ext <<EOF
4875 #ifdef __cplusplus
4876 extern "C" {
4877 #endif
4878 char nm_test_var;
4879 void nm_test_func(){}
4880 #ifdef __cplusplus
4881 }
4882 #endif
4883 int main(){nm_test_var='a';nm_test_func();return(0);}
4884 EOF
4885
4886   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887   (eval $ac_compile) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; then
4891     # Now try to grab the symbols.
4892     nlist=conftest.nm
4893     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4894   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } && test -s "$nlist"; then
4898       # Try sorting and uniquifying the output.
4899       if sort "$nlist" | uniq > "$nlist"T; then
4900         mv -f "$nlist"T "$nlist"
4901       else
4902         rm -f "$nlist"T
4903       fi
4904
4905       # Make sure that we snagged all the symbols we need.
4906       if grep ' nm_test_var$' "$nlist" >/dev/null; then
4907         if grep ' nm_test_func$' "$nlist" >/dev/null; then
4908           cat <<EOF > conftest.$ac_ext
4909 #ifdef __cplusplus
4910 extern "C" {
4911 #endif
4912
4913 EOF
4914           # Now generate the symbol file.
4915           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4916
4917           cat <<EOF >> conftest.$ac_ext
4918 #if defined (__STDC__) && __STDC__
4919 # define lt_ptr_t void *
4920 #else
4921 # define lt_ptr_t char *
4922 # define const
4923 #endif
4924
4925 /* The mapping between symbol names and symbols. */
4926 const struct {
4927   const char *name;
4928   lt_ptr_t address;
4929 }
4930 lt_preloaded_symbols[] =
4931 {
4932 EOF
4933           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4934           cat <<\EOF >> conftest.$ac_ext
4935   {0, (lt_ptr_t) 0}
4936 };
4937
4938 #ifdef __cplusplus
4939 }
4940 #endif
4941 EOF
4942           # Now try linking the two files.
4943           mv conftest.$ac_objext conftstm.$ac_objext
4944           lt_save_LIBS="$LIBS"
4945           lt_save_CFLAGS="$CFLAGS"
4946           LIBS="conftstm.$ac_objext"
4947           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4948           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949   (eval $ac_link) 2>&5
4950   ac_status=$?
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4953             pipe_works=yes
4954           fi
4955           LIBS="$lt_save_LIBS"
4956           CFLAGS="$lt_save_CFLAGS"
4957         else
4958           echo "cannot find nm_test_func in $nlist" >&5
4959         fi
4960       else
4961         echo "cannot find nm_test_var in $nlist" >&5
4962       fi
4963     else
4964       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4965     fi
4966   else
4967     echo "$progname: failed program was:" >&5
4968     cat conftest.$ac_ext >&5
4969   fi
4970   rm -f conftest* conftst*
4971
4972   # Do not use the global_symbol_pipe unless it works.
4973   if test "$pipe_works" = yes; then
4974     break
4975   else
4976     lt_cv_sys_global_symbol_pipe=
4977   fi
4978 done
4979
4980 fi
4981
4982 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4983   lt_cv_sys_global_symbol_to_cdecl=
4984 fi
4985 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4986   echo "$as_me:$LINENO: result: failed" >&5
4987 echo "${ECHO_T}failed" >&6
4988 else
4989   echo "$as_me:$LINENO: result: ok" >&5
4990 echo "${ECHO_T}ok" >&6
4991 fi
4992
4993 echo "$as_me:$LINENO: checking for objdir" >&5
4994 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4995 if test "${lt_cv_objdir+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   rm -f .libs 2>/dev/null
4999 mkdir .libs 2>/dev/null
5000 if test -d .libs; then
5001   lt_cv_objdir=.libs
5002 else
5003   # MS-DOS does not allow filenames that begin with a dot.
5004   lt_cv_objdir=_libs
5005 fi
5006 rmdir .libs 2>/dev/null
5007 fi
5008 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5009 echo "${ECHO_T}$lt_cv_objdir" >&6
5010 objdir=$lt_cv_objdir
5011
5012
5013
5014
5015
5016 case $host_os in
5017 aix3*)
5018   # AIX sometimes has problems with the GCC collect2 program.  For some
5019   # reason, if we set the COLLECT_NAMES environment variable, the problems
5020   # vanish in a puff of smoke.
5021   if test "X${COLLECT_NAMES+set}" != Xset; then
5022     COLLECT_NAMES=
5023     export COLLECT_NAMES
5024   fi
5025   ;;
5026 esac
5027
5028 # Sed substitution that helps us do robust quoting.  It backslashifies
5029 # metacharacters that are still active within double-quoted strings.
5030 Xsed='sed -e s/^X//'
5031 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5032
5033 # Same as above, but do not quote variable references.
5034 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5035
5036 # Sed substitution to delay expansion of an escaped shell variable in a
5037 # double_quote_subst'ed string.
5038 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5039
5040 # Sed substitution to avoid accidental globbing in evaled expressions
5041 no_glob_subst='s/\*/\\\*/g'
5042
5043 # Constants:
5044 rm="rm -f"
5045
5046 # Global variables:
5047 default_ofile=mklib
5048 can_build_shared=yes
5049
5050 # All known linkers require a `.a' archive for static linking (except M$VC,
5051 # which needs '.lib').
5052 libext=a
5053 ltmain="$ac_aux_dir/ltmain.sh"
5054 ofile="$default_ofile"
5055 with_gnu_ld="$lt_cv_prog_gnu_ld"
5056
5057 if test -n "$ac_tool_prefix"; then
5058   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}ar; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_prog_AR+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$AR"; then
5066   ac_cv_prog_AR="$AR" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075     ac_cv_prog_AR="${ac_tool_prefix}ar"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081
5082 fi
5083 fi
5084 AR=$ac_cv_prog_AR
5085 if test -n "$AR"; then
5086   echo "$as_me:$LINENO: result: $AR" >&5
5087 echo "${ECHO_T}$AR" >&6
5088 else
5089   echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5091 fi
5092
5093 fi
5094 if test -z "$ac_cv_prog_AR"; then
5095   ac_ct_AR=$AR
5096   # Extract the first word of "ar", so it can be a program name with args.
5097 set dummy ar; ac_word=$2
5098 echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   if test -n "$ac_ct_AR"; then
5104   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111   for ac_exec_ext in '' $ac_executable_extensions; do
5112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113     ac_cv_prog_ac_ct_AR="ar"
5114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115     break 2
5116   fi
5117 done
5118 done
5119
5120   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5121 fi
5122 fi
5123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5124 if test -n "$ac_ct_AR"; then
5125   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5126 echo "${ECHO_T}$ac_ct_AR" >&6
5127 else
5128   echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130 fi
5131
5132   AR=$ac_ct_AR
5133 else
5134   AR="$ac_cv_prog_AR"
5135 fi
5136
5137 if test -n "$ac_tool_prefix"; then
5138   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_RANLIB+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -n "$RANLIB"; then
5146   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161
5162 fi
5163 fi
5164 RANLIB=$ac_cv_prog_RANLIB
5165 if test -n "$RANLIB"; then
5166   echo "$as_me:$LINENO: result: $RANLIB" >&5
5167 echo "${ECHO_T}$RANLIB" >&6
5168 else
5169   echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5171 fi
5172
5173 fi
5174 if test -z "$ac_cv_prog_RANLIB"; then
5175   ac_ct_RANLIB=$RANLIB
5176   # Extract the first word of "ranlib", so it can be a program name with args.
5177 set dummy ranlib; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   if test -n "$ac_ct_RANLIB"; then
5184   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191   for ac_exec_ext in '' $ac_executable_extensions; do
5192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193     ac_cv_prog_ac_ct_RANLIB="ranlib"
5194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198 done
5199
5200   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5201 fi
5202 fi
5203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5204 if test -n "$ac_ct_RANLIB"; then
5205   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5206 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5207 else
5208   echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210 fi
5211
5212   RANLIB=$ac_ct_RANLIB
5213 else
5214   RANLIB="$ac_cv_prog_RANLIB"
5215 fi
5216
5217 if test -n "$ac_tool_prefix"; then
5218   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}strip; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_prog_STRIP+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   if test -n "$STRIP"; then
5226   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233   for ac_exec_ext in '' $ac_executable_extensions; do
5234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240 done
5241
5242 fi
5243 fi
5244 STRIP=$ac_cv_prog_STRIP
5245 if test -n "$STRIP"; then
5246   echo "$as_me:$LINENO: result: $STRIP" >&5
5247 echo "${ECHO_T}$STRIP" >&6
5248 else
5249   echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5251 fi
5252
5253 fi
5254 if test -z "$ac_cv_prog_STRIP"; then
5255   ac_ct_STRIP=$STRIP
5256   # Extract the first word of "strip", so it can be a program name with args.
5257 set dummy strip; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   if test -n "$ac_ct_STRIP"; then
5264   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271   for ac_exec_ext in '' $ac_executable_extensions; do
5272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273     ac_cv_prog_ac_ct_STRIP="strip"
5274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278 done
5279
5280   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5281 fi
5282 fi
5283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5284 if test -n "$ac_ct_STRIP"; then
5285   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5286 echo "${ECHO_T}$ac_ct_STRIP" >&6
5287 else
5288   echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6
5290 fi
5291
5292   STRIP=$ac_ct_STRIP
5293 else
5294   STRIP="$ac_cv_prog_STRIP"
5295 fi
5296
5297
5298 old_CC="$CC"
5299 old_CFLAGS="$CFLAGS"
5300
5301 # Set sane defaults for various variables
5302 test -z "$AR" && AR=ar
5303 test -z "$AR_FLAGS" && AR_FLAGS=cru
5304 test -z "$AS" && AS=as
5305 test -z "$CC" && CC=cc
5306 test -z "$LTCC" && LTCC=$CC
5307 test -z "$DLLTOOL" && DLLTOOL=dlltool
5308 test -z "$LD" && LD=ld
5309 test -z "$LN_S" && LN_S="ln -s"
5310 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5311 test -z "$NM" && NM=nm
5312 test -z "$SED" && SED=sed
5313 test -z "$OBJDUMP" && OBJDUMP=objdump
5314 test -z "$RANLIB" && RANLIB=:
5315 test -z "$STRIP" && STRIP=:
5316 test -z "$ac_objext" && ac_objext=o
5317
5318 # Determine commands to create old-style static archives.
5319 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5320 old_postinstall_cmds='chmod 644 $oldlib'
5321 old_postuninstall_cmds=
5322
5323 if test -n "$RANLIB"; then
5324   case $host_os in
5325   openbsd*)
5326     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5327     ;;
5328   *)
5329     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5330     ;;
5331   esac
5332   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5333 fi
5334
5335 # Only perform the check for file, if the check method requires it
5336 case $deplibs_check_method in
5337 file_magic*)
5338   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5339     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5340 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   case $MAGIC_CMD in
5345 [\\/*] |  ?:[\\/]*)
5346   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5347   ;;
5348 *)
5349   lt_save_MAGIC_CMD="$MAGIC_CMD"
5350   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5351   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5352   for ac_dir in $ac_dummy; do
5353     IFS="$lt_save_ifs"
5354     test -z "$ac_dir" && ac_dir=.
5355     if test -f $ac_dir/${ac_tool_prefix}file; then
5356       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5357       if test -n "$file_magic_test_file"; then
5358         case $deplibs_check_method in
5359         "file_magic "*)
5360           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5361           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5362           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5363             $EGREP "$file_magic_regex" > /dev/null; then
5364             :
5365           else
5366             cat <<EOF 1>&2
5367
5368 *** Warning: the command libtool uses to detect shared libraries,
5369 *** $file_magic_cmd, produces output that libtool cannot recognize.
5370 *** The result is that libtool may fail to recognize shared libraries
5371 *** as such.  This will affect the creation of libtool libraries that
5372 *** depend on shared libraries, but programs linked with such libtool
5373 *** libraries will work regardless of this problem.  Nevertheless, you
5374 *** may want to report the problem to your system manager and/or to
5375 *** bug-libtool@gnu.org
5376
5377 EOF
5378           fi ;;
5379         esac
5380       fi
5381       break
5382     fi
5383   done
5384   IFS="$lt_save_ifs"
5385   MAGIC_CMD="$lt_save_MAGIC_CMD"
5386   ;;
5387 esac
5388 fi
5389
5390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5391 if test -n "$MAGIC_CMD"; then
5392   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5393 echo "${ECHO_T}$MAGIC_CMD" >&6
5394 else
5395   echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5397 fi
5398
5399 if test -z "$lt_cv_path_MAGIC_CMD"; then
5400   if test -n "$ac_tool_prefix"; then
5401     echo "$as_me:$LINENO: checking for file" >&5
5402 echo $ECHO_N "checking for file... $ECHO_C" >&6
5403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   case $MAGIC_CMD in
5407 [\\/*] |  ?:[\\/]*)
5408   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5409   ;;
5410 *)
5411   lt_save_MAGIC_CMD="$MAGIC_CMD"
5412   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5413   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5414   for ac_dir in $ac_dummy; do
5415     IFS="$lt_save_ifs"
5416     test -z "$ac_dir" && ac_dir=.
5417     if test -f $ac_dir/file; then
5418       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5419       if test -n "$file_magic_test_file"; then
5420         case $deplibs_check_method in
5421         "file_magic "*)
5422           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5423           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5424           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5425             $EGREP "$file_magic_regex" > /dev/null; then
5426             :
5427           else
5428             cat <<EOF 1>&2
5429
5430 *** Warning: the command libtool uses to detect shared libraries,
5431 *** $file_magic_cmd, produces output that libtool cannot recognize.
5432 *** The result is that libtool may fail to recognize shared libraries
5433 *** as such.  This will affect the creation of libtool libraries that
5434 *** depend on shared libraries, but programs linked with such libtool
5435 *** libraries will work regardless of this problem.  Nevertheless, you
5436 *** may want to report the problem to your system manager and/or to
5437 *** bug-libtool@gnu.org
5438
5439 EOF
5440           fi ;;
5441         esac
5442       fi
5443       break
5444     fi
5445   done
5446   IFS="$lt_save_ifs"
5447   MAGIC_CMD="$lt_save_MAGIC_CMD"
5448   ;;
5449 esac
5450 fi
5451
5452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5453 if test -n "$MAGIC_CMD"; then
5454   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5455 echo "${ECHO_T}$MAGIC_CMD" >&6
5456 else
5457   echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459 fi
5460
5461   else
5462     MAGIC_CMD=:
5463   fi
5464 fi
5465
5466   fi
5467   ;;
5468 esac
5469
5470 enable_dlopen=no
5471 enable_win32_dll=no
5472
5473 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5474 if test "${enable_libtool_lock+set}" = set; then
5475   enableval="$enable_libtool_lock"
5476
5477 fi;
5478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5479
5480
5481 # Check whether --with-pic or --without-pic was given.
5482 if test "${with_pic+set}" = set; then
5483   withval="$with_pic"
5484   pic_mode="$withval"
5485 else
5486   pic_mode=default
5487 fi;
5488 test -z "$pic_mode" && pic_mode=default
5489
5490 # Use C for the default configuration in the libtool script
5491 tagname=
5492 lt_save_CC="$CC"
5493 ac_ext=c
5494 ac_cpp='$CPP $CPPFLAGS'
5495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5498
5499
5500 # Source file extension for C test sources.
5501 ac_ext=c
5502
5503 # Object file extension for compiled C test sources.
5504 objext=o
5505 objext=$objext
5506
5507 # Code to be used in simple compile tests
5508 lt_simple_compile_test_code="int some_variable = 0;\n"
5509
5510 # Code to be used in simple link tests
5511 lt_simple_link_test_code='int main(){return(0);}\n'
5512
5513
5514 # If no C compiler was specified, use CC.
5515 LTCC=${LTCC-"$CC"}
5516
5517 # Allow CC to be a program name with arguments.
5518 compiler=$CC
5519
5520
5521 #
5522 # Check for any special shared library compilation flags.
5523 #
5524 lt_prog_cc_shlib=
5525 if test "$GCC" = no; then
5526   case $host_os in
5527   sco3.2v5*)
5528     lt_prog_cc_shlib='-belf'
5529     ;;
5530   esac
5531 fi
5532 if test -n "$lt_prog_cc_shlib"; then
5533   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5534 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5535   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5536   else
5537     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5538 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5539     lt_cv_prog_cc_can_build_shared=no
5540   fi
5541 fi
5542
5543
5544 #
5545 # Check to make sure the static flag actually works.
5546 #
5547 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5548 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5549 if test "${lt_prog_compiler_static_works+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   lt_prog_compiler_static_works=no
5553    save_LDFLAGS="$LDFLAGS"
5554    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5555    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5556    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5557      # The compiler can only warn and ignore the option if not recognized
5558      # So say no if there are warnings
5559      if test -s conftest.err; then
5560        # Append any errors to the config.log.
5561        cat conftest.err 1>&5
5562      else
5563        lt_prog_compiler_static_works=yes
5564      fi
5565    fi
5566    $rm conftest*
5567    LDFLAGS="$save_LDFLAGS"
5568
5569 fi
5570 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5571 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5572
5573 if test x"$lt_prog_compiler_static_works" = xyes; then
5574     :
5575 else
5576     lt_prog_compiler_static=
5577 fi
5578
5579
5580
5581 ## CAVEAT EMPTOR:
5582 ## There is no encapsulation within the following macros, do not change
5583 ## the running order or otherwise move them around unless you know exactly
5584 ## what you are doing...
5585
5586 lt_prog_compiler_no_builtin_flag=
5587
5588 if test "$GCC" = yes; then
5589   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5590
5591   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5592 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5593 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5594   echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596   lt_cv_prog_compiler_rtti_exceptions=no
5597   ac_outfile=conftest.$ac_objext
5598    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5599    lt_compiler_flag="-fno-rtti -fno-exceptions"
5600    # Insert the option either (1) after the last *FLAGS variable, or
5601    # (2) before a word containing "conftest.", or (3) at the end.
5602    # Note that $ac_compile itself does not contain backslashes and begins
5603    # with a dollar sign (not a hyphen), so the echo should work correctly.
5604    # The option is referenced via a variable to avoid confusing sed.
5605    lt_compile=`echo "$ac_compile" | $SED \
5606    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5608    -e 's:$: $lt_compiler_flag:'`
5609    (eval echo "\"\$as_me:5609: $lt_compile\"" >&5)
5610    (eval "$lt_compile" 2>conftest.err)
5611    ac_status=$?
5612    cat conftest.err >&5
5613    echo "$as_me:5613: \$? = $ac_status" >&5
5614    if (exit $ac_status) && test -s "$ac_outfile"; then
5615      # The compiler can only warn and ignore the option if not recognized
5616      # So say no if there are warnings
5617      if test ! -s conftest.err; then
5618        lt_cv_prog_compiler_rtti_exceptions=yes
5619      fi
5620    fi
5621    $rm conftest*
5622
5623 fi
5624 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5625 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5626
5627 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5628     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5629 else
5630     :
5631 fi
5632
5633 fi
5634
5635 lt_prog_compiler_wl=
5636 lt_prog_compiler_pic=
5637 lt_prog_compiler_static=
5638
5639 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5641
5642   if test "$GCC" = yes; then
5643     lt_prog_compiler_wl='-Wl,'
5644     lt_prog_compiler_static='-static'
5645
5646     case $host_os in
5647       aix*)
5648       # All AIX code is PIC.
5649       if test "$host_cpu" = ia64; then
5650         # AIX 5 now supports IA64 processor
5651         lt_prog_compiler_static='-Bstatic'
5652       fi
5653       ;;
5654
5655     amigaos*)
5656       # FIXME: we need at least 68020 code to build shared libraries, but
5657       # adding the `-m68020' flag to GCC prevents building anything better,
5658       # like `-m68040'.
5659       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5660       ;;
5661
5662     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5663       # PIC is the default for these OSes.
5664       ;;
5665
5666     mingw* | pw32* | os2*)
5667       # This hack is so that the source file can tell whether it is being
5668       # built for inclusion in a dll (and should export symbols for example).
5669       lt_prog_compiler_pic='-DDLL_EXPORT'
5670       ;;
5671
5672     darwin* | rhapsody*)
5673       # PIC is the default on this platform
5674       # Common symbols not allowed in MH_DYLIB files
5675       lt_prog_compiler_pic='-fno-common'
5676       ;;
5677
5678     msdosdjgpp*)
5679       # Just because we use GCC doesn't mean we suddenly get shared libraries
5680       # on systems that don't support them.
5681       lt_prog_compiler_can_build_shared=no
5682       enable_shared=no
5683       ;;
5684
5685     sysv4*MP*)
5686       if test -d /usr/nec; then
5687         lt_prog_compiler_pic=-Kconform_pic
5688       fi
5689       ;;
5690
5691     hpux*)
5692       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5693       # not for PA HP-UX.
5694       case "$host_cpu" in
5695       hppa*64*|ia64*)
5696         # +Z the default
5697         ;;
5698       *)
5699         lt_prog_compiler_pic='-fPIC'
5700         ;;
5701       esac
5702       ;;
5703
5704     *)
5705       lt_prog_compiler_pic='-fPIC'
5706       ;;
5707     esac
5708   else
5709     # PORTME Check for flag to pass linker flags through the system compiler.
5710     case $host_os in
5711     aix*)
5712       lt_prog_compiler_wl='-Wl,'
5713       if test "$host_cpu" = ia64; then
5714         # AIX 5 now supports IA64 processor
5715         lt_prog_compiler_static='-Bstatic'
5716       else
5717         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5718       fi
5719       ;;
5720
5721     mingw* | pw32* | os2*)
5722       # This hack is so that the source file can tell whether it is being
5723       # built for inclusion in a dll (and should export symbols for example).
5724       lt_prog_compiler_pic='-DDLL_EXPORT'
5725       ;;
5726
5727     hpux9* | hpux10* | hpux11*)
5728       lt_prog_compiler_wl='-Wl,'
5729       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5730       # not for PA HP-UX.
5731       case "$host_cpu" in
5732       hppa*64*|ia64*)
5733         # +Z the default
5734         ;;
5735       *)
5736         lt_prog_compiler_pic='+Z'
5737         ;;
5738       esac
5739       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5740       lt_prog_compiler_static='${wl}-a ${wl}archive'
5741       ;;
5742
5743     irix5* | irix6* | nonstopux*)
5744       lt_prog_compiler_wl='-Wl,'
5745       # PIC (with -KPIC) is the default.
5746       lt_prog_compiler_static='-non_shared'
5747       ;;
5748
5749     newsos6)
5750       lt_prog_compiler_pic='-KPIC'
5751       lt_prog_compiler_static='-Bstatic'
5752       ;;
5753
5754     linux*)
5755       case $CC in
5756       icc|ecc)
5757         lt_prog_compiler_wl='-Wl,'
5758         lt_prog_compiler_pic='-KPIC'
5759         lt_prog_compiler_static='-static'
5760         ;;
5761       ccc)
5762         lt_prog_compiler_wl='-Wl,'
5763         # All Alpha code is PIC.
5764         lt_prog_compiler_static='-non_shared'
5765         ;;
5766       esac
5767       ;;
5768
5769     osf3* | osf4* | osf5*)
5770       lt_prog_compiler_wl='-Wl,'
5771       # All OSF/1 code is PIC.
5772       lt_prog_compiler_static='-non_shared'
5773       ;;
5774
5775     sco3.2v5*)
5776       lt_prog_compiler_pic='-Kpic'
5777       lt_prog_compiler_static='-dn'
5778       ;;
5779
5780     solaris*)
5781       lt_prog_compiler_wl='-Wl,'
5782       lt_prog_compiler_pic='-KPIC'
5783       lt_prog_compiler_static='-Bstatic'
5784       ;;
5785
5786     sunos4*)
5787       lt_prog_compiler_wl='-Qoption ld '
5788       lt_prog_compiler_pic='-PIC'
5789       lt_prog_compiler_static='-Bstatic'
5790       ;;
5791
5792     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5793       lt_prog_compiler_wl='-Wl,'
5794       lt_prog_compiler_pic='-KPIC'
5795       lt_prog_compiler_static='-Bstatic'
5796       ;;
5797
5798     sysv4*MP*)
5799       if test -d /usr/nec ;then
5800         lt_prog_compiler_pic='-Kconform_pic'
5801         lt_prog_compiler_static='-Bstatic'
5802       fi
5803       ;;
5804
5805     uts4*)
5806       lt_prog_compiler_pic='-pic'
5807       lt_prog_compiler_static='-Bstatic'
5808       ;;
5809
5810     *)
5811       lt_prog_compiler_can_build_shared=no
5812       ;;
5813     esac
5814   fi
5815
5816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5817 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5818
5819 #
5820 # Check to make sure the PIC flag actually works.
5821 #
5822 if test -n "$lt_prog_compiler_pic"; then
5823   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5824 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5825 if test "${lt_prog_compiler_pic_works+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   lt_prog_compiler_pic_works=no
5829   ac_outfile=conftest.$ac_objext
5830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5831    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5832    # Insert the option either (1) after the last *FLAGS variable, or
5833    # (2) before a word containing "conftest.", or (3) at the end.
5834    # Note that $ac_compile itself does not contain backslashes and begins
5835    # with a dollar sign (not a hyphen), so the echo should work correctly.
5836    # The option is referenced via a variable to avoid confusing sed.
5837    lt_compile=`echo "$ac_compile" | $SED \
5838    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5840    -e 's:$: $lt_compiler_flag:'`
5841    (eval echo "\"\$as_me:5841: $lt_compile\"" >&5)
5842    (eval "$lt_compile" 2>conftest.err)
5843    ac_status=$?
5844    cat conftest.err >&5
5845    echo "$as_me:5845: \$? = $ac_status" >&5
5846    if (exit $ac_status) && test -s "$ac_outfile"; then
5847      # The compiler can only warn and ignore the option if not recognized
5848      # So say no if there are warnings
5849      if test ! -s conftest.err; then
5850        lt_prog_compiler_pic_works=yes
5851      fi
5852    fi
5853    $rm conftest*
5854
5855 fi
5856 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5857 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5858
5859 if test x"$lt_prog_compiler_pic_works" = xyes; then
5860     case $lt_prog_compiler_pic in
5861      "" | " "*) ;;
5862      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5863      esac
5864 else
5865     lt_prog_compiler_pic=
5866      lt_prog_compiler_can_build_shared=no
5867 fi
5868
5869 fi
5870 case "$host_os" in
5871   # For platforms which do not support PIC, -DPIC is meaningless:
5872   *djgpp*)
5873     lt_prog_compiler_pic=
5874     ;;
5875   *)
5876     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5877     ;;
5878 esac
5879
5880 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5882 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   lt_cv_prog_compiler_c_o=no
5886    $rm -r conftest 2>/dev/null
5887    mkdir conftest
5888    cd conftest
5889    mkdir out
5890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5891
5892    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5893    # that will create temporary files in the current directory regardless of
5894    # the output directory.  Thus, making CWD read-only will cause this test
5895    # to fail, enabling locking or at least warning the user not to do parallel
5896    # builds.
5897    chmod -w .
5898
5899    lt_compiler_flag="-o out/conftest2.$ac_objext"
5900    # Insert the option either (1) after the last *FLAGS variable, or
5901    # (2) before a word containing "conftest.", or (3) at the end.
5902    # Note that $ac_compile itself does not contain backslashes and begins
5903    # with a dollar sign (not a hyphen), so the echo should work correctly.
5904    lt_compile=`echo "$ac_compile" | $SED \
5905    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5907    -e 's:$: $lt_compiler_flag:'`
5908    (eval echo "\"\$as_me:5908: $lt_compile\"" >&5)
5909    (eval "$lt_compile" 2>out/conftest.err)
5910    ac_status=$?
5911    cat out/conftest.err >&5
5912    echo "$as_me:5912: \$? = $ac_status" >&5
5913    if (exit $ac_status) && test -s out/conftest2.$ac_objext
5914    then
5915      # The compiler can only warn and ignore the option if not recognized
5916      # So say no if there are warnings
5917      if test ! -s out/conftest.err; then
5918        lt_cv_prog_compiler_c_o=yes
5919      fi
5920    fi
5921    chmod u+w .
5922    $rm conftest* out/*
5923    rmdir out
5924    cd ..
5925    rmdir conftest
5926    $rm conftest*
5927
5928 fi
5929 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5931
5932
5933 hard_links="nottested"
5934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5935   # do not overwrite the value of need_locks provided by the user
5936   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5938   hard_links=yes
5939   $rm conftest*
5940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5941   touch conftest.a
5942   ln conftest.a conftest.b 2>&5 || hard_links=no
5943   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5944   echo "$as_me:$LINENO: result: $hard_links" >&5
5945 echo "${ECHO_T}$hard_links" >&6
5946   if test "$hard_links" = no; then
5947     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5949     need_locks=warn
5950   fi
5951 else
5952   need_locks=no
5953 fi
5954
5955 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5957
5958   runpath_var=
5959   allow_undefined_flag=
5960   enable_shared_with_static_runtimes=no
5961   archive_cmds=
5962   archive_expsym_cmds=
5963   old_archive_From_new_cmds=
5964   old_archive_from_expsyms_cmds=
5965   export_dynamic_flag_spec=
5966   whole_archive_flag_spec=
5967   thread_safe_flag_spec=
5968   hardcode_libdir_flag_spec=
5969   hardcode_libdir_flag_spec_ld=
5970   hardcode_libdir_separator=
5971   hardcode_direct=no
5972   hardcode_minus_L=no
5973   hardcode_shlibpath_var=unsupported
5974   link_all_deplibs=unknown
5975   hardcode_automatic=no
5976   module_cmds=
5977   module_expsym_cmds=
5978   always_export_symbols=no
5979   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5980   # include_expsyms should be a list of space-separated symbols to be *always*
5981   # included in the symbol list
5982   include_expsyms=
5983   # exclude_expsyms can be an extended regexp of symbols to exclude
5984   # it will be wrapped by ` (' and `)$', so one must not match beginning or
5985   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5986   # as well as any symbol that contains `d'.
5987   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5988   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5989   # platforms (ab)use it in PIC code, but their linkers get confused if
5990   # the symbol is explicitly referenced.  Since portable code cannot
5991   # rely on this symbol name, it's probably fine to never include it in
5992   # preloaded symbol tables.
5993   extract_expsyms_cmds=
5994
5995   case $host_os in
5996   cygwin* | mingw* | pw32*)
5997     # FIXME: the MSVC++ port hasn't been tested in a loooong time
5998     # When not using gcc, we currently assume that we are using
5999     # Microsoft Visual C++.
6000     if test "$GCC" != yes; then
6001       with_gnu_ld=no
6002     fi
6003     ;;
6004   openbsd*)
6005     with_gnu_ld=no
6006     ;;
6007   esac
6008
6009   ld_shlibs=yes
6010   if test "$with_gnu_ld" = yes; then
6011     # If archive_cmds runs LD, not CC, wlarc should be empty
6012     wlarc='${wl}'
6013
6014     # See if GNU ld supports shared libraries.
6015     case $host_os in
6016     aix3* | aix4* | aix5*)
6017       # On AIX/PPC, the GNU linker is very broken
6018       if test "$host_cpu" != ia64; then
6019         ld_shlibs=no
6020         cat <<EOF 1>&2
6021
6022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6023 *** to be unable to reliably create shared libraries on AIX.
6024 *** Therefore, libtool is disabling shared libraries support.  If you
6025 *** really care for shared libraries, you may want to modify your PATH
6026 *** so that a non-GNU linker is found, and then restart.
6027
6028 EOF
6029       fi
6030       ;;
6031
6032     amigaos*)
6033       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)'
6034       hardcode_libdir_flag_spec='-L$libdir'
6035       hardcode_minus_L=yes
6036
6037       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6038       # that the semantics of dynamic libraries on AmigaOS, at least up
6039       # to version 4, is to share data among multiple programs linked
6040       # with the same dynamic library.  Since this doesn't match the
6041       # behavior of shared libraries on other platforms, we can't use
6042       # them.
6043       ld_shlibs=no
6044       ;;
6045
6046     beos*)
6047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6048         allow_undefined_flag=unsupported
6049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6050         # support --undefined.  This deserves some investigation.  FIXME
6051         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6052       else
6053         ld_shlibs=no
6054       fi
6055       ;;
6056
6057     cygwin* | mingw* | pw32*)
6058       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6059       # as there is no search path for DLLs.
6060       hardcode_libdir_flag_spec='-L$libdir'
6061       allow_undefined_flag=unsupported
6062       always_export_symbols=no
6063       enable_shared_with_static_runtimes=yes
6064       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6065
6066       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6068         # If the export-symbols file already is a .def file (1st line
6069         # is EXPORTS), use it as is; otherwise, prepend...
6070         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6071           cp $export_symbols $output_objdir/$soname.def;
6072         else
6073           echo EXPORTS > $output_objdir/$soname.def;
6074           cat $export_symbols >> $output_objdir/$soname.def;
6075         fi~
6076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6077       else
6078         ld_shlibs=no
6079       fi
6080       ;;
6081
6082     netbsd*)
6083       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6084         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6085         wlarc=
6086       else
6087         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6088         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6089       fi
6090       ;;
6091
6092     solaris* | sysv5*)
6093       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6094         ld_shlibs=no
6095         cat <<EOF 1>&2
6096
6097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6098 *** create shared libraries on Solaris systems.  Therefore, libtool
6099 *** is disabling shared libraries support.  We urge you to upgrade GNU
6100 *** binutils to release 2.9.1 or newer.  Another option is to modify
6101 *** your PATH or compiler configuration so that the native linker is
6102 *** used, and then restart.
6103
6104 EOF
6105       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6108       else
6109         ld_shlibs=no
6110       fi
6111       ;;
6112
6113     sunos4*)
6114       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6115       wlarc=
6116       hardcode_direct=yes
6117       hardcode_shlibpath_var=no
6118       ;;
6119
6120     *)
6121       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6122         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6123         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6124       else
6125         ld_shlibs=no
6126       fi
6127       ;;
6128     esac
6129
6130     if test "$ld_shlibs" = yes; then
6131       runpath_var=LD_RUN_PATH
6132       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6133       export_dynamic_flag_spec='${wl}--export-dynamic'
6134       # ancient GNU ld didn't support --whole-archive et. al.
6135       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6136         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6137       else
6138         whole_archive_flag_spec=
6139       fi
6140     fi
6141   else
6142     # PORTME fill in a description of your system's linker (not GNU ld)
6143     case $host_os in
6144     aix3*)
6145       allow_undefined_flag=unsupported
6146       always_export_symbols=yes
6147       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'
6148       # Note: this linker hardcodes the directories in LIBPATH if there
6149       # are no directories specified by -L.
6150       hardcode_minus_L=yes
6151       if test "$GCC" = yes && test -z "$link_static_flag"; then
6152         # Neither direct hardcoding nor static linking is supported with a
6153         # broken collect2.
6154         hardcode_direct=unsupported
6155       fi
6156       ;;
6157
6158     aix4* | aix5*)
6159       if test "$host_cpu" = ia64; then
6160         # On IA64, the linker does run time linking by default, so we don't
6161         # have to do anything special.
6162         aix_use_runtimelinking=no
6163         exp_sym_flag='-Bexport'
6164         no_entry_flag=""
6165       else
6166         # If we're using GNU nm, then we don't want the "-C" option.
6167         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6168         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6169           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'
6170         else
6171           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'
6172         fi
6173         aix_use_runtimelinking=no
6174
6175         # Test if we are trying to use run time linking or normal
6176         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6177         # need to do runtime linking.
6178         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6179           for ld_flag in $LDFLAGS; do
6180           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6181             aix_use_runtimelinking=yes
6182             break
6183           fi
6184           done
6185         esac
6186
6187         exp_sym_flag='-bexport'
6188         no_entry_flag='-bnoentry'
6189       fi
6190
6191       # When large executables or shared objects are built, AIX ld can
6192       # have problems creating the table of contents.  If linking a library
6193       # or program results in "error TOC overflow" add -mminimal-toc to
6194       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6195       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6196
6197       archive_cmds=''
6198       hardcode_direct=yes
6199       hardcode_libdir_separator=':'
6200       link_all_deplibs=yes
6201
6202       if test "$GCC" = yes; then
6203         case $host_os in aix4.012|aix4.012.*)
6204         # We only want to do this on AIX 4.2 and lower, the check
6205         # below for broken collect2 doesn't work under 4.3+
6206           collect2name=`${CC} -print-prog-name=collect2`
6207           if test -f "$collect2name" && \
6208            strings "$collect2name" | grep resolve_lib_name >/dev/null
6209           then
6210           # We have reworked collect2
6211           hardcode_direct=yes
6212           else
6213           # We have old collect2
6214           hardcode_direct=unsupported
6215           # It fails to find uninstalled libraries when the uninstalled
6216           # path is not listed in the libpath.  Setting hardcode_minus_L
6217           # to unsupported forces relinking
6218           hardcode_minus_L=yes
6219           hardcode_libdir_flag_spec='-L$libdir'
6220           hardcode_libdir_separator=
6221           fi
6222         esac
6223         shared_flag='-shared'
6224       else
6225         # not using gcc
6226         if test "$host_cpu" = ia64; then
6227         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6228         # chokes on -Wl,-G. The following line is correct:
6229           shared_flag='-G'
6230         else
6231         if test "$aix_use_runtimelinking" = yes; then
6232             shared_flag='${wl}-G'
6233           else
6234             shared_flag='${wl}-bM:SRE'
6235         fi
6236         fi
6237       fi
6238
6239       # It seems that -bexpall does not export symbols beginning with
6240       # underscore (_), so it is better to generate a list of symbols to export.
6241       always_export_symbols=yes
6242       if test "$aix_use_runtimelinking" = yes; then
6243         # Warning - without using the other runtime loading flags (-brtl),
6244         # -berok will link without error, but may produce a broken library.
6245         allow_undefined_flag='-berok'
6246        # Determine the default libpath from the value encoded in an empty executable.
6247        cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253
6254 int
6255 main ()
6256 {
6257
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264   (eval $ac_link) 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -z "$ac_c_werror_flag"
6272                          || test ! -s conftest.err'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; } &&
6278          { ac_try='test -s conftest$ac_exeext'
6279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280   (eval $ac_try) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); }; }; then
6284
6285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6286 }'`
6287 # Check for a 64-bit object if we didn't find anything.
6288 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; }
6289 }'`; fi
6290 else
6291   echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 fi
6295 rm -f conftest.err conftest.$ac_objext \
6296       conftest$ac_exeext conftest.$ac_ext
6297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6298
6299        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6300         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"
6301        else
6302         if test "$host_cpu" = ia64; then
6303           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6304           allow_undefined_flag="-z nodefs"
6305           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"
6306         else
6307          # Determine the default libpath from the value encoded in an empty executable.
6308          cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314
6315 int
6316 main ()
6317 {
6318
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325   (eval $ac_link) 2>conftest.er1
6326   ac_status=$?
6327   grep -v '^ *+' conftest.er1 >conftest.err
6328   rm -f conftest.er1
6329   cat conftest.err >&5
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } &&
6332          { ac_try='test -z "$ac_c_werror_flag"
6333                          || test ! -s conftest.err'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; } &&
6339          { ac_try='test -s conftest$ac_exeext'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; }; then
6345
6346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6347 }'`
6348 # Check for a 64-bit object if we didn't find anything.
6349 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; }
6350 }'`; fi
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 fi
6356 rm -f conftest.err conftest.$ac_objext \
6357       conftest$ac_exeext conftest.$ac_ext
6358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6359
6360          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6361           # Warning - without using the other run time loading flags,
6362           # -berok will link without error, but may produce a broken library.
6363           no_undefined_flag=' ${wl}-bernotok'
6364           allow_undefined_flag=' ${wl}-berok'
6365           # -bexpall does not export symbols beginning with underscore (_)
6366           always_export_symbols=yes
6367           # Exported symbols can be pulled into shared objects from archives
6368           whole_archive_flag_spec=' '
6369           archive_cmds_need_lc=yes
6370           # This is similar to how AIX traditionally builds it's shared libraries.
6371           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'
6372         fi
6373       fi
6374       ;;
6375
6376     amigaos*)
6377       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)'
6378       hardcode_libdir_flag_spec='-L$libdir'
6379       hardcode_minus_L=yes
6380       # see comment about different semantics on the GNU ld section
6381       ld_shlibs=no
6382       ;;
6383
6384     bsdi4*)
6385       export_dynamic_flag_spec=-rdynamic
6386       ;;
6387
6388     cygwin* | mingw* | pw32*)
6389       # When not using gcc, we currently assume that we are using
6390       # Microsoft Visual C++.
6391       # hardcode_libdir_flag_spec is actually meaningless, as there is
6392       # no search path for DLLs.
6393       hardcode_libdir_flag_spec=' '
6394       allow_undefined_flag=unsupported
6395       # Tell ltmain to make .lib files, not .a files.
6396       libext=lib
6397       # Tell ltmain to make .dll files, not .so files.
6398       shrext=".dll"
6399       # FIXME: Setting linknames here is a bad hack.
6400       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6401       # The linker will automatically build a .lib file if we build a DLL.
6402       old_archive_From_new_cmds='true'
6403       # FIXME: Should let the user specify the lib program.
6404       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6405       fix_srcfile_path='`cygpath -w "$srcfile"`'
6406       enable_shared_with_static_runtimes=yes
6407       ;;
6408
6409     darwin* | rhapsody*)
6410     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6411       archive_cmds_need_lc=no
6412       case "$host_os" in
6413       rhapsody* | darwin1.[012])
6414         allow_undefined_flag='-undefined suppress'
6415         ;;
6416       *) # Darwin 1.3 on
6417         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6418         ;;
6419       esac
6420       # FIXME: Relying on posixy $() will cause problems for
6421       #        cross-compilation, but unfortunately the echo tests do not
6422       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6423       #        `"' quotes if we put them in here... so don't!
6424         lt_int_apple_cc_single_mod=no
6425         output_verbose_link_cmd='echo'
6426         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6427           lt_int_apple_cc_single_mod=yes
6428         fi
6429         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6430           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6431         else
6432         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'
6433       fi
6434       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6435       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6436         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6437           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}'
6438         else
6439           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}'
6440         fi
6441           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6442       hardcode_direct=no
6443       hardcode_automatic=yes
6444       hardcode_shlibpath_var=unsupported
6445       whole_archive_flag_spec='-all_load $convenience'
6446       link_all_deplibs=yes
6447     fi
6448       ;;
6449
6450     dgux*)
6451       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6452       hardcode_libdir_flag_spec='-L$libdir'
6453       hardcode_shlibpath_var=no
6454       ;;
6455
6456     freebsd1*)
6457       ld_shlibs=no
6458       ;;
6459
6460     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6461     # support.  Future versions do this automatically, but an explicit c++rt0.o
6462     # does not break anything, and helps significantly (at the cost of a little
6463     # extra space).
6464     freebsd2.2*)
6465       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6466       hardcode_libdir_flag_spec='-R$libdir'
6467       hardcode_direct=yes
6468       hardcode_shlibpath_var=no
6469       ;;
6470
6471     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6472     freebsd2*)
6473       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6474       hardcode_direct=yes
6475       hardcode_minus_L=yes
6476       hardcode_shlibpath_var=no
6477       ;;
6478
6479     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6480     freebsd*)
6481       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6482       hardcode_libdir_flag_spec='-R$libdir'
6483       hardcode_direct=yes
6484       hardcode_shlibpath_var=no
6485       ;;
6486
6487     hpux9*)
6488       if test "$GCC" = yes; then
6489         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'
6490       else
6491         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'
6492       fi
6493       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6494       hardcode_libdir_separator=:
6495       hardcode_direct=yes
6496
6497       # hardcode_minus_L: Not really in the search PATH,
6498       # but as the default location of the library.
6499       hardcode_minus_L=yes
6500       export_dynamic_flag_spec='${wl}-E'
6501       ;;
6502
6503     hpux10* | hpux11*)
6504       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6505         case "$host_cpu" in
6506         hppa*64*|ia64*)
6507           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6508           ;;
6509         *)
6510           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6511           ;;
6512         esac
6513       else
6514         case "$host_cpu" in
6515         hppa*64*|ia64*)
6516           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6517           ;;
6518         *)
6519           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6520           ;;
6521         esac
6522       fi
6523       if test "$with_gnu_ld" = no; then
6524         case "$host_cpu" in
6525         hppa*64*)
6526           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6527           hardcode_libdir_flag_spec_ld='+b $libdir'
6528           hardcode_libdir_separator=:
6529           hardcode_direct=no
6530           hardcode_shlibpath_var=no
6531           ;;
6532         ia64*)
6533           hardcode_libdir_flag_spec='-L$libdir'
6534           hardcode_direct=no
6535           hardcode_shlibpath_var=no
6536
6537           # hardcode_minus_L: Not really in the search PATH,
6538           # but as the default location of the library.
6539           hardcode_minus_L=yes
6540           ;;
6541         *)
6542           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6543           hardcode_libdir_separator=:
6544           hardcode_direct=yes
6545           export_dynamic_flag_spec='${wl}-E'
6546
6547           # hardcode_minus_L: Not really in the search PATH,
6548           # but as the default location of the library.
6549           hardcode_minus_L=yes
6550           ;;
6551         esac
6552       fi
6553       ;;
6554
6555     irix5* | irix6* | nonstopux*)
6556       if test "$GCC" = yes; then
6557         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'
6558       else
6559         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'
6560         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6561       fi
6562       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6563       hardcode_libdir_separator=:
6564       link_all_deplibs=yes
6565       ;;
6566
6567     netbsd*)
6568       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6569         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6570       else
6571         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6572       fi
6573       hardcode_libdir_flag_spec='-R$libdir'
6574       hardcode_direct=yes
6575       hardcode_shlibpath_var=no
6576       ;;
6577
6578     newsos6)
6579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6580       hardcode_direct=yes
6581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6582       hardcode_libdir_separator=:
6583       hardcode_shlibpath_var=no
6584       ;;
6585
6586     openbsd*)
6587       hardcode_direct=yes
6588       hardcode_shlibpath_var=no
6589       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6591         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6592         export_dynamic_flag_spec='${wl}-E'
6593       else
6594        case $host_os in
6595          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6596            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6597            hardcode_libdir_flag_spec='-R$libdir'
6598            ;;
6599          *)
6600            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6601            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6602            ;;
6603        esac
6604       fi
6605       ;;
6606
6607     os2*)
6608       hardcode_libdir_flag_spec='-L$libdir'
6609       hardcode_minus_L=yes
6610       allow_undefined_flag=unsupported
6611       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'
6612       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6613       ;;
6614
6615     osf3*)
6616       if test "$GCC" = yes; then
6617         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6618         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'
6619       else
6620         allow_undefined_flag=' -expect_unresolved \*'
6621         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'
6622       fi
6623       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6624       hardcode_libdir_separator=:
6625       ;;
6626
6627     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6628       if test "$GCC" = yes; then
6629         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6630         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'
6631         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6632       else
6633         allow_undefined_flag=' -expect_unresolved \*'
6634         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'
6635         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6636         $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'
6637
6638         # Both c and cxx compiler support -rpath directly
6639         hardcode_libdir_flag_spec='-rpath $libdir'
6640       fi
6641       hardcode_libdir_separator=:
6642       ;;
6643
6644     sco3.2v5*)
6645       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6646       hardcode_shlibpath_var=no
6647       export_dynamic_flag_spec='${wl}-Bexport'
6648       runpath_var=LD_RUN_PATH
6649       hardcode_runpath_var=yes
6650       ;;
6651
6652     solaris*)
6653       no_undefined_flag=' -z text'
6654       if test "$GCC" = yes; then
6655         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6656         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6657           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6658       else
6659         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6660         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6661         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6662       fi
6663       hardcode_libdir_flag_spec='-R$libdir'
6664       hardcode_shlibpath_var=no
6665       case $host_os in
6666       solaris2.[0-5] | solaris2.[0-5].*) ;;
6667       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6668         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6669       esac
6670       link_all_deplibs=yes
6671       ;;
6672
6673     sunos4*)
6674       if test "x$host_vendor" = xsequent; then
6675         # Use $CC to link under sequent, because it throws in some extra .o
6676         # files that make .init and .fini sections work.
6677         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6678       else
6679         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6680       fi
6681       hardcode_libdir_flag_spec='-L$libdir'
6682       hardcode_direct=yes
6683       hardcode_minus_L=yes
6684       hardcode_shlibpath_var=no
6685       ;;
6686
6687     sysv4)
6688       case $host_vendor in
6689         sni)
6690           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6691           hardcode_direct=yes # is this really true???
6692         ;;
6693         siemens)
6694           ## LD is ld it makes a PLAMLIB
6695           ## CC just makes a GrossModule.
6696           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6697           reload_cmds='$CC -r -o $output$reload_objs'
6698           hardcode_direct=no
6699         ;;
6700         motorola)
6701           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6702           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6703         ;;
6704       esac
6705       runpath_var='LD_RUN_PATH'
6706       hardcode_shlibpath_var=no
6707       ;;
6708
6709     sysv4.3*)
6710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6711       hardcode_shlibpath_var=no
6712       export_dynamic_flag_spec='-Bexport'
6713       ;;
6714
6715     sysv4*MP*)
6716       if test -d /usr/nec; then
6717         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718         hardcode_shlibpath_var=no
6719         runpath_var=LD_RUN_PATH
6720         hardcode_runpath_var=yes
6721         ld_shlibs=yes
6722       fi
6723       ;;
6724
6725     sysv4.2uw2*)
6726       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6727       hardcode_direct=yes
6728       hardcode_minus_L=no
6729       hardcode_shlibpath_var=no
6730       hardcode_runpath_var=yes
6731       runpath_var=LD_RUN_PATH
6732       ;;
6733
6734    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6735       no_undefined_flag='${wl}-z ${wl}text'
6736       if test "$GCC" = yes; then
6737         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6738       else
6739         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6740       fi
6741       runpath_var='LD_RUN_PATH'
6742       hardcode_shlibpath_var=no
6743       ;;
6744
6745     sysv5*)
6746       no_undefined_flag=' -z text'
6747       # $CC -shared without GNU ld will not create a library from C++
6748       # object files and a static libstdc++, better avoid it by now
6749       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6750       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6751                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6752       hardcode_libdir_flag_spec=
6753       hardcode_shlibpath_var=no
6754       runpath_var='LD_RUN_PATH'
6755       ;;
6756
6757     uts4*)
6758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6759       hardcode_libdir_flag_spec='-L$libdir'
6760       hardcode_shlibpath_var=no
6761       ;;
6762
6763     *)
6764       ld_shlibs=no
6765       ;;
6766     esac
6767   fi
6768
6769 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6770 echo "${ECHO_T}$ld_shlibs" >&6
6771 test "$ld_shlibs" = no && can_build_shared=no
6772
6773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6774 if test "$GCC" = yes; then
6775   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6776 fi
6777
6778 #
6779 # Do we need to explicitly link libc?
6780 #
6781 case "x$archive_cmds_need_lc" in
6782 x|xyes)
6783   # Assume -lc should be added
6784   archive_cmds_need_lc=yes
6785
6786   if test "$enable_shared" = yes && test "$GCC" = yes; then
6787     case $archive_cmds in
6788     *'~'*)
6789       # FIXME: we may have to deal with multi-command sequences.
6790       ;;
6791     '$CC '*)
6792       # Test whether the compiler implicitly links with -lc since on some
6793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6794       # to ld, don't add -lc before -lgcc.
6795       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6797       $rm conftest*
6798       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6799
6800       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   (eval $ac_compile) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); } 2>conftest.err; then
6805         soname=conftest
6806         lib=conftest
6807         libobjs=conftest.$ac_objext
6808         deplibs=
6809         wl=$lt_prog_compiler_wl
6810         compiler_flags=-v
6811         linker_flags=-v
6812         verstring=
6813         output_objdir=.
6814         libname=conftest
6815         lt_save_allow_undefined_flag=$allow_undefined_flag
6816         allow_undefined_flag=
6817         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6818   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }
6822         then
6823           archive_cmds_need_lc=no
6824         else
6825           archive_cmds_need_lc=yes
6826         fi
6827         allow_undefined_flag=$lt_save_allow_undefined_flag
6828       else
6829         cat conftest.err 1>&5
6830       fi
6831       $rm conftest*
6832       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6833 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6834       ;;
6835     esac
6836   fi
6837   ;;
6838 esac
6839
6840 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6842 hardcode_action=
6843 if test -n "$hardcode_libdir_flag_spec" || \
6844    test -n "$runpath_var " || \
6845    test "X$hardcode_automatic"="Xyes" ; then
6846
6847   # We can hardcode non-existant directories.
6848   if test "$hardcode_direct" != no &&
6849      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6850      # have to relink, otherwise we might link with an installed library
6851      # when we should be linking with a yet-to-be-installed one
6852      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6853      test "$hardcode_minus_L" != no; then
6854     # Linking always hardcodes the temporary library directory.
6855     hardcode_action=relink
6856   else
6857     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6858     hardcode_action=immediate
6859   fi
6860 else
6861   # We cannot hardcode anything, or else we can only hardcode existing
6862   # directories.
6863   hardcode_action=unsupported
6864 fi
6865 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6866 echo "${ECHO_T}$hardcode_action" >&6
6867
6868 if test "$hardcode_action" = relink; then
6869   # Fast installation is not supported
6870   enable_fast_install=no
6871 elif test "$shlibpath_overrides_runpath" = yes ||
6872      test "$enable_shared" = no; then
6873   # Fast installation is not necessary
6874   enable_fast_install=needless
6875 fi
6876
6877 striplib=
6878 old_striplib=
6879 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6880 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6881 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6882   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6883   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6884   echo "$as_me:$LINENO: result: yes" >&5
6885 echo "${ECHO_T}yes" >&6
6886 else
6887 # FIXME - insert some real tests, host_os isn't really good enough
6888   case $host_os in
6889    darwin*)
6890        if test -n "$STRIP" ; then
6891          striplib="$STRIP -x"
6892          echo "$as_me:$LINENO: result: yes" >&5
6893 echo "${ECHO_T}yes" >&6
6894        else
6895   echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6
6897 fi
6898        ;;
6899    *)
6900   echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6
6902     ;;
6903   esac
6904 fi
6905
6906 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6907 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6908 library_names_spec=
6909 libname_spec='lib$name'
6910 soname_spec=
6911 shrext=".so"
6912 postinstall_cmds=
6913 postuninstall_cmds=
6914 finish_cmds=
6915 finish_eval=
6916 shlibpath_var=
6917 shlibpath_overrides_runpath=unknown
6918 version_type=none
6919 dynamic_linker="$host_os ld.so"
6920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6921 if test "$GCC" = yes; then
6922   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6923   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6924     # if the path contains ";" then we assume it to be the separator
6925     # otherwise default to the standard path separator (i.e. ":") - it is
6926     # assumed that no part of a normal pathname contains ";" but that should
6927     # okay in the real world where ";" in dirpaths is itself problematic.
6928     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6929   else
6930     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6931   fi
6932 else
6933   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6934 fi
6935 need_lib_prefix=unknown
6936 hardcode_into_libs=no
6937
6938 # when you set need_version to no, make sure it does not cause -set_version
6939 # flags to be left without arguments
6940 need_version=unknown
6941
6942 case $host_os in
6943 aix3*)
6944   version_type=linux
6945   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6946   shlibpath_var=LIBPATH
6947
6948   # AIX 3 has no versioning support, so we append a major version to the name.
6949   soname_spec='${libname}${release}${shared_ext}$major'
6950   ;;
6951
6952 aix4* | aix5*)
6953   version_type=linux
6954   need_lib_prefix=no
6955   need_version=no
6956   hardcode_into_libs=yes
6957   if test "$host_cpu" = ia64; then
6958     # AIX 5 supports IA64
6959     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6960     shlibpath_var=LD_LIBRARY_PATH
6961   else
6962     # With GCC up to 2.95.x, collect2 would create an import file
6963     # for dependence libraries.  The import file would start with
6964     # the line `#! .'.  This would cause the generated library to
6965     # depend on `.', always an invalid library.  This was fixed in
6966     # development snapshots of GCC prior to 3.0.
6967     case $host_os in
6968       aix4 | aix4.[01] | aix4.[01].*)
6969       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6970            echo ' yes '
6971            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6972         :
6973       else
6974         can_build_shared=no
6975       fi
6976       ;;
6977     esac
6978     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6979     # soname into executable. Probably we can add versioning support to
6980     # collect2, so additional links can be useful in future.
6981     if test "$aix_use_runtimelinking" = yes; then
6982       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6983       # instead of lib<name>.a to let people know that these are not
6984       # typical AIX shared libraries.
6985       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986     else
6987       # We preserve .a as extension for shared libraries through AIX4.2
6988       # and later when we are not doing run time linking.
6989       library_names_spec='${libname}${release}.a $libname.a'
6990       soname_spec='${libname}${release}${shared_ext}$major'
6991     fi
6992     shlibpath_var=LIBPATH
6993   fi
6994   ;;
6995
6996 amigaos*)
6997   library_names_spec='$libname.ixlibrary $libname.a'
6998   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6999   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'
7000   ;;
7001
7002 beos*)
7003   library_names_spec='${libname}${shared_ext}'
7004   dynamic_linker="$host_os ld.so"
7005   shlibpath_var=LIBRARY_PATH
7006   ;;
7007
7008 bsdi4*)
7009   version_type=linux
7010   need_version=no
7011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012   soname_spec='${libname}${release}${shared_ext}$major'
7013   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7014   shlibpath_var=LD_LIBRARY_PATH
7015   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7016   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7017   # the default ld.so.conf also contains /usr/contrib/lib and
7018   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7019   # libtool to hard-code these into programs
7020   ;;
7021
7022 cygwin* | mingw* | pw32*)
7023   version_type=windows
7024   shrext=".dll"
7025   need_version=no
7026   need_lib_prefix=no
7027
7028   case $GCC,$host_os in
7029   yes,cygwin* | yes,mingw* | yes,pw32*)
7030     library_names_spec='$libname.dll.a'
7031     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7032     postinstall_cmds='base_file=`basename \${file}`~
7033       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7034       dldir=$destdir/`dirname \$dlpath`~
7035       test -d \$dldir || mkdir -p \$dldir~
7036       $install_prog $dir/$dlname \$dldir/$dlname'
7037     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7038       dlpath=$dir/\$dldll~
7039        $rm \$dlpath'
7040     shlibpath_overrides_runpath=yes
7041
7042     case $host_os in
7043     cygwin*)
7044       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7045       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7046       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7047       ;;
7048     mingw*)
7049       # MinGW DLLs use traditional 'lib' prefix
7050       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7051       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7052       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7053         # It is most probably a Windows format PATH printed by
7054         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7055         # path with ; separators, and with drive letters. We can handle the
7056         # drive letters (cygwin fileutils understands them), so leave them,
7057         # especially as we might pass files found there to a mingw objdump,
7058         # which wouldn't understand a cygwinified path. Ahh.
7059         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7060       else
7061         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7062       fi
7063       ;;
7064     pw32*)
7065       # pw32 DLLs use 'pw' prefix rather than 'lib'
7066       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7067       ;;
7068     esac
7069     ;;
7070
7071   *)
7072     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7073     ;;
7074   esac
7075   dynamic_linker='Win32 ld.exe'
7076   # FIXME: first we should search . and the directory the executable is in
7077   shlibpath_var=PATH
7078   ;;
7079
7080 darwin* | rhapsody*)
7081   dynamic_linker="$host_os dyld"
7082   version_type=darwin
7083   need_lib_prefix=no
7084   need_version=no
7085   # FIXME: Relying on posixy $() will cause problems for
7086   #        cross-compilation, but unfortunately the echo tests do not
7087   #        yet detect zsh echo's removal of \ escapes.
7088   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7089   soname_spec='${libname}${release}${major}$shared_ext'
7090   shlibpath_overrides_runpath=yes
7091   shlibpath_var=DYLD_LIBRARY_PATH
7092   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7093   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7094   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7095   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"`
7096   fi
7097   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7098   ;;
7099
7100 dgux*)
7101   version_type=linux
7102   need_lib_prefix=no
7103   need_version=no
7104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7105   soname_spec='${libname}${release}${shared_ext}$major'
7106   shlibpath_var=LD_LIBRARY_PATH
7107   ;;
7108
7109 freebsd1*)
7110   dynamic_linker=no
7111   ;;
7112
7113 freebsd*)
7114   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7115   version_type=freebsd-$objformat
7116   case $version_type in
7117     freebsd-elf*)
7118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7119       need_version=no
7120       need_lib_prefix=no
7121       ;;
7122     freebsd-*)
7123       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7124       need_version=yes
7125       ;;
7126   esac
7127   shlibpath_var=LD_LIBRARY_PATH
7128   case $host_os in
7129   freebsd2*)
7130     shlibpath_overrides_runpath=yes
7131     ;;
7132   freebsd3.01* | freebsdelf3.01*)
7133     shlibpath_overrides_runpath=yes
7134     hardcode_into_libs=yes
7135     ;;
7136   *) # from 3.2 on
7137     shlibpath_overrides_runpath=no
7138     hardcode_into_libs=yes
7139     ;;
7140   esac
7141   ;;
7142
7143 gnu*)
7144   version_type=linux
7145   need_lib_prefix=no
7146   need_version=no
7147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7148   soname_spec='${libname}${release}${shared_ext}$major'
7149   shlibpath_var=LD_LIBRARY_PATH
7150   hardcode_into_libs=yes
7151   ;;
7152
7153 hpux9* | hpux10* | hpux11*)
7154   # Give a soname corresponding to the major version so that dld.sl refuses to
7155   # link against other versions.
7156   version_type=sunos
7157   need_lib_prefix=no
7158   need_version=no
7159   case "$host_cpu" in
7160   ia64*)
7161     shrext='.so'
7162     hardcode_into_libs=yes
7163     dynamic_linker="$host_os dld.so"
7164     shlibpath_var=LD_LIBRARY_PATH
7165     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7167     soname_spec='${libname}${release}${shared_ext}$major'
7168     if test "X$HPUX_IA64_MODE" = X32; then
7169       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7170     else
7171       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7172     fi
7173     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7174     ;;
7175    hppa*64*)
7176      shrext='.sl'
7177      hardcode_into_libs=yes
7178      dynamic_linker="$host_os dld.sl"
7179      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7180      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7181      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7182      soname_spec='${libname}${release}${shared_ext}$major'
7183      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7184      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7185      ;;
7186    *)
7187     shrext='.sl'
7188     dynamic_linker="$host_os dld.sl"
7189     shlibpath_var=SHLIB_PATH
7190     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7192     soname_spec='${libname}${release}${shared_ext}$major'
7193     ;;
7194   esac
7195   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7196   postinstall_cmds='chmod 555 $lib'
7197   ;;
7198
7199 irix5* | irix6* | nonstopux*)
7200   case $host_os in
7201     nonstopux*) version_type=nonstopux ;;
7202     *)
7203         if test "$lt_cv_prog_gnu_ld" = yes; then
7204                 version_type=linux
7205         else
7206                 version_type=irix
7207         fi ;;
7208   esac
7209   need_lib_prefix=no
7210   need_version=no
7211   soname_spec='${libname}${release}${shared_ext}$major'
7212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7213   case $host_os in
7214   irix5* | nonstopux*)
7215     libsuff= shlibsuff=
7216     ;;
7217   *)
7218     case $LD in # libtool.m4 will add one of these switches to LD
7219     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7220       libsuff= shlibsuff= libmagic=32-bit;;
7221     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7222       libsuff=32 shlibsuff=N32 libmagic=N32;;
7223     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7224       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7225     *) libsuff= shlibsuff= libmagic=never-match;;
7226     esac
7227     ;;
7228   esac
7229   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7230   shlibpath_overrides_runpath=no
7231   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7232   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7233   hardcode_into_libs=yes
7234   ;;
7235
7236 # No shared lib support for Linux oldld, aout, or coff.
7237 linux*oldld* | linux*aout* | linux*coff*)
7238   dynamic_linker=no
7239   ;;
7240
7241 # This must be Linux ELF.
7242 linux*)
7243   version_type=linux
7244   need_lib_prefix=no
7245   need_version=no
7246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247   soname_spec='${libname}${release}${shared_ext}$major'
7248   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7249   shlibpath_var=LD_LIBRARY_PATH
7250   shlibpath_overrides_runpath=no
7251   # This implies no fast_install, which is unacceptable.
7252   # Some rework will be needed to allow for fast_install
7253   # before this can be enabled.
7254   hardcode_into_libs=yes
7255
7256   # We used to test for /lib/ld.so.1 and disable shared libraries on
7257   # powerpc, because MkLinux only supported shared libraries with the
7258   # GNU dynamic linker.  Since this was broken with cross compilers,
7259   # most powerpc-linux boxes support dynamic linking these days and
7260   # people can always --disable-shared, the test was removed, and we
7261   # assume the GNU/Linux dynamic linker is in use.
7262   dynamic_linker='GNU/Linux ld.so'
7263   ;;
7264
7265 netbsd*)
7266   version_type=sunos
7267   need_lib_prefix=no
7268   need_version=no
7269   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7271     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7272     dynamic_linker='NetBSD (a.out) ld.so'
7273   else
7274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7275     soname_spec='${libname}${release}${shared_ext}$major'
7276     dynamic_linker='NetBSD ld.elf_so'
7277   fi
7278   shlibpath_var=LD_LIBRARY_PATH
7279   shlibpath_overrides_runpath=yes
7280   hardcode_into_libs=yes
7281   ;;
7282
7283 newsos6)
7284   version_type=linux
7285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286   shlibpath_var=LD_LIBRARY_PATH
7287   shlibpath_overrides_runpath=yes
7288   ;;
7289
7290 nto-qnx)
7291   version_type=linux
7292   need_lib_prefix=no
7293   need_version=no
7294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7295   soname_spec='${libname}${release}${shared_ext}$major'
7296   shlibpath_var=LD_LIBRARY_PATH
7297   shlibpath_overrides_runpath=yes
7298   ;;
7299
7300 openbsd*)
7301   version_type=sunos
7302   need_lib_prefix=no
7303   need_version=no
7304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7306   shlibpath_var=LD_LIBRARY_PATH
7307   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7308     case $host_os in
7309       openbsd2.[89] | openbsd2.[89].*)
7310         shlibpath_overrides_runpath=no
7311         ;;
7312       *)
7313         shlibpath_overrides_runpath=yes
7314         ;;
7315       esac
7316   else
7317     shlibpath_overrides_runpath=yes
7318   fi
7319   ;;
7320
7321 os2*)
7322   libname_spec='$name'
7323   shrext=".dll"
7324   need_lib_prefix=no
7325   library_names_spec='$libname${shared_ext} $libname.a'
7326   dynamic_linker='OS/2 ld.exe'
7327   shlibpath_var=LIBPATH
7328   ;;
7329
7330 osf3* | osf4* | osf5*)
7331   version_type=osf
7332   need_lib_prefix=no
7333   need_version=no
7334   soname_spec='${libname}${release}${shared_ext}$major'
7335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7336   shlibpath_var=LD_LIBRARY_PATH
7337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7338   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7339   ;;
7340
7341 sco3.2v5*)
7342   version_type=osf
7343   soname_spec='${libname}${release}${shared_ext}$major'
7344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345   shlibpath_var=LD_LIBRARY_PATH
7346   ;;
7347
7348 solaris*)
7349   version_type=linux
7350   need_lib_prefix=no
7351   need_version=no
7352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7353   soname_spec='${libname}${release}${shared_ext}$major'
7354   shlibpath_var=LD_LIBRARY_PATH
7355   shlibpath_overrides_runpath=yes
7356   hardcode_into_libs=yes
7357   # ldd complains unless libraries are executable
7358   postinstall_cmds='chmod +x $lib'
7359   ;;
7360
7361 sunos4*)
7362   version_type=sunos
7363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7364   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7365   shlibpath_var=LD_LIBRARY_PATH
7366   shlibpath_overrides_runpath=yes
7367   if test "$with_gnu_ld" = yes; then
7368     need_lib_prefix=no
7369   fi
7370   need_version=yes
7371   ;;
7372
7373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7374   version_type=linux
7375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7376   soname_spec='${libname}${release}${shared_ext}$major'
7377   shlibpath_var=LD_LIBRARY_PATH
7378   case $host_vendor in
7379     sni)
7380       shlibpath_overrides_runpath=no
7381       need_lib_prefix=no
7382       export_dynamic_flag_spec='${wl}-Blargedynsym'
7383       runpath_var=LD_RUN_PATH
7384       ;;
7385     siemens)
7386       need_lib_prefix=no
7387       ;;
7388     motorola)
7389       need_lib_prefix=no
7390       need_version=no
7391       shlibpath_overrides_runpath=no
7392       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7393       ;;
7394   esac
7395   ;;
7396
7397 sysv4*MP*)
7398   if test -d /usr/nec ;then
7399     version_type=linux
7400     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7401     soname_spec='$libname${shared_ext}.$major'
7402     shlibpath_var=LD_LIBRARY_PATH
7403   fi
7404   ;;
7405
7406 uts4*)
7407   version_type=linux
7408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7409   soname_spec='${libname}${release}${shared_ext}$major'
7410   shlibpath_var=LD_LIBRARY_PATH
7411   ;;
7412
7413 *)
7414   dynamic_linker=no
7415   ;;
7416 esac
7417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7418 echo "${ECHO_T}$dynamic_linker" >&6
7419 test "$dynamic_linker" = no && can_build_shared=no
7420
7421 if test "x$enable_dlopen" != xyes; then
7422   enable_dlopen=unknown
7423   enable_dlopen_self=unknown
7424   enable_dlopen_self_static=unknown
7425 else
7426   lt_cv_dlopen=no
7427   lt_cv_dlopen_libs=
7428
7429   case $host_os in
7430   beos*)
7431     lt_cv_dlopen="load_add_on"
7432     lt_cv_dlopen_libs=
7433     lt_cv_dlopen_self=yes
7434     ;;
7435
7436   mingw* | pw32*)
7437     lt_cv_dlopen="LoadLibrary"
7438     lt_cv_dlopen_libs=
7439    ;;
7440
7441   cygwin*)
7442     lt_cv_dlopen="dlopen"
7443     lt_cv_dlopen_libs=
7444    ;;
7445
7446   darwin*)
7447   # if libdl is installed we need to link against it
7448     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   ac_check_lib_save_LIBS=$LIBS
7454 LIBS="-ldl  $LIBS"
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461
7462 /* Override any gcc2 internal prototype to avoid an error.  */
7463 #ifdef __cplusplus
7464 extern "C"
7465 #endif
7466 /* We use char because int might match the return type of a gcc2
7467    builtin and then its argument prototype would still apply.  */
7468 char dlopen ();
7469 int
7470 main ()
7471 {
7472 dlopen ();
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>conftest.er1
7480   ac_status=$?
7481   grep -v '^ *+' conftest.er1 >conftest.err
7482   rm -f conftest.er1
7483   cat conftest.err >&5
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } &&
7486          { ac_try='test -z "$ac_c_werror_flag"
7487                          || test ! -s conftest.err'
7488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489   (eval $ac_try) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); }; } &&
7493          { ac_try='test -s conftest$ac_exeext'
7494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495   (eval $ac_try) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); }; }; then
7499   ac_cv_lib_dl_dlopen=yes
7500 else
7501   echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504 ac_cv_lib_dl_dlopen=no
7505 fi
7506 rm -f conftest.err conftest.$ac_objext \
7507       conftest$ac_exeext conftest.$ac_ext
7508 LIBS=$ac_check_lib_save_LIBS
7509 fi
7510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7512 if test $ac_cv_lib_dl_dlopen = yes; then
7513   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7514 else
7515
7516     lt_cv_dlopen="dyld"
7517     lt_cv_dlopen_libs=
7518     lt_cv_dlopen_self=yes
7519
7520 fi
7521
7522    ;;
7523
7524   *)
7525     echo "$as_me:$LINENO: checking for shl_load" >&5
7526 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7527 if test "${ac_cv_func_shl_load+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7538 #define shl_load innocuous_shl_load
7539
7540 /* System header to define __stub macros and hopefully few prototypes,
7541     which can conflict with char shl_load (); below.
7542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7543     <limits.h> exists even on freestanding compilers.  */
7544
7545 #ifdef __STDC__
7546 # include <limits.h>
7547 #else
7548 # include <assert.h>
7549 #endif
7550
7551 #undef shl_load
7552
7553 /* Override any gcc2 internal prototype to avoid an error.  */
7554 #ifdef __cplusplus
7555 extern "C"
7556 {
7557 #endif
7558 /* We use char because int might match the return type of a gcc2
7559    builtin and then its argument prototype would still apply.  */
7560 char shl_load ();
7561 /* The GNU C library defines this for functions which it implements
7562     to always fail with ENOSYS.  Some functions are actually named
7563     something starting with __ and the normal name is an alias.  */
7564 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7565 choke me
7566 #else
7567 char (*f) () = shl_load;
7568 #endif
7569 #ifdef __cplusplus
7570 }
7571 #endif
7572
7573 int
7574 main ()
7575 {
7576 return f != shl_load;
7577   ;
7578   return 0;
7579 }
7580 _ACEOF
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583   (eval $ac_link) 2>conftest.er1
7584   ac_status=$?
7585   grep -v '^ *+' conftest.er1 >conftest.err
7586   rm -f conftest.er1
7587   cat conftest.err >&5
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); } &&
7590          { ac_try='test -z "$ac_c_werror_flag"
7591                          || test ! -s conftest.err'
7592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593   (eval $ac_try) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); }; } &&
7597          { ac_try='test -s conftest$ac_exeext'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; }; then
7603   ac_cv_func_shl_load=yes
7604 else
7605   echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608 ac_cv_func_shl_load=no
7609 fi
7610 rm -f conftest.err conftest.$ac_objext \
7611       conftest$ac_exeext conftest.$ac_ext
7612 fi
7613 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7614 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7615 if test $ac_cv_func_shl_load = yes; then
7616   lt_cv_dlopen="shl_load"
7617 else
7618   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7619 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   ac_check_lib_save_LIBS=$LIBS
7624 LIBS="-ldld  $LIBS"
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h.  */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h.  */
7631
7632 /* Override any gcc2 internal prototype to avoid an error.  */
7633 #ifdef __cplusplus
7634 extern "C"
7635 #endif
7636 /* We use char because int might match the return type of a gcc2
7637    builtin and then its argument prototype would still apply.  */
7638 char shl_load ();
7639 int
7640 main ()
7641 {
7642 shl_load ();
7643   ;
7644   return 0;
7645 }
7646 _ACEOF
7647 rm -f conftest.$ac_objext conftest$ac_exeext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7649   (eval $ac_link) 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -z "$ac_c_werror_flag"
7657                          || test ! -s conftest.err'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; } &&
7663          { ac_try='test -s conftest$ac_exeext'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   ac_cv_lib_dld_shl_load=yes
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ac_cv_lib_dld_shl_load=no
7675 fi
7676 rm -f conftest.err conftest.$ac_objext \
7677       conftest$ac_exeext conftest.$ac_ext
7678 LIBS=$ac_check_lib_save_LIBS
7679 fi
7680 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7682 if test $ac_cv_lib_dld_shl_load = yes; then
7683   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7684 else
7685   echo "$as_me:$LINENO: checking for dlopen" >&5
7686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7687 if test "${ac_cv_func_dlopen+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7698 #define dlopen innocuous_dlopen
7699
7700 /* System header to define __stub macros and hopefully few prototypes,
7701     which can conflict with char dlopen (); below.
7702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7703     <limits.h> exists even on freestanding compilers.  */
7704
7705 #ifdef __STDC__
7706 # include <limits.h>
7707 #else
7708 # include <assert.h>
7709 #endif
7710
7711 #undef dlopen
7712
7713 /* Override any gcc2 internal prototype to avoid an error.  */
7714 #ifdef __cplusplus
7715 extern "C"
7716 {
7717 #endif
7718 /* We use char because int might match the return type of a gcc2
7719    builtin and then its argument prototype would still apply.  */
7720 char dlopen ();
7721 /* The GNU C library defines this for functions which it implements
7722     to always fail with ENOSYS.  Some functions are actually named
7723     something starting with __ and the normal name is an alias.  */
7724 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7725 choke me
7726 #else
7727 char (*f) () = dlopen;
7728 #endif
7729 #ifdef __cplusplus
7730 }
7731 #endif
7732
7733 int
7734 main ()
7735 {
7736 return f != dlopen;
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743   (eval $ac_link) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest$ac_exeext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_cv_func_dlopen=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_func_dlopen=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext \
7771       conftest$ac_exeext conftest.$ac_ext
7772 fi
7773 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7774 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7775 if test $ac_cv_func_dlopen = yes; then
7776   lt_cv_dlopen="dlopen"
7777 else
7778   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7779 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7780 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   ac_check_lib_save_LIBS=$LIBS
7784 LIBS="-ldl  $LIBS"
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791
7792 /* Override any gcc2 internal prototype to avoid an error.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 #endif
7796 /* We use char because int might match the return type of a gcc2
7797    builtin and then its argument prototype would still apply.  */
7798 char dlopen ();
7799 int
7800 main ()
7801 {
7802 dlopen ();
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809   (eval $ac_link) 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } &&
7816          { ac_try='test -z "$ac_c_werror_flag"
7817                          || test ! -s conftest.err'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; } &&
7823          { ac_try='test -s conftest$ac_exeext'
7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825   (eval $ac_try) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; }; then
7829   ac_cv_lib_dl_dlopen=yes
7830 else
7831   echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834 ac_cv_lib_dl_dlopen=no
7835 fi
7836 rm -f conftest.err conftest.$ac_objext \
7837       conftest$ac_exeext conftest.$ac_ext
7838 LIBS=$ac_check_lib_save_LIBS
7839 fi
7840 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7842 if test $ac_cv_lib_dl_dlopen = yes; then
7843   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7844 else
7845   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7846 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   ac_check_lib_save_LIBS=$LIBS
7851 LIBS="-lsvld  $LIBS"
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 /* Override any gcc2 internal prototype to avoid an error.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 /* We use char because int might match the return type of a gcc2
7864    builtin and then its argument prototype would still apply.  */
7865 char dlopen ();
7866 int
7867 main ()
7868 {
7869 dlopen ();
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876   (eval $ac_link) 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag"
7884                          || test ! -s conftest.err'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   ac_cv_lib_svld_dlopen=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ac_cv_lib_svld_dlopen=no
7902 fi
7903 rm -f conftest.err conftest.$ac_objext \
7904       conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7906 fi
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909 if test $ac_cv_lib_svld_dlopen = yes; then
7910   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7911 else
7912   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   ac_check_lib_save_LIBS=$LIBS
7918 LIBS="-ldld  $LIBS"
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925
7926 /* Override any gcc2 internal prototype to avoid an error.  */
7927 #ifdef __cplusplus
7928 extern "C"
7929 #endif
7930 /* We use char because int might match the return type of a gcc2
7931    builtin and then its argument prototype would still apply.  */
7932 char dld_link ();
7933 int
7934 main ()
7935 {
7936 dld_link ();
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943   (eval $ac_link) 2>conftest.er1
7944   ac_status=$?
7945   grep -v '^ *+' conftest.er1 >conftest.err
7946   rm -f conftest.er1
7947   cat conftest.err >&5
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -z "$ac_c_werror_flag"
7951                          || test ! -s conftest.err'
7952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953   (eval $ac_try) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   ac_cv_lib_dld_dld_link=yes
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968 ac_cv_lib_dld_dld_link=no
7969 fi
7970 rm -f conftest.err conftest.$ac_objext \
7971       conftest$ac_exeext conftest.$ac_ext
7972 LIBS=$ac_check_lib_save_LIBS
7973 fi
7974 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7975 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7976 if test $ac_cv_lib_dld_dld_link = yes; then
7977   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7978 fi
7979
7980
7981 fi
7982
7983
7984 fi
7985
7986
7987 fi
7988
7989
7990 fi
7991
7992
7993 fi
7994
7995     ;;
7996   esac
7997
7998   if test "x$lt_cv_dlopen" != xno; then
7999     enable_dlopen=yes
8000   else
8001     enable_dlopen=no
8002   fi
8003
8004   case $lt_cv_dlopen in
8005   dlopen)
8006     save_CPPFLAGS="$CPPFLAGS"
8007     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8008
8009     save_LDFLAGS="$LDFLAGS"
8010     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8011
8012     save_LIBS="$LIBS"
8013     LIBS="$lt_cv_dlopen_libs $LIBS"
8014
8015     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8016 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8017 if test "${lt_cv_dlopen_self+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020           if test "$cross_compiling" = yes; then :
8021   lt_cv_dlopen_self=cross
8022 else
8023   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8024   lt_status=$lt_dlunknown
8025   cat > conftest.$ac_ext <<EOF
8026 #line 8026 "configure"
8027 #include "confdefs.h"
8028
8029 #if HAVE_DLFCN_H
8030 #include <dlfcn.h>
8031 #endif
8032
8033 #include <stdio.h>
8034
8035 #ifdef RTLD_GLOBAL
8036 #  define LT_DLGLOBAL           RTLD_GLOBAL
8037 #else
8038 #  ifdef DL_GLOBAL
8039 #    define LT_DLGLOBAL         DL_GLOBAL
8040 #  else
8041 #    define LT_DLGLOBAL         0
8042 #  endif
8043 #endif
8044
8045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8046    find out it does not work in some platform. */
8047 #ifndef LT_DLLAZY_OR_NOW
8048 #  ifdef RTLD_LAZY
8049 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8050 #  else
8051 #    ifdef DL_LAZY
8052 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8053 #    else
8054 #      ifdef RTLD_NOW
8055 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8056 #      else
8057 #        ifdef DL_NOW
8058 #          define LT_DLLAZY_OR_NOW      DL_NOW
8059 #        else
8060 #          define LT_DLLAZY_OR_NOW      0
8061 #        endif
8062 #      endif
8063 #    endif
8064 #  endif
8065 #endif
8066
8067 #ifdef __cplusplus
8068 extern "C" void exit (int);
8069 #endif
8070
8071 void fnord() { int i=42;}
8072 int main ()
8073 {
8074   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8075   int status = $lt_dlunknown;
8076
8077   if (self)
8078     {
8079       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8080       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8081       /* dlclose (self); */
8082     }
8083
8084     exit (status);
8085 }
8086 EOF
8087   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088   (eval $ac_link) 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8092     (./conftest; exit; ) 2>/dev/null
8093     lt_status=$?
8094     case x$lt_status in
8095       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8096       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8097       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8098     esac
8099   else :
8100     # compilation failed
8101     lt_cv_dlopen_self=no
8102   fi
8103 fi
8104 rm -fr conftest*
8105
8106
8107 fi
8108 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8109 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8110
8111     if test "x$lt_cv_dlopen_self" = xyes; then
8112       LDFLAGS="$LDFLAGS $link_static_flag"
8113       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8114 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8115 if test "${lt_cv_dlopen_self_static+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118           if test "$cross_compiling" = yes; then :
8119   lt_cv_dlopen_self_static=cross
8120 else
8121   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8122   lt_status=$lt_dlunknown
8123   cat > conftest.$ac_ext <<EOF
8124 #line 8124 "configure"
8125 #include "confdefs.h"
8126
8127 #if HAVE_DLFCN_H
8128 #include <dlfcn.h>
8129 #endif
8130
8131 #include <stdio.h>
8132
8133 #ifdef RTLD_GLOBAL
8134 #  define LT_DLGLOBAL           RTLD_GLOBAL
8135 #else
8136 #  ifdef DL_GLOBAL
8137 #    define LT_DLGLOBAL         DL_GLOBAL
8138 #  else
8139 #    define LT_DLGLOBAL         0
8140 #  endif
8141 #endif
8142
8143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8144    find out it does not work in some platform. */
8145 #ifndef LT_DLLAZY_OR_NOW
8146 #  ifdef RTLD_LAZY
8147 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8148 #  else
8149 #    ifdef DL_LAZY
8150 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8151 #    else
8152 #      ifdef RTLD_NOW
8153 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8154 #      else
8155 #        ifdef DL_NOW
8156 #          define LT_DLLAZY_OR_NOW      DL_NOW
8157 #        else
8158 #          define LT_DLLAZY_OR_NOW      0
8159 #        endif
8160 #      endif
8161 #    endif
8162 #  endif
8163 #endif
8164
8165 #ifdef __cplusplus
8166 extern "C" void exit (int);
8167 #endif
8168
8169 void fnord() { int i=42;}
8170 int main ()
8171 {
8172   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8173   int status = $lt_dlunknown;
8174
8175   if (self)
8176     {
8177       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8178       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8179       /* dlclose (self); */
8180     }
8181
8182     exit (status);
8183 }
8184 EOF
8185   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8190     (./conftest; exit; ) 2>/dev/null
8191     lt_status=$?
8192     case x$lt_status in
8193       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8194       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8195       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8196     esac
8197   else :
8198     # compilation failed
8199     lt_cv_dlopen_self_static=no
8200   fi
8201 fi
8202 rm -fr conftest*
8203
8204
8205 fi
8206 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8207 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8208     fi
8209
8210     CPPFLAGS="$save_CPPFLAGS"
8211     LDFLAGS="$save_LDFLAGS"
8212     LIBS="$save_LIBS"
8213     ;;
8214   esac
8215
8216   case $lt_cv_dlopen_self in
8217   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8218   *) enable_dlopen_self=unknown ;;
8219   esac
8220
8221   case $lt_cv_dlopen_self_static in
8222   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8223   *) enable_dlopen_self_static=unknown ;;
8224   esac
8225 fi
8226
8227
8228 # Report which librarie types wil actually be built
8229 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8230 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8231 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8232 echo "${ECHO_T}$can_build_shared" >&6
8233
8234 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8235 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8236 test "$can_build_shared" = "no" && enable_shared=no
8237
8238 # On AIX, shared libraries and static libraries use the same namespace, and
8239 # are all built from PIC.
8240 case "$host_os" in
8241 aix3*)
8242   test "$enable_shared" = yes && enable_static=no
8243   if test -n "$RANLIB"; then
8244     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8245     postinstall_cmds='$RANLIB $lib'
8246   fi
8247   ;;
8248
8249 aix4*)
8250   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8251     test "$enable_shared" = yes && enable_static=no
8252   fi
8253   ;;
8254   darwin* | rhapsody*)
8255   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8256     archive_cmds_need_lc=no
8257     case "$host_os" in
8258     rhapsody* | darwin1.[012])
8259       allow_undefined_flag='-undefined suppress'
8260       ;;
8261     *) # Darwin 1.3 on
8262       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8263       ;;
8264     esac
8265     # FIXME: Relying on posixy $() will cause problems for
8266     #        cross-compilation, but unfortunately the echo tests do not
8267     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8268     #          `"' quotes if we put them in here... so don't!
8269                 output_verbose_link_cmd='echo'
8270     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8271     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8272     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8273                   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}'
8274                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8275     hardcode_direct=no
8276     hardcode_automatic=yes
8277     hardcode_shlibpath_var=unsupported
8278     whole_archive_flag_spec='-all_load $convenience'
8279     link_all_deplibs=yes
8280     fi
8281     ;;
8282 esac
8283 echo "$as_me:$LINENO: result: $enable_shared" >&5
8284 echo "${ECHO_T}$enable_shared" >&6
8285
8286 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8287 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8288 # Make sure either enable_shared or enable_static is yes.
8289 test "$enable_shared" = yes || enable_static=yes
8290 echo "$as_me:$LINENO: result: $enable_static" >&5
8291 echo "${ECHO_T}$enable_static" >&6
8292
8293 # The else clause should only fire when bootstrapping the
8294 # libtool distribution, otherwise you forgot to ship ltmain.sh
8295 # with your package, and you will get complaints that there are
8296 # no rules to generate ltmain.sh.
8297 if test -f "$ltmain"; then
8298   # See if we are running on zsh, and set the options which allow our commands through
8299   # without removal of \ escapes.
8300   if test -n "${ZSH_VERSION+set}" ; then
8301     setopt NO_GLOB_SUBST
8302   fi
8303   # Now quote all the things that may contain metacharacters while being
8304   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8305   # variables and quote the copies for generation of the libtool script.
8306   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8307     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8308     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8309     deplibs_check_method reload_flag reload_cmds need_locks \
8310     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8311     lt_cv_sys_global_symbol_to_c_name_address \
8312     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8313     old_postinstall_cmds old_postuninstall_cmds \
8314     compiler \
8315     CC \
8316     LD \
8317     lt_prog_compiler_wl \
8318     lt_prog_compiler_pic \
8319     lt_prog_compiler_static \
8320     lt_prog_compiler_no_builtin_flag \
8321     export_dynamic_flag_spec \
8322     thread_safe_flag_spec \
8323     whole_archive_flag_spec \
8324     enable_shared_with_static_runtimes \
8325     old_archive_cmds \
8326     old_archive_from_new_cmds \
8327     predep_objects \
8328     postdep_objects \
8329     predeps \
8330     postdeps \
8331     compiler_lib_search_path \
8332     archive_cmds \
8333     archive_expsym_cmds \
8334     postinstall_cmds \
8335     postuninstall_cmds \
8336     old_archive_from_expsyms_cmds \
8337     allow_undefined_flag \
8338     no_undefined_flag \
8339     export_symbols_cmds \
8340     hardcode_libdir_flag_spec \
8341     hardcode_libdir_flag_spec_ld \
8342     hardcode_libdir_separator \
8343     hardcode_automatic \
8344     module_cmds \
8345     module_expsym_cmds \
8346     lt_cv_prog_compiler_c_o \
8347     exclude_expsyms \
8348     include_expsyms; do
8349
8350     case $var in
8351     old_archive_cmds | \
8352     old_archive_from_new_cmds | \
8353     archive_cmds | \
8354     archive_expsym_cmds | \
8355     module_cmds | \
8356     module_expsym_cmds | \
8357     old_archive_from_expsyms_cmds | \
8358     export_symbols_cmds | \
8359     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8360     postinstall_cmds | postuninstall_cmds | \
8361     old_postinstall_cmds | old_postuninstall_cmds | \
8362     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8363       # Double-quote double-evaled strings.
8364       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8365       ;;
8366     *)
8367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8368       ;;
8369     esac
8370   done
8371
8372   case $lt_echo in
8373   *'\$0 --fallback-echo"')
8374     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8375     ;;
8376   esac
8377
8378 cfgfile="${ofile}T"
8379   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8380   $rm -f "$cfgfile"
8381   { echo "$as_me:$LINENO: creating $ofile" >&5
8382 echo "$as_me: creating $ofile" >&6;}
8383
8384   cat <<__EOF__ >> "$cfgfile"
8385 #! $SHELL
8386
8387 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8388 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8390 #
8391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8392 # Free Software Foundation, Inc.
8393 #
8394 # This file is part of GNU Libtool:
8395 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8396 #
8397 # This program is free software; you can redistribute it and/or modify
8398 # it under the terms of the GNU General Public License as published by
8399 # the Free Software Foundation; either version 2 of the License, or
8400 # (at your option) any later version.
8401 #
8402 # This program is distributed in the hope that it will be useful, but
8403 # WITHOUT ANY WARRANTY; without even the implied warranty of
8404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8405 # General Public License for more details.
8406 #
8407 # You should have received a copy of the GNU General Public License
8408 # along with this program; if not, write to the Free Software
8409 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8410 #
8411 # As a special exception to the GNU General Public License, if you
8412 # distribute this file as part of a program that contains a
8413 # configuration script generated by Autoconf, you may include it under
8414 # the same distribution terms that you use for the rest of that program.
8415
8416 # A sed program that does not truncate output.
8417 SED=$lt_SED
8418
8419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8420 Xsed="$SED -e s/^X//"
8421
8422 # The HP-UX ksh and POSIX shell print the target directory to stdout
8423 # if CDPATH is set.
8424 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8425
8426 # The names of the tagged configurations supported by this script.
8427 available_tags=
8428
8429 # ### BEGIN LIBTOOL CONFIG
8430
8431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8432
8433 # Shell to use when invoking shell scripts.
8434 SHELL=$lt_SHELL
8435
8436 # Whether or not to build shared libraries.
8437 build_libtool_libs=$enable_shared
8438
8439 # Whether or not to build static libraries.
8440 build_old_libs=$enable_static
8441
8442 # Whether or not to add -lc for building shared libraries.
8443 build_libtool_need_lc=$archive_cmds_need_lc
8444
8445 # Whether or not to disallow shared libs when runtime libs are static
8446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8447
8448 # Whether or not to optimize for fast installation.
8449 fast_install=$enable_fast_install
8450
8451 # The host system.
8452 host_alias=$host_alias
8453 host=$host
8454
8455 # An echo program that does not interpret backslashes.
8456 echo=$lt_echo
8457
8458 # The archiver.
8459 AR=$lt_AR
8460 AR_FLAGS=$lt_AR_FLAGS
8461
8462 # A C compiler.
8463 LTCC=$lt_LTCC
8464
8465 # A language-specific compiler.
8466 CC=$lt_compiler
8467
8468 # Is the compiler the GNU C compiler?
8469 with_gcc=$GCC
8470
8471 # An ERE matcher.
8472 EGREP=$lt_EGREP
8473
8474 # The linker used to build libraries.
8475 LD=$lt_LD
8476
8477 # Whether we need hard or soft links.
8478 LN_S=$lt_LN_S
8479
8480 # A BSD-compatible nm program.
8481 NM=$lt_NM
8482
8483 # A symbol stripping program
8484 STRIP=$STRIP
8485
8486 # Used to examine libraries when file_magic_cmd begins "file"
8487 MAGIC_CMD=$MAGIC_CMD
8488
8489 # Used on cygwin: DLL creation program.
8490 DLLTOOL="$DLLTOOL"
8491
8492 # Used on cygwin: object dumper.
8493 OBJDUMP="$OBJDUMP"
8494
8495 # Used on cygwin: assembler.
8496 AS="$AS"
8497
8498 # The name of the directory that contains temporary libtool files.
8499 objdir=$objdir
8500
8501 # How to create reloadable object files.
8502 reload_flag=$lt_reload_flag
8503 reload_cmds=$lt_reload_cmds
8504
8505 # How to pass a linker flag through the compiler.
8506 wl=$lt_lt_prog_compiler_wl
8507
8508 # Object file suffix (normally "o").
8509 objext="$ac_objext"
8510
8511 # Old archive suffix (normally "a").
8512 libext="$libext"
8513
8514 # Shared library suffix (normally ".so").
8515 shrext='$shrext'
8516
8517 # Executable file suffix (normally "").
8518 exeext="$exeext"
8519
8520 # Additional compiler flags for building library objects.
8521 pic_flag=$lt_lt_prog_compiler_pic
8522 pic_mode=$pic_mode
8523
8524 # What is the maximum length of a command?
8525 max_cmd_len=$lt_cv_sys_max_cmd_len
8526
8527 # Does compiler simultaneously support -c and -o options?
8528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8529
8530 # Must we lock files when doing compilation ?
8531 need_locks=$lt_need_locks
8532
8533 # Do we need the lib prefix for modules?
8534 need_lib_prefix=$need_lib_prefix
8535
8536 # Do we need a version for libraries?
8537 need_version=$need_version
8538
8539 # Whether dlopen is supported.
8540 dlopen_support=$enable_dlopen
8541
8542 # Whether dlopen of programs is supported.
8543 dlopen_self=$enable_dlopen_self
8544
8545 # Whether dlopen of statically linked programs is supported.
8546 dlopen_self_static=$enable_dlopen_self_static
8547
8548 # Compiler flag to prevent dynamic linking.
8549 link_static_flag=$lt_lt_prog_compiler_static
8550
8551 # Compiler flag to turn off builtin functions.
8552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8553
8554 # Compiler flag to allow reflexive dlopens.
8555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8556
8557 # Compiler flag to generate shared objects directly from archives.
8558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8559
8560 # Compiler flag to generate thread-safe objects.
8561 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8562
8563 # Library versioning type.
8564 version_type=$version_type
8565
8566 # Format of library name prefix.
8567 libname_spec=$lt_libname_spec
8568
8569 # List of archive names.  First name is the real one, the rest are links.
8570 # The last name is the one that the linker finds with -lNAME.
8571 library_names_spec=$lt_library_names_spec
8572
8573 # The coded name of the library, if different from the real name.
8574 soname_spec=$lt_soname_spec
8575
8576 # Commands used to build and install an old-style archive.
8577 RANLIB=$lt_RANLIB
8578 old_archive_cmds=$lt_old_archive_cmds
8579 old_postinstall_cmds=$lt_old_postinstall_cmds
8580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8581
8582 # Create an old-style archive from a shared archive.
8583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8584
8585 # Create a temporary old-style archive to link instead of a shared archive.
8586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8587
8588 # Commands used to build and install a shared archive.
8589 archive_cmds=$lt_archive_cmds
8590 archive_expsym_cmds=$lt_archive_expsym_cmds
8591 postinstall_cmds=$lt_postinstall_cmds
8592 postuninstall_cmds=$lt_postuninstall_cmds
8593
8594 # Commands used to build a loadable module (assumed same as above if empty)
8595 module_cmds=$lt_module_cmds
8596 module_expsym_cmds=$lt_module_expsym_cmds
8597
8598 # Commands to strip libraries.
8599 old_striplib=$lt_old_striplib
8600 striplib=$lt_striplib
8601
8602 # Dependencies to place before the objects being linked to create a
8603 # shared library.
8604 predep_objects=$lt_predep_objects
8605
8606 # Dependencies to place after the objects being linked to create a
8607 # shared library.
8608 postdep_objects=$lt_postdep_objects
8609
8610 # Dependencies to place before the objects being linked to create a
8611 # shared library.
8612 predeps=$lt_predeps
8613
8614 # Dependencies to place after the objects being linked to create a
8615 # shared library.
8616 postdeps=$lt_postdeps
8617
8618 # The library search path used internally by the compiler when linking
8619 # a shared library.
8620 compiler_lib_search_path=$lt_compiler_lib_search_path
8621
8622 # Method to check whether dependent libraries are shared objects.
8623 deplibs_check_method=$lt_deplibs_check_method
8624
8625 # Command to use when deplibs_check_method == file_magic.
8626 file_magic_cmd=$lt_file_magic_cmd
8627
8628 # Flag that allows shared libraries with undefined symbols to be built.
8629 allow_undefined_flag=$lt_allow_undefined_flag
8630
8631 # Flag that forces no undefined symbols.
8632 no_undefined_flag=$lt_no_undefined_flag
8633
8634 # Commands used to finish a libtool library installation in a directory.
8635 finish_cmds=$lt_finish_cmds
8636
8637 # Same as above, but a single script fragment to be evaled but not shown.
8638 finish_eval=$lt_finish_eval
8639
8640 # Take the output of nm and produce a listing of raw symbols and C names.
8641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8642
8643 # Transform the output of nm in a proper C declaration
8644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8645
8646 # Transform the output of nm in a C name address pair
8647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8648
8649 # This is the shared library runtime path variable.
8650 runpath_var=$runpath_var
8651
8652 # This is the shared library path variable.
8653 shlibpath_var=$shlibpath_var
8654
8655 # Is shlibpath searched before the hard-coded library search path?
8656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8657
8658 # How to hardcode a shared library path into an executable.
8659 hardcode_action=$hardcode_action
8660
8661 # Whether we should hardcode library paths into libraries.
8662 hardcode_into_libs=$hardcode_into_libs
8663
8664 # Flag to hardcode \$libdir into a binary during linking.
8665 # This must work even if \$libdir does not exist.
8666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8667
8668 # If ld is used when linking, flag to hardcode \$libdir into
8669 # a binary during linking. This must work even if \$libdir does
8670 # not exist.
8671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8672
8673 # Whether we need a single -rpath flag with a separated argument.
8674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8675
8676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8677 # resulting binary.
8678 hardcode_direct=$hardcode_direct
8679
8680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8681 # resulting binary.
8682 hardcode_minus_L=$hardcode_minus_L
8683
8684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8685 # the resulting binary.
8686 hardcode_shlibpath_var=$hardcode_shlibpath_var
8687
8688 # Set to yes if building a shared library automatically hardcodes DIR into the library
8689 # and all subsequent libraries and executables linked against it.
8690 hardcode_automatic=$hardcode_automatic
8691
8692 # Variables whose values should be saved in libtool wrapper scripts and
8693 # restored at relink time.
8694 variables_saved_for_relink="$variables_saved_for_relink"
8695
8696 # Whether libtool must link a program against all its dependency libraries.
8697 link_all_deplibs=$link_all_deplibs
8698
8699 # Compile-time system search path for libraries
8700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8701
8702 # Run-time system search path for libraries
8703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8704
8705 # Fix the shell variable \$srcfile for the compiler.
8706 fix_srcfile_path="$fix_srcfile_path"
8707
8708 # Set to yes if exported symbols are required.
8709 always_export_symbols=$always_export_symbols
8710
8711 # The commands to list exported symbols.
8712 export_symbols_cmds=$lt_export_symbols_cmds
8713
8714 # The commands to extract the exported symbol list from a shared archive.
8715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8716
8717 # Symbols that should not be listed in the preloaded symbols.
8718 exclude_expsyms=$lt_exclude_expsyms
8719
8720 # Symbols that must always be exported.
8721 include_expsyms=$lt_include_expsyms
8722
8723 # ### END LIBTOOL CONFIG
8724
8725 __EOF__
8726
8727
8728   case $host_os in
8729   aix3*)
8730     cat <<\EOF >> "$cfgfile"
8731
8732 # AIX sometimes has problems with the GCC collect2 program.  For some
8733 # reason, if we set the COLLECT_NAMES environment variable, the problems
8734 # vanish in a puff of smoke.
8735 if test "X${COLLECT_NAMES+set}" != Xset; then
8736   COLLECT_NAMES=
8737   export COLLECT_NAMES
8738 fi
8739 EOF
8740     ;;
8741   esac
8742
8743   # We use sed instead of cat because bash on DJGPP gets confused if
8744   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8745   # text mode, it properly converts lines to CR/LF.  This bash problem
8746   # is reportedly fixed, but why not run on old versions too?
8747   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8748
8749   mv -f "$cfgfile" "$ofile" || \
8750     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8751   chmod +x "$ofile"
8752
8753 else
8754   # If there is no Makefile yet, we rely on a make rule to execute
8755   # `config.status --recheck' to rerun these tests and create the
8756   # libtool script then.
8757   test -f Makefile && make "$ltmain"
8758 fi
8759
8760
8761 ac_ext=c
8762 ac_cpp='$CPP $CPPFLAGS'
8763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8766
8767 CC="$lt_save_CC"
8768
8769
8770 # Check whether --with-tags or --without-tags was given.
8771 if test "${with_tags+set}" = set; then
8772   withval="$with_tags"
8773   tagnames="$withval"
8774 fi;
8775
8776 if test -f "$ltmain" && test -n "$tagnames"; then
8777   if test ! -f "${ofile}"; then
8778     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8779 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8780   fi
8781
8782   if test -z "$LTCC"; then
8783     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8784     if test -z "$LTCC"; then
8785       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8786 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8787     else
8788       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8789 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8790     fi
8791   fi
8792
8793   # Extract list of available tagged configurations in $ofile.
8794   # Note that this assumes the entire list is on one line.
8795   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8796
8797   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8798   for tagname in $tagnames; do
8799     IFS="$lt_save_ifs"
8800     # Check whether tagname contains only valid characters
8801     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8802     "") ;;
8803     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8804 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8805    { (exit 1); exit 1; }; }
8806         ;;
8807     esac
8808
8809     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8810     then
8811       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8812 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8813    { (exit 1); exit 1; }; }
8814     fi
8815
8816     # Update the list of available tags.
8817     if test -n "$tagname"; then
8818       echo appending configuration tag \"$tagname\" to $ofile
8819
8820       case $tagname in
8821       CXX)
8822         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8823           ac_ext=cc
8824 ac_cpp='$CXXCPP $CPPFLAGS'
8825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8828
8829
8830
8831
8832 archive_cmds_need_lc_CXX=no
8833 allow_undefined_flag_CXX=
8834 always_export_symbols_CXX=no
8835 archive_expsym_cmds_CXX=
8836 export_dynamic_flag_spec_CXX=
8837 hardcode_direct_CXX=no
8838 hardcode_libdir_flag_spec_CXX=
8839 hardcode_libdir_flag_spec_ld_CXX=
8840 hardcode_libdir_separator_CXX=
8841 hardcode_minus_L_CXX=no
8842 hardcode_automatic_CXX=no
8843 module_cmds_CXX=
8844 module_expsym_cmds_CXX=
8845 link_all_deplibs_CXX=unknown
8846 old_archive_cmds_CXX=$old_archive_cmds
8847 no_undefined_flag_CXX=
8848 whole_archive_flag_spec_CXX=
8849 enable_shared_with_static_runtimes_CXX=no
8850
8851 # Dependencies to place before and after the object being linked:
8852 predep_objects_CXX=
8853 postdep_objects_CXX=
8854 predeps_CXX=
8855 postdeps_CXX=
8856 compiler_lib_search_path_CXX=
8857
8858 # Source file extension for C++ test sources.
8859 ac_ext=cc
8860
8861 # Object file extension for compiled C++ test sources.
8862 objext=o
8863 objext_CXX=$objext
8864
8865 # Code to be used in simple compile tests
8866 lt_simple_compile_test_code="int some_variable = 0;\n"
8867
8868 # Code to be used in simple link tests
8869 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8870
8871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8872
8873 # If no C compiler was specified, use CC.
8874 LTCC=${LTCC-"$CC"}
8875
8876 # Allow CC to be a program name with arguments.
8877 compiler=$CC
8878
8879
8880 # Allow CC to be a program name with arguments.
8881 lt_save_CC=$CC
8882 lt_save_LD=$LD
8883 lt_save_GCC=$GCC
8884 GCC=$GXX
8885 lt_save_with_gnu_ld=$with_gnu_ld
8886 lt_save_path_LD=$lt_cv_path_LD
8887 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8888   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8889 else
8890   unset lt_cv_prog_gnu_ld
8891 fi
8892 if test -n "${lt_cv_path_LDCXX+set}"; then
8893   lt_cv_path_LD=$lt_cv_path_LDCXX
8894 else
8895   unset lt_cv_path_LD
8896 fi
8897 test -z "${LDCXX+set}" || LD=$LDCXX
8898 CC=${CXX-"c++"}
8899 compiler=$CC
8900 compiler_CXX=$CC
8901 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8902
8903 # We don't want -fno-exception wen compiling C++ code, so set the
8904 # no_builtin_flag separately
8905 if test "$GXX" = yes; then
8906   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8907 else
8908   lt_prog_compiler_no_builtin_flag_CXX=
8909 fi
8910
8911 if test "$GXX" = yes; then
8912   # Set up default GNU C++ configuration
8913
8914
8915 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8916 if test "${with_gnu_ld+set}" = set; then
8917   withval="$with_gnu_ld"
8918   test "$withval" = no || with_gnu_ld=yes
8919 else
8920   with_gnu_ld=no
8921 fi;
8922 ac_prog=ld
8923 if test "$GCC" = yes; then
8924   # Check if gcc -print-prog-name=ld gives a path.
8925   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8926 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8927   case $host in
8928   *-*-mingw*)
8929     # gcc leaves a trailing carriage return which upsets mingw
8930     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8931   *)
8932     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8933   esac
8934   case $ac_prog in
8935     # Accept absolute paths.
8936     [\\/]* | ?:[\\/]*)
8937       re_direlt='/[^/][^/]*/\.\./'
8938       # Canonicalize the path of ld
8939       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8940       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8941         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8942       done
8943       test -z "$LD" && LD="$ac_prog"
8944       ;;
8945   "")
8946     # If it fails, then pretend we aren't using GCC.
8947     ac_prog=ld
8948     ;;
8949   *)
8950     # If it is relative, then search for the first ld in PATH.
8951     with_gnu_ld=unknown
8952     ;;
8953   esac
8954 elif test "$with_gnu_ld" = yes; then
8955   echo "$as_me:$LINENO: checking for GNU ld" >&5
8956 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8957 else
8958   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8959 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8960 fi
8961 if test "${lt_cv_path_LD+set}" = set; then
8962   echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964   if test -z "$LD"; then
8965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8966   for ac_dir in $PATH; do
8967     IFS="$lt_save_ifs"
8968     test -z "$ac_dir" && ac_dir=.
8969     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8970       lt_cv_path_LD="$ac_dir/$ac_prog"
8971       # Check to see if the program is GNU ld.  I'd rather use --version,
8972       # but apparently some GNU ld's only accept -v.
8973       # Break only if it was the GNU/non-GNU ld that we prefer.
8974       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8975       *GNU* | *'with BFD'*)
8976         test "$with_gnu_ld" != no && break
8977         ;;
8978       *)
8979         test "$with_gnu_ld" != yes && break
8980         ;;
8981       esac
8982     fi
8983   done
8984   IFS="$lt_save_ifs"
8985 else
8986   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8987 fi
8988 fi
8989
8990 LD="$lt_cv_path_LD"
8991 if test -n "$LD"; then
8992   echo "$as_me:$LINENO: result: $LD" >&5
8993 echo "${ECHO_T}$LD" >&6
8994 else
8995   echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8997 fi
8998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9000    { (exit 1); exit 1; }; }
9001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9003 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9007 case `"$LD" -v 2>&1 </dev/null` in
9008 *GNU* | *'with BFD'*)
9009   lt_cv_prog_gnu_ld=yes
9010   ;;
9011 *)
9012   lt_cv_prog_gnu_ld=no
9013   ;;
9014 esac
9015 fi
9016 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9017 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9018 with_gnu_ld=$lt_cv_prog_gnu_ld
9019
9020
9021
9022   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9023   # archiving commands below assume that GNU ld is being used.
9024   if test "$with_gnu_ld" = yes; then
9025     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026     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'
9027
9028     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9029     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9030
9031     # If archive_cmds runs LD, not CC, wlarc should be empty
9032     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9033     #     investigate it a little bit more. (MM)
9034     wlarc='${wl}'
9035
9036     # ancient GNU ld didn't support --whole-archive et. al.
9037     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9038         grep 'no-whole-archive' > /dev/null; then
9039       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9040     else
9041       whole_archive_flag_spec_CXX=
9042     fi
9043   else
9044     with_gnu_ld=no
9045     wlarc=
9046
9047     # A generic and very simple default shared library creation
9048     # command for GNU C++ for the case where it uses the native
9049     # linker, instead of GNU ld.  If possible, this setting should
9050     # overridden to take advantage of the native linker features on
9051     # the platform it is being used on.
9052     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9053   fi
9054
9055   # Commands to make compiler produce verbose output that lists
9056   # what "hidden" libraries, object files and flags are used when
9057   # linking a shared library.
9058   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9059
9060 else
9061   GXX=no
9062   with_gnu_ld=no
9063   wlarc=
9064 fi
9065
9066 # PORTME: fill in a description of your system's C++ link characteristics
9067 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9069 ld_shlibs_CXX=yes
9070 case $host_os in
9071   aix3*)
9072     # FIXME: insert proper C++ library support
9073     ld_shlibs_CXX=no
9074     ;;
9075   aix4* | aix5*)
9076     if test "$host_cpu" = ia64; then
9077       # On IA64, the linker does run time linking by default, so we don't
9078       # have to do anything special.
9079       aix_use_runtimelinking=no
9080       exp_sym_flag='-Bexport'
9081       no_entry_flag=""
9082     else
9083       aix_use_runtimelinking=no
9084
9085       # Test if we are trying to use run time linking or normal
9086       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087       # need to do runtime linking.
9088       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9089         for ld_flag in $LDFLAGS; do
9090           case $ld_flag in
9091           *-brtl*)
9092             aix_use_runtimelinking=yes
9093             break
9094             ;;
9095           esac
9096         done
9097       esac
9098
9099       exp_sym_flag='-bexport'
9100       no_entry_flag='-bnoentry'
9101     fi
9102
9103     # When large executables or shared objects are built, AIX ld can
9104     # have problems creating the table of contents.  If linking a library
9105     # or program results in "error TOC overflow" add -mminimal-toc to
9106     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9107     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9108
9109     archive_cmds_CXX=''
9110     hardcode_direct_CXX=yes
9111     hardcode_libdir_separator_CXX=':'
9112     link_all_deplibs_CXX=yes
9113
9114     if test "$GXX" = yes; then
9115       case $host_os in aix4.012|aix4.012.*)
9116       # We only want to do this on AIX 4.2 and lower, the check
9117       # below for broken collect2 doesn't work under 4.3+
9118         collect2name=`${CC} -print-prog-name=collect2`
9119         if test -f "$collect2name" && \
9120            strings "$collect2name" | grep resolve_lib_name >/dev/null
9121         then
9122           # We have reworked collect2
9123           hardcode_direct_CXX=yes
9124         else
9125           # We have old collect2
9126           hardcode_direct_CXX=unsupported
9127           # It fails to find uninstalled libraries when the uninstalled
9128           # path is not listed in the libpath.  Setting hardcode_minus_L
9129           # to unsupported forces relinking
9130           hardcode_minus_L_CXX=yes
9131           hardcode_libdir_flag_spec_CXX='-L$libdir'
9132           hardcode_libdir_separator_CXX=
9133         fi
9134       esac
9135       shared_flag='-shared'
9136     else
9137       # not using gcc
9138       if test "$host_cpu" = ia64; then
9139         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140         # chokes on -Wl,-G. The following line is correct:
9141         shared_flag='-G'
9142       else
9143         if test "$aix_use_runtimelinking" = yes; then
9144           shared_flag='${wl}-G'
9145         else
9146           shared_flag='${wl}-bM:SRE'
9147         fi
9148       fi
9149     fi
9150
9151     # It seems that -bexpall does not export symbols beginning with
9152     # underscore (_), so it is better to generate a list of symbols to export.
9153     always_export_symbols_CXX=yes
9154     if test "$aix_use_runtimelinking" = yes; then
9155       # Warning - without using the other runtime loading flags (-brtl),
9156       # -berok will link without error, but may produce a broken library.
9157       allow_undefined_flag_CXX='-berok'
9158       # Determine the default libpath from the value encoded in an empty executable.
9159       cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h.  */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h.  */
9165
9166 int
9167 main ()
9168 {
9169
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176   (eval $ac_link) 2>conftest.er1
9177   ac_status=$?
9178   grep -v '^ *+' conftest.er1 >conftest.err
9179   rm -f conftest.er1
9180   cat conftest.err >&5
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } &&
9183          { ac_try='test -z "$ac_cxx_werror_flag"
9184                          || test ! -s conftest.err'
9185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186   (eval $ac_try) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; } &&
9190          { ac_try='test -s conftest$ac_exeext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196
9197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9198 }'`
9199 # Check for a 64-bit object if we didn't find anything.
9200 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; }
9201 }'`; fi
9202 else
9203   echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 fi
9207 rm -f conftest.err conftest.$ac_objext \
9208       conftest$ac_exeext conftest.$ac_ext
9209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9210
9211       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9212
9213       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"
9214      else
9215       if test "$host_cpu" = ia64; then
9216         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9217         allow_undefined_flag_CXX="-z nodefs"
9218         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"
9219       else
9220         # Determine the default libpath from the value encoded in an empty executable.
9221         cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227
9228 int
9229 main ()
9230 {
9231
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238   (eval $ac_link) 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } &&
9245          { ac_try='test -z "$ac_cxx_werror_flag"
9246                          || test ! -s conftest.err'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; } &&
9252          { ac_try='test -s conftest$ac_exeext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258
9259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9260 }'`
9261 # Check for a 64-bit object if we didn't find anything.
9262 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; }
9263 }'`; fi
9264 else
9265   echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 fi
9269 rm -f conftest.err conftest.$ac_objext \
9270       conftest$ac_exeext conftest.$ac_ext
9271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9272
9273         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9274         # Warning - without using the other run time loading flags,
9275         # -berok will link without error, but may produce a broken library.
9276         no_undefined_flag_CXX=' ${wl}-bernotok'
9277         allow_undefined_flag_CXX=' ${wl}-berok'
9278         # -bexpall does not export symbols beginning with underscore (_)
9279         always_export_symbols_CXX=yes
9280         # Exported symbols can be pulled into shared objects from archives
9281         whole_archive_flag_spec_CXX=' '
9282         archive_cmds_need_lc_CXX=yes
9283         # This is similar to how AIX traditionally builds it's shared libraries.
9284         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'
9285       fi
9286     fi
9287     ;;
9288   chorus*)
9289     case $cc_basename in
9290       *)
9291         # FIXME: insert proper C++ library support
9292         ld_shlibs_CXX=no
9293         ;;
9294     esac
9295     ;;
9296
9297   cygwin* | mingw* | pw32*)
9298     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9299     # as there is no search path for DLLs.
9300     hardcode_libdir_flag_spec_CXX='-L$libdir'
9301     allow_undefined_flag_CXX=unsupported
9302     always_export_symbols_CXX=no
9303     enable_shared_with_static_runtimes_CXX=yes
9304
9305     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9306       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'
9307       # If the export-symbols file already is a .def file (1st line
9308       # is EXPORTS), use it as is; otherwise, prepend...
9309       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9310         cp $export_symbols $output_objdir/$soname.def;
9311       else
9312         echo EXPORTS > $output_objdir/$soname.def;
9313         cat $export_symbols >> $output_objdir/$soname.def;
9314       fi~
9315       $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'
9316     else
9317       ld_shlibs_CXX=no
9318     fi
9319   ;;
9320
9321   darwin* | rhapsody*)
9322    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9323     archive_cmds_need_lc_CXX=no
9324     case "$host_os" in
9325     rhapsody* | darwin1.[012])
9326       allow_undefined_flag_CXX='-undefined suppress'
9327       ;;
9328     *) # Darwin 1.3 on
9329       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9330       ;;
9331     esac
9332         lt_int_apple_cc_single_mod=no
9333         output_verbose_link_cmd='echo'
9334         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9335           lt_int_apple_cc_single_mod=yes
9336         fi
9337         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9338           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9339         else
9340         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'
9341       fi
9342       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9343
9344     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9345       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9346         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}'
9347       else
9348         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}'
9349       fi
9350         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9351     hardcode_direct_CXX=no
9352     hardcode_automatic_CXX=yes
9353     hardcode_shlibpath_var_CXX=unsupported
9354     whole_archive_flag_spec_CXX='-all_load $convenience'
9355     link_all_deplibs_CXX=yes
9356    fi
9357     ;;
9358
9359   dgux*)
9360     case $cc_basename in
9361       ec++)
9362         # FIXME: insert proper C++ library support
9363         ld_shlibs_CXX=no
9364         ;;
9365       ghcx)
9366         # Green Hills C++ Compiler
9367         # FIXME: insert proper C++ library support
9368         ld_shlibs_CXX=no
9369         ;;
9370       *)
9371         # FIXME: insert proper C++ library support
9372         ld_shlibs_CXX=no
9373         ;;
9374     esac
9375     ;;
9376   freebsd12*)
9377     # C++ shared libraries reported to be fairly broken before switch to ELF
9378     ld_shlibs_CXX=no
9379     ;;
9380   freebsd-elf*)
9381     archive_cmds_need_lc_CXX=no
9382     ;;
9383   freebsd*)
9384     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9385     # conventions
9386     ld_shlibs_CXX=yes
9387     ;;
9388   gnu*)
9389     ;;
9390   hpux9*)
9391     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9392     hardcode_libdir_separator_CXX=:
9393     export_dynamic_flag_spec_CXX='${wl}-E'
9394     hardcode_direct_CXX=yes
9395     hardcode_minus_L_CXX=yes # Not in the search PATH,
9396                                 # but as the default
9397                                 # location of the library.
9398
9399     case $cc_basename in
9400     CC)
9401       # FIXME: insert proper C++ library support
9402       ld_shlibs_CXX=no
9403       ;;
9404     aCC)
9405       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'
9406       # Commands to make compiler produce verbose output that lists
9407       # what "hidden" libraries, object files and flags are used when
9408       # linking a shared library.
9409       #
9410       # There doesn't appear to be a way to prevent this compiler from
9411       # explicitly linking system object files so we need to strip them
9412       # from the output so that they don't get included in the library
9413       # dependencies.
9414       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'
9415       ;;
9416     *)
9417       if test "$GXX" = yes; then
9418         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'
9419       else
9420         # FIXME: insert proper C++ library support
9421         ld_shlibs_CXX=no
9422       fi
9423       ;;
9424     esac
9425     ;;
9426   hpux10*|hpux11*)
9427     if test $with_gnu_ld = no; then
9428       case "$host_cpu" in
9429       hppa*64*)
9430         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9431         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9432         hardcode_libdir_separator_CXX=:
9433         ;;
9434       ia64*)
9435         hardcode_libdir_flag_spec_CXX='-L$libdir'
9436         ;;
9437       *)
9438         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9439         hardcode_libdir_separator_CXX=:
9440         export_dynamic_flag_spec_CXX='${wl}-E'
9441         ;;
9442       esac
9443     fi
9444     case "$host_cpu" in
9445     hppa*64*)
9446       hardcode_direct_CXX=no
9447       hardcode_shlibpath_var_CXX=no
9448       ;;
9449     ia64*)
9450       hardcode_direct_CXX=no
9451       hardcode_shlibpath_var_CXX=no
9452       hardcode_minus_L_CXX=yes # Not in the search PATH,
9453                                               # but as the default
9454                                               # location of the library.
9455       ;;
9456     *)
9457       hardcode_direct_CXX=yes
9458       hardcode_minus_L_CXX=yes # Not in the search PATH,
9459                                               # but as the default
9460                                               # location of the library.
9461       ;;
9462     esac
9463
9464     case $cc_basename in
9465       CC)
9466         # FIXME: insert proper C++ library support
9467         ld_shlibs_CXX=no
9468         ;;
9469       aCC)
9470         case "$host_cpu" in
9471         hppa*64*|ia64*)
9472           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9473           ;;
9474         *)
9475           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9476           ;;
9477         esac
9478         # Commands to make compiler produce verbose output that lists
9479         # what "hidden" libraries, object files and flags are used when
9480         # linking a shared library.
9481         #
9482         # There doesn't appear to be a way to prevent this compiler from
9483         # explicitly linking system object files so we need to strip them
9484         # from the output so that they don't get included in the library
9485         # dependencies.
9486         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'
9487         ;;
9488       *)
9489         if test "$GXX" = yes; then
9490           if test $with_gnu_ld = no; then
9491             case "$host_cpu" in
9492             ia64*|hppa*64*)
9493               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9494               ;;
9495             *)
9496               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'
9497               ;;
9498             esac
9499           fi
9500         else
9501           # FIXME: insert proper C++ library support
9502           ld_shlibs_CXX=no
9503         fi
9504         ;;
9505     esac
9506     ;;
9507   irix5* | irix6*)
9508     case $cc_basename in
9509       CC)
9510         # SGI C++
9511         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'
9512
9513         # Archives containing C++ object files must be created using
9514         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9515         # necessary to make sure instantiated templates are included
9516         # in the archive.
9517         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9518         ;;
9519       *)
9520         if test "$GXX" = yes; then
9521           if test "$with_gnu_ld" = no; then
9522             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'
9523           else
9524             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'
9525           fi
9526         fi
9527         link_all_deplibs_CXX=yes
9528         ;;
9529     esac
9530     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9531     hardcode_libdir_separator_CXX=:
9532     ;;
9533   linux*)
9534     case $cc_basename in
9535       KCC)
9536         # Kuck and Associates, Inc. (KAI) C++ Compiler
9537
9538         # KCC will only create a shared library if the output file
9539         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9540         # to its proper name (with version) after linking.
9541         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'
9542         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'
9543         # Commands to make compiler produce verbose output that lists
9544         # what "hidden" libraries, object files and flags are used when
9545         # linking a shared library.
9546         #
9547         # There doesn't appear to be a way to prevent this compiler from
9548         # explicitly linking system object files so we need to strip them
9549         # from the output so that they don't get included in the library
9550         # dependencies.
9551         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'
9552
9553         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9554         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9555
9556         # Archives containing C++ object files must be created using
9557         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9558         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9559         ;;
9560       icpc)
9561         # Intel C++
9562         with_gnu_ld=yes
9563         archive_cmds_need_lc_CXX=no
9564         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565         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'
9566         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9567         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9568         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9569         ;;
9570       cxx)
9571         # Compaq C++
9572         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573         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'
9574
9575         runpath_var=LD_RUN_PATH
9576         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9577         hardcode_libdir_separator_CXX=:
9578
9579         # Commands to make compiler produce verbose output that lists
9580         # what "hidden" libraries, object files and flags are used when
9581         # linking a shared library.
9582         #
9583         # There doesn't appear to be a way to prevent this compiler from
9584         # explicitly linking system object files so we need to strip them
9585         # from the output so that they don't get included in the library
9586         # dependencies.
9587         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'
9588         ;;
9589     esac
9590     ;;
9591   lynxos*)
9592     # FIXME: insert proper C++ library support
9593     ld_shlibs_CXX=no
9594     ;;
9595   m88k*)
9596     # FIXME: insert proper C++ library support
9597     ld_shlibs_CXX=no
9598     ;;
9599   mvs*)
9600     case $cc_basename in
9601       cxx)
9602         # FIXME: insert proper C++ library support
9603         ld_shlibs_CXX=no
9604         ;;
9605       *)
9606         # FIXME: insert proper C++ library support
9607         ld_shlibs_CXX=no
9608         ;;
9609     esac
9610     ;;
9611   netbsd*)
9612     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9613       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9614       wlarc=
9615       hardcode_libdir_flag_spec_CXX='-R$libdir'
9616       hardcode_direct_CXX=yes
9617       hardcode_shlibpath_var_CXX=no
9618     fi
9619     # Workaround some broken pre-1.5 toolchains
9620     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9621     ;;
9622   osf3*)
9623     case $cc_basename in
9624       KCC)
9625         # Kuck and Associates, Inc. (KAI) C++ Compiler
9626
9627         # KCC will only create a shared library if the output file
9628         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9629         # to its proper name (with version) after linking.
9630         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'
9631
9632         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9633         hardcode_libdir_separator_CXX=:
9634
9635         # Archives containing C++ object files must be created using
9636         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9637         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9638
9639         ;;
9640       RCC)
9641         # Rational C++ 2.4.1
9642         # FIXME: insert proper C++ library support
9643         ld_shlibs_CXX=no
9644         ;;
9645       cxx)
9646         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9647         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'
9648
9649         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9650         hardcode_libdir_separator_CXX=:
9651
9652         # Commands to make compiler produce verbose output that lists
9653         # what "hidden" libraries, object files and flags are used when
9654         # linking a shared library.
9655         #
9656         # There doesn't appear to be a way to prevent this compiler from
9657         # explicitly linking system object files so we need to strip them
9658         # from the output so that they don't get included in the library
9659         # dependencies.
9660         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'
9661         ;;
9662       *)
9663         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9664           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9665           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'
9666
9667           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9668           hardcode_libdir_separator_CXX=:
9669
9670           # Commands to make compiler produce verbose output that lists
9671           # what "hidden" libraries, object files and flags are used when
9672           # linking a shared library.
9673           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9674
9675         else
9676           # FIXME: insert proper C++ library support
9677           ld_shlibs_CXX=no
9678         fi
9679         ;;
9680     esac
9681     ;;
9682   osf4* | osf5*)
9683     case $cc_basename in
9684       KCC)
9685         # Kuck and Associates, Inc. (KAI) C++ Compiler
9686
9687         # KCC will only create a shared library if the output file
9688         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9689         # to its proper name (with version) after linking.
9690         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'
9691
9692         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9693         hardcode_libdir_separator_CXX=:
9694
9695         # Archives containing C++ object files must be created using
9696         # the KAI C++ compiler.
9697         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9698         ;;
9699       RCC)
9700         # Rational C++ 2.4.1
9701         # FIXME: insert proper C++ library support
9702         ld_shlibs_CXX=no
9703         ;;
9704       cxx)
9705         allow_undefined_flag_CXX=' -expect_unresolved \*'
9706         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'
9707         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9708           echo "-hidden">> $lib.exp~
9709           $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~
9710           $rm $lib.exp'
9711
9712         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9713         hardcode_libdir_separator_CXX=:
9714
9715         # Commands to make compiler produce verbose output that lists
9716         # what "hidden" libraries, object files and flags are used when
9717         # linking a shared library.
9718         #
9719         # There doesn't appear to be a way to prevent this compiler from
9720         # explicitly linking system object files so we need to strip them
9721         # from the output so that they don't get included in the library
9722         # dependencies.
9723         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'
9724         ;;
9725       *)
9726         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9727           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9728          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'
9729
9730           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9731           hardcode_libdir_separator_CXX=:
9732
9733           # Commands to make compiler produce verbose output that lists
9734           # what "hidden" libraries, object files and flags are used when
9735           # linking a shared library.
9736           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9737
9738         else
9739           # FIXME: insert proper C++ library support
9740           ld_shlibs_CXX=no
9741         fi
9742         ;;
9743     esac
9744     ;;
9745   psos*)
9746     # FIXME: insert proper C++ library support
9747     ld_shlibs_CXX=no
9748     ;;
9749   sco*)
9750     archive_cmds_need_lc_CXX=no
9751     case $cc_basename in
9752       CC)
9753         # FIXME: insert proper C++ library support
9754         ld_shlibs_CXX=no
9755         ;;
9756       *)
9757         # FIXME: insert proper C++ library support
9758         ld_shlibs_CXX=no
9759         ;;
9760     esac
9761     ;;
9762   sunos4*)
9763     case $cc_basename in
9764       CC)
9765         # Sun C++ 4.x
9766         # FIXME: insert proper C++ library support
9767         ld_shlibs_CXX=no
9768         ;;
9769       lcc)
9770         # Lucid
9771         # FIXME: insert proper C++ library support
9772         ld_shlibs_CXX=no
9773         ;;
9774       *)
9775         # FIXME: insert proper C++ library support
9776         ld_shlibs_CXX=no
9777         ;;
9778     esac
9779     ;;
9780   solaris*)
9781     case $cc_basename in
9782       CC)
9783         # Sun C++ 4.2, 5.x and Centerline C++
9784         no_undefined_flag_CXX=' -zdefs'
9785         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9786         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9787         $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'
9788
9789         hardcode_libdir_flag_spec_CXX='-R$libdir'
9790         hardcode_shlibpath_var_CXX=no
9791         case $host_os in
9792           solaris2.0-5 | solaris2.0-5.*) ;;
9793           *)
9794             # The C++ compiler is used as linker so we must use $wl
9795             # flag to pass the commands to the underlying system
9796             # linker.
9797             # Supported since Solaris 2.6 (maybe 2.5.1?)
9798             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9799             ;;
9800         esac
9801         link_all_deplibs_CXX=yes
9802
9803         # Commands to make compiler produce verbose output that lists
9804         # what "hidden" libraries, object files and flags are used when
9805         # linking a shared library.
9806         #
9807         # There doesn't appear to be a way to prevent this compiler from
9808         # explicitly linking system object files so we need to strip them
9809         # from the output so that they don't get included in the library
9810         # dependencies.
9811         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'
9812
9813         # Archives containing C++ object files must be created using
9814         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9815         # necessary to make sure instantiated templates are included
9816         # in the archive.
9817         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9818         ;;
9819       gcx)
9820         # Green Hills C++ Compiler
9821         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9822
9823         # The C++ compiler must be used to create the archive.
9824         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9825         ;;
9826       *)
9827         # GNU C++ compiler with Solaris linker
9828         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9829           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9830           if $CC --version | grep -v '^2\.7' > /dev/null; then
9831             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9832             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9833                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9834
9835             # Commands to make compiler produce verbose output that lists
9836             # what "hidden" libraries, object files and flags are used when
9837             # linking a shared library.
9838             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9839           else
9840             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9841             # platform.
9842             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9843             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9844                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9845
9846             # Commands to make compiler produce verbose output that lists
9847             # what "hidden" libraries, object files and flags are used when
9848             # linking a shared library.
9849             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9850           fi
9851
9852           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9853         fi
9854         ;;
9855     esac
9856     ;;
9857   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9858     archive_cmds_need_lc_CXX=no
9859     ;;
9860   tandem*)
9861     case $cc_basename in
9862       NCC)
9863         # NonStop-UX NCC 3.20
9864         # FIXME: insert proper C++ library support
9865         ld_shlibs_CXX=no
9866         ;;
9867       *)
9868         # FIXME: insert proper C++ library support
9869         ld_shlibs_CXX=no
9870         ;;
9871     esac
9872     ;;
9873   vxworks*)
9874     # FIXME: insert proper C++ library support
9875     ld_shlibs_CXX=no
9876     ;;
9877   *)
9878     # FIXME: insert proper C++ library support
9879     ld_shlibs_CXX=no
9880     ;;
9881 esac
9882 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9883 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9884 test "$ld_shlibs_CXX" = no && can_build_shared=no
9885
9886 GCC_CXX="$GXX"
9887 LD_CXX="$LD"
9888
9889 ## CAVEAT EMPTOR:
9890 ## There is no encapsulation within the following macros, do not change
9891 ## the running order or otherwise move them around unless you know exactly
9892 ## what you are doing...
9893
9894 cat > conftest.$ac_ext <<EOF
9895 class Foo
9896 {
9897 public:
9898   Foo (void) { a = 0; }
9899 private:
9900   int a;
9901 };
9902 EOF
9903
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905   (eval $ac_compile) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; then
9909   # Parse the compiler output and extract the necessary
9910   # objects, libraries and library flags.
9911
9912   # Sentinel used to keep track of whether or not we are before
9913   # the conftest object file.
9914   pre_test_object_deps_done=no
9915
9916   # The `*' in the case matches for architectures that use `case' in
9917   # $output_verbose_cmd can trigger glob expansion during the loop
9918   # eval without this substitution.
9919   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9920
9921   for p in `eval $output_verbose_link_cmd`; do
9922     case $p in
9923
9924     -L* | -R* | -l*)
9925        # Some compilers place space between "-{L,R}" and the path.
9926        # Remove the space.
9927        if test $p = "-L" \
9928           || test $p = "-R"; then
9929          prev=$p
9930          continue
9931        else
9932          prev=
9933        fi
9934
9935        if test "$pre_test_object_deps_done" = no; then
9936          case $p in
9937          -L* | -R*)
9938            # Internal compiler library paths should come after those
9939            # provided the user.  The postdeps already come after the
9940            # user supplied libs so there is no need to process them.
9941            if test -z "$compiler_lib_search_path_CXX"; then
9942              compiler_lib_search_path_CXX="${prev}${p}"
9943            else
9944              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9945            fi
9946            ;;
9947          # The "-l" case would never come before the object being
9948          # linked, so don't bother handling this case.
9949          esac
9950        else
9951          if test -z "$postdeps_CXX"; then
9952            postdeps_CXX="${prev}${p}"
9953          else
9954            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9955          fi
9956        fi
9957        ;;
9958
9959     *.$objext)
9960        # This assumes that the test object file only shows up
9961        # once in the compiler output.
9962        if test "$p" = "conftest.$objext"; then
9963          pre_test_object_deps_done=yes
9964          continue
9965        fi
9966
9967        if test "$pre_test_object_deps_done" = no; then
9968          if test -z "$predep_objects_CXX"; then
9969            predep_objects_CXX="$p"
9970          else
9971            predep_objects_CXX="$predep_objects_CXX $p"
9972          fi
9973        else
9974          if test -z "$postdep_objects_CXX"; then
9975            postdep_objects_CXX="$p"
9976          else
9977            postdep_objects_CXX="$postdep_objects_CXX $p"
9978          fi
9979        fi
9980        ;;
9981
9982     *) ;; # Ignore the rest.
9983
9984     esac
9985   done
9986
9987   # Clean up.
9988   rm -f a.out a.exe
9989 else
9990   echo "libtool.m4: error: problem compiling CXX test program"
9991 fi
9992
9993 $rm -f confest.$objext
9994
9995 case " $postdeps_CXX " in
9996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9997 esac
9998
9999 lt_prog_compiler_wl_CXX=
10000 lt_prog_compiler_pic_CXX=
10001 lt_prog_compiler_static_CXX=
10002
10003 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10005
10006   # C++ specific cases for pic, static, wl, etc.
10007   if test "$GXX" = yes; then
10008     lt_prog_compiler_wl_CXX='-Wl,'
10009     lt_prog_compiler_static_CXX='-static'
10010
10011     case $host_os in
10012     aix*)
10013       # All AIX code is PIC.
10014       if test "$host_cpu" = ia64; then
10015         # AIX 5 now supports IA64 processor
10016         lt_prog_compiler_static_CXX='-Bstatic'
10017       fi
10018       ;;
10019     amigaos*)
10020       # FIXME: we need at least 68020 code to build shared libraries, but
10021       # adding the `-m68020' flag to GCC prevents building anything better,
10022       # like `-m68040'.
10023       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10024       ;;
10025     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10026       # PIC is the default for these OSes.
10027       ;;
10028     mingw* | os2* | pw32*)
10029       # This hack is so that the source file can tell whether it is being
10030       # built for inclusion in a dll (and should export symbols for example).
10031       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10032       ;;
10033     darwin* | rhapsody*)
10034       # PIC is the default on this platform
10035       # Common symbols not allowed in MH_DYLIB files
10036       lt_prog_compiler_pic_CXX='-fno-common'
10037       ;;
10038     *djgpp*)
10039       # DJGPP does not support shared libraries at all
10040       lt_prog_compiler_pic_CXX=
10041       ;;
10042     sysv4*MP*)
10043       if test -d /usr/nec; then
10044         lt_prog_compiler_pic_CXX=-Kconform_pic
10045       fi
10046       ;;
10047     hpux*)
10048       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10049       # not for PA HP-UX.
10050       case "$host_cpu" in
10051       hppa*64*|ia64*)
10052         ;;
10053       *)
10054         lt_prog_compiler_pic_CXX='-fPIC'
10055         ;;
10056       esac
10057       ;;
10058     *)
10059       lt_prog_compiler_pic_CXX='-fPIC'
10060       ;;
10061     esac
10062   else
10063     case $host_os in
10064       aix4* | aix5*)
10065         # All AIX code is PIC.
10066         if test "$host_cpu" = ia64; then
10067           # AIX 5 now supports IA64 processor
10068           lt_prog_compiler_static_CXX='-Bstatic'
10069         else
10070           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10071         fi
10072         ;;
10073       chorus*)
10074         case $cc_basename in
10075         cxch68)
10076           # Green Hills C++ Compiler
10077           # _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"
10078           ;;
10079         esac
10080         ;;
10081       dgux*)
10082         case $cc_basename in
10083           ec++)
10084             lt_prog_compiler_pic_CXX='-KPIC'
10085             ;;
10086           ghcx)
10087             # Green Hills C++ Compiler
10088             lt_prog_compiler_pic_CXX='-pic'
10089             ;;
10090           *)
10091             ;;
10092         esac
10093         ;;
10094       freebsd*)
10095         # FreeBSD uses GNU C++
10096         ;;
10097       hpux9* | hpux10* | hpux11*)
10098         case $cc_basename in
10099           CC)
10100             lt_prog_compiler_wl_CXX='-Wl,'
10101             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10102             if test "$host_cpu" != ia64; then
10103               lt_prog_compiler_pic_CXX='+Z'
10104             fi
10105             ;;
10106           aCC)
10107             lt_prog_compiler_wl_CXX='-Wl,'
10108             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10109             case "$host_cpu" in
10110             hppa*64*|ia64*)
10111               # +Z the default
10112               ;;
10113             *)
10114               lt_prog_compiler_pic_CXX='+Z'
10115               ;;
10116             esac
10117             ;;
10118           *)
10119             ;;
10120         esac
10121         ;;
10122       irix5* | irix6* | nonstopux*)
10123         case $cc_basename in
10124           CC)
10125             lt_prog_compiler_wl_CXX='-Wl,'
10126             lt_prog_compiler_static_CXX='-non_shared'
10127             # CC pic flag -KPIC is the default.
10128             ;;
10129           *)
10130             ;;
10131         esac
10132         ;;
10133       linux*)
10134         case $cc_basename in
10135           KCC)
10136             # KAI C++ Compiler
10137             lt_prog_compiler_wl_CXX='--backend -Wl,'
10138             lt_prog_compiler_pic_CXX='-fPIC'
10139             ;;
10140           icpc)
10141             # Intel C++
10142             lt_prog_compiler_wl_CXX='-Wl,'
10143             lt_prog_compiler_pic_CXX='-KPIC'
10144             lt_prog_compiler_static_CXX='-static'
10145             ;;
10146           cxx)
10147             # Compaq C++
10148             # Make sure the PIC flag is empty.  It appears that all Alpha
10149             # Linux and Compaq Tru64 Unix objects are PIC.
10150             lt_prog_compiler_pic_CXX=
10151             lt_prog_compiler_static_CXX='-non_shared'
10152             ;;
10153           *)
10154             ;;
10155         esac
10156         ;;
10157       lynxos*)
10158         ;;
10159       m88k*)
10160         ;;
10161       mvs*)
10162         case $cc_basename in
10163           cxx)
10164             lt_prog_compiler_pic_CXX='-W c,exportall'
10165             ;;
10166           *)
10167             ;;
10168         esac
10169         ;;
10170       netbsd*)
10171         ;;
10172       osf3* | osf4* | osf5*)
10173         case $cc_basename in
10174           KCC)
10175             lt_prog_compiler_wl_CXX='--backend -Wl,'
10176             ;;
10177           RCC)
10178             # Rational C++ 2.4.1
10179             lt_prog_compiler_pic_CXX='-pic'
10180             ;;
10181           cxx)
10182             # Digital/Compaq C++
10183             lt_prog_compiler_wl_CXX='-Wl,'
10184             # Make sure the PIC flag is empty.  It appears that all Alpha
10185             # Linux and Compaq Tru64 Unix objects are PIC.
10186             lt_prog_compiler_pic_CXX=
10187             lt_prog_compiler_static_CXX='-non_shared'
10188             ;;
10189           *)
10190             ;;
10191         esac
10192         ;;
10193       psos*)
10194         ;;
10195       sco*)
10196         case $cc_basename in
10197           CC)
10198             lt_prog_compiler_pic_CXX='-fPIC'
10199             ;;
10200           *)
10201             ;;
10202         esac
10203         ;;
10204       solaris*)
10205         case $cc_basename in
10206           CC)
10207             # Sun C++ 4.2, 5.x and Centerline C++
10208             lt_prog_compiler_pic_CXX='-KPIC'
10209             lt_prog_compiler_static_CXX='-Bstatic'
10210             lt_prog_compiler_wl_CXX='-Qoption ld '
10211             ;;
10212           gcx)
10213             # Green Hills C++ Compiler
10214             lt_prog_compiler_pic_CXX='-PIC'
10215             ;;
10216           *)
10217             ;;
10218         esac
10219         ;;
10220       sunos4*)
10221         case $cc_basename in
10222           CC)
10223             # Sun C++ 4.x
10224             lt_prog_compiler_pic_CXX='-pic'
10225             lt_prog_compiler_static_CXX='-Bstatic'
10226             ;;
10227           lcc)
10228             # Lucid
10229             lt_prog_compiler_pic_CXX='-pic'
10230             ;;
10231           *)
10232             ;;
10233         esac
10234         ;;
10235       tandem*)
10236         case $cc_basename in
10237           NCC)
10238             # NonStop-UX NCC 3.20
10239             lt_prog_compiler_pic_CXX='-KPIC'
10240             ;;
10241           *)
10242             ;;
10243         esac
10244         ;;
10245       unixware*)
10246         ;;
10247       vxworks*)
10248         ;;
10249       *)
10250         lt_prog_compiler_can_build_shared_CXX=no
10251         ;;
10252     esac
10253   fi
10254
10255 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10256 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10257
10258 #
10259 # Check to make sure the PIC flag actually works.
10260 #
10261 if test -n "$lt_prog_compiler_pic_CXX"; then
10262   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10264 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267   lt_prog_compiler_pic_works_CXX=no
10268   ac_outfile=conftest.$ac_objext
10269    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10270    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10271    # Insert the option either (1) after the last *FLAGS variable, or
10272    # (2) before a word containing "conftest.", or (3) at the end.
10273    # Note that $ac_compile itself does not contain backslashes and begins
10274    # with a dollar sign (not a hyphen), so the echo should work correctly.
10275    # The option is referenced via a variable to avoid confusing sed.
10276    lt_compile=`echo "$ac_compile" | $SED \
10277    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10278    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10279    -e 's:$: $lt_compiler_flag:'`
10280    (eval echo "\"\$as_me:10280: $lt_compile\"" >&5)
10281    (eval "$lt_compile" 2>conftest.err)
10282    ac_status=$?
10283    cat conftest.err >&5
10284    echo "$as_me:10284: \$? = $ac_status" >&5
10285    if (exit $ac_status) && test -s "$ac_outfile"; then
10286      # The compiler can only warn and ignore the option if not recognized
10287      # So say no if there are warnings
10288      if test ! -s conftest.err; then
10289        lt_prog_compiler_pic_works_CXX=yes
10290      fi
10291    fi
10292    $rm conftest*
10293
10294 fi
10295 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10296 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10297
10298 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10299     case $lt_prog_compiler_pic_CXX in
10300      "" | " "*) ;;
10301      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10302      esac
10303 else
10304     lt_prog_compiler_pic_CXX=
10305      lt_prog_compiler_can_build_shared_CXX=no
10306 fi
10307
10308 fi
10309 case "$host_os" in
10310   # For platforms which do not support PIC, -DPIC is meaningless:
10311   *djgpp*)
10312     lt_prog_compiler_pic_CXX=
10313     ;;
10314   *)
10315     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10316     ;;
10317 esac
10318
10319 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10320 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10321 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   lt_cv_prog_compiler_c_o_CXX=no
10325    $rm -r conftest 2>/dev/null
10326    mkdir conftest
10327    cd conftest
10328    mkdir out
10329    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10330
10331    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10332    # that will create temporary files in the current directory regardless of
10333    # the output directory.  Thus, making CWD read-only will cause this test
10334    # to fail, enabling locking or at least warning the user not to do parallel
10335    # builds.
10336    chmod -w .
10337
10338    lt_compiler_flag="-o out/conftest2.$ac_objext"
10339    # Insert the option either (1) after the last *FLAGS variable, or
10340    # (2) before a word containing "conftest.", or (3) at the end.
10341    # Note that $ac_compile itself does not contain backslashes and begins
10342    # with a dollar sign (not a hyphen), so the echo should work correctly.
10343    lt_compile=`echo "$ac_compile" | $SED \
10344    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10346    -e 's:$: $lt_compiler_flag:'`
10347    (eval echo "\"\$as_me:10347: $lt_compile\"" >&5)
10348    (eval "$lt_compile" 2>out/conftest.err)
10349    ac_status=$?
10350    cat out/conftest.err >&5
10351    echo "$as_me:10351: \$? = $ac_status" >&5
10352    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10353    then
10354      # The compiler can only warn and ignore the option if not recognized
10355      # So say no if there are warnings
10356      if test ! -s out/conftest.err; then
10357        lt_cv_prog_compiler_c_o_CXX=yes
10358      fi
10359    fi
10360    chmod u+w .
10361    $rm conftest* out/*
10362    rmdir out
10363    cd ..
10364    rmdir conftest
10365    $rm conftest*
10366
10367 fi
10368 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10369 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10370
10371
10372 hard_links="nottested"
10373 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10374   # do not overwrite the value of need_locks provided by the user
10375   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10376 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10377   hard_links=yes
10378   $rm conftest*
10379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10380   touch conftest.a
10381   ln conftest.a conftest.b 2>&5 || hard_links=no
10382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10383   echo "$as_me:$LINENO: result: $hard_links" >&5
10384 echo "${ECHO_T}$hard_links" >&6
10385   if test "$hard_links" = no; then
10386     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10387 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10388     need_locks=warn
10389   fi
10390 else
10391   need_locks=no
10392 fi
10393
10394 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10395 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10396
10397   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10398   case $host_os in
10399   aix4* | aix5*)
10400     # If we're using GNU nm, then we don't want the "-C" option.
10401     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10402     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10403       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'
10404     else
10405       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'
10406     fi
10407     ;;
10408   pw32*)
10409     export_symbols_cmds_CXX="$ltdll_cmds"
10410   ;;
10411   cygwin* | mingw*)
10412     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10413   ;;
10414   *)
10415     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10416   ;;
10417   esac
10418
10419 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10420 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10421 test "$ld_shlibs_CXX" = no && can_build_shared=no
10422
10423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10424 if test "$GCC" = yes; then
10425   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10426 fi
10427
10428 #
10429 # Do we need to explicitly link libc?
10430 #
10431 case "x$archive_cmds_need_lc_CXX" in
10432 x|xyes)
10433   # Assume -lc should be added
10434   archive_cmds_need_lc_CXX=yes
10435
10436   if test "$enable_shared" = yes && test "$GCC" = yes; then
10437     case $archive_cmds_CXX in
10438     *'~'*)
10439       # FIXME: we may have to deal with multi-command sequences.
10440       ;;
10441     '$CC '*)
10442       # Test whether the compiler implicitly links with -lc since on some
10443       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10444       # to ld, don't add -lc before -lgcc.
10445       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10447       $rm conftest*
10448       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10449
10450       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451   (eval $ac_compile) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } 2>conftest.err; then
10455         soname=conftest
10456         lib=conftest
10457         libobjs=conftest.$ac_objext
10458         deplibs=
10459         wl=$lt_prog_compiler_wl_CXX
10460         compiler_flags=-v
10461         linker_flags=-v
10462         verstring=
10463         output_objdir=.
10464         libname=conftest
10465         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10466         allow_undefined_flag_CXX=
10467         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10468   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }
10472         then
10473           archive_cmds_need_lc_CXX=no
10474         else
10475           archive_cmds_need_lc_CXX=yes
10476         fi
10477         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10478       else
10479         cat conftest.err 1>&5
10480       fi
10481       $rm conftest*
10482       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10483 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10484       ;;
10485     esac
10486   fi
10487   ;;
10488 esac
10489
10490 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10491 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10492 hardcode_action_CXX=
10493 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10494    test -n "$runpath_var CXX" || \
10495    test "X$hardcode_automatic_CXX"="Xyes" ; then
10496
10497   # We can hardcode non-existant directories.
10498   if test "$hardcode_direct_CXX" != no &&
10499      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10500      # have to relink, otherwise we might link with an installed library
10501      # when we should be linking with a yet-to-be-installed one
10502      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10503      test "$hardcode_minus_L_CXX" != no; then
10504     # Linking always hardcodes the temporary library directory.
10505     hardcode_action_CXX=relink
10506   else
10507     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10508     hardcode_action_CXX=immediate
10509   fi
10510 else
10511   # We cannot hardcode anything, or else we can only hardcode existing
10512   # directories.
10513   hardcode_action_CXX=unsupported
10514 fi
10515 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10516 echo "${ECHO_T}$hardcode_action_CXX" >&6
10517
10518 if test "$hardcode_action_CXX" = relink; then
10519   # Fast installation is not supported
10520   enable_fast_install=no
10521 elif test "$shlibpath_overrides_runpath" = yes ||
10522      test "$enable_shared" = no; then
10523   # Fast installation is not necessary
10524   enable_fast_install=needless
10525 fi
10526
10527 striplib=
10528 old_striplib=
10529 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10530 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10531 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10532   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10533   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10534   echo "$as_me:$LINENO: result: yes" >&5
10535 echo "${ECHO_T}yes" >&6
10536 else
10537 # FIXME - insert some real tests, host_os isn't really good enough
10538   case $host_os in
10539    darwin*)
10540        if test -n "$STRIP" ; then
10541          striplib="$STRIP -x"
10542          echo "$as_me:$LINENO: result: yes" >&5
10543 echo "${ECHO_T}yes" >&6
10544        else
10545   echo "$as_me:$LINENO: result: no" >&5
10546 echo "${ECHO_T}no" >&6
10547 fi
10548        ;;
10549    *)
10550   echo "$as_me:$LINENO: result: no" >&5
10551 echo "${ECHO_T}no" >&6
10552     ;;
10553   esac
10554 fi
10555
10556 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10557 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10558 library_names_spec=
10559 libname_spec='lib$name'
10560 soname_spec=
10561 shrext=".so"
10562 postinstall_cmds=
10563 postuninstall_cmds=
10564 finish_cmds=
10565 finish_eval=
10566 shlibpath_var=
10567 shlibpath_overrides_runpath=unknown
10568 version_type=none
10569 dynamic_linker="$host_os ld.so"
10570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10571 if test "$GCC" = yes; then
10572   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10573   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10574     # if the path contains ";" then we assume it to be the separator
10575     # otherwise default to the standard path separator (i.e. ":") - it is
10576     # assumed that no part of a normal pathname contains ";" but that should
10577     # okay in the real world where ";" in dirpaths is itself problematic.
10578     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10579   else
10580     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10581   fi
10582 else
10583   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10584 fi
10585 need_lib_prefix=unknown
10586 hardcode_into_libs=no
10587
10588 # when you set need_version to no, make sure it does not cause -set_version
10589 # flags to be left without arguments
10590 need_version=unknown
10591
10592 case $host_os in
10593 aix3*)
10594   version_type=linux
10595   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10596   shlibpath_var=LIBPATH
10597
10598   # AIX 3 has no versioning support, so we append a major version to the name.
10599   soname_spec='${libname}${release}${shared_ext}$major'
10600   ;;
10601
10602 aix4* | aix5*)
10603   version_type=linux
10604   need_lib_prefix=no
10605   need_version=no
10606   hardcode_into_libs=yes
10607   if test "$host_cpu" = ia64; then
10608     # AIX 5 supports IA64
10609     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10610     shlibpath_var=LD_LIBRARY_PATH
10611   else
10612     # With GCC up to 2.95.x, collect2 would create an import file
10613     # for dependence libraries.  The import file would start with
10614     # the line `#! .'.  This would cause the generated library to
10615     # depend on `.', always an invalid library.  This was fixed in
10616     # development snapshots of GCC prior to 3.0.
10617     case $host_os in
10618       aix4 | aix4.[01] | aix4.[01].*)
10619       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10620            echo ' yes '
10621            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10622         :
10623       else
10624         can_build_shared=no
10625       fi
10626       ;;
10627     esac
10628     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10629     # soname into executable. Probably we can add versioning support to
10630     # collect2, so additional links can be useful in future.
10631     if test "$aix_use_runtimelinking" = yes; then
10632       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10633       # instead of lib<name>.a to let people know that these are not
10634       # typical AIX shared libraries.
10635       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636     else
10637       # We preserve .a as extension for shared libraries through AIX4.2
10638       # and later when we are not doing run time linking.
10639       library_names_spec='${libname}${release}.a $libname.a'
10640       soname_spec='${libname}${release}${shared_ext}$major'
10641     fi
10642     shlibpath_var=LIBPATH
10643   fi
10644   ;;
10645
10646 amigaos*)
10647   library_names_spec='$libname.ixlibrary $libname.a'
10648   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10649   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'
10650   ;;
10651
10652 beos*)
10653   library_names_spec='${libname}${shared_ext}'
10654   dynamic_linker="$host_os ld.so"
10655   shlibpath_var=LIBRARY_PATH
10656   ;;
10657
10658 bsdi4*)
10659   version_type=linux
10660   need_version=no
10661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662   soname_spec='${libname}${release}${shared_ext}$major'
10663   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10664   shlibpath_var=LD_LIBRARY_PATH
10665   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10666   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10667   # the default ld.so.conf also contains /usr/contrib/lib and
10668   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10669   # libtool to hard-code these into programs
10670   ;;
10671
10672 cygwin* | mingw* | pw32*)
10673   version_type=windows
10674   shrext=".dll"
10675   need_version=no
10676   need_lib_prefix=no
10677
10678   case $GCC,$host_os in
10679   yes,cygwin* | yes,mingw* | yes,pw32*)
10680     library_names_spec='$libname.dll.a'
10681     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10682     postinstall_cmds='base_file=`basename \${file}`~
10683       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10684       dldir=$destdir/`dirname \$dlpath`~
10685       test -d \$dldir || mkdir -p \$dldir~
10686       $install_prog $dir/$dlname \$dldir/$dlname'
10687     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10688       dlpath=$dir/\$dldll~
10689        $rm \$dlpath'
10690     shlibpath_overrides_runpath=yes
10691
10692     case $host_os in
10693     cygwin*)
10694       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10695       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10697       ;;
10698     mingw*)
10699       # MinGW DLLs use traditional 'lib' prefix
10700       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10701       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10702       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10703         # It is most probably a Windows format PATH printed by
10704         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10705         # path with ; separators, and with drive letters. We can handle the
10706         # drive letters (cygwin fileutils understands them), so leave them,
10707         # especially as we might pass files found there to a mingw objdump,
10708         # which wouldn't understand a cygwinified path. Ahh.
10709         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10710       else
10711         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10712       fi
10713       ;;
10714     pw32*)
10715       # pw32 DLLs use 'pw' prefix rather than 'lib'
10716       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10717       ;;
10718     esac
10719     ;;
10720
10721   *)
10722     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10723     ;;
10724   esac
10725   dynamic_linker='Win32 ld.exe'
10726   # FIXME: first we should search . and the directory the executable is in
10727   shlibpath_var=PATH
10728   ;;
10729
10730 darwin* | rhapsody*)
10731   dynamic_linker="$host_os dyld"
10732   version_type=darwin
10733   need_lib_prefix=no
10734   need_version=no
10735   # FIXME: Relying on posixy $() will cause problems for
10736   #        cross-compilation, but unfortunately the echo tests do not
10737   #        yet detect zsh echo's removal of \ escapes.
10738   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10739   soname_spec='${libname}${release}${major}$shared_ext'
10740   shlibpath_overrides_runpath=yes
10741   shlibpath_var=DYLD_LIBRARY_PATH
10742   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10743   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10744   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10745   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"`
10746   fi
10747   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10748   ;;
10749
10750 dgux*)
10751   version_type=linux
10752   need_lib_prefix=no
10753   need_version=no
10754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10755   soname_spec='${libname}${release}${shared_ext}$major'
10756   shlibpath_var=LD_LIBRARY_PATH
10757   ;;
10758
10759 freebsd1*)
10760   dynamic_linker=no
10761   ;;
10762
10763 freebsd*)
10764   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10765   version_type=freebsd-$objformat
10766   case $version_type in
10767     freebsd-elf*)
10768       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10769       need_version=no
10770       need_lib_prefix=no
10771       ;;
10772     freebsd-*)
10773       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10774       need_version=yes
10775       ;;
10776   esac
10777   shlibpath_var=LD_LIBRARY_PATH
10778   case $host_os in
10779   freebsd2*)
10780     shlibpath_overrides_runpath=yes
10781     ;;
10782   freebsd3.01* | freebsdelf3.01*)
10783     shlibpath_overrides_runpath=yes
10784     hardcode_into_libs=yes
10785     ;;
10786   *) # from 3.2 on
10787     shlibpath_overrides_runpath=no
10788     hardcode_into_libs=yes
10789     ;;
10790   esac
10791   ;;
10792
10793 gnu*)
10794   version_type=linux
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   hardcode_into_libs=yes
10801   ;;
10802
10803 hpux9* | hpux10* | hpux11*)
10804   # Give a soname corresponding to the major version so that dld.sl refuses to
10805   # link against other versions.
10806   version_type=sunos
10807   need_lib_prefix=no
10808   need_version=no
10809   case "$host_cpu" in
10810   ia64*)
10811     shrext='.so'
10812     hardcode_into_libs=yes
10813     dynamic_linker="$host_os dld.so"
10814     shlibpath_var=LD_LIBRARY_PATH
10815     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817     soname_spec='${libname}${release}${shared_ext}$major'
10818     if test "X$HPUX_IA64_MODE" = X32; then
10819       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10820     else
10821       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10822     fi
10823     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10824     ;;
10825    hppa*64*)
10826      shrext='.sl'
10827      hardcode_into_libs=yes
10828      dynamic_linker="$host_os dld.sl"
10829      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10830      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10831      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832      soname_spec='${libname}${release}${shared_ext}$major'
10833      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10834      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10835      ;;
10836    *)
10837     shrext='.sl'
10838     dynamic_linker="$host_os dld.sl"
10839     shlibpath_var=SHLIB_PATH
10840     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842     soname_spec='${libname}${release}${shared_ext}$major'
10843     ;;
10844   esac
10845   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10846   postinstall_cmds='chmod 555 $lib'
10847   ;;
10848
10849 irix5* | irix6* | nonstopux*)
10850   case $host_os in
10851     nonstopux*) version_type=nonstopux ;;
10852     *)
10853         if test "$lt_cv_prog_gnu_ld" = yes; then
10854                 version_type=linux
10855         else
10856                 version_type=irix
10857         fi ;;
10858   esac
10859   need_lib_prefix=no
10860   need_version=no
10861   soname_spec='${libname}${release}${shared_ext}$major'
10862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10863   case $host_os in
10864   irix5* | nonstopux*)
10865     libsuff= shlibsuff=
10866     ;;
10867   *)
10868     case $LD in # libtool.m4 will add one of these switches to LD
10869     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10870       libsuff= shlibsuff= libmagic=32-bit;;
10871     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10872       libsuff=32 shlibsuff=N32 libmagic=N32;;
10873     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10874       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10875     *) libsuff= shlibsuff= libmagic=never-match;;
10876     esac
10877     ;;
10878   esac
10879   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10880   shlibpath_overrides_runpath=no
10881   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10882   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10883   hardcode_into_libs=yes
10884   ;;
10885
10886 # No shared lib support for Linux oldld, aout, or coff.
10887 linux*oldld* | linux*aout* | linux*coff*)
10888   dynamic_linker=no
10889   ;;
10890
10891 # This must be Linux ELF.
10892 linux*)
10893   version_type=linux
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10899   shlibpath_var=LD_LIBRARY_PATH
10900   shlibpath_overrides_runpath=no
10901   # This implies no fast_install, which is unacceptable.
10902   # Some rework will be needed to allow for fast_install
10903   # before this can be enabled.
10904   hardcode_into_libs=yes
10905
10906   # We used to test for /lib/ld.so.1 and disable shared libraries on
10907   # powerpc, because MkLinux only supported shared libraries with the
10908   # GNU dynamic linker.  Since this was broken with cross compilers,
10909   # most powerpc-linux boxes support dynamic linking these days and
10910   # people can always --disable-shared, the test was removed, and we
10911   # assume the GNU/Linux dynamic linker is in use.
10912   dynamic_linker='GNU/Linux ld.so'
10913   ;;
10914
10915 netbsd*)
10916   version_type=sunos
10917   need_lib_prefix=no
10918   need_version=no
10919   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10921     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10922     dynamic_linker='NetBSD (a.out) ld.so'
10923   else
10924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10925     soname_spec='${libname}${release}${shared_ext}$major'
10926     dynamic_linker='NetBSD ld.elf_so'
10927   fi
10928   shlibpath_var=LD_LIBRARY_PATH
10929   shlibpath_overrides_runpath=yes
10930   hardcode_into_libs=yes
10931   ;;
10932
10933 newsos6)
10934   version_type=linux
10935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936   shlibpath_var=LD_LIBRARY_PATH
10937   shlibpath_overrides_runpath=yes
10938   ;;
10939
10940 nto-qnx)
10941   version_type=linux
10942   need_lib_prefix=no
10943   need_version=no
10944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945   soname_spec='${libname}${release}${shared_ext}$major'
10946   shlibpath_var=LD_LIBRARY_PATH
10947   shlibpath_overrides_runpath=yes
10948   ;;
10949
10950 openbsd*)
10951   version_type=sunos
10952   need_lib_prefix=no
10953   need_version=no
10954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956   shlibpath_var=LD_LIBRARY_PATH
10957   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10958     case $host_os in
10959       openbsd2.[89] | openbsd2.[89].*)
10960         shlibpath_overrides_runpath=no
10961         ;;
10962       *)
10963         shlibpath_overrides_runpath=yes
10964         ;;
10965       esac
10966   else
10967     shlibpath_overrides_runpath=yes
10968   fi
10969   ;;
10970
10971 os2*)
10972   libname_spec='$name'
10973   shrext=".dll"
10974   need_lib_prefix=no
10975   library_names_spec='$libname${shared_ext} $libname.a'
10976   dynamic_linker='OS/2 ld.exe'
10977   shlibpath_var=LIBPATH
10978   ;;
10979
10980 osf3* | osf4* | osf5*)
10981   version_type=osf
10982   need_lib_prefix=no
10983   need_version=no
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10988   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10989   ;;
10990
10991 sco3.2v5*)
10992   version_type=osf
10993   soname_spec='${libname}${release}${shared_ext}$major'
10994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995   shlibpath_var=LD_LIBRARY_PATH
10996   ;;
10997
10998 solaris*)
10999   version_type=linux
11000   need_lib_prefix=no
11001   need_version=no
11002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   shlibpath_var=LD_LIBRARY_PATH
11005   shlibpath_overrides_runpath=yes
11006   hardcode_into_libs=yes
11007   # ldd complains unless libraries are executable
11008   postinstall_cmds='chmod +x $lib'
11009   ;;
11010
11011 sunos4*)
11012   version_type=sunos
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11014   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11015   shlibpath_var=LD_LIBRARY_PATH
11016   shlibpath_overrides_runpath=yes
11017   if test "$with_gnu_ld" = yes; then
11018     need_lib_prefix=no
11019   fi
11020   need_version=yes
11021   ;;
11022
11023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11024   version_type=linux
11025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026   soname_spec='${libname}${release}${shared_ext}$major'
11027   shlibpath_var=LD_LIBRARY_PATH
11028   case $host_vendor in
11029     sni)
11030       shlibpath_overrides_runpath=no
11031       need_lib_prefix=no
11032       export_dynamic_flag_spec='${wl}-Blargedynsym'
11033       runpath_var=LD_RUN_PATH
11034       ;;
11035     siemens)
11036       need_lib_prefix=no
11037       ;;
11038     motorola)
11039       need_lib_prefix=no
11040       need_version=no
11041       shlibpath_overrides_runpath=no
11042       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11043       ;;
11044   esac
11045   ;;
11046
11047 sysv4*MP*)
11048   if test -d /usr/nec ;then
11049     version_type=linux
11050     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11051     soname_spec='$libname${shared_ext}.$major'
11052     shlibpath_var=LD_LIBRARY_PATH
11053   fi
11054   ;;
11055
11056 uts4*)
11057   version_type=linux
11058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059   soname_spec='${libname}${release}${shared_ext}$major'
11060   shlibpath_var=LD_LIBRARY_PATH
11061   ;;
11062
11063 *)
11064   dynamic_linker=no
11065   ;;
11066 esac
11067 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11068 echo "${ECHO_T}$dynamic_linker" >&6
11069 test "$dynamic_linker" = no && can_build_shared=no
11070
11071 if test "x$enable_dlopen" != xyes; then
11072   enable_dlopen=unknown
11073   enable_dlopen_self=unknown
11074   enable_dlopen_self_static=unknown
11075 else
11076   lt_cv_dlopen=no
11077   lt_cv_dlopen_libs=
11078
11079   case $host_os in
11080   beos*)
11081     lt_cv_dlopen="load_add_on"
11082     lt_cv_dlopen_libs=
11083     lt_cv_dlopen_self=yes
11084     ;;
11085
11086   mingw* | pw32*)
11087     lt_cv_dlopen="LoadLibrary"
11088     lt_cv_dlopen_libs=
11089    ;;
11090
11091   cygwin*)
11092     lt_cv_dlopen="dlopen"
11093     lt_cv_dlopen_libs=
11094    ;;
11095
11096   darwin*)
11097   # if libdl is installed we need to link against it
11098     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11099 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11100 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-ldl  $LIBS"
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111
11112 /* Override any gcc2 internal prototype to avoid an error.  */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 /* We use char because int might match the return type of a gcc2
11117    builtin and then its argument prototype would still apply.  */
11118 char dlopen ();
11119 int
11120 main ()
11121 {
11122 dlopen ();
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129   (eval $ac_link) 2>conftest.er1
11130   ac_status=$?
11131   grep -v '^ *+' conftest.er1 >conftest.err
11132   rm -f conftest.er1
11133   cat conftest.err >&5
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -z "$ac_cxx_werror_flag"
11137                          || test ! -s conftest.err'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; } &&
11143          { ac_try='test -s conftest$ac_exeext'
11144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145   (eval $ac_try) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; }; then
11149   ac_cv_lib_dl_dlopen=yes
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 ac_cv_lib_dl_dlopen=no
11155 fi
11156 rm -f conftest.err conftest.$ac_objext \
11157       conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11162 if test $ac_cv_lib_dl_dlopen = yes; then
11163   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11164 else
11165
11166     lt_cv_dlopen="dyld"
11167     lt_cv_dlopen_libs=
11168     lt_cv_dlopen_self=yes
11169
11170 fi
11171
11172    ;;
11173
11174   *)
11175     echo "$as_me:$LINENO: checking for shl_load" >&5
11176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11177 if test "${ac_cv_func_shl_load+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11188 #define shl_load innocuous_shl_load
11189
11190 /* System header to define __stub macros and hopefully few prototypes,
11191     which can conflict with char shl_load (); below.
11192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193     <limits.h> exists even on freestanding compilers.  */
11194
11195 #ifdef __STDC__
11196 # include <limits.h>
11197 #else
11198 # include <assert.h>
11199 #endif
11200
11201 #undef shl_load
11202
11203 /* Override any gcc2 internal prototype to avoid an error.  */
11204 #ifdef __cplusplus
11205 extern "C"
11206 {
11207 #endif
11208 /* We use char because int might match the return type of a gcc2
11209    builtin and then its argument prototype would still apply.  */
11210 char shl_load ();
11211 /* The GNU C library defines this for functions which it implements
11212     to always fail with ENOSYS.  Some functions are actually named
11213     something starting with __ and the normal name is an alias.  */
11214 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11215 choke me
11216 #else
11217 char (*f) () = shl_load;
11218 #endif
11219 #ifdef __cplusplus
11220 }
11221 #endif
11222
11223 int
11224 main ()
11225 {
11226 return f != shl_load;
11227   ;
11228   return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233   (eval $ac_link) 2>conftest.er1
11234   ac_status=$?
11235   grep -v '^ *+' conftest.er1 >conftest.err
11236   rm -f conftest.er1
11237   cat conftest.err >&5
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } &&
11240          { ac_try='test -z "$ac_cxx_werror_flag"
11241                          || test ! -s conftest.err'
11242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243   (eval $ac_try) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; } &&
11247          { ac_try='test -s conftest$ac_exeext'
11248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249   (eval $ac_try) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   ac_cv_func_shl_load=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_cv_func_shl_load=no
11259 fi
11260 rm -f conftest.err conftest.$ac_objext \
11261       conftest$ac_exeext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11264 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11265 if test $ac_cv_func_shl_load = yes; then
11266   lt_cv_dlopen="shl_load"
11267 else
11268   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldld  $LIBS"
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281
11282 /* Override any gcc2 internal prototype to avoid an error.  */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 /* We use char because int might match the return type of a gcc2
11287    builtin and then its argument prototype would still apply.  */
11288 char shl_load ();
11289 int
11290 main ()
11291 {
11292 shl_load ();
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299   (eval $ac_link) 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -z "$ac_cxx_werror_flag"
11307                          || test ! -s conftest.err'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; } &&
11313          { ac_try='test -s conftest$ac_exeext'
11314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315   (eval $ac_try) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   ac_cv_lib_dld_shl_load=yes
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 ac_cv_lib_dld_shl_load=no
11325 fi
11326 rm -f conftest.err conftest.$ac_objext \
11327       conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11332 if test $ac_cv_lib_dld_shl_load = yes; then
11333   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11334 else
11335   echo "$as_me:$LINENO: checking for dlopen" >&5
11336 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11337 if test "${ac_cv_func_dlopen+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h.  */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h.  */
11346 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11348 #define dlopen innocuous_dlopen
11349
11350 /* System header to define __stub macros and hopefully few prototypes,
11351     which can conflict with char dlopen (); below.
11352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11353     <limits.h> exists even on freestanding compilers.  */
11354
11355 #ifdef __STDC__
11356 # include <limits.h>
11357 #else
11358 # include <assert.h>
11359 #endif
11360
11361 #undef dlopen
11362
11363 /* Override any gcc2 internal prototype to avoid an error.  */
11364 #ifdef __cplusplus
11365 extern "C"
11366 {
11367 #endif
11368 /* We use char because int might match the return type of a gcc2
11369    builtin and then its argument prototype would still apply.  */
11370 char dlopen ();
11371 /* The GNU C library defines this for functions which it implements
11372     to always fail with ENOSYS.  Some functions are actually named
11373     something starting with __ and the normal name is an alias.  */
11374 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11375 choke me
11376 #else
11377 char (*f) () = dlopen;
11378 #endif
11379 #ifdef __cplusplus
11380 }
11381 #endif
11382
11383 int
11384 main ()
11385 {
11386 return f != dlopen;
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393   (eval $ac_link) 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_cxx_werror_flag"
11401                          || test ! -s conftest.err'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; } &&
11407          { ac_try='test -s conftest$ac_exeext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_cv_func_dlopen=yes
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ac_cv_func_dlopen=no
11419 fi
11420 rm -f conftest.err conftest.$ac_objext \
11421       conftest$ac_exeext conftest.$ac_ext
11422 fi
11423 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11424 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11425 if test $ac_cv_func_dlopen = yes; then
11426   lt_cv_dlopen="dlopen"
11427 else
11428   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11429 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11430 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433   ac_check_lib_save_LIBS=$LIBS
11434 LIBS="-ldl  $LIBS"
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441
11442 /* Override any gcc2 internal prototype to avoid an error.  */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 /* We use char because int might match the return type of a gcc2
11447    builtin and then its argument prototype would still apply.  */
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 dlopen ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459   (eval $ac_link) 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -z "$ac_cxx_werror_flag"
11467                          || test ! -s conftest.err'
11468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469   (eval $ac_try) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; } &&
11473          { ac_try='test -s conftest$ac_exeext'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_lib_dl_dlopen=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 ac_cv_lib_dl_dlopen=no
11485 fi
11486 rm -f conftest.err conftest.$ac_objext \
11487       conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11491 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11492 if test $ac_cv_lib_dl_dlopen = yes; then
11493   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11494 else
11495   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11496 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11497 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lsvld  $LIBS"
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508
11509 /* Override any gcc2 internal prototype to avoid an error.  */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 /* We use char because int might match the return type of a gcc2
11514    builtin and then its argument prototype would still apply.  */
11515 char dlopen ();
11516 int
11517 main ()
11518 {
11519 dlopen ();
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11526   (eval $ac_link) 2>conftest.er1
11527   ac_status=$?
11528   grep -v '^ *+' conftest.er1 >conftest.err
11529   rm -f conftest.er1
11530   cat conftest.err >&5
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); } &&
11533          { ac_try='test -z "$ac_cxx_werror_flag"
11534                          || test ! -s conftest.err'
11535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536   (eval $ac_try) 2>&5
11537   ac_status=$?
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); }; } &&
11540          { ac_try='test -s conftest$ac_exeext'
11541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542   (eval $ac_try) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; }; then
11546   ac_cv_lib_svld_dlopen=yes
11547 else
11548   echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 ac_cv_lib_svld_dlopen=no
11552 fi
11553 rm -f conftest.err conftest.$ac_objext \
11554       conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11558 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11559 if test $ac_cv_lib_svld_dlopen = yes; then
11560   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11561 else
11562   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11563 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11564 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldld  $LIBS"
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575
11576 /* Override any gcc2 internal prototype to avoid an error.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581    builtin and then its argument prototype would still apply.  */
11582 char dld_link ();
11583 int
11584 main ()
11585 {
11586 dld_link ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593   (eval $ac_link) 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -z "$ac_cxx_werror_flag"
11601                          || test ! -s conftest.err'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest$ac_exeext'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; }; then
11613   ac_cv_lib_dld_dld_link=yes
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618 ac_cv_lib_dld_dld_link=no
11619 fi
11620 rm -f conftest.err conftest.$ac_objext \
11621       conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11625 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11626 if test $ac_cv_lib_dld_dld_link = yes; then
11627   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11628 fi
11629
11630
11631 fi
11632
11633
11634 fi
11635
11636
11637 fi
11638
11639
11640 fi
11641
11642
11643 fi
11644
11645     ;;
11646   esac
11647
11648   if test "x$lt_cv_dlopen" != xno; then
11649     enable_dlopen=yes
11650   else
11651     enable_dlopen=no
11652   fi
11653
11654   case $lt_cv_dlopen in
11655   dlopen)
11656     save_CPPFLAGS="$CPPFLAGS"
11657     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11658
11659     save_LDFLAGS="$LDFLAGS"
11660     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11661
11662     save_LIBS="$LIBS"
11663     LIBS="$lt_cv_dlopen_libs $LIBS"
11664
11665     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11666 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11667 if test "${lt_cv_dlopen_self+set}" = set; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670           if test "$cross_compiling" = yes; then :
11671   lt_cv_dlopen_self=cross
11672 else
11673   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11674   lt_status=$lt_dlunknown
11675   cat > conftest.$ac_ext <<EOF
11676 #line 11676 "configure"
11677 #include "confdefs.h"
11678
11679 #if HAVE_DLFCN_H
11680 #include <dlfcn.h>
11681 #endif
11682
11683 #include <stdio.h>
11684
11685 #ifdef RTLD_GLOBAL
11686 #  define LT_DLGLOBAL           RTLD_GLOBAL
11687 #else
11688 #  ifdef DL_GLOBAL
11689 #    define LT_DLGLOBAL         DL_GLOBAL
11690 #  else
11691 #    define LT_DLGLOBAL         0
11692 #  endif
11693 #endif
11694
11695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11696    find out it does not work in some platform. */
11697 #ifndef LT_DLLAZY_OR_NOW
11698 #  ifdef RTLD_LAZY
11699 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11700 #  else
11701 #    ifdef DL_LAZY
11702 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11703 #    else
11704 #      ifdef RTLD_NOW
11705 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11706 #      else
11707 #        ifdef DL_NOW
11708 #          define LT_DLLAZY_OR_NOW      DL_NOW
11709 #        else
11710 #          define LT_DLLAZY_OR_NOW      0
11711 #        endif
11712 #      endif
11713 #    endif
11714 #  endif
11715 #endif
11716
11717 #ifdef __cplusplus
11718 extern "C" void exit (int);
11719 #endif
11720
11721 void fnord() { int i=42;}
11722 int main ()
11723 {
11724   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11725   int status = $lt_dlunknown;
11726
11727   if (self)
11728     {
11729       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11730       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11731       /* dlclose (self); */
11732     }
11733
11734     exit (status);
11735 }
11736 EOF
11737   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738   (eval $ac_link) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11742     (./conftest; exit; ) 2>/dev/null
11743     lt_status=$?
11744     case x$lt_status in
11745       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11746       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11747       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11748     esac
11749   else :
11750     # compilation failed
11751     lt_cv_dlopen_self=no
11752   fi
11753 fi
11754 rm -fr conftest*
11755
11756
11757 fi
11758 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11759 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11760
11761     if test "x$lt_cv_dlopen_self" = xyes; then
11762       LDFLAGS="$LDFLAGS $link_static_flag"
11763       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11764 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11765 if test "${lt_cv_dlopen_self_static+set}" = set; then
11766   echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768           if test "$cross_compiling" = yes; then :
11769   lt_cv_dlopen_self_static=cross
11770 else
11771   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11772   lt_status=$lt_dlunknown
11773   cat > conftest.$ac_ext <<EOF
11774 #line 11774 "configure"
11775 #include "confdefs.h"
11776
11777 #if HAVE_DLFCN_H
11778 #include <dlfcn.h>
11779 #endif
11780
11781 #include <stdio.h>
11782
11783 #ifdef RTLD_GLOBAL
11784 #  define LT_DLGLOBAL           RTLD_GLOBAL
11785 #else
11786 #  ifdef DL_GLOBAL
11787 #    define LT_DLGLOBAL         DL_GLOBAL
11788 #  else
11789 #    define LT_DLGLOBAL         0
11790 #  endif
11791 #endif
11792
11793 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11794    find out it does not work in some platform. */
11795 #ifndef LT_DLLAZY_OR_NOW
11796 #  ifdef RTLD_LAZY
11797 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11798 #  else
11799 #    ifdef DL_LAZY
11800 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11801 #    else
11802 #      ifdef RTLD_NOW
11803 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11804 #      else
11805 #        ifdef DL_NOW
11806 #          define LT_DLLAZY_OR_NOW      DL_NOW
11807 #        else
11808 #          define LT_DLLAZY_OR_NOW      0
11809 #        endif
11810 #      endif
11811 #    endif
11812 #  endif
11813 #endif
11814
11815 #ifdef __cplusplus
11816 extern "C" void exit (int);
11817 #endif
11818
11819 void fnord() { int i=42;}
11820 int main ()
11821 {
11822   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11823   int status = $lt_dlunknown;
11824
11825   if (self)
11826     {
11827       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11828       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11829       /* dlclose (self); */
11830     }
11831
11832     exit (status);
11833 }
11834 EOF
11835   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836   (eval $ac_link) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11840     (./conftest; exit; ) 2>/dev/null
11841     lt_status=$?
11842     case x$lt_status in
11843       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11844       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11845       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11846     esac
11847   else :
11848     # compilation failed
11849     lt_cv_dlopen_self_static=no
11850   fi
11851 fi
11852 rm -fr conftest*
11853
11854
11855 fi
11856 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11857 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11858     fi
11859
11860     CPPFLAGS="$save_CPPFLAGS"
11861     LDFLAGS="$save_LDFLAGS"
11862     LIBS="$save_LIBS"
11863     ;;
11864   esac
11865
11866   case $lt_cv_dlopen_self in
11867   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11868   *) enable_dlopen_self=unknown ;;
11869   esac
11870
11871   case $lt_cv_dlopen_self_static in
11872   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11873   *) enable_dlopen_self_static=unknown ;;
11874   esac
11875 fi
11876
11877
11878 # The else clause should only fire when bootstrapping the
11879 # libtool distribution, otherwise you forgot to ship ltmain.sh
11880 # with your package, and you will get complaints that there are
11881 # no rules to generate ltmain.sh.
11882 if test -f "$ltmain"; then
11883   # See if we are running on zsh, and set the options which allow our commands through
11884   # without removal of \ escapes.
11885   if test -n "${ZSH_VERSION+set}" ; then
11886     setopt NO_GLOB_SUBST
11887   fi
11888   # Now quote all the things that may contain metacharacters while being
11889   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11890   # variables and quote the copies for generation of the libtool script.
11891   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11892     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11893     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11894     deplibs_check_method reload_flag reload_cmds need_locks \
11895     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11896     lt_cv_sys_global_symbol_to_c_name_address \
11897     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11898     old_postinstall_cmds old_postuninstall_cmds \
11899     compiler_CXX \
11900     CC_CXX \
11901     LD_CXX \
11902     lt_prog_compiler_wl_CXX \
11903     lt_prog_compiler_pic_CXX \
11904     lt_prog_compiler_static_CXX \
11905     lt_prog_compiler_no_builtin_flag_CXX \
11906     export_dynamic_flag_spec_CXX \
11907     thread_safe_flag_spec_CXX \
11908     whole_archive_flag_spec_CXX \
11909     enable_shared_with_static_runtimes_CXX \
11910     old_archive_cmds_CXX \
11911     old_archive_from_new_cmds_CXX \
11912     predep_objects_CXX \
11913     postdep_objects_CXX \
11914     predeps_CXX \
11915     postdeps_CXX \
11916     compiler_lib_search_path_CXX \
11917     archive_cmds_CXX \
11918     archive_expsym_cmds_CXX \
11919     postinstall_cmds_CXX \
11920     postuninstall_cmds_CXX \
11921     old_archive_from_expsyms_cmds_CXX \
11922     allow_undefined_flag_CXX \
11923     no_undefined_flag_CXX \
11924     export_symbols_cmds_CXX \
11925     hardcode_libdir_flag_spec_CXX \
11926     hardcode_libdir_flag_spec_ld_CXX \
11927     hardcode_libdir_separator_CXX \
11928     hardcode_automatic_CXX \
11929     module_cmds_CXX \
11930     module_expsym_cmds_CXX \
11931     lt_cv_prog_compiler_c_o_CXX \
11932     exclude_expsyms_CXX \
11933     include_expsyms_CXX; do
11934
11935     case $var in
11936     old_archive_cmds_CXX | \
11937     old_archive_from_new_cmds_CXX | \
11938     archive_cmds_CXX | \
11939     archive_expsym_cmds_CXX | \
11940     module_cmds_CXX | \
11941     module_expsym_cmds_CXX | \
11942     old_archive_from_expsyms_cmds_CXX | \
11943     export_symbols_cmds_CXX | \
11944     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11945     postinstall_cmds | postuninstall_cmds | \
11946     old_postinstall_cmds | old_postuninstall_cmds | \
11947     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11948       # Double-quote double-evaled strings.
11949       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11950       ;;
11951     *)
11952       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11953       ;;
11954     esac
11955   done
11956
11957   case $lt_echo in
11958   *'\$0 --fallback-echo"')
11959     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11960     ;;
11961   esac
11962
11963 cfgfile="$ofile"
11964
11965   cat <<__EOF__ >> "$cfgfile"
11966 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11967
11968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11969
11970 # Shell to use when invoking shell scripts.
11971 SHELL=$lt_SHELL
11972
11973 # Whether or not to build shared libraries.
11974 build_libtool_libs=$enable_shared
11975
11976 # Whether or not to build static libraries.
11977 build_old_libs=$enable_static
11978
11979 # Whether or not to add -lc for building shared libraries.
11980 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11981
11982 # Whether or not to disallow shared libs when runtime libs are static
11983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11984
11985 # Whether or not to optimize for fast installation.
11986 fast_install=$enable_fast_install
11987
11988 # The host system.
11989 host_alias=$host_alias
11990 host=$host
11991
11992 # An echo program that does not interpret backslashes.
11993 echo=$lt_echo
11994
11995 # The archiver.
11996 AR=$lt_AR
11997 AR_FLAGS=$lt_AR_FLAGS
11998
11999 # A C compiler.
12000 LTCC=$lt_LTCC
12001
12002 # A language-specific compiler.
12003 CC=$lt_compiler_CXX
12004
12005 # Is the compiler the GNU C compiler?
12006 with_gcc=$GCC_CXX
12007
12008 # An ERE matcher.
12009 EGREP=$lt_EGREP
12010
12011 # The linker used to build libraries.
12012 LD=$lt_LD_CXX
12013
12014 # Whether we need hard or soft links.
12015 LN_S=$lt_LN_S
12016
12017 # A BSD-compatible nm program.
12018 NM=$lt_NM
12019
12020 # A symbol stripping program
12021 STRIP=$STRIP
12022
12023 # Used to examine libraries when file_magic_cmd begins "file"
12024 MAGIC_CMD=$MAGIC_CMD
12025
12026 # Used on cygwin: DLL creation program.
12027 DLLTOOL="$DLLTOOL"
12028
12029 # Used on cygwin: object dumper.
12030 OBJDUMP="$OBJDUMP"
12031
12032 # Used on cygwin: assembler.
12033 AS="$AS"
12034
12035 # The name of the directory that contains temporary libtool files.
12036 objdir=$objdir
12037
12038 # How to create reloadable object files.
12039 reload_flag=$lt_reload_flag
12040 reload_cmds=$lt_reload_cmds
12041
12042 # How to pass a linker flag through the compiler.
12043 wl=$lt_lt_prog_compiler_wl_CXX
12044
12045 # Object file suffix (normally "o").
12046 objext="$ac_objext"
12047
12048 # Old archive suffix (normally "a").
12049 libext="$libext"
12050
12051 # Shared library suffix (normally ".so").
12052 shrext='$shrext'
12053
12054 # Executable file suffix (normally "").
12055 exeext="$exeext"
12056
12057 # Additional compiler flags for building library objects.
12058 pic_flag=$lt_lt_prog_compiler_pic_CXX
12059 pic_mode=$pic_mode
12060
12061 # What is the maximum length of a command?
12062 max_cmd_len=$lt_cv_sys_max_cmd_len
12063
12064 # Does compiler simultaneously support -c and -o options?
12065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12066
12067 # Must we lock files when doing compilation ?
12068 need_locks=$lt_need_locks
12069
12070 # Do we need the lib prefix for modules?
12071 need_lib_prefix=$need_lib_prefix
12072
12073 # Do we need a version for libraries?
12074 need_version=$need_version
12075
12076 # Whether dlopen is supported.
12077 dlopen_support=$enable_dlopen
12078
12079 # Whether dlopen of programs is supported.
12080 dlopen_self=$enable_dlopen_self
12081
12082 # Whether dlopen of statically linked programs is supported.
12083 dlopen_self_static=$enable_dlopen_self_static
12084
12085 # Compiler flag to prevent dynamic linking.
12086 link_static_flag=$lt_lt_prog_compiler_static_CXX
12087
12088 # Compiler flag to turn off builtin functions.
12089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12090
12091 # Compiler flag to allow reflexive dlopens.
12092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12093
12094 # Compiler flag to generate shared objects directly from archives.
12095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12096
12097 # Compiler flag to generate thread-safe objects.
12098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12099
12100 # Library versioning type.
12101 version_type=$version_type
12102
12103 # Format of library name prefix.
12104 libname_spec=$lt_libname_spec
12105
12106 # List of archive names.  First name is the real one, the rest are links.
12107 # The last name is the one that the linker finds with -lNAME.
12108 library_names_spec=$lt_library_names_spec
12109
12110 # The coded name of the library, if different from the real name.
12111 soname_spec=$lt_soname_spec
12112
12113 # Commands used to build and install an old-style archive.
12114 RANLIB=$lt_RANLIB
12115 old_archive_cmds=$lt_old_archive_cmds_CXX
12116 old_postinstall_cmds=$lt_old_postinstall_cmds
12117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12118
12119 # Create an old-style archive from a shared archive.
12120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12121
12122 # Create a temporary old-style archive to link instead of a shared archive.
12123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12124
12125 # Commands used to build and install a shared archive.
12126 archive_cmds=$lt_archive_cmds_CXX
12127 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12128 postinstall_cmds=$lt_postinstall_cmds
12129 postuninstall_cmds=$lt_postuninstall_cmds
12130
12131 # Commands used to build a loadable module (assumed same as above if empty)
12132 module_cmds=$lt_module_cmds_CXX
12133 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12134
12135 # Commands to strip libraries.
12136 old_striplib=$lt_old_striplib
12137 striplib=$lt_striplib
12138
12139 # Dependencies to place before the objects being linked to create a
12140 # shared library.
12141 predep_objects=$lt_predep_objects_CXX
12142
12143 # Dependencies to place after the objects being linked to create a
12144 # shared library.
12145 postdep_objects=$lt_postdep_objects_CXX
12146
12147 # Dependencies to place before the objects being linked to create a
12148 # shared library.
12149 predeps=$lt_predeps_CXX
12150
12151 # Dependencies to place after the objects being linked to create a
12152 # shared library.
12153 postdeps=$lt_postdeps_CXX
12154
12155 # The library search path used internally by the compiler when linking
12156 # a shared library.
12157 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12158
12159 # Method to check whether dependent libraries are shared objects.
12160 deplibs_check_method=$lt_deplibs_check_method
12161
12162 # Command to use when deplibs_check_method == file_magic.
12163 file_magic_cmd=$lt_file_magic_cmd
12164
12165 # Flag that allows shared libraries with undefined symbols to be built.
12166 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12167
12168 # Flag that forces no undefined symbols.
12169 no_undefined_flag=$lt_no_undefined_flag_CXX
12170
12171 # Commands used to finish a libtool library installation in a directory.
12172 finish_cmds=$lt_finish_cmds
12173
12174 # Same as above, but a single script fragment to be evaled but not shown.
12175 finish_eval=$lt_finish_eval
12176
12177 # Take the output of nm and produce a listing of raw symbols and C names.
12178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12179
12180 # Transform the output of nm in a proper C declaration
12181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12182
12183 # Transform the output of nm in a C name address pair
12184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12185
12186 # This is the shared library runtime path variable.
12187 runpath_var=$runpath_var
12188
12189 # This is the shared library path variable.
12190 shlibpath_var=$shlibpath_var
12191
12192 # Is shlibpath searched before the hard-coded library search path?
12193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12194
12195 # How to hardcode a shared library path into an executable.
12196 hardcode_action=$hardcode_action_CXX
12197
12198 # Whether we should hardcode library paths into libraries.
12199 hardcode_into_libs=$hardcode_into_libs
12200
12201 # Flag to hardcode \$libdir into a binary during linking.
12202 # This must work even if \$libdir does not exist.
12203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12204
12205 # If ld is used when linking, flag to hardcode \$libdir into
12206 # a binary during linking. This must work even if \$libdir does
12207 # not exist.
12208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12209
12210 # Whether we need a single -rpath flag with a separated argument.
12211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12212
12213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12214 # resulting binary.
12215 hardcode_direct=$hardcode_direct_CXX
12216
12217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12218 # resulting binary.
12219 hardcode_minus_L=$hardcode_minus_L_CXX
12220
12221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12222 # the resulting binary.
12223 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12224
12225 # Set to yes if building a shared library automatically hardcodes DIR into the library
12226 # and all subsequent libraries and executables linked against it.
12227 hardcode_automatic=$hardcode_automatic_CXX
12228
12229 # Variables whose values should be saved in libtool wrapper scripts and
12230 # restored at relink time.
12231 variables_saved_for_relink="$variables_saved_for_relink"
12232
12233 # Whether libtool must link a program against all its dependency libraries.
12234 link_all_deplibs=$link_all_deplibs_CXX
12235
12236 # Compile-time system search path for libraries
12237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12238
12239 # Run-time system search path for libraries
12240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12241
12242 # Fix the shell variable \$srcfile for the compiler.
12243 fix_srcfile_path="$fix_srcfile_path_CXX"
12244
12245 # Set to yes if exported symbols are required.
12246 always_export_symbols=$always_export_symbols_CXX
12247
12248 # The commands to list exported symbols.
12249 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12250
12251 # The commands to extract the exported symbol list from a shared archive.
12252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12253
12254 # Symbols that should not be listed in the preloaded symbols.
12255 exclude_expsyms=$lt_exclude_expsyms_CXX
12256
12257 # Symbols that must always be exported.
12258 include_expsyms=$lt_include_expsyms_CXX
12259
12260 # ### END LIBTOOL TAG CONFIG: $tagname
12261
12262 __EOF__
12263
12264
12265 else
12266   # If there is no Makefile yet, we rely on a make rule to execute
12267   # `config.status --recheck' to rerun these tests and create the
12268   # libtool script then.
12269   test -f Makefile && make "$ltmain"
12270 fi
12271
12272
12273 ac_ext=c
12274 ac_cpp='$CPP $CPPFLAGS'
12275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12278
12279 CC=$lt_save_CC
12280 LDCXX=$LD
12281 LD=$lt_save_LD
12282 GCC=$lt_save_GCC
12283 with_gnu_ldcxx=$with_gnu_ld
12284 with_gnu_ld=$lt_save_with_gnu_ld
12285 lt_cv_path_LDCXX=$lt_cv_path_LD
12286 lt_cv_path_LD=$lt_save_path_LD
12287 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12288 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12289
12290         else
12291           tagname=""
12292         fi
12293         ;;
12294
12295       F77)
12296         if test -n "$F77" && test "X$F77" != "Xno"; then
12297
12298 ac_ext=f
12299 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12300 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12302
12303
12304 archive_cmds_need_lc_F77=no
12305 allow_undefined_flag_F77=
12306 always_export_symbols_F77=no
12307 archive_expsym_cmds_F77=
12308 export_dynamic_flag_spec_F77=
12309 hardcode_direct_F77=no
12310 hardcode_libdir_flag_spec_F77=
12311 hardcode_libdir_flag_spec_ld_F77=
12312 hardcode_libdir_separator_F77=
12313 hardcode_minus_L_F77=no
12314 hardcode_automatic_F77=no
12315 module_cmds_F77=
12316 module_expsym_cmds_F77=
12317 link_all_deplibs_F77=unknown
12318 old_archive_cmds_F77=$old_archive_cmds
12319 no_undefined_flag_F77=
12320 whole_archive_flag_spec_F77=
12321 enable_shared_with_static_runtimes_F77=no
12322
12323 # Source file extension for f77 test sources.
12324 ac_ext=f
12325
12326 # Object file extension for compiled f77 test sources.
12327 objext=o
12328 objext_F77=$objext
12329
12330 # Code to be used in simple compile tests
12331 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12332
12333 # Code to be used in simple link tests
12334 lt_simple_link_test_code="      program t\n      end\n"
12335
12336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12337
12338 # If no C compiler was specified, use CC.
12339 LTCC=${LTCC-"$CC"}
12340
12341 # Allow CC to be a program name with arguments.
12342 compiler=$CC
12343
12344
12345 # Allow CC to be a program name with arguments.
12346 lt_save_CC="$CC"
12347 CC=${F77-"f77"}
12348 compiler=$CC
12349 compiler_F77=$CC
12350 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12351
12352 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12353 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12354 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12355 echo "${ECHO_T}$can_build_shared" >&6
12356
12357 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12358 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12359 test "$can_build_shared" = "no" && enable_shared=no
12360
12361 # On AIX, shared libraries and static libraries use the same namespace, and
12362 # are all built from PIC.
12363 case "$host_os" in
12364 aix3*)
12365   test "$enable_shared" = yes && enable_static=no
12366   if test -n "$RANLIB"; then
12367     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12368     postinstall_cmds='$RANLIB $lib'
12369   fi
12370   ;;
12371 aix4*)
12372   test "$enable_shared" = yes && enable_static=no
12373   ;;
12374 esac
12375 echo "$as_me:$LINENO: result: $enable_shared" >&5
12376 echo "${ECHO_T}$enable_shared" >&6
12377
12378 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12379 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12380 # Make sure either enable_shared or enable_static is yes.
12381 test "$enable_shared" = yes || enable_static=yes
12382 echo "$as_me:$LINENO: result: $enable_static" >&5
12383 echo "${ECHO_T}$enable_static" >&6
12384
12385 test "$ld_shlibs_F77" = no && can_build_shared=no
12386
12387 GCC_F77="$G77"
12388 LD_F77="$LD"
12389
12390 lt_prog_compiler_wl_F77=
12391 lt_prog_compiler_pic_F77=
12392 lt_prog_compiler_static_F77=
12393
12394 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12395 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12396
12397   if test "$GCC" = yes; then
12398     lt_prog_compiler_wl_F77='-Wl,'
12399     lt_prog_compiler_static_F77='-static'
12400
12401     case $host_os in
12402       aix*)
12403       # All AIX code is PIC.
12404       if test "$host_cpu" = ia64; then
12405         # AIX 5 now supports IA64 processor
12406         lt_prog_compiler_static_F77='-Bstatic'
12407       fi
12408       ;;
12409
12410     amigaos*)
12411       # FIXME: we need at least 68020 code to build shared libraries, but
12412       # adding the `-m68020' flag to GCC prevents building anything better,
12413       # like `-m68040'.
12414       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12415       ;;
12416
12417     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12418       # PIC is the default for these OSes.
12419       ;;
12420
12421     mingw* | pw32* | os2*)
12422       # This hack is so that the source file can tell whether it is being
12423       # built for inclusion in a dll (and should export symbols for example).
12424       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12425       ;;
12426
12427     darwin* | rhapsody*)
12428       # PIC is the default on this platform
12429       # Common symbols not allowed in MH_DYLIB files
12430       lt_prog_compiler_pic_F77='-fno-common'
12431       ;;
12432
12433     msdosdjgpp*)
12434       # Just because we use GCC doesn't mean we suddenly get shared libraries
12435       # on systems that don't support them.
12436       lt_prog_compiler_can_build_shared_F77=no
12437       enable_shared=no
12438       ;;
12439
12440     sysv4*MP*)
12441       if test -d /usr/nec; then
12442         lt_prog_compiler_pic_F77=-Kconform_pic
12443       fi
12444       ;;
12445
12446     hpux*)
12447       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12448       # not for PA HP-UX.
12449       case "$host_cpu" in
12450       hppa*64*|ia64*)
12451         # +Z the default
12452         ;;
12453       *)
12454         lt_prog_compiler_pic_F77='-fPIC'
12455         ;;
12456       esac
12457       ;;
12458
12459     *)
12460       lt_prog_compiler_pic_F77='-fPIC'
12461       ;;
12462     esac
12463   else
12464     # PORTME Check for flag to pass linker flags through the system compiler.
12465     case $host_os in
12466     aix*)
12467       lt_prog_compiler_wl_F77='-Wl,'
12468       if test "$host_cpu" = ia64; then
12469         # AIX 5 now supports IA64 processor
12470         lt_prog_compiler_static_F77='-Bstatic'
12471       else
12472         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12473       fi
12474       ;;
12475
12476     mingw* | pw32* | os2*)
12477       # This hack is so that the source file can tell whether it is being
12478       # built for inclusion in a dll (and should export symbols for example).
12479       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12480       ;;
12481
12482     hpux9* | hpux10* | hpux11*)
12483       lt_prog_compiler_wl_F77='-Wl,'
12484       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12485       # not for PA HP-UX.
12486       case "$host_cpu" in
12487       hppa*64*|ia64*)
12488         # +Z the default
12489         ;;
12490       *)
12491         lt_prog_compiler_pic_F77='+Z'
12492         ;;
12493       esac
12494       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12495       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12496       ;;
12497
12498     irix5* | irix6* | nonstopux*)
12499       lt_prog_compiler_wl_F77='-Wl,'
12500       # PIC (with -KPIC) is the default.
12501       lt_prog_compiler_static_F77='-non_shared'
12502       ;;
12503
12504     newsos6)
12505       lt_prog_compiler_pic_F77='-KPIC'
12506       lt_prog_compiler_static_F77='-Bstatic'
12507       ;;
12508
12509     linux*)
12510       case $CC in
12511       icc|ecc)
12512         lt_prog_compiler_wl_F77='-Wl,'
12513         lt_prog_compiler_pic_F77='-KPIC'
12514         lt_prog_compiler_static_F77='-static'
12515         ;;
12516       ccc)
12517         lt_prog_compiler_wl_F77='-Wl,'
12518         # All Alpha code is PIC.
12519         lt_prog_compiler_static_F77='-non_shared'
12520         ;;
12521       esac
12522       ;;
12523
12524     osf3* | osf4* | osf5*)
12525       lt_prog_compiler_wl_F77='-Wl,'
12526       # All OSF/1 code is PIC.
12527       lt_prog_compiler_static_F77='-non_shared'
12528       ;;
12529
12530     sco3.2v5*)
12531       lt_prog_compiler_pic_F77='-Kpic'
12532       lt_prog_compiler_static_F77='-dn'
12533       ;;
12534
12535     solaris*)
12536       lt_prog_compiler_wl_F77='-Wl,'
12537       lt_prog_compiler_pic_F77='-KPIC'
12538       lt_prog_compiler_static_F77='-Bstatic'
12539       ;;
12540
12541     sunos4*)
12542       lt_prog_compiler_wl_F77='-Qoption ld '
12543       lt_prog_compiler_pic_F77='-PIC'
12544       lt_prog_compiler_static_F77='-Bstatic'
12545       ;;
12546
12547     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12548       lt_prog_compiler_wl_F77='-Wl,'
12549       lt_prog_compiler_pic_F77='-KPIC'
12550       lt_prog_compiler_static_F77='-Bstatic'
12551       ;;
12552
12553     sysv4*MP*)
12554       if test -d /usr/nec ;then
12555         lt_prog_compiler_pic_F77='-Kconform_pic'
12556         lt_prog_compiler_static_F77='-Bstatic'
12557       fi
12558       ;;
12559
12560     uts4*)
12561       lt_prog_compiler_pic_F77='-pic'
12562       lt_prog_compiler_static_F77='-Bstatic'
12563       ;;
12564
12565     *)
12566       lt_prog_compiler_can_build_shared_F77=no
12567       ;;
12568     esac
12569   fi
12570
12571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12572 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12573
12574 #
12575 # Check to make sure the PIC flag actually works.
12576 #
12577 if test -n "$lt_prog_compiler_pic_F77"; then
12578   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12580 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   lt_prog_compiler_pic_works_F77=no
12584   ac_outfile=conftest.$ac_objext
12585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12586    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12587    # Insert the option either (1) after the last *FLAGS variable, or
12588    # (2) before a word containing "conftest.", or (3) at the end.
12589    # Note that $ac_compile itself does not contain backslashes and begins
12590    # with a dollar sign (not a hyphen), so the echo should work correctly.
12591    # The option is referenced via a variable to avoid confusing sed.
12592    lt_compile=`echo "$ac_compile" | $SED \
12593    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12595    -e 's:$: $lt_compiler_flag:'`
12596    (eval echo "\"\$as_me:12596: $lt_compile\"" >&5)
12597    (eval "$lt_compile" 2>conftest.err)
12598    ac_status=$?
12599    cat conftest.err >&5
12600    echo "$as_me:12600: \$? = $ac_status" >&5
12601    if (exit $ac_status) && test -s "$ac_outfile"; then
12602      # The compiler can only warn and ignore the option if not recognized
12603      # So say no if there are warnings
12604      if test ! -s conftest.err; then
12605        lt_prog_compiler_pic_works_F77=yes
12606      fi
12607    fi
12608    $rm conftest*
12609
12610 fi
12611 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12612 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12613
12614 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12615     case $lt_prog_compiler_pic_F77 in
12616      "" | " "*) ;;
12617      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12618      esac
12619 else
12620     lt_prog_compiler_pic_F77=
12621      lt_prog_compiler_can_build_shared_F77=no
12622 fi
12623
12624 fi
12625 case "$host_os" in
12626   # For platforms which do not support PIC, -DPIC is meaningless:
12627   *djgpp*)
12628     lt_prog_compiler_pic_F77=
12629     ;;
12630   *)
12631     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12632     ;;
12633 esac
12634
12635 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12636 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12637 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640   lt_cv_prog_compiler_c_o_F77=no
12641    $rm -r conftest 2>/dev/null
12642    mkdir conftest
12643    cd conftest
12644    mkdir out
12645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12646
12647    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12648    # that will create temporary files in the current directory regardless of
12649    # the output directory.  Thus, making CWD read-only will cause this test
12650    # to fail, enabling locking or at least warning the user not to do parallel
12651    # builds.
12652    chmod -w .
12653
12654    lt_compiler_flag="-o out/conftest2.$ac_objext"
12655    # Insert the option either (1) after the last *FLAGS variable, or
12656    # (2) before a word containing "conftest.", or (3) at the end.
12657    # Note that $ac_compile itself does not contain backslashes and begins
12658    # with a dollar sign (not a hyphen), so the echo should work correctly.
12659    lt_compile=`echo "$ac_compile" | $SED \
12660    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12662    -e 's:$: $lt_compiler_flag:'`
12663    (eval echo "\"\$as_me:12663: $lt_compile\"" >&5)
12664    (eval "$lt_compile" 2>out/conftest.err)
12665    ac_status=$?
12666    cat out/conftest.err >&5
12667    echo "$as_me:12667: \$? = $ac_status" >&5
12668    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12669    then
12670      # The compiler can only warn and ignore the option if not recognized
12671      # So say no if there are warnings
12672      if test ! -s out/conftest.err; then
12673        lt_cv_prog_compiler_c_o_F77=yes
12674      fi
12675    fi
12676    chmod u+w .
12677    $rm conftest* out/*
12678    rmdir out
12679    cd ..
12680    rmdir conftest
12681    $rm conftest*
12682
12683 fi
12684 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12685 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12686
12687
12688 hard_links="nottested"
12689 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12690   # do not overwrite the value of need_locks provided by the user
12691   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12692 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12693   hard_links=yes
12694   $rm conftest*
12695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12696   touch conftest.a
12697   ln conftest.a conftest.b 2>&5 || hard_links=no
12698   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12699   echo "$as_me:$LINENO: result: $hard_links" >&5
12700 echo "${ECHO_T}$hard_links" >&6
12701   if test "$hard_links" = no; then
12702     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12703 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12704     need_locks=warn
12705   fi
12706 else
12707   need_locks=no
12708 fi
12709
12710 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12711 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12712
12713   runpath_var=
12714   allow_undefined_flag_F77=
12715   enable_shared_with_static_runtimes_F77=no
12716   archive_cmds_F77=
12717   archive_expsym_cmds_F77=
12718   old_archive_From_new_cmds_F77=
12719   old_archive_from_expsyms_cmds_F77=
12720   export_dynamic_flag_spec_F77=
12721   whole_archive_flag_spec_F77=
12722   thread_safe_flag_spec_F77=
12723   hardcode_libdir_flag_spec_F77=
12724   hardcode_libdir_flag_spec_ld_F77=
12725   hardcode_libdir_separator_F77=
12726   hardcode_direct_F77=no
12727   hardcode_minus_L_F77=no
12728   hardcode_shlibpath_var_F77=unsupported
12729   link_all_deplibs_F77=unknown
12730   hardcode_automatic_F77=no
12731   module_cmds_F77=
12732   module_expsym_cmds_F77=
12733   always_export_symbols_F77=no
12734   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12735   # include_expsyms should be a list of space-separated symbols to be *always*
12736   # included in the symbol list
12737   include_expsyms_F77=
12738   # exclude_expsyms can be an extended regexp of symbols to exclude
12739   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12740   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12741   # as well as any symbol that contains `d'.
12742   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12743   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12744   # platforms (ab)use it in PIC code, but their linkers get confused if
12745   # the symbol is explicitly referenced.  Since portable code cannot
12746   # rely on this symbol name, it's probably fine to never include it in
12747   # preloaded symbol tables.
12748   extract_expsyms_cmds=
12749
12750   case $host_os in
12751   cygwin* | mingw* | pw32*)
12752     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12753     # When not using gcc, we currently assume that we are using
12754     # Microsoft Visual C++.
12755     if test "$GCC" != yes; then
12756       with_gnu_ld=no
12757     fi
12758     ;;
12759   openbsd*)
12760     with_gnu_ld=no
12761     ;;
12762   esac
12763
12764   ld_shlibs_F77=yes
12765   if test "$with_gnu_ld" = yes; then
12766     # If archive_cmds runs LD, not CC, wlarc should be empty
12767     wlarc='${wl}'
12768
12769     # See if GNU ld supports shared libraries.
12770     case $host_os in
12771     aix3* | aix4* | aix5*)
12772       # On AIX/PPC, the GNU linker is very broken
12773       if test "$host_cpu" != ia64; then
12774         ld_shlibs_F77=no
12775         cat <<EOF 1>&2
12776
12777 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12778 *** to be unable to reliably create shared libraries on AIX.
12779 *** Therefore, libtool is disabling shared libraries support.  If you
12780 *** really care for shared libraries, you may want to modify your PATH
12781 *** so that a non-GNU linker is found, and then restart.
12782
12783 EOF
12784       fi
12785       ;;
12786
12787     amigaos*)
12788       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)'
12789       hardcode_libdir_flag_spec_F77='-L$libdir'
12790       hardcode_minus_L_F77=yes
12791
12792       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12793       # that the semantics of dynamic libraries on AmigaOS, at least up
12794       # to version 4, is to share data among multiple programs linked
12795       # with the same dynamic library.  Since this doesn't match the
12796       # behavior of shared libraries on other platforms, we can't use
12797       # them.
12798       ld_shlibs_F77=no
12799       ;;
12800
12801     beos*)
12802       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12803         allow_undefined_flag_F77=unsupported
12804         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12805         # support --undefined.  This deserves some investigation.  FIXME
12806         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12807       else
12808         ld_shlibs_F77=no
12809       fi
12810       ;;
12811
12812     cygwin* | mingw* | pw32*)
12813       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12814       # as there is no search path for DLLs.
12815       hardcode_libdir_flag_spec_F77='-L$libdir'
12816       allow_undefined_flag_F77=unsupported
12817       always_export_symbols_F77=no
12818       enable_shared_with_static_runtimes_F77=yes
12819       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12820
12821       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12822         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12823         # If the export-symbols file already is a .def file (1st line
12824         # is EXPORTS), use it as is; otherwise, prepend...
12825         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12826           cp $export_symbols $output_objdir/$soname.def;
12827         else
12828           echo EXPORTS > $output_objdir/$soname.def;
12829           cat $export_symbols >> $output_objdir/$soname.def;
12830         fi~
12831         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12832       else
12833         ld_shlibs=no
12834       fi
12835       ;;
12836
12837     netbsd*)
12838       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12839         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12840         wlarc=
12841       else
12842         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12843         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12844       fi
12845       ;;
12846
12847     solaris* | sysv5*)
12848       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12849         ld_shlibs_F77=no
12850         cat <<EOF 1>&2
12851
12852 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12853 *** create shared libraries on Solaris systems.  Therefore, libtool
12854 *** is disabling shared libraries support.  We urge you to upgrade GNU
12855 *** binutils to release 2.9.1 or newer.  Another option is to modify
12856 *** your PATH or compiler configuration so that the native linker is
12857 *** used, and then restart.
12858
12859 EOF
12860       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12861         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12863       else
12864         ld_shlibs_F77=no
12865       fi
12866       ;;
12867
12868     sunos4*)
12869       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12870       wlarc=
12871       hardcode_direct_F77=yes
12872       hardcode_shlibpath_var_F77=no
12873       ;;
12874
12875     *)
12876       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12877         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12879       else
12880         ld_shlibs_F77=no
12881       fi
12882       ;;
12883     esac
12884
12885     if test "$ld_shlibs_F77" = yes; then
12886       runpath_var=LD_RUN_PATH
12887       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12888       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12889       # ancient GNU ld didn't support --whole-archive et. al.
12890       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12891         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12892       else
12893         whole_archive_flag_spec_F77=
12894       fi
12895     fi
12896   else
12897     # PORTME fill in a description of your system's linker (not GNU ld)
12898     case $host_os in
12899     aix3*)
12900       allow_undefined_flag_F77=unsupported
12901       always_export_symbols_F77=yes
12902       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'
12903       # Note: this linker hardcodes the directories in LIBPATH if there
12904       # are no directories specified by -L.
12905       hardcode_minus_L_F77=yes
12906       if test "$GCC" = yes && test -z "$link_static_flag"; then
12907         # Neither direct hardcoding nor static linking is supported with a
12908         # broken collect2.
12909         hardcode_direct_F77=unsupported
12910       fi
12911       ;;
12912
12913     aix4* | aix5*)
12914       if test "$host_cpu" = ia64; then
12915         # On IA64, the linker does run time linking by default, so we don't
12916         # have to do anything special.
12917         aix_use_runtimelinking=no
12918         exp_sym_flag='-Bexport'
12919         no_entry_flag=""
12920       else
12921         # If we're using GNU nm, then we don't want the "-C" option.
12922         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12923         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12924           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'
12925         else
12926           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'
12927         fi
12928         aix_use_runtimelinking=no
12929
12930         # Test if we are trying to use run time linking or normal
12931         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12932         # need to do runtime linking.
12933         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12934           for ld_flag in $LDFLAGS; do
12935           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12936             aix_use_runtimelinking=yes
12937             break
12938           fi
12939           done
12940         esac
12941
12942         exp_sym_flag='-bexport'
12943         no_entry_flag='-bnoentry'
12944       fi
12945
12946       # When large executables or shared objects are built, AIX ld can
12947       # have problems creating the table of contents.  If linking a library
12948       # or program results in "error TOC overflow" add -mminimal-toc to
12949       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12950       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12951
12952       archive_cmds_F77=''
12953       hardcode_direct_F77=yes
12954       hardcode_libdir_separator_F77=':'
12955       link_all_deplibs_F77=yes
12956
12957       if test "$GCC" = yes; then
12958         case $host_os in aix4.012|aix4.012.*)
12959         # We only want to do this on AIX 4.2 and lower, the check
12960         # below for broken collect2 doesn't work under 4.3+
12961           collect2name=`${CC} -print-prog-name=collect2`
12962           if test -f "$collect2name" && \
12963            strings "$collect2name" | grep resolve_lib_name >/dev/null
12964           then
12965           # We have reworked collect2
12966           hardcode_direct_F77=yes
12967           else
12968           # We have old collect2
12969           hardcode_direct_F77=unsupported
12970           # It fails to find uninstalled libraries when the uninstalled
12971           # path is not listed in the libpath.  Setting hardcode_minus_L
12972           # to unsupported forces relinking
12973           hardcode_minus_L_F77=yes
12974           hardcode_libdir_flag_spec_F77='-L$libdir'
12975           hardcode_libdir_separator_F77=
12976           fi
12977         esac
12978         shared_flag='-shared'
12979       else
12980         # not using gcc
12981         if test "$host_cpu" = ia64; then
12982         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12983         # chokes on -Wl,-G. The following line is correct:
12984           shared_flag='-G'
12985         else
12986         if test "$aix_use_runtimelinking" = yes; then
12987             shared_flag='${wl}-G'
12988           else
12989             shared_flag='${wl}-bM:SRE'
12990         fi
12991         fi
12992       fi
12993
12994       # It seems that -bexpall does not export symbols beginning with
12995       # underscore (_), so it is better to generate a list of symbols to export.
12996       always_export_symbols_F77=yes
12997       if test "$aix_use_runtimelinking" = yes; then
12998         # Warning - without using the other runtime loading flags (-brtl),
12999         # -berok will link without error, but may produce a broken library.
13000         allow_undefined_flag_F77='-berok'
13001        # Determine the default libpath from the value encoded in an empty executable.
13002        cat >conftest.$ac_ext <<_ACEOF
13003       program main
13004
13005       end
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009   (eval $ac_link) 2>conftest.er1
13010   ac_status=$?
13011   grep -v '^ *+' conftest.er1 >conftest.err
13012   rm -f conftest.er1
13013   cat conftest.err >&5
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); } &&
13016          { ac_try='test -z "$ac_f77_werror_flag"
13017                          || test ! -s conftest.err'
13018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019   (eval $ac_try) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; } &&
13023          { ac_try='test -s conftest$ac_exeext'
13024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025   (eval $ac_try) 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; }; then
13029
13030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13031 }'`
13032 # Check for a 64-bit object if we didn't find anything.
13033 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; }
13034 }'`; fi
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 fi
13040 rm -f conftest.err conftest.$ac_objext \
13041       conftest$ac_exeext conftest.$ac_ext
13042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13043
13044        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13045         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"
13046        else
13047         if test "$host_cpu" = ia64; then
13048           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13049           allow_undefined_flag_F77="-z nodefs"
13050           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"
13051         else
13052          # Determine the default libpath from the value encoded in an empty executable.
13053          cat >conftest.$ac_ext <<_ACEOF
13054       program main
13055
13056       end
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060   (eval $ac_link) 2>conftest.er1
13061   ac_status=$?
13062   grep -v '^ *+' conftest.er1 >conftest.err
13063   rm -f conftest.er1
13064   cat conftest.err >&5
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -z "$ac_f77_werror_flag"
13068                          || test ! -s conftest.err'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; } &&
13074          { ac_try='test -s conftest$ac_exeext'
13075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076   (eval $ac_try) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; }; then
13080
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13082 }'`
13083 # Check for a 64-bit object if we didn't find anything.
13084 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; }
13085 }'`; fi
13086 else
13087   echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 fi
13091 rm -f conftest.err conftest.$ac_objext \
13092       conftest$ac_exeext conftest.$ac_ext
13093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13094
13095          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13096           # Warning - without using the other run time loading flags,
13097           # -berok will link without error, but may produce a broken library.
13098           no_undefined_flag_F77=' ${wl}-bernotok'
13099           allow_undefined_flag_F77=' ${wl}-berok'
13100           # -bexpall does not export symbols beginning with underscore (_)
13101           always_export_symbols_F77=yes
13102           # Exported symbols can be pulled into shared objects from archives
13103           whole_archive_flag_spec_F77=' '
13104           archive_cmds_need_lc_F77=yes
13105           # This is similar to how AIX traditionally builds it's shared libraries.
13106           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'
13107         fi
13108       fi
13109       ;;
13110
13111     amigaos*)
13112       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)'
13113       hardcode_libdir_flag_spec_F77='-L$libdir'
13114       hardcode_minus_L_F77=yes
13115       # see comment about different semantics on the GNU ld section
13116       ld_shlibs_F77=no
13117       ;;
13118
13119     bsdi4*)
13120       export_dynamic_flag_spec_F77=-rdynamic
13121       ;;
13122
13123     cygwin* | mingw* | pw32*)
13124       # When not using gcc, we currently assume that we are using
13125       # Microsoft Visual C++.
13126       # hardcode_libdir_flag_spec is actually meaningless, as there is
13127       # no search path for DLLs.
13128       hardcode_libdir_flag_spec_F77=' '
13129       allow_undefined_flag_F77=unsupported
13130       # Tell ltmain to make .lib files, not .a files.
13131       libext=lib
13132       # Tell ltmain to make .dll files, not .so files.
13133       shrext=".dll"
13134       # FIXME: Setting linknames here is a bad hack.
13135       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13136       # The linker will automatically build a .lib file if we build a DLL.
13137       old_archive_From_new_cmds_F77='true'
13138       # FIXME: Should let the user specify the lib program.
13139       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13140       fix_srcfile_path='`cygpath -w "$srcfile"`'
13141       enable_shared_with_static_runtimes_F77=yes
13142       ;;
13143
13144     darwin* | rhapsody*)
13145     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13146       archive_cmds_need_lc_F77=no
13147       case "$host_os" in
13148       rhapsody* | darwin1.[012])
13149         allow_undefined_flag_F77='-undefined suppress'
13150         ;;
13151       *) # Darwin 1.3 on
13152         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13153         ;;
13154       esac
13155       # FIXME: Relying on posixy $() will cause problems for
13156       #        cross-compilation, but unfortunately the echo tests do not
13157       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13158       #        `"' quotes if we put them in here... so don't!
13159         lt_int_apple_cc_single_mod=no
13160         output_verbose_link_cmd='echo'
13161         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13162           lt_int_apple_cc_single_mod=yes
13163         fi
13164         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13165           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13166         else
13167         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'
13168       fi
13169       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13170       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13171         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13172           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}'
13173         else
13174           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}'
13175         fi
13176           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13177       hardcode_direct_F77=no
13178       hardcode_automatic_F77=yes
13179       hardcode_shlibpath_var_F77=unsupported
13180       whole_archive_flag_spec_F77='-all_load $convenience'
13181       link_all_deplibs_F77=yes
13182     fi
13183       ;;
13184
13185     dgux*)
13186       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13187       hardcode_libdir_flag_spec_F77='-L$libdir'
13188       hardcode_shlibpath_var_F77=no
13189       ;;
13190
13191     freebsd1*)
13192       ld_shlibs_F77=no
13193       ;;
13194
13195     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13196     # support.  Future versions do this automatically, but an explicit c++rt0.o
13197     # does not break anything, and helps significantly (at the cost of a little
13198     # extra space).
13199     freebsd2.2*)
13200       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13201       hardcode_libdir_flag_spec_F77='-R$libdir'
13202       hardcode_direct_F77=yes
13203       hardcode_shlibpath_var_F77=no
13204       ;;
13205
13206     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13207     freebsd2*)
13208       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13209       hardcode_direct_F77=yes
13210       hardcode_minus_L_F77=yes
13211       hardcode_shlibpath_var_F77=no
13212       ;;
13213
13214     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13215     freebsd*)
13216       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13217       hardcode_libdir_flag_spec_F77='-R$libdir'
13218       hardcode_direct_F77=yes
13219       hardcode_shlibpath_var_F77=no
13220       ;;
13221
13222     hpux9*)
13223       if test "$GCC" = yes; then
13224         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'
13225       else
13226         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'
13227       fi
13228       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13229       hardcode_libdir_separator_F77=:
13230       hardcode_direct_F77=yes
13231
13232       # hardcode_minus_L: Not really in the search PATH,
13233       # but as the default location of the library.
13234       hardcode_minus_L_F77=yes
13235       export_dynamic_flag_spec_F77='${wl}-E'
13236       ;;
13237
13238     hpux10* | hpux11*)
13239       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13240         case "$host_cpu" in
13241         hppa*64*|ia64*)
13242           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13243           ;;
13244         *)
13245           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13246           ;;
13247         esac
13248       else
13249         case "$host_cpu" in
13250         hppa*64*|ia64*)
13251           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13252           ;;
13253         *)
13254           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13255           ;;
13256         esac
13257       fi
13258       if test "$with_gnu_ld" = no; then
13259         case "$host_cpu" in
13260         hppa*64*)
13261           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13262           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13263           hardcode_libdir_separator_F77=:
13264           hardcode_direct_F77=no
13265           hardcode_shlibpath_var_F77=no
13266           ;;
13267         ia64*)
13268           hardcode_libdir_flag_spec_F77='-L$libdir'
13269           hardcode_direct_F77=no
13270           hardcode_shlibpath_var_F77=no
13271
13272           # hardcode_minus_L: Not really in the search PATH,
13273           # but as the default location of the library.
13274           hardcode_minus_L_F77=yes
13275           ;;
13276         *)
13277           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13278           hardcode_libdir_separator_F77=:
13279           hardcode_direct_F77=yes
13280           export_dynamic_flag_spec_F77='${wl}-E'
13281
13282           # hardcode_minus_L: Not really in the search PATH,
13283           # but as the default location of the library.
13284           hardcode_minus_L_F77=yes
13285           ;;
13286         esac
13287       fi
13288       ;;
13289
13290     irix5* | irix6* | nonstopux*)
13291       if test "$GCC" = yes; then
13292         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'
13293       else
13294         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'
13295         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13296       fi
13297       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13298       hardcode_libdir_separator_F77=:
13299       link_all_deplibs_F77=yes
13300       ;;
13301
13302     netbsd*)
13303       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13304         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13305       else
13306         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13307       fi
13308       hardcode_libdir_flag_spec_F77='-R$libdir'
13309       hardcode_direct_F77=yes
13310       hardcode_shlibpath_var_F77=no
13311       ;;
13312
13313     newsos6)
13314       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13315       hardcode_direct_F77=yes
13316       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13317       hardcode_libdir_separator_F77=:
13318       hardcode_shlibpath_var_F77=no
13319       ;;
13320
13321     openbsd*)
13322       hardcode_direct_F77=yes
13323       hardcode_shlibpath_var_F77=no
13324       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13325         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13326         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13327         export_dynamic_flag_spec_F77='${wl}-E'
13328       else
13329        case $host_os in
13330          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13331            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332            hardcode_libdir_flag_spec_F77='-R$libdir'
13333            ;;
13334          *)
13335            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13336            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13337            ;;
13338        esac
13339       fi
13340       ;;
13341
13342     os2*)
13343       hardcode_libdir_flag_spec_F77='-L$libdir'
13344       hardcode_minus_L_F77=yes
13345       allow_undefined_flag_F77=unsupported
13346       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'
13347       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13348       ;;
13349
13350     osf3*)
13351       if test "$GCC" = yes; then
13352         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13353         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'
13354       else
13355         allow_undefined_flag_F77=' -expect_unresolved \*'
13356         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'
13357       fi
13358       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13359       hardcode_libdir_separator_F77=:
13360       ;;
13361
13362     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13363       if test "$GCC" = yes; then
13364         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13365         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'
13366         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13367       else
13368         allow_undefined_flag_F77=' -expect_unresolved \*'
13369         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'
13370         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~
13371         $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'
13372
13373         # Both c and cxx compiler support -rpath directly
13374         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13375       fi
13376       hardcode_libdir_separator_F77=:
13377       ;;
13378
13379     sco3.2v5*)
13380       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13381       hardcode_shlibpath_var_F77=no
13382       export_dynamic_flag_spec_F77='${wl}-Bexport'
13383       runpath_var=LD_RUN_PATH
13384       hardcode_runpath_var=yes
13385       ;;
13386
13387     solaris*)
13388       no_undefined_flag_F77=' -z text'
13389       if test "$GCC" = yes; then
13390         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13392           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13393       else
13394         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13395         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13396         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13397       fi
13398       hardcode_libdir_flag_spec_F77='-R$libdir'
13399       hardcode_shlibpath_var_F77=no
13400       case $host_os in
13401       solaris2.[0-5] | solaris2.[0-5].*) ;;
13402       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13403         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13404       esac
13405       link_all_deplibs_F77=yes
13406       ;;
13407
13408     sunos4*)
13409       if test "x$host_vendor" = xsequent; then
13410         # Use $CC to link under sequent, because it throws in some extra .o
13411         # files that make .init and .fini sections work.
13412         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13413       else
13414         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13415       fi
13416       hardcode_libdir_flag_spec_F77='-L$libdir'
13417       hardcode_direct_F77=yes
13418       hardcode_minus_L_F77=yes
13419       hardcode_shlibpath_var_F77=no
13420       ;;
13421
13422     sysv4)
13423       case $host_vendor in
13424         sni)
13425           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426           hardcode_direct_F77=yes # is this really true???
13427         ;;
13428         siemens)
13429           ## LD is ld it makes a PLAMLIB
13430           ## CC just makes a GrossModule.
13431           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13432           reload_cmds_F77='$CC -r -o $output$reload_objs'
13433           hardcode_direct_F77=no
13434         ;;
13435         motorola)
13436           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13438         ;;
13439       esac
13440       runpath_var='LD_RUN_PATH'
13441       hardcode_shlibpath_var_F77=no
13442       ;;
13443
13444     sysv4.3*)
13445       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446       hardcode_shlibpath_var_F77=no
13447       export_dynamic_flag_spec_F77='-Bexport'
13448       ;;
13449
13450     sysv4*MP*)
13451       if test -d /usr/nec; then
13452         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453         hardcode_shlibpath_var_F77=no
13454         runpath_var=LD_RUN_PATH
13455         hardcode_runpath_var=yes
13456         ld_shlibs_F77=yes
13457       fi
13458       ;;
13459
13460     sysv4.2uw2*)
13461       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13462       hardcode_direct_F77=yes
13463       hardcode_minus_L_F77=no
13464       hardcode_shlibpath_var_F77=no
13465       hardcode_runpath_var=yes
13466       runpath_var=LD_RUN_PATH
13467       ;;
13468
13469    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13470       no_undefined_flag_F77='${wl}-z ${wl}text'
13471       if test "$GCC" = yes; then
13472         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13473       else
13474         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13475       fi
13476       runpath_var='LD_RUN_PATH'
13477       hardcode_shlibpath_var_F77=no
13478       ;;
13479
13480     sysv5*)
13481       no_undefined_flag_F77=' -z text'
13482       # $CC -shared without GNU ld will not create a library from C++
13483       # object files and a static libstdc++, better avoid it by now
13484       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13485       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13486                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13487       hardcode_libdir_flag_spec_F77=
13488       hardcode_shlibpath_var_F77=no
13489       runpath_var='LD_RUN_PATH'
13490       ;;
13491
13492     uts4*)
13493       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13494       hardcode_libdir_flag_spec_F77='-L$libdir'
13495       hardcode_shlibpath_var_F77=no
13496       ;;
13497
13498     *)
13499       ld_shlibs_F77=no
13500       ;;
13501     esac
13502   fi
13503
13504 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13505 echo "${ECHO_T}$ld_shlibs_F77" >&6
13506 test "$ld_shlibs_F77" = no && can_build_shared=no
13507
13508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13509 if test "$GCC" = yes; then
13510   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13511 fi
13512
13513 #
13514 # Do we need to explicitly link libc?
13515 #
13516 case "x$archive_cmds_need_lc_F77" in
13517 x|xyes)
13518   # Assume -lc should be added
13519   archive_cmds_need_lc_F77=yes
13520
13521   if test "$enable_shared" = yes && test "$GCC" = yes; then
13522     case $archive_cmds_F77 in
13523     *'~'*)
13524       # FIXME: we may have to deal with multi-command sequences.
13525       ;;
13526     '$CC '*)
13527       # Test whether the compiler implicitly links with -lc since on some
13528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13529       # to ld, don't add -lc before -lgcc.
13530       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13532       $rm conftest*
13533       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13534
13535       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536   (eval $ac_compile) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } 2>conftest.err; then
13540         soname=conftest
13541         lib=conftest
13542         libobjs=conftest.$ac_objext
13543         deplibs=
13544         wl=$lt_prog_compiler_wl_F77
13545         compiler_flags=-v
13546         linker_flags=-v
13547         verstring=
13548         output_objdir=.
13549         libname=conftest
13550         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13551         allow_undefined_flag_F77=
13552         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13553   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }
13557         then
13558           archive_cmds_need_lc_F77=no
13559         else
13560           archive_cmds_need_lc_F77=yes
13561         fi
13562         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13563       else
13564         cat conftest.err 1>&5
13565       fi
13566       $rm conftest*
13567       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13568 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13569       ;;
13570     esac
13571   fi
13572   ;;
13573 esac
13574
13575 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13576 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13577 hardcode_action_F77=
13578 if test -n "$hardcode_libdir_flag_spec_F77" || \
13579    test -n "$runpath_var F77" || \
13580    test "X$hardcode_automatic_F77"="Xyes" ; then
13581
13582   # We can hardcode non-existant directories.
13583   if test "$hardcode_direct_F77" != no &&
13584      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13585      # have to relink, otherwise we might link with an installed library
13586      # when we should be linking with a yet-to-be-installed one
13587      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13588      test "$hardcode_minus_L_F77" != no; then
13589     # Linking always hardcodes the temporary library directory.
13590     hardcode_action_F77=relink
13591   else
13592     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13593     hardcode_action_F77=immediate
13594   fi
13595 else
13596   # We cannot hardcode anything, or else we can only hardcode existing
13597   # directories.
13598   hardcode_action_F77=unsupported
13599 fi
13600 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13601 echo "${ECHO_T}$hardcode_action_F77" >&6
13602
13603 if test "$hardcode_action_F77" = relink; then
13604   # Fast installation is not supported
13605   enable_fast_install=no
13606 elif test "$shlibpath_overrides_runpath" = yes ||
13607      test "$enable_shared" = no; then
13608   # Fast installation is not necessary
13609   enable_fast_install=needless
13610 fi
13611
13612 striplib=
13613 old_striplib=
13614 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13615 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13616 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13617   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13618   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13619   echo "$as_me:$LINENO: result: yes" >&5
13620 echo "${ECHO_T}yes" >&6
13621 else
13622 # FIXME - insert some real tests, host_os isn't really good enough
13623   case $host_os in
13624    darwin*)
13625        if test -n "$STRIP" ; then
13626          striplib="$STRIP -x"
13627          echo "$as_me:$LINENO: result: yes" >&5
13628 echo "${ECHO_T}yes" >&6
13629        else
13630   echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6
13632 fi
13633        ;;
13634    *)
13635   echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6
13637     ;;
13638   esac
13639 fi
13640
13641 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13643 library_names_spec=
13644 libname_spec='lib$name'
13645 soname_spec=
13646 shrext=".so"
13647 postinstall_cmds=
13648 postuninstall_cmds=
13649 finish_cmds=
13650 finish_eval=
13651 shlibpath_var=
13652 shlibpath_overrides_runpath=unknown
13653 version_type=none
13654 dynamic_linker="$host_os ld.so"
13655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13656 if test "$GCC" = yes; then
13657   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13658   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13659     # if the path contains ";" then we assume it to be the separator
13660     # otherwise default to the standard path separator (i.e. ":") - it is
13661     # assumed that no part of a normal pathname contains ";" but that should
13662     # okay in the real world where ";" in dirpaths is itself problematic.
13663     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13664   else
13665     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13666   fi
13667 else
13668   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13669 fi
13670 need_lib_prefix=unknown
13671 hardcode_into_libs=no
13672
13673 # when you set need_version to no, make sure it does not cause -set_version
13674 # flags to be left without arguments
13675 need_version=unknown
13676
13677 case $host_os in
13678 aix3*)
13679   version_type=linux
13680   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13681   shlibpath_var=LIBPATH
13682
13683   # AIX 3 has no versioning support, so we append a major version to the name.
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   ;;
13686
13687 aix4* | aix5*)
13688   version_type=linux
13689   need_lib_prefix=no
13690   need_version=no
13691   hardcode_into_libs=yes
13692   if test "$host_cpu" = ia64; then
13693     # AIX 5 supports IA64
13694     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13695     shlibpath_var=LD_LIBRARY_PATH
13696   else
13697     # With GCC up to 2.95.x, collect2 would create an import file
13698     # for dependence libraries.  The import file would start with
13699     # the line `#! .'.  This would cause the generated library to
13700     # depend on `.', always an invalid library.  This was fixed in
13701     # development snapshots of GCC prior to 3.0.
13702     case $host_os in
13703       aix4 | aix4.[01] | aix4.[01].*)
13704       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13705            echo ' yes '
13706            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13707         :
13708       else
13709         can_build_shared=no
13710       fi
13711       ;;
13712     esac
13713     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13714     # soname into executable. Probably we can add versioning support to
13715     # collect2, so additional links can be useful in future.
13716     if test "$aix_use_runtimelinking" = yes; then
13717       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13718       # instead of lib<name>.a to let people know that these are not
13719       # typical AIX shared libraries.
13720       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13721     else
13722       # We preserve .a as extension for shared libraries through AIX4.2
13723       # and later when we are not doing run time linking.
13724       library_names_spec='${libname}${release}.a $libname.a'
13725       soname_spec='${libname}${release}${shared_ext}$major'
13726     fi
13727     shlibpath_var=LIBPATH
13728   fi
13729   ;;
13730
13731 amigaos*)
13732   library_names_spec='$libname.ixlibrary $libname.a'
13733   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13734   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'
13735   ;;
13736
13737 beos*)
13738   library_names_spec='${libname}${shared_ext}'
13739   dynamic_linker="$host_os ld.so"
13740   shlibpath_var=LIBRARY_PATH
13741   ;;
13742
13743 bsdi4*)
13744   version_type=linux
13745   need_version=no
13746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747   soname_spec='${libname}${release}${shared_ext}$major'
13748   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13749   shlibpath_var=LD_LIBRARY_PATH
13750   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13751   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13752   # the default ld.so.conf also contains /usr/contrib/lib and
13753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13754   # libtool to hard-code these into programs
13755   ;;
13756
13757 cygwin* | mingw* | pw32*)
13758   version_type=windows
13759   shrext=".dll"
13760   need_version=no
13761   need_lib_prefix=no
13762
13763   case $GCC,$host_os in
13764   yes,cygwin* | yes,mingw* | yes,pw32*)
13765     library_names_spec='$libname.dll.a'
13766     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13767     postinstall_cmds='base_file=`basename \${file}`~
13768       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13769       dldir=$destdir/`dirname \$dlpath`~
13770       test -d \$dldir || mkdir -p \$dldir~
13771       $install_prog $dir/$dlname \$dldir/$dlname'
13772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13773       dlpath=$dir/\$dldll~
13774        $rm \$dlpath'
13775     shlibpath_overrides_runpath=yes
13776
13777     case $host_os in
13778     cygwin*)
13779       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13780       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13781       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13782       ;;
13783     mingw*)
13784       # MinGW DLLs use traditional 'lib' prefix
13785       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13786       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13787       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13788         # It is most probably a Windows format PATH printed by
13789         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13790         # path with ; separators, and with drive letters. We can handle the
13791         # drive letters (cygwin fileutils understands them), so leave them,
13792         # especially as we might pass files found there to a mingw objdump,
13793         # which wouldn't understand a cygwinified path. Ahh.
13794         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13795       else
13796         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13797       fi
13798       ;;
13799     pw32*)
13800       # pw32 DLLs use 'pw' prefix rather than 'lib'
13801       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13802       ;;
13803     esac
13804     ;;
13805
13806   *)
13807     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13808     ;;
13809   esac
13810   dynamic_linker='Win32 ld.exe'
13811   # FIXME: first we should search . and the directory the executable is in
13812   shlibpath_var=PATH
13813   ;;
13814
13815 darwin* | rhapsody*)
13816   dynamic_linker="$host_os dyld"
13817   version_type=darwin
13818   need_lib_prefix=no
13819   need_version=no
13820   # FIXME: Relying on posixy $() will cause problems for
13821   #        cross-compilation, but unfortunately the echo tests do not
13822   #        yet detect zsh echo's removal of \ escapes.
13823   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13824   soname_spec='${libname}${release}${major}$shared_ext'
13825   shlibpath_overrides_runpath=yes
13826   shlibpath_var=DYLD_LIBRARY_PATH
13827   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13828   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13829   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13830   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"`
13831   fi
13832   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13833   ;;
13834
13835 dgux*)
13836   version_type=linux
13837   need_lib_prefix=no
13838   need_version=no
13839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13840   soname_spec='${libname}${release}${shared_ext}$major'
13841   shlibpath_var=LD_LIBRARY_PATH
13842   ;;
13843
13844 freebsd1*)
13845   dynamic_linker=no
13846   ;;
13847
13848 freebsd*)
13849   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13850   version_type=freebsd-$objformat
13851   case $version_type in
13852     freebsd-elf*)
13853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13854       need_version=no
13855       need_lib_prefix=no
13856       ;;
13857     freebsd-*)
13858       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13859       need_version=yes
13860       ;;
13861   esac
13862   shlibpath_var=LD_LIBRARY_PATH
13863   case $host_os in
13864   freebsd2*)
13865     shlibpath_overrides_runpath=yes
13866     ;;
13867   freebsd3.01* | freebsdelf3.01*)
13868     shlibpath_overrides_runpath=yes
13869     hardcode_into_libs=yes
13870     ;;
13871   *) # from 3.2 on
13872     shlibpath_overrides_runpath=no
13873     hardcode_into_libs=yes
13874     ;;
13875   esac
13876   ;;
13877
13878 gnu*)
13879   version_type=linux
13880   need_lib_prefix=no
13881   need_version=no
13882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13883   soname_spec='${libname}${release}${shared_ext}$major'
13884   shlibpath_var=LD_LIBRARY_PATH
13885   hardcode_into_libs=yes
13886   ;;
13887
13888 hpux9* | hpux10* | hpux11*)
13889   # Give a soname corresponding to the major version so that dld.sl refuses to
13890   # link against other versions.
13891   version_type=sunos
13892   need_lib_prefix=no
13893   need_version=no
13894   case "$host_cpu" in
13895   ia64*)
13896     shrext='.so'
13897     hardcode_into_libs=yes
13898     dynamic_linker="$host_os dld.so"
13899     shlibpath_var=LD_LIBRARY_PATH
13900     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902     soname_spec='${libname}${release}${shared_ext}$major'
13903     if test "X$HPUX_IA64_MODE" = X32; then
13904       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13905     else
13906       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13907     fi
13908     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13909     ;;
13910    hppa*64*)
13911      shrext='.sl'
13912      hardcode_into_libs=yes
13913      dynamic_linker="$host_os dld.sl"
13914      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13915      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13916      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917      soname_spec='${libname}${release}${shared_ext}$major'
13918      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13919      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13920      ;;
13921    *)
13922     shrext='.sl'
13923     dynamic_linker="$host_os dld.sl"
13924     shlibpath_var=SHLIB_PATH
13925     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927     soname_spec='${libname}${release}${shared_ext}$major'
13928     ;;
13929   esac
13930   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13931   postinstall_cmds='chmod 555 $lib'
13932   ;;
13933
13934 irix5* | irix6* | nonstopux*)
13935   case $host_os in
13936     nonstopux*) version_type=nonstopux ;;
13937     *)
13938         if test "$lt_cv_prog_gnu_ld" = yes; then
13939                 version_type=linux
13940         else
13941                 version_type=irix
13942         fi ;;
13943   esac
13944   need_lib_prefix=no
13945   need_version=no
13946   soname_spec='${libname}${release}${shared_ext}$major'
13947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13948   case $host_os in
13949   irix5* | nonstopux*)
13950     libsuff= shlibsuff=
13951     ;;
13952   *)
13953     case $LD in # libtool.m4 will add one of these switches to LD
13954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13955       libsuff= shlibsuff= libmagic=32-bit;;
13956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13957       libsuff=32 shlibsuff=N32 libmagic=N32;;
13958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13960     *) libsuff= shlibsuff= libmagic=never-match;;
13961     esac
13962     ;;
13963   esac
13964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13965   shlibpath_overrides_runpath=no
13966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13968   hardcode_into_libs=yes
13969   ;;
13970
13971 # No shared lib support for Linux oldld, aout, or coff.
13972 linux*oldld* | linux*aout* | linux*coff*)
13973   dynamic_linker=no
13974   ;;
13975
13976 # This must be Linux ELF.
13977 linux*)
13978   version_type=linux
13979   need_lib_prefix=no
13980   need_version=no
13981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982   soname_spec='${libname}${release}${shared_ext}$major'
13983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13984   shlibpath_var=LD_LIBRARY_PATH
13985   shlibpath_overrides_runpath=no
13986   # This implies no fast_install, which is unacceptable.
13987   # Some rework will be needed to allow for fast_install
13988   # before this can be enabled.
13989   hardcode_into_libs=yes
13990
13991   # We used to test for /lib/ld.so.1 and disable shared libraries on
13992   # powerpc, because MkLinux only supported shared libraries with the
13993   # GNU dynamic linker.  Since this was broken with cross compilers,
13994   # most powerpc-linux boxes support dynamic linking these days and
13995   # people can always --disable-shared, the test was removed, and we
13996   # assume the GNU/Linux dynamic linker is in use.
13997   dynamic_linker='GNU/Linux ld.so'
13998   ;;
13999
14000 netbsd*)
14001   version_type=sunos
14002   need_lib_prefix=no
14003   need_version=no
14004   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14006     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14007     dynamic_linker='NetBSD (a.out) ld.so'
14008   else
14009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14010     soname_spec='${libname}${release}${shared_ext}$major'
14011     dynamic_linker='NetBSD ld.elf_so'
14012   fi
14013   shlibpath_var=LD_LIBRARY_PATH
14014   shlibpath_overrides_runpath=yes
14015   hardcode_into_libs=yes
14016   ;;
14017
14018 newsos6)
14019   version_type=linux
14020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021   shlibpath_var=LD_LIBRARY_PATH
14022   shlibpath_overrides_runpath=yes
14023   ;;
14024
14025 nto-qnx)
14026   version_type=linux
14027   need_lib_prefix=no
14028   need_version=no
14029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030   soname_spec='${libname}${release}${shared_ext}$major'
14031   shlibpath_var=LD_LIBRARY_PATH
14032   shlibpath_overrides_runpath=yes
14033   ;;
14034
14035 openbsd*)
14036   version_type=sunos
14037   need_lib_prefix=no
14038   need_version=no
14039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14041   shlibpath_var=LD_LIBRARY_PATH
14042   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14043     case $host_os in
14044       openbsd2.[89] | openbsd2.[89].*)
14045         shlibpath_overrides_runpath=no
14046         ;;
14047       *)
14048         shlibpath_overrides_runpath=yes
14049         ;;
14050       esac
14051   else
14052     shlibpath_overrides_runpath=yes
14053   fi
14054   ;;
14055
14056 os2*)
14057   libname_spec='$name'
14058   shrext=".dll"
14059   need_lib_prefix=no
14060   library_names_spec='$libname${shared_ext} $libname.a'
14061   dynamic_linker='OS/2 ld.exe'
14062   shlibpath_var=LIBPATH
14063   ;;
14064
14065 osf3* | osf4* | osf5*)
14066   version_type=osf
14067   need_lib_prefix=no
14068   need_version=no
14069   soname_spec='${libname}${release}${shared_ext}$major'
14070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071   shlibpath_var=LD_LIBRARY_PATH
14072   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14073   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14074   ;;
14075
14076 sco3.2v5*)
14077   version_type=osf
14078   soname_spec='${libname}${release}${shared_ext}$major'
14079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080   shlibpath_var=LD_LIBRARY_PATH
14081   ;;
14082
14083 solaris*)
14084   version_type=linux
14085   need_lib_prefix=no
14086   need_version=no
14087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088   soname_spec='${libname}${release}${shared_ext}$major'
14089   shlibpath_var=LD_LIBRARY_PATH
14090   shlibpath_overrides_runpath=yes
14091   hardcode_into_libs=yes
14092   # ldd complains unless libraries are executable
14093   postinstall_cmds='chmod +x $lib'
14094   ;;
14095
14096 sunos4*)
14097   version_type=sunos
14098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14099   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14100   shlibpath_var=LD_LIBRARY_PATH
14101   shlibpath_overrides_runpath=yes
14102   if test "$with_gnu_ld" = yes; then
14103     need_lib_prefix=no
14104   fi
14105   need_version=yes
14106   ;;
14107
14108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14109   version_type=linux
14110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111   soname_spec='${libname}${release}${shared_ext}$major'
14112   shlibpath_var=LD_LIBRARY_PATH
14113   case $host_vendor in
14114     sni)
14115       shlibpath_overrides_runpath=no
14116       need_lib_prefix=no
14117       export_dynamic_flag_spec='${wl}-Blargedynsym'
14118       runpath_var=LD_RUN_PATH
14119       ;;
14120     siemens)
14121       need_lib_prefix=no
14122       ;;
14123     motorola)
14124       need_lib_prefix=no
14125       need_version=no
14126       shlibpath_overrides_runpath=no
14127       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14128       ;;
14129   esac
14130   ;;
14131
14132 sysv4*MP*)
14133   if test -d /usr/nec ;then
14134     version_type=linux
14135     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14136     soname_spec='$libname${shared_ext}.$major'
14137     shlibpath_var=LD_LIBRARY_PATH
14138   fi
14139   ;;
14140
14141 uts4*)
14142   version_type=linux
14143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144   soname_spec='${libname}${release}${shared_ext}$major'
14145   shlibpath_var=LD_LIBRARY_PATH
14146   ;;
14147
14148 *)
14149   dynamic_linker=no
14150   ;;
14151 esac
14152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14153 echo "${ECHO_T}$dynamic_linker" >&6
14154 test "$dynamic_linker" = no && can_build_shared=no
14155
14156
14157 # The else clause should only fire when bootstrapping the
14158 # libtool distribution, otherwise you forgot to ship ltmain.sh
14159 # with your package, and you will get complaints that there are
14160 # no rules to generate ltmain.sh.
14161 if test -f "$ltmain"; then
14162   # See if we are running on zsh, and set the options which allow our commands through
14163   # without removal of \ escapes.
14164   if test -n "${ZSH_VERSION+set}" ; then
14165     setopt NO_GLOB_SUBST
14166   fi
14167   # Now quote all the things that may contain metacharacters while being
14168   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14169   # variables and quote the copies for generation of the libtool script.
14170   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14171     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14172     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14173     deplibs_check_method reload_flag reload_cmds need_locks \
14174     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14175     lt_cv_sys_global_symbol_to_c_name_address \
14176     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14177     old_postinstall_cmds old_postuninstall_cmds \
14178     compiler_F77 \
14179     CC_F77 \
14180     LD_F77 \
14181     lt_prog_compiler_wl_F77 \
14182     lt_prog_compiler_pic_F77 \
14183     lt_prog_compiler_static_F77 \
14184     lt_prog_compiler_no_builtin_flag_F77 \
14185     export_dynamic_flag_spec_F77 \
14186     thread_safe_flag_spec_F77 \
14187     whole_archive_flag_spec_F77 \
14188     enable_shared_with_static_runtimes_F77 \
14189     old_archive_cmds_F77 \
14190     old_archive_from_new_cmds_F77 \
14191     predep_objects_F77 \
14192     postdep_objects_F77 \
14193     predeps_F77 \
14194     postdeps_F77 \
14195     compiler_lib_search_path_F77 \
14196     archive_cmds_F77 \
14197     archive_expsym_cmds_F77 \
14198     postinstall_cmds_F77 \
14199     postuninstall_cmds_F77 \
14200     old_archive_from_expsyms_cmds_F77 \
14201     allow_undefined_flag_F77 \
14202     no_undefined_flag_F77 \
14203     export_symbols_cmds_F77 \
14204     hardcode_libdir_flag_spec_F77 \
14205     hardcode_libdir_flag_spec_ld_F77 \
14206     hardcode_libdir_separator_F77 \
14207     hardcode_automatic_F77 \
14208     module_cmds_F77 \
14209     module_expsym_cmds_F77 \
14210     lt_cv_prog_compiler_c_o_F77 \
14211     exclude_expsyms_F77 \
14212     include_expsyms_F77; do
14213
14214     case $var in
14215     old_archive_cmds_F77 | \
14216     old_archive_from_new_cmds_F77 | \
14217     archive_cmds_F77 | \
14218     archive_expsym_cmds_F77 | \
14219     module_cmds_F77 | \
14220     module_expsym_cmds_F77 | \
14221     old_archive_from_expsyms_cmds_F77 | \
14222     export_symbols_cmds_F77 | \
14223     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14224     postinstall_cmds | postuninstall_cmds | \
14225     old_postinstall_cmds | old_postuninstall_cmds | \
14226     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14227       # Double-quote double-evaled strings.
14228       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14229       ;;
14230     *)
14231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14232       ;;
14233     esac
14234   done
14235
14236   case $lt_echo in
14237   *'\$0 --fallback-echo"')
14238     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14239     ;;
14240   esac
14241
14242 cfgfile="$ofile"
14243
14244   cat <<__EOF__ >> "$cfgfile"
14245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14246
14247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14248
14249 # Shell to use when invoking shell scripts.
14250 SHELL=$lt_SHELL
14251
14252 # Whether or not to build shared libraries.
14253 build_libtool_libs=$enable_shared
14254
14255 # Whether or not to build static libraries.
14256 build_old_libs=$enable_static
14257
14258 # Whether or not to add -lc for building shared libraries.
14259 build_libtool_need_lc=$archive_cmds_need_lc_F77
14260
14261 # Whether or not to disallow shared libs when runtime libs are static
14262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14263
14264 # Whether or not to optimize for fast installation.
14265 fast_install=$enable_fast_install
14266
14267 # The host system.
14268 host_alias=$host_alias
14269 host=$host
14270
14271 # An echo program that does not interpret backslashes.
14272 echo=$lt_echo
14273
14274 # The archiver.
14275 AR=$lt_AR
14276 AR_FLAGS=$lt_AR_FLAGS
14277
14278 # A C compiler.
14279 LTCC=$lt_LTCC
14280
14281 # A language-specific compiler.
14282 CC=$lt_compiler_F77
14283
14284 # Is the compiler the GNU C compiler?
14285 with_gcc=$GCC_F77
14286
14287 # An ERE matcher.
14288 EGREP=$lt_EGREP
14289
14290 # The linker used to build libraries.
14291 LD=$lt_LD_F77
14292
14293 # Whether we need hard or soft links.
14294 LN_S=$lt_LN_S
14295
14296 # A BSD-compatible nm program.
14297 NM=$lt_NM
14298
14299 # A symbol stripping program
14300 STRIP=$STRIP
14301
14302 # Used to examine libraries when file_magic_cmd begins "file"
14303 MAGIC_CMD=$MAGIC_CMD
14304
14305 # Used on cygwin: DLL creation program.
14306 DLLTOOL="$DLLTOOL"
14307
14308 # Used on cygwin: object dumper.
14309 OBJDUMP="$OBJDUMP"
14310
14311 # Used on cygwin: assembler.
14312 AS="$AS"
14313
14314 # The name of the directory that contains temporary libtool files.
14315 objdir=$objdir
14316
14317 # How to create reloadable object files.
14318 reload_flag=$lt_reload_flag
14319 reload_cmds=$lt_reload_cmds
14320
14321 # How to pass a linker flag through the compiler.
14322 wl=$lt_lt_prog_compiler_wl_F77
14323
14324 # Object file suffix (normally "o").
14325 objext="$ac_objext"
14326
14327 # Old archive suffix (normally "a").
14328 libext="$libext"
14329
14330 # Shared library suffix (normally ".so").
14331 shrext='$shrext'
14332
14333 # Executable file suffix (normally "").
14334 exeext="$exeext"
14335
14336 # Additional compiler flags for building library objects.
14337 pic_flag=$lt_lt_prog_compiler_pic_F77
14338 pic_mode=$pic_mode
14339
14340 # What is the maximum length of a command?
14341 max_cmd_len=$lt_cv_sys_max_cmd_len
14342
14343 # Does compiler simultaneously support -c and -o options?
14344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14345
14346 # Must we lock files when doing compilation ?
14347 need_locks=$lt_need_locks
14348
14349 # Do we need the lib prefix for modules?
14350 need_lib_prefix=$need_lib_prefix
14351
14352 # Do we need a version for libraries?
14353 need_version=$need_version
14354
14355 # Whether dlopen is supported.
14356 dlopen_support=$enable_dlopen
14357
14358 # Whether dlopen of programs is supported.
14359 dlopen_self=$enable_dlopen_self
14360
14361 # Whether dlopen of statically linked programs is supported.
14362 dlopen_self_static=$enable_dlopen_self_static
14363
14364 # Compiler flag to prevent dynamic linking.
14365 link_static_flag=$lt_lt_prog_compiler_static_F77
14366
14367 # Compiler flag to turn off builtin functions.
14368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14369
14370 # Compiler flag to allow reflexive dlopens.
14371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14372
14373 # Compiler flag to generate shared objects directly from archives.
14374 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14375
14376 # Compiler flag to generate thread-safe objects.
14377 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14378
14379 # Library versioning type.
14380 version_type=$version_type
14381
14382 # Format of library name prefix.
14383 libname_spec=$lt_libname_spec
14384
14385 # List of archive names.  First name is the real one, the rest are links.
14386 # The last name is the one that the linker finds with -lNAME.
14387 library_names_spec=$lt_library_names_spec
14388
14389 # The coded name of the library, if different from the real name.
14390 soname_spec=$lt_soname_spec
14391
14392 # Commands used to build and install an old-style archive.
14393 RANLIB=$lt_RANLIB
14394 old_archive_cmds=$lt_old_archive_cmds_F77
14395 old_postinstall_cmds=$lt_old_postinstall_cmds
14396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14397
14398 # Create an old-style archive from a shared archive.
14399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14400
14401 # Create a temporary old-style archive to link instead of a shared archive.
14402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14403
14404 # Commands used to build and install a shared archive.
14405 archive_cmds=$lt_archive_cmds_F77
14406 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14407 postinstall_cmds=$lt_postinstall_cmds
14408 postuninstall_cmds=$lt_postuninstall_cmds
14409
14410 # Commands used to build a loadable module (assumed same as above if empty)
14411 module_cmds=$lt_module_cmds_F77
14412 module_expsym_cmds=$lt_module_expsym_cmds_F77
14413
14414 # Commands to strip libraries.
14415 old_striplib=$lt_old_striplib
14416 striplib=$lt_striplib
14417
14418 # Dependencies to place before the objects being linked to create a
14419 # shared library.
14420 predep_objects=$lt_predep_objects_F77
14421
14422 # Dependencies to place after the objects being linked to create a
14423 # shared library.
14424 postdep_objects=$lt_postdep_objects_F77
14425
14426 # Dependencies to place before the objects being linked to create a
14427 # shared library.
14428 predeps=$lt_predeps_F77
14429
14430 # Dependencies to place after the objects being linked to create a
14431 # shared library.
14432 postdeps=$lt_postdeps_F77
14433
14434 # The library search path used internally by the compiler when linking
14435 # a shared library.
14436 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14437
14438 # Method to check whether dependent libraries are shared objects.
14439 deplibs_check_method=$lt_deplibs_check_method
14440
14441 # Command to use when deplibs_check_method == file_magic.
14442 file_magic_cmd=$lt_file_magic_cmd
14443
14444 # Flag that allows shared libraries with undefined symbols to be built.
14445 allow_undefined_flag=$lt_allow_undefined_flag_F77
14446
14447 # Flag that forces no undefined symbols.
14448 no_undefined_flag=$lt_no_undefined_flag_F77
14449
14450 # Commands used to finish a libtool library installation in a directory.
14451 finish_cmds=$lt_finish_cmds
14452
14453 # Same as above, but a single script fragment to be evaled but not shown.
14454 finish_eval=$lt_finish_eval
14455
14456 # Take the output of nm and produce a listing of raw symbols and C names.
14457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14458
14459 # Transform the output of nm in a proper C declaration
14460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14461
14462 # Transform the output of nm in a C name address pair
14463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14464
14465 # This is the shared library runtime path variable.
14466 runpath_var=$runpath_var
14467
14468 # This is the shared library path variable.
14469 shlibpath_var=$shlibpath_var
14470
14471 # Is shlibpath searched before the hard-coded library search path?
14472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14473
14474 # How to hardcode a shared library path into an executable.
14475 hardcode_action=$hardcode_action_F77
14476
14477 # Whether we should hardcode library paths into libraries.
14478 hardcode_into_libs=$hardcode_into_libs
14479
14480 # Flag to hardcode \$libdir into a binary during linking.
14481 # This must work even if \$libdir does not exist.
14482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14483
14484 # If ld is used when linking, flag to hardcode \$libdir into
14485 # a binary during linking. This must work even if \$libdir does
14486 # not exist.
14487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14488
14489 # Whether we need a single -rpath flag with a separated argument.
14490 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14491
14492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14493 # resulting binary.
14494 hardcode_direct=$hardcode_direct_F77
14495
14496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14497 # resulting binary.
14498 hardcode_minus_L=$hardcode_minus_L_F77
14499
14500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14501 # the resulting binary.
14502 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14503
14504 # Set to yes if building a shared library automatically hardcodes DIR into the library
14505 # and all subsequent libraries and executables linked against it.
14506 hardcode_automatic=$hardcode_automatic_F77
14507
14508 # Variables whose values should be saved in libtool wrapper scripts and
14509 # restored at relink time.
14510 variables_saved_for_relink="$variables_saved_for_relink"
14511
14512 # Whether libtool must link a program against all its dependency libraries.
14513 link_all_deplibs=$link_all_deplibs_F77
14514
14515 # Compile-time system search path for libraries
14516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14517
14518 # Run-time system search path for libraries
14519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14520
14521 # Fix the shell variable \$srcfile for the compiler.
14522 fix_srcfile_path="$fix_srcfile_path_F77"
14523
14524 # Set to yes if exported symbols are required.
14525 always_export_symbols=$always_export_symbols_F77
14526
14527 # The commands to list exported symbols.
14528 export_symbols_cmds=$lt_export_symbols_cmds_F77
14529
14530 # The commands to extract the exported symbol list from a shared archive.
14531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14532
14533 # Symbols that should not be listed in the preloaded symbols.
14534 exclude_expsyms=$lt_exclude_expsyms_F77
14535
14536 # Symbols that must always be exported.
14537 include_expsyms=$lt_include_expsyms_F77
14538
14539 # ### END LIBTOOL TAG CONFIG: $tagname
14540
14541 __EOF__
14542
14543
14544 else
14545   # If there is no Makefile yet, we rely on a make rule to execute
14546   # `config.status --recheck' to rerun these tests and create the
14547   # libtool script then.
14548   test -f Makefile && make "$ltmain"
14549 fi
14550
14551
14552 ac_ext=c
14553 ac_cpp='$CPP $CPPFLAGS'
14554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14557
14558 CC="$lt_save_CC"
14559
14560         else
14561           tagname=""
14562         fi
14563         ;;
14564
14565       GCJ)
14566         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14567
14568
14569
14570 # Source file extension for Java test sources.
14571 ac_ext=java
14572
14573 # Object file extension for compiled Java test sources.
14574 objext=o
14575 objext_GCJ=$objext
14576
14577 # Code to be used in simple compile tests
14578 lt_simple_compile_test_code="class foo {}\n"
14579
14580 # Code to be used in simple link tests
14581 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14582
14583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14584
14585 # If no C compiler was specified, use CC.
14586 LTCC=${LTCC-"$CC"}
14587
14588 # Allow CC to be a program name with arguments.
14589 compiler=$CC
14590
14591
14592 # Allow CC to be a program name with arguments.
14593 lt_save_CC="$CC"
14594 CC=${GCJ-"gcj"}
14595 compiler=$CC
14596 compiler_GCJ=$CC
14597
14598 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14599 archive_cmds_need_lc_GCJ=no
14600
14601 ## CAVEAT EMPTOR:
14602 ## There is no encapsulation within the following macros, do not change
14603 ## the running order or otherwise move them around unless you know exactly
14604 ## what you are doing...
14605
14606 lt_prog_compiler_no_builtin_flag_GCJ=
14607
14608 if test "$GCC" = yes; then
14609   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14610
14611   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14612 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14613 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   lt_cv_prog_compiler_rtti_exceptions=no
14617   ac_outfile=conftest.$ac_objext
14618    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14619    lt_compiler_flag="-fno-rtti -fno-exceptions"
14620    # Insert the option either (1) after the last *FLAGS variable, or
14621    # (2) before a word containing "conftest.", or (3) at the end.
14622    # Note that $ac_compile itself does not contain backslashes and begins
14623    # with a dollar sign (not a hyphen), so the echo should work correctly.
14624    # The option is referenced via a variable to avoid confusing sed.
14625    lt_compile=`echo "$ac_compile" | $SED \
14626    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14627    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14628    -e 's:$: $lt_compiler_flag:'`
14629    (eval echo "\"\$as_me:14629: $lt_compile\"" >&5)
14630    (eval "$lt_compile" 2>conftest.err)
14631    ac_status=$?
14632    cat conftest.err >&5
14633    echo "$as_me:14633: \$? = $ac_status" >&5
14634    if (exit $ac_status) && test -s "$ac_outfile"; then
14635      # The compiler can only warn and ignore the option if not recognized
14636      # So say no if there are warnings
14637      if test ! -s conftest.err; then
14638        lt_cv_prog_compiler_rtti_exceptions=yes
14639      fi
14640    fi
14641    $rm conftest*
14642
14643 fi
14644 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14645 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14646
14647 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14648     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14649 else
14650     :
14651 fi
14652
14653 fi
14654
14655 lt_prog_compiler_wl_GCJ=
14656 lt_prog_compiler_pic_GCJ=
14657 lt_prog_compiler_static_GCJ=
14658
14659 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14660 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14661
14662   if test "$GCC" = yes; then
14663     lt_prog_compiler_wl_GCJ='-Wl,'
14664     lt_prog_compiler_static_GCJ='-static'
14665
14666     case $host_os in
14667       aix*)
14668       # All AIX code is PIC.
14669       if test "$host_cpu" = ia64; then
14670         # AIX 5 now supports IA64 processor
14671         lt_prog_compiler_static_GCJ='-Bstatic'
14672       fi
14673       ;;
14674
14675     amigaos*)
14676       # FIXME: we need at least 68020 code to build shared libraries, but
14677       # adding the `-m68020' flag to GCC prevents building anything better,
14678       # like `-m68040'.
14679       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14680       ;;
14681
14682     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14683       # PIC is the default for these OSes.
14684       ;;
14685
14686     mingw* | pw32* | os2*)
14687       # This hack is so that the source file can tell whether it is being
14688       # built for inclusion in a dll (and should export symbols for example).
14689       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14690       ;;
14691
14692     darwin* | rhapsody*)
14693       # PIC is the default on this platform
14694       # Common symbols not allowed in MH_DYLIB files
14695       lt_prog_compiler_pic_GCJ='-fno-common'
14696       ;;
14697
14698     msdosdjgpp*)
14699       # Just because we use GCC doesn't mean we suddenly get shared libraries
14700       # on systems that don't support them.
14701       lt_prog_compiler_can_build_shared_GCJ=no
14702       enable_shared=no
14703       ;;
14704
14705     sysv4*MP*)
14706       if test -d /usr/nec; then
14707         lt_prog_compiler_pic_GCJ=-Kconform_pic
14708       fi
14709       ;;
14710
14711     hpux*)
14712       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14713       # not for PA HP-UX.
14714       case "$host_cpu" in
14715       hppa*64*|ia64*)
14716         # +Z the default
14717         ;;
14718       *)
14719         lt_prog_compiler_pic_GCJ='-fPIC'
14720         ;;
14721       esac
14722       ;;
14723
14724     *)
14725       lt_prog_compiler_pic_GCJ='-fPIC'
14726       ;;
14727     esac
14728   else
14729     # PORTME Check for flag to pass linker flags through the system compiler.
14730     case $host_os in
14731     aix*)
14732       lt_prog_compiler_wl_GCJ='-Wl,'
14733       if test "$host_cpu" = ia64; then
14734         # AIX 5 now supports IA64 processor
14735         lt_prog_compiler_static_GCJ='-Bstatic'
14736       else
14737         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14738       fi
14739       ;;
14740
14741     mingw* | pw32* | os2*)
14742       # This hack is so that the source file can tell whether it is being
14743       # built for inclusion in a dll (and should export symbols for example).
14744       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14745       ;;
14746
14747     hpux9* | hpux10* | hpux11*)
14748       lt_prog_compiler_wl_GCJ='-Wl,'
14749       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14750       # not for PA HP-UX.
14751       case "$host_cpu" in
14752       hppa*64*|ia64*)
14753         # +Z the default
14754         ;;
14755       *)
14756         lt_prog_compiler_pic_GCJ='+Z'
14757         ;;
14758       esac
14759       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14760       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14761       ;;
14762
14763     irix5* | irix6* | nonstopux*)
14764       lt_prog_compiler_wl_GCJ='-Wl,'
14765       # PIC (with -KPIC) is the default.
14766       lt_prog_compiler_static_GCJ='-non_shared'
14767       ;;
14768
14769     newsos6)
14770       lt_prog_compiler_pic_GCJ='-KPIC'
14771       lt_prog_compiler_static_GCJ='-Bstatic'
14772       ;;
14773
14774     linux*)
14775       case $CC in
14776       icc|ecc)
14777         lt_prog_compiler_wl_GCJ='-Wl,'
14778         lt_prog_compiler_pic_GCJ='-KPIC'
14779         lt_prog_compiler_static_GCJ='-static'
14780         ;;
14781       ccc)
14782         lt_prog_compiler_wl_GCJ='-Wl,'
14783         # All Alpha code is PIC.
14784         lt_prog_compiler_static_GCJ='-non_shared'
14785         ;;
14786       esac
14787       ;;
14788
14789     osf3* | osf4* | osf5*)
14790       lt_prog_compiler_wl_GCJ='-Wl,'
14791       # All OSF/1 code is PIC.
14792       lt_prog_compiler_static_GCJ='-non_shared'
14793       ;;
14794
14795     sco3.2v5*)
14796       lt_prog_compiler_pic_GCJ='-Kpic'
14797       lt_prog_compiler_static_GCJ='-dn'
14798       ;;
14799
14800     solaris*)
14801       lt_prog_compiler_wl_GCJ='-Wl,'
14802       lt_prog_compiler_pic_GCJ='-KPIC'
14803       lt_prog_compiler_static_GCJ='-Bstatic'
14804       ;;
14805
14806     sunos4*)
14807       lt_prog_compiler_wl_GCJ='-Qoption ld '
14808       lt_prog_compiler_pic_GCJ='-PIC'
14809       lt_prog_compiler_static_GCJ='-Bstatic'
14810       ;;
14811
14812     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14813       lt_prog_compiler_wl_GCJ='-Wl,'
14814       lt_prog_compiler_pic_GCJ='-KPIC'
14815       lt_prog_compiler_static_GCJ='-Bstatic'
14816       ;;
14817
14818     sysv4*MP*)
14819       if test -d /usr/nec ;then
14820         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14821         lt_prog_compiler_static_GCJ='-Bstatic'
14822       fi
14823       ;;
14824
14825     uts4*)
14826       lt_prog_compiler_pic_GCJ='-pic'
14827       lt_prog_compiler_static_GCJ='-Bstatic'
14828       ;;
14829
14830     *)
14831       lt_prog_compiler_can_build_shared_GCJ=no
14832       ;;
14833     esac
14834   fi
14835
14836 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14837 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14838
14839 #
14840 # Check to make sure the PIC flag actually works.
14841 #
14842 if test -n "$lt_prog_compiler_pic_GCJ"; then
14843   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14844 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14845 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   lt_prog_compiler_pic_works_GCJ=no
14849   ac_outfile=conftest.$ac_objext
14850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14851    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14852    # Insert the option either (1) after the last *FLAGS variable, or
14853    # (2) before a word containing "conftest.", or (3) at the end.
14854    # Note that $ac_compile itself does not contain backslashes and begins
14855    # with a dollar sign (not a hyphen), so the echo should work correctly.
14856    # The option is referenced via a variable to avoid confusing sed.
14857    lt_compile=`echo "$ac_compile" | $SED \
14858    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14860    -e 's:$: $lt_compiler_flag:'`
14861    (eval echo "\"\$as_me:14861: $lt_compile\"" >&5)
14862    (eval "$lt_compile" 2>conftest.err)
14863    ac_status=$?
14864    cat conftest.err >&5
14865    echo "$as_me:14865: \$? = $ac_status" >&5
14866    if (exit $ac_status) && test -s "$ac_outfile"; then
14867      # The compiler can only warn and ignore the option if not recognized
14868      # So say no if there are warnings
14869      if test ! -s conftest.err; then
14870        lt_prog_compiler_pic_works_GCJ=yes
14871      fi
14872    fi
14873    $rm conftest*
14874
14875 fi
14876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14877 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14878
14879 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14880     case $lt_prog_compiler_pic_GCJ in
14881      "" | " "*) ;;
14882      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14883      esac
14884 else
14885     lt_prog_compiler_pic_GCJ=
14886      lt_prog_compiler_can_build_shared_GCJ=no
14887 fi
14888
14889 fi
14890 case "$host_os" in
14891   # For platforms which do not support PIC, -DPIC is meaningless:
14892   *djgpp*)
14893     lt_prog_compiler_pic_GCJ=
14894     ;;
14895   *)
14896     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14897     ;;
14898 esac
14899
14900 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14901 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14902 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   lt_cv_prog_compiler_c_o_GCJ=no
14906    $rm -r conftest 2>/dev/null
14907    mkdir conftest
14908    cd conftest
14909    mkdir out
14910    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14911
14912    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14913    # that will create temporary files in the current directory regardless of
14914    # the output directory.  Thus, making CWD read-only will cause this test
14915    # to fail, enabling locking or at least warning the user not to do parallel
14916    # builds.
14917    chmod -w .
14918
14919    lt_compiler_flag="-o out/conftest2.$ac_objext"
14920    # Insert the option either (1) after the last *FLAGS variable, or
14921    # (2) before a word containing "conftest.", or (3) at the end.
14922    # Note that $ac_compile itself does not contain backslashes and begins
14923    # with a dollar sign (not a hyphen), so the echo should work correctly.
14924    lt_compile=`echo "$ac_compile" | $SED \
14925    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14927    -e 's:$: $lt_compiler_flag:'`
14928    (eval echo "\"\$as_me:14928: $lt_compile\"" >&5)
14929    (eval "$lt_compile" 2>out/conftest.err)
14930    ac_status=$?
14931    cat out/conftest.err >&5
14932    echo "$as_me:14932: \$? = $ac_status" >&5
14933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14934    then
14935      # The compiler can only warn and ignore the option if not recognized
14936      # So say no if there are warnings
14937      if test ! -s out/conftest.err; then
14938        lt_cv_prog_compiler_c_o_GCJ=yes
14939      fi
14940    fi
14941    chmod u+w .
14942    $rm conftest* out/*
14943    rmdir out
14944    cd ..
14945    rmdir conftest
14946    $rm conftest*
14947
14948 fi
14949 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14950 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14951
14952
14953 hard_links="nottested"
14954 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14955   # do not overwrite the value of need_locks provided by the user
14956   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14957 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14958   hard_links=yes
14959   $rm conftest*
14960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14961   touch conftest.a
14962   ln conftest.a conftest.b 2>&5 || hard_links=no
14963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14964   echo "$as_me:$LINENO: result: $hard_links" >&5
14965 echo "${ECHO_T}$hard_links" >&6
14966   if test "$hard_links" = no; then
14967     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14968 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14969     need_locks=warn
14970   fi
14971 else
14972   need_locks=no
14973 fi
14974
14975 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14977
14978   runpath_var=
14979   allow_undefined_flag_GCJ=
14980   enable_shared_with_static_runtimes_GCJ=no
14981   archive_cmds_GCJ=
14982   archive_expsym_cmds_GCJ=
14983   old_archive_From_new_cmds_GCJ=
14984   old_archive_from_expsyms_cmds_GCJ=
14985   export_dynamic_flag_spec_GCJ=
14986   whole_archive_flag_spec_GCJ=
14987   thread_safe_flag_spec_GCJ=
14988   hardcode_libdir_flag_spec_GCJ=
14989   hardcode_libdir_flag_spec_ld_GCJ=
14990   hardcode_libdir_separator_GCJ=
14991   hardcode_direct_GCJ=no
14992   hardcode_minus_L_GCJ=no
14993   hardcode_shlibpath_var_GCJ=unsupported
14994   link_all_deplibs_GCJ=unknown
14995   hardcode_automatic_GCJ=no
14996   module_cmds_GCJ=
14997   module_expsym_cmds_GCJ=
14998   always_export_symbols_GCJ=no
14999   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15000   # include_expsyms should be a list of space-separated symbols to be *always*
15001   # included in the symbol list
15002   include_expsyms_GCJ=
15003   # exclude_expsyms can be an extended regexp of symbols to exclude
15004   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15005   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15006   # as well as any symbol that contains `d'.
15007   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15008   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15009   # platforms (ab)use it in PIC code, but their linkers get confused if
15010   # the symbol is explicitly referenced.  Since portable code cannot
15011   # rely on this symbol name, it's probably fine to never include it in
15012   # preloaded symbol tables.
15013   extract_expsyms_cmds=
15014
15015   case $host_os in
15016   cygwin* | mingw* | pw32*)
15017     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15018     # When not using gcc, we currently assume that we are using
15019     # Microsoft Visual C++.
15020     if test "$GCC" != yes; then
15021       with_gnu_ld=no
15022     fi
15023     ;;
15024   openbsd*)
15025     with_gnu_ld=no
15026     ;;
15027   esac
15028
15029   ld_shlibs_GCJ=yes
15030   if test "$with_gnu_ld" = yes; then
15031     # If archive_cmds runs LD, not CC, wlarc should be empty
15032     wlarc='${wl}'
15033
15034     # See if GNU ld supports shared libraries.
15035     case $host_os in
15036     aix3* | aix4* | aix5*)
15037       # On AIX/PPC, the GNU linker is very broken
15038       if test "$host_cpu" != ia64; then
15039         ld_shlibs_GCJ=no
15040         cat <<EOF 1>&2
15041
15042 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15043 *** to be unable to reliably create shared libraries on AIX.
15044 *** Therefore, libtool is disabling shared libraries support.  If you
15045 *** really care for shared libraries, you may want to modify your PATH
15046 *** so that a non-GNU linker is found, and then restart.
15047
15048 EOF
15049       fi
15050       ;;
15051
15052     amigaos*)
15053       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)'
15054       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15055       hardcode_minus_L_GCJ=yes
15056
15057       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15058       # that the semantics of dynamic libraries on AmigaOS, at least up
15059       # to version 4, is to share data among multiple programs linked
15060       # with the same dynamic library.  Since this doesn't match the
15061       # behavior of shared libraries on other platforms, we can't use
15062       # them.
15063       ld_shlibs_GCJ=no
15064       ;;
15065
15066     beos*)
15067       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15068         allow_undefined_flag_GCJ=unsupported
15069         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15070         # support --undefined.  This deserves some investigation.  FIXME
15071         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15072       else
15073         ld_shlibs_GCJ=no
15074       fi
15075       ;;
15076
15077     cygwin* | mingw* | pw32*)
15078       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15079       # as there is no search path for DLLs.
15080       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15081       allow_undefined_flag_GCJ=unsupported
15082       always_export_symbols_GCJ=no
15083       enable_shared_with_static_runtimes_GCJ=yes
15084       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15085
15086       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15087         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15088         # If the export-symbols file already is a .def file (1st line
15089         # is EXPORTS), use it as is; otherwise, prepend...
15090         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15091           cp $export_symbols $output_objdir/$soname.def;
15092         else
15093           echo EXPORTS > $output_objdir/$soname.def;
15094           cat $export_symbols >> $output_objdir/$soname.def;
15095         fi~
15096         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15097       else
15098         ld_shlibs=no
15099       fi
15100       ;;
15101
15102     netbsd*)
15103       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15104         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15105         wlarc=
15106       else
15107         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15109       fi
15110       ;;
15111
15112     solaris* | sysv5*)
15113       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15114         ld_shlibs_GCJ=no
15115         cat <<EOF 1>&2
15116
15117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15118 *** create shared libraries on Solaris systems.  Therefore, libtool
15119 *** is disabling shared libraries support.  We urge you to upgrade GNU
15120 *** binutils to release 2.9.1 or newer.  Another option is to modify
15121 *** your PATH or compiler configuration so that the native linker is
15122 *** used, and then restart.
15123
15124 EOF
15125       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15126         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15128       else
15129         ld_shlibs_GCJ=no
15130       fi
15131       ;;
15132
15133     sunos4*)
15134       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15135       wlarc=
15136       hardcode_direct_GCJ=yes
15137       hardcode_shlibpath_var_GCJ=no
15138       ;;
15139
15140     *)
15141       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15142         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144       else
15145         ld_shlibs_GCJ=no
15146       fi
15147       ;;
15148     esac
15149
15150     if test "$ld_shlibs_GCJ" = yes; then
15151       runpath_var=LD_RUN_PATH
15152       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15153       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15154       # ancient GNU ld didn't support --whole-archive et. al.
15155       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15156         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15157       else
15158         whole_archive_flag_spec_GCJ=
15159       fi
15160     fi
15161   else
15162     # PORTME fill in a description of your system's linker (not GNU ld)
15163     case $host_os in
15164     aix3*)
15165       allow_undefined_flag_GCJ=unsupported
15166       always_export_symbols_GCJ=yes
15167       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'
15168       # Note: this linker hardcodes the directories in LIBPATH if there
15169       # are no directories specified by -L.
15170       hardcode_minus_L_GCJ=yes
15171       if test "$GCC" = yes && test -z "$link_static_flag"; then
15172         # Neither direct hardcoding nor static linking is supported with a
15173         # broken collect2.
15174         hardcode_direct_GCJ=unsupported
15175       fi
15176       ;;
15177
15178     aix4* | aix5*)
15179       if test "$host_cpu" = ia64; then
15180         # On IA64, the linker does run time linking by default, so we don't
15181         # have to do anything special.
15182         aix_use_runtimelinking=no
15183         exp_sym_flag='-Bexport'
15184         no_entry_flag=""
15185       else
15186         # If we're using GNU nm, then we don't want the "-C" option.
15187         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15188         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15189           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'
15190         else
15191           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'
15192         fi
15193         aix_use_runtimelinking=no
15194
15195         # Test if we are trying to use run time linking or normal
15196         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15197         # need to do runtime linking.
15198         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15199           for ld_flag in $LDFLAGS; do
15200           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15201             aix_use_runtimelinking=yes
15202             break
15203           fi
15204           done
15205         esac
15206
15207         exp_sym_flag='-bexport'
15208         no_entry_flag='-bnoentry'
15209       fi
15210
15211       # When large executables or shared objects are built, AIX ld can
15212       # have problems creating the table of contents.  If linking a library
15213       # or program results in "error TOC overflow" add -mminimal-toc to
15214       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15215       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15216
15217       archive_cmds_GCJ=''
15218       hardcode_direct_GCJ=yes
15219       hardcode_libdir_separator_GCJ=':'
15220       link_all_deplibs_GCJ=yes
15221
15222       if test "$GCC" = yes; then
15223         case $host_os in aix4.012|aix4.012.*)
15224         # We only want to do this on AIX 4.2 and lower, the check
15225         # below for broken collect2 doesn't work under 4.3+
15226           collect2name=`${CC} -print-prog-name=collect2`
15227           if test -f "$collect2name" && \
15228            strings "$collect2name" | grep resolve_lib_name >/dev/null
15229           then
15230           # We have reworked collect2
15231           hardcode_direct_GCJ=yes
15232           else
15233           # We have old collect2
15234           hardcode_direct_GCJ=unsupported
15235           # It fails to find uninstalled libraries when the uninstalled
15236           # path is not listed in the libpath.  Setting hardcode_minus_L
15237           # to unsupported forces relinking
15238           hardcode_minus_L_GCJ=yes
15239           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15240           hardcode_libdir_separator_GCJ=
15241           fi
15242         esac
15243         shared_flag='-shared'
15244       else
15245         # not using gcc
15246         if test "$host_cpu" = ia64; then
15247         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15248         # chokes on -Wl,-G. The following line is correct:
15249           shared_flag='-G'
15250         else
15251         if test "$aix_use_runtimelinking" = yes; then
15252             shared_flag='${wl}-G'
15253           else
15254             shared_flag='${wl}-bM:SRE'
15255         fi
15256         fi
15257       fi
15258
15259       # It seems that -bexpall does not export symbols beginning with
15260       # underscore (_), so it is better to generate a list of symbols to export.
15261       always_export_symbols_GCJ=yes
15262       if test "$aix_use_runtimelinking" = yes; then
15263         # Warning - without using the other runtime loading flags (-brtl),
15264         # -berok will link without error, but may produce a broken library.
15265         allow_undefined_flag_GCJ='-berok'
15266        # Determine the default libpath from the value encoded in an empty executable.
15267        cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h.  */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h.  */
15273
15274 int
15275 main ()
15276 {
15277
15278   ;
15279   return 0;
15280 }
15281 _ACEOF
15282 rm -f conftest.$ac_objext conftest$ac_exeext
15283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15284   (eval $ac_link) 2>conftest.er1
15285   ac_status=$?
15286   grep -v '^ *+' conftest.er1 >conftest.err
15287   rm -f conftest.er1
15288   cat conftest.err >&5
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } &&
15291          { ac_try='test -z "$ac_c_werror_flag"
15292                          || test ! -s conftest.err'
15293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294   (eval $ac_try) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; } &&
15298          { ac_try='test -s conftest$ac_exeext'
15299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300   (eval $ac_try) 2>&5
15301   ac_status=$?
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); }; }; then
15304
15305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15306 }'`
15307 # Check for a 64-bit object if we didn't find anything.
15308 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; }
15309 }'`; fi
15310 else
15311   echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314 fi
15315 rm -f conftest.err conftest.$ac_objext \
15316       conftest$ac_exeext conftest.$ac_ext
15317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15318
15319        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15320         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"
15321        else
15322         if test "$host_cpu" = ia64; then
15323           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15324           allow_undefined_flag_GCJ="-z nodefs"
15325           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"
15326         else
15327          # Determine the default libpath from the value encoded in an empty executable.
15328          cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334
15335 int
15336 main ()
15337 {
15338
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345   (eval $ac_link) 2>conftest.er1
15346   ac_status=$?
15347   grep -v '^ *+' conftest.er1 >conftest.err
15348   rm -f conftest.er1
15349   cat conftest.err >&5
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -z "$ac_c_werror_flag"
15353                          || test ! -s conftest.err'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest$ac_exeext'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365
15366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15367 }'`
15368 # Check for a 64-bit object if we didn't find anything.
15369 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; }
15370 }'`; fi
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375 fi
15376 rm -f conftest.err conftest.$ac_objext \
15377       conftest$ac_exeext conftest.$ac_ext
15378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15379
15380          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15381           # Warning - without using the other run time loading flags,
15382           # -berok will link without error, but may produce a broken library.
15383           no_undefined_flag_GCJ=' ${wl}-bernotok'
15384           allow_undefined_flag_GCJ=' ${wl}-berok'
15385           # -bexpall does not export symbols beginning with underscore (_)
15386           always_export_symbols_GCJ=yes
15387           # Exported symbols can be pulled into shared objects from archives
15388           whole_archive_flag_spec_GCJ=' '
15389           archive_cmds_need_lc_GCJ=yes
15390           # This is similar to how AIX traditionally builds it's shared libraries.
15391           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'
15392         fi
15393       fi
15394       ;;
15395
15396     amigaos*)
15397       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)'
15398       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15399       hardcode_minus_L_GCJ=yes
15400       # see comment about different semantics on the GNU ld section
15401       ld_shlibs_GCJ=no
15402       ;;
15403
15404     bsdi4*)
15405       export_dynamic_flag_spec_GCJ=-rdynamic
15406       ;;
15407
15408     cygwin* | mingw* | pw32*)
15409       # When not using gcc, we currently assume that we are using
15410       # Microsoft Visual C++.
15411       # hardcode_libdir_flag_spec is actually meaningless, as there is
15412       # no search path for DLLs.
15413       hardcode_libdir_flag_spec_GCJ=' '
15414       allow_undefined_flag_GCJ=unsupported
15415       # Tell ltmain to make .lib files, not .a files.
15416       libext=lib
15417       # Tell ltmain to make .dll files, not .so files.
15418       shrext=".dll"
15419       # FIXME: Setting linknames here is a bad hack.
15420       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15421       # The linker will automatically build a .lib file if we build a DLL.
15422       old_archive_From_new_cmds_GCJ='true'
15423       # FIXME: Should let the user specify the lib program.
15424       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15425       fix_srcfile_path='`cygpath -w "$srcfile"`'
15426       enable_shared_with_static_runtimes_GCJ=yes
15427       ;;
15428
15429     darwin* | rhapsody*)
15430     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15431       archive_cmds_need_lc_GCJ=no
15432       case "$host_os" in
15433       rhapsody* | darwin1.[012])
15434         allow_undefined_flag_GCJ='-undefined suppress'
15435         ;;
15436       *) # Darwin 1.3 on
15437         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15438         ;;
15439       esac
15440       # FIXME: Relying on posixy $() will cause problems for
15441       #        cross-compilation, but unfortunately the echo tests do not
15442       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15443       #        `"' quotes if we put them in here... so don't!
15444         lt_int_apple_cc_single_mod=no
15445         output_verbose_link_cmd='echo'
15446         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15447           lt_int_apple_cc_single_mod=yes
15448         fi
15449         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15450           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15451         else
15452         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'
15453       fi
15454       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15455       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15456         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15457           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}'
15458         else
15459           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}'
15460         fi
15461           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15462       hardcode_direct_GCJ=no
15463       hardcode_automatic_GCJ=yes
15464       hardcode_shlibpath_var_GCJ=unsupported
15465       whole_archive_flag_spec_GCJ='-all_load $convenience'
15466       link_all_deplibs_GCJ=yes
15467     fi
15468       ;;
15469
15470     dgux*)
15471       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15472       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15473       hardcode_shlibpath_var_GCJ=no
15474       ;;
15475
15476     freebsd1*)
15477       ld_shlibs_GCJ=no
15478       ;;
15479
15480     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481     # support.  Future versions do this automatically, but an explicit c++rt0.o
15482     # does not break anything, and helps significantly (at the cost of a little
15483     # extra space).
15484     freebsd2.2*)
15485       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15487       hardcode_direct_GCJ=yes
15488       hardcode_shlibpath_var_GCJ=no
15489       ;;
15490
15491     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15492     freebsd2*)
15493       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494       hardcode_direct_GCJ=yes
15495       hardcode_minus_L_GCJ=yes
15496       hardcode_shlibpath_var_GCJ=no
15497       ;;
15498
15499     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15500     freebsd*)
15501       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15502       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15503       hardcode_direct_GCJ=yes
15504       hardcode_shlibpath_var_GCJ=no
15505       ;;
15506
15507     hpux9*)
15508       if test "$GCC" = yes; then
15509         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'
15510       else
15511         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'
15512       fi
15513       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15514       hardcode_libdir_separator_GCJ=:
15515       hardcode_direct_GCJ=yes
15516
15517       # hardcode_minus_L: Not really in the search PATH,
15518       # but as the default location of the library.
15519       hardcode_minus_L_GCJ=yes
15520       export_dynamic_flag_spec_GCJ='${wl}-E'
15521       ;;
15522
15523     hpux10* | hpux11*)
15524       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15525         case "$host_cpu" in
15526         hppa*64*|ia64*)
15527           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528           ;;
15529         *)
15530           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15531           ;;
15532         esac
15533       else
15534         case "$host_cpu" in
15535         hppa*64*|ia64*)
15536           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15537           ;;
15538         *)
15539           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15540           ;;
15541         esac
15542       fi
15543       if test "$with_gnu_ld" = no; then
15544         case "$host_cpu" in
15545         hppa*64*)
15546           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15547           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15548           hardcode_libdir_separator_GCJ=:
15549           hardcode_direct_GCJ=no
15550           hardcode_shlibpath_var_GCJ=no
15551           ;;
15552         ia64*)
15553           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15554           hardcode_direct_GCJ=no
15555           hardcode_shlibpath_var_GCJ=no
15556
15557           # hardcode_minus_L: Not really in the search PATH,
15558           # but as the default location of the library.
15559           hardcode_minus_L_GCJ=yes
15560           ;;
15561         *)
15562           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15563           hardcode_libdir_separator_GCJ=:
15564           hardcode_direct_GCJ=yes
15565           export_dynamic_flag_spec_GCJ='${wl}-E'
15566
15567           # hardcode_minus_L: Not really in the search PATH,
15568           # but as the default location of the library.
15569           hardcode_minus_L_GCJ=yes
15570           ;;
15571         esac
15572       fi
15573       ;;
15574
15575     irix5* | irix6* | nonstopux*)
15576       if test "$GCC" = yes; then
15577         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'
15578       else
15579         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'
15580         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15581       fi
15582       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15583       hardcode_libdir_separator_GCJ=:
15584       link_all_deplibs_GCJ=yes
15585       ;;
15586
15587     netbsd*)
15588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15589         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15590       else
15591         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15592       fi
15593       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15594       hardcode_direct_GCJ=yes
15595       hardcode_shlibpath_var_GCJ=no
15596       ;;
15597
15598     newsos6)
15599       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600       hardcode_direct_GCJ=yes
15601       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15602       hardcode_libdir_separator_GCJ=:
15603       hardcode_shlibpath_var_GCJ=no
15604       ;;
15605
15606     openbsd*)
15607       hardcode_direct_GCJ=yes
15608       hardcode_shlibpath_var_GCJ=no
15609       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15610         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15611         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15612         export_dynamic_flag_spec_GCJ='${wl}-E'
15613       else
15614        case $host_os in
15615          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15616            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15617            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15618            ;;
15619          *)
15620            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15621            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15622            ;;
15623        esac
15624       fi
15625       ;;
15626
15627     os2*)
15628       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15629       hardcode_minus_L_GCJ=yes
15630       allow_undefined_flag_GCJ=unsupported
15631       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'
15632       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15633       ;;
15634
15635     osf3*)
15636       if test "$GCC" = yes; then
15637         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15638         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'
15639       else
15640         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15641         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'
15642       fi
15643       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15644       hardcode_libdir_separator_GCJ=:
15645       ;;
15646
15647     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15648       if test "$GCC" = yes; then
15649         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15650         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'
15651         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15652       else
15653         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15654         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'
15655         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~
15656         $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'
15657
15658         # Both c and cxx compiler support -rpath directly
15659         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15660       fi
15661       hardcode_libdir_separator_GCJ=:
15662       ;;
15663
15664     sco3.2v5*)
15665       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666       hardcode_shlibpath_var_GCJ=no
15667       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15668       runpath_var=LD_RUN_PATH
15669       hardcode_runpath_var=yes
15670       ;;
15671
15672     solaris*)
15673       no_undefined_flag_GCJ=' -z text'
15674       if test "$GCC" = yes; then
15675         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15677           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15678       else
15679         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15681         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15682       fi
15683       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15684       hardcode_shlibpath_var_GCJ=no
15685       case $host_os in
15686       solaris2.[0-5] | solaris2.[0-5].*) ;;
15687       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15688         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15689       esac
15690       link_all_deplibs_GCJ=yes
15691       ;;
15692
15693     sunos4*)
15694       if test "x$host_vendor" = xsequent; then
15695         # Use $CC to link under sequent, because it throws in some extra .o
15696         # files that make .init and .fini sections work.
15697         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15698       else
15699         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15700       fi
15701       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15702       hardcode_direct_GCJ=yes
15703       hardcode_minus_L_GCJ=yes
15704       hardcode_shlibpath_var_GCJ=no
15705       ;;
15706
15707     sysv4)
15708       case $host_vendor in
15709         sni)
15710           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711           hardcode_direct_GCJ=yes # is this really true???
15712         ;;
15713         siemens)
15714           ## LD is ld it makes a PLAMLIB
15715           ## CC just makes a GrossModule.
15716           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15717           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15718           hardcode_direct_GCJ=no
15719         ;;
15720         motorola)
15721           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15723         ;;
15724       esac
15725       runpath_var='LD_RUN_PATH'
15726       hardcode_shlibpath_var_GCJ=no
15727       ;;
15728
15729     sysv4.3*)
15730       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731       hardcode_shlibpath_var_GCJ=no
15732       export_dynamic_flag_spec_GCJ='-Bexport'
15733       ;;
15734
15735     sysv4*MP*)
15736       if test -d /usr/nec; then
15737         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738         hardcode_shlibpath_var_GCJ=no
15739         runpath_var=LD_RUN_PATH
15740         hardcode_runpath_var=yes
15741         ld_shlibs_GCJ=yes
15742       fi
15743       ;;
15744
15745     sysv4.2uw2*)
15746       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747       hardcode_direct_GCJ=yes
15748       hardcode_minus_L_GCJ=no
15749       hardcode_shlibpath_var_GCJ=no
15750       hardcode_runpath_var=yes
15751       runpath_var=LD_RUN_PATH
15752       ;;
15753
15754    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15755       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15756       if test "$GCC" = yes; then
15757         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758       else
15759         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15760       fi
15761       runpath_var='LD_RUN_PATH'
15762       hardcode_shlibpath_var_GCJ=no
15763       ;;
15764
15765     sysv5*)
15766       no_undefined_flag_GCJ=' -z text'
15767       # $CC -shared without GNU ld will not create a library from C++
15768       # object files and a static libstdc++, better avoid it by now
15769       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15771                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15772       hardcode_libdir_flag_spec_GCJ=
15773       hardcode_shlibpath_var_GCJ=no
15774       runpath_var='LD_RUN_PATH'
15775       ;;
15776
15777     uts4*)
15778       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15779       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15780       hardcode_shlibpath_var_GCJ=no
15781       ;;
15782
15783     *)
15784       ld_shlibs_GCJ=no
15785       ;;
15786     esac
15787   fi
15788
15789 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15790 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15791 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15792
15793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15794 if test "$GCC" = yes; then
15795   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15796 fi
15797
15798 #
15799 # Do we need to explicitly link libc?
15800 #
15801 case "x$archive_cmds_need_lc_GCJ" in
15802 x|xyes)
15803   # Assume -lc should be added
15804   archive_cmds_need_lc_GCJ=yes
15805
15806   if test "$enable_shared" = yes && test "$GCC" = yes; then
15807     case $archive_cmds_GCJ in
15808     *'~'*)
15809       # FIXME: we may have to deal with multi-command sequences.
15810       ;;
15811     '$CC '*)
15812       # Test whether the compiler implicitly links with -lc since on some
15813       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15814       # to ld, don't add -lc before -lgcc.
15815       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15817       $rm conftest*
15818       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15819
15820       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821   (eval $ac_compile) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } 2>conftest.err; then
15825         soname=conftest
15826         lib=conftest
15827         libobjs=conftest.$ac_objext
15828         deplibs=
15829         wl=$lt_prog_compiler_wl_GCJ
15830         compiler_flags=-v
15831         linker_flags=-v
15832         verstring=
15833         output_objdir=.
15834         libname=conftest
15835         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15836         allow_undefined_flag_GCJ=
15837         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15838   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }
15842         then
15843           archive_cmds_need_lc_GCJ=no
15844         else
15845           archive_cmds_need_lc_GCJ=yes
15846         fi
15847         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15848       else
15849         cat conftest.err 1>&5
15850       fi
15851       $rm conftest*
15852       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15853 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15854       ;;
15855     esac
15856   fi
15857   ;;
15858 esac
15859
15860 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15861 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15862 hardcode_action_GCJ=
15863 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15864    test -n "$runpath_var GCJ" || \
15865    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15866
15867   # We can hardcode non-existant directories.
15868   if test "$hardcode_direct_GCJ" != no &&
15869      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15870      # have to relink, otherwise we might link with an installed library
15871      # when we should be linking with a yet-to-be-installed one
15872      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15873      test "$hardcode_minus_L_GCJ" != no; then
15874     # Linking always hardcodes the temporary library directory.
15875     hardcode_action_GCJ=relink
15876   else
15877     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15878     hardcode_action_GCJ=immediate
15879   fi
15880 else
15881   # We cannot hardcode anything, or else we can only hardcode existing
15882   # directories.
15883   hardcode_action_GCJ=unsupported
15884 fi
15885 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15886 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15887
15888 if test "$hardcode_action_GCJ" = relink; then
15889   # Fast installation is not supported
15890   enable_fast_install=no
15891 elif test "$shlibpath_overrides_runpath" = yes ||
15892      test "$enable_shared" = no; then
15893   # Fast installation is not necessary
15894   enable_fast_install=needless
15895 fi
15896
15897 striplib=
15898 old_striplib=
15899 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15900 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15901 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15902   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15903   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15904   echo "$as_me:$LINENO: result: yes" >&5
15905 echo "${ECHO_T}yes" >&6
15906 else
15907 # FIXME - insert some real tests, host_os isn't really good enough
15908   case $host_os in
15909    darwin*)
15910        if test -n "$STRIP" ; then
15911          striplib="$STRIP -x"
15912          echo "$as_me:$LINENO: result: yes" >&5
15913 echo "${ECHO_T}yes" >&6
15914        else
15915   echo "$as_me:$LINENO: result: no" >&5
15916 echo "${ECHO_T}no" >&6
15917 fi
15918        ;;
15919    *)
15920   echo "$as_me:$LINENO: result: no" >&5
15921 echo "${ECHO_T}no" >&6
15922     ;;
15923   esac
15924 fi
15925
15926 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15928 library_names_spec=
15929 libname_spec='lib$name'
15930 soname_spec=
15931 shrext=".so"
15932 postinstall_cmds=
15933 postuninstall_cmds=
15934 finish_cmds=
15935 finish_eval=
15936 shlibpath_var=
15937 shlibpath_overrides_runpath=unknown
15938 version_type=none
15939 dynamic_linker="$host_os ld.so"
15940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15941 if test "$GCC" = yes; then
15942   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15943   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15944     # if the path contains ";" then we assume it to be the separator
15945     # otherwise default to the standard path separator (i.e. ":") - it is
15946     # assumed that no part of a normal pathname contains ";" but that should
15947     # okay in the real world where ";" in dirpaths is itself problematic.
15948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15949   else
15950     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15951   fi
15952 else
15953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15954 fi
15955 need_lib_prefix=unknown
15956 hardcode_into_libs=no
15957
15958 # when you set need_version to no, make sure it does not cause -set_version
15959 # flags to be left without arguments
15960 need_version=unknown
15961
15962 case $host_os in
15963 aix3*)
15964   version_type=linux
15965   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15966   shlibpath_var=LIBPATH
15967
15968   # AIX 3 has no versioning support, so we append a major version to the name.
15969   soname_spec='${libname}${release}${shared_ext}$major'
15970   ;;
15971
15972 aix4* | aix5*)
15973   version_type=linux
15974   need_lib_prefix=no
15975   need_version=no
15976   hardcode_into_libs=yes
15977   if test "$host_cpu" = ia64; then
15978     # AIX 5 supports IA64
15979     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15980     shlibpath_var=LD_LIBRARY_PATH
15981   else
15982     # With GCC up to 2.95.x, collect2 would create an import file
15983     # for dependence libraries.  The import file would start with
15984     # the line `#! .'.  This would cause the generated library to
15985     # depend on `.', always an invalid library.  This was fixed in
15986     # development snapshots of GCC prior to 3.0.
15987     case $host_os in
15988       aix4 | aix4.[01] | aix4.[01].*)
15989       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15990            echo ' yes '
15991            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15992         :
15993       else
15994         can_build_shared=no
15995       fi
15996       ;;
15997     esac
15998     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15999     # soname into executable. Probably we can add versioning support to
16000     # collect2, so additional links can be useful in future.
16001     if test "$aix_use_runtimelinking" = yes; then
16002       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16003       # instead of lib<name>.a to let people know that these are not
16004       # typical AIX shared libraries.
16005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006     else
16007       # We preserve .a as extension for shared libraries through AIX4.2
16008       # and later when we are not doing run time linking.
16009       library_names_spec='${libname}${release}.a $libname.a'
16010       soname_spec='${libname}${release}${shared_ext}$major'
16011     fi
16012     shlibpath_var=LIBPATH
16013   fi
16014   ;;
16015
16016 amigaos*)
16017   library_names_spec='$libname.ixlibrary $libname.a'
16018   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16019   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'
16020   ;;
16021
16022 beos*)
16023   library_names_spec='${libname}${shared_ext}'
16024   dynamic_linker="$host_os ld.so"
16025   shlibpath_var=LIBRARY_PATH
16026   ;;
16027
16028 bsdi4*)
16029   version_type=linux
16030   need_version=no
16031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032   soname_spec='${libname}${release}${shared_ext}$major'
16033   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16034   shlibpath_var=LD_LIBRARY_PATH
16035   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16036   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16037   # the default ld.so.conf also contains /usr/contrib/lib and
16038   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16039   # libtool to hard-code these into programs
16040   ;;
16041
16042 cygwin* | mingw* | pw32*)
16043   version_type=windows
16044   shrext=".dll"
16045   need_version=no
16046   need_lib_prefix=no
16047
16048   case $GCC,$host_os in
16049   yes,cygwin* | yes,mingw* | yes,pw32*)
16050     library_names_spec='$libname.dll.a'
16051     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16052     postinstall_cmds='base_file=`basename \${file}`~
16053       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16054       dldir=$destdir/`dirname \$dlpath`~
16055       test -d \$dldir || mkdir -p \$dldir~
16056       $install_prog $dir/$dlname \$dldir/$dlname'
16057     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16058       dlpath=$dir/\$dldll~
16059        $rm \$dlpath'
16060     shlibpath_overrides_runpath=yes
16061
16062     case $host_os in
16063     cygwin*)
16064       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16065       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16066       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16067       ;;
16068     mingw*)
16069       # MinGW DLLs use traditional 'lib' prefix
16070       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16071       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16072       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16073         # It is most probably a Windows format PATH printed by
16074         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16075         # path with ; separators, and with drive letters. We can handle the
16076         # drive letters (cygwin fileutils understands them), so leave them,
16077         # especially as we might pass files found there to a mingw objdump,
16078         # which wouldn't understand a cygwinified path. Ahh.
16079         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16080       else
16081         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16082       fi
16083       ;;
16084     pw32*)
16085       # pw32 DLLs use 'pw' prefix rather than 'lib'
16086       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16087       ;;
16088     esac
16089     ;;
16090
16091   *)
16092     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16093     ;;
16094   esac
16095   dynamic_linker='Win32 ld.exe'
16096   # FIXME: first we should search . and the directory the executable is in
16097   shlibpath_var=PATH
16098   ;;
16099
16100 darwin* | rhapsody*)
16101   dynamic_linker="$host_os dyld"
16102   version_type=darwin
16103   need_lib_prefix=no
16104   need_version=no
16105   # FIXME: Relying on posixy $() will cause problems for
16106   #        cross-compilation, but unfortunately the echo tests do not
16107   #        yet detect zsh echo's removal of \ escapes.
16108   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16109   soname_spec='${libname}${release}${major}$shared_ext'
16110   shlibpath_overrides_runpath=yes
16111   shlibpath_var=DYLD_LIBRARY_PATH
16112   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16113   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16114   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16115   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"`
16116   fi
16117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16118   ;;
16119
16120 dgux*)
16121   version_type=linux
16122   need_lib_prefix=no
16123   need_version=no
16124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16125   soname_spec='${libname}${release}${shared_ext}$major'
16126   shlibpath_var=LD_LIBRARY_PATH
16127   ;;
16128
16129 freebsd1*)
16130   dynamic_linker=no
16131   ;;
16132
16133 freebsd*)
16134   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16135   version_type=freebsd-$objformat
16136   case $version_type in
16137     freebsd-elf*)
16138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16139       need_version=no
16140       need_lib_prefix=no
16141       ;;
16142     freebsd-*)
16143       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16144       need_version=yes
16145       ;;
16146   esac
16147   shlibpath_var=LD_LIBRARY_PATH
16148   case $host_os in
16149   freebsd2*)
16150     shlibpath_overrides_runpath=yes
16151     ;;
16152   freebsd3.01* | freebsdelf3.01*)
16153     shlibpath_overrides_runpath=yes
16154     hardcode_into_libs=yes
16155     ;;
16156   *) # from 3.2 on
16157     shlibpath_overrides_runpath=no
16158     hardcode_into_libs=yes
16159     ;;
16160   esac
16161   ;;
16162
16163 gnu*)
16164   version_type=linux
16165   need_lib_prefix=no
16166   need_version=no
16167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16168   soname_spec='${libname}${release}${shared_ext}$major'
16169   shlibpath_var=LD_LIBRARY_PATH
16170   hardcode_into_libs=yes
16171   ;;
16172
16173 hpux9* | hpux10* | hpux11*)
16174   # Give a soname corresponding to the major version so that dld.sl refuses to
16175   # link against other versions.
16176   version_type=sunos
16177   need_lib_prefix=no
16178   need_version=no
16179   case "$host_cpu" in
16180   ia64*)
16181     shrext='.so'
16182     hardcode_into_libs=yes
16183     dynamic_linker="$host_os dld.so"
16184     shlibpath_var=LD_LIBRARY_PATH
16185     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187     soname_spec='${libname}${release}${shared_ext}$major'
16188     if test "X$HPUX_IA64_MODE" = X32; then
16189       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16190     else
16191       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16192     fi
16193     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16194     ;;
16195    hppa*64*)
16196      shrext='.sl'
16197      hardcode_into_libs=yes
16198      dynamic_linker="$host_os dld.sl"
16199      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16200      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16201      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202      soname_spec='${libname}${release}${shared_ext}$major'
16203      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16204      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16205      ;;
16206    *)
16207     shrext='.sl'
16208     dynamic_linker="$host_os dld.sl"
16209     shlibpath_var=SHLIB_PATH
16210     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212     soname_spec='${libname}${release}${shared_ext}$major'
16213     ;;
16214   esac
16215   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16216   postinstall_cmds='chmod 555 $lib'
16217   ;;
16218
16219 irix5* | irix6* | nonstopux*)
16220   case $host_os in
16221     nonstopux*) version_type=nonstopux ;;
16222     *)
16223         if test "$lt_cv_prog_gnu_ld" = yes; then
16224                 version_type=linux
16225         else
16226                 version_type=irix
16227         fi ;;
16228   esac
16229   need_lib_prefix=no
16230   need_version=no
16231   soname_spec='${libname}${release}${shared_ext}$major'
16232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16233   case $host_os in
16234   irix5* | nonstopux*)
16235     libsuff= shlibsuff=
16236     ;;
16237   *)
16238     case $LD in # libtool.m4 will add one of these switches to LD
16239     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16240       libsuff= shlibsuff= libmagic=32-bit;;
16241     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16242       libsuff=32 shlibsuff=N32 libmagic=N32;;
16243     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16244       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16245     *) libsuff= shlibsuff= libmagic=never-match;;
16246     esac
16247     ;;
16248   esac
16249   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16250   shlibpath_overrides_runpath=no
16251   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16252   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16253   hardcode_into_libs=yes
16254   ;;
16255
16256 # No shared lib support for Linux oldld, aout, or coff.
16257 linux*oldld* | linux*aout* | linux*coff*)
16258   dynamic_linker=no
16259   ;;
16260
16261 # This must be Linux ELF.
16262 linux*)
16263   version_type=linux
16264   need_lib_prefix=no
16265   need_version=no
16266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267   soname_spec='${libname}${release}${shared_ext}$major'
16268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16269   shlibpath_var=LD_LIBRARY_PATH
16270   shlibpath_overrides_runpath=no
16271   # This implies no fast_install, which is unacceptable.
16272   # Some rework will be needed to allow for fast_install
16273   # before this can be enabled.
16274   hardcode_into_libs=yes
16275
16276   # We used to test for /lib/ld.so.1 and disable shared libraries on
16277   # powerpc, because MkLinux only supported shared libraries with the
16278   # GNU dynamic linker.  Since this was broken with cross compilers,
16279   # most powerpc-linux boxes support dynamic linking these days and
16280   # people can always --disable-shared, the test was removed, and we
16281   # assume the GNU/Linux dynamic linker is in use.
16282   dynamic_linker='GNU/Linux ld.so'
16283   ;;
16284
16285 netbsd*)
16286   version_type=sunos
16287   need_lib_prefix=no
16288   need_version=no
16289   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16291     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16292     dynamic_linker='NetBSD (a.out) ld.so'
16293   else
16294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16295     soname_spec='${libname}${release}${shared_ext}$major'
16296     dynamic_linker='NetBSD ld.elf_so'
16297   fi
16298   shlibpath_var=LD_LIBRARY_PATH
16299   shlibpath_overrides_runpath=yes
16300   hardcode_into_libs=yes
16301   ;;
16302
16303 newsos6)
16304   version_type=linux
16305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306   shlibpath_var=LD_LIBRARY_PATH
16307   shlibpath_overrides_runpath=yes
16308   ;;
16309
16310 nto-qnx)
16311   version_type=linux
16312   need_lib_prefix=no
16313   need_version=no
16314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315   soname_spec='${libname}${release}${shared_ext}$major'
16316   shlibpath_var=LD_LIBRARY_PATH
16317   shlibpath_overrides_runpath=yes
16318   ;;
16319
16320 openbsd*)
16321   version_type=sunos
16322   need_lib_prefix=no
16323   need_version=no
16324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16326   shlibpath_var=LD_LIBRARY_PATH
16327   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16328     case $host_os in
16329       openbsd2.[89] | openbsd2.[89].*)
16330         shlibpath_overrides_runpath=no
16331         ;;
16332       *)
16333         shlibpath_overrides_runpath=yes
16334         ;;
16335       esac
16336   else
16337     shlibpath_overrides_runpath=yes
16338   fi
16339   ;;
16340
16341 os2*)
16342   libname_spec='$name'
16343   shrext=".dll"
16344   need_lib_prefix=no
16345   library_names_spec='$libname${shared_ext} $libname.a'
16346   dynamic_linker='OS/2 ld.exe'
16347   shlibpath_var=LIBPATH
16348   ;;
16349
16350 osf3* | osf4* | osf5*)
16351   version_type=osf
16352   need_lib_prefix=no
16353   need_version=no
16354   soname_spec='${libname}${release}${shared_ext}$major'
16355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356   shlibpath_var=LD_LIBRARY_PATH
16357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16359   ;;
16360
16361 sco3.2v5*)
16362   version_type=osf
16363   soname_spec='${libname}${release}${shared_ext}$major'
16364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365   shlibpath_var=LD_LIBRARY_PATH
16366   ;;
16367
16368 solaris*)
16369   version_type=linux
16370   need_lib_prefix=no
16371   need_version=no
16372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373   soname_spec='${libname}${release}${shared_ext}$major'
16374   shlibpath_var=LD_LIBRARY_PATH
16375   shlibpath_overrides_runpath=yes
16376   hardcode_into_libs=yes
16377   # ldd complains unless libraries are executable
16378   postinstall_cmds='chmod +x $lib'
16379   ;;
16380
16381 sunos4*)
16382   version_type=sunos
16383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16385   shlibpath_var=LD_LIBRARY_PATH
16386   shlibpath_overrides_runpath=yes
16387   if test "$with_gnu_ld" = yes; then
16388     need_lib_prefix=no
16389   fi
16390   need_version=yes
16391   ;;
16392
16393 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16394   version_type=linux
16395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396   soname_spec='${libname}${release}${shared_ext}$major'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   case $host_vendor in
16399     sni)
16400       shlibpath_overrides_runpath=no
16401       need_lib_prefix=no
16402       export_dynamic_flag_spec='${wl}-Blargedynsym'
16403       runpath_var=LD_RUN_PATH
16404       ;;
16405     siemens)
16406       need_lib_prefix=no
16407       ;;
16408     motorola)
16409       need_lib_prefix=no
16410       need_version=no
16411       shlibpath_overrides_runpath=no
16412       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16413       ;;
16414   esac
16415   ;;
16416
16417 sysv4*MP*)
16418   if test -d /usr/nec ;then
16419     version_type=linux
16420     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16421     soname_spec='$libname${shared_ext}.$major'
16422     shlibpath_var=LD_LIBRARY_PATH
16423   fi
16424   ;;
16425
16426 uts4*)
16427   version_type=linux
16428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429   soname_spec='${libname}${release}${shared_ext}$major'
16430   shlibpath_var=LD_LIBRARY_PATH
16431   ;;
16432
16433 *)
16434   dynamic_linker=no
16435   ;;
16436 esac
16437 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16438 echo "${ECHO_T}$dynamic_linker" >&6
16439 test "$dynamic_linker" = no && can_build_shared=no
16440
16441 if test "x$enable_dlopen" != xyes; then
16442   enable_dlopen=unknown
16443   enable_dlopen_self=unknown
16444   enable_dlopen_self_static=unknown
16445 else
16446   lt_cv_dlopen=no
16447   lt_cv_dlopen_libs=
16448
16449   case $host_os in
16450   beos*)
16451     lt_cv_dlopen="load_add_on"
16452     lt_cv_dlopen_libs=
16453     lt_cv_dlopen_self=yes
16454     ;;
16455
16456   mingw* | pw32*)
16457     lt_cv_dlopen="LoadLibrary"
16458     lt_cv_dlopen_libs=
16459    ;;
16460
16461   cygwin*)
16462     lt_cv_dlopen="dlopen"
16463     lt_cv_dlopen_libs=
16464    ;;
16465
16466   darwin*)
16467   # if libdl is installed we need to link against it
16468     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-ldl  $LIBS"
16475 cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h.  */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h.  */
16481
16482 /* Override any gcc2 internal prototype to avoid an error.  */
16483 #ifdef __cplusplus
16484 extern "C"
16485 #endif
16486 /* We use char because int might match the return type of a gcc2
16487    builtin and then its argument prototype would still apply.  */
16488 char dlopen ();
16489 int
16490 main ()
16491 {
16492 dlopen ();
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499   (eval $ac_link) 2>conftest.er1
16500   ac_status=$?
16501   grep -v '^ *+' conftest.er1 >conftest.err
16502   rm -f conftest.er1
16503   cat conftest.err >&5
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } &&
16506          { ac_try='test -z "$ac_c_werror_flag"
16507                          || test ! -s conftest.err'
16508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509   (eval $ac_try) 2>&5
16510   ac_status=$?
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); }; } &&
16513          { ac_try='test -s conftest$ac_exeext'
16514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515   (eval $ac_try) 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; }; then
16519   ac_cv_lib_dl_dlopen=yes
16520 else
16521   echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 ac_cv_lib_dl_dlopen=no
16525 fi
16526 rm -f conftest.err conftest.$ac_objext \
16527       conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16529 fi
16530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16532 if test $ac_cv_lib_dl_dlopen = yes; then
16533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16534 else
16535
16536     lt_cv_dlopen="dyld"
16537     lt_cv_dlopen_libs=
16538     lt_cv_dlopen_self=yes
16539
16540 fi
16541
16542    ;;
16543
16544   *)
16545     echo "$as_me:$LINENO: checking for shl_load" >&5
16546 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16547 if test "${ac_cv_func_shl_load+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16558 #define shl_load innocuous_shl_load
16559
16560 /* System header to define __stub macros and hopefully few prototypes,
16561     which can conflict with char shl_load (); below.
16562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563     <limits.h> exists even on freestanding compilers.  */
16564
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570
16571 #undef shl_load
16572
16573 /* Override any gcc2 internal prototype to avoid an error.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 {
16577 #endif
16578 /* We use char because int might match the return type of a gcc2
16579    builtin and then its argument prototype would still apply.  */
16580 char shl_load ();
16581 /* The GNU C library defines this for functions which it implements
16582     to always fail with ENOSYS.  Some functions are actually named
16583     something starting with __ and the normal name is an alias.  */
16584 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16585 choke me
16586 #else
16587 char (*f) () = shl_load;
16588 #endif
16589 #ifdef __cplusplus
16590 }
16591 #endif
16592
16593 int
16594 main ()
16595 {
16596 return f != shl_load;
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603   (eval $ac_link) 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -z "$ac_c_werror_flag"
16611                          || test ! -s conftest.err'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; } &&
16617          { ac_try='test -s conftest$ac_exeext'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   ac_cv_func_shl_load=yes
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 ac_cv_func_shl_load=no
16629 fi
16630 rm -f conftest.err conftest.$ac_objext \
16631       conftest$ac_exeext conftest.$ac_ext
16632 fi
16633 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16634 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16635 if test $ac_cv_func_shl_load = yes; then
16636   lt_cv_dlopen="shl_load"
16637 else
16638   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   ac_check_lib_save_LIBS=$LIBS
16644 LIBS="-ldld  $LIBS"
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651
16652 /* Override any gcc2 internal prototype to avoid an error.  */
16653 #ifdef __cplusplus
16654 extern "C"
16655 #endif
16656 /* We use char because int might match the return type of a gcc2
16657    builtin and then its argument prototype would still apply.  */
16658 char shl_load ();
16659 int
16660 main ()
16661 {
16662 shl_load ();
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669   (eval $ac_link) 2>conftest.er1
16670   ac_status=$?
16671   grep -v '^ *+' conftest.er1 >conftest.err
16672   rm -f conftest.er1
16673   cat conftest.err >&5
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -z "$ac_c_werror_flag"
16677                          || test ! -s conftest.err'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; } &&
16683          { ac_try='test -s conftest$ac_exeext'
16684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685   (eval $ac_try) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; }; then
16689   ac_cv_lib_dld_shl_load=yes
16690 else
16691   echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694 ac_cv_lib_dld_shl_load=no
16695 fi
16696 rm -f conftest.err conftest.$ac_objext \
16697       conftest$ac_exeext conftest.$ac_ext
16698 LIBS=$ac_check_lib_save_LIBS
16699 fi
16700 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16701 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16702 if test $ac_cv_lib_dld_shl_load = yes; then
16703   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16704 else
16705   echo "$as_me:$LINENO: checking for dlopen" >&5
16706 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16707 if test "${ac_cv_func_dlopen+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16718 #define dlopen innocuous_dlopen
16719
16720 /* System header to define __stub macros and hopefully few prototypes,
16721     which can conflict with char dlopen (); below.
16722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723     <limits.h> exists even on freestanding compilers.  */
16724
16725 #ifdef __STDC__
16726 # include <limits.h>
16727 #else
16728 # include <assert.h>
16729 #endif
16730
16731 #undef dlopen
16732
16733 /* Override any gcc2 internal prototype to avoid an error.  */
16734 #ifdef __cplusplus
16735 extern "C"
16736 {
16737 #endif
16738 /* We use char because int might match the return type of a gcc2
16739    builtin and then its argument prototype would still apply.  */
16740 char dlopen ();
16741 /* The GNU C library defines this for functions which it implements
16742     to always fail with ENOSYS.  Some functions are actually named
16743     something starting with __ and the normal name is an alias.  */
16744 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16745 choke me
16746 #else
16747 char (*f) () = dlopen;
16748 #endif
16749 #ifdef __cplusplus
16750 }
16751 #endif
16752
16753 int
16754 main ()
16755 {
16756 return f != dlopen;
16757   ;
16758   return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763   (eval $ac_link) 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } &&
16770          { ac_try='test -z "$ac_c_werror_flag"
16771                          || test ! -s conftest.err'
16772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773   (eval $ac_try) 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; } &&
16777          { ac_try='test -s conftest$ac_exeext'
16778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779   (eval $ac_try) 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; }; then
16783   ac_cv_func_dlopen=yes
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788 ac_cv_func_dlopen=no
16789 fi
16790 rm -f conftest.err conftest.$ac_objext \
16791       conftest$ac_exeext conftest.$ac_ext
16792 fi
16793 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16794 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16795 if test $ac_cv_func_dlopen = yes; then
16796   lt_cv_dlopen="dlopen"
16797 else
16798   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16799 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16800 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16801   echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803   ac_check_lib_save_LIBS=$LIBS
16804 LIBS="-ldl  $LIBS"
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811
16812 /* Override any gcc2 internal prototype to avoid an error.  */
16813 #ifdef __cplusplus
16814 extern "C"
16815 #endif
16816 /* We use char because int might match the return type of a gcc2
16817    builtin and then its argument prototype would still apply.  */
16818 char dlopen ();
16819 int
16820 main ()
16821 {
16822 dlopen ();
16823   ;
16824   return 0;
16825 }
16826 _ACEOF
16827 rm -f conftest.$ac_objext conftest$ac_exeext
16828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16829   (eval $ac_link) 2>conftest.er1
16830   ac_status=$?
16831   grep -v '^ *+' conftest.er1 >conftest.err
16832   rm -f conftest.er1
16833   cat conftest.err >&5
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -z "$ac_c_werror_flag"
16837                          || test ! -s conftest.err'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; } &&
16843          { ac_try='test -s conftest$ac_exeext'
16844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845   (eval $ac_try) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; }; then
16849   ac_cv_lib_dl_dlopen=yes
16850 else
16851   echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16853
16854 ac_cv_lib_dl_dlopen=no
16855 fi
16856 rm -f conftest.err conftest.$ac_objext \
16857       conftest$ac_exeext conftest.$ac_ext
16858 LIBS=$ac_check_lib_save_LIBS
16859 fi
16860 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16861 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16862 if test $ac_cv_lib_dl_dlopen = yes; then
16863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16864 else
16865   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16866 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16867 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870   ac_check_lib_save_LIBS=$LIBS
16871 LIBS="-lsvld  $LIBS"
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878
16879 /* Override any gcc2 internal prototype to avoid an error.  */
16880 #ifdef __cplusplus
16881 extern "C"
16882 #endif
16883 /* We use char because int might match the return type of a gcc2
16884    builtin and then its argument prototype would still apply.  */
16885 char dlopen ();
16886 int
16887 main ()
16888 {
16889 dlopen ();
16890   ;
16891   return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16896   (eval $ac_link) 2>conftest.er1
16897   ac_status=$?
16898   grep -v '^ *+' conftest.er1 >conftest.err
16899   rm -f conftest.er1
16900   cat conftest.err >&5
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } &&
16903          { ac_try='test -z "$ac_c_werror_flag"
16904                          || test ! -s conftest.err'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; } &&
16910          { ac_try='test -s conftest$ac_exeext'
16911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912   (eval $ac_try) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916   ac_cv_lib_svld_dlopen=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_cv_lib_svld_dlopen=no
16922 fi
16923 rm -f conftest.err conftest.$ac_objext \
16924       conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16926 fi
16927 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16928 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16929 if test $ac_cv_lib_svld_dlopen = yes; then
16930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16931 else
16932   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16935   echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937   ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-ldld  $LIBS"
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945
16946 /* Override any gcc2 internal prototype to avoid an error.  */
16947 #ifdef __cplusplus
16948 extern "C"
16949 #endif
16950 /* We use char because int might match the return type of a gcc2
16951    builtin and then its argument prototype would still apply.  */
16952 char dld_link ();
16953 int
16954 main ()
16955 {
16956 dld_link ();
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963   (eval $ac_link) 2>conftest.er1
16964   ac_status=$?
16965   grep -v '^ *+' conftest.er1 >conftest.err
16966   rm -f conftest.er1
16967   cat conftest.err >&5
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); } &&
16970          { ac_try='test -z "$ac_c_werror_flag"
16971                          || test ! -s conftest.err'
16972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973   (eval $ac_try) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; } &&
16977          { ac_try='test -s conftest$ac_exeext'
16978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979   (eval $ac_try) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; }; then
16983   ac_cv_lib_dld_dld_link=yes
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 ac_cv_lib_dld_dld_link=no
16989 fi
16990 rm -f conftest.err conftest.$ac_objext \
16991       conftest$ac_exeext conftest.$ac_ext
16992 LIBS=$ac_check_lib_save_LIBS
16993 fi
16994 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16995 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16996 if test $ac_cv_lib_dld_dld_link = yes; then
16997   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16998 fi
16999
17000
17001 fi
17002
17003
17004 fi
17005
17006
17007 fi
17008
17009
17010 fi
17011
17012
17013 fi
17014
17015     ;;
17016   esac
17017
17018   if test "x$lt_cv_dlopen" != xno; then
17019     enable_dlopen=yes
17020   else
17021     enable_dlopen=no
17022   fi
17023
17024   case $lt_cv_dlopen in
17025   dlopen)
17026     save_CPPFLAGS="$CPPFLAGS"
17027     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17028
17029     save_LDFLAGS="$LDFLAGS"
17030     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17031
17032     save_LIBS="$LIBS"
17033     LIBS="$lt_cv_dlopen_libs $LIBS"
17034
17035     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17036 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17037 if test "${lt_cv_dlopen_self+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040           if test "$cross_compiling" = yes; then :
17041   lt_cv_dlopen_self=cross
17042 else
17043   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17044   lt_status=$lt_dlunknown
17045   cat > conftest.$ac_ext <<EOF
17046 #line 17046 "configure"
17047 #include "confdefs.h"
17048
17049 #if HAVE_DLFCN_H
17050 #include <dlfcn.h>
17051 #endif
17052
17053 #include <stdio.h>
17054
17055 #ifdef RTLD_GLOBAL
17056 #  define LT_DLGLOBAL           RTLD_GLOBAL
17057 #else
17058 #  ifdef DL_GLOBAL
17059 #    define LT_DLGLOBAL         DL_GLOBAL
17060 #  else
17061 #    define LT_DLGLOBAL         0
17062 #  endif
17063 #endif
17064
17065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17066    find out it does not work in some platform. */
17067 #ifndef LT_DLLAZY_OR_NOW
17068 #  ifdef RTLD_LAZY
17069 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17070 #  else
17071 #    ifdef DL_LAZY
17072 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17073 #    else
17074 #      ifdef RTLD_NOW
17075 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17076 #      else
17077 #        ifdef DL_NOW
17078 #          define LT_DLLAZY_OR_NOW      DL_NOW
17079 #        else
17080 #          define LT_DLLAZY_OR_NOW      0
17081 #        endif
17082 #      endif
17083 #    endif
17084 #  endif
17085 #endif
17086
17087 #ifdef __cplusplus
17088 extern "C" void exit (int);
17089 #endif
17090
17091 void fnord() { int i=42;}
17092 int main ()
17093 {
17094   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17095   int status = $lt_dlunknown;
17096
17097   if (self)
17098     {
17099       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17100       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17101       /* dlclose (self); */
17102     }
17103
17104     exit (status);
17105 }
17106 EOF
17107   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108   (eval $ac_link) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17112     (./conftest; exit; ) 2>/dev/null
17113     lt_status=$?
17114     case x$lt_status in
17115       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17116       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17117       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17118     esac
17119   else :
17120     # compilation failed
17121     lt_cv_dlopen_self=no
17122   fi
17123 fi
17124 rm -fr conftest*
17125
17126
17127 fi
17128 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17129 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17130
17131     if test "x$lt_cv_dlopen_self" = xyes; then
17132       LDFLAGS="$LDFLAGS $link_static_flag"
17133       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17134 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17135 if test "${lt_cv_dlopen_self_static+set}" = set; then
17136   echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138           if test "$cross_compiling" = yes; then :
17139   lt_cv_dlopen_self_static=cross
17140 else
17141   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17142   lt_status=$lt_dlunknown
17143   cat > conftest.$ac_ext <<EOF
17144 #line 17144 "configure"
17145 #include "confdefs.h"
17146
17147 #if HAVE_DLFCN_H
17148 #include <dlfcn.h>
17149 #endif
17150
17151 #include <stdio.h>
17152
17153 #ifdef RTLD_GLOBAL
17154 #  define LT_DLGLOBAL           RTLD_GLOBAL
17155 #else
17156 #  ifdef DL_GLOBAL
17157 #    define LT_DLGLOBAL         DL_GLOBAL
17158 #  else
17159 #    define LT_DLGLOBAL         0
17160 #  endif
17161 #endif
17162
17163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17164    find out it does not work in some platform. */
17165 #ifndef LT_DLLAZY_OR_NOW
17166 #  ifdef RTLD_LAZY
17167 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17168 #  else
17169 #    ifdef DL_LAZY
17170 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17171 #    else
17172 #      ifdef RTLD_NOW
17173 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17174 #      else
17175 #        ifdef DL_NOW
17176 #          define LT_DLLAZY_OR_NOW      DL_NOW
17177 #        else
17178 #          define LT_DLLAZY_OR_NOW      0
17179 #        endif
17180 #      endif
17181 #    endif
17182 #  endif
17183 #endif
17184
17185 #ifdef __cplusplus
17186 extern "C" void exit (int);
17187 #endif
17188
17189 void fnord() { int i=42;}
17190 int main ()
17191 {
17192   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17193   int status = $lt_dlunknown;
17194
17195   if (self)
17196     {
17197       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17198       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17199       /* dlclose (self); */
17200     }
17201
17202     exit (status);
17203 }
17204 EOF
17205   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17206   (eval $ac_link) 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17210     (./conftest; exit; ) 2>/dev/null
17211     lt_status=$?
17212     case x$lt_status in
17213       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17214       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17215       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17216     esac
17217   else :
17218     # compilation failed
17219     lt_cv_dlopen_self_static=no
17220   fi
17221 fi
17222 rm -fr conftest*
17223
17224
17225 fi
17226 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17227 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17228     fi
17229
17230     CPPFLAGS="$save_CPPFLAGS"
17231     LDFLAGS="$save_LDFLAGS"
17232     LIBS="$save_LIBS"
17233     ;;
17234   esac
17235
17236   case $lt_cv_dlopen_self in
17237   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17238   *) enable_dlopen_self=unknown ;;
17239   esac
17240
17241   case $lt_cv_dlopen_self_static in
17242   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17243   *) enable_dlopen_self_static=unknown ;;
17244   esac
17245 fi
17246
17247
17248 # The else clause should only fire when bootstrapping the
17249 # libtool distribution, otherwise you forgot to ship ltmain.sh
17250 # with your package, and you will get complaints that there are
17251 # no rules to generate ltmain.sh.
17252 if test -f "$ltmain"; then
17253   # See if we are running on zsh, and set the options which allow our commands through
17254   # without removal of \ escapes.
17255   if test -n "${ZSH_VERSION+set}" ; then
17256     setopt NO_GLOB_SUBST
17257   fi
17258   # Now quote all the things that may contain metacharacters while being
17259   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17260   # variables and quote the copies for generation of the libtool script.
17261   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17262     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17263     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17264     deplibs_check_method reload_flag reload_cmds need_locks \
17265     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17266     lt_cv_sys_global_symbol_to_c_name_address \
17267     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17268     old_postinstall_cmds old_postuninstall_cmds \
17269     compiler_GCJ \
17270     CC_GCJ \
17271     LD_GCJ \
17272     lt_prog_compiler_wl_GCJ \
17273     lt_prog_compiler_pic_GCJ \
17274     lt_prog_compiler_static_GCJ \
17275     lt_prog_compiler_no_builtin_flag_GCJ \
17276     export_dynamic_flag_spec_GCJ \
17277     thread_safe_flag_spec_GCJ \
17278     whole_archive_flag_spec_GCJ \
17279     enable_shared_with_static_runtimes_GCJ \
17280     old_archive_cmds_GCJ \
17281     old_archive_from_new_cmds_GCJ \
17282     predep_objects_GCJ \
17283     postdep_objects_GCJ \
17284     predeps_GCJ \
17285     postdeps_GCJ \
17286     compiler_lib_search_path_GCJ \
17287     archive_cmds_GCJ \
17288     archive_expsym_cmds_GCJ \
17289     postinstall_cmds_GCJ \
17290     postuninstall_cmds_GCJ \
17291     old_archive_from_expsyms_cmds_GCJ \
17292     allow_undefined_flag_GCJ \
17293     no_undefined_flag_GCJ \
17294     export_symbols_cmds_GCJ \
17295     hardcode_libdir_flag_spec_GCJ \
17296     hardcode_libdir_flag_spec_ld_GCJ \
17297     hardcode_libdir_separator_GCJ \
17298     hardcode_automatic_GCJ \
17299     module_cmds_GCJ \
17300     module_expsym_cmds_GCJ \
17301     lt_cv_prog_compiler_c_o_GCJ \
17302     exclude_expsyms_GCJ \
17303     include_expsyms_GCJ; do
17304
17305     case $var in
17306     old_archive_cmds_GCJ | \
17307     old_archive_from_new_cmds_GCJ | \
17308     archive_cmds_GCJ | \
17309     archive_expsym_cmds_GCJ | \
17310     module_cmds_GCJ | \
17311     module_expsym_cmds_GCJ | \
17312     old_archive_from_expsyms_cmds_GCJ | \
17313     export_symbols_cmds_GCJ | \
17314     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17315     postinstall_cmds | postuninstall_cmds | \
17316     old_postinstall_cmds | old_postuninstall_cmds | \
17317     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17318       # Double-quote double-evaled strings.
17319       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17320       ;;
17321     *)
17322       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17323       ;;
17324     esac
17325   done
17326
17327   case $lt_echo in
17328   *'\$0 --fallback-echo"')
17329     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17330     ;;
17331   esac
17332
17333 cfgfile="$ofile"
17334
17335   cat <<__EOF__ >> "$cfgfile"
17336 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17337
17338 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17339
17340 # Shell to use when invoking shell scripts.
17341 SHELL=$lt_SHELL
17342
17343 # Whether or not to build shared libraries.
17344 build_libtool_libs=$enable_shared
17345
17346 # Whether or not to build static libraries.
17347 build_old_libs=$enable_static
17348
17349 # Whether or not to add -lc for building shared libraries.
17350 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17351
17352 # Whether or not to disallow shared libs when runtime libs are static
17353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17354
17355 # Whether or not to optimize for fast installation.
17356 fast_install=$enable_fast_install
17357
17358 # The host system.
17359 host_alias=$host_alias
17360 host=$host
17361
17362 # An echo program that does not interpret backslashes.
17363 echo=$lt_echo
17364
17365 # The archiver.
17366 AR=$lt_AR
17367 AR_FLAGS=$lt_AR_FLAGS
17368
17369 # A C compiler.
17370 LTCC=$lt_LTCC
17371
17372 # A language-specific compiler.
17373 CC=$lt_compiler_GCJ
17374
17375 # Is the compiler the GNU C compiler?
17376 with_gcc=$GCC_GCJ
17377
17378 # An ERE matcher.
17379 EGREP=$lt_EGREP
17380
17381 # The linker used to build libraries.
17382 LD=$lt_LD_GCJ
17383
17384 # Whether we need hard or soft links.
17385 LN_S=$lt_LN_S
17386
17387 # A BSD-compatible nm program.
17388 NM=$lt_NM
17389
17390 # A symbol stripping program
17391 STRIP=$STRIP
17392
17393 # Used to examine libraries when file_magic_cmd begins "file"
17394 MAGIC_CMD=$MAGIC_CMD
17395
17396 # Used on cygwin: DLL creation program.
17397 DLLTOOL="$DLLTOOL"
17398
17399 # Used on cygwin: object dumper.
17400 OBJDUMP="$OBJDUMP"
17401
17402 # Used on cygwin: assembler.
17403 AS="$AS"
17404
17405 # The name of the directory that contains temporary libtool files.
17406 objdir=$objdir
17407
17408 # How to create reloadable object files.
17409 reload_flag=$lt_reload_flag
17410 reload_cmds=$lt_reload_cmds
17411
17412 # How to pass a linker flag through the compiler.
17413 wl=$lt_lt_prog_compiler_wl_GCJ
17414
17415 # Object file suffix (normally "o").
17416 objext="$ac_objext"
17417
17418 # Old archive suffix (normally "a").
17419 libext="$libext"
17420
17421 # Shared library suffix (normally ".so").
17422 shrext='$shrext'
17423
17424 # Executable file suffix (normally "").
17425 exeext="$exeext"
17426
17427 # Additional compiler flags for building library objects.
17428 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17429 pic_mode=$pic_mode
17430
17431 # What is the maximum length of a command?
17432 max_cmd_len=$lt_cv_sys_max_cmd_len
17433
17434 # Does compiler simultaneously support -c and -o options?
17435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17436
17437 # Must we lock files when doing compilation ?
17438 need_locks=$lt_need_locks
17439
17440 # Do we need the lib prefix for modules?
17441 need_lib_prefix=$need_lib_prefix
17442
17443 # Do we need a version for libraries?
17444 need_version=$need_version
17445
17446 # Whether dlopen is supported.
17447 dlopen_support=$enable_dlopen
17448
17449 # Whether dlopen of programs is supported.
17450 dlopen_self=$enable_dlopen_self
17451
17452 # Whether dlopen of statically linked programs is supported.
17453 dlopen_self_static=$enable_dlopen_self_static
17454
17455 # Compiler flag to prevent dynamic linking.
17456 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17457
17458 # Compiler flag to turn off builtin functions.
17459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17460
17461 # Compiler flag to allow reflexive dlopens.
17462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17463
17464 # Compiler flag to generate shared objects directly from archives.
17465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17466
17467 # Compiler flag to generate thread-safe objects.
17468 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17469
17470 # Library versioning type.
17471 version_type=$version_type
17472
17473 # Format of library name prefix.
17474 libname_spec=$lt_libname_spec
17475
17476 # List of archive names.  First name is the real one, the rest are links.
17477 # The last name is the one that the linker finds with -lNAME.
17478 library_names_spec=$lt_library_names_spec
17479
17480 # The coded name of the library, if different from the real name.
17481 soname_spec=$lt_soname_spec
17482
17483 # Commands used to build and install an old-style archive.
17484 RANLIB=$lt_RANLIB
17485 old_archive_cmds=$lt_old_archive_cmds_GCJ
17486 old_postinstall_cmds=$lt_old_postinstall_cmds
17487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17488
17489 # Create an old-style archive from a shared archive.
17490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17491
17492 # Create a temporary old-style archive to link instead of a shared archive.
17493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17494
17495 # Commands used to build and install a shared archive.
17496 archive_cmds=$lt_archive_cmds_GCJ
17497 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17498 postinstall_cmds=$lt_postinstall_cmds
17499 postuninstall_cmds=$lt_postuninstall_cmds
17500
17501 # Commands used to build a loadable module (assumed same as above if empty)
17502 module_cmds=$lt_module_cmds_GCJ
17503 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17504
17505 # Commands to strip libraries.
17506 old_striplib=$lt_old_striplib
17507 striplib=$lt_striplib
17508
17509 # Dependencies to place before the objects being linked to create a
17510 # shared library.
17511 predep_objects=$lt_predep_objects_GCJ
17512
17513 # Dependencies to place after the objects being linked to create a
17514 # shared library.
17515 postdep_objects=$lt_postdep_objects_GCJ
17516
17517 # Dependencies to place before the objects being linked to create a
17518 # shared library.
17519 predeps=$lt_predeps_GCJ
17520
17521 # Dependencies to place after the objects being linked to create a
17522 # shared library.
17523 postdeps=$lt_postdeps_GCJ
17524
17525 # The library search path used internally by the compiler when linking
17526 # a shared library.
17527 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17528
17529 # Method to check whether dependent libraries are shared objects.
17530 deplibs_check_method=$lt_deplibs_check_method
17531
17532 # Command to use when deplibs_check_method == file_magic.
17533 file_magic_cmd=$lt_file_magic_cmd
17534
17535 # Flag that allows shared libraries with undefined symbols to be built.
17536 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17537
17538 # Flag that forces no undefined symbols.
17539 no_undefined_flag=$lt_no_undefined_flag_GCJ
17540
17541 # Commands used to finish a libtool library installation in a directory.
17542 finish_cmds=$lt_finish_cmds
17543
17544 # Same as above, but a single script fragment to be evaled but not shown.
17545 finish_eval=$lt_finish_eval
17546
17547 # Take the output of nm and produce a listing of raw symbols and C names.
17548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17549
17550 # Transform the output of nm in a proper C declaration
17551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17552
17553 # Transform the output of nm in a C name address pair
17554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17555
17556 # This is the shared library runtime path variable.
17557 runpath_var=$runpath_var
17558
17559 # This is the shared library path variable.
17560 shlibpath_var=$shlibpath_var
17561
17562 # Is shlibpath searched before the hard-coded library search path?
17563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17564
17565 # How to hardcode a shared library path into an executable.
17566 hardcode_action=$hardcode_action_GCJ
17567
17568 # Whether we should hardcode library paths into libraries.
17569 hardcode_into_libs=$hardcode_into_libs
17570
17571 # Flag to hardcode \$libdir into a binary during linking.
17572 # This must work even if \$libdir does not exist.
17573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17574
17575 # If ld is used when linking, flag to hardcode \$libdir into
17576 # a binary during linking. This must work even if \$libdir does
17577 # not exist.
17578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17579
17580 # Whether we need a single -rpath flag with a separated argument.
17581 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17582
17583 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17584 # resulting binary.
17585 hardcode_direct=$hardcode_direct_GCJ
17586
17587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17588 # resulting binary.
17589 hardcode_minus_L=$hardcode_minus_L_GCJ
17590
17591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17592 # the resulting binary.
17593 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17594
17595 # Set to yes if building a shared library automatically hardcodes DIR into the library
17596 # and all subsequent libraries and executables linked against it.
17597 hardcode_automatic=$hardcode_automatic_GCJ
17598
17599 # Variables whose values should be saved in libtool wrapper scripts and
17600 # restored at relink time.
17601 variables_saved_for_relink="$variables_saved_for_relink"
17602
17603 # Whether libtool must link a program against all its dependency libraries.
17604 link_all_deplibs=$link_all_deplibs_GCJ
17605
17606 # Compile-time system search path for libraries
17607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17608
17609 # Run-time system search path for libraries
17610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17611
17612 # Fix the shell variable \$srcfile for the compiler.
17613 fix_srcfile_path="$fix_srcfile_path_GCJ"
17614
17615 # Set to yes if exported symbols are required.
17616 always_export_symbols=$always_export_symbols_GCJ
17617
17618 # The commands to list exported symbols.
17619 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17620
17621 # The commands to extract the exported symbol list from a shared archive.
17622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17623
17624 # Symbols that should not be listed in the preloaded symbols.
17625 exclude_expsyms=$lt_exclude_expsyms_GCJ
17626
17627 # Symbols that must always be exported.
17628 include_expsyms=$lt_include_expsyms_GCJ
17629
17630 # ### END LIBTOOL TAG CONFIG: $tagname
17631
17632 __EOF__
17633
17634
17635 else
17636   # If there is no Makefile yet, we rely on a make rule to execute
17637   # `config.status --recheck' to rerun these tests and create the
17638   # libtool script then.
17639   test -f Makefile && make "$ltmain"
17640 fi
17641
17642
17643 ac_ext=c
17644 ac_cpp='$CPP $CPPFLAGS'
17645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17648
17649 CC="$lt_save_CC"
17650
17651         else
17652           tagname=""
17653         fi
17654         ;;
17655
17656       RC)
17657
17658
17659
17660 # Source file extension for RC test sources.
17661 ac_ext=rc
17662
17663 # Object file extension for compiled RC test sources.
17664 objext=o
17665 objext_RC=$objext
17666
17667 # Code to be used in simple compile tests
17668 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17669
17670 # Code to be used in simple link tests
17671 lt_simple_link_test_code="$lt_simple_compile_test_code"
17672
17673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17674
17675 # If no C compiler was specified, use CC.
17676 LTCC=${LTCC-"$CC"}
17677
17678 # Allow CC to be a program name with arguments.
17679 compiler=$CC
17680
17681
17682 # Allow CC to be a program name with arguments.
17683 lt_save_CC="$CC"
17684 CC=${RC-"windres"}
17685 compiler=$CC
17686 compiler_RC=$CC
17687 lt_cv_prog_compiler_c_o_RC=yes
17688
17689 # The else clause should only fire when bootstrapping the
17690 # libtool distribution, otherwise you forgot to ship ltmain.sh
17691 # with your package, and you will get complaints that there are
17692 # no rules to generate ltmain.sh.
17693 if test -f "$ltmain"; then
17694   # See if we are running on zsh, and set the options which allow our commands through
17695   # without removal of \ escapes.
17696   if test -n "${ZSH_VERSION+set}" ; then
17697     setopt NO_GLOB_SUBST
17698   fi
17699   # Now quote all the things that may contain metacharacters while being
17700   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17701   # variables and quote the copies for generation of the libtool script.
17702   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17703     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17704     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17705     deplibs_check_method reload_flag reload_cmds need_locks \
17706     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17707     lt_cv_sys_global_symbol_to_c_name_address \
17708     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17709     old_postinstall_cmds old_postuninstall_cmds \
17710     compiler_RC \
17711     CC_RC \
17712     LD_RC \
17713     lt_prog_compiler_wl_RC \
17714     lt_prog_compiler_pic_RC \
17715     lt_prog_compiler_static_RC \
17716     lt_prog_compiler_no_builtin_flag_RC \
17717     export_dynamic_flag_spec_RC \
17718     thread_safe_flag_spec_RC \
17719     whole_archive_flag_spec_RC \
17720     enable_shared_with_static_runtimes_RC \
17721     old_archive_cmds_RC \
17722     old_archive_from_new_cmds_RC \
17723     predep_objects_RC \
17724     postdep_objects_RC \
17725     predeps_RC \
17726     postdeps_RC \
17727     compiler_lib_search_path_RC \
17728     archive_cmds_RC \
17729     archive_expsym_cmds_RC \
17730     postinstall_cmds_RC \
17731     postuninstall_cmds_RC \
17732     old_archive_from_expsyms_cmds_RC \
17733     allow_undefined_flag_RC \
17734     no_undefined_flag_RC \
17735     export_symbols_cmds_RC \
17736     hardcode_libdir_flag_spec_RC \
17737     hardcode_libdir_flag_spec_ld_RC \
17738     hardcode_libdir_separator_RC \
17739     hardcode_automatic_RC \
17740     module_cmds_RC \
17741     module_expsym_cmds_RC \
17742     lt_cv_prog_compiler_c_o_RC \
17743     exclude_expsyms_RC \
17744     include_expsyms_RC; do
17745
17746     case $var in
17747     old_archive_cmds_RC | \
17748     old_archive_from_new_cmds_RC | \
17749     archive_cmds_RC | \
17750     archive_expsym_cmds_RC | \
17751     module_cmds_RC | \
17752     module_expsym_cmds_RC | \
17753     old_archive_from_expsyms_cmds_RC | \
17754     export_symbols_cmds_RC | \
17755     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17756     postinstall_cmds | postuninstall_cmds | \
17757     old_postinstall_cmds | old_postuninstall_cmds | \
17758     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17759       # Double-quote double-evaled strings.
17760       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17761       ;;
17762     *)
17763       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17764       ;;
17765     esac
17766   done
17767
17768   case $lt_echo in
17769   *'\$0 --fallback-echo"')
17770     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17771     ;;
17772   esac
17773
17774 cfgfile="$ofile"
17775
17776   cat <<__EOF__ >> "$cfgfile"
17777 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17778
17779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17780
17781 # Shell to use when invoking shell scripts.
17782 SHELL=$lt_SHELL
17783
17784 # Whether or not to build shared libraries.
17785 build_libtool_libs=$enable_shared
17786
17787 # Whether or not to build static libraries.
17788 build_old_libs=$enable_static
17789
17790 # Whether or not to add -lc for building shared libraries.
17791 build_libtool_need_lc=$archive_cmds_need_lc_RC
17792
17793 # Whether or not to disallow shared libs when runtime libs are static
17794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17795
17796 # Whether or not to optimize for fast installation.
17797 fast_install=$enable_fast_install
17798
17799 # The host system.
17800 host_alias=$host_alias
17801 host=$host
17802
17803 # An echo program that does not interpret backslashes.
17804 echo=$lt_echo
17805
17806 # The archiver.
17807 AR=$lt_AR
17808 AR_FLAGS=$lt_AR_FLAGS
17809
17810 # A C compiler.
17811 LTCC=$lt_LTCC
17812
17813 # A language-specific compiler.
17814 CC=$lt_compiler_RC
17815
17816 # Is the compiler the GNU C compiler?
17817 with_gcc=$GCC_RC
17818
17819 # An ERE matcher.
17820 EGREP=$lt_EGREP
17821
17822 # The linker used to build libraries.
17823 LD=$lt_LD_RC
17824
17825 # Whether we need hard or soft links.
17826 LN_S=$lt_LN_S
17827
17828 # A BSD-compatible nm program.
17829 NM=$lt_NM
17830
17831 # A symbol stripping program
17832 STRIP=$STRIP
17833
17834 # Used to examine libraries when file_magic_cmd begins "file"
17835 MAGIC_CMD=$MAGIC_CMD
17836
17837 # Used on cygwin: DLL creation program.
17838 DLLTOOL="$DLLTOOL"
17839
17840 # Used on cygwin: object dumper.
17841 OBJDUMP="$OBJDUMP"
17842
17843 # Used on cygwin: assembler.
17844 AS="$AS"
17845
17846 # The name of the directory that contains temporary libtool files.
17847 objdir=$objdir
17848
17849 # How to create reloadable object files.
17850 reload_flag=$lt_reload_flag
17851 reload_cmds=$lt_reload_cmds
17852
17853 # How to pass a linker flag through the compiler.
17854 wl=$lt_lt_prog_compiler_wl_RC
17855
17856 # Object file suffix (normally "o").
17857 objext="$ac_objext"
17858
17859 # Old archive suffix (normally "a").
17860 libext="$libext"
17861
17862 # Shared library suffix (normally ".so").
17863 shrext='$shrext'
17864
17865 # Executable file suffix (normally "").
17866 exeext="$exeext"
17867
17868 # Additional compiler flags for building library objects.
17869 pic_flag=$lt_lt_prog_compiler_pic_RC
17870 pic_mode=$pic_mode
17871
17872 # What is the maximum length of a command?
17873 max_cmd_len=$lt_cv_sys_max_cmd_len
17874
17875 # Does compiler simultaneously support -c and -o options?
17876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17877
17878 # Must we lock files when doing compilation ?
17879 need_locks=$lt_need_locks
17880
17881 # Do we need the lib prefix for modules?
17882 need_lib_prefix=$need_lib_prefix
17883
17884 # Do we need a version for libraries?
17885 need_version=$need_version
17886
17887 # Whether dlopen is supported.
17888 dlopen_support=$enable_dlopen
17889
17890 # Whether dlopen of programs is supported.
17891 dlopen_self=$enable_dlopen_self
17892
17893 # Whether dlopen of statically linked programs is supported.
17894 dlopen_self_static=$enable_dlopen_self_static
17895
17896 # Compiler flag to prevent dynamic linking.
17897 link_static_flag=$lt_lt_prog_compiler_static_RC
17898
17899 # Compiler flag to turn off builtin functions.
17900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17901
17902 # Compiler flag to allow reflexive dlopens.
17903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17904
17905 # Compiler flag to generate shared objects directly from archives.
17906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17907
17908 # Compiler flag to generate thread-safe objects.
17909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17910
17911 # Library versioning type.
17912 version_type=$version_type
17913
17914 # Format of library name prefix.
17915 libname_spec=$lt_libname_spec
17916
17917 # List of archive names.  First name is the real one, the rest are links.
17918 # The last name is the one that the linker finds with -lNAME.
17919 library_names_spec=$lt_library_names_spec
17920
17921 # The coded name of the library, if different from the real name.
17922 soname_spec=$lt_soname_spec
17923
17924 # Commands used to build and install an old-style archive.
17925 RANLIB=$lt_RANLIB
17926 old_archive_cmds=$lt_old_archive_cmds_RC
17927 old_postinstall_cmds=$lt_old_postinstall_cmds
17928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17929
17930 # Create an old-style archive from a shared archive.
17931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17932
17933 # Create a temporary old-style archive to link instead of a shared archive.
17934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17935
17936 # Commands used to build and install a shared archive.
17937 archive_cmds=$lt_archive_cmds_RC
17938 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17939 postinstall_cmds=$lt_postinstall_cmds
17940 postuninstall_cmds=$lt_postuninstall_cmds
17941
17942 # Commands used to build a loadable module (assumed same as above if empty)
17943 module_cmds=$lt_module_cmds_RC
17944 module_expsym_cmds=$lt_module_expsym_cmds_RC
17945
17946 # Commands to strip libraries.
17947 old_striplib=$lt_old_striplib
17948 striplib=$lt_striplib
17949
17950 # Dependencies to place before the objects being linked to create a
17951 # shared library.
17952 predep_objects=$lt_predep_objects_RC
17953
17954 # Dependencies to place after the objects being linked to create a
17955 # shared library.
17956 postdep_objects=$lt_postdep_objects_RC
17957
17958 # Dependencies to place before the objects being linked to create a
17959 # shared library.
17960 predeps=$lt_predeps_RC
17961
17962 # Dependencies to place after the objects being linked to create a
17963 # shared library.
17964 postdeps=$lt_postdeps_RC
17965
17966 # The library search path used internally by the compiler when linking
17967 # a shared library.
17968 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17969
17970 # Method to check whether dependent libraries are shared objects.
17971 deplibs_check_method=$lt_deplibs_check_method
17972
17973 # Command to use when deplibs_check_method == file_magic.
17974 file_magic_cmd=$lt_file_magic_cmd
17975
17976 # Flag that allows shared libraries with undefined symbols to be built.
17977 allow_undefined_flag=$lt_allow_undefined_flag_RC
17978
17979 # Flag that forces no undefined symbols.
17980 no_undefined_flag=$lt_no_undefined_flag_RC
17981
17982 # Commands used to finish a libtool library installation in a directory.
17983 finish_cmds=$lt_finish_cmds
17984
17985 # Same as above, but a single script fragment to be evaled but not shown.
17986 finish_eval=$lt_finish_eval
17987
17988 # Take the output of nm and produce a listing of raw symbols and C names.
17989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17990
17991 # Transform the output of nm in a proper C declaration
17992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17993
17994 # Transform the output of nm in a C name address pair
17995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17996
17997 # This is the shared library runtime path variable.
17998 runpath_var=$runpath_var
17999
18000 # This is the shared library path variable.
18001 shlibpath_var=$shlibpath_var
18002
18003 # Is shlibpath searched before the hard-coded library search path?
18004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18005
18006 # How to hardcode a shared library path into an executable.
18007 hardcode_action=$hardcode_action_RC
18008
18009 # Whether we should hardcode library paths into libraries.
18010 hardcode_into_libs=$hardcode_into_libs
18011
18012 # Flag to hardcode \$libdir into a binary during linking.
18013 # This must work even if \$libdir does not exist.
18014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18015
18016 # If ld is used when linking, flag to hardcode \$libdir into
18017 # a binary during linking. This must work even if \$libdir does
18018 # not exist.
18019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18020
18021 # Whether we need a single -rpath flag with a separated argument.
18022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18023
18024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18025 # resulting binary.
18026 hardcode_direct=$hardcode_direct_RC
18027
18028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18029 # resulting binary.
18030 hardcode_minus_L=$hardcode_minus_L_RC
18031
18032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18033 # the resulting binary.
18034 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18035
18036 # Set to yes if building a shared library automatically hardcodes DIR into the library
18037 # and all subsequent libraries and executables linked against it.
18038 hardcode_automatic=$hardcode_automatic_RC
18039
18040 # Variables whose values should be saved in libtool wrapper scripts and
18041 # restored at relink time.
18042 variables_saved_for_relink="$variables_saved_for_relink"
18043
18044 # Whether libtool must link a program against all its dependency libraries.
18045 link_all_deplibs=$link_all_deplibs_RC
18046
18047 # Compile-time system search path for libraries
18048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18049
18050 # Run-time system search path for libraries
18051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18052
18053 # Fix the shell variable \$srcfile for the compiler.
18054 fix_srcfile_path="$fix_srcfile_path_RC"
18055
18056 # Set to yes if exported symbols are required.
18057 always_export_symbols=$always_export_symbols_RC
18058
18059 # The commands to list exported symbols.
18060 export_symbols_cmds=$lt_export_symbols_cmds_RC
18061
18062 # The commands to extract the exported symbol list from a shared archive.
18063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18064
18065 # Symbols that should not be listed in the preloaded symbols.
18066 exclude_expsyms=$lt_exclude_expsyms_RC
18067
18068 # Symbols that must always be exported.
18069 include_expsyms=$lt_include_expsyms_RC
18070
18071 # ### END LIBTOOL TAG CONFIG: $tagname
18072
18073 __EOF__
18074
18075
18076 else
18077   # If there is no Makefile yet, we rely on a make rule to execute
18078   # `config.status --recheck' to rerun these tests and create the
18079   # libtool script then.
18080   test -f Makefile && make "$ltmain"
18081 fi
18082
18083
18084 ac_ext=c
18085 ac_cpp='$CPP $CPPFLAGS'
18086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18089
18090 CC="$lt_save_CC"
18091
18092         ;;
18093
18094       *)
18095         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18096 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18097    { (exit 1); exit 1; }; }
18098         ;;
18099       esac
18100
18101       # Append the new tag name to the list of available tags.
18102       if test -n "$tagname" ; then
18103       available_tags="$available_tags $tagname"
18104     fi
18105     fi
18106   done
18107   IFS="$lt_save_ifs"
18108
18109   # Now substitute the updated list of available tags.
18110   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18111     mv "${ofile}T" "$ofile"
18112     chmod +x "$ofile"
18113   else
18114     rm -f "${ofile}T"
18115     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18116 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18117    { (exit 1); exit 1; }; }
18118   fi
18119 fi
18120
18121
18122
18123 # This can be used to rebuild libtool when needed
18124 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18125
18126 # Always use our own libtool.
18127 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18128
18129 # Prevent multiple expansion
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150 echo "$as_me:$LINENO: checking for shared library suffix" >&5
18151 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
18152 eval "SHLIBEXT=$shrext"
18153 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
18154 echo "${ECHO_T}$SHLIBEXT" >&6
18155 SHLIBEXT=$SHLIBEXT
18156
18157
18158 cat >>confdefs.h <<_ACEOF
18159 #define SHLIBEXT "$SHLIBEXT"
18160 _ACEOF
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172 # Check whether --with-llvmsrc or --without-llvmsrc was given.
18173 if test "${with_llvmsrc+set}" = set; then
18174   withval="$with_llvmsrc"
18175   LLVM_SRC=$withval
18176
18177 else
18178   LLVM_SRC=`cd ${srcdir}/../..; pwd`
18179
18180 fi;
18181
18182
18183 # Check whether --with-llvmobj or --without-llvmobj was given.
18184 if test "${with_llvmobj+set}" = set; then
18185   withval="$with_llvmobj"
18186   LLVM_OBJ=$withval
18187
18188 else
18189   LLVM_OBJ=`cd ../..; pwd`
18190
18191 fi;
18192
18193           ac_config_files="$ac_config_files Makefile.common"
18194 cat >confcache <<\_ACEOF
18195 # This file is a shell script that caches the results of configure
18196 # tests run on this system so they can be shared between configure
18197 # scripts and configure runs, see configure's option --config-cache.
18198 # It is not useful on other systems.  If it contains results you don't
18199 # want to keep, you may remove or edit it.
18200 #
18201 # config.status only pays attention to the cache file if you give it
18202 # the --recheck option to rerun configure.
18203 #
18204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18206 # following values.
18207
18208 _ACEOF
18209
18210 # The following way of writing the cache mishandles newlines in values,
18211 # but we know of no workaround that is simple, portable, and efficient.
18212 # So, don't put newlines in cache variables' values.
18213 # Ultrix sh set writes to stderr and can't be redirected directly,
18214 # and sets the high bit in the cache file unless we assign to the vars.
18215 {
18216   (set) 2>&1 |
18217     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18218     *ac_space=\ *)
18219       # `set' does not quote correctly, so add quotes (double-quote
18220       # substitution turns \\\\ into \\, and sed turns \\ into \).
18221       sed -n \
18222         "s/'/'\\\\''/g;
18223           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18224       ;;
18225     *)
18226       # `set' quotes correctly as required by POSIX, so do not add quotes.
18227       sed -n \
18228         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18229       ;;
18230     esac;
18231 } |
18232   sed '
18233      t clear
18234      : clear
18235      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18236      t end
18237      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18238      : end' >>confcache
18239 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18240   if test -w $cache_file; then
18241     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18242     cat confcache >$cache_file
18243   else
18244     echo "not updating unwritable cache $cache_file"
18245   fi
18246 fi
18247 rm -f confcache
18248
18249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18250 # Let make expand exec_prefix.
18251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18252
18253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18255 # trailing colons and then remove the whole line if VPATH becomes empty
18256 # (actually we leave an empty line to preserve line numbers).
18257 if test "x$srcdir" = x.; then
18258   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18259 s/:*\$(srcdir):*/:/;
18260 s/:*\${srcdir}:*/:/;
18261 s/:*@srcdir@:*/:/;
18262 s/^\([^=]*=[     ]*\):*/\1/;
18263 s/:*$//;
18264 s/^[^=]*=[       ]*$//;
18265 }'
18266 fi
18267
18268 # Transform confdefs.h into DEFS.
18269 # Protect against shell expansion while executing Makefile rules.
18270 # Protect against Makefile macro expansion.
18271 #
18272 # If the first sed substitution is executed (which looks for macros that
18273 # take arguments), then we branch to the quote section.  Otherwise,
18274 # look for a macro that doesn't take arguments.
18275 cat >confdef2opt.sed <<\_ACEOF
18276 t clear
18277 : clear
18278 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
18279 t quote
18280 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
18281 t quote
18282 d
18283 : quote
18284 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
18285 s,\[,\\&,g
18286 s,\],\\&,g
18287 s,\$,$$,g
18288 p
18289 _ACEOF
18290 # We use echo to avoid assuming a particular line-breaking character.
18291 # The extra dot is to prevent the shell from consuming trailing
18292 # line-breaks from the sub-command output.  A line-break within
18293 # single-quotes doesn't work because, if this script is created in a
18294 # platform that uses two characters for line-breaks (e.g., DOS), tr
18295 # would break.
18296 ac_LF_and_DOT=`echo; echo .`
18297 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18298 rm -f confdef2opt.sed
18299
18300
18301 ac_libobjs=
18302 ac_ltlibobjs=
18303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18304   # 1. Remove the extension, and $U if already installed.
18305   ac_i=`echo "$ac_i" |
18306          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18307   # 2. Add them.
18308   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18309   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18310 done
18311 LIBOBJS=$ac_libobjs
18312
18313 LTLIBOBJS=$ac_ltlibobjs
18314
18315
18316
18317 : ${CONFIG_STATUS=./config.status}
18318 ac_clean_files_save=$ac_clean_files
18319 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18320 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18321 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18322 cat >$CONFIG_STATUS <<_ACEOF
18323 #! $SHELL
18324 # Generated by $as_me.
18325 # Run this file to recreate the current configuration.
18326 # Compiler output produced by configure, useful for debugging
18327 # configure, is in config.log if it exists.
18328
18329 debug=false
18330 ac_cs_recheck=false
18331 ac_cs_silent=false
18332 SHELL=\${CONFIG_SHELL-$SHELL}
18333 _ACEOF
18334
18335 cat >>$CONFIG_STATUS <<\_ACEOF
18336 ## --------------------- ##
18337 ## M4sh Initialization.  ##
18338 ## --------------------- ##
18339
18340 # Be Bourne compatible
18341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18342   emulate sh
18343   NULLCMD=:
18344   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18345   # is contrary to our usage.  Disable this feature.
18346   alias -g '${1+"$@"}'='"$@"'
18347 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18348   set -o posix
18349 fi
18350 DUALCASE=1; export DUALCASE # for MKS sh
18351
18352 # Support unset when possible.
18353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18354   as_unset=unset
18355 else
18356   as_unset=false
18357 fi
18358
18359
18360 # Work around bugs in pre-3.0 UWIN ksh.
18361 $as_unset ENV MAIL MAILPATH
18362 PS1='$ '
18363 PS2='> '
18364 PS4='+ '
18365
18366 # NLS nuisances.
18367 for as_var in \
18368   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18369   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18370   LC_TELEPHONE LC_TIME
18371 do
18372   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18373     eval $as_var=C; export $as_var
18374   else
18375     $as_unset $as_var
18376   fi
18377 done
18378
18379 # Required to use basename.
18380 if expr a : '\(a\)' >/dev/null 2>&1; then
18381   as_expr=expr
18382 else
18383   as_expr=false
18384 fi
18385
18386 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18387   as_basename=basename
18388 else
18389   as_basename=false
18390 fi
18391
18392
18393 # Name of the executable.
18394 as_me=`$as_basename "$0" ||
18395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18396          X"$0" : 'X\(//\)$' \| \
18397          X"$0" : 'X\(/\)$' \| \
18398          .     : '\(.\)' 2>/dev/null ||
18399 echo X/"$0" |
18400     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18401           /^X\/\(\/\/\)$/{ s//\1/; q; }
18402           /^X\/\(\/\).*/{ s//\1/; q; }
18403           s/.*/./; q'`
18404
18405
18406 # PATH needs CR, and LINENO needs CR and PATH.
18407 # Avoid depending upon Character Ranges.
18408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18411 as_cr_digits='0123456789'
18412 as_cr_alnum=$as_cr_Letters$as_cr_digits
18413
18414 # The user is always right.
18415 if test "${PATH_SEPARATOR+set}" != set; then
18416   echo "#! /bin/sh" >conf$$.sh
18417   echo  "exit 0"   >>conf$$.sh
18418   chmod +x conf$$.sh
18419   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18420     PATH_SEPARATOR=';'
18421   else
18422     PATH_SEPARATOR=:
18423   fi
18424   rm -f conf$$.sh
18425 fi
18426
18427
18428   as_lineno_1=$LINENO
18429   as_lineno_2=$LINENO
18430   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18431   test "x$as_lineno_1" != "x$as_lineno_2" &&
18432   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18433   # Find who we are.  Look in the path if we contain no path at all
18434   # relative or not.
18435   case $0 in
18436     *[\\/]* ) as_myself=$0 ;;
18437     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438 for as_dir in $PATH
18439 do
18440   IFS=$as_save_IFS
18441   test -z "$as_dir" && as_dir=.
18442   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18443 done
18444
18445        ;;
18446   esac
18447   # We did not find ourselves, most probably we were run as `sh COMMAND'
18448   # in which case we are not to be found in the path.
18449   if test "x$as_myself" = x; then
18450     as_myself=$0
18451   fi
18452   if test ! -f "$as_myself"; then
18453     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18454 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18455    { (exit 1); exit 1; }; }
18456   fi
18457   case $CONFIG_SHELL in
18458   '')
18459     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18460 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18461 do
18462   IFS=$as_save_IFS
18463   test -z "$as_dir" && as_dir=.
18464   for as_base in sh bash ksh sh5; do
18465          case $as_dir in
18466          /*)
18467            if ("$as_dir/$as_base" -c '
18468   as_lineno_1=$LINENO
18469   as_lineno_2=$LINENO
18470   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18471   test "x$as_lineno_1" != "x$as_lineno_2" &&
18472   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18473              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18474              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18475              CONFIG_SHELL=$as_dir/$as_base
18476              export CONFIG_SHELL
18477              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18478            fi;;
18479          esac
18480        done
18481 done
18482 ;;
18483   esac
18484
18485   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18486   # uniformly replaced by the line number.  The first 'sed' inserts a
18487   # line-number line before each line; the second 'sed' does the real
18488   # work.  The second script uses 'N' to pair each line-number line
18489   # with the numbered line, and appends trailing '-' during
18490   # substitution so that $LINENO is not a special case at line end.
18491   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18492   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18493   sed '=' <$as_myself |
18494     sed '
18495       N
18496       s,$,-,
18497       : loop
18498       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18499       t loop
18500       s,-$,,
18501       s,^['$as_cr_digits']*\n,,
18502     ' >$as_me.lineno &&
18503   chmod +x $as_me.lineno ||
18504     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18505 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18506    { (exit 1); exit 1; }; }
18507
18508   # Don't try to exec as it changes $[0], causing all sort of problems
18509   # (the dirname of $[0] is not the place where we might find the
18510   # original and so on.  Autoconf is especially sensible to this).
18511   . ./$as_me.lineno
18512   # Exit status is that of the last command.
18513   exit
18514 }
18515
18516
18517 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18518   *c*,-n*) ECHO_N= ECHO_C='
18519 ' ECHO_T='      ' ;;
18520   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18521   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18522 esac
18523
18524 if expr a : '\(a\)' >/dev/null 2>&1; then
18525   as_expr=expr
18526 else
18527   as_expr=false
18528 fi
18529
18530 rm -f conf$$ conf$$.exe conf$$.file
18531 echo >conf$$.file
18532 if ln -s conf$$.file conf$$ 2>/dev/null; then
18533   # We could just check for DJGPP; but this test a) works b) is more generic
18534   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18535   if test -f conf$$.exe; then
18536     # Don't use ln at all; we don't have any links
18537     as_ln_s='cp -p'
18538   else
18539     as_ln_s='ln -s'
18540   fi
18541 elif ln conf$$.file conf$$ 2>/dev/null; then
18542   as_ln_s=ln
18543 else
18544   as_ln_s='cp -p'
18545 fi
18546 rm -f conf$$ conf$$.exe conf$$.file
18547
18548 if mkdir -p . 2>/dev/null; then
18549   as_mkdir_p=:
18550 else
18551   test -d ./-p && rmdir ./-p
18552   as_mkdir_p=false
18553 fi
18554
18555 as_executable_p="test -f"
18556
18557 # Sed expression to map a string onto a valid CPP name.
18558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18559
18560 # Sed expression to map a string onto a valid variable name.
18561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18562
18563
18564 # IFS
18565 # We need space, tab and new line, in precisely that order.
18566 as_nl='
18567 '
18568 IFS="   $as_nl"
18569
18570 # CDPATH.
18571 $as_unset CDPATH
18572
18573 exec 6>&1
18574
18575 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18576 # report actual input values of CONFIG_FILES etc. instead of their
18577 # values after options handling.  Logging --version etc. is OK.
18578 exec 5>>config.log
18579 {
18580   echo
18581   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18582 ## Running $as_me. ##
18583 _ASBOX
18584 } >&5
18585 cat >&5 <<_CSEOF
18586
18587 This file was extended by [Stacker] $as_me [1.0], which was
18588 generated by GNU Autoconf 2.59.  Invocation command line was
18589
18590   CONFIG_FILES    = $CONFIG_FILES
18591   CONFIG_HEADERS  = $CONFIG_HEADERS
18592   CONFIG_LINKS    = $CONFIG_LINKS
18593   CONFIG_COMMANDS = $CONFIG_COMMANDS
18594   $ $0 $@
18595
18596 _CSEOF
18597 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18598 echo >&5
18599 _ACEOF
18600
18601 # Files that config.status was made for.
18602 if test -n "$ac_config_files"; then
18603   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18604 fi
18605
18606 if test -n "$ac_config_headers"; then
18607   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18608 fi
18609
18610 if test -n "$ac_config_links"; then
18611   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18612 fi
18613
18614 if test -n "$ac_config_commands"; then
18615   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18616 fi
18617
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619
18620 ac_cs_usage="\
18621 \`$as_me' instantiates files from templates according to the
18622 current configuration.
18623
18624 Usage: $0 [OPTIONS] [FILE]...
18625
18626   -h, --help       print this help, then exit
18627   -V, --version    print version number, then exit
18628   -q, --quiet      do not print progress messages
18629   -d, --debug      don't remove temporary files
18630       --recheck    update $as_me by reconfiguring in the same conditions
18631   --file=FILE[:TEMPLATE]
18632                    instantiate the configuration file FILE
18633
18634 Configuration files:
18635 $config_files
18636
18637 Configuration commands:
18638 $config_commands
18639
18640 Report bugs to <bug-autoconf@gnu.org>."
18641 _ACEOF
18642
18643 cat >>$CONFIG_STATUS <<_ACEOF
18644 ac_cs_version="\\
18645 [Stacker] config.status [1.0]
18646 configured by $0, generated by GNU Autoconf 2.59,
18647   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18648
18649 Copyright (C) 2003 Free Software Foundation, Inc.
18650 This config.status script is free software; the Free Software Foundation
18651 gives unlimited permission to copy, distribute and modify it."
18652 srcdir=$srcdir
18653 _ACEOF
18654
18655 cat >>$CONFIG_STATUS <<\_ACEOF
18656 # If no file are specified by the user, then we need to provide default
18657 # value.  By we need to know if files were specified by the user.
18658 ac_need_defaults=:
18659 while test $# != 0
18660 do
18661   case $1 in
18662   --*=*)
18663     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18664     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18665     ac_shift=:
18666     ;;
18667   -*)
18668     ac_option=$1
18669     ac_optarg=$2
18670     ac_shift=shift
18671     ;;
18672   *) # This is not an option, so the user has probably given explicit
18673      # arguments.
18674      ac_option=$1
18675      ac_need_defaults=false;;
18676   esac
18677
18678   case $ac_option in
18679   # Handling of the options.
18680 _ACEOF
18681 cat >>$CONFIG_STATUS <<\_ACEOF
18682   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18683     ac_cs_recheck=: ;;
18684   --version | --vers* | -V )
18685     echo "$ac_cs_version"; exit 0 ;;
18686   --he | --h)
18687     # Conflict between --help and --header
18688     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18689 Try \`$0 --help' for more information." >&5
18690 echo "$as_me: error: ambiguous option: $1
18691 Try \`$0 --help' for more information." >&2;}
18692    { (exit 1); exit 1; }; };;
18693   --help | --hel | -h )
18694     echo "$ac_cs_usage"; exit 0 ;;
18695   --debug | --d* | -d )
18696     debug=: ;;
18697   --file | --fil | --fi | --f )
18698     $ac_shift
18699     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18700     ac_need_defaults=false;;
18701   --header | --heade | --head | --hea )
18702     $ac_shift
18703     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18704     ac_need_defaults=false;;
18705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18706   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18707     ac_cs_silent=: ;;
18708
18709   # This is an error.
18710   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18711 Try \`$0 --help' for more information." >&5
18712 echo "$as_me: error: unrecognized option: $1
18713 Try \`$0 --help' for more information." >&2;}
18714    { (exit 1); exit 1; }; } ;;
18715
18716   *) ac_config_targets="$ac_config_targets $1" ;;
18717
18718   esac
18719   shift
18720 done
18721
18722 ac_configure_extra_args=
18723
18724 if $ac_cs_silent; then
18725   exec 6>/dev/null
18726   ac_configure_extra_args="$ac_configure_extra_args --silent"
18727 fi
18728
18729 _ACEOF
18730 cat >>$CONFIG_STATUS <<_ACEOF
18731 if \$ac_cs_recheck; then
18732   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18733   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18734 fi
18735
18736 _ACEOF
18737
18738 cat >>$CONFIG_STATUS <<_ACEOF
18739 #
18740 # INIT-COMMANDS section.
18741 #
18742
18743 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
18744 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
18745 ${srcdir}/autoconf/mkinstalldirs `dirname lib/compiler/Makefile`
18746 ${srcdir}/autoconf/mkinstalldirs `dirname lib/runtime/Makefile`
18747 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
18748 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
18749 ${srcdir}/autoconf/mkinstalldirs `dirname tools/stkrc/Makefile`
18750
18751 _ACEOF
18752
18753
18754
18755 cat >>$CONFIG_STATUS <<\_ACEOF
18756 for ac_config_target in $ac_config_targets
18757 do
18758   case "$ac_config_target" in
18759   # Handling of arguments.
18760   "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18761   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18762   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18763   "lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/compiler/Makefile" ;;
18764   "lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/runtime/Makefile" ;;
18765   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18766   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18767   "tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/stkrc/Makefile" ;;
18768   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18770    { (exit 1); exit 1; }; };;
18771   esac
18772 done
18773
18774 # If the user did not use the arguments to specify the items to instantiate,
18775 # then the envvar interface is used.  Set only those that are not.
18776 # We use the long form for the default assignment because of an extremely
18777 # bizarre bug on SunOS 4.1.3.
18778 if $ac_need_defaults; then
18779   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18780   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18781 fi
18782
18783 # Have a temporary directory for convenience.  Make it in the build tree
18784 # simply because there is no reason to put it here, and in addition,
18785 # creating and moving files from /tmp can sometimes cause problems.
18786 # Create a temporary directory, and hook for its removal unless debugging.
18787 $debug ||
18788 {
18789   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18790   trap '{ (exit 1); exit 1; }' 1 2 13 15
18791 }
18792
18793 # Create a (secure) tmp directory for tmp files.
18794
18795 {
18796   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18797   test -n "$tmp" && test -d "$tmp"
18798 }  ||
18799 {
18800   tmp=./confstat$$-$RANDOM
18801   (umask 077 && mkdir $tmp)
18802 } ||
18803 {
18804    echo "$me: cannot create a temporary directory in ." >&2
18805    { (exit 1); exit 1; }
18806 }
18807
18808 _ACEOF
18809
18810 cat >>$CONFIG_STATUS <<_ACEOF
18811
18812 #
18813 # CONFIG_FILES section.
18814 #
18815
18816 # No need to generate the scripts if there are no CONFIG_FILES.
18817 # This happens for instance when ./config.status config.h
18818 if test -n "\$CONFIG_FILES"; then
18819   # Protect against being on the right side of a sed subst in config.status.
18820   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18821    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18822 s,@SHELL@,$SHELL,;t t
18823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18829 s,@exec_prefix@,$exec_prefix,;t t
18830 s,@prefix@,$prefix,;t t
18831 s,@program_transform_name@,$program_transform_name,;t t
18832 s,@bindir@,$bindir,;t t
18833 s,@sbindir@,$sbindir,;t t
18834 s,@libexecdir@,$libexecdir,;t t
18835 s,@datadir@,$datadir,;t t
18836 s,@sysconfdir@,$sysconfdir,;t t
18837 s,@sharedstatedir@,$sharedstatedir,;t t
18838 s,@localstatedir@,$localstatedir,;t t
18839 s,@libdir@,$libdir,;t t
18840 s,@includedir@,$includedir,;t t
18841 s,@oldincludedir@,$oldincludedir,;t t
18842 s,@infodir@,$infodir,;t t
18843 s,@mandir@,$mandir,;t t
18844 s,@build_alias@,$build_alias,;t t
18845 s,@host_alias@,$host_alias,;t t
18846 s,@target_alias@,$target_alias,;t t
18847 s,@DEFS@,$DEFS,;t t
18848 s,@ECHO_C@,$ECHO_C,;t t
18849 s,@ECHO_N@,$ECHO_N,;t t
18850 s,@ECHO_T@,$ECHO_T,;t t
18851 s,@LIBS@,$LIBS,;t t
18852 s,@build@,$build,;t t
18853 s,@build_cpu@,$build_cpu,;t t
18854 s,@build_vendor@,$build_vendor,;t t
18855 s,@build_os@,$build_os,;t t
18856 s,@host@,$host,;t t
18857 s,@host_cpu@,$host_cpu,;t t
18858 s,@host_vendor@,$host_vendor,;t t
18859 s,@host_os@,$host_os,;t t
18860 s,@CC@,$CC,;t t
18861 s,@CFLAGS@,$CFLAGS,;t t
18862 s,@LDFLAGS@,$LDFLAGS,;t t
18863 s,@CPPFLAGS@,$CPPFLAGS,;t t
18864 s,@ac_ct_CC@,$ac_ct_CC,;t t
18865 s,@EXEEXT@,$EXEEXT,;t t
18866 s,@OBJEXT@,$OBJEXT,;t t
18867 s,@EGREP@,$EGREP,;t t
18868 s,@LN_S@,$LN_S,;t t
18869 s,@ECHO@,$ECHO,;t t
18870 s,@AR@,$AR,;t t
18871 s,@ac_ct_AR@,$ac_ct_AR,;t t
18872 s,@RANLIB@,$RANLIB,;t t
18873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18874 s,@STRIP@,$STRIP,;t t
18875 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18876 s,@CPP@,$CPP,;t t
18877 s,@CXX@,$CXX,;t t
18878 s,@CXXFLAGS@,$CXXFLAGS,;t t
18879 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18880 s,@CXXCPP@,$CXXCPP,;t t
18881 s,@F77@,$F77,;t t
18882 s,@FFLAGS@,$FFLAGS,;t t
18883 s,@ac_ct_F77@,$ac_ct_F77,;t t
18884 s,@LIBTOOL@,$LIBTOOL,;t t
18885 s,@SHLIBEXT@,$SHLIBEXT,;t t
18886 s,@LLVM_SRC@,$LLVM_SRC,;t t
18887 s,@LLVM_OBJ@,$LLVM_OBJ,;t t
18888 s,@LIBOBJS@,$LIBOBJS,;t t
18889 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18890 CEOF
18891
18892 _ACEOF
18893
18894   cat >>$CONFIG_STATUS <<\_ACEOF
18895   # Split the substitutions into bite-sized pieces for seds with
18896   # small command number limits, like on Digital OSF/1 and HP-UX.
18897   ac_max_sed_lines=48
18898   ac_sed_frag=1 # Number of current file.
18899   ac_beg=1 # First line for current file.
18900   ac_end=$ac_max_sed_lines # Line after last line for current file.
18901   ac_more_lines=:
18902   ac_sed_cmds=
18903   while $ac_more_lines; do
18904     if test $ac_beg -gt 1; then
18905       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18906     else
18907       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18908     fi
18909     if test ! -s $tmp/subs.frag; then
18910       ac_more_lines=false
18911     else
18912       # The purpose of the label and of the branching condition is to
18913       # speed up the sed processing (if there are no `@' at all, there
18914       # is no need to browse any of the substitutions).
18915       # These are the two extra sed commands mentioned above.
18916       (echo ':t
18917   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18918       if test -z "$ac_sed_cmds"; then
18919         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18920       else
18921         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18922       fi
18923       ac_sed_frag=`expr $ac_sed_frag + 1`
18924       ac_beg=$ac_end
18925       ac_end=`expr $ac_end + $ac_max_sed_lines`
18926     fi
18927   done
18928   if test -z "$ac_sed_cmds"; then
18929     ac_sed_cmds=cat
18930   fi
18931 fi # test -n "$CONFIG_FILES"
18932
18933 _ACEOF
18934 cat >>$CONFIG_STATUS <<\_ACEOF
18935 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18936   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18937   case $ac_file in
18938   - | *:- | *:-:* ) # input from stdin
18939         cat >$tmp/stdin
18940         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18941         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18942   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18943         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18944   * )   ac_file_in=$ac_file.in ;;
18945   esac
18946
18947   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18948   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18950          X"$ac_file" : 'X\(//\)[^/]' \| \
18951          X"$ac_file" : 'X\(//\)$' \| \
18952          X"$ac_file" : 'X\(/\)' \| \
18953          .     : '\(.\)' 2>/dev/null ||
18954 echo X"$ac_file" |
18955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18956           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18957           /^X\(\/\/\)$/{ s//\1/; q; }
18958           /^X\(\/\).*/{ s//\1/; q; }
18959           s/.*/./; q'`
18960   { if $as_mkdir_p; then
18961     mkdir -p "$ac_dir"
18962   else
18963     as_dir="$ac_dir"
18964     as_dirs=
18965     while test ! -d "$as_dir"; do
18966       as_dirs="$as_dir $as_dirs"
18967       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18969          X"$as_dir" : 'X\(//\)[^/]' \| \
18970          X"$as_dir" : 'X\(//\)$' \| \
18971          X"$as_dir" : 'X\(/\)' \| \
18972          .     : '\(.\)' 2>/dev/null ||
18973 echo X"$as_dir" |
18974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18976           /^X\(\/\/\)$/{ s//\1/; q; }
18977           /^X\(\/\).*/{ s//\1/; q; }
18978           s/.*/./; q'`
18979     done
18980     test ! -n "$as_dirs" || mkdir $as_dirs
18981   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18982 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18983    { (exit 1); exit 1; }; }; }
18984
18985   ac_builddir=.
18986
18987 if test "$ac_dir" != .; then
18988   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18989   # A "../" for each directory in $ac_dir_suffix.
18990   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18991 else
18992   ac_dir_suffix= ac_top_builddir=
18993 fi
18994
18995 case $srcdir in
18996   .)  # No --srcdir option.  We are building in place.
18997     ac_srcdir=.
18998     if test -z "$ac_top_builddir"; then
18999        ac_top_srcdir=.
19000     else
19001        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19002     fi ;;
19003   [\\/]* | ?:[\\/]* )  # Absolute path.
19004     ac_srcdir=$srcdir$ac_dir_suffix;
19005     ac_top_srcdir=$srcdir ;;
19006   *) # Relative path.
19007     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19008     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19009 esac
19010
19011 # Do not use `cd foo && pwd` to compute absolute paths, because
19012 # the directories may not exist.
19013 case `pwd` in
19014 .) ac_abs_builddir="$ac_dir";;
19015 *)
19016   case "$ac_dir" in
19017   .) ac_abs_builddir=`pwd`;;
19018   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19019   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19020   esac;;
19021 esac
19022 case $ac_abs_builddir in
19023 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19024 *)
19025   case ${ac_top_builddir}. in
19026   .) ac_abs_top_builddir=$ac_abs_builddir;;
19027   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19028   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19029   esac;;
19030 esac
19031 case $ac_abs_builddir in
19032 .) ac_abs_srcdir=$ac_srcdir;;
19033 *)
19034   case $ac_srcdir in
19035   .) ac_abs_srcdir=$ac_abs_builddir;;
19036   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19037   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19038   esac;;
19039 esac
19040 case $ac_abs_builddir in
19041 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19042 *)
19043   case $ac_top_srcdir in
19044   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19045   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19046   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19047   esac;;
19048 esac
19049
19050
19051
19052   if test x"$ac_file" != x-; then
19053     { echo "$as_me:$LINENO: creating $ac_file" >&5
19054 echo "$as_me: creating $ac_file" >&6;}
19055     rm -f "$ac_file"
19056   fi
19057   # Let's still pretend it is `configure' which instantiates (i.e., don't
19058   # use $as_me), people would be surprised to read:
19059   #    /* config.h.  Generated by config.status.  */
19060   if test x"$ac_file" = x-; then
19061     configure_input=
19062   else
19063     configure_input="$ac_file.  "
19064   fi
19065   configure_input=$configure_input"Generated from `echo $ac_file_in |
19066                                      sed 's,.*/,,'` by configure."
19067
19068   # First look for the input files in the build tree, otherwise in the
19069   # src tree.
19070   ac_file_inputs=`IFS=:
19071     for f in $ac_file_in; do
19072       case $f in
19073       -) echo $tmp/stdin ;;
19074       [\\/$]*)
19075          # Absolute (can't be DOS-style, as IFS=:)
19076          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19077 echo "$as_me: error: cannot find input file: $f" >&2;}
19078    { (exit 1); exit 1; }; }
19079          echo "$f";;
19080       *) # Relative
19081          if test -f "$f"; then
19082            # Build tree
19083            echo "$f"
19084          elif test -f "$srcdir/$f"; then
19085            # Source tree
19086            echo "$srcdir/$f"
19087          else
19088            # /dev/null tree
19089            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19090 echo "$as_me: error: cannot find input file: $f" >&2;}
19091    { (exit 1); exit 1; }; }
19092          fi;;
19093       esac
19094     done` || { (exit 1); exit 1; }
19095 _ACEOF
19096 cat >>$CONFIG_STATUS <<_ACEOF
19097   sed "$ac_vpsub
19098 $extrasub
19099 _ACEOF
19100 cat >>$CONFIG_STATUS <<\_ACEOF
19101 :t
19102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19103 s,@configure_input@,$configure_input,;t t
19104 s,@srcdir@,$ac_srcdir,;t t
19105 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19106 s,@top_srcdir@,$ac_top_srcdir,;t t
19107 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19108 s,@builddir@,$ac_builddir,;t t
19109 s,@abs_builddir@,$ac_abs_builddir,;t t
19110 s,@top_builddir@,$ac_top_builddir,;t t
19111 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19112 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19113   rm -f $tmp/stdin
19114   if test x"$ac_file" != x-; then
19115     mv $tmp/out $ac_file
19116   else
19117     cat $tmp/out
19118     rm -f $tmp/out
19119   fi
19120
19121 done
19122 _ACEOF
19123 cat >>$CONFIG_STATUS <<\_ACEOF
19124
19125 #
19126 # CONFIG_COMMANDS section.
19127 #
19128 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19129   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19130   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19131   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19132 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19133          X"$ac_dest" : 'X\(//\)[^/]' \| \
19134          X"$ac_dest" : 'X\(//\)$' \| \
19135          X"$ac_dest" : 'X\(/\)' \| \
19136          .     : '\(.\)' 2>/dev/null ||
19137 echo X"$ac_dest" |
19138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19140           /^X\(\/\/\)$/{ s//\1/; q; }
19141           /^X\(\/\).*/{ s//\1/; q; }
19142           s/.*/./; q'`
19143   { if $as_mkdir_p; then
19144     mkdir -p "$ac_dir"
19145   else
19146     as_dir="$ac_dir"
19147     as_dirs=
19148     while test ! -d "$as_dir"; do
19149       as_dirs="$as_dir $as_dirs"
19150       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19152          X"$as_dir" : 'X\(//\)[^/]' \| \
19153          X"$as_dir" : 'X\(//\)$' \| \
19154          X"$as_dir" : 'X\(/\)' \| \
19155          .     : '\(.\)' 2>/dev/null ||
19156 echo X"$as_dir" |
19157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19159           /^X\(\/\/\)$/{ s//\1/; q; }
19160           /^X\(\/\).*/{ s//\1/; q; }
19161           s/.*/./; q'`
19162     done
19163     test ! -n "$as_dirs" || mkdir $as_dirs
19164   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19166    { (exit 1); exit 1; }; }; }
19167
19168   ac_builddir=.
19169
19170 if test "$ac_dir" != .; then
19171   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19172   # A "../" for each directory in $ac_dir_suffix.
19173   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19174 else
19175   ac_dir_suffix= ac_top_builddir=
19176 fi
19177
19178 case $srcdir in
19179   .)  # No --srcdir option.  We are building in place.
19180     ac_srcdir=.
19181     if test -z "$ac_top_builddir"; then
19182        ac_top_srcdir=.
19183     else
19184        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19185     fi ;;
19186   [\\/]* | ?:[\\/]* )  # Absolute path.
19187     ac_srcdir=$srcdir$ac_dir_suffix;
19188     ac_top_srcdir=$srcdir ;;
19189   *) # Relative path.
19190     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19191     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19192 esac
19193
19194 # Do not use `cd foo && pwd` to compute absolute paths, because
19195 # the directories may not exist.
19196 case `pwd` in
19197 .) ac_abs_builddir="$ac_dir";;
19198 *)
19199   case "$ac_dir" in
19200   .) ac_abs_builddir=`pwd`;;
19201   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19202   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19203   esac;;
19204 esac
19205 case $ac_abs_builddir in
19206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19207 *)
19208   case ${ac_top_builddir}. in
19209   .) ac_abs_top_builddir=$ac_abs_builddir;;
19210   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19211   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19212   esac;;
19213 esac
19214 case $ac_abs_builddir in
19215 .) ac_abs_srcdir=$ac_srcdir;;
19216 *)
19217   case $ac_srcdir in
19218   .) ac_abs_srcdir=$ac_abs_builddir;;
19219   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19220   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19221   esac;;
19222 esac
19223 case $ac_abs_builddir in
19224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19225 *)
19226   case $ac_top_srcdir in
19227   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19228   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19229   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19230   esac;;
19231 esac
19232
19233
19234   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19235 echo "$as_me: executing $ac_dest commands" >&6;}
19236   case $ac_dest in
19237     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
19238     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
19239     lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/compiler/Makefile lib/compiler/Makefile ;;
19240     lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/runtime/Makefile lib/runtime/Makefile ;;
19241     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
19242     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
19243     tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/stkrc/Makefile tools/stkrc/Makefile ;;
19244   esac
19245 done
19246 _ACEOF
19247
19248 cat >>$CONFIG_STATUS <<\_ACEOF
19249
19250 { (exit 0); exit 0; }
19251 _ACEOF
19252 chmod +x $CONFIG_STATUS
19253 ac_clean_files=$ac_clean_files_save
19254
19255
19256 # configure is writing to config.log, and then calls config.status.
19257 # config.status does its own redirection, appending to config.log.
19258 # Unfortunately, on DOS this fails, as config.log is still kept open
19259 # by configure, so config.status won't be able to write to it; its
19260 # output is simply discarded.  So we exec the FD to /dev/null,
19261 # effectively closing config.log, so it can be properly (re)opened and
19262 # appended to by config.status.  When coming back to configure, we
19263 # need to make the FD available again.
19264 if test "$no_create" != yes; then
19265   ac_cs_success=:
19266   ac_config_status_args=
19267   test "$silent" = yes &&
19268     ac_config_status_args="$ac_config_status_args --quiet"
19269   exec 5>/dev/null
19270   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19271   exec 5>>config.log
19272   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19273   # would make configure fail if this is the last instruction.
19274   $ac_cs_success || { (exit 1); exit 1; }
19275 fi
19276