OSDN Git Service

2009-07-17 Kai Tietz <kai.tietz@onevision.com>
[pf3gnuchains/gcc-fork.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
927
928 #
929 # Report the --help message.
930 #
931 if test "$ac_init_help" = "long"; then
932   # Omit some internal or obsolete options to make the list less imposing.
933   # This message is too long to be a string in the A/UX 3.1 sh.
934   cat <<_ACEOF
935 \`configure' configures this package to adapt to many kinds of systems.
936
937 Usage: $0 [OPTION]... [VAR=VALUE]...
938
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE.  See below for descriptions of some of the useful variables.
941
942 Defaults for the options are specified in brackets.
943
944 Configuration:
945   -h, --help              display this help and exit
946       --help=short        display options specific to this package
947       --help=recursive    display the short help of all the included packages
948   -V, --version           display version information and exit
949   -q, --quiet, --silent   do not print \`checking...' messages
950       --cache-file=FILE   cache test results in FILE [disabled]
951   -C, --config-cache      alias for \`--cache-file=config.cache'
952   -n, --no-create         do not create output files
953       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
954
955 _ACEOF
956
957   cat <<_ACEOF
958 Installation directories:
959   --prefix=PREFIX         install architecture-independent files in PREFIX
960                           [$ac_default_prefix]
961   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
962                           [PREFIX]
963
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
968
969 For better control, use the options below.
970
971 Fine tuning of the installation directories:
972   --bindir=DIR           user executables [EPREFIX/bin]
973   --sbindir=DIR          system admin executables [EPREFIX/sbin]
974   --libexecdir=DIR       program executables [EPREFIX/libexec]
975   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
976   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
977   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
978   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
979   --libdir=DIR           object code libraries [EPREFIX/lib]
980   --includedir=DIR       C header files [PREFIX/include]
981   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
982   --infodir=DIR          info documentation [PREFIX/info]
983   --mandir=DIR           man documentation [PREFIX/man]
984 _ACEOF
985
986   cat <<\_ACEOF
987
988 Program names:
989   --program-prefix=PREFIX            prepend PREFIX to installed program names
990   --program-suffix=SUFFIX            append SUFFIX to installed program names
991   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
992
993 System types:
994   --build=BUILD     configure for building on BUILD [guessed]
995   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
996   --target=TARGET   configure for building compilers for TARGET [HOST]
997 _ACEOF
998 fi
999
1000 if test -n "$ac_init_help"; then
1001
1002   cat <<\_ACEOF
1003
1004 Optional Features:
1005   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1006   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1007   --enable-multilib       build many library versions (default)
1008   --disable-dependency-tracking  speeds up one-time build
1009   --enable-dependency-tracking   do not reject slow dependency extractors
1010   --enable-maintainer-mode  enable make rules and dependencies not useful
1011                           (and sometimes confusing) to the casual installer
1012   --enable-shared[=PKGS]
1013                           build shared libraries [default=yes]
1014   --enable-static[=PKGS]
1015                           build static libraries [default=yes]
1016   --enable-fast-install[=PKGS]
1017                           optimize for fast installation [default=yes]
1018   --disable-libtool-lock  avoid locking (might break parallel builds)
1019   --enable-parallel-mark        parallelize marking and free list construction
1020   --enable-gc-debug     include full support for pointer backtracing etc.
1021
1022 Optional Packages:
1023   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025   --with-pic              try to use only PIC/non-PIC objects [default=use
1026                           both]
1027   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1028   --with-target-subdir=SUBDIR
1029                           configuring with a cross compiler
1030   --with-cross-host=HOST  configuring with a cross compiler
1031   --with-ecos             enable runtime eCos target support
1032
1033 Some influential environment variables:
1034   CC          C compiler command
1035   CFLAGS      C compiler flags
1036   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1037               nonstandard directory <lib dir>
1038   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039               headers in a nonstandard directory <include dir>
1040   CXX         C++ compiler command
1041   CXXFLAGS    C++ compiler flags
1042   CPP         C preprocessor
1043   CXXCPP      C++ preprocessor
1044
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1047
1048 _ACEOF
1049 fi
1050
1051 if test "$ac_init_help" = "recursive"; then
1052   # If there are subdirs, report their specific --help.
1053   ac_popdir=`pwd`
1054   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055     test -d $ac_dir || continue
1056     ac_builddir=.
1057
1058 if test "$ac_dir" != .; then
1059   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060   # A "../" for each directory in $ac_dir_suffix.
1061   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063   ac_dir_suffix= ac_top_builddir=
1064 fi
1065
1066 case $srcdir in
1067   .)  # No --srcdir option.  We are building in place.
1068     ac_srcdir=.
1069     if test -z "$ac_top_builddir"; then
1070        ac_top_srcdir=.
1071     else
1072        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073     fi ;;
1074   [\\/]* | ?:[\\/]* )  # Absolute path.
1075     ac_srcdir=$srcdir$ac_dir_suffix;
1076     ac_top_srcdir=$srcdir ;;
1077   *) # Relative path.
1078     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1081
1082 # Do not use `cd foo && pwd` to compute absolute paths, because
1083 # the directories may not exist.
1084 case `pwd` in
1085 .) ac_abs_builddir="$ac_dir";;
1086 *)
1087   case "$ac_dir" in
1088   .) ac_abs_builddir=`pwd`;;
1089   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091   esac;;
1092 esac
1093 case $ac_abs_builddir in
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *)
1096   case ${ac_top_builddir}. in
1097   .) ac_abs_top_builddir=$ac_abs_builddir;;
1098   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100   esac;;
1101 esac
1102 case $ac_abs_builddir in
1103 .) ac_abs_srcdir=$ac_srcdir;;
1104 *)
1105   case $ac_srcdir in
1106   .) ac_abs_srcdir=$ac_abs_builddir;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *)
1114   case $ac_top_srcdir in
1115   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118   esac;;
1119 esac
1120
1121     cd $ac_dir
1122     # Check for guested configure; otherwise get Cygnus style configure.
1123     if test -f $ac_srcdir/configure.gnu; then
1124       echo
1125       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1126     elif test -f $ac_srcdir/configure; then
1127       echo
1128       $SHELL $ac_srcdir/configure  --help=recursive
1129     elif test -f $ac_srcdir/configure.ac ||
1130            test -f $ac_srcdir/configure.in; then
1131       echo
1132       $ac_configure --help
1133     else
1134       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135     fi
1136     cd $ac_popdir
1137   done
1138 fi
1139
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1142   cat <<\_ACEOF
1143
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1147 _ACEOF
1148   exit 0
1149 fi
1150 exec 5>config.log
1151 cat >&5 <<_ACEOF
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1154
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.59.  Invocation command line was
1157
1158   $ $0 $@
1159
1160 _ACEOF
1161 {
1162 cat <<_ASUNAME
1163 ## --------- ##
1164 ## Platform. ##
1165 ## --------- ##
1166
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1175
1176 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1177 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1180 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1181 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1182 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1183
1184 _ASUNAME
1185
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 for as_dir in $PATH
1188 do
1189   IFS=$as_save_IFS
1190   test -z "$as_dir" && as_dir=.
1191   echo "PATH: $as_dir"
1192 done
1193
1194 } >&5
1195
1196 cat >&5 <<_ACEOF
1197
1198
1199 ## ----------- ##
1200 ## Core tests. ##
1201 ## ----------- ##
1202
1203 _ACEOF
1204
1205
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_configure_args=
1212 ac_configure_args0=
1213 ac_configure_args1=
1214 ac_sep=
1215 ac_must_keep_next=false
1216 for ac_pass in 1 2
1217 do
1218   for ac_arg
1219   do
1220     case $ac_arg in
1221     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223     | -silent | --silent | --silen | --sile | --sil)
1224       continue ;;
1225     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227     esac
1228     case $ac_pass in
1229     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230     2)
1231       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232       if test $ac_must_keep_next = true; then
1233         ac_must_keep_next=false # Got value, back to normal.
1234       else
1235         case $ac_arg in
1236           *=* | --config-cache | -C | -disable-* | --disable-* \
1237           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239           | -with-* | --with-* | -without-* | --without-* | --x)
1240             case "$ac_configure_args0 " in
1241               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242             esac
1243             ;;
1244           -* ) ac_must_keep_next=true ;;
1245         esac
1246       fi
1247       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248       # Get rid of the leading space.
1249       ac_sep=" "
1250       ;;
1251     esac
1252   done
1253 done
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log.  We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263   # Save into config.log some information that might help in debugging.
1264   {
1265     echo
1266
1267     cat <<\_ASBOX
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1271 _ASBOX
1272     echo
1273     # The following way of writing the cache mishandles newlines in values,
1274 {
1275   (set) 2>&1 |
1276     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277     *ac_space=\ *)
1278       sed -n \
1279         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281       ;;
1282     *)
1283       sed -n \
1284         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285       ;;
1286     esac;
1287 }
1288     echo
1289
1290     cat <<\_ASBOX
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1294 _ASBOX
1295     echo
1296     for ac_var in $ac_subst_vars
1297     do
1298       eval ac_val=$`echo $ac_var`
1299       echo "$ac_var='"'"'$ac_val'"'"'"
1300     done | sort
1301     echo
1302
1303     if test -n "$ac_subst_files"; then
1304       cat <<\_ASBOX
1305 ## ------------- ##
1306 ## Output files. ##
1307 ## ------------- ##
1308 _ASBOX
1309       echo
1310       for ac_var in $ac_subst_files
1311       do
1312         eval ac_val=$`echo $ac_var`
1313         echo "$ac_var='"'"'$ac_val'"'"'"
1314       done | sort
1315       echo
1316     fi
1317
1318     if test -s confdefs.h; then
1319       cat <<\_ASBOX
1320 ## ----------- ##
1321 ## confdefs.h. ##
1322 ## ----------- ##
1323 _ASBOX
1324       echo
1325       sed "/^$/d" confdefs.h | sort
1326       echo
1327     fi
1328     test "$ac_signal" != 0 &&
1329       echo "$as_me: caught signal $ac_signal"
1330     echo "$as_me: exit $exit_status"
1331   } >&5
1332   rm -f core *.core &&
1333   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334     exit $exit_status
1335      ' 0
1336 for ac_signal in 1 2 13 15; do
1337   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 done
1339 ac_signal=0
1340
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 echo >confdefs.h
1345
1346 # Predefined preprocessor variables.
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 _ACEOF
1366
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370 _ACEOF
1371
1372
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376   if test "x$prefix" != xNONE; then
1377     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378   else
1379     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380   fi
1381 fi
1382 for ac_site_file in $CONFIG_SITE; do
1383   if test -r "$ac_site_file"; then
1384     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386     sed 's/^/| /' "$ac_site_file" >&5
1387     . "$ac_site_file"
1388   fi
1389 done
1390
1391 if test -r "$cache_file"; then
1392   # Some versions of bash will fail to source /dev/null (special
1393   # files actually), so we avoid doing that.
1394   if test -f "$cache_file"; then
1395     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1397     case $cache_file in
1398       [\\/]* | ?:[\\/]* ) . $cache_file;;
1399       *)                      . ./$cache_file;;
1400     esac
1401   fi
1402 else
1403   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1405   >$cache_file
1406 fi
1407
1408 # Check that the precious variables saved in the cache have kept the same
1409 # value.
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414   eval ac_new_set=\$ac_env_${ac_var}_set
1415   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416   eval ac_new_val="\$ac_env_${ac_var}_value"
1417   case $ac_old_set,$ac_new_set in
1418     set,)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,set)
1423       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425       ac_cache_corrupted=: ;;
1426     ,);;
1427     *)
1428       if test "x$ac_old_val" != "x$ac_new_val"; then
1429         # differences in whitespace do not lead to failure.
1430         ac_old_val_w=`echo x $ac_old_val`
1431         ac_new_val_w=`echo x $ac_new_val`
1432         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1433           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1435           ac_cache_corrupted=:
1436         else
1437           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439           eval $ac_var=\$ac_old_val
1440         fi
1441         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1442 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1443         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1444 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1445       fi;;
1446   esac
1447   # Pass precious variables to config.status.
1448   if test "$ac_new_set" = set; then
1449     case $ac_new_val in
1450     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1452     *) ac_arg=$ac_var=$ac_new_val ;;
1453     esac
1454     case " $ac_configure_args " in
1455       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1456       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1457     esac
1458   fi
1459 done
1460 if $ac_cache_corrupted; then
1461   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1463   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467    { (exit 1); exit 1; }; }
1468 fi
1469
1470 ac_ext=c
1471 ac_cpp='$CPP $CPPFLAGS'
1472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498 # This works around the fact that libtool configuration may change LD
1499 # for this particular configuration, but some shells, instead of
1500 # keeping the changes in LD private, export them just because LD is
1501 # exported.
1502 ORIGINAL_LD_FOR_MULTILIBS=$LD
1503
1504 # Default to --enable-multilib
1505 # Check whether --enable-multilib or --disable-multilib was given.
1506 if test "${enable_multilib+set}" = set; then
1507   enableval="$enable_multilib"
1508   case "$enableval" in
1509   yes) multilib=yes ;;
1510   no)  multilib=no ;;
1511   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1512 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1513    { (exit 1); exit 1; }; } ;;
1514  esac
1515 else
1516   multilib=yes
1517 fi;
1518
1519 # We may get other options which we leave undocumented:
1520 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1521 # See config-ml.in if you want the gory details.
1522
1523 if test "$srcdir" = "."; then
1524   if test "$with_target_subdir" != "."; then
1525     multi_basedir="$srcdir/$with_multisrctop../.."
1526   else
1527     multi_basedir="$srcdir/$with_multisrctop.."
1528   fi
1529 else
1530   multi_basedir="$srcdir/.."
1531 fi
1532
1533
1534 # Even if the default multilib is not a cross compilation,
1535 # it may be that some of the other multilibs are.
1536 if test $cross_compiling = no && test $multilib = yes \
1537    && test "x${with_multisubdir}" != x ; then
1538    cross_compiling=maybe
1539 fi
1540
1541           ac_config_commands="$ac_config_commands default-1"
1542
1543
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546   if test -f $ac_dir/install-sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install-sh -c"
1549     break
1550   elif test -f $ac_dir/install.sh; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/install.sh -c"
1553     break
1554   elif test -f $ac_dir/shtool; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/shtool install -c"
1557     break
1558   fi
1559 done
1560 if test -z "$ac_aux_dir"; then
1561   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563    { (exit 1); exit 1; }; }
1564 fi
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582   ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586    { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608   ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 echo "$as_me:$LINENO: checking target system type" >&5
1624 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625 if test "${ac_cv_target+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   ac_cv_target_alias=$target_alias
1629 test "x$ac_cv_target_alias" = "x" &&
1630   ac_cv_target_alias=$ac_cv_host_alias
1631 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 fi
1637 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638 echo "${ECHO_T}$ac_cv_target" >&6
1639 target=$ac_cv_target
1640 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645 # The aliases save the names the user supplied, while $host etc.
1646 # will get canonicalized.
1647 test -n "$target_alias" &&
1648   test "$program_prefix$program_suffix$program_transform_name" = \
1649     NONENONEs,x,x, &&
1650   program_prefix=${target_alias}-
1651
1652 # Get the 'noncanonical' system names.
1653  case ${build_alias} in
1654   "") build_noncanonical=${build} ;;
1655   *) build_noncanonical=${build_alias} ;;
1656 esac
1657
1658  case ${host_alias} in
1659   "") host_noncanonical=${build_noncanonical} ;;
1660   *) host_noncanonical=${host_alias} ;;
1661 esac
1662
1663  case ${target_alias} in
1664   "") target_noncanonical=${host_noncanonical} ;;
1665   *) target_noncanonical=${target_alias} ;;
1666 esac
1667
1668
1669
1670
1671 # This works around an automake problem.
1672 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1673
1674
1675 am__api_version="1.9"
1676 # Find a good install program.  We prefer a C program (faster),
1677 # so one script is as good as another.  But avoid the broken or
1678 # incompatible versions:
1679 # SysV /etc/install, /usr/sbin/install
1680 # SunOS /usr/etc/install
1681 # IRIX /sbin/install
1682 # AIX /bin/install
1683 # AmigaOS /C/install, which installs bootblocks on floppy discs
1684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1687 # OS/2's system install, which has a completely different semantic
1688 # ./install, which can be erroneously created by make from ./install.sh.
1689 # Reject install programs that cannot install multiple files.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703   ./ | .// | /cC/* | \
1704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1706   /usr/ucb/* ) ;;
1707   *)
1708     # OSF1 and SCO ODT 3.0 have their own names for install.
1709     # Don't use installbsd from OSF since it installs stuff as root
1710     # by default.
1711     for ac_prog in ginstall scoinst install; do
1712       for ac_exec_ext in '' $ac_executable_extensions; do
1713         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714           if test $ac_prog = install &&
1715             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716             # AIX install.  It has an incompatible calling convention.
1717             :
1718           elif test $ac_prog = install &&
1719             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720             # program-specific install script used by HP pwplus--don't use.
1721             :
1722           else
1723             rm -rf conftest.one conftest.two conftest.dir
1724             echo one > conftest.one
1725             echo two > conftest.two
1726             mkdir conftest.dir
1727             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1728               test -s conftest.one && test -s conftest.two &&
1729               test -s conftest.dir/conftest.one &&
1730               test -s conftest.dir/conftest.two
1731             then
1732               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1733               break 3
1734             fi
1735           fi
1736         fi
1737       done
1738     done
1739     ;;
1740 esac
1741 done
1742
1743 rm -rf conftest.one conftest.two conftest.dir
1744
1745 fi
1746   if test "${ac_cv_path_install+set}" = set; then
1747     INSTALL=$ac_cv_path_install
1748   else
1749     # As a last resort, use the slow shell script.  Don't cache a
1750     # value for INSTALL within a source directory, because that will
1751     # break other packages using the cache if that directory is
1752     # removed, or if the value is a relative name.
1753     INSTALL=$ac_install_sh
1754   fi
1755 fi
1756 echo "$as_me:$LINENO: result: $INSTALL" >&5
1757 echo "${ECHO_T}$INSTALL" >&6
1758
1759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1760 # It thinks the first close brace ends the variable substitution.
1761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1762
1763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1764
1765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1766
1767 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1769 # Just in case
1770 sleep 1
1771 echo timestamp > conftest.file
1772 # Do `set' in a subshell so we don't clobber the current shell's
1773 # arguments.  Must try -L first in case configure is actually a
1774 # symlink; some systems play weird games with the mod time of symlinks
1775 # (eg FreeBSD returns the mod time of the symlink's containing
1776 # directory).
1777 if (
1778    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1779    if test "$*" = "X"; then
1780       # -L didn't work.
1781       set X `ls -t $srcdir/configure conftest.file`
1782    fi
1783    rm -f conftest.file
1784    if test "$*" != "X $srcdir/configure conftest.file" \
1785       && test "$*" != "X conftest.file $srcdir/configure"; then
1786
1787       # If neither matched, then we have a broken ls.  This can happen
1788       # if, for instance, CONFIG_SHELL is bash and it inherits a
1789       # broken ls alias from the environment.  This has actually
1790       # happened.  Such a system could not be considered "sane".
1791       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1792 alias in your environment" >&5
1793 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1794 alias in your environment" >&2;}
1795    { (exit 1); exit 1; }; }
1796    fi
1797
1798    test "$2" = conftest.file
1799    )
1800 then
1801    # Ok.
1802    :
1803 else
1804    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805 Check your system clock" >&5
1806 echo "$as_me: error: newly created file is older than distributed files!
1807 Check your system clock" >&2;}
1808    { (exit 1); exit 1; }; }
1809 fi
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 test "$program_prefix" != NONE &&
1813   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1817 # Double any \ or $.  echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1821 _ACEOF
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823 rm conftest.sed
1824
1825 # expand $ac_aux_dir to an absolute path
1826 am_aux_dir=`cd $ac_aux_dir && pwd`
1827
1828 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1829 # Use eval to expand $SHELL
1830 if eval "$MISSING --run true"; then
1831   am_missing_run="$MISSING --run "
1832 else
1833   am_missing_run=
1834   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1835 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1836 fi
1837
1838 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1839   # We used to keeping the `.' as first argument, in order to
1840   # allow $(mkdir_p) to be used without argument.  As in
1841   #   $(mkdir_p) $(somedir)
1842   # where $(somedir) is conditionally defined.  However this is wrong
1843   # for two reasons:
1844   #  1. if the package is installed by a user who cannot write `.'
1845   #     make install will fail,
1846   #  2. the above comment should most certainly read
1847   #     $(mkdir_p) $(DESTDIR)$(somedir)
1848   #     so it does not work when $(somedir) is undefined and
1849   #     $(DESTDIR) is not.
1850   #  To support the latter case, we have to write
1851   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1852   #  so the `.' trick is pointless.
1853   mkdir_p='mkdir -p --'
1854 else
1855   # On NextStep and OpenStep, the `mkdir' command does not
1856   # recognize any option.  It will interpret all options as
1857   # directories to create, and then abort because `.' already
1858   # exists.
1859   for d in ./-p ./--version;
1860   do
1861     test -d $d && rmdir $d
1862   done
1863   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1864   if test -f "$ac_aux_dir/mkinstalldirs"; then
1865     mkdir_p='$(mkinstalldirs)'
1866   else
1867     mkdir_p='$(install_sh) -d'
1868   fi
1869 fi
1870
1871 for ac_prog in gawk mawk nawk awk
1872 do
1873   # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_AWK+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$AWK"; then
1881   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_AWK="$ac_prog"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 AWK=$ac_cv_prog_AWK
1900 if test -n "$AWK"; then
1901   echo "$as_me:$LINENO: result: $AWK" >&5
1902 echo "${ECHO_T}$AWK" >&6
1903 else
1904   echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908   test -n "$AWK" && break
1909 done
1910
1911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   cat >conftest.make <<\_ACEOF
1918 all:
1919         @echo 'ac_maketemp="$(MAKE)"'
1920 _ACEOF
1921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1923 if test -n "$ac_maketemp"; then
1924   eval ac_cv_prog_make_${ac_make}_set=yes
1925 else
1926   eval ac_cv_prog_make_${ac_make}_set=no
1927 fi
1928 rm -f conftest.make
1929 fi
1930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1931   echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1933   SET_MAKE=
1934 else
1935   echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937   SET_MAKE="MAKE=${MAKE-make}"
1938 fi
1939
1940 rm -rf .tst 2>/dev/null
1941 mkdir .tst 2>/dev/null
1942 if test -d .tst; then
1943   am__leading_dot=.
1944 else
1945   am__leading_dot=_
1946 fi
1947 rmdir .tst 2>/dev/null
1948
1949 # test to see if srcdir already configured
1950 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1951    test -f $srcdir/config.status; then
1952   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1953 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1954    { (exit 1); exit 1; }; }
1955 fi
1956
1957 # test whether we have cygpath
1958 if test -z "$CYGPATH_W"; then
1959   if (cygpath --version) >/dev/null 2>/dev/null; then
1960     CYGPATH_W='cygpath -w'
1961   else
1962     CYGPATH_W=echo
1963   fi
1964 fi
1965
1966
1967 # Define the identity of the package.
1968  PACKAGE=gc
1969  VERSION=6.6
1970
1971
1972 # Some tools Automake needs.
1973
1974 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1975
1976
1977 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1978
1979
1980 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1981
1982
1983 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1984
1985
1986 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1987
1988 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1989
1990 # Installed binaries are usually stripped using `strip' when the user
1991 # run `make install-strip'.  However `strip' might not be the right
1992 # tool to use in cross-compilation environments, therefore Automake
1993 # will honor the `STRIP' environment variable to overrule this program.
1994 if test "$cross_compiling" != no; then
1995   if test -n "$ac_tool_prefix"; then
1996   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}strip; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_STRIP+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$STRIP"; then
2004   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 STRIP=$ac_cv_prog_STRIP
2023 if test -n "$STRIP"; then
2024   echo "$as_me:$LINENO: result: $STRIP" >&5
2025 echo "${ECHO_T}$STRIP" >&6
2026 else
2027   echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031 fi
2032 if test -z "$ac_cv_prog_STRIP"; then
2033   ac_ct_STRIP=$STRIP
2034   # Extract the first word of "strip", so it can be a program name with args.
2035 set dummy strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$ac_ct_STRIP"; then
2042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051     ac_cv_prog_ac_ct_STRIP="strip"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057
2058   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2059 fi
2060 fi
2061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2062 if test -n "$ac_ct_STRIP"; then
2063   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2064 echo "${ECHO_T}$ac_ct_STRIP" >&6
2065 else
2066   echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2068 fi
2069
2070   STRIP=$ac_ct_STRIP
2071 else
2072   STRIP="$ac_cv_prog_STRIP"
2073 fi
2074
2075 fi
2076 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2077
2078 # We need awk for the "check" target.  The system "awk" is bad on
2079 # some platforms.
2080 # Always define AMTAR for backward compatibility.
2081
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2083
2084 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2085
2086
2087
2088
2089
2090
2091 # The autoconf 2.5x version of the no-executables hack.
2092
2093
2094 # Yak.  We must force CC and CXX to /not/ be precious variables; otherwise
2095 # the wrong, non-multilib-adjusted value will be used in multilibs.
2096 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2097
2098
2099
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 if test -n "$ac_tool_prefix"; then
2106   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   if test -n "$CC"; then
2114   ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121   for ac_exec_ext in '' $ac_executable_extensions; do
2122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125     break 2
2126   fi
2127 done
2128 done
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137   echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141 fi
2142 if test -z "$ac_cv_prog_CC"; then
2143   ac_ct_CC=$CC
2144   # Extract the first word of "gcc", so it can be a program name with args.
2145 set dummy gcc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   if test -n "$ac_ct_CC"; then
2152   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157   IFS=$as_save_IFS
2158   test -z "$as_dir" && as_dir=.
2159   for ac_exec_ext in '' $ac_executable_extensions; do
2160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161     ac_cv_prog_ac_ct_CC="gcc"
2162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163     break 2
2164   fi
2165 done
2166 done
2167
2168 fi
2169 fi
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175   echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2177 fi
2178
2179   CC=$ac_ct_CC
2180 else
2181   CC="$ac_cv_prog_CC"
2182 fi
2183
2184 if test -z "$CC"; then
2185   if test -n "$ac_tool_prefix"; then
2186   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$CC"; then
2194   ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203     ac_cv_prog_CC="${ac_tool_prefix}cc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209
2210 fi
2211 fi
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214   echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221 fi
2222 if test -z "$ac_cv_prog_CC"; then
2223   ac_ct_CC=$CC
2224   # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$ac_ct_CC"; then
2232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241     ac_cv_prog_ac_ct_CC="cc"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255   echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259   CC=$ac_ct_CC
2260 else
2261   CC="$ac_cv_prog_CC"
2262 fi
2263
2264 fi
2265 if test -z "$CC"; then
2266   # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276   ac_prog_rejected=no
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2285        ac_prog_rejected=yes
2286        continue
2287      fi
2288     ac_cv_prog_CC="cc"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294
2295 if test $ac_prog_rejected = yes; then
2296   # We found a bogon in the path, so make sure we never use it.
2297   set dummy $ac_cv_prog_CC
2298   shift
2299   if test $# != 0; then
2300     # We chose a different compiler from the bogus one.
2301     # However, it has the same basename, so the bogon will be chosen
2302     # first if we set CC to just the basename; use the full file name.
2303     shift
2304     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2305   fi
2306 fi
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if test -z "$CC"; then
2320   if test -n "$ac_tool_prefix"; then
2321   for ac_prog in cl
2322   do
2323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$CC"; then
2331   ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351   echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354   echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358     test -n "$CC" && break
2359   done
2360 fi
2361 if test -z "$CC"; then
2362   ac_ct_CC=$CC
2363   for ac_prog in cl
2364 do
2365   # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$ac_ct_CC"; then
2373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382     ac_cv_prog_ac_ct_CC="$ac_prog"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388
2389 fi
2390 fi
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6
2395 else
2396   echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 fi
2399
2400   test -n "$ac_ct_CC" && break
2401 done
2402
2403   CC=$ac_ct_CC
2404 fi
2405
2406 fi
2407
2408
2409 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415    { (exit 1); exit 1; }; }; }
2416
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO:" \
2419      "checking for C compiler version" >&5
2420 ac_compiler=`set X $ac_compile; echo $2`
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2422   (eval $ac_compiler --version </dev/null >&5) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2427   (eval $ac_compiler -v </dev/null >&5) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2432   (eval $ac_compiler -V </dev/null >&5) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }
2436
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h.  */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h.  */
2443
2444 int
2445 main ()
2446 {
2447
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 # FIXME: Cleanup?
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454   (eval $ac_link) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; then
2458   gcc_no_link=no
2459 else
2460   gcc_no_link=yes
2461 fi
2462
2463 if test x$gcc_no_link = xyes; then
2464   # Setting cross_compile will disable run tests; it will
2465   # also disable AC_CHECK_FILE but that's generally
2466   # correct if we can't link.
2467   cross_compiling=yes
2468   EXEEXT=
2469 else
2470   cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476
2477 int
2478 main ()
2479 {
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2489 # of exeext.
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494   (eval $ac_link_default) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; then
2498   # Find the output, starting from the most likely.  This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500 # resort.
2501
2502 # Be careful to initialize this variable, since it used to be cached.
2503 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2504 ac_cv_exeext=
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2507 do
2508   test -f "$ac_file" || continue
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511         ;;
2512     conftest.$ac_ext )
2513         # This is the source file.
2514         ;;
2515     [ab].out )
2516         # We found the default executable, but exeext='' is most
2517         # certainly right.
2518         break;;
2519     *.* )
2520         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521         # FIXME: I believe we export ac_cv_exeext for Libtool,
2522         # but it would be cool to find out if it's true.  Does anybody
2523         # maintain Libtool? --akim.
2524         export ac_cv_exeext
2525         break;;
2526     * )
2527         break;;
2528   esac
2529 done
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2535 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540    { (exit 77); exit 77; }; }; }
2541 fi
2542
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2546
2547 # Check the compiler produces executables we can run.  If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554   if { ac_try='./$ac_file'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560     cross_compiling=no
2561   else
2562     if test "$cross_compiling" = maybe; then
2563         cross_compiling=yes
2564     else
2565         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot run C compiled programs.
2571 If you meant to cross compile, use \`--host'.
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }; }
2574     fi
2575   fi
2576 fi
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2579
2580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581 ac_clean_files=$ac_clean_files_save
2582 # Check the compiler produces executables we can run.  If not, either
2583 # the compiler is broken, or we cross compile.
2584 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587 echo "${ECHO_T}$cross_compiling" >&6
2588
2589 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592   (eval $ac_link) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; then
2596   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2599 # `rm'.
2600 for ac_file in conftest.exe conftest conftest.*; do
2601   test -f "$ac_file" || continue
2602   case $ac_file in
2603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2604     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605           export ac_cv_exeext
2606           break;;
2607     * ) break;;
2608   esac
2609 done
2610 else
2611   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&2;}
2617    { (exit 1); exit 1; }; }; }
2618 fi
2619
2620 rm -f conftest$ac_cv_exeext
2621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622 echo "${ECHO_T}$ac_cv_exeext" >&6
2623
2624 rm -f conftest.$ac_ext
2625 EXEEXT=$ac_cv_exeext
2626 ac_exeext=$EXEEXT
2627 fi
2628 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2630 if test "${ac_cv_objext+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.o conftest.obj
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; then
2654   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2655   case $ac_file in
2656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2657     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658        break;;
2659   esac
2660 done
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671    { (exit 1); exit 1; }; }; }
2672 fi
2673
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695 #ifndef __GNUC__
2696        choke me
2697 #endif
2698
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705   (eval $ac_compile) 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -z "$ac_c_werror_flag"
2713                          || test ! -s conftest.err'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; } &&
2719          { ac_try='test -s conftest.$ac_objext'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; }; then
2725   ac_compiler_gnu=yes
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 ac_compiler_gnu=no
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2734
2735 fi
2736 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2738 GCC=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 CFLAGS="-g"
2742 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cc_g+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753
2754 int
2755 main ()
2756 {
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -z "$ac_c_werror_flag"
2772                          || test ! -s conftest.err'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   ac_cv_prog_cc_g=yes
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_cv_prog_cc_g=no
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 fi
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795 if test "$ac_test_CFLAGS" = set; then
2796   CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798   if test "$GCC" = yes; then
2799     CFLAGS="-g -O2"
2800   else
2801     CFLAGS="-g"
2802   fi
2803 else
2804   if test "$GCC" = yes; then
2805     CFLAGS="-O2"
2806   else
2807     CFLAGS=
2808   fi
2809 fi
2810 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   ac_cv_prog_cc_stdc=no
2816 ac_save_CC=$CC
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823 #include <stdarg.h>
2824 #include <stdio.h>
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2831      char **p;
2832      int i;
2833 {
2834   return p[i];
2835 }
2836 static char *f (char * (*g) (char **, int), char **p, ...)
2837 {
2838   char *s;
2839   va_list v;
2840   va_start (v,p);
2841   s = g (p, va_arg (v,int));
2842   va_end (v);
2843   return s;
2844 }
2845
2846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2847    function prototypes and stuff, but not '\xHH' hex character constants.
2848    These don't provoke an error unfortunately, instead are silently treated
2849    as 'x'.  The following induces an error, until -std1 is added to get
2850    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2851    array size at least.  It's necessary to write '\x00'==0 to get something
2852    that's true only with -std1.  */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859 int argc;
2860 char **argv;
2861 int
2862 main ()
2863 {
2864 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 # Don't try gcc -ansi; that turns off useful extensions and
2870 # breaks some systems' header files.
2871 # AIX                   -qlanglvl=ansi
2872 # Ultrix and OSF/1      -std1
2873 # HP-UX 10.20 and later -Ae
2874 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2875 # SVR4                  -Xc -D__EXTENSIONS__
2876 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2877 do
2878   CC="$ac_save_CC $ac_arg"
2879   rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_c_werror_flag"
2889                          || test ! -s conftest.err'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; } &&
2895          { ac_try='test -s conftest.$ac_objext'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   ac_cv_prog_cc_stdc=$ac_arg
2902 break
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 fi
2908 rm -f conftest.err conftest.$ac_objext
2909 done
2910 rm -f conftest.$ac_ext conftest.$ac_objext
2911 CC=$ac_save_CC
2912
2913 fi
2914
2915 case "x$ac_cv_prog_cc_stdc" in
2916   x|xno)
2917     echo "$as_me:$LINENO: result: none needed" >&5
2918 echo "${ECHO_T}none needed" >&6 ;;
2919   *)
2920     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2922     CC="$CC $ac_cv_prog_cc_stdc" ;;
2923 esac
2924
2925 # Some people use a C++ compiler to compile C.  Since we use `exit',
2926 # in C++ we need to declare it.  In case someone uses the same compiler
2927 # for both compiling C and C++ we need to have the C++ compiler decide
2928 # the declaration of exit, since it's the most demanding environment.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #ifndef __cplusplus
2931   choke me
2932 #endif
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936   (eval $ac_compile) 2>conftest.er1
2937   ac_status=$?
2938   grep -v '^ *+' conftest.er1 >conftest.err
2939   rm -f conftest.er1
2940   cat conftest.err >&5
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } &&
2943          { ac_try='test -z "$ac_c_werror_flag"
2944                          || test ! -s conftest.err'
2945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946   (eval $ac_try) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; } &&
2950          { ac_try='test -s conftest.$ac_objext'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; }; then
2956   for ac_declaration in \
2957    '' \
2958    'extern "C" void std::exit (int) throw (); using std::exit;' \
2959    'extern "C" void std::exit (int); using std::exit;' \
2960    'extern "C" void exit (int) throw ();' \
2961    'extern "C" void exit (int);' \
2962    'void exit (int);'
2963 do
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 $ac_declaration
2971 #include <stdlib.h>
2972 int
2973 main ()
2974 {
2975 exit (42);
2976   ;
2977   return 0;
2978 }
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982   (eval $ac_compile) 2>conftest.er1
2983   ac_status=$?
2984   grep -v '^ *+' conftest.er1 >conftest.err
2985   rm -f conftest.er1
2986   cat conftest.err >&5
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } &&
2989          { ac_try='test -z "$ac_c_werror_flag"
2990                          || test ! -s conftest.err'
2991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992   (eval $ac_try) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; } &&
2996          { ac_try='test -s conftest.$ac_objext'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; }; then
3002   :
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 continue
3008 fi
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016 $ac_declaration
3017 int
3018 main ()
3019 {
3020 exit (42);
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027   (eval $ac_compile) 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_c_werror_flag"
3035                          || test ! -s conftest.err'
3036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; } &&
3041          { ac_try='test -s conftest.$ac_objext'
3042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   break
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 fi
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 done
3055 rm -f conftest*
3056 if test -n "$ac_declaration"; then
3057   echo '#ifdef __cplusplus' >>confdefs.h
3058   echo $ac_declaration      >>confdefs.h
3059   echo '#endif'             >>confdefs.h
3060 fi
3061
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 fi
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 DEPDIR="${am__leading_dot}deps"
3074
3075           ac_config_commands="$ac_config_commands depfiles"
3076
3077
3078 am_make=${MAKE-make}
3079 cat > confinc << 'END'
3080 am__doit:
3081         @echo done
3082 .PHONY: am__doit
3083 END
3084 # If we don't find an include directive, just comment out the code.
3085 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3086 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3087 am__include="#"
3088 am__quote=
3089 _am_result=none
3090 # First try GNU make style include.
3091 echo "include confinc" > confmf
3092 # We grep out `Entering directory' and `Leaving directory'
3093 # messages which can occur if `w' ends up in MAKEFLAGS.
3094 # In particular we don't look at `^make:' because GNU make might
3095 # be invoked under some other name (usually "gmake"), in which
3096 # case it prints its new name instead of `make'.
3097 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3098    am__include=include
3099    am__quote=
3100    _am_result=GNU
3101 fi
3102 # Now try BSD make style include.
3103 if test "$am__include" = "#"; then
3104    echo '.include "confinc"' > confmf
3105    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3106       am__include=.include
3107       am__quote="\""
3108       _am_result=BSD
3109    fi
3110 fi
3111
3112
3113 echo "$as_me:$LINENO: result: $_am_result" >&5
3114 echo "${ECHO_T}$_am_result" >&6
3115 rm -f confinc confmf
3116
3117 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3118 if test "${enable_dependency_tracking+set}" = set; then
3119   enableval="$enable_dependency_tracking"
3120
3121 fi;
3122 if test "x$enable_dependency_tracking" != xno; then
3123   am_depcomp="$ac_aux_dir/depcomp"
3124   AMDEPBACKSLASH='\'
3125 fi
3126
3127
3128 if test "x$enable_dependency_tracking" != xno; then
3129   AMDEP_TRUE=
3130   AMDEP_FALSE='#'
3131 else
3132   AMDEP_TRUE='#'
3133   AMDEP_FALSE=
3134 fi
3135
3136
3137
3138
3139 depcc="$CC"   am_compiler_list=
3140
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147   # We make a subdir and do the tests there.  Otherwise we can end up
3148   # making bogus files that we don't know about and never remove.  For
3149   # instance it was reported that on HP-UX the gcc test will end up
3150   # making a dummy file named `D' -- because `-MD' means `put the output
3151   # in D'.
3152   mkdir conftest.dir
3153   # Copy depcomp to subdir because otherwise we won't find it if we're
3154   # using a relative directory.
3155   cp "$am_depcomp" conftest.dir
3156   cd conftest.dir
3157   # We will build objects and dependencies in a subdirectory because
3158   # it helps to detect inapplicable dependency modes.  For instance
3159   # both Tru64's cc and ICC support -MD to output dependencies as a
3160   # side effect of compilation, but ICC will put the dependencies in
3161   # the current directory while Tru64 will put them in the object
3162   # directory.
3163   mkdir sub
3164
3165   am_cv_CC_dependencies_compiler_type=none
3166   if test "$am_compiler_list" = ""; then
3167      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3168   fi
3169   for depmode in $am_compiler_list; do
3170     # Setup a source with many dependencies, because some compilers
3171     # like to wrap large dependency lists on column 80 (with \), and
3172     # we should not choose a depcomp mode which is confused by this.
3173     #
3174     # We need to recreate these files for each test, as the compiler may
3175     # overwrite some of them when testing with obscure command lines.
3176     # This happens at least with the AIX C compiler.
3177     : > sub/conftest.c
3178     for i in 1 2 3 4 5 6; do
3179       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181       # Solaris 8's {/usr,}/bin/sh.
3182       touch sub/conftst$i.h
3183     done
3184     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3185
3186     case $depmode in
3187     nosideeffect)
3188       # after this tag, mechanisms are not by side-effect, so they'll
3189       # only be used when explicitly requested
3190       if test "x$enable_dependency_tracking" = xyes; then
3191         continue
3192       else
3193         break
3194       fi
3195       ;;
3196     none) break ;;
3197     esac
3198     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199     # mode.  It turns out that the SunPro C++ compiler does not properly
3200     # handle `-M -o', and we need to detect this.
3201     if depmode=$depmode \
3202        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205          >/dev/null 2>conftest.err &&
3206        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209       # icc doesn't choke on unknown options, it will just issue warnings
3210       # or remarks (even with -Werror).  So we grep stderr for any message
3211       # that says an option was ignored or not supported.
3212       # When given -MP, icc 7.0 and 7.1 complain thusly:
3213       #   icc: Command line warning: ignoring option '-M'; no argument required
3214       # The diagnosis changed in icc 8.0:
3215       #   icc: Command line remark: option '-MP' not supported
3216       if (grep 'ignoring option' conftest.err ||
3217           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218         am_cv_CC_dependencies_compiler_type=$depmode
3219         break
3220       fi
3221     fi
3222   done
3223
3224   cd ..
3225   rm -rf conftest.dir
3226 else
3227   am_cv_CC_dependencies_compiler_type=none
3228 fi
3229
3230 fi
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
3235
3236
3237 if
3238   test "x$enable_dependency_tracking" != xno \
3239   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240   am__fastdepCC_TRUE=
3241   am__fastdepCC_FALSE='#'
3242 else
3243   am__fastdepCC_TRUE='#'
3244   am__fastdepCC_FALSE=
3245 fi
3246
3247
3248 ac_ext=cc
3249 ac_cpp='$CXXCPP $CPPFLAGS'
3250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3255   do
3256     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_CXX+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   if test -n "$CXX"; then
3264   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280 fi
3281 fi
3282 CXX=$ac_cv_prog_CXX
3283 if test -n "$CXX"; then
3284   echo "$as_me:$LINENO: result: $CXX" >&5
3285 echo "${ECHO_T}$CXX" >&6
3286 else
3287   echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3289 fi
3290
3291     test -n "$CXX" && break
3292   done
3293 fi
3294 if test -z "$CXX"; then
3295   ac_ct_CXX=$CXX
3296   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3297 do
3298   # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   if test -n "$ac_ct_CXX"; then
3306   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313   for ac_exec_ext in '' $ac_executable_extensions; do
3314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_ac_ct_CXX="$ac_prog"
3316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320 done
3321
3322 fi
3323 fi
3324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3325 if test -n "$ac_ct_CXX"; then
3326   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3327 echo "${ECHO_T}$ac_ct_CXX" >&6
3328 else
3329   echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333   test -n "$ac_ct_CXX" && break
3334 done
3335 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3336
3337   CXX=$ac_ct_CXX
3338 fi
3339
3340
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343      "checking for C++ compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346   (eval $ac_compiler --version </dev/null >&5) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351   (eval $ac_compiler -v </dev/null >&5) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356   (eval $ac_compiler -V </dev/null >&5) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }
3360
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3364   echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377        choke me
3378 #endif
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386   (eval $ac_compile) 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } &&
3393          { ac_try='test -z "$ac_cxx_werror_flag"
3394                          || test ! -s conftest.err'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; } &&
3400          { ac_try='test -s conftest.$ac_objext'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; }; then
3406   ac_compiler_gnu=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_compiler_gnu=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3415
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3419 GXX=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CXXFLAGS=${CXXFLAGS+set}
3421 ac_save_CXXFLAGS=$CXXFLAGS
3422 CXXFLAGS="-g"
3423 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3424 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cxx_g+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445   (eval $ac_compile) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_cxx_werror_flag"
3453                          || test ! -s conftest.err'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; } &&
3459          { ac_try='test -s conftest.$ac_objext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   ac_cv_prog_cxx_g=yes
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_cv_prog_cxx_g=no
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3476 if test "$ac_test_CXXFLAGS" = set; then
3477   CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479   if test "$GXX" = yes; then
3480     CXXFLAGS="-g -O2"
3481   else
3482     CXXFLAGS="-g"
3483   fi
3484 else
3485   if test "$GXX" = yes; then
3486     CXXFLAGS="-O2"
3487   else
3488     CXXFLAGS=
3489   fi
3490 fi
3491 for ac_declaration in \
3492    '' \
3493    'extern "C" void std::exit (int) throw (); using std::exit;' \
3494    'extern "C" void std::exit (int); using std::exit;' \
3495    'extern "C" void exit (int) throw ();' \
3496    'extern "C" void exit (int);' \
3497    'void exit (int);'
3498 do
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 $ac_declaration
3506 #include <stdlib.h>
3507 int
3508 main ()
3509 {
3510 exit (42);
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517   (eval $ac_compile) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_cxx_werror_flag"
3525                          || test ! -s conftest.err'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; } &&
3531          { ac_try='test -s conftest.$ac_objext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   :
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 continue
3543 fi
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 $ac_declaration
3552 int
3553 main ()
3554 {
3555 exit (42);
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562   (eval $ac_compile) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569          { ac_try='test -z "$ac_cxx_werror_flag"
3570                          || test ! -s conftest.err'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; } &&
3576          { ac_try='test -s conftest.$ac_objext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   break
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 rm -f conftest*
3591 if test -n "$ac_declaration"; then
3592   echo '#ifdef __cplusplus' >>confdefs.h
3593   echo $ac_declaration      >>confdefs.h
3594   echo '#endif'             >>confdefs.h
3595 fi
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603 depcc="$CXX"  am_compiler_list=
3604
3605 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3607 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611   # We make a subdir and do the tests there.  Otherwise we can end up
3612   # making bogus files that we don't know about and never remove.  For
3613   # instance it was reported that on HP-UX the gcc test will end up
3614   # making a dummy file named `D' -- because `-MD' means `put the output
3615   # in D'.
3616   mkdir conftest.dir
3617   # Copy depcomp to subdir because otherwise we won't find it if we're
3618   # using a relative directory.
3619   cp "$am_depcomp" conftest.dir
3620   cd conftest.dir
3621   # We will build objects and dependencies in a subdirectory because
3622   # it helps to detect inapplicable dependency modes.  For instance
3623   # both Tru64's cc and ICC support -MD to output dependencies as a
3624   # side effect of compilation, but ICC will put the dependencies in
3625   # the current directory while Tru64 will put them in the object
3626   # directory.
3627   mkdir sub
3628
3629   am_cv_CXX_dependencies_compiler_type=none
3630   if test "$am_compiler_list" = ""; then
3631      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3632   fi
3633   for depmode in $am_compiler_list; do
3634     # Setup a source with many dependencies, because some compilers
3635     # like to wrap large dependency lists on column 80 (with \), and
3636     # we should not choose a depcomp mode which is confused by this.
3637     #
3638     # We need to recreate these files for each test, as the compiler may
3639     # overwrite some of them when testing with obscure command lines.
3640     # This happens at least with the AIX C compiler.
3641     : > sub/conftest.c
3642     for i in 1 2 3 4 5 6; do
3643       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645       # Solaris 8's {/usr,}/bin/sh.
3646       touch sub/conftst$i.h
3647     done
3648     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3649
3650     case $depmode in
3651     nosideeffect)
3652       # after this tag, mechanisms are not by side-effect, so they'll
3653       # only be used when explicitly requested
3654       if test "x$enable_dependency_tracking" = xyes; then
3655         continue
3656       else
3657         break
3658       fi
3659       ;;
3660     none) break ;;
3661     esac
3662     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3663     # mode.  It turns out that the SunPro C++ compiler does not properly
3664     # handle `-M -o', and we need to detect this.
3665     if depmode=$depmode \
3666        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3667        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3668        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3669          >/dev/null 2>conftest.err &&
3670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673       # icc doesn't choke on unknown options, it will just issue warnings
3674       # or remarks (even with -Werror).  So we grep stderr for any message
3675       # that says an option was ignored or not supported.
3676       # When given -MP, icc 7.0 and 7.1 complain thusly:
3677       #   icc: Command line warning: ignoring option '-M'; no argument required
3678       # The diagnosis changed in icc 8.0:
3679       #   icc: Command line remark: option '-MP' not supported
3680       if (grep 'ignoring option' conftest.err ||
3681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682         am_cv_CXX_dependencies_compiler_type=$depmode
3683         break
3684       fi
3685     fi
3686   done
3687
3688   cd ..
3689   rm -rf conftest.dir
3690 else
3691   am_cv_CXX_dependencies_compiler_type=none
3692 fi
3693
3694 fi
3695 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3698
3699
3700
3701 if
3702   test "x$enable_dependency_tracking" != xno \
3703   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3704   am__fastdepCXX_TRUE=
3705   am__fastdepCXX_FALSE='#'
3706 else
3707   am__fastdepCXX_TRUE='#'
3708   am__fastdepCXX_FALSE=
3709 fi
3710
3711
3712
3713
3714 if test "x$CC" != xcc; then
3715   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3716 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3717 else
3718   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3719 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3720 fi
3721 set dummy $CC; ac_cc=`echo $2 |
3722                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3723 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 # Make sure it works both with $CC and with simple cc.
3742 # We do the test twice because some compilers refuse to overwrite an
3743 # existing .o file with -o, though they will create one.
3744 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3745 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746   (eval $ac_try) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } &&
3750    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); };
3755 then
3756   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3757   if test "x$CC" != xcc; then
3758     # Test first that cc exists at all.
3759     if { ac_try='cc -c conftest.$ac_ext >&5'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3766       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); } &&
3771          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772   (eval $ac_try) 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); };
3776       then
3777         # cc works too.
3778         :
3779       else
3780         # cc exists but doesn't like -o.
3781         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3782       fi
3783     fi
3784   fi
3785 else
3786   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3787 fi
3788 rm -f conftest*
3789
3790 fi
3791 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3792   echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3797
3798 cat >>confdefs.h <<\_ACEOF
3799 #define NO_MINUS_C_MINUS_O 1
3800 _ACEOF
3801
3802 fi
3803
3804 # FIXME: we rely on the cache variable name because
3805 # there is no other way.
3806 set dummy $CC
3807 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3809    # Losing compiler, so override with the script.
3810    # FIXME: It is wrong to rewrite CC.
3811    # But if we don't then we get into trouble of one sort or another.
3812    # A longer-term fix would be to have automake use am__CC in this case,
3813    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814    CC="$am_aux_dir/compile $CC"
3815 fi
3816
3817
3818
3819
3820
3821 # Newer automakes demand CCAS and CCASFLAGS.
3822 : ${CCAS='$(CC)'}
3823 : ${CCASFLAGS='$(CFLAGS)'}
3824
3825
3826
3827 if test -n "$ac_tool_prefix"; then
3828   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}as; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_AS+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   if test -n "$AS"; then
3836   ac_cv_prog_AS="$AS" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841   IFS=$as_save_IFS
3842   test -z "$as_dir" && as_dir=.
3843   for ac_exec_ext in '' $ac_executable_extensions; do
3844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845     ac_cv_prog_AS="${ac_tool_prefix}as"
3846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847     break 2
3848   fi
3849 done
3850 done
3851
3852 fi
3853 fi
3854 AS=$ac_cv_prog_AS
3855 if test -n "$AS"; then
3856   echo "$as_me:$LINENO: result: $AS" >&5
3857 echo "${ECHO_T}$AS" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 fi
3864 if test -z "$ac_cv_prog_AS"; then
3865   ac_ct_AS=$AS
3866   # Extract the first word of "as", so it can be a program name with args.
3867 set dummy as; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   if test -n "$ac_ct_AS"; then
3874   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881   for ac_exec_ext in '' $ac_executable_extensions; do
3882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883     ac_cv_prog_ac_ct_AS="as"
3884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888 done
3889
3890 fi
3891 fi
3892 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3893 if test -n "$ac_ct_AS"; then
3894   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3895 echo "${ECHO_T}$ac_ct_AS" >&6
3896 else
3897   echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901   AS=$ac_ct_AS
3902 else
3903   AS="$ac_cv_prog_AS"
3904 fi
3905
3906 if test -n "$ac_tool_prefix"; then
3907   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$AR"; then
3915   ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924     ac_cv_prog_AR="${ac_tool_prefix}ar"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930
3931 fi
3932 fi
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935   echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942 fi
3943 if test -z "$ac_cv_prog_AR"; then
3944   ac_ct_AR=$AR
3945   # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test -n "$ac_ct_AR"; then
3953   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_ac_ct_AR="ar"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969 fi
3970 fi
3971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3972 if test -n "$ac_ct_AR"; then
3973   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3974 echo "${ECHO_T}$ac_ct_AR" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980   AR=$ac_ct_AR
3981 else
3982   AR="$ac_cv_prog_AR"
3983 fi
3984
3985 if test -n "$ac_tool_prefix"; then
3986   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_RANLIB+set}" = set; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   if test -n "$RANLIB"; then
3994   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001   for ac_exec_ext in '' $ac_executable_extensions; do
4002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005     break 2
4006   fi
4007 done
4008 done
4009
4010 fi
4011 fi
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014   echo "$as_me:$LINENO: result: $RANLIB" >&5
4015 echo "${ECHO_T}$RANLIB" >&6
4016 else
4017   echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4019 fi
4020
4021 fi
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023   ac_ct_RANLIB=$RANLIB
4024   # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if test -n "$ac_ct_RANLIB"; then
4032   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037   IFS=$as_save_IFS
4038   test -z "$as_dir" && as_dir=.
4039   for ac_exec_ext in '' $ac_executable_extensions; do
4040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041     ac_cv_prog_ac_ct_RANLIB="ranlib"
4042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043     break 2
4044   fi
4045 done
4046 done
4047
4048   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4049 fi
4050 fi
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 else
4056   echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060   RANLIB=$ac_ct_RANLIB
4061 else
4062   RANLIB="$ac_cv_prog_RANLIB"
4063 fi
4064
4065
4066 # Find a good install program.  We prefer a C program (faster),
4067 # so one script is as good as another.  But avoid the broken or
4068 # incompatible versions:
4069 # SysV /etc/install, /usr/sbin/install
4070 # SunOS /usr/etc/install
4071 # IRIX /sbin/install
4072 # AIX /bin/install
4073 # AmigaOS /C/install, which installs bootblocks on floppy discs
4074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077 # OS/2's system install, which has a completely different semantic
4078 # ./install, which can be erroneously created by make from ./install.sh.
4079 # Reject install programs that cannot install multiple files.
4080 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4081 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4082 if test -z "$INSTALL"; then
4083 if test "${ac_cv_path_install+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089   IFS=$as_save_IFS
4090   test -z "$as_dir" && as_dir=.
4091   # Account for people who put trailing slashes in PATH elements.
4092 case $as_dir/ in
4093   ./ | .// | /cC/* | \
4094   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4095   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4096   /usr/ucb/* ) ;;
4097   *)
4098     # OSF1 and SCO ODT 3.0 have their own names for install.
4099     # Don't use installbsd from OSF since it installs stuff as root
4100     # by default.
4101     for ac_prog in ginstall scoinst install; do
4102       for ac_exec_ext in '' $ac_executable_extensions; do
4103         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4104           if test $ac_prog = install &&
4105             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4106             # AIX install.  It has an incompatible calling convention.
4107             :
4108           elif test $ac_prog = install &&
4109             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110             # program-specific install script used by HP pwplus--don't use.
4111             :
4112           else
4113             rm -rf conftest.one conftest.two conftest.dir
4114             echo one > conftest.one
4115             echo two > conftest.two
4116             mkdir conftest.dir
4117             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4118               test -s conftest.one && test -s conftest.two &&
4119               test -s conftest.dir/conftest.one &&
4120               test -s conftest.dir/conftest.two
4121             then
4122               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4123               break 3
4124             fi
4125           fi
4126         fi
4127       done
4128     done
4129     ;;
4130 esac
4131 done
4132
4133 rm -rf conftest.one conftest.two conftest.dir
4134
4135 fi
4136   if test "${ac_cv_path_install+set}" = set; then
4137     INSTALL=$ac_cv_path_install
4138   else
4139     # As a last resort, use the slow shell script.  Don't cache a
4140     # value for INSTALL within a source directory, because that will
4141     # break other packages using the cache if that directory is
4142     # removed, or if the value is a relative name.
4143     INSTALL=$ac_install_sh
4144   fi
4145 fi
4146 echo "$as_me:$LINENO: result: $INSTALL" >&5
4147 echo "${ECHO_T}$INSTALL" >&6
4148
4149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150 # It thinks the first close brace ends the variable substitution.
4151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4152
4153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4154
4155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4156
4157
4158 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4159 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4160     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then
4162   enableval="$enable_maintainer_mode"
4163   USE_MAINTAINER_MODE=$enableval
4164 else
4165   USE_MAINTAINER_MODE=no
4166 fi;
4167   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4168 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4169
4170
4171 if test $USE_MAINTAINER_MODE = yes; then
4172   MAINTAINER_MODE_TRUE=
4173   MAINTAINER_MODE_FALSE='#'
4174 else
4175   MAINTAINER_MODE_TRUE='#'
4176   MAINTAINER_MODE_FALSE=
4177 fi
4178
4179   MAINT=$MAINTAINER_MODE_TRUE
4180
4181
4182
4183 . ${srcdir}/configure.host
4184
4185 case ${gc_basedir} in
4186 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4187 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4188 esac
4189
4190 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4191 case "${host}" in
4192   *-*-cygwin32*)
4193     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4194     ;;
4195 esac
4196
4197 case "${host}" in
4198   *-*-mingw*)
4199     gc_cflags="${gc_cflags} -DGC_BUILD=1"
4200     ;;
4201 esac
4202
4203
4204 GC_CFLAGS=${gc_cflags}
4205
4206
4207 case `pwd` in
4208   *\ * | *\     *)
4209     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4210 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4211 esac
4212
4213
4214
4215 macro_version='2.2.6'
4216 macro_revision='1.3012'
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 ltmain="$ac_aux_dir/ltmain.sh"
4231
4232 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4233 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4234 if test "${lt_cv_path_SED+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   # Loop through the user's path and test for sed and gsed.
4238 # Then use that list of sed's as ones to test for truncation.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244   for lt_ac_prog in sed gsed; do
4245     for ac_exec_ext in '' $ac_executable_extensions; do
4246       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4247         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4248       fi
4249     done
4250   done
4251 done
4252 IFS=$as_save_IFS
4253 lt_ac_max=0
4254 lt_ac_count=0
4255 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4256 # along with /bin/sed that truncates output.
4257 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4258   test ! -f $lt_ac_sed && continue
4259   cat /dev/null > conftest.in
4260   lt_ac_count=0
4261   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4262   # Check for GNU sed and select it if it is found.
4263   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4264     lt_cv_path_SED=$lt_ac_sed
4265     break
4266   fi
4267   while true; do
4268     cat conftest.in conftest.in >conftest.tmp
4269     mv conftest.tmp conftest.in
4270     cp conftest.in conftest.nl
4271     echo >>conftest.nl
4272     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4273     cmp -s conftest.out conftest.nl || break
4274     # 10000 chars as input seems more than enough
4275     test $lt_ac_count -gt 10 && break
4276     lt_ac_count=`expr $lt_ac_count + 1`
4277     if test $lt_ac_count -gt $lt_ac_max; then
4278       lt_ac_max=$lt_ac_count
4279       lt_cv_path_SED=$lt_ac_sed
4280     fi
4281   done
4282 done
4283
4284 fi
4285
4286 SED=$lt_cv_path_SED
4287
4288 echo "$as_me:$LINENO: result: $SED" >&5
4289 echo "${ECHO_T}$SED" >&6
4290
4291 test -z "$SED" && SED=sed
4292 Xsed="$SED -e 1s/^X//"
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304 echo "$as_me:$LINENO: checking for egrep" >&5
4305 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4306 if test "${ac_cv_prog_egrep+set}" = set; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4310     then ac_cv_prog_egrep='grep -E'
4311     else ac_cv_prog_egrep='egrep'
4312     fi
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4315 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4316  EGREP=$ac_cv_prog_egrep
4317
4318
4319 echo "$as_me:$LINENO: checking for fgrep" >&5
4320 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4321 if test "${ac_cv_prog_fgrep+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4325     then ac_cv_prog_fgrep='grep -F'
4326     else ac_cv_prog_fgrep='fgrep'
4327     fi
4328 fi
4329 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4330 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4331  FGREP=$ac_cv_prog_fgrep
4332
4333
4334 test -z "$GREP" && GREP=grep
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4355 if test "${with_gnu_ld+set}" = set; then
4356   withval="$with_gnu_ld"
4357   test "$withval" = no || with_gnu_ld=yes
4358 else
4359   with_gnu_ld=no
4360 fi;
4361 ac_prog=ld
4362 if test "$GCC" = yes; then
4363   # Check if gcc -print-prog-name=ld gives a path.
4364   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4365 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4366   case $host in
4367   *-*-mingw*)
4368     # gcc leaves a trailing carriage return which upsets mingw
4369     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4370   *)
4371     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4372   esac
4373   case $ac_prog in
4374     # Accept absolute paths.
4375     [\\/]* | ?:[\\/]*)
4376       re_direlt='/[^/][^/]*/\.\./'
4377       # Canonicalize the pathname of ld
4378       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4379       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4380         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4381       done
4382       test -z "$LD" && LD="$ac_prog"
4383       ;;
4384   "")
4385     # If it fails, then pretend we aren't using GCC.
4386     ac_prog=ld
4387     ;;
4388   *)
4389     # If it is relative, then search for the first ld in PATH.
4390     with_gnu_ld=unknown
4391     ;;
4392   esac
4393 elif test "$with_gnu_ld" = yes; then
4394   echo "$as_me:$LINENO: checking for GNU ld" >&5
4395 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4396 else
4397   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4398 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4399 fi
4400 if test "${lt_cv_path_LD+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -z "$LD"; then
4404   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405   for ac_dir in $PATH; do
4406     IFS="$lt_save_ifs"
4407     test -z "$ac_dir" && ac_dir=.
4408     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4409       lt_cv_path_LD="$ac_dir/$ac_prog"
4410       # Check to see if the program is GNU ld.  I'd rather use --version,
4411       # but apparently some variants of GNU ld only accept -v.
4412       # Break only if it was the GNU/non-GNU ld that we prefer.
4413       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4414       *GNU* | *'with BFD'*)
4415         test "$with_gnu_ld" != no && break
4416         ;;
4417       *)
4418         test "$with_gnu_ld" != yes && break
4419         ;;
4420       esac
4421     fi
4422   done
4423   IFS="$lt_save_ifs"
4424 else
4425   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4426 fi
4427 fi
4428
4429 LD="$lt_cv_path_LD"
4430 if test -n "$LD"; then
4431   echo "$as_me:$LINENO: result: $LD" >&5
4432 echo "${ECHO_T}$LD" >&6
4433 else
4434   echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4436 fi
4437 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4438 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4439    { (exit 1); exit 1; }; }
4440 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4441 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4442 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4446 case `$LD -v 2>&1 </dev/null` in
4447 *GNU* | *'with BFD'*)
4448   lt_cv_prog_gnu_ld=yes
4449   ;;
4450 *)
4451   lt_cv_prog_gnu_ld=no
4452   ;;
4453 esac
4454 fi
4455 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4456 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4457 with_gnu_ld=$lt_cv_prog_gnu_ld
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4468 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4469 if test "${lt_cv_path_NM+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$NM"; then
4473   # Let the user override the test.
4474   lt_cv_path_NM="$NM"
4475 else
4476   lt_nm_to_check="${ac_tool_prefix}nm"
4477   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4478     lt_nm_to_check="$lt_nm_to_check nm"
4479   fi
4480   for lt_tmp_nm in $lt_nm_to_check; do
4481     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4482     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4483       IFS="$lt_save_ifs"
4484       test -z "$ac_dir" && ac_dir=.
4485       tmp_nm="$ac_dir/$lt_tmp_nm"
4486       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4487         # Check to see if the nm accepts a BSD-compat flag.
4488         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4489         #   nm: unknown option "B" ignored
4490         # Tru64's nm complains that /dev/null is an invalid object file
4491         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4492         */dev/null* | *'Invalid file or object type'*)
4493           lt_cv_path_NM="$tmp_nm -B"
4494           break
4495           ;;
4496         *)
4497           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4498           */dev/null*)
4499             lt_cv_path_NM="$tmp_nm -p"
4500             break
4501             ;;
4502           *)
4503             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4504             continue # so that we can try to find one that supports BSD flags
4505             ;;
4506           esac
4507           ;;
4508         esac
4509       fi
4510     done
4511     IFS="$lt_save_ifs"
4512   done
4513   : ${lt_cv_path_NM=no}
4514 fi
4515 fi
4516 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4517 echo "${ECHO_T}$lt_cv_path_NM" >&6
4518 if test "$lt_cv_path_NM" != "no"; then
4519   NM="$lt_cv_path_NM"
4520 else
4521   # Didn't find any BSD compatible name lister, look for dumpbin.
4522   if test -n "$ac_tool_prefix"; then
4523   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4524   do
4525     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   if test -n "$DUMPBIN"; then
4533   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540   for ac_exec_ext in '' $ac_executable_extensions; do
4541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544     break 2
4545   fi
4546 done
4547 done
4548
4549 fi
4550 fi
4551 DUMPBIN=$ac_cv_prog_DUMPBIN
4552 if test -n "$DUMPBIN"; then
4553   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4554 echo "${ECHO_T}$DUMPBIN" >&6
4555 else
4556   echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6
4558 fi
4559
4560     test -n "$DUMPBIN" && break
4561   done
4562 fi
4563 if test -z "$DUMPBIN"; then
4564   ac_ct_DUMPBIN=$DUMPBIN
4565   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4566 do
4567   # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   if test -n "$ac_ct_DUMPBIN"; then
4575   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589 done
4590
4591 fi
4592 fi
4593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4594 if test -n "$ac_ct_DUMPBIN"; then
4595   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4596 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4597 else
4598   echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4600 fi
4601
4602   test -n "$ac_ct_DUMPBIN" && break
4603 done
4604 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4605
4606   DUMPBIN=$ac_ct_DUMPBIN
4607 fi
4608
4609
4610   if test "$DUMPBIN" != ":"; then
4611     NM="$DUMPBIN"
4612   fi
4613 fi
4614 test -z "$NM" && NM=nm
4615
4616
4617
4618
4619
4620
4621 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4622 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4623 if test "${lt_cv_nm_interface+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   lt_cv_nm_interface="BSD nm"
4627   echo "int some_variable = 0;" > conftest.$ac_ext
4628   (eval echo "\"\$as_me:4628: $ac_compile\"" >&5)
4629   (eval "$ac_compile" 2>conftest.err)
4630   cat conftest.err >&5
4631   (eval echo "\"\$as_me:4631: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4632   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4633   cat conftest.err >&5
4634   (eval echo "\"\$as_me:4634: output\"" >&5)
4635   cat conftest.out >&5
4636   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4637     lt_cv_nm_interface="MS dumpbin"
4638   fi
4639   rm -f conftest*
4640 fi
4641 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4642 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4643
4644 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4646 LN_S=$as_ln_s
4647 if test "$LN_S" = "ln -s"; then
4648   echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6
4650 else
4651   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4652 echo "${ECHO_T}no, using $LN_S" >&6
4653 fi
4654
4655 # find the maximum length of command line arguments
4656 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4657 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4658 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661     i=0
4662   teststring="ABCD"
4663
4664   case $build_os in
4665   msdosdjgpp*)
4666     # On DJGPP, this test can blow up pretty badly due to problems in libc
4667     # (any single argument exceeding 2000 bytes causes a buffer overrun
4668     # during glob expansion).  Even if it were fixed, the result of this
4669     # check would be larger than it should be.
4670     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4671     ;;
4672
4673   gnu*)
4674     # Under GNU Hurd, this test is not required because there is
4675     # no limit to the length of command line arguments.
4676     # Libtool will interpret -1 as no limit whatsoever
4677     lt_cv_sys_max_cmd_len=-1;
4678     ;;
4679
4680   cygwin* | mingw* | cegcc*)
4681     # On Win9x/ME, this test blows up -- it succeeds, but takes
4682     # about 5 minutes as the teststring grows exponentially.
4683     # Worse, since 9x/ME are not pre-emptively multitasking,
4684     # you end up with a "frozen" computer, even though with patience
4685     # the test eventually succeeds (with a max line length of 256k).
4686     # Instead, let's just punt: use the minimum linelength reported by
4687     # all of the supported platforms: 8192 (on NT/2K/XP).
4688     lt_cv_sys_max_cmd_len=8192;
4689     ;;
4690
4691   amigaos*)
4692     # On AmigaOS with pdksh, this test takes hours, literally.
4693     # So we just punt and use a minimum line length of 8192.
4694     lt_cv_sys_max_cmd_len=8192;
4695     ;;
4696
4697   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4698     # This has been around since 386BSD, at least.  Likely further.
4699     if test -x /sbin/sysctl; then
4700       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4701     elif test -x /usr/sbin/sysctl; then
4702       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4703     else
4704       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4705     fi
4706     # And add a safety zone
4707     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4708     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4709     ;;
4710
4711   interix*)
4712     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4713     lt_cv_sys_max_cmd_len=196608
4714     ;;
4715
4716   osf*)
4717     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4718     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4719     # nice to cause kernel panics so lets avoid the loop below.
4720     # First set a reasonable default.
4721     lt_cv_sys_max_cmd_len=16384
4722     #
4723     if test -x /sbin/sysconfig; then
4724       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4725         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4726       esac
4727     fi
4728     ;;
4729   sco3.2v5*)
4730     lt_cv_sys_max_cmd_len=102400
4731     ;;
4732   sysv5* | sco5v6* | sysv4.2uw2*)
4733     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4734     if test -n "$kargmax"; then
4735       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4736     else
4737       lt_cv_sys_max_cmd_len=32768
4738     fi
4739     ;;
4740   *)
4741     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4742     if test -n "$lt_cv_sys_max_cmd_len"; then
4743       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4744       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4745     else
4746       # Make teststring a little bigger before we do anything with it.
4747       # a 1K string should be a reasonable start.
4748       for i in 1 2 3 4 5 6 7 8 ; do
4749         teststring=$teststring$teststring
4750       done
4751       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4752       # If test is not a shell built-in, we'll probably end up computing a
4753       # maximum length that is only half of the actual maximum length, but
4754       # we can't tell.
4755       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4756                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4757               test $i != 17 # 1/2 MB should be enough
4758       do
4759         i=`expr $i + 1`
4760         teststring=$teststring$teststring
4761       done
4762       # Only check the string length outside the loop.
4763       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4764       teststring=
4765       # Add a significant safety factor because C++ compilers can tack on
4766       # massive amounts of additional arguments before passing them to the
4767       # linker.  It appears as though 1/2 is a usable value.
4768       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4769     fi
4770     ;;
4771   esac
4772
4773 fi
4774
4775 if test -n $lt_cv_sys_max_cmd_len ; then
4776   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4777 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4778 else
4779   echo "$as_me:$LINENO: result: none" >&5
4780 echo "${ECHO_T}none" >&6
4781 fi
4782 max_cmd_len=$lt_cv_sys_max_cmd_len
4783
4784
4785
4786
4787
4788
4789 : ${CP="cp -f"}
4790 : ${MV="mv -f"}
4791 : ${RM="rm -f"}
4792
4793 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4794 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4795 # Try some XSI features
4796 xsi_shell=no
4797 ( _lt_dummy="a/b/c"
4798   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4799       = c,a/b,, \
4800     && eval 'test $(( 1 + 1 )) -eq 2 \
4801     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4802   && xsi_shell=yes
4803 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4804 echo "${ECHO_T}$xsi_shell" >&6
4805
4806
4807 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4808 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4809 lt_shell_append=no
4810 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4811     >/dev/null 2>&1 \
4812   && lt_shell_append=yes
4813 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4814 echo "${ECHO_T}$lt_shell_append" >&6
4815
4816
4817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4818   lt_unset=unset
4819 else
4820   lt_unset=false
4821 fi
4822
4823
4824
4825
4826
4827 # test EBCDIC or ASCII
4828 case `echo X|tr X '\101'` in
4829  A) # ASCII based system
4830     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4831   lt_SP2NL='tr \040 \012'
4832   lt_NL2SP='tr \015\012 \040\040'
4833   ;;
4834  *) # EBCDIC based system
4835   lt_SP2NL='tr \100 \n'
4836   lt_NL2SP='tr \r\n \100\100'
4837   ;;
4838 esac
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4849 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4850 if test "${lt_cv_ld_reload_flag+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   lt_cv_ld_reload_flag='-r'
4854 fi
4855 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4856 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4857 reload_flag=$lt_cv_ld_reload_flag
4858 case $reload_flag in
4859 "" | " "*) ;;
4860 *) reload_flag=" $reload_flag" ;;
4861 esac
4862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863 case $host_os in
4864   darwin*)
4865     if test "$GCC" = yes; then
4866       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4867     else
4868       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4869     fi
4870     ;;
4871 esac
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 if test -n "$ac_tool_prefix"; then
4882   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$OBJDUMP"; then
4890   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905
4906 fi
4907 fi
4908 OBJDUMP=$ac_cv_prog_OBJDUMP
4909 if test -n "$OBJDUMP"; then
4910   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4911 echo "${ECHO_T}$OBJDUMP" >&6
4912 else
4913   echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917 fi
4918 if test -z "$ac_cv_prog_OBJDUMP"; then
4919   ac_ct_OBJDUMP=$OBJDUMP
4920   # Extract the first word of "objdump", so it can be a program name with args.
4921 set dummy objdump; ac_word=$2
4922 echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4924 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   if test -n "$ac_ct_OBJDUMP"; then
4928   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935   for ac_exec_ext in '' $ac_executable_extensions; do
4936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942 done
4943
4944   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4945 fi
4946 fi
4947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4948 if test -n "$ac_ct_OBJDUMP"; then
4949   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4950 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4951 else
4952   echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6
4954 fi
4955
4956   OBJDUMP=$ac_ct_OBJDUMP
4957 else
4958   OBJDUMP="$ac_cv_prog_OBJDUMP"
4959 fi
4960
4961 test -z "$OBJDUMP" && OBJDUMP=objdump
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4972 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4973 if test "${lt_cv_deplibs_check_method+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   lt_cv_file_magic_cmd='$MAGIC_CMD'
4977 lt_cv_file_magic_test_file=
4978 lt_cv_deplibs_check_method='unknown'
4979 # Need to set the preceding variable on all platforms that support
4980 # interlibrary dependencies.
4981 # 'none' -- dependencies not supported.
4982 # `unknown' -- same as none, but documents that we really don't know.
4983 # 'pass_all' -- all dependencies passed with no checks.
4984 # 'test_compile' -- check by making test program.
4985 # 'file_magic [[regex]]' -- check by looking for files in library path
4986 # which responds to the $file_magic_cmd with a given extended regex.
4987 # If you have `file' or equivalent on your system and you're not sure
4988 # whether `pass_all' will *always* work, you probably want this one.
4989
4990 case $host_os in
4991 aix[4-9]*)
4992   lt_cv_deplibs_check_method=pass_all
4993   ;;
4994
4995 beos*)
4996   lt_cv_deplibs_check_method=pass_all
4997   ;;
4998
4999 bsdi[45]*)
5000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5001   lt_cv_file_magic_cmd='/usr/bin/file -L'
5002   lt_cv_file_magic_test_file=/shlib/libc.so
5003   ;;
5004
5005 cygwin*)
5006   # func_win32_libid is a shell function defined in ltmain.sh
5007   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008   lt_cv_file_magic_cmd='func_win32_libid'
5009   ;;
5010
5011 mingw* | pw32*)
5012   # Base MSYS/MinGW do not provide the 'file' command needed by
5013   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5014   # unless we find 'file', for example because we are cross-compiling.
5015   if ( file / ) >/dev/null 2>&1; then
5016     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5017     lt_cv_file_magic_cmd='func_win32_libid'
5018   else
5019     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5020     lt_cv_file_magic_cmd='$OBJDUMP -f'
5021   fi
5022   ;;
5023
5024 cegcc)
5025   # use the weaker test based on 'objdump'. See mingw*.
5026   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5027   lt_cv_file_magic_cmd='$OBJDUMP -f'
5028   ;;
5029
5030 darwin* | rhapsody*)
5031   lt_cv_deplibs_check_method=pass_all
5032   ;;
5033
5034 freebsd* | dragonfly*)
5035   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5036     case $host_cpu in
5037     i*86 )
5038       # Not sure whether the presence of OpenBSD here was a mistake.
5039       # Let's accept both of them until this is cleared up.
5040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5041       lt_cv_file_magic_cmd=/usr/bin/file
5042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5043       ;;
5044     esac
5045   else
5046     lt_cv_deplibs_check_method=pass_all
5047   fi
5048   ;;
5049
5050 gnu*)
5051   lt_cv_deplibs_check_method=pass_all
5052   ;;
5053
5054 hpux10.20* | hpux11*)
5055   lt_cv_file_magic_cmd=/usr/bin/file
5056   case $host_cpu in
5057   ia64*)
5058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5060     ;;
5061   hppa*64*)
5062     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]'
5063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5064     ;;
5065   *)
5066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5068     ;;
5069   esac
5070   ;;
5071
5072 interix[3-9]*)
5073   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5074   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5075   ;;
5076
5077 irix5* | irix6* | nonstopux*)
5078   case $LD in
5079   *-32|*"-32 ") libmagic=32-bit;;
5080   *-n32|*"-n32 ") libmagic=N32;;
5081   *-64|*"-64 ") libmagic=64-bit;;
5082   *) libmagic=never-match;;
5083   esac
5084   lt_cv_deplibs_check_method=pass_all
5085   ;;
5086
5087 # This must be Linux ELF.
5088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5089   lt_cv_deplibs_check_method=pass_all
5090   ;;
5091
5092 netbsd*)
5093   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5095   else
5096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5097   fi
5098   ;;
5099
5100 newos6*)
5101   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5102   lt_cv_file_magic_cmd=/usr/bin/file
5103   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5104   ;;
5105
5106 *nto* | *qnx*)
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109
5110 openbsd*)
5111   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5113   else
5114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115   fi
5116   ;;
5117
5118 osf3* | osf4* | osf5*)
5119   lt_cv_deplibs_check_method=pass_all
5120   ;;
5121
5122 rdos*)
5123   lt_cv_deplibs_check_method=pass_all
5124   ;;
5125
5126 solaris*)
5127   lt_cv_deplibs_check_method=pass_all
5128   ;;
5129
5130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5131   lt_cv_deplibs_check_method=pass_all
5132   ;;
5133
5134 sysv4 | sysv4.3*)
5135   case $host_vendor in
5136   motorola)
5137     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]'
5138     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5139     ;;
5140   ncr)
5141     lt_cv_deplibs_check_method=pass_all
5142     ;;
5143   sequent)
5144     lt_cv_file_magic_cmd='/bin/file'
5145     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5146     ;;
5147   sni)
5148     lt_cv_file_magic_cmd='/bin/file'
5149     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5150     lt_cv_file_magic_test_file=/lib/libc.so
5151     ;;
5152   siemens)
5153     lt_cv_deplibs_check_method=pass_all
5154     ;;
5155   pc)
5156     lt_cv_deplibs_check_method=pass_all
5157     ;;
5158   esac
5159   ;;
5160
5161 tpf*)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164 esac
5165
5166 fi
5167 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5168 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5169 file_magic_cmd=$lt_cv_file_magic_cmd
5170 deplibs_check_method=$lt_cv_deplibs_check_method
5171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 if test -n "$ac_tool_prefix"; then
5185   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5186 set dummy ${ac_tool_prefix}ar; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_AR+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   if test -n "$AR"; then
5193   ac_cv_prog_AR="$AR" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_exec_ext in '' $ac_executable_extensions; do
5201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202     ac_cv_prog_AR="${ac_tool_prefix}ar"
5203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207 done
5208
5209 fi
5210 fi
5211 AR=$ac_cv_prog_AR
5212 if test -n "$AR"; then
5213   echo "$as_me:$LINENO: result: $AR" >&5
5214 echo "${ECHO_T}$AR" >&6
5215 else
5216   echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5218 fi
5219
5220 fi
5221 if test -z "$ac_cv_prog_AR"; then
5222   ac_ct_AR=$AR
5223   # Extract the first word of "ar", so it can be a program name with args.
5224 set dummy ar; ac_word=$2
5225 echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -n "$ac_ct_AR"; then
5231   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238   for ac_exec_ext in '' $ac_executable_extensions; do
5239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_prog_ac_ct_AR="ar"
5241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245 done
5246
5247   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5248 fi
5249 fi
5250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251 if test -n "$ac_ct_AR"; then
5252   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5253 echo "${ECHO_T}$ac_ct_AR" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259   AR=$ac_ct_AR
5260 else
5261   AR="$ac_cv_prog_AR"
5262 fi
5263
5264 test -z "$AR" && AR=ar
5265 test -z "$AR_FLAGS" && AR_FLAGS=cru
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 if test -n "$ac_tool_prefix"; then
5278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}strip; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_STRIP+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   if test -n "$STRIP"; then
5286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293   for ac_exec_ext in '' $ac_executable_extensions; do
5294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300 done
5301
5302 fi
5303 fi
5304 STRIP=$ac_cv_prog_STRIP
5305 if test -n "$STRIP"; then
5306   echo "$as_me:$LINENO: result: $STRIP" >&5
5307 echo "${ECHO_T}$STRIP" >&6
5308 else
5309   echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5311 fi
5312
5313 fi
5314 if test -z "$ac_cv_prog_STRIP"; then
5315   ac_ct_STRIP=$STRIP
5316   # Extract the first word of "strip", so it can be a program name with args.
5317 set dummy strip; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   if test -n "$ac_ct_STRIP"; then
5324   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331   for ac_exec_ext in '' $ac_executable_extensions; do
5332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333     ac_cv_prog_ac_ct_STRIP="strip"
5334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338 done
5339
5340   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5341 fi
5342 fi
5343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5344 if test -n "$ac_ct_STRIP"; then
5345   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5346 echo "${ECHO_T}$ac_ct_STRIP" >&6
5347 else
5348   echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5350 fi
5351
5352   STRIP=$ac_ct_STRIP
5353 else
5354   STRIP="$ac_cv_prog_STRIP"
5355 fi
5356
5357 test -z "$STRIP" && STRIP=:
5358
5359
5360
5361
5362
5363
5364 if test -n "$ac_tool_prefix"; then
5365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_prog_RANLIB+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   if test -n "$RANLIB"; then
5373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380   for ac_exec_ext in '' $ac_executable_extensions; do
5381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387 done
5388
5389 fi
5390 fi
5391 RANLIB=$ac_cv_prog_RANLIB
5392 if test -n "$RANLIB"; then
5393   echo "$as_me:$LINENO: result: $RANLIB" >&5
5394 echo "${ECHO_T}$RANLIB" >&6
5395 else
5396   echo "$as_me:$LINENO: result: no" >&5
5397 echo "${ECHO_T}no" >&6
5398 fi
5399
5400 fi
5401 if test -z "$ac_cv_prog_RANLIB"; then
5402   ac_ct_RANLIB=$RANLIB
5403   # Extract the first word of "ranlib", so it can be a program name with args.
5404 set dummy ranlib; ac_word=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   if test -n "$ac_ct_RANLIB"; then
5411   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418   for ac_exec_ext in '' $ac_executable_extensions; do
5419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420     ac_cv_prog_ac_ct_RANLIB="ranlib"
5421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425 done
5426
5427   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5428 fi
5429 fi
5430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5431 if test -n "$ac_ct_RANLIB"; then
5432   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5433 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5434 else
5435   echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5437 fi
5438
5439   RANLIB=$ac_ct_RANLIB
5440 else
5441   RANLIB="$ac_cv_prog_RANLIB"
5442 fi
5443
5444 test -z "$RANLIB" && RANLIB=:
5445
5446
5447
5448
5449
5450
5451 # Determine commands to create old-style static archives.
5452 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5453 old_postinstall_cmds='chmod 644 $oldlib'
5454 old_postuninstall_cmds=
5455
5456 if test -n "$RANLIB"; then
5457   case $host_os in
5458   openbsd*)
5459     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5460     ;;
5461   *)
5462     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5463     ;;
5464   esac
5465   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5466 fi
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 # If no C compiler was specified, use CC.
5502 LTCC=${LTCC-"$CC"}
5503
5504 # If no C compiler flags were specified, use CFLAGS.
5505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5506
5507 # Allow CC to be a program name with arguments.
5508 compiler=$CC
5509
5510
5511 # Check for command to grab the raw symbol name followed by C symbol from nm.
5512 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5513 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5514 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517
5518 # These are sane defaults that work on at least a few old systems.
5519 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5520
5521 # Character class describing NM global symbol codes.
5522 symcode='[BCDEGRST]'
5523
5524 # Regexp to match symbols that can be accessed directly from C.
5525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5526
5527 # Define system-specific variables.
5528 case $host_os in
5529 aix*)
5530   symcode='[BCDT]'
5531   ;;
5532 cygwin* | mingw* | pw32* | cegcc*)
5533   symcode='[ABCDGISTW]'
5534   ;;
5535 hpux*)
5536   if test "$host_cpu" = ia64; then
5537     symcode='[ABCDEGRST]'
5538   fi
5539   ;;
5540 irix* | nonstopux*)
5541   symcode='[BCDEGRST]'
5542   ;;
5543 osf*)
5544   symcode='[BCDEGQRST]'
5545   ;;
5546 solaris*)
5547   symcode='[BDRT]'
5548   ;;
5549 sco3.2v5*)
5550   symcode='[DT]'
5551   ;;
5552 sysv4.2uw2*)
5553   symcode='[DT]'
5554   ;;
5555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5556   symcode='[ABDT]'
5557   ;;
5558 sysv4)
5559   symcode='[DFNSTU]'
5560   ;;
5561 esac
5562
5563 # If we're using GNU nm, then use its standard symbol codes.
5564 case `$NM -V 2>&1` in
5565 *GNU* | *'with BFD'*)
5566   symcode='[ABCDGIRSTW]' ;;
5567 esac
5568
5569 # Transform an extracted symbol line into a proper C declaration.
5570 # Some systems (esp. on ia64) link data and code symbols differently,
5571 # so use this general approach.
5572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5573
5574 # Transform an extracted symbol line into symbol name and symbol address
5575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5576 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5577
5578 # Handle CRLF in mingw tool chain
5579 opt_cr=
5580 case $build_os in
5581 mingw*)
5582   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5583   ;;
5584 esac
5585
5586 # Try without a prefix underscore, then with it.
5587 for ac_symprfx in "" "_"; do
5588
5589   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5590   symxfrm="\\1 $ac_symprfx\\2 \\2"
5591
5592   # Write the raw and C identifiers.
5593   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5594     # Fake it for dumpbin and say T for any non-static function
5595     # and D for any global variable.
5596     # Also find C++ and __fastcall symbols from MSVC++,
5597     # which start with @ or ?.
5598     lt_cv_sys_global_symbol_pipe="$AWK '"\
5599 "     {last_section=section; section=\$ 3};"\
5600 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5601 "     \$ 0!~/External *\|/{next};"\
5602 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5603 "     {if(hide[section]) next};"\
5604 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5605 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5606 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5607 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5608 "     ' prfx=^$ac_symprfx"
5609   else
5610     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5611   fi
5612
5613   # Check to see that the pipe works correctly.
5614   pipe_works=no
5615
5616   rm -f conftest*
5617   cat > conftest.$ac_ext <<_LT_EOF
5618 #ifdef __cplusplus
5619 extern "C" {
5620 #endif
5621 char nm_test_var;
5622 void nm_test_func(void);
5623 void nm_test_func(void){}
5624 #ifdef __cplusplus
5625 }
5626 #endif
5627 int main(){nm_test_var='a';nm_test_func();return(0);}
5628 _LT_EOF
5629
5630   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631   (eval $ac_compile) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; then
5635     # Now try to grab the symbols.
5636     nlist=conftest.nm
5637     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5638   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } && test -s "$nlist"; then
5642       # Try sorting and uniquifying the output.
5643       if sort "$nlist" | uniq > "$nlist"T; then
5644         mv -f "$nlist"T "$nlist"
5645       else
5646         rm -f "$nlist"T
5647       fi
5648
5649       # Make sure that we snagged all the symbols we need.
5650       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5651         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5652           cat <<_LT_EOF > conftest.$ac_ext
5653 #ifdef __cplusplus
5654 extern "C" {
5655 #endif
5656
5657 _LT_EOF
5658           # Now generate the symbol file.
5659           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5660
5661           cat <<_LT_EOF >> conftest.$ac_ext
5662
5663 /* The mapping between symbol names and symbols.  */
5664 const struct {
5665   const char *name;
5666   void       *address;
5667 }
5668 lt__PROGRAM__LTX_preloaded_symbols[] =
5669 {
5670   { "@PROGRAM@", (void *) 0 },
5671 _LT_EOF
5672           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5673           cat <<\_LT_EOF >> conftest.$ac_ext
5674   {0, (void *) 0}
5675 };
5676
5677 /* This works around a problem in FreeBSD linker */
5678 #ifdef FREEBSD_WORKAROUND
5679 static const void *lt_preloaded_setup() {
5680   return lt__PROGRAM__LTX_preloaded_symbols;
5681 }
5682 #endif
5683
5684 #ifdef __cplusplus
5685 }
5686 #endif
5687 _LT_EOF
5688           # Now try linking the two files.
5689           mv conftest.$ac_objext conftstm.$ac_objext
5690           lt_save_LIBS="$LIBS"
5691           lt_save_CFLAGS="$CFLAGS"
5692           LIBS="conftstm.$ac_objext"
5693           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5694           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695   (eval $ac_link) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5699             pipe_works=yes
5700           fi
5701           LIBS="$lt_save_LIBS"
5702           CFLAGS="$lt_save_CFLAGS"
5703         else
5704           echo "cannot find nm_test_func in $nlist" >&5
5705         fi
5706       else
5707         echo "cannot find nm_test_var in $nlist" >&5
5708       fi
5709     else
5710       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5711     fi
5712   else
5713     echo "$progname: failed program was:" >&5
5714     cat conftest.$ac_ext >&5
5715   fi
5716   rm -rf conftest* conftst*
5717
5718   # Do not use the global_symbol_pipe unless it works.
5719   if test "$pipe_works" = yes; then
5720     break
5721   else
5722     lt_cv_sys_global_symbol_pipe=
5723   fi
5724 done
5725
5726 fi
5727
5728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5729   lt_cv_sys_global_symbol_to_cdecl=
5730 fi
5731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5732   echo "$as_me:$LINENO: result: failed" >&5
5733 echo "${ECHO_T}failed" >&6
5734 else
5735   echo "$as_me:$LINENO: result: ok" >&5
5736 echo "${ECHO_T}ok" >&6
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5762 if test "${enable_libtool_lock+set}" = set; then
5763   enableval="$enable_libtool_lock"
5764
5765 fi;
5766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5767
5768 # Some flags need to be propagated to the compiler or linker for good
5769 # libtool support.
5770 case $host in
5771 ia64-*-hpux*)
5772   # Find out which ABI we are using.
5773   echo 'int i;' > conftest.$ac_ext
5774   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775   (eval $ac_compile) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; then
5779     case `/usr/bin/file conftest.$ac_objext` in
5780       *ELF-32*)
5781         HPUX_IA64_MODE="32"
5782         ;;
5783       *ELF-64*)
5784         HPUX_IA64_MODE="64"
5785         ;;
5786     esac
5787   fi
5788   rm -rf conftest*
5789   ;;
5790 *-*-irix6*)
5791   # Find out which ABI we are using.
5792   echo '#line 5792 "configure"' > conftest.$ac_ext
5793   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794   (eval $ac_compile) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; then
5798     if test "$lt_cv_prog_gnu_ld" = yes; then
5799       case `/usr/bin/file conftest.$ac_objext` in
5800         *32-bit*)
5801           LD="${LD-ld} -melf32bsmip"
5802           ;;
5803         *N32*)
5804           LD="${LD-ld} -melf32bmipn32"
5805           ;;
5806         *64-bit*)
5807           LD="${LD-ld} -melf64bmip"
5808         ;;
5809       esac
5810     else
5811       case `/usr/bin/file conftest.$ac_objext` in
5812         *32-bit*)
5813           LD="${LD-ld} -32"
5814           ;;
5815         *N32*)
5816           LD="${LD-ld} -n32"
5817           ;;
5818         *64-bit*)
5819           LD="${LD-ld} -64"
5820           ;;
5821       esac
5822     fi
5823   fi
5824   rm -rf conftest*
5825   ;;
5826
5827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5829   # Find out which ABI we are using.
5830   echo 'int i;' > conftest.$ac_ext
5831   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832   (eval $ac_compile) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; then
5836     case `/usr/bin/file conftest.o` in
5837       *32-bit*)
5838         case $host in
5839           x86_64-*kfreebsd*-gnu)
5840             LD="${LD-ld} -m elf_i386_fbsd"
5841             ;;
5842           x86_64-*linux*)
5843             LD="${LD-ld} -m elf_i386"
5844             ;;
5845           ppc64-*linux*|powerpc64-*linux*)
5846             LD="${LD-ld} -m elf32ppclinux"
5847             ;;
5848           s390x-*linux*)
5849             LD="${LD-ld} -m elf_s390"
5850             ;;
5851           sparc64-*linux*)
5852             LD="${LD-ld} -m elf32_sparc"
5853             ;;
5854         esac
5855         ;;
5856       *64-bit*)
5857         case $host in
5858           x86_64-*kfreebsd*-gnu)
5859             LD="${LD-ld} -m elf_x86_64_fbsd"
5860             ;;
5861           x86_64-*linux*)
5862             LD="${LD-ld} -m elf_x86_64"
5863             ;;
5864           ppc*-*linux*|powerpc*-*linux*)
5865             LD="${LD-ld} -m elf64ppc"
5866             ;;
5867           s390*-*linux*|s390*-*tpf*)
5868             LD="${LD-ld} -m elf64_s390"
5869             ;;
5870           sparc*-*linux*)
5871             LD="${LD-ld} -m elf64_sparc"
5872             ;;
5873         esac
5874         ;;
5875     esac
5876   fi
5877   rm -rf conftest*
5878   ;;
5879
5880 *-*-sco3.2v5*)
5881   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5882   SAVE_CFLAGS="$CFLAGS"
5883   CFLAGS="$CFLAGS -belf"
5884   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5885 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5886 if test "${lt_cv_cc_needs_belf+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   ac_ext=c
5890 ac_cpp='$CPP $CPPFLAGS'
5891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5894
5895      if test x$gcc_no_link = xyes; then
5896   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5898    { (exit 1); exit 1; }; }
5899 fi
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906
5907 int
5908 main ()
5909 {
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917   (eval $ac_link) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_c_werror_flag"
5925                          || test ! -s conftest.err'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; } &&
5931          { ac_try='test -s conftest$ac_exeext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   lt_cv_cc_needs_belf=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 lt_cv_cc_needs_belf=no
5943 fi
5944 rm -f conftest.err conftest.$ac_objext \
5945       conftest$ac_exeext conftest.$ac_ext
5946      ac_ext=c
5947 ac_cpp='$CPP $CPPFLAGS'
5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951
5952 fi
5953 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5954 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5955   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5956     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5957     CFLAGS="$SAVE_CFLAGS"
5958   fi
5959   ;;
5960 sparc*-*solaris*)
5961   # Find out which ABI we are using.
5962   echo 'int i;' > conftest.$ac_ext
5963   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; then
5968     case `/usr/bin/file conftest.o` in
5969     *64-bit*)
5970       case $lt_cv_prog_gnu_ld in
5971       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5972       *)
5973         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5974           LD="${LD-ld} -64"
5975         fi
5976         ;;
5977       esac
5978       ;;
5979     esac
5980   fi
5981   rm -rf conftest*
5982   ;;
5983 esac
5984
5985 need_locks="$enable_libtool_lock"
5986
5987
5988   case $host_os in
5989     rhapsody* | darwin*)
5990     if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   if test -n "$DSYMUTIL"; then
5999   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006   for ac_exec_ext in '' $ac_executable_extensions; do
6007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013 done
6014
6015 fi
6016 fi
6017 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6018 if test -n "$DSYMUTIL"; then
6019   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6020 echo "${ECHO_T}$DSYMUTIL" >&6
6021 else
6022   echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6024 fi
6025
6026 fi
6027 if test -z "$ac_cv_prog_DSYMUTIL"; then
6028   ac_ct_DSYMUTIL=$DSYMUTIL
6029   # Extract the first word of "dsymutil", so it can be a program name with args.
6030 set dummy dsymutil; ac_word=$2
6031 echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   if test -n "$ac_ct_DSYMUTIL"; then
6037   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044   for ac_exec_ext in '' $ac_executable_extensions; do
6045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051 done
6052
6053   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6054 fi
6055 fi
6056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6057 if test -n "$ac_ct_DSYMUTIL"; then
6058   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6059 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6060 else
6061   echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6
6063 fi
6064
6065   DSYMUTIL=$ac_ct_DSYMUTIL
6066 else
6067   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6068 fi
6069
6070     if test -n "$ac_tool_prefix"; then
6071   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6073 echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   if test -n "$NMEDIT"; then
6079   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086   for ac_exec_ext in '' $ac_executable_extensions; do
6087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093 done
6094
6095 fi
6096 fi
6097 NMEDIT=$ac_cv_prog_NMEDIT
6098 if test -n "$NMEDIT"; then
6099   echo "$as_me:$LINENO: result: $NMEDIT" >&5
6100 echo "${ECHO_T}$NMEDIT" >&6
6101 else
6102   echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6104 fi
6105
6106 fi
6107 if test -z "$ac_cv_prog_NMEDIT"; then
6108   ac_ct_NMEDIT=$NMEDIT
6109   # Extract the first word of "nmedit", so it can be a program name with args.
6110 set dummy nmedit; ac_word=$2
6111 echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   if test -n "$ac_ct_NMEDIT"; then
6117   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124   for ac_exec_ext in '' $ac_executable_extensions; do
6125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131 done
6132
6133   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6134 fi
6135 fi
6136 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6137 if test -n "$ac_ct_NMEDIT"; then
6138   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6139 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6140 else
6141   echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6
6143 fi
6144
6145   NMEDIT=$ac_ct_NMEDIT
6146 else
6147   NMEDIT="$ac_cv_prog_NMEDIT"
6148 fi
6149
6150     if test -n "$ac_tool_prefix"; then
6151   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6153 echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155 if test "${ac_cv_prog_LIPO+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   if test -n "$LIPO"; then
6159   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174
6175 fi
6176 fi
6177 LIPO=$ac_cv_prog_LIPO
6178 if test -n "$LIPO"; then
6179   echo "$as_me:$LINENO: result: $LIPO" >&5
6180 echo "${ECHO_T}$LIPO" >&6
6181 else
6182   echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6184 fi
6185
6186 fi
6187 if test -z "$ac_cv_prog_LIPO"; then
6188   ac_ct_LIPO=$LIPO
6189   # Extract the first word of "lipo", so it can be a program name with args.
6190 set dummy lipo; ac_word=$2
6191 echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6193 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$ac_ct_LIPO"; then
6197   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206     ac_cv_prog_ac_ct_LIPO="lipo"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212
6213   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6214 fi
6215 fi
6216 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6217 if test -n "$ac_ct_LIPO"; then
6218   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6219 echo "${ECHO_T}$ac_ct_LIPO" >&6
6220 else
6221   echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6
6223 fi
6224
6225   LIPO=$ac_ct_LIPO
6226 else
6227   LIPO="$ac_cv_prog_LIPO"
6228 fi
6229
6230     if test -n "$ac_tool_prefix"; then
6231   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}otool; ac_word=$2
6233 echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235 if test "${ac_cv_prog_OTOOL+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   if test -n "$OTOOL"; then
6239   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254
6255 fi
6256 fi
6257 OTOOL=$ac_cv_prog_OTOOL
6258 if test -n "$OTOOL"; then
6259   echo "$as_me:$LINENO: result: $OTOOL" >&5
6260 echo "${ECHO_T}$OTOOL" >&6
6261 else
6262   echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6264 fi
6265
6266 fi
6267 if test -z "$ac_cv_prog_OTOOL"; then
6268   ac_ct_OTOOL=$OTOOL
6269   # Extract the first word of "otool", so it can be a program name with args.
6270 set dummy otool; ac_word=$2
6271 echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6273 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   if test -n "$ac_ct_OTOOL"; then
6277   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286     ac_cv_prog_ac_ct_OTOOL="otool"
6287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292
6293   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6294 fi
6295 fi
6296 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6297 if test -n "$ac_ct_OTOOL"; then
6298   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6299 echo "${ECHO_T}$ac_ct_OTOOL" >&6
6300 else
6301   echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6
6303 fi
6304
6305   OTOOL=$ac_ct_OTOOL
6306 else
6307   OTOOL="$ac_cv_prog_OTOOL"
6308 fi
6309
6310     if test -n "$ac_tool_prefix"; then
6311   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   if test -n "$OTOOL64"; then
6319   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326   for ac_exec_ext in '' $ac_executable_extensions; do
6327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333 done
6334
6335 fi
6336 fi
6337 OTOOL64=$ac_cv_prog_OTOOL64
6338 if test -n "$OTOOL64"; then
6339   echo "$as_me:$LINENO: result: $OTOOL64" >&5
6340 echo "${ECHO_T}$OTOOL64" >&6
6341 else
6342   echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6344 fi
6345
6346 fi
6347 if test -z "$ac_cv_prog_OTOOL64"; then
6348   ac_ct_OTOOL64=$OTOOL64
6349   # Extract the first word of "otool64", so it can be a program name with args.
6350 set dummy otool64; ac_word=$2
6351 echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6353 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   if test -n "$ac_ct_OTOOL64"; then
6357   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366     ac_cv_prog_ac_ct_OTOOL64="otool64"
6367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372
6373   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6374 fi
6375 fi
6376 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6377 if test -n "$ac_ct_OTOOL64"; then
6378   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6379 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6380 else
6381   echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6
6383 fi
6384
6385   OTOOL64=$ac_ct_OTOOL64
6386 else
6387   OTOOL64="$ac_cv_prog_OTOOL64"
6388 fi
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6417 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6418 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   lt_cv_apple_cc_single_mod=no
6422       if test -z "${LT_MULTI_MODULE}"; then
6423         # By default we will add the -single_module flag. You can override
6424         # by either setting the environment variable LT_MULTI_MODULE
6425         # non-empty at configure time, or by adding -multi_module to the
6426         # link flags.
6427         rm -rf libconftest.dylib*
6428         echo "int foo(void){return 1;}" > conftest.c
6429         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430 -dynamiclib -Wl,-single_module conftest.c" >&5
6431         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6433         _lt_result=$?
6434         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6435           lt_cv_apple_cc_single_mod=yes
6436         else
6437           cat conftest.err >&5
6438         fi
6439         rm -rf libconftest.dylib*
6440         rm -f conftest.*
6441       fi
6442 fi
6443 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6444 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6445     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6446 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6447 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   lt_cv_ld_exported_symbols_list=no
6451       save_LDFLAGS=$LDFLAGS
6452       echo "_main" > conftest.sym
6453       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6454       if test x$gcc_no_link = xyes; then
6455   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6457    { (exit 1); exit 1; }; }
6458 fi
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465
6466 int
6467 main ()
6468 {
6469
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476   (eval $ac_link) 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -z "$ac_c_werror_flag"
6484                          || test ! -s conftest.err'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; } &&
6490          { ac_try='test -s conftest$ac_exeext'
6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492   (eval $ac_try) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   lt_cv_ld_exported_symbols_list=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 lt_cv_ld_exported_symbols_list=no
6502 fi
6503 rm -f conftest.err conftest.$ac_objext \
6504       conftest$ac_exeext conftest.$ac_ext
6505         LDFLAGS="$save_LDFLAGS"
6506
6507 fi
6508 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6509 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6510     case $host_os in
6511     rhapsody* | darwin1.[012])
6512       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6513     darwin1.*)
6514       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6515     darwin*) # darwin 5.x on
6516       # if running on 10.5 or later, the deployment target defaults
6517       # to the OS version, if on x86, and 10.4, the deployment
6518       # target defaults to 10.4. Don't you love it?
6519       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6520         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6521           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6522         10.[012]*)
6523           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6524         10.*)
6525           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6526       esac
6527     ;;
6528   esac
6529     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6530       _lt_dar_single_mod='$single_module'
6531     fi
6532     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6533       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6534     else
6535       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6536     fi
6537     if test "$DSYMUTIL" != ":"; then
6538       _lt_dsymutil='~$DSYMUTIL $lib || :'
6539     else
6540       _lt_dsymutil=
6541     fi
6542     ;;
6543   esac
6544
6545 ac_ext=c
6546 ac_cpp='$CPP $CPPFLAGS'
6547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6552 # On Suns, sometimes $CPP names a directory.
6553 if test -n "$CPP" && test -d "$CPP"; then
6554   CPP=
6555 fi
6556 if test -z "$CPP"; then
6557   if test "${ac_cv_prog_CPP+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560       # Double quotes because CPP needs to be expanded
6561     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6562     do
6563       ac_preproc_ok=false
6564 for ac_c_preproc_warn_flag in '' yes
6565 do
6566   # Use a header file that comes with gcc, so configuring glibc
6567   # with a fresh cross-compiler works.
6568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569   # <limits.h> exists even on freestanding compilers.
6570   # On the NeXT, cc -E runs the code through the compiler's parser,
6571   # not just through cpp. "Syntax error" is here to catch this case.
6572   cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 #ifdef __STDC__
6579 # include <limits.h>
6580 #else
6581 # include <assert.h>
6582 #endif
6583                      Syntax error
6584 _ACEOF
6585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6587   ac_status=$?
6588   grep -v '^ *+' conftest.er1 >conftest.err
6589   rm -f conftest.er1
6590   cat conftest.err >&5
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } >/dev/null; then
6593   if test -s conftest.err; then
6594     ac_cpp_err=$ac_c_preproc_warn_flag
6595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6596   else
6597     ac_cpp_err=
6598   fi
6599 else
6600   ac_cpp_err=yes
6601 fi
6602 if test -z "$ac_cpp_err"; then
6603   :
6604 else
6605   echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608   # Broken: fails on valid input.
6609 continue
6610 fi
6611 rm -f conftest.err conftest.$ac_ext
6612
6613   # OK, works on sane cases.  Now check whether non-existent headers
6614   # can be detected and how.
6615   cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h.  */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h.  */
6621 #include <ac_nonexistent.h>
6622 _ACEOF
6623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6625   ac_status=$?
6626   grep -v '^ *+' conftest.er1 >conftest.err
6627   rm -f conftest.er1
6628   cat conftest.err >&5
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } >/dev/null; then
6631   if test -s conftest.err; then
6632     ac_cpp_err=$ac_c_preproc_warn_flag
6633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6634   else
6635     ac_cpp_err=
6636   fi
6637 else
6638   ac_cpp_err=yes
6639 fi
6640 if test -z "$ac_cpp_err"; then
6641   # Broken: success on invalid input.
6642 continue
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647   # Passes both tests.
6648 ac_preproc_ok=:
6649 break
6650 fi
6651 rm -f conftest.err conftest.$ac_ext
6652
6653 done
6654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6655 rm -f conftest.err conftest.$ac_ext
6656 if $ac_preproc_ok; then
6657   break
6658 fi
6659
6660     done
6661     ac_cv_prog_CPP=$CPP
6662
6663 fi
6664   CPP=$ac_cv_prog_CPP
6665 else
6666   ac_cv_prog_CPP=$CPP
6667 fi
6668 echo "$as_me:$LINENO: result: $CPP" >&5
6669 echo "${ECHO_T}$CPP" >&6
6670 ac_preproc_ok=false
6671 for ac_c_preproc_warn_flag in '' yes
6672 do
6673   # Use a header file that comes with gcc, so configuring glibc
6674   # with a fresh cross-compiler works.
6675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6676   # <limits.h> exists even on freestanding compilers.
6677   # On the NeXT, cc -E runs the code through the compiler's parser,
6678   # not just through cpp. "Syntax error" is here to catch this case.
6679   cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h.  */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h.  */
6685 #ifdef __STDC__
6686 # include <limits.h>
6687 #else
6688 # include <assert.h>
6689 #endif
6690                      Syntax error
6691 _ACEOF
6692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694   ac_status=$?
6695   grep -v '^ *+' conftest.er1 >conftest.err
6696   rm -f conftest.er1
6697   cat conftest.err >&5
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); } >/dev/null; then
6700   if test -s conftest.err; then
6701     ac_cpp_err=$ac_c_preproc_warn_flag
6702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6703   else
6704     ac_cpp_err=
6705   fi
6706 else
6707   ac_cpp_err=yes
6708 fi
6709 if test -z "$ac_cpp_err"; then
6710   :
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715   # Broken: fails on valid input.
6716 continue
6717 fi
6718 rm -f conftest.err conftest.$ac_ext
6719
6720   # OK, works on sane cases.  Now check whether non-existent headers
6721   # can be detected and how.
6722   cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728 #include <ac_nonexistent.h>
6729 _ACEOF
6730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6732   ac_status=$?
6733   grep -v '^ *+' conftest.er1 >conftest.err
6734   rm -f conftest.er1
6735   cat conftest.err >&5
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } >/dev/null; then
6738   if test -s conftest.err; then
6739     ac_cpp_err=$ac_c_preproc_warn_flag
6740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6741   else
6742     ac_cpp_err=
6743   fi
6744 else
6745   ac_cpp_err=yes
6746 fi
6747 if test -z "$ac_cpp_err"; then
6748   # Broken: success on invalid input.
6749 continue
6750 else
6751   echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6753
6754   # Passes both tests.
6755 ac_preproc_ok=:
6756 break
6757 fi
6758 rm -f conftest.err conftest.$ac_ext
6759
6760 done
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then
6764   :
6765 else
6766   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6767 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6769 See \`config.log' for more details." >&5
6770 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6771 See \`config.log' for more details." >&2;}
6772    { (exit 1); exit 1; }; }; }
6773 fi
6774
6775 ac_ext=c
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780
6781
6782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <stdlib.h>
6794 #include <stdarg.h>
6795 #include <string.h>
6796 #include <float.h>
6797
6798 int
6799 main ()
6800 {
6801
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808   (eval $ac_compile) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } &&
6815          { ac_try='test -z "$ac_c_werror_flag"
6816                          || test ! -s conftest.err'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; } &&
6822          { ac_try='test -s conftest.$ac_objext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_cv_header_stdc=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836
6837 if test $ac_cv_header_stdc = yes; then
6838   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6839   cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h.  */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h.  */
6845 #include <string.h>
6846
6847 _ACEOF
6848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6849   $EGREP "memchr" >/dev/null 2>&1; then
6850   :
6851 else
6852   ac_cv_header_stdc=no
6853 fi
6854 rm -f conftest*
6855
6856 fi
6857
6858 if test $ac_cv_header_stdc = yes; then
6859   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6860   cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866 #include <stdlib.h>
6867
6868 _ACEOF
6869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6870   $EGREP "free" >/dev/null 2>&1; then
6871   :
6872 else
6873   ac_cv_header_stdc=no
6874 fi
6875 rm -f conftest*
6876
6877 fi
6878
6879 if test $ac_cv_header_stdc = yes; then
6880   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6881   if test "$cross_compiling" = yes; then
6882   :
6883 else
6884   cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890 #include <ctype.h>
6891 #if ((' ' & 0x0FF) == 0x020)
6892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6894 #else
6895 # define ISLOWER(c) \
6896                    (('a' <= (c) && (c) <= 'i') \
6897                      || ('j' <= (c) && (c) <= 'r') \
6898                      || ('s' <= (c) && (c) <= 'z'))
6899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900 #endif
6901
6902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6903 int
6904 main ()
6905 {
6906   int i;
6907   for (i = 0; i < 256; i++)
6908     if (XOR (islower (i), ISLOWER (i))
6909         || toupper (i) != TOUPPER (i))
6910       exit(2);
6911   exit (0);
6912 }
6913 _ACEOF
6914 rm -f conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916   (eval $ac_link) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   :
6926 else
6927   echo "$as_me: program exited with status $ac_status" >&5
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ( exit $ac_status )
6932 ac_cv_header_stdc=no
6933 fi
6934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 fi
6936 fi
6937 fi
6938 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6939 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6940 if test $ac_cv_header_stdc = yes; then
6941
6942 cat >>confdefs.h <<\_ACEOF
6943 #define STDC_HEADERS 1
6944 _ACEOF
6945
6946 fi
6947
6948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959                   inttypes.h stdint.h unistd.h
6960 do
6961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 $ac_includes_default
6974
6975 #include <$ac_header>
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979   (eval $ac_compile) 2>conftest.er1
6980   ac_status=$?
6981   grep -v '^ *+' conftest.er1 >conftest.err
6982   rm -f conftest.er1
6983   cat conftest.err >&5
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } &&
6986          { ac_try='test -z "$ac_c_werror_flag"
6987                          || test ! -s conftest.err'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; } &&
6993          { ac_try='test -s conftest.$ac_objext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   eval "$as_ac_Header=yes"
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 eval "$as_ac_Header=no"
7005 fi
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7011   cat >>confdefs.h <<_ACEOF
7012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013 _ACEOF
7014
7015 fi
7016
7017 done
7018
7019
7020
7021 for ac_header in dlfcn.h
7022 do
7023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 echo "$as_me:$LINENO: checking for $ac_header" >&5
7025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7035 $ac_includes_default
7036
7037 #include <$ac_header>
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041   (eval $ac_compile) 2>conftest.er1
7042   ac_status=$?
7043   grep -v '^ *+' conftest.er1 >conftest.err
7044   rm -f conftest.er1
7045   cat conftest.err >&5
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); } &&
7048          { ac_try='test -z "$ac_c_werror_flag"
7049                          || test ! -s conftest.err'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; } &&
7055          { ac_try='test -s conftest.$ac_objext'
7056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057   (eval $ac_try) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; }; then
7061   eval "$as_ac_Header=yes"
7062 else
7063   echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066 eval "$as_ac_Header=no"
7067 fi
7068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7073   cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7075 _ACEOF
7076
7077 fi
7078
7079 done
7080
7081
7082
7083 ac_ext=cc
7084 ac_cpp='$CXXCPP $CPPFLAGS'
7085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7088 if test -n "$ac_tool_prefix"; then
7089   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7090   do
7091     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_CXX+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   if test -n "$CXX"; then
7099   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114
7115 fi
7116 fi
7117 CXX=$ac_cv_prog_CXX
7118 if test -n "$CXX"; then
7119   echo "$as_me:$LINENO: result: $CXX" >&5
7120 echo "${ECHO_T}$CXX" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126     test -n "$CXX" && break
7127   done
7128 fi
7129 if test -z "$CXX"; then
7130   ac_ct_CXX=$CXX
7131   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7132 do
7133   # Extract the first word of "$ac_prog", so it can be a program name with args.
7134 set dummy $ac_prog; ac_word=$2
7135 echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7137 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   if test -n "$ac_ct_CXX"; then
7141   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148   for ac_exec_ext in '' $ac_executable_extensions; do
7149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150     ac_cv_prog_ac_ct_CXX="$ac_prog"
7151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155 done
7156
7157 fi
7158 fi
7159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7160 if test -n "$ac_ct_CXX"; then
7161   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7162 echo "${ECHO_T}$ac_ct_CXX" >&6
7163 else
7164   echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7166 fi
7167
7168   test -n "$ac_ct_CXX" && break
7169 done
7170 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7171
7172   CXX=$ac_ct_CXX
7173 fi
7174
7175
7176 # Provide some information about the compiler.
7177 echo "$as_me:$LINENO:" \
7178      "checking for C++ compiler version" >&5
7179 ac_compiler=`set X $ac_compile; echo $2`
7180 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7181   (eval $ac_compiler --version </dev/null >&5) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }
7185 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7186   (eval $ac_compiler -v </dev/null >&5) 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }
7190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7191   (eval $ac_compiler -V </dev/null >&5) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }
7195
7196 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7197 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7198 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207
7208 int
7209 main ()
7210 {
7211 #ifndef __GNUC__
7212        choke me
7213 #endif
7214
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221   (eval $ac_compile) 2>conftest.er1
7222   ac_status=$?
7223   grep -v '^ *+' conftest.er1 >conftest.err
7224   rm -f conftest.er1
7225   cat conftest.err >&5
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); } &&
7228          { ac_try='test -z "$ac_cxx_werror_flag"
7229                          || test ! -s conftest.err'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; } &&
7235          { ac_try='test -s conftest.$ac_objext'
7236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237   (eval $ac_try) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); }; }; then
7241   ac_compiler_gnu=yes
7242 else
7243   echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 ac_compiler_gnu=no
7247 fi
7248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7249 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7250
7251 fi
7252 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7253 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7254 GXX=`test $ac_compiler_gnu = yes && echo yes`
7255 ac_test_CXXFLAGS=${CXXFLAGS+set}
7256 ac_save_CXXFLAGS=$CXXFLAGS
7257 CXXFLAGS="-g"
7258 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7259 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7260 if test "${ac_cv_prog_cxx_g+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269
7270 int
7271 main ()
7272 {
7273
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280   (eval $ac_compile) 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } &&
7287          { ac_try='test -z "$ac_cxx_werror_flag"
7288                          || test ! -s conftest.err'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; } &&
7294          { ac_try='test -s conftest.$ac_objext'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; }; then
7300   ac_cv_prog_cxx_g=yes
7301 else
7302   echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 ac_cv_prog_cxx_g=no
7306 fi
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7310 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7311 if test "$ac_test_CXXFLAGS" = set; then
7312   CXXFLAGS=$ac_save_CXXFLAGS
7313 elif test $ac_cv_prog_cxx_g = yes; then
7314   if test "$GXX" = yes; then
7315     CXXFLAGS="-g -O2"
7316   else
7317     CXXFLAGS="-g"
7318   fi
7319 else
7320   if test "$GXX" = yes; then
7321     CXXFLAGS="-O2"
7322   else
7323     CXXFLAGS=
7324   fi
7325 fi
7326 for ac_declaration in \
7327    '' \
7328    'extern "C" void std::exit (int) throw (); using std::exit;' \
7329    'extern "C" void std::exit (int); using std::exit;' \
7330    'extern "C" void exit (int) throw ();' \
7331    'extern "C" void exit (int);' \
7332    'void exit (int);'
7333 do
7334   cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340 $ac_declaration
7341 #include <stdlib.h>
7342 int
7343 main ()
7344 {
7345 exit (42);
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352   (eval $ac_compile) 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } &&
7359          { ac_try='test -z "$ac_cxx_werror_flag"
7360                          || test ! -s conftest.err'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; } &&
7366          { ac_try='test -s conftest.$ac_objext'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; }; then
7372   :
7373 else
7374   echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 continue
7378 fi
7379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7380   cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386 $ac_declaration
7387 int
7388 main ()
7389 {
7390 exit (42);
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397   (eval $ac_compile) 2>conftest.er1
7398   ac_status=$?
7399   grep -v '^ *+' conftest.er1 >conftest.err
7400   rm -f conftest.er1
7401   cat conftest.err >&5
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } &&
7404          { ac_try='test -z "$ac_cxx_werror_flag"
7405                          || test ! -s conftest.err'
7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407   (eval $ac_try) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); }; } &&
7411          { ac_try='test -s conftest.$ac_objext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   break
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 fi
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 done
7425 rm -f conftest*
7426 if test -n "$ac_declaration"; then
7427   echo '#ifdef __cplusplus' >>confdefs.h
7428   echo $ac_declaration      >>confdefs.h
7429   echo '#endif'             >>confdefs.h
7430 fi
7431
7432 ac_ext=c
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437
7438 depcc="$CXX"  am_compiler_list=
7439
7440 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7442 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7446   # We make a subdir and do the tests there.  Otherwise we can end up
7447   # making bogus files that we don't know about and never remove.  For
7448   # instance it was reported that on HP-UX the gcc test will end up
7449   # making a dummy file named `D' -- because `-MD' means `put the output
7450   # in D'.
7451   mkdir conftest.dir
7452   # Copy depcomp to subdir because otherwise we won't find it if we're
7453   # using a relative directory.
7454   cp "$am_depcomp" conftest.dir
7455   cd conftest.dir
7456   # We will build objects and dependencies in a subdirectory because
7457   # it helps to detect inapplicable dependency modes.  For instance
7458   # both Tru64's cc and ICC support -MD to output dependencies as a
7459   # side effect of compilation, but ICC will put the dependencies in
7460   # the current directory while Tru64 will put them in the object
7461   # directory.
7462   mkdir sub
7463
7464   am_cv_CXX_dependencies_compiler_type=none
7465   if test "$am_compiler_list" = ""; then
7466      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7467   fi
7468   for depmode in $am_compiler_list; do
7469     # Setup a source with many dependencies, because some compilers
7470     # like to wrap large dependency lists on column 80 (with \), and
7471     # we should not choose a depcomp mode which is confused by this.
7472     #
7473     # We need to recreate these files for each test, as the compiler may
7474     # overwrite some of them when testing with obscure command lines.
7475     # This happens at least with the AIX C compiler.
7476     : > sub/conftest.c
7477     for i in 1 2 3 4 5 6; do
7478       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7479       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7480       # Solaris 8's {/usr,}/bin/sh.
7481       touch sub/conftst$i.h
7482     done
7483     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7484
7485     case $depmode in
7486     nosideeffect)
7487       # after this tag, mechanisms are not by side-effect, so they'll
7488       # only be used when explicitly requested
7489       if test "x$enable_dependency_tracking" = xyes; then
7490         continue
7491       else
7492         break
7493       fi
7494       ;;
7495     none) break ;;
7496     esac
7497     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7498     # mode.  It turns out that the SunPro C++ compiler does not properly
7499     # handle `-M -o', and we need to detect this.
7500     if depmode=$depmode \
7501        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7502        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7503        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7504          >/dev/null 2>conftest.err &&
7505        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7506        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7507        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7508       # icc doesn't choke on unknown options, it will just issue warnings
7509       # or remarks (even with -Werror).  So we grep stderr for any message
7510       # that says an option was ignored or not supported.
7511       # When given -MP, icc 7.0 and 7.1 complain thusly:
7512       #   icc: Command line warning: ignoring option '-M'; no argument required
7513       # The diagnosis changed in icc 8.0:
7514       #   icc: Command line remark: option '-MP' not supported
7515       if (grep 'ignoring option' conftest.err ||
7516           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7517         am_cv_CXX_dependencies_compiler_type=$depmode
7518         break
7519       fi
7520     fi
7521   done
7522
7523   cd ..
7524   rm -rf conftest.dir
7525 else
7526   am_cv_CXX_dependencies_compiler_type=none
7527 fi
7528
7529 fi
7530 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7531 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7532 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7533
7534
7535
7536 if
7537   test "x$enable_dependency_tracking" != xno \
7538   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7539   am__fastdepCXX_TRUE=
7540   am__fastdepCXX_FALSE='#'
7541 else
7542   am__fastdepCXX_TRUE='#'
7543   am__fastdepCXX_FALSE=
7544 fi
7545
7546
7547 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7548     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7549     (test "X$CXX" != "Xg++"))) ; then
7550   ac_ext=cc
7551 ac_cpp='$CXXCPP $CPPFLAGS'
7552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7555 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7556 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7557 if test -z "$CXXCPP"; then
7558   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561       # Double quotes because CXXCPP needs to be expanded
7562     for CXXCPP in "$CXX -E" "/lib/cpp"
7563     do
7564       ac_preproc_ok=false
7565 for ac_cxx_preproc_warn_flag in '' yes
7566 do
7567   # Use a header file that comes with gcc, so configuring glibc
7568   # with a fresh cross-compiler works.
7569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7570   # <limits.h> exists even on freestanding compilers.
7571   # On the NeXT, cc -E runs the code through the compiler's parser,
7572   # not just through cpp. "Syntax error" is here to catch this case.
7573   cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579 #ifdef __STDC__
7580 # include <limits.h>
7581 #else
7582 # include <assert.h>
7583 #endif
7584                      Syntax error
7585 _ACEOF
7586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7588   ac_status=$?
7589   grep -v '^ *+' conftest.er1 >conftest.err
7590   rm -f conftest.er1
7591   cat conftest.err >&5
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } >/dev/null; then
7594   if test -s conftest.err; then
7595     ac_cpp_err=$ac_cxx_preproc_warn_flag
7596     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7597   else
7598     ac_cpp_err=
7599   fi
7600 else
7601   ac_cpp_err=yes
7602 fi
7603 if test -z "$ac_cpp_err"; then
7604   :
7605 else
7606   echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609   # Broken: fails on valid input.
7610 continue
7611 fi
7612 rm -f conftest.err conftest.$ac_ext
7613
7614   # OK, works on sane cases.  Now check whether non-existent headers
7615   # can be detected and how.
7616   cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622 #include <ac_nonexistent.h>
7623 _ACEOF
7624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } >/dev/null; then
7632   if test -s conftest.err; then
7633     ac_cpp_err=$ac_cxx_preproc_warn_flag
7634     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7635   else
7636     ac_cpp_err=
7637   fi
7638 else
7639   ac_cpp_err=yes
7640 fi
7641 if test -z "$ac_cpp_err"; then
7642   # Broken: success on invalid input.
7643 continue
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648   # Passes both tests.
7649 ac_preproc_ok=:
7650 break
7651 fi
7652 rm -f conftest.err conftest.$ac_ext
7653
7654 done
7655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7656 rm -f conftest.err conftest.$ac_ext
7657 if $ac_preproc_ok; then
7658   break
7659 fi
7660
7661     done
7662     ac_cv_prog_CXXCPP=$CXXCPP
7663
7664 fi
7665   CXXCPP=$ac_cv_prog_CXXCPP
7666 else
7667   ac_cv_prog_CXXCPP=$CXXCPP
7668 fi
7669 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7670 echo "${ECHO_T}$CXXCPP" >&6
7671 ac_preproc_ok=false
7672 for ac_cxx_preproc_warn_flag in '' yes
7673 do
7674   # Use a header file that comes with gcc, so configuring glibc
7675   # with a fresh cross-compiler works.
7676   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7677   # <limits.h> exists even on freestanding compilers.
7678   # On the NeXT, cc -E runs the code through the compiler's parser,
7679   # not just through cpp. "Syntax error" is here to catch this case.
7680   cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686 #ifdef __STDC__
7687 # include <limits.h>
7688 #else
7689 # include <assert.h>
7690 #endif
7691                      Syntax error
7692 _ACEOF
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7695   ac_status=$?
7696   grep -v '^ *+' conftest.er1 >conftest.err
7697   rm -f conftest.er1
7698   cat conftest.err >&5
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } >/dev/null; then
7701   if test -s conftest.err; then
7702     ac_cpp_err=$ac_cxx_preproc_warn_flag
7703     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7704   else
7705     ac_cpp_err=
7706   fi
7707 else
7708   ac_cpp_err=yes
7709 fi
7710 if test -z "$ac_cpp_err"; then
7711   :
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716   # Broken: fails on valid input.
7717 continue
7718 fi
7719 rm -f conftest.err conftest.$ac_ext
7720
7721   # OK, works on sane cases.  Now check whether non-existent headers
7722   # can be detected and how.
7723   cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h.  */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h.  */
7729 #include <ac_nonexistent.h>
7730 _ACEOF
7731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } >/dev/null; then
7739   if test -s conftest.err; then
7740     ac_cpp_err=$ac_cxx_preproc_warn_flag
7741     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7742   else
7743     ac_cpp_err=
7744   fi
7745 else
7746   ac_cpp_err=yes
7747 fi
7748 if test -z "$ac_cpp_err"; then
7749   # Broken: success on invalid input.
7750 continue
7751 else
7752   echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755   # Passes both tests.
7756 ac_preproc_ok=:
7757 break
7758 fi
7759 rm -f conftest.err conftest.$ac_ext
7760
7761 done
7762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7763 rm -f conftest.err conftest.$ac_ext
7764 if $ac_preproc_ok; then
7765   :
7766 else
7767   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7768 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7769 _lt_caught_CXX_error=yes; }
7770 fi
7771
7772 ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778 else
7779   _lt_caught_CXX_error=yes
7780 fi
7781
7782
7783
7784
7785
7786 # Set options
7787
7788
7789
7790         enable_dlopen=no
7791
7792
7793   enable_win32_dll=no
7794
7795
7796             # Check whether --enable-shared or --disable-shared was given.
7797 if test "${enable_shared+set}" = set; then
7798   enableval="$enable_shared"
7799   p=${PACKAGE-default}
7800     case $enableval in
7801     yes) enable_shared=yes ;;
7802     no) enable_shared=no ;;
7803     *)
7804       enable_shared=no
7805       # Look at the argument we got.  We use all the common list separators.
7806       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7807       for pkg in $enableval; do
7808         IFS="$lt_save_ifs"
7809         if test "X$pkg" = "X$p"; then
7810           enable_shared=yes
7811         fi
7812       done
7813       IFS="$lt_save_ifs"
7814       ;;
7815     esac
7816 else
7817   enable_shared=yes
7818 fi;
7819
7820
7821
7822
7823
7824
7825
7826
7827   # Check whether --enable-static or --disable-static was given.
7828 if test "${enable_static+set}" = set; then
7829   enableval="$enable_static"
7830   p=${PACKAGE-default}
7831     case $enableval in
7832     yes) enable_static=yes ;;
7833     no) enable_static=no ;;
7834     *)
7835      enable_static=no
7836       # Look at the argument we got.  We use all the common list separators.
7837       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7838       for pkg in $enableval; do
7839         IFS="$lt_save_ifs"
7840         if test "X$pkg" = "X$p"; then
7841           enable_static=yes
7842         fi
7843       done
7844       IFS="$lt_save_ifs"
7845       ;;
7846     esac
7847 else
7848   enable_static=yes
7849 fi;
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 # Check whether --with-pic or --without-pic was given.
7860 if test "${with_pic+set}" = set; then
7861   withval="$with_pic"
7862   pic_mode="$withval"
7863 else
7864   pic_mode=default
7865 fi;
7866
7867 test -z "$pic_mode" && pic_mode=default
7868
7869
7870
7871
7872
7873
7874
7875   # Check whether --enable-fast-install or --disable-fast-install was given.
7876 if test "${enable_fast_install+set}" = set; then
7877   enableval="$enable_fast_install"
7878   p=${PACKAGE-default}
7879     case $enableval in
7880     yes) enable_fast_install=yes ;;
7881     no) enable_fast_install=no ;;
7882     *)
7883       enable_fast_install=no
7884       # Look at the argument we got.  We use all the common list separators.
7885       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886       for pkg in $enableval; do
7887         IFS="$lt_save_ifs"
7888         if test "X$pkg" = "X$p"; then
7889           enable_fast_install=yes
7890         fi
7891       done
7892       IFS="$lt_save_ifs"
7893       ;;
7894     esac
7895 else
7896   enable_fast_install=yes
7897 fi;
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 # This can be used to rebuild libtool when needed
7909 LIBTOOL_DEPS="$ltmain"
7910
7911 # Always use our own libtool.
7912 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938 test -z "$LN_S" && LN_S="ln -s"
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 if test -n "${ZSH_VERSION+set}" ; then
7954    setopt NO_GLOB_SUBST
7955 fi
7956
7957 echo "$as_me:$LINENO: checking for objdir" >&5
7958 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7959 if test "${lt_cv_objdir+set}" = set; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   rm -f .libs 2>/dev/null
7963 mkdir .libs 2>/dev/null
7964 if test -d .libs; then
7965   lt_cv_objdir=.libs
7966 else
7967   # MS-DOS does not allow filenames that begin with a dot.
7968   lt_cv_objdir=_libs
7969 fi
7970 rmdir .libs 2>/dev/null
7971 fi
7972 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7973 echo "${ECHO_T}$lt_cv_objdir" >&6
7974 objdir=$lt_cv_objdir
7975
7976
7977
7978
7979
7980 cat >>confdefs.h <<_ACEOF
7981 #define LT_OBJDIR "$lt_cv_objdir/"
7982 _ACEOF
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 case $host_os in
8001 aix3*)
8002   # AIX sometimes has problems with the GCC collect2 program.  For some
8003   # reason, if we set the COLLECT_NAMES environment variable, the problems
8004   # vanish in a puff of smoke.
8005   if test "X${COLLECT_NAMES+set}" != Xset; then
8006     COLLECT_NAMES=
8007     export COLLECT_NAMES
8008   fi
8009   ;;
8010 esac
8011
8012 # Sed substitution that helps us do robust quoting.  It backslashifies
8013 # metacharacters that are still active within double-quoted strings.
8014 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8015
8016 # Same as above, but do not quote variable references.
8017 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8018
8019 # Sed substitution to delay expansion of an escaped shell variable in a
8020 # double_quote_subst'ed string.
8021 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8022
8023 # Sed substitution to delay expansion of an escaped single quote.
8024 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8025
8026 # Sed substitution to avoid accidental globbing in evaled expressions
8027 no_glob_subst='s/\*/\\\*/g'
8028
8029 # Global variables:
8030 ofile=libtool
8031 can_build_shared=yes
8032
8033 # All known linkers require a `.a' archive for static linking (except MSVC,
8034 # which needs '.lib').
8035 libext=a
8036
8037 with_gnu_ld="$lt_cv_prog_gnu_ld"
8038
8039 old_CC="$CC"
8040 old_CFLAGS="$CFLAGS"
8041
8042 # Set sane defaults for various variables
8043 test -z "$CC" && CC=cc
8044 test -z "$LTCC" && LTCC=$CC
8045 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8046 test -z "$LD" && LD=ld
8047 test -z "$ac_objext" && ac_objext=o
8048
8049 for cc_temp in $compiler""; do
8050   case $cc_temp in
8051     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8053     \-*) ;;
8054     *) break;;
8055   esac
8056 done
8057 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8058
8059
8060 # Only perform the check for file, if the check method requires it
8061 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8062 case $deplibs_check_method in
8063 file_magic*)
8064   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8065     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8066 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8067 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   case $MAGIC_CMD in
8071 [\\/*] |  ?:[\\/]*)
8072   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8073   ;;
8074 *)
8075   lt_save_MAGIC_CMD="$MAGIC_CMD"
8076   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8077   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8078   for ac_dir in $ac_dummy; do
8079     IFS="$lt_save_ifs"
8080     test -z "$ac_dir" && ac_dir=.
8081     if test -f $ac_dir/${ac_tool_prefix}file; then
8082       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8083       if test -n "$file_magic_test_file"; then
8084         case $deplibs_check_method in
8085         "file_magic "*)
8086           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8087           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8088           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8089             $EGREP "$file_magic_regex" > /dev/null; then
8090             :
8091           else
8092             cat <<_LT_EOF 1>&2
8093
8094 *** Warning: the command libtool uses to detect shared libraries,
8095 *** $file_magic_cmd, produces output that libtool cannot recognize.
8096 *** The result is that libtool may fail to recognize shared libraries
8097 *** as such.  This will affect the creation of libtool libraries that
8098 *** depend on shared libraries, but programs linked with such libtool
8099 *** libraries will work regardless of this problem.  Nevertheless, you
8100 *** may want to report the problem to your system manager and/or to
8101 *** bug-libtool@gnu.org
8102
8103 _LT_EOF
8104           fi ;;
8105         esac
8106       fi
8107       break
8108     fi
8109   done
8110   IFS="$lt_save_ifs"
8111   MAGIC_CMD="$lt_save_MAGIC_CMD"
8112   ;;
8113 esac
8114 fi
8115
8116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8117 if test -n "$MAGIC_CMD"; then
8118   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8119 echo "${ECHO_T}$MAGIC_CMD" >&6
8120 else
8121   echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126
8127
8128
8129 if test -z "$lt_cv_path_MAGIC_CMD"; then
8130   if test -n "$ac_tool_prefix"; then
8131     echo "$as_me:$LINENO: checking for file" >&5
8132 echo $ECHO_N "checking for file... $ECHO_C" >&6
8133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   case $MAGIC_CMD in
8137 [\\/*] |  ?:[\\/]*)
8138   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8139   ;;
8140 *)
8141   lt_save_MAGIC_CMD="$MAGIC_CMD"
8142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8143   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8144   for ac_dir in $ac_dummy; do
8145     IFS="$lt_save_ifs"
8146     test -z "$ac_dir" && ac_dir=.
8147     if test -f $ac_dir/file; then
8148       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8149       if test -n "$file_magic_test_file"; then
8150         case $deplibs_check_method in
8151         "file_magic "*)
8152           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8153           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8155             $EGREP "$file_magic_regex" > /dev/null; then
8156             :
8157           else
8158             cat <<_LT_EOF 1>&2
8159
8160 *** Warning: the command libtool uses to detect shared libraries,
8161 *** $file_magic_cmd, produces output that libtool cannot recognize.
8162 *** The result is that libtool may fail to recognize shared libraries
8163 *** as such.  This will affect the creation of libtool libraries that
8164 *** depend on shared libraries, but programs linked with such libtool
8165 *** libraries will work regardless of this problem.  Nevertheless, you
8166 *** may want to report the problem to your system manager and/or to
8167 *** bug-libtool@gnu.org
8168
8169 _LT_EOF
8170           fi ;;
8171         esac
8172       fi
8173       break
8174     fi
8175   done
8176   IFS="$lt_save_ifs"
8177   MAGIC_CMD="$lt_save_MAGIC_CMD"
8178   ;;
8179 esac
8180 fi
8181
8182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183 if test -n "$MAGIC_CMD"; then
8184   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8185 echo "${ECHO_T}$MAGIC_CMD" >&6
8186 else
8187   echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6
8189 fi
8190
8191
8192   else
8193     MAGIC_CMD=:
8194   fi
8195 fi
8196
8197   fi
8198   ;;
8199 esac
8200
8201 # Use C for the default configuration in the libtool script
8202
8203 lt_save_CC="$CC"
8204 ac_ext=c
8205 ac_cpp='$CPP $CPPFLAGS'
8206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8209
8210
8211 # Source file extension for C test sources.
8212 ac_ext=c
8213
8214 # Object file extension for compiled C test sources.
8215 objext=o
8216 objext=$objext
8217
8218 # Code to be used in simple compile tests
8219 lt_simple_compile_test_code="int some_variable = 0;"
8220
8221 # Code to be used in simple link tests
8222 lt_simple_link_test_code='int main(){return(0);}'
8223
8224
8225
8226
8227
8228
8229
8230 # If no C compiler was specified, use CC.
8231 LTCC=${LTCC-"$CC"}
8232
8233 # If no C compiler flags were specified, use CFLAGS.
8234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8235
8236 # Allow CC to be a program name with arguments.
8237 compiler=$CC
8238
8239 # Save the default compiler, since it gets overwritten when the other
8240 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8241 compiler_DEFAULT=$CC
8242
8243 # save warnings/boilerplate of simple test code
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247 _lt_compiler_boilerplate=`cat conftest.err`
8248 $RM conftest*
8249
8250 ac_outfile=conftest.$ac_objext
8251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253 _lt_linker_boilerplate=`cat conftest.err`
8254 $RM -r conftest*
8255
8256
8257 ## CAVEAT EMPTOR:
8258 ## There is no encapsulation within the following macros, do not change
8259 ## the running order or otherwise move them around unless you know exactly
8260 ## what you are doing...
8261 if test -n "$compiler"; then
8262
8263 lt_prog_compiler_no_builtin_flag=
8264
8265 if test "$GCC" = yes; then
8266   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8267
8268   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8269 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8270 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   lt_cv_prog_compiler_rtti_exceptions=no
8274    ac_outfile=conftest.$ac_objext
8275    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276    lt_compiler_flag="-fno-rtti -fno-exceptions"
8277    # Insert the option either (1) after the last *FLAGS variable, or
8278    # (2) before a word containing "conftest.", or (3) at the end.
8279    # Note that $ac_compile itself does not contain backslashes and begins
8280    # with a dollar sign (not a hyphen), so the echo should work correctly.
8281    # The option is referenced via a variable to avoid confusing sed.
8282    lt_compile=`echo "$ac_compile" | $SED \
8283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285    -e 's:$: $lt_compiler_flag:'`
8286    (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
8287    (eval "$lt_compile" 2>conftest.err)
8288    ac_status=$?
8289    cat conftest.err >&5
8290    echo "$as_me:8290: \$? = $ac_status" >&5
8291    if (exit $ac_status) && test -s "$ac_outfile"; then
8292      # The compiler can only warn and ignore the option if not recognized
8293      # So say no if there are warnings other than the usual output.
8294      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8295      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8296      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8297        lt_cv_prog_compiler_rtti_exceptions=yes
8298      fi
8299    fi
8300    $RM conftest*
8301
8302 fi
8303 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8304 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8305
8306 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8307     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8308 else
8309     :
8310 fi
8311
8312 fi
8313
8314
8315
8316
8317
8318
8319   lt_prog_compiler_wl=
8320 lt_prog_compiler_pic=
8321 lt_prog_compiler_static=
8322
8323 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8324 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8325
8326   if test "$GCC" = yes; then
8327     lt_prog_compiler_wl='-Wl,'
8328     lt_prog_compiler_static='-static'
8329
8330     case $host_os in
8331       aix*)
8332       # All AIX code is PIC.
8333       if test "$host_cpu" = ia64; then
8334         # AIX 5 now supports IA64 processor
8335         lt_prog_compiler_static='-Bstatic'
8336       fi
8337       ;;
8338
8339     amigaos*)
8340       case $host_cpu in
8341       powerpc)
8342             # see comment about AmigaOS4 .so support
8343             lt_prog_compiler_pic='-fPIC'
8344         ;;
8345       m68k)
8346             # FIXME: we need at least 68020 code to build shared libraries, but
8347             # adding the `-m68020' flag to GCC prevents building anything better,
8348             # like `-m68040'.
8349             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8350         ;;
8351       esac
8352       ;;
8353
8354     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8355       # PIC is the default for these OSes.
8356       ;;
8357
8358     mingw* | cygwin* | pw32* | os2* | cegcc*)
8359       # This hack is so that the source file can tell whether it is being
8360       # built for inclusion in a dll (and should export symbols for example).
8361       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8362       # (--disable-auto-import) libraries
8363       lt_prog_compiler_pic='-DDLL_EXPORT'
8364       ;;
8365
8366     darwin* | rhapsody*)
8367       # PIC is the default on this platform
8368       # Common symbols not allowed in MH_DYLIB files
8369       lt_prog_compiler_pic='-fno-common'
8370       ;;
8371
8372     hpux*)
8373       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8374       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8375       # sets the default TLS model and affects inlining.
8376       case $host_cpu in
8377       hppa*64*)
8378         # +Z the default
8379         ;;
8380       *)
8381         lt_prog_compiler_pic='-fPIC'
8382         ;;
8383       esac
8384       ;;
8385
8386     interix[3-9]*)
8387       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8388       # Instead, we relocate shared libraries at runtime.
8389       ;;
8390
8391     msdosdjgpp*)
8392       # Just because we use GCC doesn't mean we suddenly get shared libraries
8393       # on systems that don't support them.
8394       lt_prog_compiler_can_build_shared=no
8395       enable_shared=no
8396       ;;
8397
8398     *nto* | *qnx*)
8399       # QNX uses GNU C++, but need to define -shared option too, otherwise
8400       # it will coredump.
8401       lt_prog_compiler_pic='-fPIC -shared'
8402       ;;
8403
8404     sysv4*MP*)
8405       if test -d /usr/nec; then
8406         lt_prog_compiler_pic=-Kconform_pic
8407       fi
8408       ;;
8409
8410     *)
8411       lt_prog_compiler_pic='-fPIC'
8412       ;;
8413     esac
8414   else
8415     # PORTME Check for flag to pass linker flags through the system compiler.
8416     case $host_os in
8417     aix*)
8418       lt_prog_compiler_wl='-Wl,'
8419       if test "$host_cpu" = ia64; then
8420         # AIX 5 now supports IA64 processor
8421         lt_prog_compiler_static='-Bstatic'
8422       else
8423         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8424       fi
8425       ;;
8426
8427     mingw* | cygwin* | pw32* | os2* | cegcc*)
8428       # This hack is so that the source file can tell whether it is being
8429       # built for inclusion in a dll (and should export symbols for example).
8430       lt_prog_compiler_pic='-DDLL_EXPORT'
8431       ;;
8432
8433     hpux9* | hpux10* | hpux11*)
8434       lt_prog_compiler_wl='-Wl,'
8435       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8436       # not for PA HP-UX.
8437       case $host_cpu in
8438       hppa*64*|ia64*)
8439         # +Z the default
8440         ;;
8441       *)
8442         lt_prog_compiler_pic='+Z'
8443         ;;
8444       esac
8445       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8446       lt_prog_compiler_static='${wl}-a ${wl}archive'
8447       ;;
8448
8449     irix5* | irix6* | nonstopux*)
8450       lt_prog_compiler_wl='-Wl,'
8451       # PIC (with -KPIC) is the default.
8452       lt_prog_compiler_static='-non_shared'
8453       ;;
8454
8455     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8456       case $cc_basename in
8457       # old Intel for x86_64 which still supported -KPIC.
8458       ecc*)
8459         lt_prog_compiler_wl='-Wl,'
8460         lt_prog_compiler_pic='-KPIC'
8461         lt_prog_compiler_static='-static'
8462         ;;
8463       # icc used to be incompatible with GCC.
8464       # ICC 10 doesn't accept -KPIC any more.
8465       icc* | ifort*)
8466         lt_prog_compiler_wl='-Wl,'
8467         lt_prog_compiler_pic='-fPIC'
8468         lt_prog_compiler_static='-static'
8469         ;;
8470       # Lahey Fortran 8.1.
8471       lf95*)
8472         lt_prog_compiler_wl='-Wl,'
8473         lt_prog_compiler_pic='--shared'
8474         lt_prog_compiler_static='--static'
8475         ;;
8476       pgcc* | pgf77* | pgf90* | pgf95*)
8477         # Portland Group compilers (*not* the Pentium gcc compiler,
8478         # which looks to be a dead project)
8479         lt_prog_compiler_wl='-Wl,'
8480         lt_prog_compiler_pic='-fpic'
8481         lt_prog_compiler_static='-Bstatic'
8482         ;;
8483       ccc*)
8484         lt_prog_compiler_wl='-Wl,'
8485         # All Alpha code is PIC.
8486         lt_prog_compiler_static='-non_shared'
8487         ;;
8488       xl*)
8489         # IBM XL C 8.0/Fortran 10.1 on PPC
8490         lt_prog_compiler_wl='-Wl,'
8491         lt_prog_compiler_pic='-qpic'
8492         lt_prog_compiler_static='-qstaticlink'
8493         ;;
8494       *)
8495         case `$CC -V 2>&1 | sed 5q` in
8496         *Sun\ C*)
8497           # Sun C 5.9
8498           lt_prog_compiler_pic='-KPIC'
8499           lt_prog_compiler_static='-Bstatic'
8500           lt_prog_compiler_wl='-Wl,'
8501           ;;
8502         *Sun\ F*)
8503           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8504           lt_prog_compiler_pic='-KPIC'
8505           lt_prog_compiler_static='-Bstatic'
8506           lt_prog_compiler_wl=''
8507           ;;
8508         esac
8509         ;;
8510       esac
8511       ;;
8512
8513     newsos6)
8514       lt_prog_compiler_pic='-KPIC'
8515       lt_prog_compiler_static='-Bstatic'
8516       ;;
8517
8518     *nto* | *qnx*)
8519       # QNX uses GNU C++, but need to define -shared option too, otherwise
8520       # it will coredump.
8521       lt_prog_compiler_pic='-fPIC -shared'
8522       ;;
8523
8524     osf3* | osf4* | osf5*)
8525       lt_prog_compiler_wl='-Wl,'
8526       # All OSF/1 code is PIC.
8527       lt_prog_compiler_static='-non_shared'
8528       ;;
8529
8530     rdos*)
8531       lt_prog_compiler_static='-non_shared'
8532       ;;
8533
8534     solaris*)
8535       lt_prog_compiler_pic='-KPIC'
8536       lt_prog_compiler_static='-Bstatic'
8537       case $cc_basename in
8538       f77* | f90* | f95*)
8539         lt_prog_compiler_wl='-Qoption ld ';;
8540       *)
8541         lt_prog_compiler_wl='-Wl,';;
8542       esac
8543       ;;
8544
8545     sunos4*)
8546       lt_prog_compiler_wl='-Qoption ld '
8547       lt_prog_compiler_pic='-PIC'
8548       lt_prog_compiler_static='-Bstatic'
8549       ;;
8550
8551     sysv4 | sysv4.2uw2* | sysv4.3*)
8552       lt_prog_compiler_wl='-Wl,'
8553       lt_prog_compiler_pic='-KPIC'
8554       lt_prog_compiler_static='-Bstatic'
8555       ;;
8556
8557     sysv4*MP*)
8558       if test -d /usr/nec ;then
8559         lt_prog_compiler_pic='-Kconform_pic'
8560         lt_prog_compiler_static='-Bstatic'
8561       fi
8562       ;;
8563
8564     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8565       lt_prog_compiler_wl='-Wl,'
8566       lt_prog_compiler_pic='-KPIC'
8567       lt_prog_compiler_static='-Bstatic'
8568       ;;
8569
8570     unicos*)
8571       lt_prog_compiler_wl='-Wl,'
8572       lt_prog_compiler_can_build_shared=no
8573       ;;
8574
8575     uts4*)
8576       lt_prog_compiler_pic='-pic'
8577       lt_prog_compiler_static='-Bstatic'
8578       ;;
8579
8580     *)
8581       lt_prog_compiler_can_build_shared=no
8582       ;;
8583     esac
8584   fi
8585
8586 case $host_os in
8587   # For platforms which do not support PIC, -DPIC is meaningless:
8588   *djgpp*)
8589     lt_prog_compiler_pic=
8590     ;;
8591   *)
8592     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8593     ;;
8594 esac
8595 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8596 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8597
8598
8599
8600
8601
8602
8603 #
8604 # Check to make sure the PIC flag actually works.
8605 #
8606 if test -n "$lt_prog_compiler_pic"; then
8607   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8608 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8609 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   lt_cv_prog_compiler_pic_works=no
8613    ac_outfile=conftest.$ac_objext
8614    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8616    # Insert the option either (1) after the last *FLAGS variable, or
8617    # (2) before a word containing "conftest.", or (3) at the end.
8618    # Note that $ac_compile itself does not contain backslashes and begins
8619    # with a dollar sign (not a hyphen), so the echo should work correctly.
8620    # The option is referenced via a variable to avoid confusing sed.
8621    lt_compile=`echo "$ac_compile" | $SED \
8622    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8624    -e 's:$: $lt_compiler_flag:'`
8625    (eval echo "\"\$as_me:8625: $lt_compile\"" >&5)
8626    (eval "$lt_compile" 2>conftest.err)
8627    ac_status=$?
8628    cat conftest.err >&5
8629    echo "$as_me:8629: \$? = $ac_status" >&5
8630    if (exit $ac_status) && test -s "$ac_outfile"; then
8631      # The compiler can only warn and ignore the option if not recognized
8632      # So say no if there are warnings other than the usual output.
8633      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8634      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8635      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8636        lt_cv_prog_compiler_pic_works=yes
8637      fi
8638    fi
8639    $RM conftest*
8640
8641 fi
8642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8643 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8644
8645 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8646     case $lt_prog_compiler_pic in
8647      "" | " "*) ;;
8648      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8649      esac
8650 else
8651     lt_prog_compiler_pic=
8652      lt_prog_compiler_can_build_shared=no
8653 fi
8654
8655 fi
8656
8657
8658
8659
8660
8661
8662 #
8663 # Check to make sure the static flag actually works.
8664 #
8665 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8666 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8667 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8668 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   lt_cv_prog_compiler_static_works=no
8672    save_LDFLAGS="$LDFLAGS"
8673    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8674    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8675    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8676      # The linker can only warn and ignore the option if not recognized
8677      # So say no if there are warnings
8678      if test -s conftest.err; then
8679        # Append any errors to the config.log.
8680        cat conftest.err 1>&5
8681        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8682        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8683        if diff conftest.exp conftest.er2 >/dev/null; then
8684          lt_cv_prog_compiler_static_works=yes
8685        fi
8686      else
8687        lt_cv_prog_compiler_static_works=yes
8688      fi
8689    fi
8690    $RM -r conftest*
8691    LDFLAGS="$save_LDFLAGS"
8692
8693 fi
8694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8695 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8696
8697 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8698     :
8699 else
8700     lt_prog_compiler_static=
8701 fi
8702
8703
8704
8705
8706
8707
8708
8709   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8711 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   lt_cv_prog_compiler_c_o=no
8715    $RM -r conftest 2>/dev/null
8716    mkdir conftest
8717    cd conftest
8718    mkdir out
8719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8720
8721    lt_compiler_flag="-o out/conftest2.$ac_objext"
8722    # Insert the option either (1) after the last *FLAGS variable, or
8723    # (2) before a word containing "conftest.", or (3) at the end.
8724    # Note that $ac_compile itself does not contain backslashes and begins
8725    # with a dollar sign (not a hyphen), so the echo should work correctly.
8726    lt_compile=`echo "$ac_compile" | $SED \
8727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729    -e 's:$: $lt_compiler_flag:'`
8730    (eval echo "\"\$as_me:8730: $lt_compile\"" >&5)
8731    (eval "$lt_compile" 2>out/conftest.err)
8732    ac_status=$?
8733    cat out/conftest.err >&5
8734    echo "$as_me:8734: \$? = $ac_status" >&5
8735    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8736    then
8737      # The compiler can only warn and ignore the option if not recognized
8738      # So say no if there are warnings
8739      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8740      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8741      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8742        lt_cv_prog_compiler_c_o=yes
8743      fi
8744    fi
8745    chmod u+w . 2>&5
8746    $RM conftest*
8747    # SGI C++ compiler will create directory out/ii_files/ for
8748    # template instantiation
8749    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8750    $RM out/* && rmdir out
8751    cd ..
8752    $RM -r conftest
8753    $RM conftest*
8754
8755 fi
8756 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8758
8759
8760
8761
8762
8763
8764   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8765 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8766 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   lt_cv_prog_compiler_c_o=no
8770    $RM -r conftest 2>/dev/null
8771    mkdir conftest
8772    cd conftest
8773    mkdir out
8774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775
8776    lt_compiler_flag="-o out/conftest2.$ac_objext"
8777    # Insert the option either (1) after the last *FLAGS variable, or
8778    # (2) before a word containing "conftest.", or (3) at the end.
8779    # Note that $ac_compile itself does not contain backslashes and begins
8780    # with a dollar sign (not a hyphen), so the echo should work correctly.
8781    lt_compile=`echo "$ac_compile" | $SED \
8782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784    -e 's:$: $lt_compiler_flag:'`
8785    (eval echo "\"\$as_me:8785: $lt_compile\"" >&5)
8786    (eval "$lt_compile" 2>out/conftest.err)
8787    ac_status=$?
8788    cat out/conftest.err >&5
8789    echo "$as_me:8789: \$? = $ac_status" >&5
8790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8791    then
8792      # The compiler can only warn and ignore the option if not recognized
8793      # So say no if there are warnings
8794      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8795      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8796      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8797        lt_cv_prog_compiler_c_o=yes
8798      fi
8799    fi
8800    chmod u+w . 2>&5
8801    $RM conftest*
8802    # SGI C++ compiler will create directory out/ii_files/ for
8803    # template instantiation
8804    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8805    $RM out/* && rmdir out
8806    cd ..
8807    $RM -r conftest
8808    $RM conftest*
8809
8810 fi
8811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8813
8814
8815
8816
8817 hard_links="nottested"
8818 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8819   # do not overwrite the value of need_locks provided by the user
8820   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8821 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8822   hard_links=yes
8823   $RM conftest*
8824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8825   touch conftest.a
8826   ln conftest.a conftest.b 2>&5 || hard_links=no
8827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8828   echo "$as_me:$LINENO: result: $hard_links" >&5
8829 echo "${ECHO_T}$hard_links" >&6
8830   if test "$hard_links" = no; then
8831     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8832 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8833     need_locks=warn
8834   fi
8835 else
8836   need_locks=no
8837 fi
8838
8839
8840
8841
8842
8843
8844   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8846
8847   runpath_var=
8848   allow_undefined_flag=
8849   always_export_symbols=no
8850   archive_cmds=
8851   archive_expsym_cmds=
8852   compiler_needs_object=no
8853   enable_shared_with_static_runtimes=no
8854   export_dynamic_flag_spec=
8855   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8856   hardcode_automatic=no
8857   hardcode_direct=no
8858   hardcode_direct_absolute=no
8859   hardcode_libdir_flag_spec=
8860   hardcode_libdir_flag_spec_ld=
8861   hardcode_libdir_separator=
8862   hardcode_minus_L=no
8863   hardcode_shlibpath_var=unsupported
8864   inherit_rpath=no
8865   link_all_deplibs=unknown
8866   module_cmds=
8867   module_expsym_cmds=
8868   old_archive_from_new_cmds=
8869   old_archive_from_expsyms_cmds=
8870   thread_safe_flag_spec=
8871   whole_archive_flag_spec=
8872   # include_expsyms should be a list of space-separated symbols to be *always*
8873   # included in the symbol list
8874   include_expsyms=
8875   # exclude_expsyms can be an extended regexp of symbols to exclude
8876   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8877   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8878   # as well as any symbol that contains `d'.
8879   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8880   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8881   # platforms (ab)use it in PIC code, but their linkers get confused if
8882   # the symbol is explicitly referenced.  Since portable code cannot
8883   # rely on this symbol name, it's probably fine to never include it in
8884   # preloaded symbol tables.
8885   # Exclude shared library initialization/finalization symbols.
8886   extract_expsyms_cmds=
8887
8888   case $host_os in
8889   cygwin* | mingw* | pw32* | cegcc*)
8890     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8891     # When not using gcc, we currently assume that we are using
8892     # Microsoft Visual C++.
8893     if test "$GCC" != yes; then
8894       with_gnu_ld=no
8895     fi
8896     ;;
8897   interix*)
8898     # we just hope/assume this is gcc and not c89 (= MSVC++)
8899     with_gnu_ld=yes
8900     ;;
8901   openbsd*)
8902     with_gnu_ld=no
8903     ;;
8904   esac
8905
8906   ld_shlibs=yes
8907   if test "$with_gnu_ld" = yes; then
8908     # If archive_cmds runs LD, not CC, wlarc should be empty
8909     wlarc='${wl}'
8910
8911     # Set some defaults for GNU ld with shared library support. These
8912     # are reset later if shared libraries are not supported. Putting them
8913     # here allows them to be overridden if necessary.
8914     runpath_var=LD_RUN_PATH
8915     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8916     export_dynamic_flag_spec='${wl}--export-dynamic'
8917     # ancient GNU ld didn't support --whole-archive et. al.
8918     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8919       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8920     else
8921       whole_archive_flag_spec=
8922     fi
8923     supports_anon_versioning=no
8924     case `$LD -v 2>&1` in
8925       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8926       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8927       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8928       *\ 2.11.*) ;; # other 2.11 versions
8929       *) supports_anon_versioning=yes ;;
8930     esac
8931
8932     # See if GNU ld supports shared libraries.
8933     case $host_os in
8934     aix[3-9]*)
8935       # On AIX/PPC, the GNU linker is very broken
8936       if test "$host_cpu" != ia64; then
8937         ld_shlibs=no
8938         cat <<_LT_EOF 1>&2
8939
8940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8941 *** to be unable to reliably create shared libraries on AIX.
8942 *** Therefore, libtool is disabling shared libraries support.  If you
8943 *** really care for shared libraries, you may want to modify your PATH
8944 *** so that a non-GNU linker is found, and then restart.
8945
8946 _LT_EOF
8947       fi
8948       ;;
8949
8950     amigaos*)
8951       case $host_cpu in
8952       powerpc)
8953             # see comment about AmigaOS4 .so support
8954             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955             archive_expsym_cmds=''
8956         ;;
8957       m68k)
8958             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)'
8959             hardcode_libdir_flag_spec='-L$libdir'
8960             hardcode_minus_L=yes
8961         ;;
8962       esac
8963       ;;
8964
8965     beos*)
8966       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967         allow_undefined_flag=unsupported
8968         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8969         # support --undefined.  This deserves some investigation.  FIXME
8970         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971       else
8972         ld_shlibs=no
8973       fi
8974       ;;
8975
8976     cygwin* | mingw* | pw32* | cegcc*)
8977       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978       # as there is no search path for DLLs.
8979       hardcode_libdir_flag_spec='-L$libdir'
8980       allow_undefined_flag=unsupported
8981       always_export_symbols=no
8982       enable_shared_with_static_runtimes=yes
8983       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8984
8985       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8986         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8987         # If the export-symbols file already is a .def file (1st line
8988         # is EXPORTS), use it as is; otherwise, prepend...
8989         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8990           cp $export_symbols $output_objdir/$soname.def;
8991         else
8992           echo EXPORTS > $output_objdir/$soname.def;
8993           cat $export_symbols >> $output_objdir/$soname.def;
8994         fi~
8995         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8996       else
8997         ld_shlibs=no
8998       fi
8999       ;;
9000
9001     interix[3-9]*)
9002       hardcode_direct=no
9003       hardcode_shlibpath_var=no
9004       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005       export_dynamic_flag_spec='${wl}-E'
9006       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9007       # Instead, shared libraries are loaded at an image base (0x10000000 by
9008       # default) and relocated if they conflict, which is a slow very memory
9009       # consuming and fragmenting process.  To avoid this, we pick a random,
9010       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9011       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9012       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9013       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9014       ;;
9015
9016     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9017       tmp_diet=no
9018       if test "$host_os" = linux-dietlibc; then
9019         case $cc_basename in
9020           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9021         esac
9022       fi
9023       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9024          && test "$tmp_diet" = no
9025       then
9026         tmp_addflag=
9027         tmp_sharedflag='-shared'
9028         case $cc_basename,$host_cpu in
9029         pgcc*)                          # Portland Group C compiler
9030           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9031           tmp_addflag=' $pic_flag'
9032           ;;
9033         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9034           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9035           tmp_addflag=' $pic_flag -Mnomain' ;;
9036         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9037           tmp_addflag=' -i_dynamic' ;;
9038         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9039           tmp_addflag=' -i_dynamic -nofor_main' ;;
9040         ifc* | ifort*)                  # Intel Fortran compiler
9041           tmp_addflag=' -nofor_main' ;;
9042         lf95*)                          # Lahey Fortran 8.1
9043           whole_archive_flag_spec=
9044           tmp_sharedflag='--shared' ;;
9045         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9046           tmp_sharedflag='-qmkshrobj'
9047           tmp_addflag= ;;
9048         esac
9049         case `$CC -V 2>&1 | sed 5q` in
9050         *Sun\ C*)                       # Sun C 5.9
9051           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9052           compiler_needs_object=yes
9053           tmp_sharedflag='-G' ;;
9054         *Sun\ F*)                       # Sun Fortran 8.3
9055           tmp_sharedflag='-G' ;;
9056         esac
9057         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058
9059         if test "x$supports_anon_versioning" = xyes; then
9060           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9061             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9062             echo "local: *; };" >> $output_objdir/$libname.ver~
9063             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9064         fi
9065
9066         case $cc_basename in
9067         xlf*)
9068           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9069           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9070           hardcode_libdir_flag_spec=
9071           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9072           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9073           if test "x$supports_anon_versioning" = xyes; then
9074             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9075               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9076               echo "local: *; };" >> $output_objdir/$libname.ver~
9077               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9078           fi
9079           ;;
9080         esac
9081       else
9082         ld_shlibs=no
9083       fi
9084       ;;
9085
9086     netbsd*)
9087       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9088         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9089         wlarc=
9090       else
9091         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9093       fi
9094       ;;
9095
9096     solaris*)
9097       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9098         ld_shlibs=no
9099         cat <<_LT_EOF 1>&2
9100
9101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9102 *** create shared libraries on Solaris systems.  Therefore, libtool
9103 *** is disabling shared libraries support.  We urge you to upgrade GNU
9104 *** binutils to release 2.9.1 or newer.  Another option is to modify
9105 *** your PATH or compiler configuration so that the native linker is
9106 *** used, and then restart.
9107
9108 _LT_EOF
9109       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9112       else
9113         ld_shlibs=no
9114       fi
9115       ;;
9116
9117     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9118       case `$LD -v 2>&1` in
9119         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9120         ld_shlibs=no
9121         cat <<_LT_EOF 1>&2
9122
9123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9124 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9125 *** is disabling shared libraries support.  We urge you to upgrade GNU
9126 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9127 *** your PATH or compiler configuration so that the native linker is
9128 *** used, and then restart.
9129
9130 _LT_EOF
9131         ;;
9132         *)
9133           # For security reasons, it is highly recommended that you always
9134           # use absolute paths for naming shared libraries, and exclude the
9135           # DT_RUNPATH tag from executables and libraries.  But doing so
9136           # requires that you compile everything twice, which is a pain.
9137           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141           else
9142             ld_shlibs=no
9143           fi
9144         ;;
9145       esac
9146       ;;
9147
9148     sunos4*)
9149       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9150       wlarc=
9151       hardcode_direct=yes
9152       hardcode_shlibpath_var=no
9153       ;;
9154
9155     *)
9156       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9159       else
9160         ld_shlibs=no
9161       fi
9162       ;;
9163     esac
9164
9165     if test "$ld_shlibs" = no; then
9166       runpath_var=
9167       hardcode_libdir_flag_spec=
9168       export_dynamic_flag_spec=
9169       whole_archive_flag_spec=
9170     fi
9171   else
9172     # PORTME fill in a description of your system's linker (not GNU ld)
9173     case $host_os in
9174     aix3*)
9175       allow_undefined_flag=unsupported
9176       always_export_symbols=yes
9177       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'
9178       # Note: this linker hardcodes the directories in LIBPATH if there
9179       # are no directories specified by -L.
9180       hardcode_minus_L=yes
9181       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9182         # Neither direct hardcoding nor static linking is supported with a
9183         # broken collect2.
9184         hardcode_direct=unsupported
9185       fi
9186       ;;
9187
9188     aix[4-9]*)
9189       if test "$host_cpu" = ia64; then
9190         # On IA64, the linker does run time linking by default, so we don't
9191         # have to do anything special.
9192         aix_use_runtimelinking=no
9193         exp_sym_flag='-Bexport'
9194         no_entry_flag=""
9195       else
9196         # If we're using GNU nm, then we don't want the "-C" option.
9197         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9198         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9199           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'
9200         else
9201           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'
9202         fi
9203         aix_use_runtimelinking=no
9204
9205         # Test if we are trying to use run time linking or normal
9206         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9207         # need to do runtime linking.
9208         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9209           for ld_flag in $LDFLAGS; do
9210           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9211             aix_use_runtimelinking=yes
9212             break
9213           fi
9214           done
9215           ;;
9216         esac
9217
9218         exp_sym_flag='-bexport'
9219         no_entry_flag='-bnoentry'
9220       fi
9221
9222       # When large executables or shared objects are built, AIX ld can
9223       # have problems creating the table of contents.  If linking a library
9224       # or program results in "error TOC overflow" add -mminimal-toc to
9225       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9226       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9227
9228       archive_cmds=''
9229       hardcode_direct=yes
9230       hardcode_direct_absolute=yes
9231       hardcode_libdir_separator=':'
9232       link_all_deplibs=yes
9233       file_list_spec='${wl}-f,'
9234
9235       if test "$GCC" = yes; then
9236         case $host_os in aix4.[012]|aix4.[012].*)
9237         # We only want to do this on AIX 4.2 and lower, the check
9238         # below for broken collect2 doesn't work under 4.3+
9239           collect2name=`${CC} -print-prog-name=collect2`
9240           if test -f "$collect2name" &&
9241            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9242           then
9243           # We have reworked collect2
9244           :
9245           else
9246           # We have old collect2
9247           hardcode_direct=unsupported
9248           # It fails to find uninstalled libraries when the uninstalled
9249           # path is not listed in the libpath.  Setting hardcode_minus_L
9250           # to unsupported forces relinking
9251           hardcode_minus_L=yes
9252           hardcode_libdir_flag_spec='-L$libdir'
9253           hardcode_libdir_separator=
9254           fi
9255           ;;
9256         esac
9257         shared_flag='-shared'
9258         if test "$aix_use_runtimelinking" = yes; then
9259           shared_flag="$shared_flag "'${wl}-G'
9260         fi
9261       else
9262         # not using gcc
9263         if test "$host_cpu" = ia64; then
9264         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9265         # chokes on -Wl,-G. The following line is correct:
9266           shared_flag='-G'
9267         else
9268           if test "$aix_use_runtimelinking" = yes; then
9269             shared_flag='${wl}-G'
9270           else
9271             shared_flag='${wl}-bM:SRE'
9272           fi
9273         fi
9274       fi
9275
9276       export_dynamic_flag_spec='${wl}-bexpall'
9277       # It seems that -bexpall does not export symbols beginning with
9278       # underscore (_), so it is better to generate a list of symbols to export.
9279       always_export_symbols=yes
9280       if test "$aix_use_runtimelinking" = yes; then
9281         # Warning - without using the other runtime loading flags (-brtl),
9282         # -berok will link without error, but may produce a broken library.
9283         allow_undefined_flag='-berok'
9284         # Determine the default libpath from the value encoded in an
9285         # empty executable.
9286         if test x$gcc_no_link = xyes; then
9287   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9289    { (exit 1); exit 1; }; }
9290 fi
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297
9298 int
9299 main ()
9300 {
9301
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308   (eval $ac_link) 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } &&
9315          { ac_try='test -z "$ac_c_werror_flag"
9316                          || test ! -s conftest.err'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; } &&
9322          { ac_try='test -s conftest$ac_exeext'
9323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324   (eval $ac_try) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); }; }; then
9328
9329 lt_aix_libpath_sed='
9330     /Import File Strings/,/^$/ {
9331         /^0/ {
9332             s/^0  *\(.*\)$/\1/
9333             p
9334         }
9335     }'
9336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9337 # Check for a 64-bit object if we didn't find anything.
9338 if test -z "$aix_libpath"; then
9339   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9340 fi
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 fi
9346 rm -f conftest.err conftest.$ac_objext \
9347       conftest$ac_exeext conftest.$ac_ext
9348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9349
9350         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9351         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9352       else
9353         if test "$host_cpu" = ia64; then
9354           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9355           allow_undefined_flag="-z nodefs"
9356           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9357         else
9358          # Determine the default libpath from the value encoded in an
9359          # empty executable.
9360          if test x$gcc_no_link = xyes; then
9361   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9363    { (exit 1); exit 1; }; }
9364 fi
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371
9372 int
9373 main ()
9374 {
9375
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382   (eval $ac_link) 2>conftest.er1
9383   ac_status=$?
9384   grep -v '^ *+' conftest.er1 >conftest.err
9385   rm -f conftest.er1
9386   cat conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } &&
9389          { ac_try='test -z "$ac_c_werror_flag"
9390                          || test ! -s conftest.err'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402
9403 lt_aix_libpath_sed='
9404     /Import File Strings/,/^$/ {
9405         /^0/ {
9406             s/^0  *\(.*\)$/\1/
9407             p
9408         }
9409     }'
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9411 # Check for a 64-bit object if we didn't find anything.
9412 if test -z "$aix_libpath"; then
9413   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9414 fi
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421       conftest$ac_exeext conftest.$ac_ext
9422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9423
9424          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425           # Warning - without using the other run time loading flags,
9426           # -berok will link without error, but may produce a broken library.
9427           no_undefined_flag=' ${wl}-bernotok'
9428           allow_undefined_flag=' ${wl}-berok'
9429           # Exported symbols can be pulled into shared objects from archives
9430           whole_archive_flag_spec='$convenience'
9431           archive_cmds_need_lc=yes
9432           # This is similar to how AIX traditionally builds its shared libraries.
9433           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9434         fi
9435       fi
9436       ;;
9437
9438     amigaos*)
9439       case $host_cpu in
9440       powerpc)
9441             # see comment about AmigaOS4 .so support
9442             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443             archive_expsym_cmds=''
9444         ;;
9445       m68k)
9446             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)'
9447             hardcode_libdir_flag_spec='-L$libdir'
9448             hardcode_minus_L=yes
9449         ;;
9450       esac
9451       ;;
9452
9453     bsdi[45]*)
9454       export_dynamic_flag_spec=-rdynamic
9455       ;;
9456
9457     cygwin* | mingw* | pw32* | cegcc*)
9458       # When not using gcc, we currently assume that we are using
9459       # Microsoft Visual C++.
9460       # hardcode_libdir_flag_spec is actually meaningless, as there is
9461       # no search path for DLLs.
9462       hardcode_libdir_flag_spec=' '
9463       allow_undefined_flag=unsupported
9464       # Tell ltmain to make .lib files, not .a files.
9465       libext=lib
9466       # Tell ltmain to make .dll files, not .so files.
9467       shrext_cmds=".dll"
9468       # FIXME: Setting linknames here is a bad hack.
9469       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9470       # The linker will automatically build a .lib file if we build a DLL.
9471       old_archive_from_new_cmds='true'
9472       # FIXME: Should let the user specify the lib program.
9473       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9474       fix_srcfile_path='`cygpath -w "$srcfile"`'
9475       enable_shared_with_static_runtimes=yes
9476       ;;
9477
9478     darwin* | rhapsody*)
9479
9480
9481   archive_cmds_need_lc=no
9482   hardcode_direct=no
9483   hardcode_automatic=yes
9484   hardcode_shlibpath_var=unsupported
9485   whole_archive_flag_spec=''
9486   link_all_deplibs=yes
9487   allow_undefined_flag="$_lt_dar_allow_undefined"
9488   case $cc_basename in
9489      ifort*) _lt_dar_can_shared=yes ;;
9490      *) _lt_dar_can_shared=$GCC ;;
9491   esac
9492   if test "$_lt_dar_can_shared" = "yes"; then
9493     output_verbose_link_cmd=echo
9494     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9495     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9496     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9497     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9498
9499   else
9500   ld_shlibs=no
9501   fi
9502
9503       ;;
9504
9505     dgux*)
9506       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507       hardcode_libdir_flag_spec='-L$libdir'
9508       hardcode_shlibpath_var=no
9509       ;;
9510
9511     freebsd1*)
9512       ld_shlibs=no
9513       ;;
9514
9515     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9516     # support.  Future versions do this automatically, but an explicit c++rt0.o
9517     # does not break anything, and helps significantly (at the cost of a little
9518     # extra space).
9519     freebsd2.2*)
9520       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9521       hardcode_libdir_flag_spec='-R$libdir'
9522       hardcode_direct=yes
9523       hardcode_shlibpath_var=no
9524       ;;
9525
9526     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9527     freebsd2*)
9528       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9529       hardcode_direct=yes
9530       hardcode_minus_L=yes
9531       hardcode_shlibpath_var=no
9532       ;;
9533
9534     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9535     freebsd* | dragonfly*)
9536       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9537       hardcode_libdir_flag_spec='-R$libdir'
9538       hardcode_direct=yes
9539       hardcode_shlibpath_var=no
9540       ;;
9541
9542     hpux9*)
9543       if test "$GCC" = yes; then
9544         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'
9545       else
9546         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'
9547       fi
9548       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549       hardcode_libdir_separator=:
9550       hardcode_direct=yes
9551
9552       # hardcode_minus_L: Not really in the search PATH,
9553       # but as the default location of the library.
9554       hardcode_minus_L=yes
9555       export_dynamic_flag_spec='${wl}-E'
9556       ;;
9557
9558     hpux10*)
9559       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9560         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561       else
9562         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9563       fi
9564       if test "$with_gnu_ld" = no; then
9565         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9566         hardcode_libdir_flag_spec_ld='+b $libdir'
9567         hardcode_libdir_separator=:
9568         hardcode_direct=yes
9569         hardcode_direct_absolute=yes
9570         export_dynamic_flag_spec='${wl}-E'
9571         # hardcode_minus_L: Not really in the search PATH,
9572         # but as the default location of the library.
9573         hardcode_minus_L=yes
9574       fi
9575       ;;
9576
9577     hpux11*)
9578       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9579         case $host_cpu in
9580         hppa*64*)
9581           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9582           ;;
9583         ia64*)
9584           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9585           ;;
9586         *)
9587           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9588           ;;
9589         esac
9590       else
9591         case $host_cpu in
9592         hppa*64*)
9593           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594           ;;
9595         ia64*)
9596           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9597           ;;
9598         *)
9599           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9600           ;;
9601         esac
9602       fi
9603       if test "$with_gnu_ld" = no; then
9604         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9605         hardcode_libdir_separator=:
9606
9607         case $host_cpu in
9608         hppa*64*|ia64*)
9609           hardcode_direct=no
9610           hardcode_shlibpath_var=no
9611           ;;
9612         *)
9613           hardcode_direct=yes
9614           hardcode_direct_absolute=yes
9615           export_dynamic_flag_spec='${wl}-E'
9616
9617           # hardcode_minus_L: Not really in the search PATH,
9618           # but as the default location of the library.
9619           hardcode_minus_L=yes
9620           ;;
9621         esac
9622       fi
9623       ;;
9624
9625     irix5* | irix6* | nonstopux*)
9626       if test "$GCC" = yes; then
9627         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9628         # Try to use the -exported_symbol ld option, if it does not
9629         # work, assume that -exports_file does not work either and
9630         # implicitly export all symbols.
9631         save_LDFLAGS="$LDFLAGS"
9632         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9633         if test x$gcc_no_link = xyes; then
9634   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9636    { (exit 1); exit 1; }; }
9637 fi
9638 cat >conftest.$ac_ext <<_ACEOF
9639 int foo(void) {}
9640 _ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9643   (eval $ac_link) 2>conftest.er1
9644   ac_status=$?
9645   grep -v '^ *+' conftest.er1 >conftest.err
9646   rm -f conftest.er1
9647   cat conftest.err >&5
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); } &&
9650          { ac_try='test -z "$ac_c_werror_flag"
9651                          || test ! -s conftest.err'
9652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653   (eval $ac_try) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; } &&
9657          { ac_try='test -s conftest$ac_exeext'
9658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659   (eval $ac_try) 2>&5
9660   ac_status=$?
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); }; }; then
9663   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9664
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 fi
9670 rm -f conftest.err conftest.$ac_objext \
9671       conftest$ac_exeext conftest.$ac_ext
9672         LDFLAGS="$save_LDFLAGS"
9673       else
9674         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9675         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9676       fi
9677       archive_cmds_need_lc='no'
9678       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9679       hardcode_libdir_separator=:
9680       inherit_rpath=yes
9681       link_all_deplibs=yes
9682       ;;
9683
9684     netbsd*)
9685       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9686         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9687       else
9688         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9689       fi
9690       hardcode_libdir_flag_spec='-R$libdir'
9691       hardcode_direct=yes
9692       hardcode_shlibpath_var=no
9693       ;;
9694
9695     newsos6)
9696       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697       hardcode_direct=yes
9698       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699       hardcode_libdir_separator=:
9700       hardcode_shlibpath_var=no
9701       ;;
9702
9703     *nto* | *qnx*)
9704       ;;
9705
9706     openbsd*)
9707       if test -f /usr/libexec/ld.so; then
9708         hardcode_direct=yes
9709         hardcode_shlibpath_var=no
9710         hardcode_direct_absolute=yes
9711         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9712           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9713           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9714           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9715           export_dynamic_flag_spec='${wl}-E'
9716         else
9717           case $host_os in
9718            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9719              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9720              hardcode_libdir_flag_spec='-R$libdir'
9721              ;;
9722            *)
9723              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9724              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9725              ;;
9726           esac
9727         fi
9728       else
9729         ld_shlibs=no
9730       fi
9731       ;;
9732
9733     os2*)
9734       hardcode_libdir_flag_spec='-L$libdir'
9735       hardcode_minus_L=yes
9736       allow_undefined_flag=unsupported
9737       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'
9738       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9739       ;;
9740
9741     osf3*)
9742       if test "$GCC" = yes; then
9743         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9744         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9745       else
9746         allow_undefined_flag=' -expect_unresolved \*'
9747         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9748       fi
9749       archive_cmds_need_lc='no'
9750       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751       hardcode_libdir_separator=:
9752       ;;
9753
9754     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9755       if test "$GCC" = yes; then
9756         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9757         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9758         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9759       else
9760         allow_undefined_flag=' -expect_unresolved \*'
9761         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9762         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9763         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9764
9765         # Both c and cxx compiler support -rpath directly
9766         hardcode_libdir_flag_spec='-rpath $libdir'
9767       fi
9768       archive_cmds_need_lc='no'
9769       hardcode_libdir_separator=:
9770       ;;
9771
9772     solaris*)
9773       no_undefined_flag=' -z defs'
9774       if test "$GCC" = yes; then
9775         wlarc='${wl}'
9776         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9778           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9779       else
9780         case `$CC -V 2>&1` in
9781         *"Compilers 5.0"*)
9782           wlarc=''
9783           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9786           ;;
9787         *)
9788           wlarc='${wl}'
9789           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9790           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9791           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9792           ;;
9793         esac
9794       fi
9795       hardcode_libdir_flag_spec='-R$libdir'
9796       hardcode_shlibpath_var=no
9797       case $host_os in
9798       solaris2.[0-5] | solaris2.[0-5].*) ;;
9799       *)
9800         # The compiler driver will combine and reorder linker options,
9801         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9802         # but is careful enough not to reorder.
9803         # Supported since Solaris 2.6 (maybe 2.5.1?)
9804         if test "$GCC" = yes; then
9805           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9806         else
9807           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9808         fi
9809         ;;
9810       esac
9811       link_all_deplibs=yes
9812       ;;
9813
9814     sunos4*)
9815       if test "x$host_vendor" = xsequent; then
9816         # Use $CC to link under sequent, because it throws in some extra .o
9817         # files that make .init and .fini sections work.
9818         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9819       else
9820         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9821       fi
9822       hardcode_libdir_flag_spec='-L$libdir'
9823       hardcode_direct=yes
9824       hardcode_minus_L=yes
9825       hardcode_shlibpath_var=no
9826       ;;
9827
9828     sysv4)
9829       case $host_vendor in
9830         sni)
9831           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832           hardcode_direct=yes # is this really true???
9833         ;;
9834         siemens)
9835           ## LD is ld it makes a PLAMLIB
9836           ## CC just makes a GrossModule.
9837           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9838           reload_cmds='$CC -r -o $output$reload_objs'
9839           hardcode_direct=no
9840         ;;
9841         motorola)
9842           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9844         ;;
9845       esac
9846       runpath_var='LD_RUN_PATH'
9847       hardcode_shlibpath_var=no
9848       ;;
9849
9850     sysv4.3*)
9851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852       hardcode_shlibpath_var=no
9853       export_dynamic_flag_spec='-Bexport'
9854       ;;
9855
9856     sysv4*MP*)
9857       if test -d /usr/nec; then
9858         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859         hardcode_shlibpath_var=no
9860         runpath_var=LD_RUN_PATH
9861         hardcode_runpath_var=yes
9862         ld_shlibs=yes
9863       fi
9864       ;;
9865
9866     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9867       no_undefined_flag='${wl}-z,text'
9868       archive_cmds_need_lc=no
9869       hardcode_shlibpath_var=no
9870       runpath_var='LD_RUN_PATH'
9871
9872       if test "$GCC" = yes; then
9873         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9875       else
9876         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9878       fi
9879       ;;
9880
9881     sysv5* | sco3.2v5* | sco5v6*)
9882       # Note: We can NOT use -z defs as we might desire, because we do not
9883       # link with -lc, and that would cause any symbols used from libc to
9884       # always be unresolved, which means just about no library would
9885       # ever link correctly.  If we're not using GNU ld we use -z text
9886       # though, which does catch some bad symbols but isn't as heavy-handed
9887       # as -z defs.
9888       no_undefined_flag='${wl}-z,text'
9889       allow_undefined_flag='${wl}-z,nodefs'
9890       archive_cmds_need_lc=no
9891       hardcode_shlibpath_var=no
9892       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9893       hardcode_libdir_separator=':'
9894       link_all_deplibs=yes
9895       export_dynamic_flag_spec='${wl}-Bexport'
9896       runpath_var='LD_RUN_PATH'
9897
9898       if test "$GCC" = yes; then
9899         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901       else
9902         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9904       fi
9905       ;;
9906
9907     uts4*)
9908       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909       hardcode_libdir_flag_spec='-L$libdir'
9910       hardcode_shlibpath_var=no
9911       ;;
9912
9913     *)
9914       ld_shlibs=no
9915       ;;
9916     esac
9917
9918     if test x$host_vendor = xsni; then
9919       case $host in
9920       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9921         export_dynamic_flag_spec='${wl}-Blargedynsym'
9922         ;;
9923       esac
9924     fi
9925   fi
9926
9927 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9928 echo "${ECHO_T}$ld_shlibs" >&6
9929 test "$ld_shlibs" = no && can_build_shared=no
9930
9931 with_gnu_ld=$with_gnu_ld
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947 #
9948 # Do we need to explicitly link libc?
9949 #
9950 case "x$archive_cmds_need_lc" in
9951 x|xyes)
9952   # Assume -lc should be added
9953   archive_cmds_need_lc=yes
9954
9955   if test "$enable_shared" = yes && test "$GCC" = yes; then
9956     case $archive_cmds in
9957     *'~'*)
9958       # FIXME: we may have to deal with multi-command sequences.
9959       ;;
9960     '$CC '*)
9961       # Test whether the compiler implicitly links with -lc since on some
9962       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9963       # to ld, don't add -lc before -lgcc.
9964       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9966 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   $RM conftest*
9970         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971
9972         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973   (eval $ac_compile) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } 2>conftest.err; then
9977           soname=conftest
9978           lib=conftest
9979           libobjs=conftest.$ac_objext
9980           deplibs=
9981           wl=$lt_prog_compiler_wl
9982           pic_flag=$lt_prog_compiler_pic
9983           compiler_flags=-v
9984           linker_flags=-v
9985           verstring=
9986           output_objdir=.
9987           libname=conftest
9988           lt_save_allow_undefined_flag=$allow_undefined_flag
9989           allow_undefined_flag=
9990           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9991   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }
9995           then
9996             lt_cv_archive_cmds_need_lc=no
9997           else
9998             lt_cv_archive_cmds_need_lc=yes
9999           fi
10000           allow_undefined_flag=$lt_save_allow_undefined_flag
10001         else
10002           cat conftest.err 1>&5
10003         fi
10004         $RM conftest*
10005
10006 fi
10007 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10008 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10009       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10010       ;;
10011     esac
10012   fi
10013   ;;
10014 esac
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10174
10175 if test "$GCC" = yes; then
10176   case $host_os in
10177     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10178     *) lt_awk_arg="/^libraries:/" ;;
10179   esac
10180   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10181   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10182     # if the path contains ";" then we assume it to be the separator
10183     # otherwise default to the standard path separator (i.e. ":") - it is
10184     # assumed that no part of a normal pathname contains ";" but that should
10185     # okay in the real world where ";" in dirpaths is itself problematic.
10186     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10187   else
10188     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10189   fi
10190   # Ok, now we have the path, separated by spaces, we can step through it
10191   # and add multilib dir if necessary.
10192   lt_tmp_lt_search_path_spec=
10193   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10194   for lt_sys_path in $lt_search_path_spec; do
10195     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10196       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10197     else
10198       test -d "$lt_sys_path" && \
10199         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10200     fi
10201   done
10202   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10203 BEGIN {RS=" "; FS="/|\n";} {
10204   lt_foo="";
10205   lt_count=0;
10206   for (lt_i = NF; lt_i > 0; lt_i--) {
10207     if ($lt_i != "" && $lt_i != ".") {
10208       if ($lt_i == "..") {
10209         lt_count++;
10210       } else {
10211         if (lt_count == 0) {
10212           lt_foo="/" $lt_i lt_foo;
10213         } else {
10214           lt_count--;
10215         }
10216       }
10217     }
10218   }
10219   if (lt_foo != "") { lt_freq[lt_foo]++; }
10220   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10221 }'`
10222   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10223 else
10224   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10225 fi
10226 library_names_spec=
10227 libname_spec='lib$name'
10228 soname_spec=
10229 shrext_cmds=".so"
10230 postinstall_cmds=
10231 postuninstall_cmds=
10232 finish_cmds=
10233 finish_eval=
10234 shlibpath_var=
10235 shlibpath_overrides_runpath=unknown
10236 version_type=none
10237 dynamic_linker="$host_os ld.so"
10238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10239 need_lib_prefix=unknown
10240 hardcode_into_libs=no
10241
10242 # when you set need_version to no, make sure it does not cause -set_version
10243 # flags to be left without arguments
10244 need_version=unknown
10245
10246 case $host_os in
10247 aix3*)
10248   version_type=linux
10249   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10250   shlibpath_var=LIBPATH
10251
10252   # AIX 3 has no versioning support, so we append a major version to the name.
10253   soname_spec='${libname}${release}${shared_ext}$major'
10254   ;;
10255
10256 aix[4-9]*)
10257   version_type=linux
10258   need_lib_prefix=no
10259   need_version=no
10260   hardcode_into_libs=yes
10261   if test "$host_cpu" = ia64; then
10262     # AIX 5 supports IA64
10263     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10264     shlibpath_var=LD_LIBRARY_PATH
10265   else
10266     # With GCC up to 2.95.x, collect2 would create an import file
10267     # for dependence libraries.  The import file would start with
10268     # the line `#! .'.  This would cause the generated library to
10269     # depend on `.', always an invalid library.  This was fixed in
10270     # development snapshots of GCC prior to 3.0.
10271     case $host_os in
10272       aix4 | aix4.[01] | aix4.[01].*)
10273       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10274            echo ' yes '
10275            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10276         :
10277       else
10278         can_build_shared=no
10279       fi
10280       ;;
10281     esac
10282     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10283     # soname into executable. Probably we can add versioning support to
10284     # collect2, so additional links can be useful in future.
10285     if test "$aix_use_runtimelinking" = yes; then
10286       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10287       # instead of lib<name>.a to let people know that these are not
10288       # typical AIX shared libraries.
10289       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290     else
10291       # We preserve .a as extension for shared libraries through AIX4.2
10292       # and later when we are not doing run time linking.
10293       library_names_spec='${libname}${release}.a $libname.a'
10294       soname_spec='${libname}${release}${shared_ext}$major'
10295     fi
10296     shlibpath_var=LIBPATH
10297   fi
10298   ;;
10299
10300 amigaos*)
10301   case $host_cpu in
10302   powerpc)
10303     # Since July 2007 AmigaOS4 officially supports .so libraries.
10304     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306     ;;
10307   m68k)
10308     library_names_spec='$libname.ixlibrary $libname.a'
10309     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10310     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'
10311     ;;
10312   esac
10313   ;;
10314
10315 beos*)
10316   library_names_spec='${libname}${shared_ext}'
10317   dynamic_linker="$host_os ld.so"
10318   shlibpath_var=LIBRARY_PATH
10319   ;;
10320
10321 bsdi[45]*)
10322   version_type=linux
10323   need_version=no
10324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325   soname_spec='${libname}${release}${shared_ext}$major'
10326   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10329   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10330   # the default ld.so.conf also contains /usr/contrib/lib and
10331   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10332   # libtool to hard-code these into programs
10333   ;;
10334
10335 cygwin* | mingw* | pw32* | cegcc*)
10336   version_type=windows
10337   shrext_cmds=".dll"
10338   need_version=no
10339   need_lib_prefix=no
10340
10341   case $GCC,$host_os in
10342   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10343     library_names_spec='$libname.dll.a'
10344     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10345     postinstall_cmds='base_file=`basename \${file}`~
10346       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10347       dldir=$destdir/`dirname \$dlpath`~
10348       test -d \$dldir || mkdir -p \$dldir~
10349       $install_prog $dir/$dlname \$dldir/$dlname~
10350       chmod a+x \$dldir/$dlname~
10351       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10352         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10353       fi'
10354     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10355       dlpath=$dir/\$dldll~
10356        $RM \$dlpath'
10357     shlibpath_overrides_runpath=yes
10358
10359     case $host_os in
10360     cygwin*)
10361       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10362       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10363       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10364       ;;
10365     mingw* | cegcc*)
10366       # MinGW DLLs use traditional 'lib' prefix
10367       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10368       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10369       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10370         # It is most probably a Windows format PATH printed by
10371         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10372         # path with ; separators, and with drive letters. We can handle the
10373         # drive letters (cygwin fileutils understands them), so leave them,
10374         # especially as we might pass files found there to a mingw objdump,
10375         # which wouldn't understand a cygwinified path. Ahh.
10376         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10377       else
10378         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10379       fi
10380       ;;
10381     pw32*)
10382       # pw32 DLLs use 'pw' prefix rather than 'lib'
10383       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10384       ;;
10385     esac
10386     ;;
10387
10388   *)
10389     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10390     ;;
10391   esac
10392   dynamic_linker='Win32 ld.exe'
10393   # FIXME: first we should search . and the directory the executable is in
10394   shlibpath_var=PATH
10395   ;;
10396
10397 darwin* | rhapsody*)
10398   dynamic_linker="$host_os dyld"
10399   version_type=darwin
10400   need_lib_prefix=no
10401   need_version=no
10402   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10403   soname_spec='${libname}${release}${major}$shared_ext'
10404   shlibpath_overrides_runpath=yes
10405   shlibpath_var=DYLD_LIBRARY_PATH
10406   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10407
10408   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10409   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10410   ;;
10411
10412 dgux*)
10413   version_type=linux
10414   need_lib_prefix=no
10415   need_version=no
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10417   soname_spec='${libname}${release}${shared_ext}$major'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   ;;
10420
10421 freebsd1*)
10422   dynamic_linker=no
10423   ;;
10424
10425 freebsd* | dragonfly*)
10426   # DragonFly does not have aout.  When/if they implement a new
10427   # versioning mechanism, adjust this.
10428   if test -x /usr/bin/objformat; then
10429     objformat=`/usr/bin/objformat`
10430   else
10431     case $host_os in
10432     freebsd[123]*) objformat=aout ;;
10433     *) objformat=elf ;;
10434     esac
10435   fi
10436   version_type=freebsd-$objformat
10437   case $version_type in
10438     freebsd-elf*)
10439       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10440       need_version=no
10441       need_lib_prefix=no
10442       ;;
10443     freebsd-*)
10444       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10445       need_version=yes
10446       ;;
10447   esac
10448   shlibpath_var=LD_LIBRARY_PATH
10449   case $host_os in
10450   freebsd2*)
10451     shlibpath_overrides_runpath=yes
10452     ;;
10453   freebsd3.[01]* | freebsdelf3.[01]*)
10454     shlibpath_overrides_runpath=yes
10455     hardcode_into_libs=yes
10456     ;;
10457   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10458   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10459     shlibpath_overrides_runpath=no
10460     hardcode_into_libs=yes
10461     ;;
10462   *) # from 4.6 on, and DragonFly
10463     shlibpath_overrides_runpath=yes
10464     hardcode_into_libs=yes
10465     ;;
10466   esac
10467   ;;
10468
10469 gnu*)
10470   version_type=linux
10471   need_lib_prefix=no
10472   need_version=no
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   shlibpath_var=LD_LIBRARY_PATH
10476   hardcode_into_libs=yes
10477   ;;
10478
10479 hpux9* | hpux10* | hpux11*)
10480   # Give a soname corresponding to the major version so that dld.sl refuses to
10481   # link against other versions.
10482   version_type=sunos
10483   need_lib_prefix=no
10484   need_version=no
10485   case $host_cpu in
10486   ia64*)
10487     shrext_cmds='.so'
10488     hardcode_into_libs=yes
10489     dynamic_linker="$host_os dld.so"
10490     shlibpath_var=LD_LIBRARY_PATH
10491     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493     soname_spec='${libname}${release}${shared_ext}$major'
10494     if test "X$HPUX_IA64_MODE" = X32; then
10495       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10496     else
10497       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10498     fi
10499     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10500     ;;
10501   hppa*64*)
10502     shrext_cmds='.sl'
10503     hardcode_into_libs=yes
10504     dynamic_linker="$host_os dld.sl"
10505     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10506     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508     soname_spec='${libname}${release}${shared_ext}$major'
10509     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10511     ;;
10512   *)
10513     shrext_cmds='.sl'
10514     dynamic_linker="$host_os dld.sl"
10515     shlibpath_var=SHLIB_PATH
10516     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518     soname_spec='${libname}${release}${shared_ext}$major'
10519     ;;
10520   esac
10521   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10522   postinstall_cmds='chmod 555 $lib'
10523   ;;
10524
10525 interix[3-9]*)
10526   version_type=linux
10527   need_lib_prefix=no
10528   need_version=no
10529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10530   soname_spec='${libname}${release}${shared_ext}$major'
10531   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10532   shlibpath_var=LD_LIBRARY_PATH
10533   shlibpath_overrides_runpath=no
10534   hardcode_into_libs=yes
10535   ;;
10536
10537 irix5* | irix6* | nonstopux*)
10538   case $host_os in
10539     nonstopux*) version_type=nonstopux ;;
10540     *)
10541         if test "$lt_cv_prog_gnu_ld" = yes; then
10542                 version_type=linux
10543         else
10544                 version_type=irix
10545         fi ;;
10546   esac
10547   need_lib_prefix=no
10548   need_version=no
10549   soname_spec='${libname}${release}${shared_ext}$major'
10550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10551   case $host_os in
10552   irix5* | nonstopux*)
10553     libsuff= shlibsuff=
10554     ;;
10555   *)
10556     case $LD in # libtool.m4 will add one of these switches to LD
10557     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10558       libsuff= shlibsuff= libmagic=32-bit;;
10559     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10560       libsuff=32 shlibsuff=N32 libmagic=N32;;
10561     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10562       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10563     *) libsuff= shlibsuff= libmagic=never-match;;
10564     esac
10565     ;;
10566   esac
10567   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10568   shlibpath_overrides_runpath=no
10569   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10570   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10571   hardcode_into_libs=yes
10572   ;;
10573
10574 # No shared lib support for Linux oldld, aout, or coff.
10575 linux*oldld* | linux*aout* | linux*coff*)
10576   dynamic_linker=no
10577   ;;
10578
10579 # This must be Linux ELF.
10580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10581   version_type=linux
10582   need_lib_prefix=no
10583   need_version=no
10584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585   soname_spec='${libname}${release}${shared_ext}$major'
10586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10587   shlibpath_var=LD_LIBRARY_PATH
10588   shlibpath_overrides_runpath=no
10589
10590   # Some binutils ld are patched to set DT_RUNPATH
10591   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   lt_cv_shlibpath_overrides_runpath=no
10595     save_LDFLAGS=$LDFLAGS
10596     save_libdir=$libdir
10597     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10598          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10599     if test x$gcc_no_link = xyes; then
10600   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10601 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10602    { (exit 1); exit 1; }; }
10603 fi
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610
10611 int
10612 main ()
10613 {
10614
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621   (eval $ac_link) 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } &&
10628          { ac_try='test -z "$ac_c_werror_flag"
10629                          || test ! -s conftest.err'
10630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631   (eval $ac_try) 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; } &&
10635          { ac_try='test -s conftest$ac_exeext'
10636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637   (eval $ac_try) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }; }; then
10641   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10642   lt_cv_shlibpath_overrides_runpath=yes
10643 fi
10644
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 fi
10650 rm -f conftest.err conftest.$ac_objext \
10651       conftest$ac_exeext conftest.$ac_ext
10652     LDFLAGS=$save_LDFLAGS
10653     libdir=$save_libdir
10654
10655 fi
10656
10657   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10658
10659   # This implies no fast_install, which is unacceptable.
10660   # Some rework will be needed to allow for fast_install
10661   # before this can be enabled.
10662   hardcode_into_libs=yes
10663
10664   # Append ld.so.conf contents to the search path
10665   if test -f /etc/ld.so.conf; then
10666     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10667     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10668   fi
10669
10670   # We used to test for /lib/ld.so.1 and disable shared libraries on
10671   # powerpc, because MkLinux only supported shared libraries with the
10672   # GNU dynamic linker.  Since this was broken with cross compilers,
10673   # most powerpc-linux boxes support dynamic linking these days and
10674   # people can always --disable-shared, the test was removed, and we
10675   # assume the GNU/Linux dynamic linker is in use.
10676   dynamic_linker='GNU/Linux ld.so'
10677   ;;
10678
10679 netbsd*)
10680   version_type=sunos
10681   need_lib_prefix=no
10682   need_version=no
10683   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10685     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10686     dynamic_linker='NetBSD (a.out) ld.so'
10687   else
10688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10689     soname_spec='${libname}${release}${shared_ext}$major'
10690     dynamic_linker='NetBSD ld.elf_so'
10691   fi
10692   shlibpath_var=LD_LIBRARY_PATH
10693   shlibpath_overrides_runpath=yes
10694   hardcode_into_libs=yes
10695   ;;
10696
10697 newsos6)
10698   version_type=linux
10699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700   shlibpath_var=LD_LIBRARY_PATH
10701   shlibpath_overrides_runpath=yes
10702   ;;
10703
10704 *nto* | *qnx*)
10705   version_type=qnx
10706   need_lib_prefix=no
10707   need_version=no
10708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709   soname_spec='${libname}${release}${shared_ext}$major'
10710   shlibpath_var=LD_LIBRARY_PATH
10711   shlibpath_overrides_runpath=no
10712   hardcode_into_libs=yes
10713   dynamic_linker='ldqnx.so'
10714   ;;
10715
10716 openbsd*)
10717   version_type=sunos
10718   sys_lib_dlsearch_path_spec="/usr/lib"
10719   need_lib_prefix=no
10720   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10721   case $host_os in
10722     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10723     *)                          need_version=no  ;;
10724   esac
10725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10727   shlibpath_var=LD_LIBRARY_PATH
10728   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10729     case $host_os in
10730       openbsd2.[89] | openbsd2.[89].*)
10731         shlibpath_overrides_runpath=no
10732         ;;
10733       *)
10734         shlibpath_overrides_runpath=yes
10735         ;;
10736       esac
10737   else
10738     shlibpath_overrides_runpath=yes
10739   fi
10740   ;;
10741
10742 os2*)
10743   libname_spec='$name'
10744   shrext_cmds=".dll"
10745   need_lib_prefix=no
10746   library_names_spec='$libname${shared_ext} $libname.a'
10747   dynamic_linker='OS/2 ld.exe'
10748   shlibpath_var=LIBPATH
10749   ;;
10750
10751 osf3* | osf4* | osf5*)
10752   version_type=osf
10753   need_lib_prefix=no
10754   need_version=no
10755   soname_spec='${libname}${release}${shared_ext}$major'
10756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757   shlibpath_var=LD_LIBRARY_PATH
10758   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10759   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10760   ;;
10761
10762 rdos*)
10763   dynamic_linker=no
10764   ;;
10765
10766 solaris*)
10767   version_type=linux
10768   need_lib_prefix=no
10769   need_version=no
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=yes
10774   hardcode_into_libs=yes
10775   # ldd complains unless libraries are executable
10776   postinstall_cmds='chmod +x $lib'
10777   ;;
10778
10779 sunos4*)
10780   version_type=sunos
10781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10782   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10783   shlibpath_var=LD_LIBRARY_PATH
10784   shlibpath_overrides_runpath=yes
10785   if test "$with_gnu_ld" = yes; then
10786     need_lib_prefix=no
10787   fi
10788   need_version=yes
10789   ;;
10790
10791 sysv4 | sysv4.3*)
10792   version_type=linux
10793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794   soname_spec='${libname}${release}${shared_ext}$major'
10795   shlibpath_var=LD_LIBRARY_PATH
10796   case $host_vendor in
10797     sni)
10798       shlibpath_overrides_runpath=no
10799       need_lib_prefix=no
10800       runpath_var=LD_RUN_PATH
10801       ;;
10802     siemens)
10803       need_lib_prefix=no
10804       ;;
10805     motorola)
10806       need_lib_prefix=no
10807       need_version=no
10808       shlibpath_overrides_runpath=no
10809       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10810       ;;
10811   esac
10812   ;;
10813
10814 sysv4*MP*)
10815   if test -d /usr/nec ;then
10816     version_type=linux
10817     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10818     soname_spec='$libname${shared_ext}.$major'
10819     shlibpath_var=LD_LIBRARY_PATH
10820   fi
10821   ;;
10822
10823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10824   version_type=freebsd-elf
10825   need_lib_prefix=no
10826   need_version=no
10827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10828   soname_spec='${libname}${release}${shared_ext}$major'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   shlibpath_overrides_runpath=yes
10831   hardcode_into_libs=yes
10832   if test "$with_gnu_ld" = yes; then
10833     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10834   else
10835     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10836     case $host_os in
10837       sco3.2v5*)
10838         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10839         ;;
10840     esac
10841   fi
10842   sys_lib_dlsearch_path_spec='/usr/lib'
10843   ;;
10844
10845 tpf*)
10846   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10847   version_type=linux
10848   need_lib_prefix=no
10849   need_version=no
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851   shlibpath_var=LD_LIBRARY_PATH
10852   shlibpath_overrides_runpath=no
10853   hardcode_into_libs=yes
10854   ;;
10855
10856 uts4*)
10857   version_type=linux
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   ;;
10862
10863 *)
10864   dynamic_linker=no
10865   ;;
10866 esac
10867 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10868 echo "${ECHO_T}$dynamic_linker" >&6
10869 test "$dynamic_linker" = no && can_build_shared=no
10870
10871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10872 if test "$GCC" = yes; then
10873   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10874 fi
10875
10876 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10877   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10878 fi
10879 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10880   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10881 fi
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10970 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10971 hardcode_action=
10972 if test -n "$hardcode_libdir_flag_spec" ||
10973    test -n "$runpath_var" ||
10974    test "X$hardcode_automatic" = "Xyes" ; then
10975
10976   # We can hardcode non-existent directories.
10977   if test "$hardcode_direct" != no &&
10978      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10979      # have to relink, otherwise we might link with an installed library
10980      # when we should be linking with a yet-to-be-installed one
10981      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10982      test "$hardcode_minus_L" != no; then
10983     # Linking always hardcodes the temporary library directory.
10984     hardcode_action=relink
10985   else
10986     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10987     hardcode_action=immediate
10988   fi
10989 else
10990   # We cannot hardcode anything, or else we can only hardcode existing
10991   # directories.
10992   hardcode_action=unsupported
10993 fi
10994 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10995 echo "${ECHO_T}$hardcode_action" >&6
10996
10997 if test "$hardcode_action" = relink ||
10998    test "$inherit_rpath" = yes; then
10999   # Fast installation is not supported
11000   enable_fast_install=no
11001 elif test "$shlibpath_overrides_runpath" = yes ||
11002      test "$enable_shared" = no; then
11003   # Fast installation is not necessary
11004   enable_fast_install=needless
11005 fi
11006
11007
11008
11009
11010
11011
11012   if test "x$enable_dlopen" != xyes; then
11013   enable_dlopen=unknown
11014   enable_dlopen_self=unknown
11015   enable_dlopen_self_static=unknown
11016 else
11017   lt_cv_dlopen=no
11018   lt_cv_dlopen_libs=
11019
11020   case $host_os in
11021   beos*)
11022     lt_cv_dlopen="load_add_on"
11023     lt_cv_dlopen_libs=
11024     lt_cv_dlopen_self=yes
11025     ;;
11026
11027   mingw* | pw32* | cegcc*)
11028     lt_cv_dlopen="LoadLibrary"
11029     lt_cv_dlopen_libs=
11030     ;;
11031
11032   cygwin*)
11033     lt_cv_dlopen="dlopen"
11034     lt_cv_dlopen_libs=
11035     ;;
11036
11037   darwin*)
11038   # if libdl is installed we need to link against it
11039     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11042   echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044   ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-ldl  $LIBS"
11046 if test x$gcc_no_link = xyes; then
11047   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049    { (exit 1); exit 1; }; }
11050 fi
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057
11058 /* Override any gcc2 internal prototype to avoid an error.  */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 /* We use char because int might match the return type of a gcc2
11063    builtin and then its argument prototype would still apply.  */
11064 char dlopen ();
11065 int
11066 main ()
11067 {
11068 dlopen ();
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075   (eval $ac_link) 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag"
11083                          || test ! -s conftest.err'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; } &&
11089          { ac_try='test -s conftest$ac_exeext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_lib_dl_dlopen=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ac_cv_lib_dl_dlopen=no
11101 fi
11102 rm -f conftest.err conftest.$ac_objext \
11103       conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11105 fi
11106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11108 if test $ac_cv_lib_dl_dlopen = yes; then
11109   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11110 else
11111
11112     lt_cv_dlopen="dyld"
11113     lt_cv_dlopen_libs=
11114     lt_cv_dlopen_self=yes
11115
11116 fi
11117
11118     ;;
11119
11120   *)
11121     echo "$as_me:$LINENO: checking for shl_load" >&5
11122 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11123 if test "${ac_cv_func_shl_load+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   if test x$gcc_no_link = xyes; then
11127   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11129    { (exit 1); exit 1; }; }
11130 fi
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11139 #define shl_load innocuous_shl_load
11140
11141 /* System header to define __stub macros and hopefully few prototypes,
11142     which can conflict with char shl_load (); below.
11143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144     <limits.h> exists even on freestanding compilers.  */
11145
11146 #ifdef __STDC__
11147 # include <limits.h>
11148 #else
11149 # include <assert.h>
11150 #endif
11151
11152 #undef shl_load
11153
11154 /* Override any gcc2 internal prototype to avoid an error.  */
11155 #ifdef __cplusplus
11156 extern "C"
11157 {
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160    builtin and then its argument prototype would still apply.  */
11161 char shl_load ();
11162 /* The GNU C library defines this for functions which it implements
11163     to always fail with ENOSYS.  Some functions are actually named
11164     something starting with __ and the normal name is an alias.  */
11165 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11166 choke me
11167 #else
11168 char (*f) () = shl_load;
11169 #endif
11170 #ifdef __cplusplus
11171 }
11172 #endif
11173
11174 int
11175 main ()
11176 {
11177 return f != shl_load;
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11184   (eval $ac_link) 2>conftest.er1
11185   ac_status=$?
11186   grep -v '^ *+' conftest.er1 >conftest.err
11187   rm -f conftest.er1
11188   cat conftest.err >&5
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } &&
11191          { ac_try='test -z "$ac_c_werror_flag"
11192                          || test ! -s conftest.err'
11193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194   (eval $ac_try) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; } &&
11198          { ac_try='test -s conftest$ac_exeext'
11199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200   (eval $ac_try) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; }; then
11204   ac_cv_func_shl_load=yes
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 ac_cv_func_shl_load=no
11210 fi
11211 rm -f conftest.err conftest.$ac_objext \
11212       conftest$ac_exeext conftest.$ac_ext
11213 fi
11214 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11215 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11216 if test $ac_cv_func_shl_load = yes; then
11217   lt_cv_dlopen="shl_load"
11218 else
11219   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11220 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11221 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-ldld  $LIBS"
11226 if test x$gcc_no_link = xyes; then
11227   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11229    { (exit 1); exit 1; }; }
11230 fi
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237
11238 /* Override any gcc2 internal prototype to avoid an error.  */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 /* We use char because int might match the return type of a gcc2
11243    builtin and then its argument prototype would still apply.  */
11244 char shl_load ();
11245 int
11246 main ()
11247 {
11248 shl_load ();
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest.$ac_objext conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255   (eval $ac_link) 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } &&
11262          { ac_try='test -z "$ac_c_werror_flag"
11263                          || test ! -s conftest.err'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; } &&
11269          { ac_try='test -s conftest$ac_exeext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_cv_lib_dld_shl_load=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ac_cv_lib_dld_shl_load=no
11281 fi
11282 rm -f conftest.err conftest.$ac_objext \
11283       conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11285 fi
11286 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11287 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11288 if test $ac_cv_lib_dld_shl_load = yes; then
11289   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11290 else
11291   echo "$as_me:$LINENO: checking for dlopen" >&5
11292 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11293 if test "${ac_cv_func_dlopen+set}" = set; then
11294   echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296   if test x$gcc_no_link = xyes; then
11297   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11299    { (exit 1); exit 1; }; }
11300 fi
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11309 #define dlopen innocuous_dlopen
11310
11311 /* System header to define __stub macros and hopefully few prototypes,
11312     which can conflict with char dlopen (); below.
11313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314     <limits.h> exists even on freestanding compilers.  */
11315
11316 #ifdef __STDC__
11317 # include <limits.h>
11318 #else
11319 # include <assert.h>
11320 #endif
11321
11322 #undef dlopen
11323
11324 /* Override any gcc2 internal prototype to avoid an error.  */
11325 #ifdef __cplusplus
11326 extern "C"
11327 {
11328 #endif
11329 /* We use char because int might match the return type of a gcc2
11330    builtin and then its argument prototype would still apply.  */
11331 char dlopen ();
11332 /* The GNU C library defines this for functions which it implements
11333     to always fail with ENOSYS.  Some functions are actually named
11334     something starting with __ and the normal name is an alias.  */
11335 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11336 choke me
11337 #else
11338 char (*f) () = dlopen;
11339 #endif
11340 #ifdef __cplusplus
11341 }
11342 #endif
11343
11344 int
11345 main ()
11346 {
11347 return f != dlopen;
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354   (eval $ac_link) 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -z "$ac_c_werror_flag"
11362                          || test ! -s conftest.err'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; } &&
11368          { ac_try='test -s conftest$ac_exeext'
11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370   (eval $ac_try) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; }; then
11374   ac_cv_func_dlopen=yes
11375 else
11376   echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 ac_cv_func_dlopen=no
11380 fi
11381 rm -f conftest.err conftest.$ac_objext \
11382       conftest$ac_exeext conftest.$ac_ext
11383 fi
11384 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11385 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11386 if test $ac_cv_func_dlopen = yes; then
11387   lt_cv_dlopen="dlopen"
11388 else
11389   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11390 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11391 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   ac_check_lib_save_LIBS=$LIBS
11395 LIBS="-ldl  $LIBS"
11396 if test x$gcc_no_link = xyes; then
11397   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11398 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11399    { (exit 1); exit 1; }; }
11400 fi
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407
11408 /* Override any gcc2 internal prototype to avoid an error.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413    builtin and then its argument prototype would still apply.  */
11414 char dlopen ();
11415 int
11416 main ()
11417 {
11418 dlopen ();
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425   (eval $ac_link) 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } &&
11432          { ac_try='test -z "$ac_c_werror_flag"
11433                          || test ! -s conftest.err'
11434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435   (eval $ac_try) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; } &&
11439          { ac_try='test -s conftest$ac_exeext'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; }; then
11445   ac_cv_lib_dl_dlopen=yes
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 ac_cv_lib_dl_dlopen=no
11451 fi
11452 rm -f conftest.err conftest.$ac_objext \
11453       conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11458 if test $ac_cv_lib_dl_dlopen = yes; then
11459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11460 else
11461   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466   ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-lsvld  $LIBS"
11468 if test x$gcc_no_link = xyes; then
11469   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11471    { (exit 1); exit 1; }; }
11472 fi
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h.  */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h.  */
11479
11480 /* Override any gcc2 internal prototype to avoid an error.  */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 /* We use char because int might match the return type of a gcc2
11485    builtin and then its argument prototype would still apply.  */
11486 char dlopen ();
11487 int
11488 main ()
11489 {
11490 dlopen ();
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11497   (eval $ac_link) 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -z "$ac_c_werror_flag"
11505                          || test ! -s conftest.err'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest$ac_exeext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   ac_cv_lib_svld_dlopen=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_cv_lib_svld_dlopen=no
11523 fi
11524 rm -f conftest.err conftest.$ac_objext \
11525       conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11529 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11530 if test $ac_cv_lib_svld_dlopen = yes; then
11531   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11532 else
11533   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11534 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11535 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-ldld  $LIBS"
11540 if test x$gcc_no_link = xyes; then
11541   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11543    { (exit 1); exit 1; }; }
11544 fi
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h.  */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h.  */
11551
11552 /* Override any gcc2 internal prototype to avoid an error.  */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 /* We use char because int might match the return type of a gcc2
11557    builtin and then its argument prototype would still apply.  */
11558 char dld_link ();
11559 int
11560 main ()
11561 {
11562 dld_link ();
11563   ;
11564   return 0;
11565 }
11566 _ACEOF
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569   (eval $ac_link) 2>conftest.er1
11570   ac_status=$?
11571   grep -v '^ *+' conftest.er1 >conftest.err
11572   rm -f conftest.er1
11573   cat conftest.err >&5
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); } &&
11576          { ac_try='test -z "$ac_c_werror_flag"
11577                          || test ! -s conftest.err'
11578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579   (eval $ac_try) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; } &&
11583          { ac_try='test -s conftest$ac_exeext'
11584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585   (eval $ac_try) 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; }; then
11589   ac_cv_lib_dld_dld_link=yes
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594 ac_cv_lib_dld_dld_link=no
11595 fi
11596 rm -f conftest.err conftest.$ac_objext \
11597       conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11601 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11602 if test $ac_cv_lib_dld_dld_link = yes; then
11603   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11604 fi
11605
11606
11607 fi
11608
11609
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621     ;;
11622   esac
11623
11624   if test "x$lt_cv_dlopen" != xno; then
11625     enable_dlopen=yes
11626   else
11627     enable_dlopen=no
11628   fi
11629
11630   case $lt_cv_dlopen in
11631   dlopen)
11632     save_CPPFLAGS="$CPPFLAGS"
11633     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634
11635     save_LDFLAGS="$LDFLAGS"
11636     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637
11638     save_LIBS="$LIBS"
11639     LIBS="$lt_cv_dlopen_libs $LIBS"
11640
11641     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11642 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11643 if test "${lt_cv_dlopen_self+set}" = set; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646           if test "$cross_compiling" = yes; then :
11647   lt_cv_dlopen_self=cross
11648 else
11649   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650   lt_status=$lt_dlunknown
11651   cat > conftest.$ac_ext <<_LT_EOF
11652 #line 11652 "configure"
11653 #include "confdefs.h"
11654
11655 #if HAVE_DLFCN_H
11656 #include <dlfcn.h>
11657 #endif
11658
11659 #include <stdio.h>
11660
11661 #ifdef RTLD_GLOBAL
11662 #  define LT_DLGLOBAL           RTLD_GLOBAL
11663 #else
11664 #  ifdef DL_GLOBAL
11665 #    define LT_DLGLOBAL         DL_GLOBAL
11666 #  else
11667 #    define LT_DLGLOBAL         0
11668 #  endif
11669 #endif
11670
11671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672    find out it does not work in some platform. */
11673 #ifndef LT_DLLAZY_OR_NOW
11674 #  ifdef RTLD_LAZY
11675 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11676 #  else
11677 #    ifdef DL_LAZY
11678 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11679 #    else
11680 #      ifdef RTLD_NOW
11681 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11682 #      else
11683 #        ifdef DL_NOW
11684 #          define LT_DLLAZY_OR_NOW      DL_NOW
11685 #        else
11686 #          define LT_DLLAZY_OR_NOW      0
11687 #        endif
11688 #      endif
11689 #    endif
11690 #  endif
11691 #endif
11692
11693 void fnord() { int i=42;}
11694 int main ()
11695 {
11696   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11697   int status = $lt_dlunknown;
11698
11699   if (self)
11700     {
11701       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11702       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11703       /* dlclose (self); */
11704     }
11705   else
11706     puts (dlerror ());
11707
11708   return status;
11709 }
11710 _LT_EOF
11711   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712   (eval $ac_link) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11716     (./conftest; exit; ) >&5 2>/dev/null
11717     lt_status=$?
11718     case x$lt_status in
11719       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11720       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11721       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11722     esac
11723   else :
11724     # compilation failed
11725     lt_cv_dlopen_self=no
11726   fi
11727 fi
11728 rm -fr conftest*
11729
11730
11731 fi
11732 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11733 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11734
11735     if test "x$lt_cv_dlopen_self" = xyes; then
11736       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11737       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11738 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11739 if test "${lt_cv_dlopen_self_static+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742           if test "$cross_compiling" = yes; then :
11743   lt_cv_dlopen_self_static=cross
11744 else
11745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746   lt_status=$lt_dlunknown
11747   cat > conftest.$ac_ext <<_LT_EOF
11748 #line 11748 "configure"
11749 #include "confdefs.h"
11750
11751 #if HAVE_DLFCN_H
11752 #include <dlfcn.h>
11753 #endif
11754
11755 #include <stdio.h>
11756
11757 #ifdef RTLD_GLOBAL
11758 #  define LT_DLGLOBAL           RTLD_GLOBAL
11759 #else
11760 #  ifdef DL_GLOBAL
11761 #    define LT_DLGLOBAL         DL_GLOBAL
11762 #  else
11763 #    define LT_DLGLOBAL         0
11764 #  endif
11765 #endif
11766
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768    find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11770 #  ifdef RTLD_LAZY
11771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11772 #  else
11773 #    ifdef DL_LAZY
11774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11775 #    else
11776 #      ifdef RTLD_NOW
11777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11778 #      else
11779 #        ifdef DL_NOW
11780 #          define LT_DLLAZY_OR_NOW      DL_NOW
11781 #        else
11782 #          define LT_DLLAZY_OR_NOW      0
11783 #        endif
11784 #      endif
11785 #    endif
11786 #  endif
11787 #endif
11788
11789 void fnord() { int i=42;}
11790 int main ()
11791 {
11792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793   int status = $lt_dlunknown;
11794
11795   if (self)
11796     {
11797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799       /* dlclose (self); */
11800     }
11801   else
11802     puts (dlerror ());
11803
11804   return status;
11805 }
11806 _LT_EOF
11807   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808   (eval $ac_link) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11812     (./conftest; exit; ) >&5 2>/dev/null
11813     lt_status=$?
11814     case x$lt_status in
11815       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11816       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11817       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11818     esac
11819   else :
11820     # compilation failed
11821     lt_cv_dlopen_self_static=no
11822   fi
11823 fi
11824 rm -fr conftest*
11825
11826
11827 fi
11828 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11829 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11830     fi
11831
11832     CPPFLAGS="$save_CPPFLAGS"
11833     LDFLAGS="$save_LDFLAGS"
11834     LIBS="$save_LIBS"
11835     ;;
11836   esac
11837
11838   case $lt_cv_dlopen_self in
11839   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11840   *) enable_dlopen_self=unknown ;;
11841   esac
11842
11843   case $lt_cv_dlopen_self_static in
11844   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11845   *) enable_dlopen_self_static=unknown ;;
11846   esac
11847 fi
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865 striplib=
11866 old_striplib=
11867 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11868 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11869 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11870   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11871   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11872   echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11874 else
11875 # FIXME - insert some real tests, host_os isn't really good enough
11876   case $host_os in
11877   darwin*)
11878     if test -n "$STRIP" ; then
11879       striplib="$STRIP -x"
11880       old_striplib="$STRIP -S"
11881       echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11883     else
11884       echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6
11886     fi
11887     ;;
11888   *)
11889     echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11891     ;;
11892   esac
11893 fi
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906   # Report which library types will actually be built
11907   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11909   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11910 echo "${ECHO_T}$can_build_shared" >&6
11911
11912   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11914   test "$can_build_shared" = "no" && enable_shared=no
11915
11916   # On AIX, shared libraries and static libraries use the same namespace, and
11917   # are all built from PIC.
11918   case $host_os in
11919   aix3*)
11920     test "$enable_shared" = yes && enable_static=no
11921     if test -n "$RANLIB"; then
11922       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11923       postinstall_cmds='$RANLIB $lib'
11924     fi
11925     ;;
11926
11927   aix[4-9]*)
11928     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11929       test "$enable_shared" = yes && enable_static=no
11930     fi
11931     ;;
11932   esac
11933   echo "$as_me:$LINENO: result: $enable_shared" >&5
11934 echo "${ECHO_T}$enable_shared" >&6
11935
11936   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11938   # Make sure either enable_shared or enable_static is yes.
11939   test "$enable_shared" = yes || enable_static=yes
11940   echo "$as_me:$LINENO: result: $enable_static" >&5
11941 echo "${ECHO_T}$enable_static" >&6
11942
11943
11944
11945
11946 fi
11947 ac_ext=c
11948 ac_cpp='$CPP $CPPFLAGS'
11949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11952
11953 CC="$lt_save_CC"
11954
11955
11956 ac_ext=cc
11957 ac_cpp='$CXXCPP $CPPFLAGS'
11958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11961
11962 archive_cmds_need_lc_CXX=no
11963 allow_undefined_flag_CXX=
11964 always_export_symbols_CXX=no
11965 archive_expsym_cmds_CXX=
11966 compiler_needs_object_CXX=no
11967 export_dynamic_flag_spec_CXX=
11968 hardcode_direct_CXX=no
11969 hardcode_direct_absolute_CXX=no
11970 hardcode_libdir_flag_spec_CXX=
11971 hardcode_libdir_flag_spec_ld_CXX=
11972 hardcode_libdir_separator_CXX=
11973 hardcode_minus_L_CXX=no
11974 hardcode_shlibpath_var_CXX=unsupported
11975 hardcode_automatic_CXX=no
11976 inherit_rpath_CXX=no
11977 module_cmds_CXX=
11978 module_expsym_cmds_CXX=
11979 link_all_deplibs_CXX=unknown
11980 old_archive_cmds_CXX=$old_archive_cmds
11981 no_undefined_flag_CXX=
11982 whole_archive_flag_spec_CXX=
11983 enable_shared_with_static_runtimes_CXX=no
11984
11985 # Source file extension for C++ test sources.
11986 ac_ext=cpp
11987
11988 # Object file extension for compiled C++ test sources.
11989 objext=o
11990 objext_CXX=$objext
11991
11992 # No sense in running all these tests if we already determined that
11993 # the CXX compiler isn't working.  Some variables (like enable_shared)
11994 # are currently assumed to apply to all compilers on this platform,
11995 # and will be corrupted by setting them based on a non-working compiler.
11996 if test "$_lt_caught_CXX_error" != yes; then
11997   # Code to be used in simple compile tests
11998   lt_simple_compile_test_code="int some_variable = 0;"
11999
12000   # Code to be used in simple link tests
12001   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12002
12003   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12004
12005
12006
12007
12008
12009
12010 # If no C compiler was specified, use CC.
12011 LTCC=${LTCC-"$CC"}
12012
12013 # If no C compiler flags were specified, use CFLAGS.
12014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12015
12016 # Allow CC to be a program name with arguments.
12017 compiler=$CC
12018
12019
12020   # save warnings/boilerplate of simple test code
12021   ac_outfile=conftest.$ac_objext
12022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12024 _lt_compiler_boilerplate=`cat conftest.err`
12025 $RM conftest*
12026
12027   ac_outfile=conftest.$ac_objext
12028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12030 _lt_linker_boilerplate=`cat conftest.err`
12031 $RM -r conftest*
12032
12033
12034   # Allow CC to be a program name with arguments.
12035   lt_save_CC=$CC
12036   lt_save_LD=$LD
12037   lt_save_GCC=$GCC
12038   GCC=$GXX
12039   lt_save_with_gnu_ld=$with_gnu_ld
12040   lt_save_path_LD=$lt_cv_path_LD
12041   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12042     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12043   else
12044     $as_unset lt_cv_prog_gnu_ld
12045   fi
12046   if test -n "${lt_cv_path_LDCXX+set}"; then
12047     lt_cv_path_LD=$lt_cv_path_LDCXX
12048   else
12049     $as_unset lt_cv_path_LD
12050   fi
12051   test -z "${LDCXX+set}" || LD=$LDCXX
12052   CC=${CXX-"c++"}
12053   compiler=$CC
12054   compiler_CXX=$CC
12055   for cc_temp in $compiler""; do
12056   case $cc_temp in
12057     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12058     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12059     \-*) ;;
12060     *) break;;
12061   esac
12062 done
12063 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12064
12065
12066   if test -n "$compiler"; then
12067     # We don't want -fno-exception when compiling C++ code, so set the
12068     # no_builtin_flag separately
12069     if test "$GXX" = yes; then
12070       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12071     else
12072       lt_prog_compiler_no_builtin_flag_CXX=
12073     fi
12074
12075     if test "$GXX" = yes; then
12076       # Set up default GNU C++ configuration
12077
12078
12079
12080 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12081 if test "${with_gnu_ld+set}" = set; then
12082   withval="$with_gnu_ld"
12083   test "$withval" = no || with_gnu_ld=yes
12084 else
12085   with_gnu_ld=no
12086 fi;
12087 ac_prog=ld
12088 if test "$GCC" = yes; then
12089   # Check if gcc -print-prog-name=ld gives a path.
12090   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12092   case $host in
12093   *-*-mingw*)
12094     # gcc leaves a trailing carriage return which upsets mingw
12095     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12096   *)
12097     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12098   esac
12099   case $ac_prog in
12100     # Accept absolute paths.
12101     [\\/]* | ?:[\\/]*)
12102       re_direlt='/[^/][^/]*/\.\./'
12103       # Canonicalize the pathname of ld
12104       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12105       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12106         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12107       done
12108       test -z "$LD" && LD="$ac_prog"
12109       ;;
12110   "")
12111     # If it fails, then pretend we aren't using GCC.
12112     ac_prog=ld
12113     ;;
12114   *)
12115     # If it is relative, then search for the first ld in PATH.
12116     with_gnu_ld=unknown
12117     ;;
12118   esac
12119 elif test "$with_gnu_ld" = yes; then
12120   echo "$as_me:$LINENO: checking for GNU ld" >&5
12121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12122 else
12123   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12125 fi
12126 if test "${lt_cv_path_LD+set}" = set; then
12127   echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129   if test -z "$LD"; then
12130   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12131   for ac_dir in $PATH; do
12132     IFS="$lt_save_ifs"
12133     test -z "$ac_dir" && ac_dir=.
12134     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12135       lt_cv_path_LD="$ac_dir/$ac_prog"
12136       # Check to see if the program is GNU ld.  I'd rather use --version,
12137       # but apparently some variants of GNU ld only accept -v.
12138       # Break only if it was the GNU/non-GNU ld that we prefer.
12139       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12140       *GNU* | *'with BFD'*)
12141         test "$with_gnu_ld" != no && break
12142         ;;
12143       *)
12144         test "$with_gnu_ld" != yes && break
12145         ;;
12146       esac
12147     fi
12148   done
12149   IFS="$lt_save_ifs"
12150 else
12151   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12152 fi
12153 fi
12154
12155 LD="$lt_cv_path_LD"
12156 if test -n "$LD"; then
12157   echo "$as_me:$LINENO: result: $LD" >&5
12158 echo "${ECHO_T}$LD" >&6
12159 else
12160   echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6
12162 fi
12163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12165    { (exit 1); exit 1; }; }
12166 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12172 case `$LD -v 2>&1 </dev/null` in
12173 *GNU* | *'with BFD'*)
12174   lt_cv_prog_gnu_ld=yes
12175   ;;
12176 *)
12177   lt_cv_prog_gnu_ld=no
12178   ;;
12179 esac
12180 fi
12181 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12183 with_gnu_ld=$lt_cv_prog_gnu_ld
12184
12185
12186
12187
12188
12189
12190
12191       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12192       # archiving commands below assume that GNU ld is being used.
12193       if test "$with_gnu_ld" = yes; then
12194         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12195         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'
12196
12197         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12198         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12199
12200         # If archive_cmds runs LD, not CC, wlarc should be empty
12201         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12202         #     investigate it a little bit more. (MM)
12203         wlarc='${wl}'
12204
12205         # ancient GNU ld didn't support --whole-archive et. al.
12206         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12207           $GREP 'no-whole-archive' > /dev/null; then
12208           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12209         else
12210           whole_archive_flag_spec_CXX=
12211         fi
12212       else
12213         with_gnu_ld=no
12214         wlarc=
12215
12216         # A generic and very simple default shared library creation
12217         # command for GNU C++ for the case where it uses the native
12218         # linker, instead of GNU ld.  If possible, this setting should
12219         # overridden to take advantage of the native linker features on
12220         # the platform it is being used on.
12221         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12222       fi
12223
12224       # Commands to make compiler produce verbose output that lists
12225       # what "hidden" libraries, object files and flags are used when
12226       # linking a shared library.
12227       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12228
12229     else
12230       GXX=no
12231       with_gnu_ld=no
12232       wlarc=
12233     fi
12234
12235     # PORTME: fill in a description of your system's C++ link characteristics
12236     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12238     ld_shlibs_CXX=yes
12239     case $host_os in
12240       aix3*)
12241         # FIXME: insert proper C++ library support
12242         ld_shlibs_CXX=no
12243         ;;
12244       aix[4-9]*)
12245         if test "$host_cpu" = ia64; then
12246           # On IA64, the linker does run time linking by default, so we don't
12247           # have to do anything special.
12248           aix_use_runtimelinking=no
12249           exp_sym_flag='-Bexport'
12250           no_entry_flag=""
12251         else
12252           aix_use_runtimelinking=no
12253
12254           # Test if we are trying to use run time linking or normal
12255           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12256           # need to do runtime linking.
12257           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12258             for ld_flag in $LDFLAGS; do
12259               case $ld_flag in
12260               *-brtl*)
12261                 aix_use_runtimelinking=yes
12262                 break
12263                 ;;
12264               esac
12265             done
12266             ;;
12267           esac
12268
12269           exp_sym_flag='-bexport'
12270           no_entry_flag='-bnoentry'
12271         fi
12272
12273         # When large executables or shared objects are built, AIX ld can
12274         # have problems creating the table of contents.  If linking a library
12275         # or program results in "error TOC overflow" add -mminimal-toc to
12276         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12277         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12278
12279         archive_cmds_CXX=''
12280         hardcode_direct_CXX=yes
12281         hardcode_direct_absolute_CXX=yes
12282         hardcode_libdir_separator_CXX=':'
12283         link_all_deplibs_CXX=yes
12284         file_list_spec_CXX='${wl}-f,'
12285
12286         if test "$GXX" = yes; then
12287           case $host_os in aix4.[012]|aix4.[012].*)
12288           # We only want to do this on AIX 4.2 and lower, the check
12289           # below for broken collect2 doesn't work under 4.3+
12290           collect2name=`${CC} -print-prog-name=collect2`
12291           if test -f "$collect2name" &&
12292              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12293           then
12294             # We have reworked collect2
12295             :
12296           else
12297             # We have old collect2
12298             hardcode_direct_CXX=unsupported
12299             # It fails to find uninstalled libraries when the uninstalled
12300             # path is not listed in the libpath.  Setting hardcode_minus_L
12301             # to unsupported forces relinking
12302             hardcode_minus_L_CXX=yes
12303             hardcode_libdir_flag_spec_CXX='-L$libdir'
12304             hardcode_libdir_separator_CXX=
12305           fi
12306           esac
12307           shared_flag='-shared'
12308           if test "$aix_use_runtimelinking" = yes; then
12309             shared_flag="$shared_flag "'${wl}-G'
12310           fi
12311         else
12312           # not using gcc
12313           if test "$host_cpu" = ia64; then
12314           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12315           # chokes on -Wl,-G. The following line is correct:
12316           shared_flag='-G'
12317           else
12318             if test "$aix_use_runtimelinking" = yes; then
12319               shared_flag='${wl}-G'
12320             else
12321               shared_flag='${wl}-bM:SRE'
12322             fi
12323           fi
12324         fi
12325
12326         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12327         # It seems that -bexpall does not export symbols beginning with
12328         # underscore (_), so it is better to generate a list of symbols to
12329         # export.
12330         always_export_symbols_CXX=yes
12331         if test "$aix_use_runtimelinking" = yes; then
12332           # Warning - without using the other runtime loading flags (-brtl),
12333           # -berok will link without error, but may produce a broken library.
12334           allow_undefined_flag_CXX='-berok'
12335           # Determine the default libpath from the value encoded in an empty
12336           # executable.
12337           if test x$gcc_no_link = xyes; then
12338   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12340    { (exit 1); exit 1; }; }
12341 fi
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348
12349 int
12350 main ()
12351 {
12352
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359   (eval $ac_link) 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -z "$ac_cxx_werror_flag"
12367                          || test ! -s conftest.err'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; } &&
12373          { ac_try='test -s conftest$ac_exeext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379
12380 lt_aix_libpath_sed='
12381     /Import File Strings/,/^$/ {
12382         /^0/ {
12383             s/^0  *\(.*\)$/\1/
12384             p
12385         }
12386     }'
12387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12388 # Check for a 64-bit object if we didn't find anything.
12389 if test -z "$aix_libpath"; then
12390   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12391 fi
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 fi
12397 rm -f conftest.err conftest.$ac_objext \
12398       conftest$ac_exeext conftest.$ac_ext
12399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12400
12401           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12402
12403           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12404         else
12405           if test "$host_cpu" = ia64; then
12406             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12407             allow_undefined_flag_CXX="-z nodefs"
12408             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12409           else
12410             # Determine the default libpath from the value encoded in an
12411             # empty executable.
12412             if test x$gcc_no_link = xyes; then
12413   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12415    { (exit 1); exit 1; }; }
12416 fi
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423
12424 int
12425 main ()
12426 {
12427
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434   (eval $ac_link) 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } &&
12441          { ac_try='test -z "$ac_cxx_werror_flag"
12442                          || test ! -s conftest.err'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; } &&
12448          { ac_try='test -s conftest$ac_exeext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454
12455 lt_aix_libpath_sed='
12456     /Import File Strings/,/^$/ {
12457         /^0/ {
12458             s/^0  *\(.*\)$/\1/
12459             p
12460         }
12461     }'
12462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12463 # Check for a 64-bit object if we didn't find anything.
12464 if test -z "$aix_libpath"; then
12465   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12466 fi
12467 else
12468   echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471 fi
12472 rm -f conftest.err conftest.$ac_objext \
12473       conftest$ac_exeext conftest.$ac_ext
12474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12475
12476             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12477             # Warning - without using the other run time loading flags,
12478             # -berok will link without error, but may produce a broken library.
12479             no_undefined_flag_CXX=' ${wl}-bernotok'
12480             allow_undefined_flag_CXX=' ${wl}-berok'
12481             # Exported symbols can be pulled into shared objects from archives
12482             whole_archive_flag_spec_CXX='$convenience'
12483             archive_cmds_need_lc_CXX=yes
12484             # This is similar to how AIX traditionally builds its shared
12485             # libraries.
12486             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12487           fi
12488         fi
12489         ;;
12490
12491       beos*)
12492         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12493           allow_undefined_flag_CXX=unsupported
12494           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12495           # support --undefined.  This deserves some investigation.  FIXME
12496           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12497         else
12498           ld_shlibs_CXX=no
12499         fi
12500         ;;
12501
12502       chorus*)
12503         case $cc_basename in
12504           *)
12505           # FIXME: insert proper C++ library support
12506           ld_shlibs_CXX=no
12507           ;;
12508         esac
12509         ;;
12510
12511       cygwin* | mingw* | pw32* | cegcc*)
12512         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12513         # as there is no search path for DLLs.
12514         hardcode_libdir_flag_spec_CXX='-L$libdir'
12515         allow_undefined_flag_CXX=unsupported
12516         always_export_symbols_CXX=no
12517         enable_shared_with_static_runtimes_CXX=yes
12518
12519         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12520           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12521           # If the export-symbols file already is a .def file (1st line
12522           # is EXPORTS), use it as is; otherwise, prepend...
12523           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12524             cp $export_symbols $output_objdir/$soname.def;
12525           else
12526             echo EXPORTS > $output_objdir/$soname.def;
12527             cat $export_symbols >> $output_objdir/$soname.def;
12528           fi~
12529           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12530         else
12531           ld_shlibs_CXX=no
12532         fi
12533         ;;
12534       darwin* | rhapsody*)
12535
12536
12537   archive_cmds_need_lc_CXX=no
12538   hardcode_direct_CXX=no
12539   hardcode_automatic_CXX=yes
12540   hardcode_shlibpath_var_CXX=unsupported
12541   whole_archive_flag_spec_CXX=''
12542   link_all_deplibs_CXX=yes
12543   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12544   case $cc_basename in
12545      ifort*) _lt_dar_can_shared=yes ;;
12546      *) _lt_dar_can_shared=$GCC ;;
12547   esac
12548   if test "$_lt_dar_can_shared" = "yes"; then
12549     output_verbose_link_cmd=echo
12550     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12551     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12552     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12553     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12554        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12555       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12556       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12557     fi
12558
12559   else
12560   ld_shlibs_CXX=no
12561   fi
12562
12563         ;;
12564
12565       dgux*)
12566         case $cc_basename in
12567           ec++*)
12568             # FIXME: insert proper C++ library support
12569             ld_shlibs_CXX=no
12570             ;;
12571           ghcx*)
12572             # Green Hills C++ Compiler
12573             # FIXME: insert proper C++ library support
12574             ld_shlibs_CXX=no
12575             ;;
12576           *)
12577             # FIXME: insert proper C++ library support
12578             ld_shlibs_CXX=no
12579             ;;
12580         esac
12581         ;;
12582
12583       freebsd[12]*)
12584         # C++ shared libraries reported to be fairly broken before
12585         # switch to ELF
12586         ld_shlibs_CXX=no
12587         ;;
12588
12589       freebsd-elf*)
12590         archive_cmds_need_lc_CXX=no
12591         ;;
12592
12593       freebsd* | dragonfly*)
12594         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12595         # conventions
12596         ld_shlibs_CXX=yes
12597         ;;
12598
12599       gnu*)
12600         ;;
12601
12602       hpux9*)
12603         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12604         hardcode_libdir_separator_CXX=:
12605         export_dynamic_flag_spec_CXX='${wl}-E'
12606         hardcode_direct_CXX=yes
12607         hardcode_minus_L_CXX=yes # Not in the search PATH,
12608                                              # but as the default
12609                                              # location of the library.
12610
12611         case $cc_basename in
12612           CC*)
12613             # FIXME: insert proper C++ library support
12614             ld_shlibs_CXX=no
12615             ;;
12616           aCC*)
12617             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'
12618             # Commands to make compiler produce verbose output that lists
12619             # what "hidden" libraries, object files and flags are used when
12620             # linking a shared library.
12621             #
12622             # There doesn't appear to be a way to prevent this compiler from
12623             # explicitly linking system object files so we need to strip them
12624             # from the output so that they don't get included in the library
12625             # dependencies.
12626             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 "X$list" | $Xsed'
12627             ;;
12628           *)
12629             if test "$GXX" = yes; then
12630               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'
12631             else
12632               # FIXME: insert proper C++ library support
12633               ld_shlibs_CXX=no
12634             fi
12635             ;;
12636         esac
12637         ;;
12638
12639       hpux10*|hpux11*)
12640         if test $with_gnu_ld = no; then
12641           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12642           hardcode_libdir_separator_CXX=:
12643
12644           case $host_cpu in
12645             hppa*64*|ia64*)
12646               ;;
12647             *)
12648               export_dynamic_flag_spec_CXX='${wl}-E'
12649               ;;
12650           esac
12651         fi
12652         case $host_cpu in
12653           hppa*64*|ia64*)
12654             hardcode_direct_CXX=no
12655             hardcode_shlibpath_var_CXX=no
12656             ;;
12657           *)
12658             hardcode_direct_CXX=yes
12659             hardcode_direct_absolute_CXX=yes
12660             hardcode_minus_L_CXX=yes # Not in the search PATH,
12661                                                  # but as the default
12662                                                  # location of the library.
12663             ;;
12664         esac
12665
12666         case $cc_basename in
12667           CC*)
12668             # FIXME: insert proper C++ library support
12669             ld_shlibs_CXX=no
12670             ;;
12671           aCC*)
12672             case $host_cpu in
12673               hppa*64*)
12674                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12675                 ;;
12676               ia64*)
12677                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12678                 ;;
12679               *)
12680                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12681                 ;;
12682             esac
12683             # Commands to make compiler produce verbose output that lists
12684             # what "hidden" libraries, object files and flags are used when
12685             # linking a shared library.
12686             #
12687             # There doesn't appear to be a way to prevent this compiler from
12688             # explicitly linking system object files so we need to strip them
12689             # from the output so that they don't get included in the library
12690             # dependencies.
12691             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 "X$list" | $Xsed'
12692             ;;
12693           *)
12694             if test "$GXX" = yes; then
12695               if test $with_gnu_ld = no; then
12696                 case $host_cpu in
12697                   hppa*64*)
12698                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12699                     ;;
12700                   ia64*)
12701                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12702                     ;;
12703                   *)
12704                     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'
12705                     ;;
12706                 esac
12707               fi
12708             else
12709               # FIXME: insert proper C++ library support
12710               ld_shlibs_CXX=no
12711             fi
12712             ;;
12713         esac
12714         ;;
12715
12716       interix[3-9]*)
12717         hardcode_direct_CXX=no
12718         hardcode_shlibpath_var_CXX=no
12719         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12720         export_dynamic_flag_spec_CXX='${wl}-E'
12721         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12722         # Instead, shared libraries are loaded at an image base (0x10000000 by
12723         # default) and relocated if they conflict, which is a slow very memory
12724         # consuming and fragmenting process.  To avoid this, we pick a random,
12725         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12726         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12727         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12728         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12729         ;;
12730       irix5* | irix6*)
12731         case $cc_basename in
12732           CC*)
12733             # SGI C++
12734             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12735
12736             # Archives containing C++ object files must be created using
12737             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12738             # necessary to make sure instantiated templates are included
12739             # in the archive.
12740             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12741             ;;
12742           *)
12743             if test "$GXX" = yes; then
12744               if test "$with_gnu_ld" = no; then
12745                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12746               else
12747                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12748               fi
12749             fi
12750             link_all_deplibs_CXX=yes
12751             ;;
12752         esac
12753         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12754         hardcode_libdir_separator_CXX=:
12755         inherit_rpath_CXX=yes
12756         ;;
12757
12758       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12759         case $cc_basename in
12760           KCC*)
12761             # Kuck and Associates, Inc. (KAI) C++ Compiler
12762
12763             # KCC will only create a shared library if the output file
12764             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12765             # to its proper name (with version) after linking.
12766             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'
12767             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'
12768             # Commands to make compiler produce verbose output that lists
12769             # what "hidden" libraries, object files and flags are used when
12770             # linking a shared library.
12771             #
12772             # There doesn't appear to be a way to prevent this compiler from
12773             # explicitly linking system object files so we need to strip them
12774             # from the output so that they don't get included in the library
12775             # dependencies.
12776             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 "X$list" | $Xsed'
12777
12778             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12779             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12780
12781             # Archives containing C++ object files must be created using
12782             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12783             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12784             ;;
12785           icpc* | ecpc* )
12786             # Intel C++
12787             with_gnu_ld=yes
12788             # version 8.0 and above of icpc choke on multiply defined symbols
12789             # if we add $predep_objects and $postdep_objects, however 7.1 and
12790             # earlier do not add the objects themselves.
12791             case `$CC -V 2>&1` in
12792               *"Version 7."*)
12793                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794                 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'
12795                 ;;
12796               *)  # Version 8.0 or newer
12797                 tmp_idyn=
12798                 case $host_cpu in
12799                   ia64*) tmp_idyn=' -i_dynamic';;
12800                 esac
12801                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12803                 ;;
12804             esac
12805             archive_cmds_need_lc_CXX=no
12806             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12807             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12808             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12809             ;;
12810           pgCC* | pgcpp*)
12811             # Portland Group C++ compiler
12812             case `$CC -V` in
12813             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12814               prelink_cmds_CXX='tpldir=Template.dir~
12815                 rm -rf $tpldir~
12816                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12817                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12818               old_archive_cmds_CXX='tpldir=Template.dir~
12819                 rm -rf $tpldir~
12820                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12821                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12822                 $RANLIB $oldlib'
12823               archive_cmds_CXX='tpldir=Template.dir~
12824                 rm -rf $tpldir~
12825                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12826                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12827               archive_expsym_cmds_CXX='tpldir=Template.dir~
12828                 rm -rf $tpldir~
12829                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12830                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12831               ;;
12832             *) # Version 6 will use weak symbols
12833               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12834               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12835               ;;
12836             esac
12837
12838             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12839             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12840             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12841             ;;
12842           cxx*)
12843             # Compaq C++
12844             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845             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'
12846
12847             runpath_var=LD_RUN_PATH
12848             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12849             hardcode_libdir_separator_CXX=:
12850
12851             # Commands to make compiler produce verbose output that lists
12852             # what "hidden" libraries, object files and flags are used when
12853             # linking a shared library.
12854             #
12855             # There doesn't appear to be a way to prevent this compiler from
12856             # explicitly linking system object files so we need to strip them
12857             # from the output so that they don't get included in the library
12858             # dependencies.
12859             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12860             ;;
12861           xl*)
12862             # IBM XL 8.0 on PPC, with GNU ld
12863             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12864             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12865             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12866             if test "x$supports_anon_versioning" = xyes; then
12867               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12868                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12869                 echo "local: *; };" >> $output_objdir/$libname.ver~
12870                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12871             fi
12872             ;;
12873           *)
12874             case `$CC -V 2>&1 | sed 5q` in
12875             *Sun\ C*)
12876               # Sun C++ 5.9
12877               no_undefined_flag_CXX=' -zdefs'
12878               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12880               hardcode_libdir_flag_spec_CXX='-R$libdir'
12881               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12882               compiler_needs_object_CXX=yes
12883
12884               # Not sure whether something based on
12885               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12886               # would be better.
12887               output_verbose_link_cmd='echo'
12888
12889               # Archives containing C++ object files must be created using
12890               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12891               # necessary to make sure instantiated templates are included
12892               # in the archive.
12893               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12894               ;;
12895             esac
12896             ;;
12897         esac
12898         ;;
12899
12900       lynxos*)
12901         # FIXME: insert proper C++ library support
12902         ld_shlibs_CXX=no
12903         ;;
12904
12905       m88k*)
12906         # FIXME: insert proper C++ library support
12907         ld_shlibs_CXX=no
12908         ;;
12909
12910       mvs*)
12911         case $cc_basename in
12912           cxx*)
12913             # FIXME: insert proper C++ library support
12914             ld_shlibs_CXX=no
12915             ;;
12916           *)
12917             # FIXME: insert proper C++ library support
12918             ld_shlibs_CXX=no
12919             ;;
12920         esac
12921         ;;
12922
12923       netbsd*)
12924         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12925           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12926           wlarc=
12927           hardcode_libdir_flag_spec_CXX='-R$libdir'
12928           hardcode_direct_CXX=yes
12929           hardcode_shlibpath_var_CXX=no
12930         fi
12931         # Workaround some broken pre-1.5 toolchains
12932         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12933         ;;
12934
12935       *nto* | *qnx*)
12936         ld_shlibs_CXX=yes
12937         ;;
12938
12939       openbsd2*)
12940         # C++ shared libraries are fairly broken
12941         ld_shlibs_CXX=no
12942         ;;
12943
12944       openbsd*)
12945         if test -f /usr/libexec/ld.so; then
12946           hardcode_direct_CXX=yes
12947           hardcode_shlibpath_var_CXX=no
12948           hardcode_direct_absolute_CXX=yes
12949           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12950           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12951           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12952             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12953             export_dynamic_flag_spec_CXX='${wl}-E'
12954             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12955           fi
12956           output_verbose_link_cmd=echo
12957         else
12958           ld_shlibs_CXX=no
12959         fi
12960         ;;
12961
12962       osf3* | osf4* | osf5*)
12963         case $cc_basename in
12964           KCC*)
12965             # Kuck and Associates, Inc. (KAI) C++ Compiler
12966
12967             # KCC will only create a shared library if the output file
12968             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12969             # to its proper name (with version) after linking.
12970             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'
12971
12972             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12973             hardcode_libdir_separator_CXX=:
12974
12975             # Archives containing C++ object files must be created using
12976             # the KAI C++ compiler.
12977             case $host in
12978               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12979               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12980             esac
12981             ;;
12982           RCC*)
12983             # Rational C++ 2.4.1
12984             # FIXME: insert proper C++ library support
12985             ld_shlibs_CXX=no
12986             ;;
12987           cxx*)
12988             case $host in
12989               osf3*)
12990                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12991                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12992                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12993                 ;;
12994               *)
12995                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12996                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12997                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12998                   echo "-hidden">> $lib.exp~
12999                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13000                   $RM $lib.exp'
13001                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13002                 ;;
13003             esac
13004
13005             hardcode_libdir_separator_CXX=:
13006
13007             # Commands to make compiler produce verbose output that lists
13008             # what "hidden" libraries, object files and flags are used when
13009             # linking a shared library.
13010             #
13011             # There doesn't appear to be a way to prevent this compiler from
13012             # explicitly linking system object files so we need to strip them
13013             # from the output so that they don't get included in the library
13014             # dependencies.
13015             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13016             ;;
13017           *)
13018             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13019               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13020               case $host in
13021                 osf3*)
13022                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13023                   ;;
13024                 *)
13025                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13026                   ;;
13027               esac
13028
13029               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13030               hardcode_libdir_separator_CXX=:
13031
13032               # Commands to make compiler produce verbose output that lists
13033               # what "hidden" libraries, object files and flags are used when
13034               # linking a shared library.
13035               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13036
13037             else
13038               # FIXME: insert proper C++ library support
13039               ld_shlibs_CXX=no
13040             fi
13041             ;;
13042         esac
13043         ;;
13044
13045       psos*)
13046         # FIXME: insert proper C++ library support
13047         ld_shlibs_CXX=no
13048         ;;
13049
13050       sunos4*)
13051         case $cc_basename in
13052           CC*)
13053             # Sun C++ 4.x
13054             # FIXME: insert proper C++ library support
13055             ld_shlibs_CXX=no
13056             ;;
13057           lcc*)
13058             # Lucid
13059             # FIXME: insert proper C++ library support
13060             ld_shlibs_CXX=no
13061             ;;
13062           *)
13063             # FIXME: insert proper C++ library support
13064             ld_shlibs_CXX=no
13065             ;;
13066         esac
13067         ;;
13068
13069       solaris*)
13070         case $cc_basename in
13071           CC*)
13072             # Sun C++ 4.2, 5.x and Centerline C++
13073             archive_cmds_need_lc_CXX=yes
13074             no_undefined_flag_CXX=' -zdefs'
13075             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13076             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13077               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13078
13079             hardcode_libdir_flag_spec_CXX='-R$libdir'
13080             hardcode_shlibpath_var_CXX=no
13081             case $host_os in
13082               solaris2.[0-5] | solaris2.[0-5].*) ;;
13083               *)
13084                 # The compiler driver will combine and reorder linker options,
13085                 # but understands `-z linker_flag'.
13086                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13087                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13088                 ;;
13089             esac
13090             link_all_deplibs_CXX=yes
13091
13092             output_verbose_link_cmd='echo'
13093
13094             # Archives containing C++ object files must be created using
13095             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13096             # necessary to make sure instantiated templates are included
13097             # in the archive.
13098             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13099             ;;
13100           gcx*)
13101             # Green Hills C++ Compiler
13102             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13103
13104             # The C++ compiler must be used to create the archive.
13105             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13106             ;;
13107           *)
13108             # GNU C++ compiler with Solaris linker
13109             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13110               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13111               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13112                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13113                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13114                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13115
13116                 # Commands to make compiler produce verbose output that lists
13117                 # what "hidden" libraries, object files and flags are used when
13118                 # linking a shared library.
13119                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13120               else
13121                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13122                 # platform.
13123                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13124                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13125                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13126
13127                 # Commands to make compiler produce verbose output that lists
13128                 # what "hidden" libraries, object files and flags are used when
13129                 # linking a shared library.
13130                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13131               fi
13132
13133               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13134               case $host_os in
13135                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13136                 *)
13137                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13138                   ;;
13139               esac
13140             fi
13141             ;;
13142         esac
13143         ;;
13144
13145     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13146       no_undefined_flag_CXX='${wl}-z,text'
13147       archive_cmds_need_lc_CXX=no
13148       hardcode_shlibpath_var_CXX=no
13149       runpath_var='LD_RUN_PATH'
13150
13151       case $cc_basename in
13152         CC*)
13153           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13155           ;;
13156         *)
13157           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13158           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13159           ;;
13160       esac
13161       ;;
13162
13163       sysv5* | sco3.2v5* | sco5v6*)
13164         # Note: We can NOT use -z defs as we might desire, because we do not
13165         # link with -lc, and that would cause any symbols used from libc to
13166         # always be unresolved, which means just about no library would
13167         # ever link correctly.  If we're not using GNU ld we use -z text
13168         # though, which does catch some bad symbols but isn't as heavy-handed
13169         # as -z defs.
13170         no_undefined_flag_CXX='${wl}-z,text'
13171         allow_undefined_flag_CXX='${wl}-z,nodefs'
13172         archive_cmds_need_lc_CXX=no
13173         hardcode_shlibpath_var_CXX=no
13174         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13175         hardcode_libdir_separator_CXX=':'
13176         link_all_deplibs_CXX=yes
13177         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13178         runpath_var='LD_RUN_PATH'
13179
13180         case $cc_basename in
13181           CC*)
13182             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13183             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13184             ;;
13185           *)
13186             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13187             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13188             ;;
13189         esac
13190       ;;
13191
13192       tandem*)
13193         case $cc_basename in
13194           NCC*)
13195             # NonStop-UX NCC 3.20
13196             # FIXME: insert proper C++ library support
13197             ld_shlibs_CXX=no
13198             ;;
13199           *)
13200             # FIXME: insert proper C++ library support
13201             ld_shlibs_CXX=no
13202             ;;
13203         esac
13204         ;;
13205
13206       vxworks*)
13207         # FIXME: insert proper C++ library support
13208         ld_shlibs_CXX=no
13209         ;;
13210
13211       *)
13212         # FIXME: insert proper C++ library support
13213         ld_shlibs_CXX=no
13214         ;;
13215     esac
13216
13217     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13218 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13219     test "$ld_shlibs_CXX" = no && can_build_shared=no
13220
13221     GCC_CXX="$GXX"
13222     LD_CXX="$LD"
13223
13224     ## CAVEAT EMPTOR:
13225     ## There is no encapsulation within the following macros, do not change
13226     ## the running order or otherwise move them around unless you know exactly
13227     ## what you are doing...
13228     # Dependencies to place before and after the object being linked:
13229 predep_objects_CXX=
13230 postdep_objects_CXX=
13231 predeps_CXX=
13232 postdeps_CXX=
13233 compiler_lib_search_path_CXX=
13234
13235 cat > conftest.$ac_ext <<_LT_EOF
13236 class Foo
13237 {
13238 public:
13239   Foo (void) { a = 0; }
13240 private:
13241   int a;
13242 };
13243 _LT_EOF
13244
13245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246   (eval $ac_compile) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; then
13250   # Parse the compiler output and extract the necessary
13251   # objects, libraries and library flags.
13252
13253   # Sentinel used to keep track of whether or not we are before
13254   # the conftest object file.
13255   pre_test_object_deps_done=no
13256
13257   for p in `eval "$output_verbose_link_cmd"`; do
13258     case $p in
13259
13260     -L* | -R* | -l*)
13261        # Some compilers place space between "-{L,R}" and the path.
13262        # Remove the space.
13263        if test $p = "-L" ||
13264           test $p = "-R"; then
13265          prev=$p
13266          continue
13267        else
13268          prev=
13269        fi
13270
13271        if test "$pre_test_object_deps_done" = no; then
13272          case $p in
13273          -L* | -R*)
13274            # Internal compiler library paths should come after those
13275            # provided the user.  The postdeps already come after the
13276            # user supplied libs so there is no need to process them.
13277            if test -z "$compiler_lib_search_path_CXX"; then
13278              compiler_lib_search_path_CXX="${prev}${p}"
13279            else
13280              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13281            fi
13282            ;;
13283          # The "-l" case would never come before the object being
13284          # linked, so don't bother handling this case.
13285          esac
13286        else
13287          if test -z "$postdeps_CXX"; then
13288            postdeps_CXX="${prev}${p}"
13289          else
13290            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13291          fi
13292        fi
13293        ;;
13294
13295     *.$objext)
13296        # This assumes that the test object file only shows up
13297        # once in the compiler output.
13298        if test "$p" = "conftest.$objext"; then
13299          pre_test_object_deps_done=yes
13300          continue
13301        fi
13302
13303        if test "$pre_test_object_deps_done" = no; then
13304          if test -z "$predep_objects_CXX"; then
13305            predep_objects_CXX="$p"
13306          else
13307            predep_objects_CXX="$predep_objects_CXX $p"
13308          fi
13309        else
13310          if test -z "$postdep_objects_CXX"; then
13311            postdep_objects_CXX="$p"
13312          else
13313            postdep_objects_CXX="$postdep_objects_CXX $p"
13314          fi
13315        fi
13316        ;;
13317
13318     *) ;; # Ignore the rest.
13319
13320     esac
13321   done
13322
13323   # Clean up.
13324   rm -f a.out a.exe
13325 else
13326   echo "libtool.m4: error: problem compiling CXX test program"
13327 fi
13328
13329 $RM -f confest.$objext
13330
13331 # PORTME: override above test on systems where it is broken
13332 case $host_os in
13333 interix[3-9]*)
13334   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13335   # hack all around it, let's just trust "g++" to DTRT.
13336   predep_objects_CXX=
13337   postdep_objects_CXX=
13338   postdeps_CXX=
13339   ;;
13340
13341 linux*)
13342   case `$CC -V 2>&1 | sed 5q` in
13343   *Sun\ C*)
13344     # Sun C++ 5.9
13345
13346     # The more standards-conforming stlport4 library is
13347     # incompatible with the Cstd library. Avoid specifying
13348     # it if it's in CXXFLAGS. Ignore libCrun as
13349     # -library=stlport4 depends on it.
13350     case " $CXX $CXXFLAGS " in
13351     *" -library=stlport4 "*)
13352       solaris_use_stlport4=yes
13353       ;;
13354     esac
13355
13356     if test "$solaris_use_stlport4" != yes; then
13357       postdeps_CXX='-library=Cstd -library=Crun'
13358     fi
13359     ;;
13360   esac
13361   ;;
13362
13363 solaris*)
13364   case $cc_basename in
13365   CC*)
13366     # The more standards-conforming stlport4 library is
13367     # incompatible with the Cstd library. Avoid specifying
13368     # it if it's in CXXFLAGS. Ignore libCrun as
13369     # -library=stlport4 depends on it.
13370     case " $CXX $CXXFLAGS " in
13371     *" -library=stlport4 "*)
13372       solaris_use_stlport4=yes
13373       ;;
13374     esac
13375
13376     # Adding this requires a known-good setup of shared libraries for
13377     # Sun compiler versions before 5.6, else PIC objects from an old
13378     # archive will be linked into the output, leading to subtle bugs.
13379     if test "$solaris_use_stlport4" != yes; then
13380       postdeps_CXX='-library=Cstd -library=Crun'
13381     fi
13382     ;;
13383   esac
13384   ;;
13385 esac
13386
13387
13388 case " $postdeps_CXX " in
13389 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13390 esac
13391  compiler_lib_search_dirs_CXX=
13392 if test -n "${compiler_lib_search_path_CXX}"; then
13393  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13394 fi
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426     lt_prog_compiler_wl_CXX=
13427 lt_prog_compiler_pic_CXX=
13428 lt_prog_compiler_static_CXX=
13429
13430 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13431 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13432
13433   # C++ specific cases for pic, static, wl, etc.
13434   if test "$GXX" = yes; then
13435     lt_prog_compiler_wl_CXX='-Wl,'
13436     lt_prog_compiler_static_CXX='-static'
13437
13438     case $host_os in
13439     aix*)
13440       # All AIX code is PIC.
13441       if test "$host_cpu" = ia64; then
13442         # AIX 5 now supports IA64 processor
13443         lt_prog_compiler_static_CXX='-Bstatic'
13444       fi
13445       ;;
13446
13447     amigaos*)
13448       case $host_cpu in
13449       powerpc)
13450             # see comment about AmigaOS4 .so support
13451             lt_prog_compiler_pic_CXX='-fPIC'
13452         ;;
13453       m68k)
13454             # FIXME: we need at least 68020 code to build shared libraries, but
13455             # adding the `-m68020' flag to GCC prevents building anything better,
13456             # like `-m68040'.
13457             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13458         ;;
13459       esac
13460       ;;
13461
13462     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13463       # PIC is the default for these OSes.
13464       ;;
13465     mingw* | cygwin* | os2* | pw32* | cegcc*)
13466       # This hack is so that the source file can tell whether it is being
13467       # built for inclusion in a dll (and should export symbols for example).
13468       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13469       # (--disable-auto-import) libraries
13470       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13471       ;;
13472     darwin* | rhapsody*)
13473       # PIC is the default on this platform
13474       # Common symbols not allowed in MH_DYLIB files
13475       lt_prog_compiler_pic_CXX='-fno-common'
13476       ;;
13477     *djgpp*)
13478       # DJGPP does not support shared libraries at all
13479       lt_prog_compiler_pic_CXX=
13480       ;;
13481     interix[3-9]*)
13482       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13483       # Instead, we relocate shared libraries at runtime.
13484       ;;
13485     sysv4*MP*)
13486       if test -d /usr/nec; then
13487         lt_prog_compiler_pic_CXX=-Kconform_pic
13488       fi
13489       ;;
13490     hpux*)
13491       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13492       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13493       # sets the default TLS model and affects inlining.
13494       case $host_cpu in
13495       hppa*64*)
13496         ;;
13497       *)
13498         lt_prog_compiler_pic_CXX='-fPIC'
13499         ;;
13500       esac
13501       ;;
13502     *qnx* | *nto*)
13503       # QNX uses GNU C++, but need to define -shared option too, otherwise
13504       # it will coredump.
13505       lt_prog_compiler_pic_CXX='-fPIC -shared'
13506       ;;
13507     *)
13508       lt_prog_compiler_pic_CXX='-fPIC'
13509       ;;
13510     esac
13511   else
13512     case $host_os in
13513       aix[4-9]*)
13514         # All AIX code is PIC.
13515         if test "$host_cpu" = ia64; then
13516           # AIX 5 now supports IA64 processor
13517           lt_prog_compiler_static_CXX='-Bstatic'
13518         else
13519           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13520         fi
13521         ;;
13522       chorus*)
13523         case $cc_basename in
13524         cxch68*)
13525           # Green Hills C++ Compiler
13526           # _LT_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"
13527           ;;
13528         esac
13529         ;;
13530       dgux*)
13531         case $cc_basename in
13532           ec++*)
13533             lt_prog_compiler_pic_CXX='-KPIC'
13534             ;;
13535           ghcx*)
13536             # Green Hills C++ Compiler
13537             lt_prog_compiler_pic_CXX='-pic'
13538             ;;
13539           *)
13540             ;;
13541         esac
13542         ;;
13543       freebsd* | dragonfly*)
13544         # FreeBSD uses GNU C++
13545         ;;
13546       hpux9* | hpux10* | hpux11*)
13547         case $cc_basename in
13548           CC*)
13549             lt_prog_compiler_wl_CXX='-Wl,'
13550             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13551             if test "$host_cpu" != ia64; then
13552               lt_prog_compiler_pic_CXX='+Z'
13553             fi
13554             ;;
13555           aCC*)
13556             lt_prog_compiler_wl_CXX='-Wl,'
13557             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13558             case $host_cpu in
13559             hppa*64*|ia64*)
13560               # +Z the default
13561               ;;
13562             *)
13563               lt_prog_compiler_pic_CXX='+Z'
13564               ;;
13565             esac
13566             ;;
13567           *)
13568             ;;
13569         esac
13570         ;;
13571       interix*)
13572         # This is c89, which is MS Visual C++ (no shared libs)
13573         # Anyone wants to do a port?
13574         ;;
13575       irix5* | irix6* | nonstopux*)
13576         case $cc_basename in
13577           CC*)
13578             lt_prog_compiler_wl_CXX='-Wl,'
13579             lt_prog_compiler_static_CXX='-non_shared'
13580             # CC pic flag -KPIC is the default.
13581             ;;
13582           *)
13583             ;;
13584         esac
13585         ;;
13586       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13587         case $cc_basename in
13588           KCC*)
13589             # KAI C++ Compiler
13590             lt_prog_compiler_wl_CXX='--backend -Wl,'
13591             lt_prog_compiler_pic_CXX='-fPIC'
13592             ;;
13593           ecpc* )
13594             # old Intel C++ for x86_64 which still supported -KPIC.
13595             lt_prog_compiler_wl_CXX='-Wl,'
13596             lt_prog_compiler_pic_CXX='-KPIC'
13597             lt_prog_compiler_static_CXX='-static'
13598             ;;
13599           icpc* )
13600             # Intel C++, used to be incompatible with GCC.
13601             # ICC 10 doesn't accept -KPIC any more.
13602             lt_prog_compiler_wl_CXX='-Wl,'
13603             lt_prog_compiler_pic_CXX='-fPIC'
13604             lt_prog_compiler_static_CXX='-static'
13605             ;;
13606           pgCC* | pgcpp*)
13607             # Portland Group C++ compiler
13608             lt_prog_compiler_wl_CXX='-Wl,'
13609             lt_prog_compiler_pic_CXX='-fpic'
13610             lt_prog_compiler_static_CXX='-Bstatic'
13611             ;;
13612           cxx*)
13613             # Compaq C++
13614             # Make sure the PIC flag is empty.  It appears that all Alpha
13615             # Linux and Compaq Tru64 Unix objects are PIC.
13616             lt_prog_compiler_pic_CXX=
13617             lt_prog_compiler_static_CXX='-non_shared'
13618             ;;
13619           xlc* | xlC*)
13620             # IBM XL 8.0 on PPC
13621             lt_prog_compiler_wl_CXX='-Wl,'
13622             lt_prog_compiler_pic_CXX='-qpic'
13623             lt_prog_compiler_static_CXX='-qstaticlink'
13624             ;;
13625           *)
13626             case `$CC -V 2>&1 | sed 5q` in
13627             *Sun\ C*)
13628               # Sun C++ 5.9
13629               lt_prog_compiler_pic_CXX='-KPIC'
13630               lt_prog_compiler_static_CXX='-Bstatic'
13631               lt_prog_compiler_wl_CXX='-Qoption ld '
13632               ;;
13633             esac
13634             ;;
13635         esac
13636         ;;
13637       lynxos*)
13638         ;;
13639       m88k*)
13640         ;;
13641       mvs*)
13642         case $cc_basename in
13643           cxx*)
13644             lt_prog_compiler_pic_CXX='-W c,exportall'
13645             ;;
13646           *)
13647             ;;
13648         esac
13649         ;;
13650       netbsd*)
13651         ;;
13652       *qnx* | *nto*)
13653         # QNX uses GNU C++, but need to define -shared option too, otherwise
13654         # it will coredump.
13655         lt_prog_compiler_pic_CXX='-fPIC -shared'
13656         ;;
13657       osf3* | osf4* | osf5*)
13658         case $cc_basename in
13659           KCC*)
13660             lt_prog_compiler_wl_CXX='--backend -Wl,'
13661             ;;
13662           RCC*)
13663             # Rational C++ 2.4.1
13664             lt_prog_compiler_pic_CXX='-pic'
13665             ;;
13666           cxx*)
13667             # Digital/Compaq C++
13668             lt_prog_compiler_wl_CXX='-Wl,'
13669             # Make sure the PIC flag is empty.  It appears that all Alpha
13670             # Linux and Compaq Tru64 Unix objects are PIC.
13671             lt_prog_compiler_pic_CXX=
13672             lt_prog_compiler_static_CXX='-non_shared'
13673             ;;
13674           *)
13675             ;;
13676         esac
13677         ;;
13678       psos*)
13679         ;;
13680       solaris*)
13681         case $cc_basename in
13682           CC*)
13683             # Sun C++ 4.2, 5.x and Centerline C++
13684             lt_prog_compiler_pic_CXX='-KPIC'
13685             lt_prog_compiler_static_CXX='-Bstatic'
13686             lt_prog_compiler_wl_CXX='-Qoption ld '
13687             ;;
13688           gcx*)
13689             # Green Hills C++ Compiler
13690             lt_prog_compiler_pic_CXX='-PIC'
13691             ;;
13692           *)
13693             ;;
13694         esac
13695         ;;
13696       sunos4*)
13697         case $cc_basename in
13698           CC*)
13699             # Sun C++ 4.x
13700             lt_prog_compiler_pic_CXX='-pic'
13701             lt_prog_compiler_static_CXX='-Bstatic'
13702             ;;
13703           lcc*)
13704             # Lucid
13705             lt_prog_compiler_pic_CXX='-pic'
13706             ;;
13707           *)
13708             ;;
13709         esac
13710         ;;
13711       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13712         case $cc_basename in
13713           CC*)
13714             lt_prog_compiler_wl_CXX='-Wl,'
13715             lt_prog_compiler_pic_CXX='-KPIC'
13716             lt_prog_compiler_static_CXX='-Bstatic'
13717             ;;
13718         esac
13719         ;;
13720       tandem*)
13721         case $cc_basename in
13722           NCC*)
13723             # NonStop-UX NCC 3.20
13724             lt_prog_compiler_pic_CXX='-KPIC'
13725             ;;
13726           *)
13727             ;;
13728         esac
13729         ;;
13730       vxworks*)
13731         ;;
13732       *)
13733         lt_prog_compiler_can_build_shared_CXX=no
13734         ;;
13735     esac
13736   fi
13737
13738 case $host_os in
13739   # For platforms which do not support PIC, -DPIC is meaningless:
13740   *djgpp*)
13741     lt_prog_compiler_pic_CXX=
13742     ;;
13743   *)
13744     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13745     ;;
13746 esac
13747 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13748 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13749
13750
13751
13752 #
13753 # Check to make sure the PIC flag actually works.
13754 #
13755 if test -n "$lt_prog_compiler_pic_CXX"; then
13756   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13758 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   lt_cv_prog_compiler_pic_works_CXX=no
13762    ac_outfile=conftest.$ac_objext
13763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13764    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13765    # Insert the option either (1) after the last *FLAGS variable, or
13766    # (2) before a word containing "conftest.", or (3) at the end.
13767    # Note that $ac_compile itself does not contain backslashes and begins
13768    # with a dollar sign (not a hyphen), so the echo should work correctly.
13769    # The option is referenced via a variable to avoid confusing sed.
13770    lt_compile=`echo "$ac_compile" | $SED \
13771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13773    -e 's:$: $lt_compiler_flag:'`
13774    (eval echo "\"\$as_me:13774: $lt_compile\"" >&5)
13775    (eval "$lt_compile" 2>conftest.err)
13776    ac_status=$?
13777    cat conftest.err >&5
13778    echo "$as_me:13778: \$? = $ac_status" >&5
13779    if (exit $ac_status) && test -s "$ac_outfile"; then
13780      # The compiler can only warn and ignore the option if not recognized
13781      # So say no if there are warnings other than the usual output.
13782      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13783      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13784      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13785        lt_cv_prog_compiler_pic_works_CXX=yes
13786      fi
13787    fi
13788    $RM conftest*
13789
13790 fi
13791 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13792 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13793
13794 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13795     case $lt_prog_compiler_pic_CXX in
13796      "" | " "*) ;;
13797      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13798      esac
13799 else
13800     lt_prog_compiler_pic_CXX=
13801      lt_prog_compiler_can_build_shared_CXX=no
13802 fi
13803
13804 fi
13805
13806
13807
13808 #
13809 # Check to make sure the static flag actually works.
13810 #
13811 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13812 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13813 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13814 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   lt_cv_prog_compiler_static_works_CXX=no
13818    save_LDFLAGS="$LDFLAGS"
13819    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13820    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13821    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13822      # The linker can only warn and ignore the option if not recognized
13823      # So say no if there are warnings
13824      if test -s conftest.err; then
13825        # Append any errors to the config.log.
13826        cat conftest.err 1>&5
13827        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13828        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13829        if diff conftest.exp conftest.er2 >/dev/null; then
13830          lt_cv_prog_compiler_static_works_CXX=yes
13831        fi
13832      else
13833        lt_cv_prog_compiler_static_works_CXX=yes
13834      fi
13835    fi
13836    $RM -r conftest*
13837    LDFLAGS="$save_LDFLAGS"
13838
13839 fi
13840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13841 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
13842
13843 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13844     :
13845 else
13846     lt_prog_compiler_static_CXX=
13847 fi
13848
13849
13850
13851
13852     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13854 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13855   echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857   lt_cv_prog_compiler_c_o_CXX=no
13858    $RM -r conftest 2>/dev/null
13859    mkdir conftest
13860    cd conftest
13861    mkdir out
13862    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13863
13864    lt_compiler_flag="-o out/conftest2.$ac_objext"
13865    # Insert the option either (1) after the last *FLAGS variable, or
13866    # (2) before a word containing "conftest.", or (3) at the end.
13867    # Note that $ac_compile itself does not contain backslashes and begins
13868    # with a dollar sign (not a hyphen), so the echo should work correctly.
13869    lt_compile=`echo "$ac_compile" | $SED \
13870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872    -e 's:$: $lt_compiler_flag:'`
13873    (eval echo "\"\$as_me:13873: $lt_compile\"" >&5)
13874    (eval "$lt_compile" 2>out/conftest.err)
13875    ac_status=$?
13876    cat out/conftest.err >&5
13877    echo "$as_me:13877: \$? = $ac_status" >&5
13878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13879    then
13880      # The compiler can only warn and ignore the option if not recognized
13881      # So say no if there are warnings
13882      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13885        lt_cv_prog_compiler_c_o_CXX=yes
13886      fi
13887    fi
13888    chmod u+w . 2>&5
13889    $RM conftest*
13890    # SGI C++ compiler will create directory out/ii_files/ for
13891    # template instantiation
13892    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13893    $RM out/* && rmdir out
13894    cd ..
13895    $RM -r conftest
13896    $RM conftest*
13897
13898 fi
13899 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13901
13902
13903
13904     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13906 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909   lt_cv_prog_compiler_c_o_CXX=no
13910    $RM -r conftest 2>/dev/null
13911    mkdir conftest
13912    cd conftest
13913    mkdir out
13914    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13915
13916    lt_compiler_flag="-o out/conftest2.$ac_objext"
13917    # Insert the option either (1) after the last *FLAGS variable, or
13918    # (2) before a word containing "conftest.", or (3) at the end.
13919    # Note that $ac_compile itself does not contain backslashes and begins
13920    # with a dollar sign (not a hyphen), so the echo should work correctly.
13921    lt_compile=`echo "$ac_compile" | $SED \
13922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13924    -e 's:$: $lt_compiler_flag:'`
13925    (eval echo "\"\$as_me:13925: $lt_compile\"" >&5)
13926    (eval "$lt_compile" 2>out/conftest.err)
13927    ac_status=$?
13928    cat out/conftest.err >&5
13929    echo "$as_me:13929: \$? = $ac_status" >&5
13930    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13931    then
13932      # The compiler can only warn and ignore the option if not recognized
13933      # So say no if there are warnings
13934      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13935      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13936      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13937        lt_cv_prog_compiler_c_o_CXX=yes
13938      fi
13939    fi
13940    chmod u+w . 2>&5
13941    $RM conftest*
13942    # SGI C++ compiler will create directory out/ii_files/ for
13943    # template instantiation
13944    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13945    $RM out/* && rmdir out
13946    cd ..
13947    $RM -r conftest
13948    $RM conftest*
13949
13950 fi
13951 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13952 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13953
13954
13955
13956
13957 hard_links="nottested"
13958 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13959   # do not overwrite the value of need_locks provided by the user
13960   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13962   hard_links=yes
13963   $RM conftest*
13964   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13965   touch conftest.a
13966   ln conftest.a conftest.b 2>&5 || hard_links=no
13967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13968   echo "$as_me:$LINENO: result: $hard_links" >&5
13969 echo "${ECHO_T}$hard_links" >&6
13970   if test "$hard_links" = no; then
13971     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13973     need_locks=warn
13974   fi
13975 else
13976   need_locks=no
13977 fi
13978
13979
13980
13981     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13982 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13983
13984   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13985   case $host_os in
13986   aix[4-9]*)
13987     # If we're using GNU nm, then we don't want the "-C" option.
13988     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13989     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13990       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'
13991     else
13992       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'
13993     fi
13994     ;;
13995   pw32*)
13996     export_symbols_cmds_CXX="$ltdll_cmds"
13997   ;;
13998   cygwin* | mingw* | cegcc*)
13999     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14000   ;;
14001   *)
14002     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14003   ;;
14004   esac
14005   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14006
14007 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14008 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14009 test "$ld_shlibs_CXX" = no && can_build_shared=no
14010
14011 with_gnu_ld_CXX=$with_gnu_ld
14012
14013
14014
14015
14016
14017
14018 #
14019 # Do we need to explicitly link libc?
14020 #
14021 case "x$archive_cmds_need_lc_CXX" in
14022 x|xyes)
14023   # Assume -lc should be added
14024   archive_cmds_need_lc_CXX=yes
14025
14026   if test "$enable_shared" = yes && test "$GCC" = yes; then
14027     case $archive_cmds_CXX in
14028     *'~'*)
14029       # FIXME: we may have to deal with multi-command sequences.
14030       ;;
14031     '$CC '*)
14032       # Test whether the compiler implicitly links with -lc since on some
14033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14034       # to ld, don't add -lc before -lgcc.
14035       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14037 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   $RM conftest*
14041         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14042
14043         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044   (eval $ac_compile) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } 2>conftest.err; then
14048           soname=conftest
14049           lib=conftest
14050           libobjs=conftest.$ac_objext
14051           deplibs=
14052           wl=$lt_prog_compiler_wl_CXX
14053           pic_flag=$lt_prog_compiler_pic_CXX
14054           compiler_flags=-v
14055           linker_flags=-v
14056           verstring=
14057           output_objdir=.
14058           libname=conftest
14059           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14060           allow_undefined_flag_CXX=
14061           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14062   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }
14066           then
14067             lt_cv_archive_cmds_need_lc_CXX=no
14068           else
14069             lt_cv_archive_cmds_need_lc_CXX=yes
14070           fi
14071           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14072         else
14073           cat conftest.err 1>&5
14074         fi
14075         $RM conftest*
14076
14077 fi
14078 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14079 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14080       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14081       ;;
14082     esac
14083   fi
14084   ;;
14085 esac
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14151 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14152
14153 library_names_spec=
14154 libname_spec='lib$name'
14155 soname_spec=
14156 shrext_cmds=".so"
14157 postinstall_cmds=
14158 postuninstall_cmds=
14159 finish_cmds=
14160 finish_eval=
14161 shlibpath_var=
14162 shlibpath_overrides_runpath=unknown
14163 version_type=none
14164 dynamic_linker="$host_os ld.so"
14165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14166 need_lib_prefix=unknown
14167 hardcode_into_libs=no
14168
14169 # when you set need_version to no, make sure it does not cause -set_version
14170 # flags to be left without arguments
14171 need_version=unknown
14172
14173 case $host_os in
14174 aix3*)
14175   version_type=linux
14176   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14177   shlibpath_var=LIBPATH
14178
14179   # AIX 3 has no versioning support, so we append a major version to the name.
14180   soname_spec='${libname}${release}${shared_ext}$major'
14181   ;;
14182
14183 aix[4-9]*)
14184   version_type=linux
14185   need_lib_prefix=no
14186   need_version=no
14187   hardcode_into_libs=yes
14188   if test "$host_cpu" = ia64; then
14189     # AIX 5 supports IA64
14190     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14191     shlibpath_var=LD_LIBRARY_PATH
14192   else
14193     # With GCC up to 2.95.x, collect2 would create an import file
14194     # for dependence libraries.  The import file would start with
14195     # the line `#! .'.  This would cause the generated library to
14196     # depend on `.', always an invalid library.  This was fixed in
14197     # development snapshots of GCC prior to 3.0.
14198     case $host_os in
14199       aix4 | aix4.[01] | aix4.[01].*)
14200       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14201            echo ' yes '
14202            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14203         :
14204       else
14205         can_build_shared=no
14206       fi
14207       ;;
14208     esac
14209     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14210     # soname into executable. Probably we can add versioning support to
14211     # collect2, so additional links can be useful in future.
14212     if test "$aix_use_runtimelinking" = yes; then
14213       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14214       # instead of lib<name>.a to let people know that these are not
14215       # typical AIX shared libraries.
14216       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14217     else
14218       # We preserve .a as extension for shared libraries through AIX4.2
14219       # and later when we are not doing run time linking.
14220       library_names_spec='${libname}${release}.a $libname.a'
14221       soname_spec='${libname}${release}${shared_ext}$major'
14222     fi
14223     shlibpath_var=LIBPATH
14224   fi
14225   ;;
14226
14227 amigaos*)
14228   case $host_cpu in
14229   powerpc)
14230     # Since July 2007 AmigaOS4 officially supports .so libraries.
14231     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233     ;;
14234   m68k)
14235     library_names_spec='$libname.ixlibrary $libname.a'
14236     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14237     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'
14238     ;;
14239   esac
14240   ;;
14241
14242 beos*)
14243   library_names_spec='${libname}${shared_ext}'
14244   dynamic_linker="$host_os ld.so"
14245   shlibpath_var=LIBRARY_PATH
14246   ;;
14247
14248 bsdi[45]*)
14249   version_type=linux
14250   need_version=no
14251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252   soname_spec='${libname}${release}${shared_ext}$major'
14253   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14254   shlibpath_var=LD_LIBRARY_PATH
14255   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14256   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14257   # the default ld.so.conf also contains /usr/contrib/lib and
14258   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14259   # libtool to hard-code these into programs
14260   ;;
14261
14262 cygwin* | mingw* | pw32* | cegcc*)
14263   version_type=windows
14264   shrext_cmds=".dll"
14265   need_version=no
14266   need_lib_prefix=no
14267
14268   case $GCC,$host_os in
14269   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14270     library_names_spec='$libname.dll.a'
14271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272     postinstall_cmds='base_file=`basename \${file}`~
14273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14274       dldir=$destdir/`dirname \$dlpath`~
14275       test -d \$dldir || mkdir -p \$dldir~
14276       $install_prog $dir/$dlname \$dldir/$dlname~
14277       chmod a+x \$dldir/$dlname~
14278       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14279         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14280       fi'
14281     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14282       dlpath=$dir/\$dldll~
14283        $RM \$dlpath'
14284     shlibpath_overrides_runpath=yes
14285
14286     case $host_os in
14287     cygwin*)
14288       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14289       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14290       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14291       ;;
14292     mingw* | cegcc*)
14293       # MinGW DLLs use traditional 'lib' prefix
14294       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14295       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14296       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14297         # It is most probably a Windows format PATH printed by
14298         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14299         # path with ; separators, and with drive letters. We can handle the
14300         # drive letters (cygwin fileutils understands them), so leave them,
14301         # especially as we might pass files found there to a mingw objdump,
14302         # which wouldn't understand a cygwinified path. Ahh.
14303         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14304       else
14305         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14306       fi
14307       ;;
14308     pw32*)
14309       # pw32 DLLs use 'pw' prefix rather than 'lib'
14310       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14311       ;;
14312     esac
14313     ;;
14314
14315   *)
14316     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14317     ;;
14318   esac
14319   dynamic_linker='Win32 ld.exe'
14320   # FIXME: first we should search . and the directory the executable is in
14321   shlibpath_var=PATH
14322   ;;
14323
14324 darwin* | rhapsody*)
14325   dynamic_linker="$host_os dyld"
14326   version_type=darwin
14327   need_lib_prefix=no
14328   need_version=no
14329   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14330   soname_spec='${libname}${release}${major}$shared_ext'
14331   shlibpath_overrides_runpath=yes
14332   shlibpath_var=DYLD_LIBRARY_PATH
14333   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14334
14335   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14336   ;;
14337
14338 dgux*)
14339   version_type=linux
14340   need_lib_prefix=no
14341   need_version=no
14342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14343   soname_spec='${libname}${release}${shared_ext}$major'
14344   shlibpath_var=LD_LIBRARY_PATH
14345   ;;
14346
14347 freebsd1*)
14348   dynamic_linker=no
14349   ;;
14350
14351 freebsd* | dragonfly*)
14352   # DragonFly does not have aout.  When/if they implement a new
14353   # versioning mechanism, adjust this.
14354   if test -x /usr/bin/objformat; then
14355     objformat=`/usr/bin/objformat`
14356   else
14357     case $host_os in
14358     freebsd[123]*) objformat=aout ;;
14359     *) objformat=elf ;;
14360     esac
14361   fi
14362   version_type=freebsd-$objformat
14363   case $version_type in
14364     freebsd-elf*)
14365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14366       need_version=no
14367       need_lib_prefix=no
14368       ;;
14369     freebsd-*)
14370       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14371       need_version=yes
14372       ;;
14373   esac
14374   shlibpath_var=LD_LIBRARY_PATH
14375   case $host_os in
14376   freebsd2*)
14377     shlibpath_overrides_runpath=yes
14378     ;;
14379   freebsd3.[01]* | freebsdelf3.[01]*)
14380     shlibpath_overrides_runpath=yes
14381     hardcode_into_libs=yes
14382     ;;
14383   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14384   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14385     shlibpath_overrides_runpath=no
14386     hardcode_into_libs=yes
14387     ;;
14388   *) # from 4.6 on, and DragonFly
14389     shlibpath_overrides_runpath=yes
14390     hardcode_into_libs=yes
14391     ;;
14392   esac
14393   ;;
14394
14395 gnu*)
14396   version_type=linux
14397   need_lib_prefix=no
14398   need_version=no
14399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14400   soname_spec='${libname}${release}${shared_ext}$major'
14401   shlibpath_var=LD_LIBRARY_PATH
14402   hardcode_into_libs=yes
14403   ;;
14404
14405 hpux9* | hpux10* | hpux11*)
14406   # Give a soname corresponding to the major version so that dld.sl refuses to
14407   # link against other versions.
14408   version_type=sunos
14409   need_lib_prefix=no
14410   need_version=no
14411   case $host_cpu in
14412   ia64*)
14413     shrext_cmds='.so'
14414     hardcode_into_libs=yes
14415     dynamic_linker="$host_os dld.so"
14416     shlibpath_var=LD_LIBRARY_PATH
14417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419     soname_spec='${libname}${release}${shared_ext}$major'
14420     if test "X$HPUX_IA64_MODE" = X32; then
14421       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14422     else
14423       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14424     fi
14425     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14426     ;;
14427   hppa*64*)
14428     shrext_cmds='.sl'
14429     hardcode_into_libs=yes
14430     dynamic_linker="$host_os dld.sl"
14431     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434     soname_spec='${libname}${release}${shared_ext}$major'
14435     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14437     ;;
14438   *)
14439     shrext_cmds='.sl'
14440     dynamic_linker="$host_os dld.sl"
14441     shlibpath_var=SHLIB_PATH
14442     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444     soname_spec='${libname}${release}${shared_ext}$major'
14445     ;;
14446   esac
14447   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14448   postinstall_cmds='chmod 555 $lib'
14449   ;;
14450
14451 interix[3-9]*)
14452   version_type=linux
14453   need_lib_prefix=no
14454   need_version=no
14455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14456   soname_spec='${libname}${release}${shared_ext}$major'
14457   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14458   shlibpath_var=LD_LIBRARY_PATH
14459   shlibpath_overrides_runpath=no
14460   hardcode_into_libs=yes
14461   ;;
14462
14463 irix5* | irix6* | nonstopux*)
14464   case $host_os in
14465     nonstopux*) version_type=nonstopux ;;
14466     *)
14467         if test "$lt_cv_prog_gnu_ld" = yes; then
14468                 version_type=linux
14469         else
14470                 version_type=irix
14471         fi ;;
14472   esac
14473   need_lib_prefix=no
14474   need_version=no
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14477   case $host_os in
14478   irix5* | nonstopux*)
14479     libsuff= shlibsuff=
14480     ;;
14481   *)
14482     case $LD in # libtool.m4 will add one of these switches to LD
14483     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14484       libsuff= shlibsuff= libmagic=32-bit;;
14485     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14486       libsuff=32 shlibsuff=N32 libmagic=N32;;
14487     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14488       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14489     *) libsuff= shlibsuff= libmagic=never-match;;
14490     esac
14491     ;;
14492   esac
14493   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14494   shlibpath_overrides_runpath=no
14495   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14496   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14497   hardcode_into_libs=yes
14498   ;;
14499
14500 # No shared lib support for Linux oldld, aout, or coff.
14501 linux*oldld* | linux*aout* | linux*coff*)
14502   dynamic_linker=no
14503   ;;
14504
14505 # This must be Linux ELF.
14506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14507   version_type=linux
14508   need_lib_prefix=no
14509   need_version=no
14510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511   soname_spec='${libname}${release}${shared_ext}$major'
14512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   shlibpath_overrides_runpath=no
14515
14516   # Some binutils ld are patched to set DT_RUNPATH
14517   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   lt_cv_shlibpath_overrides_runpath=no
14521     save_LDFLAGS=$LDFLAGS
14522     save_libdir=$libdir
14523     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14524          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14525     if test x$gcc_no_link = xyes; then
14526   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14528    { (exit 1); exit 1; }; }
14529 fi
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h.  */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h.  */
14536
14537 int
14538 main ()
14539 {
14540
14541   ;
14542   return 0;
14543 }
14544 _ACEOF
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547   (eval $ac_link) 2>conftest.er1
14548   ac_status=$?
14549   grep -v '^ *+' conftest.er1 >conftest.err
14550   rm -f conftest.er1
14551   cat conftest.err >&5
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); } &&
14554          { ac_try='test -z "$ac_cxx_werror_flag"
14555                          || test ! -s conftest.err'
14556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557   (eval $ac_try) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); }; } &&
14561          { ac_try='test -s conftest$ac_exeext'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14568   lt_cv_shlibpath_overrides_runpath=yes
14569 fi
14570
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 fi
14576 rm -f conftest.err conftest.$ac_objext \
14577       conftest$ac_exeext conftest.$ac_ext
14578     LDFLAGS=$save_LDFLAGS
14579     libdir=$save_libdir
14580
14581 fi
14582
14583   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14584
14585   # This implies no fast_install, which is unacceptable.
14586   # Some rework will be needed to allow for fast_install
14587   # before this can be enabled.
14588   hardcode_into_libs=yes
14589
14590   # Append ld.so.conf contents to the search path
14591   if test -f /etc/ld.so.conf; then
14592     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14594   fi
14595
14596   # We used to test for /lib/ld.so.1 and disable shared libraries on
14597   # powerpc, because MkLinux only supported shared libraries with the
14598   # GNU dynamic linker.  Since this was broken with cross compilers,
14599   # most powerpc-linux boxes support dynamic linking these days and
14600   # people can always --disable-shared, the test was removed, and we
14601   # assume the GNU/Linux dynamic linker is in use.
14602   dynamic_linker='GNU/Linux ld.so'
14603   ;;
14604
14605 netbsd*)
14606   version_type=sunos
14607   need_lib_prefix=no
14608   need_version=no
14609   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612     dynamic_linker='NetBSD (a.out) ld.so'
14613   else
14614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615     soname_spec='${libname}${release}${shared_ext}$major'
14616     dynamic_linker='NetBSD ld.elf_so'
14617   fi
14618   shlibpath_var=LD_LIBRARY_PATH
14619   shlibpath_overrides_runpath=yes
14620   hardcode_into_libs=yes
14621   ;;
14622
14623 newsos6)
14624   version_type=linux
14625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626   shlibpath_var=LD_LIBRARY_PATH
14627   shlibpath_overrides_runpath=yes
14628   ;;
14629
14630 *nto* | *qnx*)
14631   version_type=qnx
14632   need_lib_prefix=no
14633   need_version=no
14634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635   soname_spec='${libname}${release}${shared_ext}$major'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   shlibpath_overrides_runpath=no
14638   hardcode_into_libs=yes
14639   dynamic_linker='ldqnx.so'
14640   ;;
14641
14642 openbsd*)
14643   version_type=sunos
14644   sys_lib_dlsearch_path_spec="/usr/lib"
14645   need_lib_prefix=no
14646   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14647   case $host_os in
14648     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14649     *)                          need_version=no  ;;
14650   esac
14651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14653   shlibpath_var=LD_LIBRARY_PATH
14654   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655     case $host_os in
14656       openbsd2.[89] | openbsd2.[89].*)
14657         shlibpath_overrides_runpath=no
14658         ;;
14659       *)
14660         shlibpath_overrides_runpath=yes
14661         ;;
14662       esac
14663   else
14664     shlibpath_overrides_runpath=yes
14665   fi
14666   ;;
14667
14668 os2*)
14669   libname_spec='$name'
14670   shrext_cmds=".dll"
14671   need_lib_prefix=no
14672   library_names_spec='$libname${shared_ext} $libname.a'
14673   dynamic_linker='OS/2 ld.exe'
14674   shlibpath_var=LIBPATH
14675   ;;
14676
14677 osf3* | osf4* | osf5*)
14678   version_type=osf
14679   need_lib_prefix=no
14680   need_version=no
14681   soname_spec='${libname}${release}${shared_ext}$major'
14682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683   shlibpath_var=LD_LIBRARY_PATH
14684   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14685   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14686   ;;
14687
14688 rdos*)
14689   dynamic_linker=no
14690   ;;
14691
14692 solaris*)
14693   version_type=linux
14694   need_lib_prefix=no
14695   need_version=no
14696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697   soname_spec='${libname}${release}${shared_ext}$major'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   shlibpath_overrides_runpath=yes
14700   hardcode_into_libs=yes
14701   # ldd complains unless libraries are executable
14702   postinstall_cmds='chmod +x $lib'
14703   ;;
14704
14705 sunos4*)
14706   version_type=sunos
14707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14708   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14709   shlibpath_var=LD_LIBRARY_PATH
14710   shlibpath_overrides_runpath=yes
14711   if test "$with_gnu_ld" = yes; then
14712     need_lib_prefix=no
14713   fi
14714   need_version=yes
14715   ;;
14716
14717 sysv4 | sysv4.3*)
14718   version_type=linux
14719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720   soname_spec='${libname}${release}${shared_ext}$major'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   case $host_vendor in
14723     sni)
14724       shlibpath_overrides_runpath=no
14725       need_lib_prefix=no
14726       runpath_var=LD_RUN_PATH
14727       ;;
14728     siemens)
14729       need_lib_prefix=no
14730       ;;
14731     motorola)
14732       need_lib_prefix=no
14733       need_version=no
14734       shlibpath_overrides_runpath=no
14735       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14736       ;;
14737   esac
14738   ;;
14739
14740 sysv4*MP*)
14741   if test -d /usr/nec ;then
14742     version_type=linux
14743     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14744     soname_spec='$libname${shared_ext}.$major'
14745     shlibpath_var=LD_LIBRARY_PATH
14746   fi
14747   ;;
14748
14749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14750   version_type=freebsd-elf
14751   need_lib_prefix=no
14752   need_version=no
14753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14754   soname_spec='${libname}${release}${shared_ext}$major'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   shlibpath_overrides_runpath=yes
14757   hardcode_into_libs=yes
14758   if test "$with_gnu_ld" = yes; then
14759     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14760   else
14761     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14762     case $host_os in
14763       sco3.2v5*)
14764         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14765         ;;
14766     esac
14767   fi
14768   sys_lib_dlsearch_path_spec='/usr/lib'
14769   ;;
14770
14771 tpf*)
14772   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14773   version_type=linux
14774   need_lib_prefix=no
14775   need_version=no
14776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777   shlibpath_var=LD_LIBRARY_PATH
14778   shlibpath_overrides_runpath=no
14779   hardcode_into_libs=yes
14780   ;;
14781
14782 uts4*)
14783   version_type=linux
14784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785   soname_spec='${libname}${release}${shared_ext}$major'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   ;;
14788
14789 *)
14790   dynamic_linker=no
14791   ;;
14792 esac
14793 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14794 echo "${ECHO_T}$dynamic_linker" >&6
14795 test "$dynamic_linker" = no && can_build_shared=no
14796
14797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14798 if test "$GCC" = yes; then
14799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14800 fi
14801
14802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14803   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14804 fi
14805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14806   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14807 fi
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14846 hardcode_action_CXX=
14847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14848    test -n "$runpath_var_CXX" ||
14849    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14850
14851   # We can hardcode non-existent directories.
14852   if test "$hardcode_direct_CXX" != no &&
14853      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14854      # have to relink, otherwise we might link with an installed library
14855      # when we should be linking with a yet-to-be-installed one
14856      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14857      test "$hardcode_minus_L_CXX" != no; then
14858     # Linking always hardcodes the temporary library directory.
14859     hardcode_action_CXX=relink
14860   else
14861     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14862     hardcode_action_CXX=immediate
14863   fi
14864 else
14865   # We cannot hardcode anything, or else we can only hardcode existing
14866   # directories.
14867   hardcode_action_CXX=unsupported
14868 fi
14869 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14870 echo "${ECHO_T}$hardcode_action_CXX" >&6
14871
14872 if test "$hardcode_action_CXX" = relink ||
14873    test "$inherit_rpath_CXX" = yes; then
14874   # Fast installation is not supported
14875   enable_fast_install=no
14876 elif test "$shlibpath_overrides_runpath" = yes ||
14877      test "$enable_shared" = no; then
14878   # Fast installation is not necessary
14879   enable_fast_install=needless
14880 fi
14881
14882
14883
14884
14885
14886
14887
14888   fi # test -n "$compiler"
14889
14890   CC=$lt_save_CC
14891   LDCXX=$LD
14892   LD=$lt_save_LD
14893   GCC=$lt_save_GCC
14894   with_gnu_ld=$lt_save_with_gnu_ld
14895   lt_cv_path_LDCXX=$lt_cv_path_LD
14896   lt_cv_path_LD=$lt_save_path_LD
14897   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14898   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14899 fi # test "$_lt_caught_CXX_error" != yes
14900
14901 ac_ext=c
14902 ac_cpp='$CPP $CPPFLAGS'
14903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919                   ac_config_commands="$ac_config_commands libtool"
14920
14921
14922
14923
14924 # Only expand once:
14925
14926
14927
14928
14929 # Check whether --with-target-subdir or --without-target-subdir was given.
14930 if test "${with_target_subdir+set}" = set; then
14931   withval="$with_target_subdir"
14932
14933 fi;
14934
14935 # Check whether --with-cross-host or --without-cross-host was given.
14936 if test "${with_cross_host+set}" = set; then
14937   withval="$with_cross_host"
14938
14939 fi;
14940
14941 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14942 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14943 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14944 if test -z "$THREADS"; then
14945    THREADS=no
14946 fi
14947 echo "$as_me:$LINENO: result: $THREADS" >&5
14948 echo "${ECHO_T}$THREADS" >&6
14949
14950 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14951 if test "${enable_parallel_mark+set}" = set; then
14952   enableval="$enable_parallel_mark"
14953   case "$THREADS" in
14954       no | none | single)
14955         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14956 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14957    { (exit 1); exit 1; }; }
14958         ;;
14959     esac
14960
14961 fi;
14962
14963 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14964 THREADLIBS=
14965 case "$THREADS" in
14966  no | none | single)
14967     THREADS=none
14968     ;;
14969  posix | posix95 | pthreads)
14970     THREADS=posix
14971     THREADLIBS=-lpthread
14972     case "$host" in
14973      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14974
14975 cat >>confdefs.h <<\_ACEOF
14976 #define GC_LINUX_THREADS 1
14977 _ACEOF
14978
14979
14980 cat >>confdefs.h <<\_ACEOF
14981 #define _REENTRANT 1
14982 _ACEOF
14983
14984         if test "${enable_parallel_mark}" = yes; then
14985
14986 cat >>confdefs.h <<\_ACEOF
14987 #define PARALLEL_MARK 1
14988 _ACEOF
14989
14990         fi
14991
14992 cat >>confdefs.h <<\_ACEOF
14993 #define THREAD_LOCAL_ALLOC 1
14994 _ACEOF
14995
14996         ;;
14997      *-*-linux*)
14998         cat >>confdefs.h <<\_ACEOF
14999 #define GC_LINUX_THREADS 1
15000 _ACEOF
15001
15002         cat >>confdefs.h <<\_ACEOF
15003 #define _REENTRANT 1
15004 _ACEOF
15005
15006         ;;
15007      *-*-aix*)
15008
15009 cat >>confdefs.h <<\_ACEOF
15010 #define GC_AIX_THREADS 1
15011 _ACEOF
15012
15013         cat >>confdefs.h <<\_ACEOF
15014 #define _REENTRANT 1
15015 _ACEOF
15016
15017         ;;
15018      *-*-hpux11*)
15019         { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15020 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15021
15022 cat >>confdefs.h <<\_ACEOF
15023 #define GC_HPUX_THREADS 1
15024 _ACEOF
15025
15026
15027 cat >>confdefs.h <<\_ACEOF
15028 #define _POSIX_C_SOURCE 199506L
15029 _ACEOF
15030
15031         if test "${enable_parallel_mark}" = yes; then
15032           cat >>confdefs.h <<\_ACEOF
15033 #define PARALLEL_MARK 1
15034 _ACEOF
15035
15036         fi
15037         cat >>confdefs.h <<\_ACEOF
15038 #define THREAD_LOCAL_ALLOC 1
15039 _ACEOF
15040
15041         THREADLIBS="-lpthread -lrt"
15042         # HPUX needs REENTRANT for the _r calls.
15043
15044 cat >>confdefs.h <<\_ACEOF
15045 #define _REENTRANT 1
15046 _ACEOF
15047
15048         ;;
15049      *-*-hpux10*)
15050         { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15051 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15052         ;;
15053       *-*-kfreebsd*-gnu)
15054        cat >>confdefs.h <<\_ACEOF
15055 #define GC_FREEBSD_THREADS 1
15056 _ACEOF
15057
15058        INCLUDES="$INCLUDES -pthread"
15059        THREADDLLIBS=-pthread
15060        cat >>confdefs.h <<\_ACEOF
15061 #define _REENTRANT 1
15062 _ACEOF
15063
15064          if test "${enable_parallel_mark}" = yes; then
15065          cat >>confdefs.h <<\_ACEOF
15066 #define PARALLEL_MARK 1
15067 _ACEOF
15068
15069        fi
15070        cat >>confdefs.h <<\_ACEOF
15071 #define THREAD_LOCAL_ALLOC 1
15072 _ACEOF
15073
15074
15075 cat >>confdefs.h <<\_ACEOF
15076 #define USE_COMPILER_TLS 1
15077 _ACEOF
15078
15079                ;;
15080      *-*-freebsd*)
15081         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15082 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
15083
15084 cat >>confdefs.h <<\_ACEOF
15085 #define GC_FREEBSD_THREADS 1
15086 _ACEOF
15087
15088         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15089         THREADLIBS=-pthread
15090         ;;
15091      *-*-solaris*)
15092
15093 cat >>confdefs.h <<\_ACEOF
15094 #define GC_SOLARIS_PTHREADS 1
15095 _ACEOF
15096
15097         # Need to use alternate thread library, otherwise gctest hangs
15098         # on Solaris 8.
15099         multi_os_directory=`$CC -print-multi-os-directory`
15100         THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
15101                     -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
15102         ;;
15103      *-*-irix*)
15104
15105 cat >>confdefs.h <<\_ACEOF
15106 #define GC_IRIX_THREADS 1
15107 _ACEOF
15108
15109         ;;
15110      *-*-cygwin*)
15111
15112 cat >>confdefs.h <<\_ACEOF
15113 #define GC_WIN32_THREADS 1
15114 _ACEOF
15115
15116         ;;
15117      *-*-darwin*)
15118
15119 cat >>confdefs.h <<\_ACEOF
15120 #define GC_DARWIN_THREADS 1
15121 _ACEOF
15122
15123         cat >>confdefs.h <<\_ACEOF
15124 #define THREAD_LOCAL_ALLOC 1
15125 _ACEOF
15126
15127         if test "${enable_parallel_mark}" = yes; then
15128           cat >>confdefs.h <<\_ACEOF
15129 #define PARALLEL_MARK 1
15130 _ACEOF
15131
15132         fi
15133         ;;
15134      *-*-osf*)
15135
15136 cat >>confdefs.h <<\_ACEOF
15137 #define GC_OSF1_THREADS 1
15138 _ACEOF
15139
15140         if test "${enable_parallel_mark}" = yes; then
15141           cat >>confdefs.h <<\_ACEOF
15142 #define PARALLEL_MARK 1
15143 _ACEOF
15144
15145           cat >>confdefs.h <<\_ACEOF
15146 #define THREAD_LOCAL_ALLOC 1
15147 _ACEOF
15148
15149           # May want to enable it in other cases, too.
15150           # Measurements havent yet been done.
15151         fi
15152         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15153         THREADLIBS="-lpthread -lrt"
15154         ;;
15155     esac
15156     ;;
15157  win32)
15158     cat >>confdefs.h <<\_ACEOF
15159 #define GC_WIN32_THREADS 1
15160 _ACEOF
15161
15162             ;;
15163  dgux386)
15164     THREADS=dgux386
15165 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
15166 echo "${ECHO_T}$THREADLIBS" >&6
15167     # Use pthread GCC  switch
15168     THREADLIBS=-pthread
15169     if test "${enable_parallel_mark}" = yes; then
15170         cat >>confdefs.h <<\_ACEOF
15171 #define PARALLEL_MARK 1
15172 _ACEOF
15173
15174     fi
15175     cat >>confdefs.h <<\_ACEOF
15176 #define THREAD_LOCAL_ALLOC 1
15177 _ACEOF
15178
15179
15180 cat >>confdefs.h <<\_ACEOF
15181 #define GC_DGUX386_THREADS 1
15182 _ACEOF
15183
15184
15185 cat >>confdefs.h <<\_ACEOF
15186 #define DGUX_THREADS 1
15187 _ACEOF
15188
15189     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15190     AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
15191     ;;
15192  aix)
15193     THREADS=posix
15194     THREADLIBS=-lpthread
15195     cat >>confdefs.h <<\_ACEOF
15196 #define GC_AIX_THREADS 1
15197 _ACEOF
15198
15199     cat >>confdefs.h <<\_ACEOF
15200 #define _REENTRANT 1
15201 _ACEOF
15202
15203     ;;
15204  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
15205     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
15206 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
15207    { (exit 1); exit 1; }; }
15208     ;;
15209  *)
15210     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
15211 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
15212    { (exit 1); exit 1; }; }
15213     ;;
15214 esac
15215
15216
15217 case "$host" in
15218    powerpc-*-darwin*)
15219       powerpc_darwin=true
15220       ;;
15221 esac
15222
15223
15224 if test x$powerpc_darwin = xtrue; then
15225   POWERPC_DARWIN_TRUE=
15226   POWERPC_DARWIN_FALSE='#'
15227 else
15228   POWERPC_DARWIN_TRUE='#'
15229   POWERPC_DARWIN_FALSE=
15230 fi
15231
15232
15233 # Darwin needs a few extra special tests to deal with variation in the
15234 # system headers.
15235 case "$host" in
15236   powerpc*-*-darwin*)
15237     echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
15238 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
15239 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 #include <mach/thread_status.h>
15249
15250 int
15251 main ()
15252 {
15253 static ppc_thread_state_t ac_aggr;
15254 if (ac_aggr.r0)
15255 return 0;
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262   (eval $ac_compile) 2>conftest.er1
15263   ac_status=$?
15264   grep -v '^ *+' conftest.er1 >conftest.err
15265   rm -f conftest.er1
15266   cat conftest.err >&5
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } &&
15269          { ac_try='test -z "$ac_c_werror_flag"
15270                          || test ! -s conftest.err'
15271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272   (eval $ac_try) 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; } &&
15276          { ac_try='test -s conftest.$ac_objext'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282   ac_cv_member_ppc_thread_state_t_r0=yes
15283 else
15284   echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293 #include <mach/thread_status.h>
15294
15295 int
15296 main ()
15297 {
15298 static ppc_thread_state_t ac_aggr;
15299 if (sizeof ac_aggr.r0)
15300 return 0;
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15307   (eval $ac_compile) 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } &&
15314          { ac_try='test -z "$ac_c_werror_flag"
15315                          || test ! -s conftest.err'
15316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317   (eval $ac_try) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; } &&
15321          { ac_try='test -s conftest.$ac_objext'
15322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323   (eval $ac_try) 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }; }; then
15327   ac_cv_member_ppc_thread_state_t_r0=yes
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332 ac_cv_member_ppc_thread_state_t_r0=no
15333 fi
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335 fi
15336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
15339 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
15340 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
15341
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAS_PPC_THREAD_STATE_R0 1
15344 _ACEOF
15345
15346 fi
15347
15348     echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
15349 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
15350 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353   cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359 #include <mach/thread_status.h>
15360
15361 int
15362 main ()
15363 {
15364 static ppc_thread_state_t ac_aggr;
15365 if (ac_aggr.__r0)
15366 return 0;
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373   (eval $ac_compile) 2>conftest.er1
15374   ac_status=$?
15375   grep -v '^ *+' conftest.er1 >conftest.err
15376   rm -f conftest.er1
15377   cat conftest.err >&5
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -z "$ac_c_werror_flag"
15381                          || test ! -s conftest.err'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; } &&
15387          { ac_try='test -s conftest.$ac_objext'
15388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389   (eval $ac_try) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; }; then
15393   ac_cv_member_ppc_thread_state_t___r0=yes
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 #include <mach/thread_status.h>
15405
15406 int
15407 main ()
15408 {
15409 static ppc_thread_state_t ac_aggr;
15410 if (sizeof ac_aggr.__r0)
15411 return 0;
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418   (eval $ac_compile) 2>conftest.er1
15419   ac_status=$?
15420   grep -v '^ *+' conftest.er1 >conftest.err
15421   rm -f conftest.er1
15422   cat conftest.err >&5
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } &&
15425          { ac_try='test -z "$ac_c_werror_flag"
15426                          || test ! -s conftest.err'
15427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428   (eval $ac_try) 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; } &&
15432          { ac_try='test -s conftest.$ac_objext'
15433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434   (eval $ac_try) 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; }; then
15438   ac_cv_member_ppc_thread_state_t___r0=yes
15439 else
15440   echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 ac_cv_member_ppc_thread_state_t___r0=no
15444 fi
15445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15446 fi
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448 fi
15449 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
15450 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
15451 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
15452
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAS_PPC_THREAD_STATE___R0 1
15455 _ACEOF
15456
15457 fi
15458
15459     echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
15460 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
15461 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
15462   echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464   cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h.  */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h.  */
15470 #include <mach/thread_status.h>
15471
15472 int
15473 main ()
15474 {
15475 static ppc_thread_state64_t ac_aggr;
15476 if (ac_aggr.r0)
15477 return 0;
15478   ;
15479   return 0;
15480 }
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484   (eval $ac_compile) 2>conftest.er1
15485   ac_status=$?
15486   grep -v '^ *+' conftest.er1 >conftest.err
15487   rm -f conftest.er1
15488   cat conftest.err >&5
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } &&
15491          { ac_try='test -z "$ac_c_werror_flag"
15492                          || test ! -s conftest.err'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest.$ac_objext'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   ac_cv_member_ppc_thread_state64_t_r0=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h.  */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h.  */
15515 #include <mach/thread_status.h>
15516
15517 int
15518 main ()
15519 {
15520 static ppc_thread_state64_t ac_aggr;
15521 if (sizeof ac_aggr.r0)
15522 return 0;
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529   (eval $ac_compile) 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } &&
15536          { ac_try='test -z "$ac_c_werror_flag"
15537                          || test ! -s conftest.err'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest.$ac_objext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549   ac_cv_member_ppc_thread_state64_t_r0=yes
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_cv_member_ppc_thread_state64_t_r0=no
15555 fi
15556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15557 fi
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559 fi
15560 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
15561 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
15562 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
15563
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAS_PPC_THREAD_STATE64_R0 1
15566 _ACEOF
15567
15568 fi
15569
15570     echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
15571 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
15572 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 #include <mach/thread_status.h>
15582
15583 int
15584 main ()
15585 {
15586 static ppc_thread_state64_t ac_aggr;
15587 if (ac_aggr.__r0)
15588 return 0;
15589   ;
15590   return 0;
15591 }
15592 _ACEOF
15593 rm -f conftest.$ac_objext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15595   (eval $ac_compile) 2>conftest.er1
15596   ac_status=$?
15597   grep -v '^ *+' conftest.er1 >conftest.err
15598   rm -f conftest.er1
15599   cat conftest.err >&5
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -z "$ac_c_werror_flag"
15603                          || test ! -s conftest.err'
15604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605   (eval $ac_try) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; } &&
15609          { ac_try='test -s conftest.$ac_objext'
15610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611   (eval $ac_try) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; }; then
15615   ac_cv_member_ppc_thread_state64_t___r0=yes
15616 else
15617   echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626 #include <mach/thread_status.h>
15627
15628 int
15629 main ()
15630 {
15631 static ppc_thread_state64_t ac_aggr;
15632 if (sizeof ac_aggr.__r0)
15633 return 0;
15634   ;
15635   return 0;
15636 }
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640   (eval $ac_compile) 2>conftest.er1
15641   ac_status=$?
15642   grep -v '^ *+' conftest.er1 >conftest.err
15643   rm -f conftest.er1
15644   cat conftest.err >&5
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } &&
15647          { ac_try='test -z "$ac_c_werror_flag"
15648                          || test ! -s conftest.err'
15649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650   (eval $ac_try) 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; } &&
15654          { ac_try='test -s conftest.$ac_objext'
15655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656   (eval $ac_try) 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; }; then
15660   ac_cv_member_ppc_thread_state64_t___r0=yes
15661 else
15662   echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665 ac_cv_member_ppc_thread_state64_t___r0=no
15666 fi
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 fi
15669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670 fi
15671 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
15672 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
15673 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
15674
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAS_PPC_THREAD_STATE64___R0 1
15677 _ACEOF
15678
15679 fi
15680
15681     ;;
15682   i?86*-*-darwin*)
15683     echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
15684 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
15685 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h.  */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h.  */
15694 #include <sys/cdefs.h>
15695       #include <mach/thread_status.h>
15696
15697 int
15698 main ()
15699 {
15700 static x86_thread_state32_t ac_aggr;
15701 if (ac_aggr.eax)
15702 return 0;
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 rm -f conftest.$ac_objext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709   (eval $ac_compile) 2>conftest.er1
15710   ac_status=$?
15711   grep -v '^ *+' conftest.er1 >conftest.err
15712   rm -f conftest.er1
15713   cat conftest.err >&5
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); } &&
15716          { ac_try='test -z "$ac_c_werror_flag"
15717                          || test ! -s conftest.err'
15718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719   (eval $ac_try) 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; } &&
15723          { ac_try='test -s conftest.$ac_objext'
15724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725   (eval $ac_try) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; }; then
15729   ac_cv_member_x86_thread_state32_t_eax=yes
15730 else
15731   echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 #include <sys/cdefs.h>
15741       #include <mach/thread_status.h>
15742
15743 int
15744 main ()
15745 {
15746 static x86_thread_state32_t ac_aggr;
15747 if (sizeof ac_aggr.eax)
15748 return 0;
15749   ;
15750   return 0;
15751 }
15752 _ACEOF
15753 rm -f conftest.$ac_objext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15755   (eval $ac_compile) 2>conftest.er1
15756   ac_status=$?
15757   grep -v '^ *+' conftest.er1 >conftest.err
15758   rm -f conftest.er1
15759   cat conftest.err >&5
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } &&
15762          { ac_try='test -z "$ac_c_werror_flag"
15763                          || test ! -s conftest.err'
15764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765   (eval $ac_try) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; } &&
15769          { ac_try='test -s conftest.$ac_objext'
15770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771   (eval $ac_try) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; }; then
15775   ac_cv_member_x86_thread_state32_t_eax=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_cv_member_x86_thread_state32_t_eax=no
15781 fi
15782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15783 fi
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15785 fi
15786 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15787 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15788 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15789
15790 cat >>confdefs.h <<\_ACEOF
15791 #define HAS_X86_THREAD_STATE32_EAX 1
15792 _ACEOF
15793
15794 fi
15795
15796     echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15797 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15798 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15799   echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801   cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 #include <sys/cdefs.h>
15808       #include <mach/thread_status.h>
15809
15810 int
15811 main ()
15812 {
15813 static x86_thread_state32_t ac_aggr;
15814 if (ac_aggr.__eax)
15815 return 0;
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822   (eval $ac_compile) 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } &&
15829          { ac_try='test -z "$ac_c_werror_flag"
15830                          || test ! -s conftest.err'
15831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832   (eval $ac_try) 2>&5
15833   ac_status=$?
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); }; } &&
15836          { ac_try='test -s conftest.$ac_objext'
15837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838   (eval $ac_try) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; }; then
15842   ac_cv_member_x86_thread_state32_t___eax=yes
15843 else
15844   echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15846
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 #include <sys/cdefs.h>
15854       #include <mach/thread_status.h>
15855
15856 int
15857 main ()
15858 {
15859 static x86_thread_state32_t ac_aggr;
15860 if (sizeof ac_aggr.__eax)
15861 return 0;
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 rm -f conftest.$ac_objext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15868   (eval $ac_compile) 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } &&
15875          { ac_try='test -z "$ac_c_werror_flag"
15876                          || test ! -s conftest.err'
15877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878   (eval $ac_try) 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); }; } &&
15882          { ac_try='test -s conftest.$ac_objext'
15883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884   (eval $ac_try) 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; }; then
15888   ac_cv_member_x86_thread_state32_t___eax=yes
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_cv_member_x86_thread_state32_t___eax=no
15894 fi
15895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15896 fi
15897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15898 fi
15899 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15900 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15901 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15902
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAS_X86_THREAD_STATE32___EAX 1
15905 _ACEOF
15906
15907 fi
15908
15909     ;;
15910   x86_64-*-darwin*)
15911     echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15912 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15913 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916   cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922 #include <sys/cdefs.h>
15923       #include <mach/thread_status.h>
15924
15925 int
15926 main ()
15927 {
15928 static x86_thread_state64_t ac_aggr;
15929 if (ac_aggr.rax)
15930 return 0;
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15937   (eval $ac_compile) 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag"
15945                          || test ! -s conftest.err'
15946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947   (eval $ac_try) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); }; } &&
15951          { ac_try='test -s conftest.$ac_objext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   ac_cv_member_x86_thread_state64_t_rax=yes
15958 else
15959   echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 #include <sys/cdefs.h>
15969       #include <mach/thread_status.h>
15970
15971 int
15972 main ()
15973 {
15974 static x86_thread_state64_t ac_aggr;
15975 if (sizeof ac_aggr.rax)
15976 return 0;
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983   (eval $ac_compile) 2>conftest.er1
15984   ac_status=$?
15985   grep -v '^ *+' conftest.er1 >conftest.err
15986   rm -f conftest.er1
15987   cat conftest.err >&5
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } &&
15990          { ac_try='test -z "$ac_c_werror_flag"
15991                          || test ! -s conftest.err'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; } &&
15997          { ac_try='test -s conftest.$ac_objext'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; }; then
16003   ac_cv_member_x86_thread_state64_t_rax=yes
16004 else
16005   echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 ac_cv_member_x86_thread_state64_t_rax=no
16009 fi
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011 fi
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013 fi
16014 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
16015 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
16016 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
16017
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAS_X86_THREAD_STATE64_RAX 1
16020 _ACEOF
16021
16022 fi
16023
16024     echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
16025 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
16026 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
16027   echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029   cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 #include <sys/cdefs.h>
16036       #include <mach/thread_status.h>
16037
16038 int
16039 main ()
16040 {
16041 static x86_thread_state64_t ac_aggr;
16042 if (ac_aggr.__rax)
16043 return 0;
16044   ;
16045   return 0;
16046 }
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16050   (eval $ac_compile) 2>conftest.er1
16051   ac_status=$?
16052   grep -v '^ *+' conftest.er1 >conftest.err
16053   rm -f conftest.er1
16054   cat conftest.err >&5
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); } &&
16057          { ac_try='test -z "$ac_c_werror_flag"
16058                          || test ! -s conftest.err'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; } &&
16064          { ac_try='test -s conftest.$ac_objext'
16065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066   (eval $ac_try) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; }; then
16070   ac_cv_member_x86_thread_state64_t___rax=yes
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 #include <sys/cdefs.h>
16082       #include <mach/thread_status.h>
16083
16084 int
16085 main ()
16086 {
16087 static x86_thread_state64_t ac_aggr;
16088 if (sizeof ac_aggr.__rax)
16089 return 0;
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096   (eval $ac_compile) 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -z "$ac_c_werror_flag"
16104                          || test ! -s conftest.err'
16105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106   (eval $ac_try) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest.$ac_objext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_member_x86_thread_state64_t___rax=yes
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_cv_member_x86_thread_state64_t___rax=no
16122 fi
16123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16124 fi
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 fi
16127 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
16128 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
16129 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
16130
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAS_X86_THREAD_STATE64___RAX 1
16133 _ACEOF
16134
16135 fi
16136
16137      ;;
16138   *) ;;
16139 esac
16140
16141 # We never want libdl on darwin. It is a fake libdl that just ends up making
16142 # dyld calls anyway
16143 case "$host" in
16144   *-*-darwin*) ;;
16145   *)
16146     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   ac_check_lib_save_LIBS=$LIBS
16152 LIBS="-ldl  $LIBS"
16153 if test x$gcc_no_link = xyes; then
16154   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16156    { (exit 1); exit 1; }; }
16157 fi
16158 cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h.  */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h.  */
16164
16165 /* Override any gcc2 internal prototype to avoid an error.  */
16166 #ifdef __cplusplus
16167 extern "C"
16168 #endif
16169 /* We use char because int might match the return type of a gcc2
16170    builtin and then its argument prototype would still apply.  */
16171 char dlopen ();
16172 int
16173 main ()
16174 {
16175 dlopen ();
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16182   (eval $ac_link) 2>conftest.er1
16183   ac_status=$?
16184   grep -v '^ *+' conftest.er1 >conftest.err
16185   rm -f conftest.er1
16186   cat conftest.err >&5
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); } &&
16189          { ac_try='test -z "$ac_c_werror_flag"
16190                          || test ! -s conftest.err'
16191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192   (eval $ac_try) 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; } &&
16196          { ac_try='test -s conftest$ac_exeext'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; }; then
16202   ac_cv_lib_dl_dlopen=yes
16203 else
16204   echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207 ac_cv_lib_dl_dlopen=no
16208 fi
16209 rm -f conftest.err conftest.$ac_objext \
16210       conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16212 fi
16213 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16214 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16215 if test $ac_cv_lib_dl_dlopen = yes; then
16216   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
16217 fi
16218
16219     ;;
16220 esac
16221
16222 # extra LD Flags which are required for targets
16223 case "${host}" in
16224   *-*-darwin*)
16225     extra_ldflags_libgc=-Wl,-single_module
16226     ;;
16227 esac
16228
16229
16230
16231
16232 target_all=libgcjgc.la
16233
16234
16235 TARGET_ECOS="no"
16236
16237 # Check whether --with-ecos or --without-ecos was given.
16238 if test "${with_ecos+set}" = set; then
16239   withval="$with_ecos"
16240   TARGET_ECOS="$with_ecos"
16241
16242 fi;
16243
16244 addobjs=
16245 addlibs=
16246 addincludes=
16247 addtests=
16248 case "$TARGET_ECOS" in
16249    no)
16250       ;;
16251    *)
16252
16253 cat >>confdefs.h <<\_ACEOF
16254 #define ECOS 1
16255 _ACEOF
16256
16257       AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
16258       addobjs="$addobjs ecos.lo"
16259       ;;
16260 esac
16261
16262 if test "${enable_cplusplus}" = yes; then
16263       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
16264       addtests="$addtests test_cpp"
16265 fi
16266
16267
16268
16269 if test "${enable_cplusplus}" = yes; then
16270   CPLUSPLUS_TRUE=
16271   CPLUSPLUS_FALSE='#'
16272 else
16273   CPLUSPLUS_TRUE='#'
16274   CPLUSPLUS_FALSE=
16275 fi
16276
16277
16278
16279
16280
16281
16282 # Configuration of shared libraries
16283 #
16284 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16286 # Check whether --enable-shared or --disable-shared was given.
16287 if test "${enable_shared+set}" = set; then
16288   enableval="$enable_shared"
16289   p=${PACKAGE-default}
16290     case $enableval in
16291     yes) enable_shared=yes ;;
16292     no) enable_shared=no ;;
16293     *)
16294       enable_shared=no
16295       # Look at the argument we got.  We use all the common list separators.
16296       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16297       for pkg in $enableval; do
16298         IFS="$lt_save_ifs"
16299         if test "X$pkg" = "X$p"; then
16300           enable_shared=yes
16301         fi
16302       done
16303       IFS="$lt_save_ifs"
16304       ;;
16305     esac
16306 else
16307   enable_shared=yes
16308 fi;
16309
16310
16311
16312
16313
16314
16315 case "$host" in
16316  alpha-*-openbsd*)
16317      enable_shared=no
16318      echo "$as_me:$LINENO: result: no" >&5
16319 echo "${ECHO_T}no" >&6
16320      ;;
16321  *)
16322      echo "$as_me:$LINENO: result: yes" >&5
16323 echo "${ECHO_T}yes" >&6
16324      ;;
16325 esac
16326
16327 # Checks for pthreads functions
16328 #
16329 oldLIBS="$LIBS"
16330 LIBS="$LIBS $THREADLIBS"
16331
16332 for ac_func in pthread_getattr_np
16333 do
16334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16335 echo "$as_me:$LINENO: checking for $ac_func" >&5
16336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16337 if eval "test \"\${$as_ac_var+set}\" = set"; then
16338   echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340   if test x$gcc_no_link = xyes; then
16341   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16342 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16343    { (exit 1); exit 1; }; }
16344 fi
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16353 #define $ac_func innocuous_$ac_func
16354
16355 /* System header to define __stub macros and hopefully few prototypes,
16356     which can conflict with char $ac_func (); below.
16357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16358     <limits.h> exists even on freestanding compilers.  */
16359
16360 #ifdef __STDC__
16361 # include <limits.h>
16362 #else
16363 # include <assert.h>
16364 #endif
16365
16366 #undef $ac_func
16367
16368 /* Override any gcc2 internal prototype to avoid an error.  */
16369 #ifdef __cplusplus
16370 extern "C"
16371 {
16372 #endif
16373 /* We use char because int might match the return type of a gcc2
16374    builtin and then its argument prototype would still apply.  */
16375 char $ac_func ();
16376 /* The GNU C library defines this for functions which it implements
16377     to always fail with ENOSYS.  Some functions are actually named
16378     something starting with __ and the normal name is an alias.  */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380 choke me
16381 #else
16382 char (*f) () = $ac_func;
16383 #endif
16384 #ifdef __cplusplus
16385 }
16386 #endif
16387
16388 int
16389 main ()
16390 {
16391 return f != $ac_func;
16392   ;
16393   return 0;
16394 }
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398   (eval $ac_link) 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -z "$ac_c_werror_flag"
16406                          || test ! -s conftest.err'
16407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408   (eval $ac_try) 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; } &&
16412          { ac_try='test -s conftest$ac_exeext'
16413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414   (eval $ac_try) 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; }; then
16418   eval "$as_ac_var=yes"
16419 else
16420   echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 eval "$as_ac_var=no"
16424 fi
16425 rm -f conftest.err conftest.$ac_objext \
16426       conftest$ac_exeext conftest.$ac_ext
16427 fi
16428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16430 if test `eval echo '${'$as_ac_var'}'` = yes; then
16431   cat >>confdefs.h <<_ACEOF
16432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16433 _ACEOF
16434
16435 fi
16436 done
16437
16438 LIBS="$oldLIBS"
16439
16440 # Configuration of machine-dependent code
16441 #
16442 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
16443 # ffi_closure_{alloc,free} which takes care of allocating trampolines
16444 # in executable memory.
16445 #
16446 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
16447 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
16448 machdep=
16449 case "$host" in
16450  alpha*-*-openbsd*)
16451     machdep="alpha_mach_dep.lo"
16452     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
16453        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
16454 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
16455     fi
16456     ;;
16457  alpha*-*-linux*)
16458     machdep="alpha_mach_dep.lo"
16459     ;;
16460  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
16461
16462 cat >>confdefs.h <<\_ACEOF
16463 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
16464 _ACEOF
16465
16466     ;;
16467  mipstx39-*-elf*)
16468     machdep="mips_ultrix_mach_dep.lo"
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define STACKBASE __stackbase
16472 _ACEOF
16473
16474
16475 cat >>confdefs.h <<\_ACEOF
16476 #define DATASTART_IS_ETEXT 1
16477 _ACEOF
16478
16479     ;;
16480  mips-dec-ultrix*)
16481     machdep="mips_ultrix_mach-dep.lo"
16482     ;;
16483  mips-nec-sysv*|mips-unknown-sysv*)
16484     ;;
16485  mips*-*-linux*)
16486     ;;
16487  mips-*-*)
16488     machdep="mips_sgi_mach_dep.lo"
16489     ;;
16490  sparc-*-netbsd*)
16491     machdep="sparc_netbsd_mach_dep.lo"
16492     ;;
16493  sparc-sun-solaris2.3)
16494     machdep="sparc_mach_dep.lo"
16495
16496 cat >>confdefs.h <<\_ACEOF
16497 #define SUNOS53_SHARED_LIB 1
16498 _ACEOF
16499
16500     ;;
16501  sparc*-sun-solaris2.*)
16502     machdep="sparc_mach_dep.lo"
16503     ;;
16504  ia64-*-*)
16505     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
16506     ;;
16507 esac
16508
16509 cat >>confdefs.h <<\_ACEOF
16510 #define NO_EXECUTE_PERMISSION 1
16511 _ACEOF
16512
16513 if test x"$machdep" = x; then
16514 echo "$as_me:$LINENO: result: $machdep" >&5
16515 echo "${ECHO_T}$machdep" >&6
16516    machdep="mach_dep.lo"
16517 fi
16518 addobjs="$addobjs $machdep"
16519
16520
16521
16522
16523
16524 #
16525 # Check for AViiON Machines running DGUX
16526 #
16527 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
16528 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
16529 ac_is_dgux=no
16530 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16531   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16532 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16533 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 fi
16536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16537 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16538 else
16539   # Is the header compilable?
16540 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16541 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548 $ac_includes_default
16549 #include <sys/dg_sys_info.h>
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553   (eval $ac_compile) 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -z "$ac_c_werror_flag"
16561                          || test ! -s conftest.err'
16562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563   (eval $ac_try) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); }; } &&
16567          { ac_try='test -s conftest.$ac_objext'
16568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569   (eval $ac_try) 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_header_compiler=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 ac_header_compiler=no
16579 fi
16580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16582 echo "${ECHO_T}$ac_header_compiler" >&6
16583
16584 # Is the header present?
16585 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16586 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593 #include <sys/dg_sys_info.h>
16594 _ACEOF
16595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16597   ac_status=$?
16598   grep -v '^ *+' conftest.er1 >conftest.err
16599   rm -f conftest.er1
16600   cat conftest.err >&5
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } >/dev/null; then
16603   if test -s conftest.err; then
16604     ac_cpp_err=$ac_c_preproc_warn_flag
16605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16606   else
16607     ac_cpp_err=
16608   fi
16609 else
16610   ac_cpp_err=yes
16611 fi
16612 if test -z "$ac_cpp_err"; then
16613   ac_header_preproc=yes
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618   ac_header_preproc=no
16619 fi
16620 rm -f conftest.err conftest.$ac_ext
16621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16622 echo "${ECHO_T}$ac_header_preproc" >&6
16623
16624 # So?  What about this header?
16625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16626   yes:no: )
16627     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16628 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16630 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16631     ac_header_preproc=yes
16632     ;;
16633   no:yes:* )
16634     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16639 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16640     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
16641 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16642     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16643 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16644     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16645 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16646     (
16647       cat <<\_ASBOX
16648 ## ------------------------------------------ ##
16649 ## Report this to the AC_PACKAGE_NAME lists.  ##
16650 ## ------------------------------------------ ##
16651 _ASBOX
16652     ) |
16653       sed "s/^/$as_me: WARNING:     /" >&2
16654     ;;
16655 esac
16656 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16657 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16658 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16659   echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16662 fi
16663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16664 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16665
16666 fi
16667 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16668   ac_is_dgux=yes;
16669 fi
16670
16671
16672
16673 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
16674 echo "${ECHO_T}$ac_is_dgux" >&6
16675     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16676 if test $ac_is_dgux = yes; then
16677     if test "$enable_full_debug" = "yes"; then
16678       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16679       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16680     else
16681       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16682       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16683     fi
16684
16685
16686 fi
16687
16688 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
16689 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
16690 case "$host" in
16691  *aix*)
16692     if test "$GCC" = yes; then
16693        echo "$as_me:$LINENO: result: yes" >&5
16694 echo "${ECHO_T}yes" >&6
16695        new_CFLAGS=
16696        for i in $CFLAGS; do
16697           case "$i" in
16698            -O*)
16699               ;;
16700            *)
16701               new_CFLAGS="$new_CFLAGS $i"
16702               ;;
16703           esac
16704        done
16705        CFLAGS="$new_CFLAGS"
16706     else
16707        echo "$as_me:$LINENO: result: no" >&5
16708 echo "${ECHO_T}no" >&6
16709     fi
16710     ;;
16711  *) echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6 ;;
16713 esac
16714
16715 MY_CFLAGS="$CFLAGS"
16716
16717
16718
16719 cat >>confdefs.h <<\_ACEOF
16720 #define SILENT 1
16721 _ACEOF
16722
16723
16724 cat >>confdefs.h <<\_ACEOF
16725 #define NO_SIGNALS 1
16726 _ACEOF
16727
16728
16729 cat >>confdefs.h <<\_ACEOF
16730 #define ALL_INTERIOR_POINTERS 1
16731 _ACEOF
16732
16733
16734
16735 cat >>confdefs.h <<\_ACEOF
16736 #define JAVA_FINALIZATION 1
16737 _ACEOF
16738
16739
16740 cat >>confdefs.h <<\_ACEOF
16741 #define GC_GCJ_SUPPORT 1
16742 _ACEOF
16743
16744
16745 cat >>confdefs.h <<\_ACEOF
16746 #define ATOMIC_UNCOLLECTABLE 1
16747 _ACEOF
16748
16749
16750 # Check whether --enable-gc-debug or --disable-gc-debug was given.
16751 if test "${enable_gc_debug+set}" = set; then
16752   enableval="$enable_gc_debug"
16753    if test "$enable_gc_debug" = "yes"; then
16754     { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16755 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16756
16757 cat >>confdefs.h <<\_ACEOF
16758 #define KEEP_BACK_PTRS 1
16759 _ACEOF
16760
16761
16762 cat >>confdefs.h <<\_ACEOF
16763 #define DBG_HDRS_ALL 1
16764 _ACEOF
16765
16766     case $host in
16767       ia64-*-linux* )
16768
16769 cat >>confdefs.h <<\_ACEOF
16770 #define MAKE_BACK_GRAPH 1
16771 _ACEOF
16772
16773       ;;
16774       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16775         cat >>confdefs.h <<\_ACEOF
16776 #define MAKE_BACK_GRAPH 1
16777 _ACEOF
16778
16779         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16780 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16781
16782 cat >>confdefs.h <<\_ACEOF
16783 #define SAVE_CALL_COUNT 8
16784 _ACEOF
16785
16786       ;;
16787       i345686-*-dgux*)
16788         cat >>confdefs.h <<\_ACEOF
16789 #define MAKE_BACK_GRAPH 1
16790 _ACEOF
16791
16792       ;;
16793     esac
16794   fi
16795 fi;
16796
16797 if test "${gc_use_mmap}" = "yes"; then
16798
16799 cat >>confdefs.h <<\_ACEOF
16800 #define USE_MMAP 1
16801 _ACEOF
16802
16803 fi
16804
16805 if test -n "$with_cross_host" &&
16806    test x"$with_cross_host" != x"no"; then
16807   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16808   toolexeclibdir='$(toolexecdir)/lib'
16809 else
16810   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16811   toolexeclibdir='$(libdir)'
16812 fi
16813 multi_os_directory=`$CC -print-multi-os-directory`
16814 case $multi_os_directory in
16815   .) ;; # Avoid trailing /.
16816   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16817 esac
16818
16819
16820
16821 if test "${multilib}" = "yes"; then
16822   multilib_arg="--enable-multilib"
16823 else
16824   multilib_arg=
16825 fi
16826
16827                     ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16828
16829
16830                               ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
16831
16832 cat >confcache <<\_ACEOF
16833 # This file is a shell script that caches the results of configure
16834 # tests run on this system so they can be shared between configure
16835 # scripts and configure runs, see configure's option --config-cache.
16836 # It is not useful on other systems.  If it contains results you don't
16837 # want to keep, you may remove or edit it.
16838 #
16839 # config.status only pays attention to the cache file if you give it
16840 # the --recheck option to rerun configure.
16841 #
16842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16844 # following values.
16845
16846 _ACEOF
16847
16848 # The following way of writing the cache mishandles newlines in values,
16849 # but we know of no workaround that is simple, portable, and efficient.
16850 # So, don't put newlines in cache variables' values.
16851 # Ultrix sh set writes to stderr and can't be redirected directly,
16852 # and sets the high bit in the cache file unless we assign to the vars.
16853 {
16854   (set) 2>&1 |
16855     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16856     *ac_space=\ *)
16857       # `set' does not quote correctly, so add quotes (double-quote
16858       # substitution turns \\\\ into \\, and sed turns \\ into \).
16859       sed -n \
16860         "s/'/'\\\\''/g;
16861           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16862       ;;
16863     *)
16864       # `set' quotes correctly as required by POSIX, so do not add quotes.
16865       sed -n \
16866         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16867       ;;
16868     esac;
16869 } |
16870   sed '
16871      t clear
16872      : clear
16873      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16874      t end
16875      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16876      : end' >>confcache
16877 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16878   if test -w $cache_file; then
16879     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16880     cat confcache >$cache_file
16881   else
16882     echo "not updating unwritable cache $cache_file"
16883   fi
16884 fi
16885 rm -f confcache
16886
16887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16888 # Let make expand exec_prefix.
16889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16890
16891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16893 # trailing colons and then remove the whole line if VPATH becomes empty
16894 # (actually we leave an empty line to preserve line numbers).
16895 if test "x$srcdir" = x.; then
16896   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16897 s/:*\$(srcdir):*/:/;
16898 s/:*\${srcdir}:*/:/;
16899 s/:*@srcdir@:*/:/;
16900 s/^\([^=]*=[     ]*\):*/\1/;
16901 s/:*$//;
16902 s/^[^=]*=[       ]*$//;
16903 }'
16904 fi
16905
16906 DEFS=-DHAVE_CONFIG_H
16907
16908 ac_libobjs=
16909 ac_ltlibobjs=
16910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16911   # 1. Remove the extension, and $U if already installed.
16912   ac_i=`echo "$ac_i" |
16913          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16914   # 2. Add them.
16915   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16916   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16917 done
16918 LIBOBJS=$ac_libobjs
16919
16920 LTLIBOBJS=$ac_ltlibobjs
16921
16922
16923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16924   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928    { (exit 1); exit 1; }; }
16929 fi
16930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16931   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935    { (exit 1); exit 1; }; }
16936 fi
16937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16938   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942    { (exit 1); exit 1; }; }
16943 fi
16944 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16945   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949    { (exit 1); exit 1; }; }
16950 fi
16951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16952   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956    { (exit 1); exit 1; }; }
16957 fi
16958 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16959   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963    { (exit 1); exit 1; }; }
16964 fi
16965 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16966   { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16967 Usually this means the macro was only invoked conditionally." >&5
16968 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16969 Usually this means the macro was only invoked conditionally." >&2;}
16970    { (exit 1); exit 1; }; }
16971 fi
16972
16973 : ${CONFIG_STATUS=./config.status}
16974 ac_clean_files_save=$ac_clean_files
16975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16978 cat >$CONFIG_STATUS <<_ACEOF
16979 #! $SHELL
16980 # Generated by $as_me.
16981 # Run this file to recreate the current configuration.
16982 # Compiler output produced by configure, useful for debugging
16983 # configure, is in config.log if it exists.
16984
16985 debug=false
16986 ac_cs_recheck=false
16987 ac_cs_silent=false
16988 SHELL=\${CONFIG_SHELL-$SHELL}
16989 _ACEOF
16990
16991 cat >>$CONFIG_STATUS <<\_ACEOF
16992 ## --------------------- ##
16993 ## M4sh Initialization.  ##
16994 ## --------------------- ##
16995
16996 # Be Bourne compatible
16997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16998   emulate sh
16999   NULLCMD=:
17000   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17001   # is contrary to our usage.  Disable this feature.
17002   alias -g '${1+"$@"}'='"$@"'
17003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17004   set -o posix
17005 fi
17006 DUALCASE=1; export DUALCASE # for MKS sh
17007
17008 # Support unset when possible.
17009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17010   as_unset=unset
17011 else
17012   as_unset=false
17013 fi
17014
17015
17016 # Work around bugs in pre-3.0 UWIN ksh.
17017 $as_unset ENV MAIL MAILPATH
17018 PS1='$ '
17019 PS2='> '
17020 PS4='+ '
17021
17022 # NLS nuisances.
17023 for as_var in \
17024   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17025   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17026   LC_TELEPHONE LC_TIME
17027 do
17028   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17029     eval $as_var=C; export $as_var
17030   else
17031     $as_unset $as_var
17032   fi
17033 done
17034
17035 # Required to use basename.
17036 if expr a : '\(a\)' >/dev/null 2>&1; then
17037   as_expr=expr
17038 else
17039   as_expr=false
17040 fi
17041
17042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17043   as_basename=basename
17044 else
17045   as_basename=false
17046 fi
17047
17048
17049 # Name of the executable.
17050 as_me=`$as_basename "$0" ||
17051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17052          X"$0" : 'X\(//\)$' \| \
17053          X"$0" : 'X\(/\)$' \| \
17054          .     : '\(.\)' 2>/dev/null ||
17055 echo X/"$0" |
17056     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17057           /^X\/\(\/\/\)$/{ s//\1/; q; }
17058           /^X\/\(\/\).*/{ s//\1/; q; }
17059           s/.*/./; q'`
17060
17061
17062 # PATH needs CR, and LINENO needs CR and PATH.
17063 # Avoid depending upon Character Ranges.
17064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17067 as_cr_digits='0123456789'
17068 as_cr_alnum=$as_cr_Letters$as_cr_digits
17069
17070 # The user is always right.
17071 if test "${PATH_SEPARATOR+set}" != set; then
17072   echo "#! /bin/sh" >conf$$.sh
17073   echo  "exit 0"   >>conf$$.sh
17074   chmod +x conf$$.sh
17075   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17076     PATH_SEPARATOR=';'
17077   else
17078     PATH_SEPARATOR=:
17079   fi
17080   rm -f conf$$.sh
17081 fi
17082
17083
17084   as_lineno_1=$LINENO
17085   as_lineno_2=$LINENO
17086   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17087   test "x$as_lineno_1" != "x$as_lineno_2" &&
17088   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17089   # Find who we are.  Look in the path if we contain no path at all
17090   # relative or not.
17091   case $0 in
17092     *[\\/]* ) as_myself=$0 ;;
17093     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $PATH
17095 do
17096   IFS=$as_save_IFS
17097   test -z "$as_dir" && as_dir=.
17098   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17099 done
17100
17101        ;;
17102   esac
17103   # We did not find ourselves, most probably we were run as `sh COMMAND'
17104   # in which case we are not to be found in the path.
17105   if test "x$as_myself" = x; then
17106     as_myself=$0
17107   fi
17108   if test ! -f "$as_myself"; then
17109     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17111    { (exit 1); exit 1; }; }
17112   fi
17113   case $CONFIG_SHELL in
17114   '')
17115     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17117 do
17118   IFS=$as_save_IFS
17119   test -z "$as_dir" && as_dir=.
17120   for as_base in sh bash ksh sh5; do
17121          case $as_dir in
17122          /*)
17123            if ("$as_dir/$as_base" -c '
17124   as_lineno_1=$LINENO
17125   as_lineno_2=$LINENO
17126   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17127   test "x$as_lineno_1" != "x$as_lineno_2" &&
17128   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17129              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17130              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17131              CONFIG_SHELL=$as_dir/$as_base
17132              export CONFIG_SHELL
17133              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17134            fi;;
17135          esac
17136        done
17137 done
17138 ;;
17139   esac
17140
17141   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17142   # uniformly replaced by the line number.  The first 'sed' inserts a
17143   # line-number line before each line; the second 'sed' does the real
17144   # work.  The second script uses 'N' to pair each line-number line
17145   # with the numbered line, and appends trailing '-' during
17146   # substitution so that $LINENO is not a special case at line end.
17147   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17148   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17149   sed '=' <$as_myself |
17150     sed '
17151       N
17152       s,$,-,
17153       : loop
17154       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17155       t loop
17156       s,-$,,
17157       s,^['$as_cr_digits']*\n,,
17158     ' >$as_me.lineno &&
17159   chmod +x $as_me.lineno ||
17160     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17162    { (exit 1); exit 1; }; }
17163
17164   # Don't try to exec as it changes $[0], causing all sort of problems
17165   # (the dirname of $[0] is not the place where we might find the
17166   # original and so on.  Autoconf is especially sensible to this).
17167   . ./$as_me.lineno
17168   # Exit status is that of the last command.
17169   exit
17170 }
17171
17172
17173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17174   *c*,-n*) ECHO_N= ECHO_C='
17175 ' ECHO_T='      ' ;;
17176   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17177   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17178 esac
17179
17180 if expr a : '\(a\)' >/dev/null 2>&1; then
17181   as_expr=expr
17182 else
17183   as_expr=false
17184 fi
17185
17186 rm -f conf$$ conf$$.exe conf$$.file
17187 echo >conf$$.file
17188 if ln -s conf$$.file conf$$ 2>/dev/null; then
17189   # We could just check for DJGPP; but this test a) works b) is more generic
17190   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17191   if test -f conf$$.exe; then
17192     # Don't use ln at all; we don't have any links
17193     as_ln_s='cp -p'
17194   else
17195     as_ln_s='ln -s'
17196   fi
17197 elif ln conf$$.file conf$$ 2>/dev/null; then
17198   as_ln_s=ln
17199 else
17200   as_ln_s='cp -p'
17201 fi
17202 rm -f conf$$ conf$$.exe conf$$.file
17203
17204 if mkdir -p . 2>/dev/null; then
17205   as_mkdir_p=:
17206 else
17207   test -d ./-p && rmdir ./-p
17208   as_mkdir_p=false
17209 fi
17210
17211 as_executable_p="test -f"
17212
17213 # Sed expression to map a string onto a valid CPP name.
17214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17215
17216 # Sed expression to map a string onto a valid variable name.
17217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17218
17219
17220 # IFS
17221 # We need space, tab and new line, in precisely that order.
17222 as_nl='
17223 '
17224 IFS="   $as_nl"
17225
17226 # CDPATH.
17227 $as_unset CDPATH
17228
17229 exec 6>&1
17230
17231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17232 # report actual input values of CONFIG_FILES etc. instead of their
17233 # values after options handling.  Logging --version etc. is OK.
17234 exec 5>>config.log
17235 {
17236   echo
17237   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17238 ## Running $as_me. ##
17239 _ASBOX
17240 } >&5
17241 cat >&5 <<_CSEOF
17242
17243 This file was extended by $as_me, which was
17244 generated by GNU Autoconf 2.59.  Invocation command line was
17245
17246   CONFIG_FILES    = $CONFIG_FILES
17247   CONFIG_HEADERS  = $CONFIG_HEADERS
17248   CONFIG_LINKS    = $CONFIG_LINKS
17249   CONFIG_COMMANDS = $CONFIG_COMMANDS
17250   $ $0 $@
17251
17252 _CSEOF
17253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17254 echo >&5
17255 _ACEOF
17256
17257 # Files that config.status was made for.
17258 if test -n "$ac_config_files"; then
17259   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17260 fi
17261
17262 if test -n "$ac_config_headers"; then
17263   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17264 fi
17265
17266 if test -n "$ac_config_links"; then
17267   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17268 fi
17269
17270 if test -n "$ac_config_commands"; then
17271   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17272 fi
17273
17274 cat >>$CONFIG_STATUS <<\_ACEOF
17275
17276 ac_cs_usage="\
17277 \`$as_me' instantiates files from templates according to the
17278 current configuration.
17279
17280 Usage: $0 [OPTIONS] [FILE]...
17281
17282   -h, --help       print this help, then exit
17283   -V, --version    print version number, then exit
17284   -q, --quiet      do not print progress messages
17285   -d, --debug      don't remove temporary files
17286       --recheck    update $as_me by reconfiguring in the same conditions
17287   --file=FILE[:TEMPLATE]
17288                    instantiate the configuration file FILE
17289   --header=FILE[:TEMPLATE]
17290                    instantiate the configuration header FILE
17291
17292 Configuration files:
17293 $config_files
17294
17295 Configuration headers:
17296 $config_headers
17297
17298 Configuration commands:
17299 $config_commands
17300
17301 Report bugs to <bug-autoconf@gnu.org>."
17302 _ACEOF
17303
17304 cat >>$CONFIG_STATUS <<_ACEOF
17305 ac_cs_version="\\
17306 config.status
17307 configured by $0, generated by GNU Autoconf 2.59,
17308   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17309
17310 Copyright (C) 2003 Free Software Foundation, Inc.
17311 This config.status script is free software; the Free Software Foundation
17312 gives unlimited permission to copy, distribute and modify it."
17313 srcdir=$srcdir
17314 INSTALL="$INSTALL"
17315 _ACEOF
17316
17317 cat >>$CONFIG_STATUS <<\_ACEOF
17318 # If no file are specified by the user, then we need to provide default
17319 # value.  By we need to know if files were specified by the user.
17320 ac_need_defaults=:
17321 while test $# != 0
17322 do
17323   case $1 in
17324   --*=*)
17325     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17326     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17327     ac_shift=:
17328     ;;
17329   -*)
17330     ac_option=$1
17331     ac_optarg=$2
17332     ac_shift=shift
17333     ;;
17334   *) # This is not an option, so the user has probably given explicit
17335      # arguments.
17336      ac_option=$1
17337      ac_need_defaults=false;;
17338   esac
17339
17340   case $ac_option in
17341   # Handling of the options.
17342 _ACEOF
17343 cat >>$CONFIG_STATUS <<\_ACEOF
17344   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17345     ac_cs_recheck=: ;;
17346   --version | --vers* | -V )
17347     echo "$ac_cs_version"; exit 0 ;;
17348   --he | --h)
17349     # Conflict between --help and --header
17350     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17351 Try \`$0 --help' for more information." >&5
17352 echo "$as_me: error: ambiguous option: $1
17353 Try \`$0 --help' for more information." >&2;}
17354    { (exit 1); exit 1; }; };;
17355   --help | --hel | -h )
17356     echo "$ac_cs_usage"; exit 0 ;;
17357   --debug | --d* | -d )
17358     debug=: ;;
17359   --file | --fil | --fi | --f )
17360     $ac_shift
17361     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17362     ac_need_defaults=false;;
17363   --header | --heade | --head | --hea )
17364     $ac_shift
17365     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17366     ac_need_defaults=false;;
17367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17368   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17369     ac_cs_silent=: ;;
17370
17371   # This is an error.
17372   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17373 Try \`$0 --help' for more information." >&5
17374 echo "$as_me: error: unrecognized option: $1
17375 Try \`$0 --help' for more information." >&2;}
17376    { (exit 1); exit 1; }; } ;;
17377
17378   *) ac_config_targets="$ac_config_targets $1" ;;
17379
17380   esac
17381   shift
17382 done
17383
17384 ac_configure_extra_args=
17385
17386 if $ac_cs_silent; then
17387   exec 6>/dev/null
17388   ac_configure_extra_args="$ac_configure_extra_args --silent"
17389 fi
17390
17391 _ACEOF
17392 cat >>$CONFIG_STATUS <<_ACEOF
17393 if \$ac_cs_recheck; then
17394   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17395   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17396 fi
17397
17398 _ACEOF
17399
17400 cat >>$CONFIG_STATUS <<_ACEOF
17401 #
17402 # INIT-COMMANDS section.
17403 #
17404
17405
17406 srcdir="$srcdir"
17407 host="$host"
17408 target="$target"
17409 with_multisubdir="$with_multisubdir"
17410 with_multisrctop="$with_multisrctop"
17411 with_target_subdir="$with_target_subdir"
17412 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17413 multi_basedir="$multi_basedir"
17414 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17415 CC="$CC"
17416 CXX="$CXX"
17417 GFORTRAN="$GFORTRAN"
17418 GCJ="$GCJ"
17419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17420
17421
17422 # The HP-UX ksh and POSIX shell print the target directory to stdout
17423 # if CDPATH is set.
17424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17425
17426 sed_quote_subst='$sed_quote_subst'
17427 double_quote_subst='$double_quote_subst'
17428 delay_variable_subst='$delay_variable_subst'
17429 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17430 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17431 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17432 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17433 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17434 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17435 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17436 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17437 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17438 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17439 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17440 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17441 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17442 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17443 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17444 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17445 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17446 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17447 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17448 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17449 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17450 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17451 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17452 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17453 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17454 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17455 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17456 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17457 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17458 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17459 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17460 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17461 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17462 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17463 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17464 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17465 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17466 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17467 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17468 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17469 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17470 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17471 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17473 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17475 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17476 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17477 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17478 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17479 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17480 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17481 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17482 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17483 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17484 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17485 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17486 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17487 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17488 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17489 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17490 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17491 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17492 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17493 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17494 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17495 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17496 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17497 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17498 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17499 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17500 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17501 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17502 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17503 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17504 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17505 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17506 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17507 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17508 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17509 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17510 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17511 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17512 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17513 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17514 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17515 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17516 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17517 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17518 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17519 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17520 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17521 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17522 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17523 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17524 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17525 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17526 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17527 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17528 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17529 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17530 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17531 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17532 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17533 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17534 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17535 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17536 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17537 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17538 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17539 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17540 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17541 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17542 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17543 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17544 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17545 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17546 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17547 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17548 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17549 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17550 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17551 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17552 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17553 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17561 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17563 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17564 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17565 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17566 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17567 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17568 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17569 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17570 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17571 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17572 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17573 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17574 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17575 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17576 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17577 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17578 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17579 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17580 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17581 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17582 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17583 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17584 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17585 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17586 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17587 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17588 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17589 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17590 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17591 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17592 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17593 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17594 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17595 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17596 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17597 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17598 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17599 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17600
17601 LTCC='$LTCC'
17602 LTCFLAGS='$LTCFLAGS'
17603 compiler='$compiler_DEFAULT'
17604
17605 # Quote evaled strings.
17606 for var in SED \
17607 GREP \
17608 EGREP \
17609 FGREP \
17610 LD \
17611 NM \
17612 LN_S \
17613 lt_SP2NL \
17614 lt_NL2SP \
17615 reload_flag \
17616 OBJDUMP \
17617 deplibs_check_method \
17618 file_magic_cmd \
17619 AR \
17620 AR_FLAGS \
17621 STRIP \
17622 RANLIB \
17623 CC \
17624 CFLAGS \
17625 compiler \
17626 lt_cv_sys_global_symbol_pipe \
17627 lt_cv_sys_global_symbol_to_cdecl \
17628 lt_cv_sys_global_symbol_to_c_name_address \
17629 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17630 SHELL \
17631 ECHO \
17632 lt_prog_compiler_no_builtin_flag \
17633 lt_prog_compiler_wl \
17634 lt_prog_compiler_pic \
17635 lt_prog_compiler_static \
17636 lt_cv_prog_compiler_c_o \
17637 need_locks \
17638 DSYMUTIL \
17639 NMEDIT \
17640 LIPO \
17641 OTOOL \
17642 OTOOL64 \
17643 shrext_cmds \
17644 export_dynamic_flag_spec \
17645 whole_archive_flag_spec \
17646 compiler_needs_object \
17647 with_gnu_ld \
17648 allow_undefined_flag \
17649 no_undefined_flag \
17650 hardcode_libdir_flag_spec \
17651 hardcode_libdir_flag_spec_ld \
17652 hardcode_libdir_separator \
17653 fix_srcfile_path \
17654 exclude_expsyms \
17655 include_expsyms \
17656 file_list_spec \
17657 variables_saved_for_relink \
17658 libname_spec \
17659 library_names_spec \
17660 soname_spec \
17661 finish_eval \
17662 old_striplib \
17663 striplib \
17664 compiler_lib_search_dirs \
17665 predep_objects \
17666 postdep_objects \
17667 predeps \
17668 postdeps \
17669 compiler_lib_search_path \
17670 LD_CXX \
17671 compiler_CXX \
17672 lt_prog_compiler_no_builtin_flag_CXX \
17673 lt_prog_compiler_wl_CXX \
17674 lt_prog_compiler_pic_CXX \
17675 lt_prog_compiler_static_CXX \
17676 lt_cv_prog_compiler_c_o_CXX \
17677 export_dynamic_flag_spec_CXX \
17678 whole_archive_flag_spec_CXX \
17679 compiler_needs_object_CXX \
17680 with_gnu_ld_CXX \
17681 allow_undefined_flag_CXX \
17682 no_undefined_flag_CXX \
17683 hardcode_libdir_flag_spec_CXX \
17684 hardcode_libdir_flag_spec_ld_CXX \
17685 hardcode_libdir_separator_CXX \
17686 fix_srcfile_path_CXX \
17687 exclude_expsyms_CXX \
17688 include_expsyms_CXX \
17689 file_list_spec_CXX \
17690 compiler_lib_search_dirs_CXX \
17691 predep_objects_CXX \
17692 postdep_objects_CXX \
17693 predeps_CXX \
17694 postdeps_CXX \
17695 compiler_lib_search_path_CXX; do
17696     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17697     *[\\\\\\\`\\"\\\$]*)
17698       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17699       ;;
17700     *)
17701       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17702       ;;
17703     esac
17704 done
17705
17706 # Double-quote double-evaled strings.
17707 for var in reload_cmds \
17708 old_postinstall_cmds \
17709 old_postuninstall_cmds \
17710 old_archive_cmds \
17711 extract_expsyms_cmds \
17712 old_archive_from_new_cmds \
17713 old_archive_from_expsyms_cmds \
17714 archive_cmds \
17715 archive_expsym_cmds \
17716 module_cmds \
17717 module_expsym_cmds \
17718 export_symbols_cmds \
17719 prelink_cmds \
17720 postinstall_cmds \
17721 postuninstall_cmds \
17722 finish_cmds \
17723 sys_lib_search_path_spec \
17724 sys_lib_dlsearch_path_spec \
17725 old_archive_cmds_CXX \
17726 old_archive_from_new_cmds_CXX \
17727 old_archive_from_expsyms_cmds_CXX \
17728 archive_cmds_CXX \
17729 archive_expsym_cmds_CXX \
17730 module_cmds_CXX \
17731 module_expsym_cmds_CXX \
17732 export_symbols_cmds_CXX \
17733 prelink_cmds_CXX; do
17734     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17735     *[\\\\\\\`\\"\\\$]*)
17736       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17737       ;;
17738     *)
17739       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17740       ;;
17741     esac
17742 done
17743
17744 # Fix-up fallback echo if it was mangled by the above quoting rules.
17745 case \$lt_ECHO in
17746 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17747   ;;
17748 esac
17749
17750 ac_aux_dir='$ac_aux_dir'
17751 xsi_shell='$xsi_shell'
17752 lt_shell_append='$lt_shell_append'
17753
17754 # See if we are running on zsh, and set the options which allow our
17755 # commands through without removal of \ escapes INIT.
17756 if test -n "\${ZSH_VERSION+set}" ; then
17757    setopt NO_GLOB_SUBST
17758 fi
17759
17760
17761     PACKAGE='$PACKAGE'
17762     VERSION='$VERSION'
17763     TIMESTAMP='$TIMESTAMP'
17764     RM='$RM'
17765     ofile='$ofile'
17766
17767
17768
17769
17770
17771
17772 _ACEOF
17773
17774
17775
17776 cat >>$CONFIG_STATUS <<\_ACEOF
17777 for ac_config_target in $ac_config_targets
17778 do
17779   case "$ac_config_target" in
17780   # Handling of arguments.
17781   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17782   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17783   "threads.mk" ) CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
17784   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17785   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17786   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17787   "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17788   "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17789   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17790 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17791    { (exit 1); exit 1; }; };;
17792   esac
17793 done
17794
17795 # If the user did not use the arguments to specify the items to instantiate,
17796 # then the envvar interface is used.  Set only those that are not.
17797 # We use the long form for the default assignment because of an extremely
17798 # bizarre bug on SunOS 4.1.3.
17799 if $ac_need_defaults; then
17800   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17801   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17802   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17803 fi
17804
17805 # Have a temporary directory for convenience.  Make it in the build tree
17806 # simply because there is no reason to put it here, and in addition,
17807 # creating and moving files from /tmp can sometimes cause problems.
17808 # Create a temporary directory, and hook for its removal unless debugging.
17809 $debug ||
17810 {
17811   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17812   trap '{ (exit 1); exit 1; }' 1 2 13 15
17813 }
17814
17815 # Create a (secure) tmp directory for tmp files.
17816
17817 {
17818   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17819   test -n "$tmp" && test -d "$tmp"
17820 }  ||
17821 {
17822   tmp=./confstat$$-$RANDOM
17823   (umask 077 && mkdir $tmp)
17824 } ||
17825 {
17826    echo "$me: cannot create a temporary directory in ." >&2
17827    { (exit 1); exit 1; }
17828 }
17829
17830 _ACEOF
17831
17832 cat >>$CONFIG_STATUS <<_ACEOF
17833
17834 #
17835 # CONFIG_FILES section.
17836 #
17837
17838 # No need to generate the scripts if there are no CONFIG_FILES.
17839 # This happens for instance when ./config.status config.h
17840 if test -n "\$CONFIG_FILES"; then
17841   # Protect against being on the right side of a sed subst in config.status.
17842   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17843    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17844 s,@SHELL@,$SHELL,;t t
17845 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17846 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17847 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17848 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17849 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17850 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17851 s,@exec_prefix@,$exec_prefix,;t t
17852 s,@prefix@,$prefix,;t t
17853 s,@program_transform_name@,$program_transform_name,;t t
17854 s,@bindir@,$bindir,;t t
17855 s,@sbindir@,$sbindir,;t t
17856 s,@libexecdir@,$libexecdir,;t t
17857 s,@datadir@,$datadir,;t t
17858 s,@sysconfdir@,$sysconfdir,;t t
17859 s,@sharedstatedir@,$sharedstatedir,;t t
17860 s,@localstatedir@,$localstatedir,;t t
17861 s,@libdir@,$libdir,;t t
17862 s,@includedir@,$includedir,;t t
17863 s,@oldincludedir@,$oldincludedir,;t t
17864 s,@infodir@,$infodir,;t t
17865 s,@mandir@,$mandir,;t t
17866 s,@build_alias@,$build_alias,;t t
17867 s,@host_alias@,$host_alias,;t t
17868 s,@target_alias@,$target_alias,;t t
17869 s,@DEFS@,$DEFS,;t t
17870 s,@ECHO_C@,$ECHO_C,;t t
17871 s,@ECHO_N@,$ECHO_N,;t t
17872 s,@ECHO_T@,$ECHO_T,;t t
17873 s,@LIBS@,$LIBS,;t t
17874 s,@multi_basedir@,$multi_basedir,;t t
17875 s,@build@,$build,;t t
17876 s,@build_cpu@,$build_cpu,;t t
17877 s,@build_vendor@,$build_vendor,;t t
17878 s,@build_os@,$build_os,;t t
17879 s,@host@,$host,;t t
17880 s,@host_cpu@,$host_cpu,;t t
17881 s,@host_vendor@,$host_vendor,;t t
17882 s,@host_os@,$host_os,;t t
17883 s,@target@,$target,;t t
17884 s,@target_cpu@,$target_cpu,;t t
17885 s,@target_vendor@,$target_vendor,;t t
17886 s,@target_os@,$target_os,;t t
17887 s,@target_noncanonical@,$target_noncanonical,;t t
17888 s,@mkinstalldirs@,$mkinstalldirs,;t t
17889 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17890 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17891 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17892 s,@CYGPATH_W@,$CYGPATH_W,;t t
17893 s,@PACKAGE@,$PACKAGE,;t t
17894 s,@VERSION@,$VERSION,;t t
17895 s,@ACLOCAL@,$ACLOCAL,;t t
17896 s,@AUTOCONF@,$AUTOCONF,;t t
17897 s,@AUTOMAKE@,$AUTOMAKE,;t t
17898 s,@AUTOHEADER@,$AUTOHEADER,;t t
17899 s,@MAKEINFO@,$MAKEINFO,;t t
17900 s,@install_sh@,$install_sh,;t t
17901 s,@STRIP@,$STRIP,;t t
17902 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17903 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17904 s,@mkdir_p@,$mkdir_p,;t t
17905 s,@AWK@,$AWK,;t t
17906 s,@SET_MAKE@,$SET_MAKE,;t t
17907 s,@am__leading_dot@,$am__leading_dot,;t t
17908 s,@AMTAR@,$AMTAR,;t t
17909 s,@am__tar@,$am__tar,;t t
17910 s,@am__untar@,$am__untar,;t t
17911 s,@CC@,$CC,;t t
17912 s,@ac_ct_CC@,$ac_ct_CC,;t t
17913 s,@EXEEXT@,$EXEEXT,;t t
17914 s,@OBJEXT@,$OBJEXT,;t t
17915 s,@DEPDIR@,$DEPDIR,;t t
17916 s,@am__include@,$am__include,;t t
17917 s,@am__quote@,$am__quote,;t t
17918 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17919 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17920 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17921 s,@CCDEPMODE@,$CCDEPMODE,;t t
17922 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17923 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17924 s,@CXX@,$CXX,;t t
17925 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17926 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17927 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17928 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17929 s,@CFLAGS@,$CFLAGS,;t t
17930 s,@CXXFLAGS@,$CXXFLAGS,;t t
17931 s,@CCAS@,$CCAS,;t t
17932 s,@CCASFLAGS@,$CCASFLAGS,;t t
17933 s,@AS@,$AS,;t t
17934 s,@ac_ct_AS@,$ac_ct_AS,;t t
17935 s,@AR@,$AR,;t t
17936 s,@ac_ct_AR@,$ac_ct_AR,;t t
17937 s,@RANLIB@,$RANLIB,;t t
17938 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17939 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17940 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17941 s,@MAINT@,$MAINT,;t t
17942 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17943 s,@LIBTOOL@,$LIBTOOL,;t t
17944 s,@SED@,$SED,;t t
17945 s,@EGREP@,$EGREP,;t t
17946 s,@FGREP@,$FGREP,;t t
17947 s,@GREP@,$GREP,;t t
17948 s,@LD@,$LD,;t t
17949 s,@DUMPBIN@,$DUMPBIN,;t t
17950 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17951 s,@NM@,$NM,;t t
17952 s,@LN_S@,$LN_S,;t t
17953 s,@OBJDUMP@,$OBJDUMP,;t t
17954 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17955 s,@lt_ECHO@,$lt_ECHO,;t t
17956 s,@DSYMUTIL@,$DSYMUTIL,;t t
17957 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17958 s,@NMEDIT@,$NMEDIT,;t t
17959 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17960 s,@LIPO@,$LIPO,;t t
17961 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17962 s,@OTOOL@,$OTOOL,;t t
17963 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17964 s,@OTOOL64@,$OTOOL64,;t t
17965 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17966 s,@CPP@,$CPP,;t t
17967 s,@CPPFLAGS@,$CPPFLAGS,;t t
17968 s,@LDFLAGS@,$LDFLAGS,;t t
17969 s,@CXXCPP@,$CXXCPP,;t t
17970 s,@THREADLIBS@,$THREADLIBS,;t t
17971 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17972 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17973 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17974 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17975 s,@target_all@,$target_all,;t t
17976 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17977 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17978 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17979 s,@addobjs@,$addobjs,;t t
17980 s,@addincludes@,$addincludes,;t t
17981 s,@addlibs@,$addlibs,;t t
17982 s,@addtests@,$addtests,;t t
17983 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17984 s,@toolexecdir@,$toolexecdir,;t t
17985 s,@toolexeclibdir@,$toolexeclibdir,;t t
17986 s,@LIBOBJS@,$LIBOBJS,;t t
17987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17988 CEOF
17989
17990 _ACEOF
17991
17992   cat >>$CONFIG_STATUS <<\_ACEOF
17993   # Split the substitutions into bite-sized pieces for seds with
17994   # small command number limits, like on Digital OSF/1 and HP-UX.
17995   ac_max_sed_lines=48
17996   ac_sed_frag=1 # Number of current file.
17997   ac_beg=1 # First line for current file.
17998   ac_end=$ac_max_sed_lines # Line after last line for current file.
17999   ac_more_lines=:
18000   ac_sed_cmds=
18001   while $ac_more_lines; do
18002     if test $ac_beg -gt 1; then
18003       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18004     else
18005       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18006     fi
18007     if test ! -s $tmp/subs.frag; then
18008       ac_more_lines=false
18009     else
18010       # The purpose of the label and of the branching condition is to
18011       # speed up the sed processing (if there are no `@' at all, there
18012       # is no need to browse any of the substitutions).
18013       # These are the two extra sed commands mentioned above.
18014       (echo ':t
18015   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18016       if test -z "$ac_sed_cmds"; then
18017         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18018       else
18019         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18020       fi
18021       ac_sed_frag=`expr $ac_sed_frag + 1`
18022       ac_beg=$ac_end
18023       ac_end=`expr $ac_end + $ac_max_sed_lines`
18024     fi
18025   done
18026   if test -z "$ac_sed_cmds"; then
18027     ac_sed_cmds=cat
18028   fi
18029 fi # test -n "$CONFIG_FILES"
18030
18031 _ACEOF
18032 cat >>$CONFIG_STATUS <<\_ACEOF
18033 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18034   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18035   case $ac_file in
18036   - | *:- | *:-:* ) # input from stdin
18037         cat >$tmp/stdin
18038         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18039         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18040   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18041         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18042   * )   ac_file_in=$ac_file.in ;;
18043   esac
18044
18045   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18046   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18048          X"$ac_file" : 'X\(//\)[^/]' \| \
18049          X"$ac_file" : 'X\(//\)$' \| \
18050          X"$ac_file" : 'X\(/\)' \| \
18051          .     : '\(.\)' 2>/dev/null ||
18052 echo X"$ac_file" |
18053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18054           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18055           /^X\(\/\/\)$/{ s//\1/; q; }
18056           /^X\(\/\).*/{ s//\1/; q; }
18057           s/.*/./; q'`
18058   { if $as_mkdir_p; then
18059     mkdir -p "$ac_dir"
18060   else
18061     as_dir="$ac_dir"
18062     as_dirs=
18063     while test ! -d "$as_dir"; do
18064       as_dirs="$as_dir $as_dirs"
18065       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18067          X"$as_dir" : 'X\(//\)[^/]' \| \
18068          X"$as_dir" : 'X\(//\)$' \| \
18069          X"$as_dir" : 'X\(/\)' \| \
18070          .     : '\(.\)' 2>/dev/null ||
18071 echo X"$as_dir" |
18072     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18073           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18074           /^X\(\/\/\)$/{ s//\1/; q; }
18075           /^X\(\/\).*/{ s//\1/; q; }
18076           s/.*/./; q'`
18077     done
18078     test ! -n "$as_dirs" || mkdir $as_dirs
18079   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18080 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18081    { (exit 1); exit 1; }; }; }
18082
18083   ac_builddir=.
18084
18085 if test "$ac_dir" != .; then
18086   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18087   # A "../" for each directory in $ac_dir_suffix.
18088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18089 else
18090   ac_dir_suffix= ac_top_builddir=
18091 fi
18092
18093 case $srcdir in
18094   .)  # No --srcdir option.  We are building in place.
18095     ac_srcdir=.
18096     if test -z "$ac_top_builddir"; then
18097        ac_top_srcdir=.
18098     else
18099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18100     fi ;;
18101   [\\/]* | ?:[\\/]* )  # Absolute path.
18102     ac_srcdir=$srcdir$ac_dir_suffix;
18103     ac_top_srcdir=$srcdir ;;
18104   *) # Relative path.
18105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18107 esac
18108
18109 # Do not use `cd foo && pwd` to compute absolute paths, because
18110 # the directories may not exist.
18111 case `pwd` in
18112 .) ac_abs_builddir="$ac_dir";;
18113 *)
18114   case "$ac_dir" in
18115   .) ac_abs_builddir=`pwd`;;
18116   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18117   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18118   esac;;
18119 esac
18120 case $ac_abs_builddir in
18121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18122 *)
18123   case ${ac_top_builddir}. in
18124   .) ac_abs_top_builddir=$ac_abs_builddir;;
18125   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18126   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18127   esac;;
18128 esac
18129 case $ac_abs_builddir in
18130 .) ac_abs_srcdir=$ac_srcdir;;
18131 *)
18132   case $ac_srcdir in
18133   .) ac_abs_srcdir=$ac_abs_builddir;;
18134   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18135   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18136   esac;;
18137 esac
18138 case $ac_abs_builddir in
18139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18140 *)
18141   case $ac_top_srcdir in
18142   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18143   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18144   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18145   esac;;
18146 esac
18147
18148
18149   case $INSTALL in
18150   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18151   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18152   esac
18153
18154   if test x"$ac_file" != x-; then
18155     { echo "$as_me:$LINENO: creating $ac_file" >&5
18156 echo "$as_me: creating $ac_file" >&6;}
18157     rm -f "$ac_file"
18158   fi
18159   # Let's still pretend it is `configure' which instantiates (i.e., don't
18160   # use $as_me), people would be surprised to read:
18161   #    /* config.h.  Generated by config.status.  */
18162   if test x"$ac_file" = x-; then
18163     configure_input=
18164   else
18165     configure_input="$ac_file.  "
18166   fi
18167   configure_input=$configure_input"Generated from `echo $ac_file_in |
18168                                      sed 's,.*/,,'` by configure."
18169
18170   # First look for the input files in the build tree, otherwise in the
18171   # src tree.
18172   ac_file_inputs=`IFS=:
18173     for f in $ac_file_in; do
18174       case $f in
18175       -) echo $tmp/stdin ;;
18176       [\\/$]*)
18177          # Absolute (can't be DOS-style, as IFS=:)
18178          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18179 echo "$as_me: error: cannot find input file: $f" >&2;}
18180    { (exit 1); exit 1; }; }
18181          echo "$f";;
18182       *) # Relative
18183          if test -f "$f"; then
18184            # Build tree
18185            echo "$f"
18186          elif test -f "$srcdir/$f"; then
18187            # Source tree
18188            echo "$srcdir/$f"
18189          else
18190            # /dev/null tree
18191            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18192 echo "$as_me: error: cannot find input file: $f" >&2;}
18193    { (exit 1); exit 1; }; }
18194          fi;;
18195       esac
18196     done` || { (exit 1); exit 1; }
18197 _ACEOF
18198 cat >>$CONFIG_STATUS <<_ACEOF
18199   sed "$ac_vpsub
18200 $extrasub
18201 _ACEOF
18202 cat >>$CONFIG_STATUS <<\_ACEOF
18203 :t
18204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18205 s,@configure_input@,$configure_input,;t t
18206 s,@srcdir@,$ac_srcdir,;t t
18207 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18208 s,@top_srcdir@,$ac_top_srcdir,;t t
18209 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18210 s,@builddir@,$ac_builddir,;t t
18211 s,@abs_builddir@,$ac_abs_builddir,;t t
18212 s,@top_builddir@,$ac_top_builddir,;t t
18213 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18214 s,@INSTALL@,$ac_INSTALL,;t t
18215 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18216   rm -f $tmp/stdin
18217   if test x"$ac_file" != x-; then
18218     mv $tmp/out $ac_file
18219   else
18220     cat $tmp/out
18221     rm -f $tmp/out
18222   fi
18223
18224 done
18225 _ACEOF
18226 cat >>$CONFIG_STATUS <<\_ACEOF
18227
18228 #
18229 # CONFIG_HEADER section.
18230 #
18231
18232 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18233 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18234 #
18235 # ac_d sets the value in "#define NAME VALUE" lines.
18236 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18237 ac_dB='[         ].*$,\1#\2'
18238 ac_dC=' '
18239 ac_dD=',;t'
18240 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18241 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18242 ac_uB='$,\1#\2define\3'
18243 ac_uC=' '
18244 ac_uD=',;t'
18245
18246 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18247   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18248   case $ac_file in
18249   - | *:- | *:-:* ) # input from stdin
18250         cat >$tmp/stdin
18251         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18252         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18253   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18254         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18255   * )   ac_file_in=$ac_file.in ;;
18256   esac
18257
18258   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18259 echo "$as_me: creating $ac_file" >&6;}
18260
18261   # First look for the input files in the build tree, otherwise in the
18262   # src tree.
18263   ac_file_inputs=`IFS=:
18264     for f in $ac_file_in; do
18265       case $f in
18266       -) echo $tmp/stdin ;;
18267       [\\/$]*)
18268          # Absolute (can't be DOS-style, as IFS=:)
18269          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18270 echo "$as_me: error: cannot find input file: $f" >&2;}
18271    { (exit 1); exit 1; }; }
18272          # Do quote $f, to prevent DOS paths from being IFS'd.
18273          echo "$f";;
18274       *) # Relative
18275          if test -f "$f"; then
18276            # Build tree
18277            echo "$f"
18278          elif test -f "$srcdir/$f"; then
18279            # Source tree
18280            echo "$srcdir/$f"
18281          else
18282            # /dev/null tree
18283            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18284 echo "$as_me: error: cannot find input file: $f" >&2;}
18285    { (exit 1); exit 1; }; }
18286          fi;;
18287       esac
18288     done` || { (exit 1); exit 1; }
18289   # Remove the trailing spaces.
18290   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18291
18292 _ACEOF
18293
18294 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18295 # `conftest.undefs', that substitutes the proper values into
18296 # config.h.in to produce config.h.  The first handles `#define'
18297 # templates, and the second `#undef' templates.
18298 # And first: Protect against being on the right side of a sed subst in
18299 # config.status.  Protect against being in an unquoted here document
18300 # in config.status.
18301 rm -f conftest.defines conftest.undefs
18302 # Using a here document instead of a string reduces the quoting nightmare.
18303 # Putting comments in sed scripts is not portable.
18304 #
18305 # `end' is used to avoid that the second main sed command (meant for
18306 # 0-ary CPP macros) applies to n-ary macro definitions.
18307 # See the Autoconf documentation for `clear'.
18308 cat >confdef2sed.sed <<\_ACEOF
18309 s/[\\&,]/\\&/g
18310 s,[\\$`],\\&,g
18311 t clear
18312 : clear
18313 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18314 t end
18315 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18316 : end
18317 _ACEOF
18318 # If some macros were called several times there might be several times
18319 # the same #defines, which is useless.  Nevertheless, we may not want to
18320 # sort them, since we want the *last* AC-DEFINE to be honored.
18321 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18322 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18323 rm -f confdef2sed.sed
18324
18325 # This sed command replaces #undef with comments.  This is necessary, for
18326 # example, in the case of _POSIX_SOURCE, which is predefined and required
18327 # on some systems where configure will not decide to define it.
18328 cat >>conftest.undefs <<\_ACEOF
18329 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18330 _ACEOF
18331
18332 # Break up conftest.defines because some shells have a limit on the size
18333 # of here documents, and old seds have small limits too (100 cmds).
18334 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18335 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18336 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18337 echo '  :' >>$CONFIG_STATUS
18338 rm -f conftest.tail
18339 while grep . conftest.defines >/dev/null
18340 do
18341   # Write a limited-size here document to $tmp/defines.sed.
18342   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18343   # Speed up: don't consider the non `#define' lines.
18344   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18345   # Work around the forget-to-reset-the-flag bug.
18346   echo 't clr' >>$CONFIG_STATUS
18347   echo ': clr' >>$CONFIG_STATUS
18348   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18349   echo 'CEOF
18350   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18351   rm -f $tmp/in
18352   mv $tmp/out $tmp/in
18353 ' >>$CONFIG_STATUS
18354   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18355   rm -f conftest.defines
18356   mv conftest.tail conftest.defines
18357 done
18358 rm -f conftest.defines
18359 echo '  fi # grep' >>$CONFIG_STATUS
18360 echo >>$CONFIG_STATUS
18361
18362 # Break up conftest.undefs because some shells have a limit on the size
18363 # of here documents, and old seds have small limits too (100 cmds).
18364 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18365 rm -f conftest.tail
18366 while grep . conftest.undefs >/dev/null
18367 do
18368   # Write a limited-size here document to $tmp/undefs.sed.
18369   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18370   # Speed up: don't consider the non `#undef'
18371   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18372   # Work around the forget-to-reset-the-flag bug.
18373   echo 't clr' >>$CONFIG_STATUS
18374   echo ': clr' >>$CONFIG_STATUS
18375   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18376   echo 'CEOF
18377   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18378   rm -f $tmp/in
18379   mv $tmp/out $tmp/in
18380 ' >>$CONFIG_STATUS
18381   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18382   rm -f conftest.undefs
18383   mv conftest.tail conftest.undefs
18384 done
18385 rm -f conftest.undefs
18386
18387 cat >>$CONFIG_STATUS <<\_ACEOF
18388   # Let's still pretend it is `configure' which instantiates (i.e., don't
18389   # use $as_me), people would be surprised to read:
18390   #    /* config.h.  Generated by config.status.  */
18391   if test x"$ac_file" = x-; then
18392     echo "/* Generated by configure.  */" >$tmp/config.h
18393   else
18394     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18395   fi
18396   cat $tmp/in >>$tmp/config.h
18397   rm -f $tmp/in
18398   if test x"$ac_file" != x-; then
18399     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18400       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18401 echo "$as_me: $ac_file is unchanged" >&6;}
18402     else
18403       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18405          X"$ac_file" : 'X\(//\)[^/]' \| \
18406          X"$ac_file" : 'X\(//\)$' \| \
18407          X"$ac_file" : 'X\(/\)' \| \
18408          .     : '\(.\)' 2>/dev/null ||
18409 echo X"$ac_file" |
18410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18412           /^X\(\/\/\)$/{ s//\1/; q; }
18413           /^X\(\/\).*/{ s//\1/; q; }
18414           s/.*/./; q'`
18415       { if $as_mkdir_p; then
18416     mkdir -p "$ac_dir"
18417   else
18418     as_dir="$ac_dir"
18419     as_dirs=
18420     while test ! -d "$as_dir"; do
18421       as_dirs="$as_dir $as_dirs"
18422       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18424          X"$as_dir" : 'X\(//\)[^/]' \| \
18425          X"$as_dir" : 'X\(//\)$' \| \
18426          X"$as_dir" : 'X\(/\)' \| \
18427          .     : '\(.\)' 2>/dev/null ||
18428 echo X"$as_dir" |
18429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18431           /^X\(\/\/\)$/{ s//\1/; q; }
18432           /^X\(\/\).*/{ s//\1/; q; }
18433           s/.*/./; q'`
18434     done
18435     test ! -n "$as_dirs" || mkdir $as_dirs
18436   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18438    { (exit 1); exit 1; }; }; }
18439
18440       rm -f $ac_file
18441       mv $tmp/config.h $ac_file
18442     fi
18443   else
18444     cat $tmp/config.h
18445     rm -f $tmp/config.h
18446   fi
18447 # Compute $ac_file's index in $config_headers.
18448 _am_stamp_count=1
18449 for _am_header in $config_headers :; do
18450   case $_am_header in
18451     $ac_file | $ac_file:* )
18452       break ;;
18453     * )
18454       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18455   esac
18456 done
18457 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18458 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459          X$ac_file : 'X\(//\)[^/]' \| \
18460          X$ac_file : 'X\(//\)$' \| \
18461          X$ac_file : 'X\(/\)' \| \
18462          .     : '\(.\)' 2>/dev/null ||
18463 echo X$ac_file |
18464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18465           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18466           /^X\(\/\/\)$/{ s//\1/; q; }
18467           /^X\(\/\).*/{ s//\1/; q; }
18468           s/.*/./; q'`/stamp-h$_am_stamp_count
18469 done
18470 _ACEOF
18471 cat >>$CONFIG_STATUS <<\_ACEOF
18472
18473 #
18474 # CONFIG_COMMANDS section.
18475 #
18476 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18477   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18478   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18479   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18480 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18481          X"$ac_dest" : 'X\(//\)[^/]' \| \
18482          X"$ac_dest" : 'X\(//\)$' \| \
18483          X"$ac_dest" : 'X\(/\)' \| \
18484          .     : '\(.\)' 2>/dev/null ||
18485 echo X"$ac_dest" |
18486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18488           /^X\(\/\/\)$/{ s//\1/; q; }
18489           /^X\(\/\).*/{ s//\1/; q; }
18490           s/.*/./; q'`
18491   { if $as_mkdir_p; then
18492     mkdir -p "$ac_dir"
18493   else
18494     as_dir="$ac_dir"
18495     as_dirs=
18496     while test ! -d "$as_dir"; do
18497       as_dirs="$as_dir $as_dirs"
18498       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18500          X"$as_dir" : 'X\(//\)[^/]' \| \
18501          X"$as_dir" : 'X\(//\)$' \| \
18502          X"$as_dir" : 'X\(/\)' \| \
18503          .     : '\(.\)' 2>/dev/null ||
18504 echo X"$as_dir" |
18505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18506           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18507           /^X\(\/\/\)$/{ s//\1/; q; }
18508           /^X\(\/\).*/{ s//\1/; q; }
18509           s/.*/./; q'`
18510     done
18511     test ! -n "$as_dirs" || mkdir $as_dirs
18512   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18514    { (exit 1); exit 1; }; }; }
18515
18516   ac_builddir=.
18517
18518 if test "$ac_dir" != .; then
18519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18520   # A "../" for each directory in $ac_dir_suffix.
18521   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18522 else
18523   ac_dir_suffix= ac_top_builddir=
18524 fi
18525
18526 case $srcdir in
18527   .)  # No --srcdir option.  We are building in place.
18528     ac_srcdir=.
18529     if test -z "$ac_top_builddir"; then
18530        ac_top_srcdir=.
18531     else
18532        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18533     fi ;;
18534   [\\/]* | ?:[\\/]* )  # Absolute path.
18535     ac_srcdir=$srcdir$ac_dir_suffix;
18536     ac_top_srcdir=$srcdir ;;
18537   *) # Relative path.
18538     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18539     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18540 esac
18541
18542 # Do not use `cd foo && pwd` to compute absolute paths, because
18543 # the directories may not exist.
18544 case `pwd` in
18545 .) ac_abs_builddir="$ac_dir";;
18546 *)
18547   case "$ac_dir" in
18548   .) ac_abs_builddir=`pwd`;;
18549   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18550   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18551   esac;;
18552 esac
18553 case $ac_abs_builddir in
18554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18555 *)
18556   case ${ac_top_builddir}. in
18557   .) ac_abs_top_builddir=$ac_abs_builddir;;
18558   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18559   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18560   esac;;
18561 esac
18562 case $ac_abs_builddir in
18563 .) ac_abs_srcdir=$ac_srcdir;;
18564 *)
18565   case $ac_srcdir in
18566   .) ac_abs_srcdir=$ac_abs_builddir;;
18567   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18568   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18569   esac;;
18570 esac
18571 case $ac_abs_builddir in
18572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18573 *)
18574   case $ac_top_srcdir in
18575   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18576   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18577   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18578   esac;;
18579 esac
18580
18581
18582   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18583 echo "$as_me: executing $ac_dest commands" >&6;}
18584   case $ac_dest in
18585     default-1 )
18586 # Only add multilib support code if we just rebuilt the top-level
18587 # Makefile.
18588 case " $CONFIG_FILES " in
18589  *" Makefile "*)
18590    ac_file=Makefile . ${multi_basedir}/config-ml.in
18591    ;;
18592 esac ;;
18593     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18594   # Strip MF so we end up with the name of the file.
18595   mf=`echo "$mf" | sed -e 's/:.*$//'`
18596   # Check whether this is an Automake generated Makefile or not.
18597   # We used to match only the files named `Makefile.in', but
18598   # some people rename them; so instead we look at the file content.
18599   # Grep'ing the first line is not enough: some people post-process
18600   # each Makefile.in and add a new line on top of each file to say so.
18601   # So let's grep whole file.
18602   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18603     dirpart=`(dirname "$mf") 2>/dev/null ||
18604 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18605          X"$mf" : 'X\(//\)[^/]' \| \
18606          X"$mf" : 'X\(//\)$' \| \
18607          X"$mf" : 'X\(/\)' \| \
18608          .     : '\(.\)' 2>/dev/null ||
18609 echo X"$mf" |
18610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18612           /^X\(\/\/\)$/{ s//\1/; q; }
18613           /^X\(\/\).*/{ s//\1/; q; }
18614           s/.*/./; q'`
18615   else
18616     continue
18617   fi
18618   # Extract the definition of DEPDIR, am__include, and am__quote
18619   # from the Makefile without running `make'.
18620   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18621   test -z "$DEPDIR" && continue
18622   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18623   test -z "am__include" && continue
18624   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18625   # When using ansi2knr, U may be empty or an underscore; expand it
18626   U=`sed -n 's/^U = //p' < "$mf"`
18627   # Find all dependency output files, they are included files with
18628   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18629   # simplest approach to changing $(DEPDIR) to its actual value in the
18630   # expansion.
18631   for file in `sed -n "
18632     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18633        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18634     # Make sure the directory exists.
18635     test -f "$dirpart/$file" && continue
18636     fdir=`(dirname "$file") 2>/dev/null ||
18637 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18638          X"$file" : 'X\(//\)[^/]' \| \
18639          X"$file" : 'X\(//\)$' \| \
18640          X"$file" : 'X\(/\)' \| \
18641          .     : '\(.\)' 2>/dev/null ||
18642 echo X"$file" |
18643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18644           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18645           /^X\(\/\/\)$/{ s//\1/; q; }
18646           /^X\(\/\).*/{ s//\1/; q; }
18647           s/.*/./; q'`
18648     { if $as_mkdir_p; then
18649     mkdir -p $dirpart/$fdir
18650   else
18651     as_dir=$dirpart/$fdir
18652     as_dirs=
18653     while test ! -d "$as_dir"; do
18654       as_dirs="$as_dir $as_dirs"
18655       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18657          X"$as_dir" : 'X\(//\)[^/]' \| \
18658          X"$as_dir" : 'X\(//\)$' \| \
18659          X"$as_dir" : 'X\(/\)' \| \
18660          .     : '\(.\)' 2>/dev/null ||
18661 echo X"$as_dir" |
18662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18663           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18664           /^X\(\/\/\)$/{ s//\1/; q; }
18665           /^X\(\/\).*/{ s//\1/; q; }
18666           s/.*/./; q'`
18667     done
18668     test ! -n "$as_dirs" || mkdir $as_dirs
18669   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18670 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18671    { (exit 1); exit 1; }; }; }
18672
18673     # echo "creating $dirpart/$file"
18674     echo '# dummy' > "$dirpart/$file"
18675   done
18676 done
18677  ;;
18678     libtool )
18679
18680     # See if we are running on zsh, and set the options which allow our
18681     # commands through without removal of \ escapes.
18682     if test -n "${ZSH_VERSION+set}" ; then
18683       setopt NO_GLOB_SUBST
18684     fi
18685
18686     cfgfile="${ofile}T"
18687     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18688     $RM "$cfgfile"
18689
18690     cat <<_LT_EOF >> "$cfgfile"
18691 #! $SHELL
18692
18693 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18694 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18695 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18696 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18697 #
18698 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18699 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18700 #   Written by Gordon Matzigkeit, 1996
18701 #
18702 #   This file is part of GNU Libtool.
18703 #
18704 # GNU Libtool is free software; you can redistribute it and/or
18705 # modify it under the terms of the GNU General Public License as
18706 # published by the Free Software Foundation; either version 2 of
18707 # the License, or (at your option) any later version.
18708 #
18709 # As a special exception to the GNU General Public License,
18710 # if you distribute this file as part of a program or library that
18711 # is built using GNU Libtool, you may include this file under the
18712 # same distribution terms that you use for the rest of that program.
18713 #
18714 # GNU Libtool is distributed in the hope that it will be useful,
18715 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18716 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18717 # GNU General Public License for more details.
18718 #
18719 # You should have received a copy of the GNU General Public License
18720 # along with GNU Libtool; see the file COPYING.  If not, a copy
18721 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18722 # obtained by writing to the Free Software Foundation, Inc.,
18723 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18724
18725
18726 # The names of the tagged configurations supported by this script.
18727 available_tags="CXX "
18728
18729 # ### BEGIN LIBTOOL CONFIG
18730
18731 # Which release of libtool.m4 was used?
18732 macro_version=$macro_version
18733 macro_revision=$macro_revision
18734
18735 # Whether or not to build shared libraries.
18736 build_libtool_libs=$enable_shared
18737
18738 # Whether or not to build static libraries.
18739 build_old_libs=$enable_static
18740
18741 # What type of objects to build.
18742 pic_mode=$pic_mode
18743
18744 # Whether or not to optimize for fast installation.
18745 fast_install=$enable_fast_install
18746
18747 # The host system.
18748 host_alias=$host_alias
18749 host=$host
18750 host_os=$host_os
18751
18752 # The build system.
18753 build_alias=$build_alias
18754 build=$build
18755 build_os=$build_os
18756
18757 # A sed program that does not truncate output.
18758 SED=$lt_SED
18759
18760 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18761 Xsed="\$SED -e 1s/^X//"
18762
18763 # A grep program that handles long lines.
18764 GREP=$lt_GREP
18765
18766 # An ERE matcher.
18767 EGREP=$lt_EGREP
18768
18769 # A literal string matcher.
18770 FGREP=$lt_FGREP
18771
18772 # A BSD- or MS-compatible name lister.
18773 NM=$lt_NM
18774
18775 # Whether we need soft or hard links.
18776 LN_S=$lt_LN_S
18777
18778 # What is the maximum length of a command?
18779 max_cmd_len=$max_cmd_len
18780
18781 # Object file suffix (normally "o").
18782 objext=$ac_objext
18783
18784 # Executable file suffix (normally "").
18785 exeext=$exeext
18786
18787 # whether the shell understands "unset".
18788 lt_unset=$lt_unset
18789
18790 # turn spaces into newlines.
18791 SP2NL=$lt_lt_SP2NL
18792
18793 # turn newlines into spaces.
18794 NL2SP=$lt_lt_NL2SP
18795
18796 # How to create reloadable object files.
18797 reload_flag=$lt_reload_flag
18798 reload_cmds=$lt_reload_cmds
18799
18800 # An object symbol dumper.
18801 OBJDUMP=$lt_OBJDUMP
18802
18803 # Method to check whether dependent libraries are shared objects.
18804 deplibs_check_method=$lt_deplibs_check_method
18805
18806 # Command to use when deplibs_check_method == "file_magic".
18807 file_magic_cmd=$lt_file_magic_cmd
18808
18809 # The archiver.
18810 AR=$lt_AR
18811 AR_FLAGS=$lt_AR_FLAGS
18812
18813 # A symbol stripping program.
18814 STRIP=$lt_STRIP
18815
18816 # Commands used to install an old-style archive.
18817 RANLIB=$lt_RANLIB
18818 old_postinstall_cmds=$lt_old_postinstall_cmds
18819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18820
18821 # A C compiler.
18822 LTCC=$lt_CC
18823
18824 # LTCC compiler flags.
18825 LTCFLAGS=$lt_CFLAGS
18826
18827 # Take the output of nm and produce a listing of raw symbols and C names.
18828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18829
18830 # Transform the output of nm in a proper C declaration.
18831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18832
18833 # Transform the output of nm in a C name address pair.
18834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18835
18836 # Transform the output of nm in a C name address pair when lib prefix is needed.
18837 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18838
18839 # The name of the directory that contains temporary libtool files.
18840 objdir=$objdir
18841
18842 # Shell to use when invoking shell scripts.
18843 SHELL=$lt_SHELL
18844
18845 # An echo program that does not interpret backslashes.
18846 ECHO=$lt_ECHO
18847
18848 # Used to examine libraries when file_magic_cmd begins with "file".
18849 MAGIC_CMD=$MAGIC_CMD
18850
18851 # Must we lock files when doing compilation?
18852 need_locks=$lt_need_locks
18853
18854 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18855 DSYMUTIL=$lt_DSYMUTIL
18856
18857 # Tool to change global to local symbols on Mac OS X.
18858 NMEDIT=$lt_NMEDIT
18859
18860 # Tool to manipulate fat objects and archives on Mac OS X.
18861 LIPO=$lt_LIPO
18862
18863 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18864 OTOOL=$lt_OTOOL
18865
18866 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18867 OTOOL64=$lt_OTOOL64
18868
18869 # Old archive suffix (normally "a").
18870 libext=$libext
18871
18872 # Shared library suffix (normally ".so").
18873 shrext_cmds=$lt_shrext_cmds
18874
18875 # The commands to extract the exported symbol list from a shared archive.
18876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18877
18878 # Variables whose values should be saved in libtool wrapper scripts and
18879 # restored at link time.
18880 variables_saved_for_relink=$lt_variables_saved_for_relink
18881
18882 # Do we need the "lib" prefix for modules?
18883 need_lib_prefix=$need_lib_prefix
18884
18885 # Do we need a version for libraries?
18886 need_version=$need_version
18887
18888 # Library versioning type.
18889 version_type=$version_type
18890
18891 # Shared library runtime path variable.
18892 runpath_var=$runpath_var
18893
18894 # Shared library path variable.
18895 shlibpath_var=$shlibpath_var
18896
18897 # Is shlibpath searched before the hard-coded library search path?
18898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18899
18900 # Format of library name prefix.
18901 libname_spec=$lt_libname_spec
18902
18903 # List of archive names.  First name is the real one, the rest are links.
18904 # The last name is the one that the linker finds with -lNAME
18905 library_names_spec=$lt_library_names_spec
18906
18907 # The coded name of the library, if different from the real name.
18908 soname_spec=$lt_soname_spec
18909
18910 # Command to use after installation of a shared archive.
18911 postinstall_cmds=$lt_postinstall_cmds
18912
18913 # Command to use after uninstallation of a shared archive.
18914 postuninstall_cmds=$lt_postuninstall_cmds
18915
18916 # Commands used to finish a libtool library installation in a directory.
18917 finish_cmds=$lt_finish_cmds
18918
18919 # As "finish_cmds", except a single script fragment to be evaled but
18920 # not shown.
18921 finish_eval=$lt_finish_eval
18922
18923 # Whether we should hardcode library paths into libraries.
18924 hardcode_into_libs=$hardcode_into_libs
18925
18926 # Compile-time system search path for libraries.
18927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18928
18929 # Run-time system search path for libraries.
18930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18931
18932 # Whether dlopen is supported.
18933 dlopen_support=$enable_dlopen
18934
18935 # Whether dlopen of programs is supported.
18936 dlopen_self=$enable_dlopen_self
18937
18938 # Whether dlopen of statically linked programs is supported.
18939 dlopen_self_static=$enable_dlopen_self_static
18940
18941 # Commands to strip libraries.
18942 old_striplib=$lt_old_striplib
18943 striplib=$lt_striplib
18944
18945
18946 # The linker used to build libraries.
18947 LD=$lt_LD
18948
18949 # Commands used to build an old-style archive.
18950 old_archive_cmds=$lt_old_archive_cmds
18951
18952 # A language specific compiler.
18953 CC=$lt_compiler
18954
18955 # Is the compiler the GNU compiler?
18956 with_gcc=$GCC
18957
18958 # Compiler flag to turn off builtin functions.
18959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18960
18961 # How to pass a linker flag through the compiler.
18962 wl=$lt_lt_prog_compiler_wl
18963
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic
18966
18967 # Compiler flag to prevent dynamic linking.
18968 link_static_flag=$lt_lt_prog_compiler_static
18969
18970 # Does compiler simultaneously support -c and -o options?
18971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18972
18973 # Whether or not to add -lc for building shared libraries.
18974 build_libtool_need_lc=$archive_cmds_need_lc
18975
18976 # Whether or not to disallow shared libs when runtime libs are static.
18977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18978
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18981
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18984
18985 # Whether the compiler copes with passing no objects directly.
18986 compiler_needs_object=$lt_compiler_needs_object
18987
18988 # Create an old-style archive from a shared archive.
18989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18990
18991 # Create a temporary old-style archive to link instead of a shared archive.
18992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18993
18994 # Commands used to build a shared archive.
18995 archive_cmds=$lt_archive_cmds
18996 archive_expsym_cmds=$lt_archive_expsym_cmds
18997
18998 # Commands used to build a loadable module if different from building
18999 # a shared archive.
19000 module_cmds=$lt_module_cmds
19001 module_expsym_cmds=$lt_module_expsym_cmds
19002
19003 # Whether we are building with GNU ld or not.
19004 with_gnu_ld=$lt_with_gnu_ld
19005
19006 # Flag that allows shared libraries with undefined symbols to be built.
19007 allow_undefined_flag=$lt_allow_undefined_flag
19008
19009 # Flag that enforces no undefined symbols.
19010 no_undefined_flag=$lt_no_undefined_flag
19011
19012 # Flag to hardcode \$libdir into a binary during linking.
19013 # This must work even if \$libdir does not exist
19014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19015
19016 # If ld is used when linking, flag to hardcode \$libdir into a binary
19017 # during linking.  This must work even if \$libdir does not exist.
19018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19019
19020 # Whether we need a single "-rpath" flag with a separated argument.
19021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19022
19023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19024 # DIR into the resulting binary.
19025 hardcode_direct=$hardcode_direct
19026
19027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19028 # DIR into the resulting binary and the resulting library dependency is
19029 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19030 # library is relocated.
19031 hardcode_direct_absolute=$hardcode_direct_absolute
19032
19033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19034 # into the resulting binary.
19035 hardcode_minus_L=$hardcode_minus_L
19036
19037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19038 # into the resulting binary.
19039 hardcode_shlibpath_var=$hardcode_shlibpath_var
19040
19041 # Set to "yes" if building a shared library automatically hardcodes DIR
19042 # into the library and all subsequent libraries and executables linked
19043 # against it.
19044 hardcode_automatic=$hardcode_automatic
19045
19046 # Set to yes if linker adds runtime paths of dependent libraries
19047 # to runtime path list.
19048 inherit_rpath=$inherit_rpath
19049
19050 # Whether libtool must link a program against all its dependency libraries.
19051 link_all_deplibs=$link_all_deplibs
19052
19053 # Fix the shell variable \$srcfile for the compiler.
19054 fix_srcfile_path=$lt_fix_srcfile_path
19055
19056 # Set to "yes" if exported symbols are required.
19057 always_export_symbols=$always_export_symbols
19058
19059 # The commands to list exported symbols.
19060 export_symbols_cmds=$lt_export_symbols_cmds
19061
19062 # Symbols that should not be listed in the preloaded symbols.
19063 exclude_expsyms=$lt_exclude_expsyms
19064
19065 # Symbols that must always be exported.
19066 include_expsyms=$lt_include_expsyms
19067
19068 # Commands necessary for linking programs (against libraries) with templates.
19069 prelink_cmds=$lt_prelink_cmds
19070
19071 # Specify filename containing input files.
19072 file_list_spec=$lt_file_list_spec
19073
19074 # How to hardcode a shared library path into an executable.
19075 hardcode_action=$hardcode_action
19076
19077 # The directories searched by this compiler when creating a shared library.
19078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19079
19080 # Dependencies to place before and after the objects being linked to
19081 # create a shared library.
19082 predep_objects=$lt_predep_objects
19083 postdep_objects=$lt_postdep_objects
19084 predeps=$lt_predeps
19085 postdeps=$lt_postdeps
19086
19087 # The library search path used internally by the compiler when linking
19088 # a shared library.
19089 compiler_lib_search_path=$lt_compiler_lib_search_path
19090
19091 # ### END LIBTOOL CONFIG
19092
19093 _LT_EOF
19094
19095   case $host_os in
19096   aix3*)
19097     cat <<\_LT_EOF >> "$cfgfile"
19098 # AIX sometimes has problems with the GCC collect2 program.  For some
19099 # reason, if we set the COLLECT_NAMES environment variable, the problems
19100 # vanish in a puff of smoke.
19101 if test "X${COLLECT_NAMES+set}" != Xset; then
19102   COLLECT_NAMES=
19103   export COLLECT_NAMES
19104 fi
19105 _LT_EOF
19106     ;;
19107   esac
19108
19109
19110 ltmain="$ac_aux_dir/ltmain.sh"
19111
19112
19113   # We use sed instead of cat because bash on DJGPP gets confused if
19114   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19115   # text mode, it properly converts lines to CR/LF.  This bash problem
19116   # is reportedly fixed, but why not run on old versions too?
19117   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19118     || (rm -f "$cfgfile"; exit 1)
19119
19120   case $xsi_shell in
19121   yes)
19122     cat << \_LT_EOF >> "$cfgfile"
19123
19124 # func_dirname file append nondir_replacement
19125 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19126 # otherwise set result to NONDIR_REPLACEMENT.
19127 func_dirname ()
19128 {
19129   case ${1} in
19130     */*) func_dirname_result="${1%/*}${2}" ;;
19131     *  ) func_dirname_result="${3}" ;;
19132   esac
19133 }
19134
19135 # func_basename file
19136 func_basename ()
19137 {
19138   func_basename_result="${1##*/}"
19139 }
19140
19141 # func_dirname_and_basename file append nondir_replacement
19142 # perform func_basename and func_dirname in a single function
19143 # call:
19144 #   dirname:  Compute the dirname of FILE.  If nonempty,
19145 #             add APPEND to the result, otherwise set result
19146 #             to NONDIR_REPLACEMENT.
19147 #             value returned in "$func_dirname_result"
19148 #   basename: Compute filename of FILE.
19149 #             value retuned in "$func_basename_result"
19150 # Implementation must be kept synchronized with func_dirname
19151 # and func_basename. For efficiency, we do not delegate to
19152 # those functions but instead duplicate the functionality here.
19153 func_dirname_and_basename ()
19154 {
19155   case ${1} in
19156     */*) func_dirname_result="${1%/*}${2}" ;;
19157     *  ) func_dirname_result="${3}" ;;
19158   esac
19159   func_basename_result="${1##*/}"
19160 }
19161
19162 # func_stripname prefix suffix name
19163 # strip PREFIX and SUFFIX off of NAME.
19164 # PREFIX and SUFFIX must not contain globbing or regex special
19165 # characters, hashes, percent signs, but SUFFIX may contain a leading
19166 # dot (in which case that matches only a dot).
19167 func_stripname ()
19168 {
19169   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19170   # positional parameters, so assign one to ordinary parameter first.
19171   func_stripname_result=${3}
19172   func_stripname_result=${func_stripname_result#"${1}"}
19173   func_stripname_result=${func_stripname_result%"${2}"}
19174 }
19175
19176 # func_opt_split
19177 func_opt_split ()
19178 {
19179   func_opt_split_opt=${1%%=*}
19180   func_opt_split_arg=${1#*=}
19181 }
19182
19183 # func_lo2o object
19184 func_lo2o ()
19185 {
19186   case ${1} in
19187     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19188     *)    func_lo2o_result=${1} ;;
19189   esac
19190 }
19191
19192 # func_xform libobj-or-source
19193 func_xform ()
19194 {
19195   func_xform_result=${1%.*}.lo
19196 }
19197
19198 # func_arith arithmetic-term...
19199 func_arith ()
19200 {
19201   func_arith_result=$(( $* ))
19202 }
19203
19204 # func_len string
19205 # STRING may not start with a hyphen.
19206 func_len ()
19207 {
19208   func_len_result=${#1}
19209 }
19210
19211 _LT_EOF
19212     ;;
19213   *) # Bourne compatible functions.
19214     cat << \_LT_EOF >> "$cfgfile"
19215
19216 # func_dirname file append nondir_replacement
19217 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19218 # otherwise set result to NONDIR_REPLACEMENT.
19219 func_dirname ()
19220 {
19221   # Extract subdirectory from the argument.
19222   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19223   if test "X$func_dirname_result" = "X${1}"; then
19224     func_dirname_result="${3}"
19225   else
19226     func_dirname_result="$func_dirname_result${2}"
19227   fi
19228 }
19229
19230 # func_basename file
19231 func_basename ()
19232 {
19233   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19234 }
19235
19236
19237 # func_stripname prefix suffix name
19238 # strip PREFIX and SUFFIX off of NAME.
19239 # PREFIX and SUFFIX must not contain globbing or regex special
19240 # characters, hashes, percent signs, but SUFFIX may contain a leading
19241 # dot (in which case that matches only a dot).
19242 # func_strip_suffix prefix name
19243 func_stripname ()
19244 {
19245   case ${2} in
19246     .*) func_stripname_result=`$ECHO "X${3}" \
19247            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19248     *)  func_stripname_result=`$ECHO "X${3}" \
19249            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19250   esac
19251 }
19252
19253 # sed scripts:
19254 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19255 my_sed_long_arg='1s/^-[^=]*=//'
19256
19257 # func_opt_split
19258 func_opt_split ()
19259 {
19260   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19261   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19262 }
19263
19264 # func_lo2o object
19265 func_lo2o ()
19266 {
19267   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19268 }
19269
19270 # func_xform libobj-or-source
19271 func_xform ()
19272 {
19273   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19274 }
19275
19276 # func_arith arithmetic-term...
19277 func_arith ()
19278 {
19279   func_arith_result=`expr "$@"`
19280 }
19281
19282 # func_len string
19283 # STRING may not start with a hyphen.
19284 func_len ()
19285 {
19286   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19287 }
19288
19289 _LT_EOF
19290 esac
19291
19292 case $lt_shell_append in
19293   yes)
19294     cat << \_LT_EOF >> "$cfgfile"
19295
19296 # func_append var value
19297 # Append VALUE to the end of shell variable VAR.
19298 func_append ()
19299 {
19300   eval "$1+=\$2"
19301 }
19302 _LT_EOF
19303     ;;
19304   *)
19305     cat << \_LT_EOF >> "$cfgfile"
19306
19307 # func_append var value
19308 # Append VALUE to the end of shell variable VAR.
19309 func_append ()
19310 {
19311   eval "$1=\$$1\$2"
19312 }
19313
19314 _LT_EOF
19315     ;;
19316   esac
19317
19318
19319   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19320     || (rm -f "$cfgfile"; exit 1)
19321
19322   mv -f "$cfgfile" "$ofile" ||
19323     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19324   chmod +x "$ofile"
19325
19326
19327     cat <<_LT_EOF >> "$ofile"
19328
19329 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19330
19331 # The linker used to build libraries.
19332 LD=$lt_LD_CXX
19333
19334 # Commands used to build an old-style archive.
19335 old_archive_cmds=$lt_old_archive_cmds_CXX
19336
19337 # A language specific compiler.
19338 CC=$lt_compiler_CXX
19339
19340 # Is the compiler the GNU compiler?
19341 with_gcc=$GCC_CXX
19342
19343 # Compiler flag to turn off builtin functions.
19344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19345
19346 # How to pass a linker flag through the compiler.
19347 wl=$lt_lt_prog_compiler_wl_CXX
19348
19349 # Additional compiler flags for building library objects.
19350 pic_flag=$lt_lt_prog_compiler_pic_CXX
19351
19352 # Compiler flag to prevent dynamic linking.
19353 link_static_flag=$lt_lt_prog_compiler_static_CXX
19354
19355 # Does compiler simultaneously support -c and -o options?
19356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19357
19358 # Whether or not to add -lc for building shared libraries.
19359 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19360
19361 # Whether or not to disallow shared libs when runtime libs are static.
19362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19363
19364 # Compiler flag to allow reflexive dlopens.
19365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19366
19367 # Compiler flag to generate shared objects directly from archives.
19368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19369
19370 # Whether the compiler copes with passing no objects directly.
19371 compiler_needs_object=$lt_compiler_needs_object_CXX
19372
19373 # Create an old-style archive from a shared archive.
19374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19375
19376 # Create a temporary old-style archive to link instead of a shared archive.
19377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19378
19379 # Commands used to build a shared archive.
19380 archive_cmds=$lt_archive_cmds_CXX
19381 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19382
19383 # Commands used to build a loadable module if different from building
19384 # a shared archive.
19385 module_cmds=$lt_module_cmds_CXX
19386 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19387
19388 # Whether we are building with GNU ld or not.
19389 with_gnu_ld=$lt_with_gnu_ld_CXX
19390
19391 # Flag that allows shared libraries with undefined symbols to be built.
19392 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19393
19394 # Flag that enforces no undefined symbols.
19395 no_undefined_flag=$lt_no_undefined_flag_CXX
19396
19397 # Flag to hardcode \$libdir into a binary during linking.
19398 # This must work even if \$libdir does not exist
19399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19400
19401 # If ld is used when linking, flag to hardcode \$libdir into a binary
19402 # during linking.  This must work even if \$libdir does not exist.
19403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19404
19405 # Whether we need a single "-rpath" flag with a separated argument.
19406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19407
19408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19409 # DIR into the resulting binary.
19410 hardcode_direct=$hardcode_direct_CXX
19411
19412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19413 # DIR into the resulting binary and the resulting library dependency is
19414 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19415 # library is relocated.
19416 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19417
19418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19419 # into the resulting binary.
19420 hardcode_minus_L=$hardcode_minus_L_CXX
19421
19422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19423 # into the resulting binary.
19424 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19425
19426 # Set to "yes" if building a shared library automatically hardcodes DIR
19427 # into the library and all subsequent libraries and executables linked
19428 # against it.
19429 hardcode_automatic=$hardcode_automatic_CXX
19430
19431 # Set to yes if linker adds runtime paths of dependent libraries
19432 # to runtime path list.
19433 inherit_rpath=$inherit_rpath_CXX
19434
19435 # Whether libtool must link a program against all its dependency libraries.
19436 link_all_deplibs=$link_all_deplibs_CXX
19437
19438 # Fix the shell variable \$srcfile for the compiler.
19439 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19440
19441 # Set to "yes" if exported symbols are required.
19442 always_export_symbols=$always_export_symbols_CXX
19443
19444 # The commands to list exported symbols.
19445 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19446
19447 # Symbols that should not be listed in the preloaded symbols.
19448 exclude_expsyms=$lt_exclude_expsyms_CXX
19449
19450 # Symbols that must always be exported.
19451 include_expsyms=$lt_include_expsyms_CXX
19452
19453 # Commands necessary for linking programs (against libraries) with templates.
19454 prelink_cmds=$lt_prelink_cmds_CXX
19455
19456 # Specify filename containing input files.
19457 file_list_spec=$lt_file_list_spec_CXX
19458
19459 # How to hardcode a shared library path into an executable.
19460 hardcode_action=$hardcode_action_CXX
19461
19462 # The directories searched by this compiler when creating a shared library.
19463 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19464
19465 # Dependencies to place before and after the objects being linked to
19466 # create a shared library.
19467 predep_objects=$lt_predep_objects_CXX
19468 postdep_objects=$lt_postdep_objects_CXX
19469 predeps=$lt_predeps_CXX
19470 postdeps=$lt_postdeps_CXX
19471
19472 # The library search path used internally by the compiler when linking
19473 # a shared library.
19474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19475
19476 # ### END LIBTOOL TAG CONFIG: CXX
19477 _LT_EOF
19478
19479  ;;
19480   esac
19481 done
19482 _ACEOF
19483
19484 cat >>$CONFIG_STATUS <<\_ACEOF
19485
19486 { (exit 0); exit 0; }
19487 _ACEOF
19488 chmod +x $CONFIG_STATUS
19489 ac_clean_files=$ac_clean_files_save
19490
19491
19492 # configure is writing to config.log, and then calls config.status.
19493 # config.status does its own redirection, appending to config.log.
19494 # Unfortunately, on DOS this fails, as config.log is still kept open
19495 # by configure, so config.status won't be able to write to it; its
19496 # output is simply discarded.  So we exec the FD to /dev/null,
19497 # effectively closing config.log, so it can be properly (re)opened and
19498 # appended to by config.status.  When coming back to configure, we
19499 # need to make the FD available again.
19500 if test "$no_create" != yes; then
19501   ac_cs_success=:
19502   ac_config_status_args=
19503   test "$silent" = yes &&
19504     ac_config_status_args="$ac_config_status_args --quiet"
19505   exec 5>/dev/null
19506   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19507   exec 5>>config.log
19508   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19509   # would make configure fail if this is the last instruction.
19510   $ac_cs_success || { (exit 1); exit 1; }
19511 fi
19512