Use dladdr to get symbols for environments which doesn't use ELF and
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for glog 0.1.
4 #
5 # Report bugs to <opensource@google.com>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='glog'
425 PACKAGE_TARNAME='glog'
426 PACKAGE_VERSION='0.1'
427 PACKAGE_STRING='glog 0.1'
428 PACKAGE_BUGREPORT='opensource@google.com'
429
430 ac_unique_file="README"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS ENABLE_FRAME_POINTERS_TRUE ENABLE_FRAME_POINTERS_FALSE X86_64_TRUE X86_64_FALSE acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS ac_google_start_namespace ac_google_end_namespace ac_google_namespace ac_cv_cxx_using_operator ac_cv___attribute___noreturn ac_cv___attribute___printf_4_5 ac_cv_have___builtin_expect ac_cv_have_stdint_h ac_cv_have_systypes_h ac_cv_have_inttypes_h ac_cv_have_uint16_t ac_cv_have_u_int16_t ac_cv_have___uint16 ac_cv_have_libgflags GFLAGS_LIBS LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures glog 0.1 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of glog 0.1:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --disable-dependency-tracking  speeds up one-time build
1031   --enable-dependency-tracking   do not reject slow dependency extractors
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --enable-frame-pointers On x86_64 systems, compile with
1040                           -fno-omit-frame-pointer (see INSTALL)
1041   --enable-namespace=FOO to define these Google
1042                              classes in the FOO namespace. --disable-namespace
1043                              to define them in the global namespace. Default
1044                              is to define them in namespace google.
1045
1046 Optional Packages:
1047   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1049   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1050   --with-pic              try to use only PIC/non-PIC objects [default=use
1051                           both]
1052   --with-tags[=TAGS]
1053                           include additional configurations [automatic]
1054
1055 Some influential environment variables:
1056   CC          C compiler command
1057   CFLAGS      C compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CPP         C preprocessor
1063   CXX         C++ compiler command
1064   CXXFLAGS    C++ compiler flags
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <opensource@google.com>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd "$ac_popdir"
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 glog configure 0.1
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by glog $as_me 0.1, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 # The argument here is just something that should be in the current directory
1519 # (for sanity checking)
1520
1521 am__api_version="1.9"
1522 ac_aux_dir=
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524   if test -f $ac_dir/install-sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install-sh -c"
1527     break
1528   elif test -f $ac_dir/install.sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install.sh -c"
1531     break
1532   elif test -f $ac_dir/shtool; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/shtool install -c"
1535     break
1536   fi
1537 done
1538 if test -z "$ac_aux_dir"; then
1539   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541    { (exit 1); exit 1; }; }
1542 fi
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547 # Find a good install program.  We prefer a C program (faster),
1548 # so one script is as good as another.  But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1553 # AIX /bin/install
1554 # AmigaOS /C/install, which installs bootblocks on floppy discs
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # OS/2's system install, which has a completely different semantic
1559 # ./install, which can be erroneously created by make from ./install.sh.
1560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562 if test -z "$INSTALL"; then
1563 if test "${ac_cv_path_install+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   # Account for people who put trailing slashes in PATH elements.
1572 case $as_dir/ in
1573   ./ | .// | /cC/* | \
1574   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1576   /usr/ucb/* ) ;;
1577   *)
1578     # OSF1 and SCO ODT 3.0 have their own names for install.
1579     # Don't use installbsd from OSF since it installs stuff as root
1580     # by default.
1581     for ac_prog in ginstall scoinst install; do
1582       for ac_exec_ext in '' $ac_executable_extensions; do
1583         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584           if test $ac_prog = install &&
1585             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586             # AIX install.  It has an incompatible calling convention.
1587             :
1588           elif test $ac_prog = install &&
1589             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590             # program-specific install script used by HP pwplus--don't use.
1591             :
1592           else
1593             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594             break 3
1595           fi
1596         fi
1597       done
1598     done
1599     ;;
1600 esac
1601 done
1602
1603
1604 fi
1605   if test "${ac_cv_path_install+set}" = set; then
1606     INSTALL=$ac_cv_path_install
1607   else
1608     # As a last resort, use the slow shell script.  We don't cache a
1609     # path for INSTALL within a source directory, because that will
1610     # break other packages using the cache if that directory is
1611     # removed, or if the path is relative.
1612     INSTALL=$ac_install_sh
1613   fi
1614 fi
1615 echo "$as_me:$LINENO: result: $INSTALL" >&5
1616 echo "${ECHO_T}$INSTALL" >&6
1617
1618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619 # It thinks the first close brace ends the variable substitution.
1620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1621
1622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1623
1624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1625
1626 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1628 # Just in case
1629 sleep 1
1630 echo timestamp > conftest.file
1631 # Do `set' in a subshell so we don't clobber the current shell's
1632 # arguments.  Must try -L first in case configure is actually a
1633 # symlink; some systems play weird games with the mod time of symlinks
1634 # (eg FreeBSD returns the mod time of the symlink's containing
1635 # directory).
1636 if (
1637    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1638    if test "$*" = "X"; then
1639       # -L didn't work.
1640       set X `ls -t $srcdir/configure conftest.file`
1641    fi
1642    rm -f conftest.file
1643    if test "$*" != "X $srcdir/configure conftest.file" \
1644       && test "$*" != "X conftest.file $srcdir/configure"; then
1645
1646       # If neither matched, then we have a broken ls.  This can happen
1647       # if, for instance, CONFIG_SHELL is bash and it inherits a
1648       # broken ls alias from the environment.  This has actually
1649       # happened.  Such a system could not be considered "sane".
1650       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1651 alias in your environment" >&5
1652 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1653 alias in your environment" >&2;}
1654    { (exit 1); exit 1; }; }
1655    fi
1656
1657    test "$2" = conftest.file
1658    )
1659 then
1660    # Ok.
1661    :
1662 else
1663    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664 Check your system clock" >&5
1665 echo "$as_me: error: newly created file is older than distributed files!
1666 Check your system clock" >&2;}
1667    { (exit 1); exit 1; }; }
1668 fi
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
1671 test "$program_prefix" != NONE &&
1672   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673 # Use a double $ so make ignores it.
1674 test "$program_suffix" != NONE &&
1675   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676 # Double any \ or $.  echo might interpret backslashes.
1677 # By default was `s,x,x', remove it if useless.
1678 cat <<\_ACEOF >conftest.sed
1679 s/[\\$]/&&/g;s/;s,x,x,$//
1680 _ACEOF
1681 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1682 rm conftest.sed
1683
1684 # expand $ac_aux_dir to an absolute path
1685 am_aux_dir=`cd $ac_aux_dir && pwd`
1686
1687 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1688 # Use eval to expand $SHELL
1689 if eval "$MISSING --run true"; then
1690   am_missing_run="$MISSING --run "
1691 else
1692   am_missing_run=
1693   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1694 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1695 fi
1696
1697 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1698   # We used to keeping the `.' as first argument, in order to
1699   # allow $(mkdir_p) to be used without argument.  As in
1700   #   $(mkdir_p) $(somedir)
1701   # where $(somedir) is conditionally defined.  However this is wrong
1702   # for two reasons:
1703   #  1. if the package is installed by a user who cannot write `.'
1704   #     make install will fail,
1705   #  2. the above comment should most certainly read
1706   #     $(mkdir_p) $(DESTDIR)$(somedir)
1707   #     so it does not work when $(somedir) is undefined and
1708   #     $(DESTDIR) is not.
1709   #  To support the latter case, we have to write
1710   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1711   #  so the `.' trick is pointless.
1712   mkdir_p='mkdir -p --'
1713 else
1714   # On NextStep and OpenStep, the `mkdir' command does not
1715   # recognize any option.  It will interpret all options as
1716   # directories to create, and then abort because `.' already
1717   # exists.
1718   for d in ./-p ./--version;
1719   do
1720     test -d $d && rmdir $d
1721   done
1722   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1723   if test -f "$ac_aux_dir/mkinstalldirs"; then
1724     mkdir_p='$(mkinstalldirs)'
1725   else
1726     mkdir_p='$(install_sh) -d'
1727   fi
1728 fi
1729
1730 for ac_prog in gawk mawk nawk awk
1731 do
1732   # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_AWK+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$AWK"; then
1740   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_AWK="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 AWK=$ac_cv_prog_AWK
1759 if test -n "$AWK"; then
1760   echo "$as_me:$LINENO: result: $AWK" >&5
1761 echo "${ECHO_T}$AWK" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   test -n "$AWK" && break
1768 done
1769
1770 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1772 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1773 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   cat >conftest.make <<\_ACEOF
1777 all:
1778         @echo 'ac_maketemp="$(MAKE)"'
1779 _ACEOF
1780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1781 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1782 if test -n "$ac_maketemp"; then
1783   eval ac_cv_prog_make_${ac_make}_set=yes
1784 else
1785   eval ac_cv_prog_make_${ac_make}_set=no
1786 fi
1787 rm -f conftest.make
1788 fi
1789 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1790   echo "$as_me:$LINENO: result: yes" >&5
1791 echo "${ECHO_T}yes" >&6
1792   SET_MAKE=
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796   SET_MAKE="MAKE=${MAKE-make}"
1797 fi
1798
1799 rm -rf .tst 2>/dev/null
1800 mkdir .tst 2>/dev/null
1801 if test -d .tst; then
1802   am__leading_dot=.
1803 else
1804   am__leading_dot=_
1805 fi
1806 rmdir .tst 2>/dev/null
1807
1808 # test to see if srcdir already configured
1809 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1810    test -f $srcdir/config.status; then
1811   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1812 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815
1816 # test whether we have cygpath
1817 if test -z "$CYGPATH_W"; then
1818   if (cygpath --version) >/dev/null 2>/dev/null; then
1819     CYGPATH_W='cygpath -w'
1820   else
1821     CYGPATH_W=echo
1822   fi
1823 fi
1824
1825
1826 # Define the identity of the package.
1827  PACKAGE='glog'
1828  VERSION='0.1'
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE "$PACKAGE"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define VERSION "$VERSION"
1838 _ACEOF
1839
1840 # Some tools Automake needs.
1841
1842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1843
1844
1845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1846
1847
1848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1849
1850
1851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1852
1853
1854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1855
1856 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1857
1858 # Installed binaries are usually stripped using `strip' when the user
1859 # run `make install-strip'.  However `strip' might not be the right
1860 # tool to use in cross-compilation environments, therefore Automake
1861 # will honor the `STRIP' environment variable to overrule this program.
1862 if test "$cross_compiling" != no; then
1863   if test -n "$ac_tool_prefix"; then
1864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}strip; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_STRIP+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$STRIP"; then
1872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 STRIP=$ac_cv_prog_STRIP
1891 if test -n "$STRIP"; then
1892   echo "$as_me:$LINENO: result: $STRIP" >&5
1893 echo "${ECHO_T}$STRIP" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899 fi
1900 if test -z "$ac_cv_prog_STRIP"; then
1901   ac_ct_STRIP=$STRIP
1902   # Extract the first word of "strip", so it can be a program name with args.
1903 set dummy strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$ac_ct_STRIP"; then
1910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_ac_ct_STRIP="strip"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1927 fi
1928 fi
1929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1930 if test -n "$ac_ct_STRIP"; then
1931   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1932 echo "${ECHO_T}$ac_ct_STRIP" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938   STRIP=$ac_ct_STRIP
1939 else
1940   STRIP="$ac_cv_prog_STRIP"
1941 fi
1942
1943 fi
1944 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1945
1946 # We need awk for the "check" target.  The system "awk" is bad on
1947 # some platforms.
1948 # Always define AMTAR for backward compatibility.
1949
1950 AMTAR=${AMTAR-"${am_missing_run}tar"}
1951
1952 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1953
1954
1955
1956
1957
1958           ac_config_headers="$ac_config_headers src/config.h"
1959
1960
1961 # Checks for programs.
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test -n "$CC"; then
1976   ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981   IFS=$as_save_IFS
1982   test -z "$as_dir" && as_dir=.
1983   for ac_exec_ext in '' $ac_executable_extensions; do
1984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999   echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 fi
2004 if test -z "$ac_cv_prog_CC"; then
2005   ac_ct_CC=$CC
2006   # Extract the first word of "gcc", so it can be a program name with args.
2007 set dummy gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$ac_ct_CC"; then
2014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     ac_cv_prog_ac_ct_CC="gcc"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2033 if test -n "$ac_ct_CC"; then
2034   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035 echo "${ECHO_T}$ac_ct_CC" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041   CC=$ac_ct_CC
2042 else
2043   CC="$ac_cv_prog_CC"
2044 fi
2045
2046 if test -z "$CC"; then
2047   if test -n "$ac_tool_prefix"; then
2048   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}cc; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   if test -n "$CC"; then
2056   ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063   for ac_exec_ext in '' $ac_executable_extensions; do
2064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065     ac_cv_prog_CC="${ac_tool_prefix}cc"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071
2072 fi
2073 fi
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076   echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2078 else
2079   echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2081 fi
2082
2083 fi
2084 if test -z "$ac_cv_prog_CC"; then
2085   ac_ct_CC=$CC
2086   # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091   echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093   if test -n "$ac_ct_CC"; then
2094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101   for ac_exec_ext in '' $ac_executable_extensions; do
2102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103     ac_cv_prog_ac_ct_CC="cc"
2104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105     break 2
2106   fi
2107 done
2108 done
2109
2110 fi
2111 fi
2112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2116 else
2117   echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121   CC=$ac_ct_CC
2122 else
2123   CC="$ac_cv_prog_CC"
2124 fi
2125
2126 fi
2127 if test -z "$CC"; then
2128   # Extract the first word of "cc", so it can be a program name with args.
2129 set dummy cc; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_CC+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   if test -n "$CC"; then
2136   ac_cv_prog_CC="$CC" # Let the user override the test.
2137 else
2138   ac_prog_rejected=no
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2147        ac_prog_rejected=yes
2148        continue
2149      fi
2150     ac_cv_prog_CC="cc"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156
2157 if test $ac_prog_rejected = yes; then
2158   # We found a bogon in the path, so make sure we never use it.
2159   set dummy $ac_cv_prog_CC
2160   shift
2161   if test $# != 0; then
2162     # We chose a different compiler from the bogus one.
2163     # However, it has the same basename, so the bogon will be chosen
2164     # first if we set CC to just the basename; use the full file name.
2165     shift
2166     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2167   fi
2168 fi
2169 fi
2170 fi
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173   echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6
2175 else
2176   echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2178 fi
2179
2180 fi
2181 if test -z "$CC"; then
2182   if test -n "$ac_tool_prefix"; then
2183   for ac_prog in cl
2184   do
2185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test -n "$CC"; then
2193   ac_cv_prog_CC="$CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   for ac_exec_ext in '' $ac_executable_extensions; do
2201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204     break 2
2205   fi
2206 done
2207 done
2208
2209 fi
2210 fi
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213   echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6
2215 else
2216   echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2218 fi
2219
2220     test -n "$CC" && break
2221   done
2222 fi
2223 if test -z "$CC"; then
2224   ac_ct_CC=$CC
2225   for ac_prog in cl
2226 do
2227   # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy $ac_prog; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   if test -n "$ac_ct_CC"; then
2235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244     ac_cv_prog_ac_ct_CC="$ac_prog"
2245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246     break 2
2247   fi
2248 done
2249 done
2250
2251 fi
2252 fi
2253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2254 if test -n "$ac_ct_CC"; then
2255   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2256 echo "${ECHO_T}$ac_ct_CC" >&6
2257 else
2258   echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2260 fi
2261
2262   test -n "$ac_ct_CC" && break
2263 done
2264
2265   CC=$ac_ct_CC
2266 fi
2267
2268 fi
2269
2270
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO:" \
2279      "checking for C compiler version" >&5
2280 ac_compiler=`set X $ac_compile; echo $2`
2281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2282   (eval $ac_compiler --version </dev/null >&5) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2287   (eval $ac_compiler -v </dev/null >&5) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }
2291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2292   (eval $ac_compiler -V </dev/null >&5) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }
2296
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 ac_clean_files_save=$ac_clean_files
2313 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2314 # Try to create an executable without -o first, disregard a.out.
2315 # It will help us diagnose broken compilers, and finding out an intuition
2316 # of exeext.
2317 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2318 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2319 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2320 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2321   (eval $ac_link_default) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; then
2325   # Find the output, starting from the most likely.  This scheme is
2326 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2327 # resort.
2328
2329 # Be careful to initialize this variable, since it used to be cached.
2330 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2331 ac_cv_exeext=
2332 # b.out is created by i960 compilers.
2333 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2334 do
2335   test -f "$ac_file" || continue
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2338         ;;
2339     conftest.$ac_ext )
2340         # This is the source file.
2341         ;;
2342     [ab].out )
2343         # We found the default executable, but exeext='' is most
2344         # certainly right.
2345         break;;
2346     *.* )
2347         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348         # FIXME: I believe we export ac_cv_exeext for Libtool,
2349         # but it would be cool to find out if it's true.  Does anybody
2350         # maintain Libtool? --akim.
2351         export ac_cv_exeext
2352         break;;
2353     * )
2354         break;;
2355   esac
2356 done
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: C compiler cannot create executables
2364 See \`config.log' for more details." >&2;}
2365    { (exit 77); exit 77; }; }
2366 fi
2367
2368 ac_exeext=$ac_cv_exeext
2369 echo "$as_me:$LINENO: result: $ac_file" >&5
2370 echo "${ECHO_T}$ac_file" >&6
2371
2372 # Check the compiler produces executables we can run.  If not, either
2373 # the compiler is broken, or we cross compile.
2374 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2377 # If not cross compiling, check that we can run a simple program.
2378 if test "$cross_compiling" != yes; then
2379   if { ac_try='./$ac_file'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; }; then
2385     cross_compiling=no
2386   else
2387     if test "$cross_compiling" = maybe; then
2388         cross_compiling=yes
2389     else
2390         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot run C compiled programs.
2394 If you meant to cross compile, use \`--host'.
2395 See \`config.log' for more details." >&2;}
2396    { (exit 1); exit 1; }; }
2397     fi
2398   fi
2399 fi
2400 echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6
2402
2403 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2404 ac_clean_files=$ac_clean_files_save
2405 # Check the compiler produces executables we can run.  If not, either
2406 # the compiler is broken, or we cross compile.
2407 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2408 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2409 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2410 echo "${ECHO_T}$cross_compiling" >&6
2411
2412 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2413 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2415   (eval $ac_link) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; then
2419   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2420 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2421 # work properly (i.e., refer to `conftest.exe'), while it won't with
2422 # `rm'.
2423 for ac_file in conftest.exe conftest conftest.*; do
2424   test -f "$ac_file" || continue
2425   case $ac_file in
2426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2427     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428           export ac_cv_exeext
2429           break;;
2430     * ) break;;
2431   esac
2432 done
2433 else
2434   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2437 See \`config.log' for more details." >&2;}
2438    { (exit 1); exit 1; }; }
2439 fi
2440
2441 rm -f conftest$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2443 echo "${ECHO_T}$ac_cv_exeext" >&6
2444
2445 rm -f conftest.$ac_ext
2446 EXEEXT=$ac_cv_exeext
2447 ac_exeext=$EXEEXT
2448 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2449 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2450 if test "${ac_cv_objext+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.o conftest.obj
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; then
2474   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475   case $ac_file in
2476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2477     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2478        break;;
2479   esac
2480 done
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2488 See \`config.log' for more details." >&2;}
2489    { (exit 1); exit 1; }; }
2490 fi
2491
2492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 fi
2494 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2495 echo "${ECHO_T}$ac_cv_objext" >&6
2496 OBJEXT=$ac_cv_objext
2497 ac_objext=$OBJEXT
2498 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513 #ifndef __GNUC__
2514        choke me
2515 #endif
2516
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   ac_compiler_gnu=yes
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_compiler_gnu=no
2548 fi
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2551
2552 fi
2553 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2554 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2555 GCC=`test $ac_compiler_gnu = yes && echo yes`
2556 ac_test_CFLAGS=${CFLAGS+set}
2557 ac_save_CFLAGS=$CFLAGS
2558 CFLAGS="-g"
2559 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2560 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2561 if test "${ac_cv_prog_cc_g+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570
2571 int
2572 main ()
2573 {
2574
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   ac_cv_prog_cc_g=yes
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 ac_cv_prog_cc_g=no
2606 fi
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611 if test "$ac_test_CFLAGS" = set; then
2612   CFLAGS=$ac_save_CFLAGS
2613 elif test $ac_cv_prog_cc_g = yes; then
2614   if test "$GCC" = yes; then
2615     CFLAGS="-g -O2"
2616   else
2617     CFLAGS="-g"
2618   fi
2619 else
2620   if test "$GCC" = yes; then
2621     CFLAGS="-O2"
2622   else
2623     CFLAGS=
2624   fi
2625 fi
2626 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   ac_cv_prog_cc_stdc=no
2632 ac_save_CC=$CC
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 #include <stdarg.h>
2640 #include <stdio.h>
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2647      char **p;
2648      int i;
2649 {
2650   return p[i];
2651 }
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2653 {
2654   char *s;
2655   va_list v;
2656   va_start (v,p);
2657   s = g (p, va_arg (v,int));
2658   va_end (v);
2659   return s;
2660 }
2661
2662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663    function prototypes and stuff, but not '\xHH' hex character constants.
2664    These don't provoke an error unfortunately, instead are silently treated
2665    as 'x'.  The following induces an error, until -std1 is added to get
2666    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667    array size at least.  It's necessary to write '\x00'==0 to get something
2668    that's true only with -std1.  */
2669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671 int test (int i, double x);
2672 struct s1 {int (*f) (int a);};
2673 struct s2 {int (*f) (double a);};
2674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675 int argc;
2676 char **argv;
2677 int
2678 main ()
2679 {
2680 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 # Don't try gcc -ansi; that turns off useful extensions and
2686 # breaks some systems' header files.
2687 # AIX                   -qlanglvl=ansi
2688 # Ultrix and OSF/1      -std1
2689 # HP-UX 10.20 and later -Ae
2690 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2691 # SVR4                  -Xc -D__EXTENSIONS__
2692 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 do
2694   CC="$ac_save_CC $ac_arg"
2695   rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   ac_cv_prog_cc_stdc=$ac_arg
2717 break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 fi
2723 rm -f conftest.err conftest.$ac_objext
2724 done
2725 rm -f conftest.$ac_ext conftest.$ac_objext
2726 CC=$ac_save_CC
2727
2728 fi
2729
2730 case "x$ac_cv_prog_cc_stdc" in
2731   x|xno)
2732     echo "$as_me:$LINENO: result: none needed" >&5
2733 echo "${ECHO_T}none needed" >&6 ;;
2734   *)
2735     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2737     CC="$CC $ac_cv_prog_cc_stdc" ;;
2738 esac
2739
2740 # Some people use a C++ compiler to compile C.  Since we use `exit',
2741 # in C++ we need to declare it.  In case someone uses the same compiler
2742 # for both compiling C and C++ we need to have the C++ compiler decide
2743 # the declaration of exit, since it's the most demanding environment.
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #ifndef __cplusplus
2746   choke me
2747 #endif
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751   (eval $ac_compile) 2>conftest.er1
2752   ac_status=$?
2753   grep -v '^ *+' conftest.er1 >conftest.err
2754   rm -f conftest.er1
2755   cat conftest.err >&5
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; } &&
2764          { ac_try='test -s conftest.$ac_objext'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; }; then
2770   for ac_declaration in \
2771    '' \
2772    'extern "C" void std::exit (int) throw (); using std::exit;' \
2773    'extern "C" void std::exit (int); using std::exit;' \
2774    'extern "C" void exit (int) throw ();' \
2775    'extern "C" void exit (int);' \
2776    'void exit (int);'
2777 do
2778   cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784 $ac_declaration
2785 #include <stdlib.h>
2786 int
2787 main ()
2788 {
2789 exit (42);
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796   (eval $ac_compile) 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   :
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 continue
2821 fi
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 $ac_declaration
2830 int
2831 main ()
2832 {
2833 exit (42);
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } &&
2847          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; } &&
2853          { ac_try='test -s conftest.$ac_objext'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   break
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 done
2867 rm -f conftest*
2868 if test -n "$ac_declaration"; then
2869   echo '#ifdef __cplusplus' >>confdefs.h
2870   echo $ac_declaration      >>confdefs.h
2871   echo '#endif'             >>confdefs.h
2872 fi
2873
2874 else
2875   echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 fi
2879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 DEPDIR="${am__leading_dot}deps"
2886
2887           ac_config_commands="$ac_config_commands depfiles"
2888
2889
2890 am_make=${MAKE-make}
2891 cat > confinc << 'END'
2892 am__doit:
2893         @echo done
2894 .PHONY: am__doit
2895 END
2896 # If we don't find an include directive, just comment out the code.
2897 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2898 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2899 am__include="#"
2900 am__quote=
2901 _am_result=none
2902 # First try GNU make style include.
2903 echo "include confinc" > confmf
2904 # We grep out `Entering directory' and `Leaving directory'
2905 # messages which can occur if `w' ends up in MAKEFLAGS.
2906 # In particular we don't look at `^make:' because GNU make might
2907 # be invoked under some other name (usually "gmake"), in which
2908 # case it prints its new name instead of `make'.
2909 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2910    am__include=include
2911    am__quote=
2912    _am_result=GNU
2913 fi
2914 # Now try BSD make style include.
2915 if test "$am__include" = "#"; then
2916    echo '.include "confinc"' > confmf
2917    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2918       am__include=.include
2919       am__quote="\""
2920       _am_result=BSD
2921    fi
2922 fi
2923
2924
2925 echo "$as_me:$LINENO: result: $_am_result" >&5
2926 echo "${ECHO_T}$_am_result" >&6
2927 rm -f confinc confmf
2928
2929 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2930 if test "${enable_dependency_tracking+set}" = set; then
2931   enableval="$enable_dependency_tracking"
2932
2933 fi;
2934 if test "x$enable_dependency_tracking" != xno; then
2935   am_depcomp="$ac_aux_dir/depcomp"
2936   AMDEPBACKSLASH='\'
2937 fi
2938
2939
2940 if test "x$enable_dependency_tracking" != xno; then
2941   AMDEP_TRUE=
2942   AMDEP_FALSE='#'
2943 else
2944   AMDEP_TRUE='#'
2945   AMDEP_FALSE=
2946 fi
2947
2948
2949
2950
2951 depcc="$CC"   am_compiler_list=
2952
2953 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2954 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2955 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2959   # We make a subdir and do the tests there.  Otherwise we can end up
2960   # making bogus files that we don't know about and never remove.  For
2961   # instance it was reported that on HP-UX the gcc test will end up
2962   # making a dummy file named `D' -- because `-MD' means `put the output
2963   # in D'.
2964   mkdir conftest.dir
2965   # Copy depcomp to subdir because otherwise we won't find it if we're
2966   # using a relative directory.
2967   cp "$am_depcomp" conftest.dir
2968   cd conftest.dir
2969   # We will build objects and dependencies in a subdirectory because
2970   # it helps to detect inapplicable dependency modes.  For instance
2971   # both Tru64's cc and ICC support -MD to output dependencies as a
2972   # side effect of compilation, but ICC will put the dependencies in
2973   # the current directory while Tru64 will put them in the object
2974   # directory.
2975   mkdir sub
2976
2977   am_cv_CC_dependencies_compiler_type=none
2978   if test "$am_compiler_list" = ""; then
2979      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2980   fi
2981   for depmode in $am_compiler_list; do
2982     # Setup a source with many dependencies, because some compilers
2983     # like to wrap large dependency lists on column 80 (with \), and
2984     # we should not choose a depcomp mode which is confused by this.
2985     #
2986     # We need to recreate these files for each test, as the compiler may
2987     # overwrite some of them when testing with obscure command lines.
2988     # This happens at least with the AIX C compiler.
2989     : > sub/conftest.c
2990     for i in 1 2 3 4 5 6; do
2991       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2992       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2993       # Solaris 8's {/usr,}/bin/sh.
2994       touch sub/conftst$i.h
2995     done
2996     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2997
2998     case $depmode in
2999     nosideeffect)
3000       # after this tag, mechanisms are not by side-effect, so they'll
3001       # only be used when explicitly requested
3002       if test "x$enable_dependency_tracking" = xyes; then
3003         continue
3004       else
3005         break
3006       fi
3007       ;;
3008     none) break ;;
3009     esac
3010     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3011     # mode.  It turns out that the SunPro C++ compiler does not properly
3012     # handle `-M -o', and we need to detect this.
3013     if depmode=$depmode \
3014        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3015        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3016        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3017          >/dev/null 2>conftest.err &&
3018        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3019        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3020        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3021       # icc doesn't choke on unknown options, it will just issue warnings
3022       # or remarks (even with -Werror).  So we grep stderr for any message
3023       # that says an option was ignored or not supported.
3024       # When given -MP, icc 7.0 and 7.1 complain thusly:
3025       #   icc: Command line warning: ignoring option '-M'; no argument required
3026       # The diagnosis changed in icc 8.0:
3027       #   icc: Command line remark: option '-MP' not supported
3028       if (grep 'ignoring option' conftest.err ||
3029           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3030         am_cv_CC_dependencies_compiler_type=$depmode
3031         break
3032       fi
3033     fi
3034   done
3035
3036   cd ..
3037   rm -rf conftest.dir
3038 else
3039   am_cv_CC_dependencies_compiler_type=none
3040 fi
3041
3042 fi
3043 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3044 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3045 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3046
3047
3048
3049 if
3050   test "x$enable_dependency_tracking" != xno \
3051   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3052   am__fastdepCC_TRUE=
3053   am__fastdepCC_FALSE='#'
3054 else
3055   am__fastdepCC_TRUE='#'
3056   am__fastdepCC_FALSE=
3057 fi
3058
3059
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3069   CPP=
3070 fi
3071 if test -z "$CPP"; then
3072   if test "${ac_cv_prog_CPP+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075       # Double quotes because CPP needs to be expanded
3076     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3077     do
3078       ac_preproc_ok=false
3079 for ac_c_preproc_warn_flag in '' yes
3080 do
3081   # Use a header file that comes with gcc, so configuring glibc
3082   # with a fresh cross-compiler works.
3083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084   # <limits.h> exists even on freestanding compilers.
3085   # On the NeXT, cc -E runs the code through the compiler's parser,
3086   # not just through cpp. "Syntax error" is here to catch this case.
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #ifdef __STDC__
3094 # include <limits.h>
3095 #else
3096 # include <assert.h>
3097 #endif
3098                      Syntax error
3099 _ACEOF
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null; then
3108   if test -s conftest.err; then
3109     ac_cpp_err=$ac_c_preproc_warn_flag
3110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111   else
3112     ac_cpp_err=
3113   fi
3114 else
3115   ac_cpp_err=yes
3116 fi
3117 if test -z "$ac_cpp_err"; then
3118   :
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123   # Broken: fails on valid input.
3124 continue
3125 fi
3126 rm -f conftest.err conftest.$ac_ext
3127
3128   # OK, works on sane cases.  Now check whether non-existent headers
3129   # can be detected and how.
3130   cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136 #include <ac_nonexistent.h>
3137 _ACEOF
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } >/dev/null; then
3146   if test -s conftest.err; then
3147     ac_cpp_err=$ac_c_preproc_warn_flag
3148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3149   else
3150     ac_cpp_err=
3151   fi
3152 else
3153   ac_cpp_err=yes
3154 fi
3155 if test -z "$ac_cpp_err"; then
3156   # Broken: success on invalid input.
3157 continue
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162   # Passes both tests.
3163 ac_preproc_ok=:
3164 break
3165 fi
3166 rm -f conftest.err conftest.$ac_ext
3167
3168 done
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3172   break
3173 fi
3174
3175     done
3176     ac_cv_prog_CPP=$CPP
3177
3178 fi
3179   CPP=$ac_cv_prog_CPP
3180 else
3181   ac_cv_prog_CPP=$CPP
3182 fi
3183 echo "$as_me:$LINENO: result: $CPP" >&5
3184 echo "${ECHO_T}$CPP" >&6
3185 ac_preproc_ok=false
3186 for ac_c_preproc_warn_flag in '' yes
3187 do
3188   # Use a header file that comes with gcc, so configuring glibc
3189   # with a fresh cross-compiler works.
3190   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191   # <limits.h> exists even on freestanding compilers.
3192   # On the NeXT, cc -E runs the code through the compiler's parser,
3193   # not just through cpp. "Syntax error" is here to catch this case.
3194   cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h.  */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h.  */
3200 #ifdef __STDC__
3201 # include <limits.h>
3202 #else
3203 # include <assert.h>
3204 #endif
3205                      Syntax error
3206 _ACEOF
3207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } >/dev/null; then
3215   if test -s conftest.err; then
3216     ac_cpp_err=$ac_c_preproc_warn_flag
3217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218   else
3219     ac_cpp_err=
3220   fi
3221 else
3222   ac_cpp_err=yes
3223 fi
3224 if test -z "$ac_cpp_err"; then
3225   :
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230   # Broken: fails on valid input.
3231 continue
3232 fi
3233 rm -f conftest.err conftest.$ac_ext
3234
3235   # OK, works on sane cases.  Now check whether non-existent headers
3236   # can be detected and how.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #include <ac_nonexistent.h>
3244 _ACEOF
3245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } >/dev/null; then
3253   if test -s conftest.err; then
3254     ac_cpp_err=$ac_c_preproc_warn_flag
3255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256   else
3257     ac_cpp_err=
3258   fi
3259 else
3260   ac_cpp_err=yes
3261 fi
3262 if test -z "$ac_cpp_err"; then
3263   # Broken: success on invalid input.
3264 continue
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269   # Passes both tests.
3270 ac_preproc_ok=:
3271 break
3272 fi
3273 rm -f conftest.err conftest.$ac_ext
3274
3275 done
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then
3279   :
3280 else
3281   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details." >&2;}
3285    { (exit 1); exit 1; }; }
3286 fi
3287
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293
3294 ac_ext=cc
3295 ac_cpp='$CXXCPP $CPPFLAGS'
3296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3301   do
3302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3304 echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_CXX+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   if test -n "$CXX"; then
3310   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317   for ac_exec_ext in '' $ac_executable_extensions; do
3318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324 done
3325
3326 fi
3327 fi
3328 CXX=$ac_cv_prog_CXX
3329 if test -n "$CXX"; then
3330   echo "$as_me:$LINENO: result: $CXX" >&5
3331 echo "${ECHO_T}$CXX" >&6
3332 else
3333   echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3335 fi
3336
3337     test -n "$CXX" && break
3338   done
3339 fi
3340 if test -z "$CXX"; then
3341   ac_ct_CXX=$CXX
3342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3343 do
3344   # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   if test -n "$ac_ct_CXX"; then
3352   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359   for ac_exec_ext in '' $ac_executable_extensions; do
3360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_ac_ct_CXX="$ac_prog"
3362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366 done
3367
3368 fi
3369 fi
3370 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3371 if test -n "$ac_ct_CXX"; then
3372   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3373 echo "${ECHO_T}$ac_ct_CXX" >&6
3374 else
3375   echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3377 fi
3378
3379   test -n "$ac_ct_CXX" && break
3380 done
3381 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3382
3383   CXX=$ac_ct_CXX
3384 fi
3385
3386
3387 # Provide some information about the compiler.
3388 echo "$as_me:$LINENO:" \
3389      "checking for C++ compiler version" >&5
3390 ac_compiler=`set X $ac_compile; echo $2`
3391 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3392   (eval $ac_compiler --version </dev/null >&5) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }
3396 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3397   (eval $ac_compiler -v </dev/null >&5) 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }
3401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3402   (eval $ac_compiler -V </dev/null >&5) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }
3406
3407 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3408 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3409 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423        choke me
3424 #endif
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432   (eval $ac_compile) 2>conftest.er1
3433   ac_status=$?
3434   grep -v '^ *+' conftest.er1 >conftest.err
3435   rm -f conftest.er1
3436   cat conftest.err >&5
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); } &&
3439          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441   (eval $ac_try) 2>&5
3442   ac_status=$?
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); }; } &&
3445          { ac_try='test -s conftest.$ac_objext'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; }; then
3451   ac_compiler_gnu=yes
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 ac_compiler_gnu=no
3457 fi
3458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3460
3461 fi
3462 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3464 GXX=`test $ac_compiler_gnu = yes && echo yes`
3465 ac_test_CXXFLAGS=${CXXFLAGS+set}
3466 ac_save_CXXFLAGS=$CXXFLAGS
3467 CXXFLAGS="-g"
3468 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3469 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3470 if test "${ac_cv_prog_cxx_g+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490   (eval $ac_compile) 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } &&
3497          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; } &&
3503          { ac_try='test -s conftest.$ac_objext'
3504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505   (eval $ac_try) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   ac_cv_prog_cxx_g=yes
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 ac_cv_prog_cxx_g=no
3515 fi
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 fi
3518 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3519 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3520 if test "$ac_test_CXXFLAGS" = set; then
3521   CXXFLAGS=$ac_save_CXXFLAGS
3522 elif test $ac_cv_prog_cxx_g = yes; then
3523   if test "$GXX" = yes; then
3524     CXXFLAGS="-g -O2"
3525   else
3526     CXXFLAGS="-g"
3527   fi
3528 else
3529   if test "$GXX" = yes; then
3530     CXXFLAGS="-O2"
3531   else
3532     CXXFLAGS=
3533   fi
3534 fi
3535 for ac_declaration in \
3536    '' \
3537    'extern "C" void std::exit (int) throw (); using std::exit;' \
3538    'extern "C" void std::exit (int); using std::exit;' \
3539    'extern "C" void exit (int) throw ();' \
3540    'extern "C" void exit (int);' \
3541    'void exit (int);'
3542 do
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549 $ac_declaration
3550 #include <stdlib.h>
3551 int
3552 main ()
3553 {
3554 exit (42);
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561   (eval $ac_compile) 2>conftest.er1
3562   ac_status=$?
3563   grep -v '^ *+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570   (eval $ac_try) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; } &&
3574          { ac_try='test -s conftest.$ac_objext'
3575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576   (eval $ac_try) 2>&5
3577   ac_status=$?
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); }; }; then
3580   :
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 continue
3586 fi
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 $ac_declaration
3595 int
3596 main ()
3597 {
3598 exit (42);
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605   (eval $ac_compile) 2>conftest.er1
3606   ac_status=$?
3607   grep -v '^ *+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } &&
3612          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; } &&
3618          { ac_try='test -s conftest.$ac_objext'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; }; then
3624   break
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 fi
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 done
3632 rm -f conftest*
3633 if test -n "$ac_declaration"; then
3634   echo '#ifdef __cplusplus' >>confdefs.h
3635   echo $ac_declaration      >>confdefs.h
3636   echo '#endif'             >>confdefs.h
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645 depcc="$CXX"  am_compiler_list=
3646
3647 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3648 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3649 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3653   # We make a subdir and do the tests there.  Otherwise we can end up
3654   # making bogus files that we don't know about and never remove.  For
3655   # instance it was reported that on HP-UX the gcc test will end up
3656   # making a dummy file named `D' -- because `-MD' means `put the output
3657   # in D'.
3658   mkdir conftest.dir
3659   # Copy depcomp to subdir because otherwise we won't find it if we're
3660   # using a relative directory.
3661   cp "$am_depcomp" conftest.dir
3662   cd conftest.dir
3663   # We will build objects and dependencies in a subdirectory because
3664   # it helps to detect inapplicable dependency modes.  For instance
3665   # both Tru64's cc and ICC support -MD to output dependencies as a
3666   # side effect of compilation, but ICC will put the dependencies in
3667   # the current directory while Tru64 will put them in the object
3668   # directory.
3669   mkdir sub
3670
3671   am_cv_CXX_dependencies_compiler_type=none
3672   if test "$am_compiler_list" = ""; then
3673      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674   fi
3675   for depmode in $am_compiler_list; do
3676     # Setup a source with many dependencies, because some compilers
3677     # like to wrap large dependency lists on column 80 (with \), and
3678     # we should not choose a depcomp mode which is confused by this.
3679     #
3680     # We need to recreate these files for each test, as the compiler may
3681     # overwrite some of them when testing with obscure command lines.
3682     # This happens at least with the AIX C compiler.
3683     : > sub/conftest.c
3684     for i in 1 2 3 4 5 6; do
3685       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3686       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3687       # Solaris 8's {/usr,}/bin/sh.
3688       touch sub/conftst$i.h
3689     done
3690     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3691
3692     case $depmode in
3693     nosideeffect)
3694       # after this tag, mechanisms are not by side-effect, so they'll
3695       # only be used when explicitly requested
3696       if test "x$enable_dependency_tracking" = xyes; then
3697         continue
3698       else
3699         break
3700       fi
3701       ;;
3702     none) break ;;
3703     esac
3704     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705     # mode.  It turns out that the SunPro C++ compiler does not properly
3706     # handle `-M -o', and we need to detect this.
3707     if depmode=$depmode \
3708        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3709        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3711          >/dev/null 2>conftest.err &&
3712        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3713        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3714        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3715       # icc doesn't choke on unknown options, it will just issue warnings
3716       # or remarks (even with -Werror).  So we grep stderr for any message
3717       # that says an option was ignored or not supported.
3718       # When given -MP, icc 7.0 and 7.1 complain thusly:
3719       #   icc: Command line warning: ignoring option '-M'; no argument required
3720       # The diagnosis changed in icc 8.0:
3721       #   icc: Command line remark: option '-MP' not supported
3722       if (grep 'ignoring option' conftest.err ||
3723           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3724         am_cv_CXX_dependencies_compiler_type=$depmode
3725         break
3726       fi
3727     fi
3728   done
3729
3730   cd ..
3731   rm -rf conftest.dir
3732 else
3733   am_cv_CXX_dependencies_compiler_type=none
3734 fi
3735
3736 fi
3737 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3738 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3740
3741
3742
3743 if
3744   test "x$enable_dependency_tracking" != xno \
3745   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3746   am__fastdepCXX_TRUE=
3747   am__fastdepCXX_FALSE='#'
3748 else
3749   am__fastdepCXX_TRUE='#'
3750   am__fastdepCXX_FALSE=
3751 fi
3752
3753
3754
3755
3756 if test "$GCC" = yes; then
3757   GCC_TRUE=
3758   GCC_FALSE='#'
3759 else
3760   GCC_TRUE='#'
3761   GCC_FALSE=
3762 fi
3763    # let the Makefile know if we're gcc
3764
3765 # Check whether --enable-shared or --disable-shared was given.
3766 if test "${enable_shared+set}" = set; then
3767   enableval="$enable_shared"
3768   p=${PACKAGE-default}
3769     case $enableval in
3770     yes) enable_shared=yes ;;
3771     no) enable_shared=no ;;
3772     *)
3773       enable_shared=no
3774       # Look at the argument we got.  We use all the common list separators.
3775       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3776       for pkg in $enableval; do
3777         IFS="$lt_save_ifs"
3778         if test "X$pkg" = "X$p"; then
3779           enable_shared=yes
3780         fi
3781       done
3782       IFS="$lt_save_ifs"
3783       ;;
3784     esac
3785 else
3786   enable_shared=yes
3787 fi;
3788
3789 # Check whether --enable-static or --disable-static was given.
3790 if test "${enable_static+set}" = set; then
3791   enableval="$enable_static"
3792   p=${PACKAGE-default}
3793     case $enableval in
3794     yes) enable_static=yes ;;
3795     no) enable_static=no ;;
3796     *)
3797      enable_static=no
3798       # Look at the argument we got.  We use all the common list separators.
3799       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3800       for pkg in $enableval; do
3801         IFS="$lt_save_ifs"
3802         if test "X$pkg" = "X$p"; then
3803           enable_static=yes
3804         fi
3805       done
3806       IFS="$lt_save_ifs"
3807       ;;
3808     esac
3809 else
3810   enable_static=yes
3811 fi;
3812
3813 # Check whether --enable-fast-install or --disable-fast-install was given.
3814 if test "${enable_fast_install+set}" = set; then
3815   enableval="$enable_fast_install"
3816   p=${PACKAGE-default}
3817     case $enableval in
3818     yes) enable_fast_install=yes ;;
3819     no) enable_fast_install=no ;;
3820     *)
3821       enable_fast_install=no
3822       # Look at the argument we got.  We use all the common list separators.
3823       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3824       for pkg in $enableval; do
3825         IFS="$lt_save_ifs"
3826         if test "X$pkg" = "X$p"; then
3827           enable_fast_install=yes
3828         fi
3829       done
3830       IFS="$lt_save_ifs"
3831       ;;
3832     esac
3833 else
3834   enable_fast_install=yes
3835 fi;
3836
3837 # Make sure we can run config.sub.
3838 $ac_config_sub sun4 >/dev/null 2>&1 ||
3839   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3840 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3841    { (exit 1); exit 1; }; }
3842
3843 echo "$as_me:$LINENO: checking build system type" >&5
3844 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3845 if test "${ac_cv_build+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   ac_cv_build_alias=$build_alias
3849 test -z "$ac_cv_build_alias" &&
3850   ac_cv_build_alias=`$ac_config_guess`
3851 test -z "$ac_cv_build_alias" &&
3852   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3853 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3854    { (exit 1); exit 1; }; }
3855 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3856   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3857 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3858    { (exit 1); exit 1; }; }
3859
3860 fi
3861 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3862 echo "${ECHO_T}$ac_cv_build" >&6
3863 build=$ac_cv_build
3864 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3865 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3866 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3867
3868
3869 echo "$as_me:$LINENO: checking host system type" >&5
3870 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3871 if test "${ac_cv_host+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   ac_cv_host_alias=$host_alias
3875 test -z "$ac_cv_host_alias" &&
3876   ac_cv_host_alias=$ac_cv_build_alias
3877 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3878   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3879 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3880    { (exit 1); exit 1; }; }
3881
3882 fi
3883 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3884 echo "${ECHO_T}$ac_cv_host" >&6
3885 host=$ac_cv_host
3886 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3887 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3888 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3889
3890
3891 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3892 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3893 if test "${lt_cv_path_SED+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   # Loop through the user's path and test for sed and gsed.
3897 # Then use that list of sed's as ones to test for truncation.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for lt_ac_prog in sed gsed; do
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3906         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3907       fi
3908     done
3909   done
3910 done
3911 lt_ac_max=0
3912 lt_ac_count=0
3913 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3914 # along with /bin/sed that truncates output.
3915 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3916   test ! -f $lt_ac_sed && continue
3917   cat /dev/null > conftest.in
3918   lt_ac_count=0
3919   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3920   # Check for GNU sed and select it if it is found.
3921   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3922     lt_cv_path_SED=$lt_ac_sed
3923     break
3924   fi
3925   while true; do
3926     cat conftest.in conftest.in >conftest.tmp
3927     mv conftest.tmp conftest.in
3928     cp conftest.in conftest.nl
3929     echo >>conftest.nl
3930     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3931     cmp -s conftest.out conftest.nl || break
3932     # 10000 chars as input seems more than enough
3933     test $lt_ac_count -gt 10 && break
3934     lt_ac_count=`expr $lt_ac_count + 1`
3935     if test $lt_ac_count -gt $lt_ac_max; then
3936       lt_ac_max=$lt_ac_count
3937       lt_cv_path_SED=$lt_ac_sed
3938     fi
3939   done
3940 done
3941
3942 fi
3943
3944 SED=$lt_cv_path_SED
3945 echo "$as_me:$LINENO: result: $SED" >&5
3946 echo "${ECHO_T}$SED" >&6
3947
3948 echo "$as_me:$LINENO: checking for egrep" >&5
3949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3950 if test "${ac_cv_prog_egrep+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3954     then ac_cv_prog_egrep='grep -E'
3955     else ac_cv_prog_egrep='egrep'
3956     fi
3957 fi
3958 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3959 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3960  EGREP=$ac_cv_prog_egrep
3961
3962
3963
3964 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3965 if test "${with_gnu_ld+set}" = set; then
3966   withval="$with_gnu_ld"
3967   test "$withval" = no || with_gnu_ld=yes
3968 else
3969   with_gnu_ld=no
3970 fi;
3971 ac_prog=ld
3972 if test "$GCC" = yes; then
3973   # Check if gcc -print-prog-name=ld gives a path.
3974   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3975 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3976   case $host in
3977   *-*-mingw*)
3978     # gcc leaves a trailing carriage return which upsets mingw
3979     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3980   *)
3981     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3982   esac
3983   case $ac_prog in
3984     # Accept absolute paths.
3985     [\\/]* | ?:[\\/]*)
3986       re_direlt='/[^/][^/]*/\.\./'
3987       # Canonicalize the pathname of ld
3988       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3989       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3990         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3991       done
3992       test -z "$LD" && LD="$ac_prog"
3993       ;;
3994   "")
3995     # If it fails, then pretend we aren't using GCC.
3996     ac_prog=ld
3997     ;;
3998   *)
3999     # If it is relative, then search for the first ld in PATH.
4000     with_gnu_ld=unknown
4001     ;;
4002   esac
4003 elif test "$with_gnu_ld" = yes; then
4004   echo "$as_me:$LINENO: checking for GNU ld" >&5
4005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4006 else
4007   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4008 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4009 fi
4010 if test "${lt_cv_path_LD+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if test -z "$LD"; then
4014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4015   for ac_dir in $PATH; do
4016     IFS="$lt_save_ifs"
4017     test -z "$ac_dir" && ac_dir=.
4018     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4019       lt_cv_path_LD="$ac_dir/$ac_prog"
4020       # Check to see if the program is GNU ld.  I'd rather use --version,
4021       # but apparently some variants of GNU ld only accept -v.
4022       # Break only if it was the GNU/non-GNU ld that we prefer.
4023       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4024       *GNU* | *'with BFD'*)
4025         test "$with_gnu_ld" != no && break
4026         ;;
4027       *)
4028         test "$with_gnu_ld" != yes && break
4029         ;;
4030       esac
4031     fi
4032   done
4033   IFS="$lt_save_ifs"
4034 else
4035   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4036 fi
4037 fi
4038
4039 LD="$lt_cv_path_LD"
4040 if test -n "$LD"; then
4041   echo "$as_me:$LINENO: result: $LD" >&5
4042 echo "${ECHO_T}$LD" >&6
4043 else
4044   echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4046 fi
4047 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4048 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4049    { (exit 1); exit 1; }; }
4050 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4051 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4052 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4056 case `$LD -v 2>&1 </dev/null` in
4057 *GNU* | *'with BFD'*)
4058   lt_cv_prog_gnu_ld=yes
4059   ;;
4060 *)
4061   lt_cv_prog_gnu_ld=no
4062   ;;
4063 esac
4064 fi
4065 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4066 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4067 with_gnu_ld=$lt_cv_prog_gnu_ld
4068
4069
4070 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4071 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4072 if test "${lt_cv_ld_reload_flag+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   lt_cv_ld_reload_flag='-r'
4076 fi
4077 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4078 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4079 reload_flag=$lt_cv_ld_reload_flag
4080 case $reload_flag in
4081 "" | " "*) ;;
4082 *) reload_flag=" $reload_flag" ;;
4083 esac
4084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4085 case $host_os in
4086   darwin*)
4087     if test "$GCC" = yes; then
4088       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4089     else
4090       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4091     fi
4092     ;;
4093 esac
4094
4095 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4096 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4097 if test "${lt_cv_path_NM+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   if test -n "$NM"; then
4101   # Let the user override the test.
4102   lt_cv_path_NM="$NM"
4103 else
4104   lt_nm_to_check="${ac_tool_prefix}nm"
4105   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4106     lt_nm_to_check="$lt_nm_to_check nm"
4107   fi
4108   for lt_tmp_nm in $lt_nm_to_check; do
4109     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4110     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4111       IFS="$lt_save_ifs"
4112       test -z "$ac_dir" && ac_dir=.
4113       tmp_nm="$ac_dir/$lt_tmp_nm"
4114       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4115         # Check to see if the nm accepts a BSD-compat flag.
4116         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4117         #   nm: unknown option "B" ignored
4118         # Tru64's nm complains that /dev/null is an invalid object file
4119         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4120         */dev/null* | *'Invalid file or object type'*)
4121           lt_cv_path_NM="$tmp_nm -B"
4122           break
4123           ;;
4124         *)
4125           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4126           */dev/null*)
4127             lt_cv_path_NM="$tmp_nm -p"
4128             break
4129             ;;
4130           *)
4131             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4132             continue # so that we can try to find one that supports BSD flags
4133             ;;
4134           esac
4135           ;;
4136         esac
4137       fi
4138     done
4139     IFS="$lt_save_ifs"
4140   done
4141   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4142 fi
4143 fi
4144 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4145 echo "${ECHO_T}$lt_cv_path_NM" >&6
4146 NM="$lt_cv_path_NM"
4147
4148 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4149 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4150 LN_S=$as_ln_s
4151 if test "$LN_S" = "ln -s"; then
4152   echo "$as_me:$LINENO: result: yes" >&5
4153 echo "${ECHO_T}yes" >&6
4154 else
4155   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4156 echo "${ECHO_T}no, using $LN_S" >&6
4157 fi
4158
4159 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4160 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4161 if test "${lt_cv_deplibs_check_method+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   lt_cv_file_magic_cmd='$MAGIC_CMD'
4165 lt_cv_file_magic_test_file=
4166 lt_cv_deplibs_check_method='unknown'
4167 # Need to set the preceding variable on all platforms that support
4168 # interlibrary dependencies.
4169 # 'none' -- dependencies not supported.
4170 # `unknown' -- same as none, but documents that we really don't know.
4171 # 'pass_all' -- all dependencies passed with no checks.
4172 # 'test_compile' -- check by making test program.
4173 # 'file_magic [[regex]]' -- check by looking for files in library path
4174 # which responds to the $file_magic_cmd with a given extended regex.
4175 # If you have `file' or equivalent on your system and you're not sure
4176 # whether `pass_all' will *always* work, you probably want this one.
4177
4178 case $host_os in
4179 aix4* | aix5*)
4180   lt_cv_deplibs_check_method=pass_all
4181   ;;
4182
4183 beos*)
4184   lt_cv_deplibs_check_method=pass_all
4185   ;;
4186
4187 bsdi[45]*)
4188   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4189   lt_cv_file_magic_cmd='/usr/bin/file -L'
4190   lt_cv_file_magic_test_file=/shlib/libc.so
4191   ;;
4192
4193 cygwin*)
4194   # func_win32_libid is a shell function defined in ltmain.sh
4195   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4196   lt_cv_file_magic_cmd='func_win32_libid'
4197   ;;
4198
4199 mingw* | pw32*)
4200   # Base MSYS/MinGW do not provide the 'file' command needed by
4201   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4202   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4203   lt_cv_file_magic_cmd='$OBJDUMP -f'
4204   ;;
4205
4206 darwin* | rhapsody*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 freebsd* | kfreebsd*-gnu | dragonfly*)
4211   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4212     case $host_cpu in
4213     i*86 )
4214       # Not sure whether the presence of OpenBSD here was a mistake.
4215       # Let's accept both of them until this is cleared up.
4216       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4217       lt_cv_file_magic_cmd=/usr/bin/file
4218       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4219       ;;
4220     esac
4221   else
4222     lt_cv_deplibs_check_method=pass_all
4223   fi
4224   ;;
4225
4226 gnu*)
4227   lt_cv_deplibs_check_method=pass_all
4228   ;;
4229
4230 hpux10.20* | hpux11*)
4231   lt_cv_file_magic_cmd=/usr/bin/file
4232   case $host_cpu in
4233   ia64*)
4234     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4235     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4236     ;;
4237   hppa*64*)
4238     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]'
4239     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4240     ;;
4241   *)
4242     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4243     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4244     ;;
4245   esac
4246   ;;
4247
4248 interix3*)
4249   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4250   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4251   ;;
4252
4253 irix5* | irix6* | nonstopux*)
4254   case $LD in
4255   *-32|*"-32 ") libmagic=32-bit;;
4256   *-n32|*"-n32 ") libmagic=N32;;
4257   *-64|*"-64 ") libmagic=64-bit;;
4258   *) libmagic=never-match;;
4259   esac
4260   lt_cv_deplibs_check_method=pass_all
4261   ;;
4262
4263 # This must be Linux ELF.
4264 linux*)
4265   lt_cv_deplibs_check_method=pass_all
4266   ;;
4267
4268 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4269   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4270     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271   else
4272     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4273   fi
4274   ;;
4275
4276 newos6*)
4277   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4278   lt_cv_file_magic_cmd=/usr/bin/file
4279   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4280   ;;
4281
4282 nto-qnx*)
4283   lt_cv_deplibs_check_method=unknown
4284   ;;
4285
4286 openbsd*)
4287   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4288     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4289   else
4290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4291   fi
4292   ;;
4293
4294 osf3* | osf4* | osf5*)
4295   lt_cv_deplibs_check_method=pass_all
4296   ;;
4297
4298 solaris*)
4299   lt_cv_deplibs_check_method=pass_all
4300   ;;
4301
4302 sysv4 | sysv4.3*)
4303   case $host_vendor in
4304   motorola)
4305     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]'
4306     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4307     ;;
4308   ncr)
4309     lt_cv_deplibs_check_method=pass_all
4310     ;;
4311   sequent)
4312     lt_cv_file_magic_cmd='/bin/file'
4313     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4314     ;;
4315   sni)
4316     lt_cv_file_magic_cmd='/bin/file'
4317     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4318     lt_cv_file_magic_test_file=/lib/libc.so
4319     ;;
4320   siemens)
4321     lt_cv_deplibs_check_method=pass_all
4322     ;;
4323   pc)
4324     lt_cv_deplibs_check_method=pass_all
4325     ;;
4326   esac
4327   ;;
4328
4329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4330   lt_cv_deplibs_check_method=pass_all
4331   ;;
4332 esac
4333
4334 fi
4335 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4336 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4337 file_magic_cmd=$lt_cv_file_magic_cmd
4338 deplibs_check_method=$lt_cv_deplibs_check_method
4339 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4340
4341
4342
4343
4344 # If no C compiler was specified, use CC.
4345 LTCC=${LTCC-"$CC"}
4346
4347 # If no C compiler flags were specified, use CFLAGS.
4348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4349
4350 # Allow CC to be a program name with arguments.
4351 compiler=$CC
4352
4353
4354 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4355 if test "${enable_libtool_lock+set}" = set; then
4356   enableval="$enable_libtool_lock"
4357
4358 fi;
4359 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4360
4361 # Some flags need to be propagated to the compiler or linker for good
4362 # libtool support.
4363 case $host in
4364 ia64-*-hpux*)
4365   # Find out which ABI we are using.
4366   echo 'int i;' > conftest.$ac_ext
4367   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368   (eval $ac_compile) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; then
4372     case `/usr/bin/file conftest.$ac_objext` in
4373     *ELF-32*)
4374       HPUX_IA64_MODE="32"
4375       ;;
4376     *ELF-64*)
4377       HPUX_IA64_MODE="64"
4378       ;;
4379     esac
4380   fi
4381   rm -rf conftest*
4382   ;;
4383 *-*-irix6*)
4384   # Find out which ABI we are using.
4385   echo '#line 4385 "configure"' > conftest.$ac_ext
4386   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; then
4391    if test "$lt_cv_prog_gnu_ld" = yes; then
4392     case `/usr/bin/file conftest.$ac_objext` in
4393     *32-bit*)
4394       LD="${LD-ld} -melf32bsmip"
4395       ;;
4396     *N32*)
4397       LD="${LD-ld} -melf32bmipn32"
4398       ;;
4399     *64-bit*)
4400       LD="${LD-ld} -melf64bmip"
4401       ;;
4402     esac
4403    else
4404     case `/usr/bin/file conftest.$ac_objext` in
4405     *32-bit*)
4406       LD="${LD-ld} -32"
4407       ;;
4408     *N32*)
4409       LD="${LD-ld} -n32"
4410       ;;
4411     *64-bit*)
4412       LD="${LD-ld} -64"
4413       ;;
4414     esac
4415    fi
4416   fi
4417   rm -rf conftest*
4418   ;;
4419
4420 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4421   # Find out which ABI we are using.
4422   echo 'int i;' > conftest.$ac_ext
4423   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424   (eval $ac_compile) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; then
4428     case `/usr/bin/file conftest.o` in
4429     *32-bit*)
4430       case $host in
4431         x86_64-*linux*)
4432           LD="${LD-ld} -m elf_i386"
4433           ;;
4434         ppc64-*linux*|powerpc64-*linux*)
4435           LD="${LD-ld} -m elf32ppclinux"
4436           ;;
4437         s390x-*linux*)
4438           LD="${LD-ld} -m elf_s390"
4439           ;;
4440         sparc64-*linux*)
4441           LD="${LD-ld} -m elf32_sparc"
4442           ;;
4443       esac
4444       ;;
4445     *64-bit*)
4446       case $host in
4447         x86_64-*linux*)
4448           LD="${LD-ld} -m elf_x86_64"
4449           ;;
4450         ppc*-*linux*|powerpc*-*linux*)
4451           LD="${LD-ld} -m elf64ppc"
4452           ;;
4453         s390*-*linux*)
4454           LD="${LD-ld} -m elf64_s390"
4455           ;;
4456         sparc*-*linux*)
4457           LD="${LD-ld} -m elf64_sparc"
4458           ;;
4459       esac
4460       ;;
4461     esac
4462   fi
4463   rm -rf conftest*
4464   ;;
4465
4466 *-*-sco3.2v5*)
4467   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4468   SAVE_CFLAGS="$CFLAGS"
4469   CFLAGS="$CFLAGS -belf"
4470   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4471 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4472 if test "${lt_cv_cc_needs_belf+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   ac_ext=c
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481      cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487
4488 int
4489 main ()
4490 {
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498   (eval $ac_link) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; } &&
4511          { ac_try='test -s conftest$ac_exeext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   lt_cv_cc_needs_belf=yes
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 lt_cv_cc_needs_belf=no
4523 fi
4524 rm -f conftest.err conftest.$ac_objext \
4525       conftest$ac_exeext conftest.$ac_ext
4526      ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532 fi
4533 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4534 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4535   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4536     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4537     CFLAGS="$SAVE_CFLAGS"
4538   fi
4539   ;;
4540 sparc*-*solaris*)
4541   # Find out which ABI we are using.
4542   echo 'int i;' > conftest.$ac_ext
4543   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544   (eval $ac_compile) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; then
4548     case `/usr/bin/file conftest.o` in
4549     *64-bit*)
4550       case $lt_cv_prog_gnu_ld in
4551       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4552       *)    LD="${LD-ld} -64" ;;
4553       esac
4554       ;;
4555     esac
4556   fi
4557   rm -rf conftest*
4558   ;;
4559
4560
4561 esac
4562
4563 need_locks="$enable_libtool_lock"
4564
4565
4566
4567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4569 if test "${ac_cv_header_stdc+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <stdlib.h>
4579 #include <stdarg.h>
4580 #include <string.h>
4581 #include <float.h>
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593   (eval $ac_compile) 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602   (eval $ac_try) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; } &&
4606          { ac_try='test -s conftest.$ac_objext'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; }; then
4612   ac_cv_header_stdc=yes
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 ac_cv_header_stdc=no
4618 fi
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621 if test $ac_cv_header_stdc = yes; then
4622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4623   cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629 #include <string.h>
4630
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633   $EGREP "memchr" >/dev/null 2>&1; then
4634   :
4635 else
4636   ac_cv_header_stdc=no
4637 fi
4638 rm -f conftest*
4639
4640 fi
4641
4642 if test $ac_cv_header_stdc = yes; then
4643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644   cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 #include <stdlib.h>
4651
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654   $EGREP "free" >/dev/null 2>&1; then
4655   :
4656 else
4657   ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4660
4661 fi
4662
4663 if test $ac_cv_header_stdc = yes; then
4664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4665   if test "$cross_compiling" = yes; then
4666   :
4667 else
4668   cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 #include <ctype.h>
4675 #if ((' ' & 0x0FF) == 0x020)
4676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4678 #else
4679 # define ISLOWER(c) \
4680                    (('a' <= (c) && (c) <= 'i') \
4681                      || ('j' <= (c) && (c) <= 'r') \
4682                      || ('s' <= (c) && (c) <= 'z'))
4683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4684 #endif
4685
4686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4687 int
4688 main ()
4689 {
4690   int i;
4691   for (i = 0; i < 256; i++)
4692     if (XOR (islower (i), ISLOWER (i))
4693         || toupper (i) != TOUPPER (i))
4694       exit(2);
4695   exit (0);
4696 }
4697 _ACEOF
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700   (eval $ac_link) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   :
4710 else
4711   echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 ( exit $ac_status )
4716 ac_cv_header_stdc=no
4717 fi
4718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 fi
4721 fi
4722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4724 if test $ac_cv_header_stdc = yes; then
4725
4726 cat >>confdefs.h <<\_ACEOF
4727 #define STDC_HEADERS 1
4728 _ACEOF
4729
4730 fi
4731
4732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4743                   inttypes.h stdint.h unistd.h
4744 do
4745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4746 echo "$as_me:$LINENO: checking for $ac_header" >&5
4747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 $ac_includes_default
4758
4759 #include <$ac_header>
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763   (eval $ac_compile) 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } &&
4770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; } &&
4776          { ac_try='test -s conftest.$ac_objext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   eval "$as_ac_Header=yes"
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 eval "$as_ac_Header=no"
4788 fi
4789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794   cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796 _ACEOF
4797
4798 fi
4799
4800 done
4801
4802
4803
4804 for ac_header in dlfcn.h
4805 do
4806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808   echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815 else
4816   # Is the header compilable?
4817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h.  */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h.  */
4825 $ac_includes_default
4826 #include <$ac_header>
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_header_compiler=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_header_compiler=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 echo "${ECHO_T}$ac_header_compiler" >&6
4859
4860 # Is the header present?
4861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 #include <$ac_header>
4870 _ACEOF
4871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4873   ac_status=$?
4874   grep -v '^ *+' conftest.er1 >conftest.err
4875   rm -f conftest.er1
4876   cat conftest.err >&5
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } >/dev/null; then
4879   if test -s conftest.err; then
4880     ac_cpp_err=$ac_c_preproc_warn_flag
4881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4882   else
4883     ac_cpp_err=
4884   fi
4885 else
4886   ac_cpp_err=yes
4887 fi
4888 if test -z "$ac_cpp_err"; then
4889   ac_header_preproc=yes
4890 else
4891   echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894   ac_header_preproc=no
4895 fi
4896 rm -f conftest.err conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 echo "${ECHO_T}$ac_header_preproc" >&6
4899
4900 # So?  What about this header?
4901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4902   yes:no: )
4903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4907     ac_header_preproc=yes
4908     ;;
4909   no:yes:* )
4910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4912     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4913 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4914     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4916     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4917 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4922     (
4923       cat <<\_ASBOX
4924 ## ------------------------------------ ##
4925 ## Report this to opensource@google.com ##
4926 ## ------------------------------------ ##
4927 _ASBOX
4928     ) |
4929       sed "s/^/$as_me: WARNING:     /" >&2
4930     ;;
4931 esac
4932 echo "$as_me:$LINENO: checking for $ac_header" >&5
4933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   eval "$as_ac_Header=\$ac_header_preproc"
4938 fi
4939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4941
4942 fi
4943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944   cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946 _ACEOF
4947
4948 fi
4949
4950 done
4951
4952
4953
4954 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4955     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4956     (test "X$CXX" != "Xg++"))) ; then
4957   ac_ext=cc
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4964 if test -z "$CXXCPP"; then
4965   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968       # Double quotes because CXXCPP needs to be expanded
4969     for CXXCPP in "$CXX -E" "/lib/cpp"
4970     do
4971       ac_preproc_ok=false
4972 for ac_cxx_preproc_warn_flag in '' yes
4973 do
4974   # Use a header file that comes with gcc, so configuring glibc
4975   # with a fresh cross-compiler works.
4976   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977   # <limits.h> exists even on freestanding compilers.
4978   # On the NeXT, cc -E runs the code through the compiler's parser,
4979   # not just through cpp. "Syntax error" is here to catch this case.
4980   cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991                      Syntax error
4992 _ACEOF
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } >/dev/null; then
5001   if test -s conftest.err; then
5002     ac_cpp_err=$ac_cxx_preproc_warn_flag
5003     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5004   else
5005     ac_cpp_err=
5006   fi
5007 else
5008   ac_cpp_err=yes
5009 fi
5010 if test -z "$ac_cpp_err"; then
5011   :
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016   # Broken: fails on valid input.
5017 continue
5018 fi
5019 rm -f conftest.err conftest.$ac_ext
5020
5021   # OK, works on sane cases.  Now check whether non-existent headers
5022   # can be detected and how.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <ac_nonexistent.h>
5030 _ACEOF
5031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033   ac_status=$?
5034   grep -v '^ *+' conftest.er1 >conftest.err
5035   rm -f conftest.er1
5036   cat conftest.err >&5
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } >/dev/null; then
5039   if test -s conftest.err; then
5040     ac_cpp_err=$ac_cxx_preproc_warn_flag
5041     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5042   else
5043     ac_cpp_err=
5044   fi
5045 else
5046   ac_cpp_err=yes
5047 fi
5048 if test -z "$ac_cpp_err"; then
5049   # Broken: success on invalid input.
5050 continue
5051 else
5052   echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055   # Passes both tests.
5056 ac_preproc_ok=:
5057 break
5058 fi
5059 rm -f conftest.err conftest.$ac_ext
5060
5061 done
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then
5065   break
5066 fi
5067
5068     done
5069     ac_cv_prog_CXXCPP=$CXXCPP
5070
5071 fi
5072   CXXCPP=$ac_cv_prog_CXXCPP
5073 else
5074   ac_cv_prog_CXXCPP=$CXXCPP
5075 fi
5076 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077 echo "${ECHO_T}$CXXCPP" >&6
5078 ac_preproc_ok=false
5079 for ac_cxx_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } >/dev/null; then
5108   if test -s conftest.err; then
5109     ac_cpp_err=$ac_cxx_preproc_warn_flag
5110     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5111   else
5112     ac_cpp_err=
5113   fi
5114 else
5115   ac_cpp_err=yes
5116 fi
5117 if test -z "$ac_cpp_err"; then
5118   :
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123   # Broken: fails on valid input.
5124 continue
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127
5128   # OK, works on sane cases.  Now check whether non-existent headers
5129   # can be detected and how.
5130   cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 #include <ac_nonexistent.h>
5137 _ACEOF
5138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } >/dev/null; then
5146   if test -s conftest.err; then
5147     ac_cpp_err=$ac_cxx_preproc_warn_flag
5148     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5149   else
5150     ac_cpp_err=
5151   fi
5152 else
5153   ac_cpp_err=yes
5154 fi
5155 if test -z "$ac_cpp_err"; then
5156   # Broken: success on invalid input.
5157 continue
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162   # Passes both tests.
5163 ac_preproc_ok=:
5164 break
5165 fi
5166 rm -f conftest.err conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5172   :
5173 else
5174   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&2;}
5178    { (exit 1); exit 1; }; }
5179 fi
5180
5181 ac_ext=cc
5182 ac_cpp='$CXXCPP $CPPFLAGS'
5183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5186
5187 fi
5188
5189
5190 ac_ext=f
5191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5194 if test -n "$ac_tool_prefix"; then
5195   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5196   do
5197     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_F77+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   if test -n "$F77"; then
5205   ac_cv_prog_F77="$F77" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210   IFS=$as_save_IFS
5211   test -z "$as_dir" && as_dir=.
5212   for ac_exec_ext in '' $ac_executable_extensions; do
5213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219 done
5220
5221 fi
5222 fi
5223 F77=$ac_cv_prog_F77
5224 if test -n "$F77"; then
5225   echo "$as_me:$LINENO: result: $F77" >&5
5226 echo "${ECHO_T}$F77" >&6
5227 else
5228   echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231
5232     test -n "$F77" && break
5233   done
5234 fi
5235 if test -z "$F77"; then
5236   ac_ct_F77=$F77
5237   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5238 do
5239   # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   if test -n "$ac_ct_F77"; then
5247   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254   for ac_exec_ext in '' $ac_executable_extensions; do
5255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256     ac_cv_prog_ac_ct_F77="$ac_prog"
5257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261 done
5262
5263 fi
5264 fi
5265 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5266 if test -n "$ac_ct_F77"; then
5267   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5268 echo "${ECHO_T}$ac_ct_F77" >&6
5269 else
5270   echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5272 fi
5273
5274   test -n "$ac_ct_F77" && break
5275 done
5276
5277   F77=$ac_ct_F77
5278 fi
5279
5280
5281 # Provide some information about the compiler.
5282 echo "$as_me:5282:" \
5283      "checking for Fortran 77 compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5286   (eval $ac_compiler --version </dev/null >&5) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }
5290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5291   (eval $ac_compiler -v </dev/null >&5) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5296   (eval $ac_compiler -V </dev/null >&5) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }
5300 rm -f a.out
5301
5302 # If we don't use `.F' as extension, the preprocessor is not run on the
5303 # input file.  (Note that this only needs to work for GNU compilers.)
5304 ac_save_ext=$ac_ext
5305 ac_ext=F
5306 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5307 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5308 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   cat >conftest.$ac_ext <<_ACEOF
5312       program main
5313 #ifndef __GNUC__
5314        choke me
5315 #endif
5316
5317       end
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321   (eval $ac_compile) 2>conftest.er1
5322   ac_status=$?
5323   grep -v '^ *+' conftest.er1 >conftest.err
5324   rm -f conftest.er1
5325   cat conftest.err >&5
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; } &&
5334          { ac_try='test -s conftest.$ac_objext'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; }; then
5340   ac_compiler_gnu=yes
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 ac_compiler_gnu=no
5346 fi
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5349
5350 fi
5351 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5352 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5353 ac_ext=$ac_save_ext
5354 ac_test_FFLAGS=${FFLAGS+set}
5355 ac_save_FFLAGS=$FFLAGS
5356 FFLAGS=
5357 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5358 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5359 if test "${ac_cv_prog_f77_g+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   FFLAGS=-g
5363 cat >conftest.$ac_ext <<_ACEOF
5364       program main
5365
5366       end
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370   (eval $ac_compile) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } &&
5377          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379   (eval $ac_try) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }; } &&
5383          { ac_try='test -s conftest.$ac_objext'
5384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385   (eval $ac_try) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; }; then
5389   ac_cv_prog_f77_g=yes
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ac_cv_prog_f77_g=no
5395 fi
5396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5397
5398 fi
5399 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5400 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5401 if test "$ac_test_FFLAGS" = set; then
5402   FFLAGS=$ac_save_FFLAGS
5403 elif test $ac_cv_prog_f77_g = yes; then
5404   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5405     FFLAGS="-g -O2"
5406   else
5407     FFLAGS="-g"
5408   fi
5409 else
5410   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5411     FFLAGS="-O2"
5412   else
5413     FFLAGS=
5414   fi
5415 fi
5416
5417 G77=`test $ac_compiler_gnu = yes && echo yes`
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
5424
5425
5426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5427
5428 # find the maximum length of command line arguments
5429 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434     i=0
5435   teststring="ABCD"
5436
5437   case $build_os in
5438   msdosdjgpp*)
5439     # On DJGPP, this test can blow up pretty badly due to problems in libc
5440     # (any single argument exceeding 2000 bytes causes a buffer overrun
5441     # during glob expansion).  Even if it were fixed, the result of this
5442     # check would be larger than it should be.
5443     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5444     ;;
5445
5446   gnu*)
5447     # Under GNU Hurd, this test is not required because there is
5448     # no limit to the length of command line arguments.
5449     # Libtool will interpret -1 as no limit whatsoever
5450     lt_cv_sys_max_cmd_len=-1;
5451     ;;
5452
5453   cygwin* | mingw*)
5454     # On Win9x/ME, this test blows up -- it succeeds, but takes
5455     # about 5 minutes as the teststring grows exponentially.
5456     # Worse, since 9x/ME are not pre-emptively multitasking,
5457     # you end up with a "frozen" computer, even though with patience
5458     # the test eventually succeeds (with a max line length of 256k).
5459     # Instead, let's just punt: use the minimum linelength reported by
5460     # all of the supported platforms: 8192 (on NT/2K/XP).
5461     lt_cv_sys_max_cmd_len=8192;
5462     ;;
5463
5464   amigaos*)
5465     # On AmigaOS with pdksh, this test takes hours, literally.
5466     # So we just punt and use a minimum line length of 8192.
5467     lt_cv_sys_max_cmd_len=8192;
5468     ;;
5469
5470   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5471     # This has been around since 386BSD, at least.  Likely further.
5472     if test -x /sbin/sysctl; then
5473       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5474     elif test -x /usr/sbin/sysctl; then
5475       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5476     else
5477       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5478     fi
5479     # And add a safety zone
5480     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5481     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5482     ;;
5483
5484   interix*)
5485     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5486     lt_cv_sys_max_cmd_len=196608
5487     ;;
5488
5489   osf*)
5490     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492     # nice to cause kernel panics so lets avoid the loop below.
5493     # First set a reasonable default.
5494     lt_cv_sys_max_cmd_len=16384
5495     #
5496     if test -x /sbin/sysconfig; then
5497       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499       esac
5500     fi
5501     ;;
5502   sco3.2v5*)
5503     lt_cv_sys_max_cmd_len=102400
5504     ;;
5505   sysv5* | sco5v6* | sysv4.2uw2*)
5506     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507     if test -n "$kargmax"; then
5508       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5509     else
5510       lt_cv_sys_max_cmd_len=32768
5511     fi
5512     ;;
5513   *)
5514     # If test is not a shell built-in, we'll probably end up computing a
5515     # maximum length that is only half of the actual maximum length, but
5516     # we can't tell.
5517     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5519                = "XX$teststring") >/dev/null 2>&1 &&
5520             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5521             lt_cv_sys_max_cmd_len=$new_result &&
5522             test $i != 17 # 1/2 MB should be enough
5523     do
5524       i=`expr $i + 1`
5525       teststring=$teststring$teststring
5526     done
5527     teststring=
5528     # Add a significant safety factor because C++ compilers can tack on massive
5529     # amounts of additional arguments before passing them to the linker.
5530     # It appears as though 1/2 is a usable value.
5531     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5532     ;;
5533   esac
5534
5535 fi
5536
5537 if test -n $lt_cv_sys_max_cmd_len ; then
5538   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5540 else
5541   echo "$as_me:$LINENO: result: none" >&5
5542 echo "${ECHO_T}none" >&6
5543 fi
5544
5545
5546
5547
5548 # Check for command to grab the raw symbol name followed by C symbol from nm.
5549 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554
5555 # These are sane defaults that work on at least a few old systems.
5556 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5557
5558 # Character class describing NM global symbol codes.
5559 symcode='[BCDEGRST]'
5560
5561 # Regexp to match symbols that can be accessed directly from C.
5562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5563
5564 # Transform an extracted symbol line into a proper C declaration
5565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5566
5567 # Transform an extracted symbol line into symbol name and symbol address
5568 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5569
5570 # Define system-specific variables.
5571 case $host_os in
5572 aix*)
5573   symcode='[BCDT]'
5574   ;;
5575 cygwin* | mingw* | pw32*)
5576   symcode='[ABCDGISTW]'
5577   ;;
5578 hpux*) # Its linker distinguishes data from code symbols
5579   if test "$host_cpu" = ia64; then
5580     symcode='[ABCDEGRST]'
5581   fi
5582   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5583   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5584   ;;
5585 linux*)
5586   if test "$host_cpu" = ia64; then
5587     symcode='[ABCDGIRSTW]'
5588     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5589     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5590   fi
5591   ;;
5592 irix* | nonstopux*)
5593   symcode='[BCDEGRST]'
5594   ;;
5595 osf*)
5596   symcode='[BCDEGQRST]'
5597   ;;
5598 solaris*)
5599   symcode='[BDRT]'
5600   ;;
5601 sco3.2v5*)
5602   symcode='[DT]'
5603   ;;
5604 sysv4.2uw2*)
5605   symcode='[DT]'
5606   ;;
5607 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5608   symcode='[ABDT]'
5609   ;;
5610 sysv4)
5611   symcode='[DFNSTU]'
5612   ;;
5613 esac
5614
5615 # Handle CRLF in mingw tool chain
5616 opt_cr=
5617 case $build_os in
5618 mingw*)
5619   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5620   ;;
5621 esac
5622
5623 # If we're using GNU nm, then use its standard symbol codes.
5624 case `$NM -V 2>&1` in
5625 *GNU* | *'with BFD'*)
5626   symcode='[ABCDGIRSTW]' ;;
5627 esac
5628
5629 # Try without a prefix undercore, then with it.
5630 for ac_symprfx in "" "_"; do
5631
5632   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5633   symxfrm="\\1 $ac_symprfx\\2 \\2"
5634
5635   # Write the raw and C identifiers.
5636   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5637
5638   # Check to see that the pipe works correctly.
5639   pipe_works=no
5640
5641   rm -f conftest*
5642   cat > conftest.$ac_ext <<EOF
5643 #ifdef __cplusplus
5644 extern "C" {
5645 #endif
5646 char nm_test_var;
5647 void nm_test_func(){}
5648 #ifdef __cplusplus
5649 }
5650 #endif
5651 int main(){nm_test_var='a';nm_test_func();return(0);}
5652 EOF
5653
5654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; then
5659     # Now try to grab the symbols.
5660     nlist=conftest.nm
5661     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5662   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && test -s "$nlist"; then
5666       # Try sorting and uniquifying the output.
5667       if sort "$nlist" | uniq > "$nlist"T; then
5668         mv -f "$nlist"T "$nlist"
5669       else
5670         rm -f "$nlist"T
5671       fi
5672
5673       # Make sure that we snagged all the symbols we need.
5674       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5675         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5676           cat <<EOF > conftest.$ac_ext
5677 #ifdef __cplusplus
5678 extern "C" {
5679 #endif
5680
5681 EOF
5682           # Now generate the symbol file.
5683           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5684
5685           cat <<EOF >> conftest.$ac_ext
5686 #if defined (__STDC__) && __STDC__
5687 # define lt_ptr_t void *
5688 #else
5689 # define lt_ptr_t char *
5690 # define const
5691 #endif
5692
5693 /* The mapping between symbol names and symbols. */
5694 const struct {
5695   const char *name;
5696   lt_ptr_t address;
5697 }
5698 lt_preloaded_symbols[] =
5699 {
5700 EOF
5701           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5702           cat <<\EOF >> conftest.$ac_ext
5703   {0, (lt_ptr_t) 0}
5704 };
5705
5706 #ifdef __cplusplus
5707 }
5708 #endif
5709 EOF
5710           # Now try linking the two files.
5711           mv conftest.$ac_objext conftstm.$ac_objext
5712           lt_save_LIBS="$LIBS"
5713           lt_save_CFLAGS="$CFLAGS"
5714           LIBS="conftstm.$ac_objext"
5715           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5716           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717   (eval $ac_link) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5721             pipe_works=yes
5722           fi
5723           LIBS="$lt_save_LIBS"
5724           CFLAGS="$lt_save_CFLAGS"
5725         else
5726           echo "cannot find nm_test_func in $nlist" >&5
5727         fi
5728       else
5729         echo "cannot find nm_test_var in $nlist" >&5
5730       fi
5731     else
5732       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5733     fi
5734   else
5735     echo "$progname: failed program was:" >&5
5736     cat conftest.$ac_ext >&5
5737   fi
5738   rm -f conftest* conftst*
5739
5740   # Do not use the global_symbol_pipe unless it works.
5741   if test "$pipe_works" = yes; then
5742     break
5743   else
5744     lt_cv_sys_global_symbol_pipe=
5745   fi
5746 done
5747
5748 fi
5749
5750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5751   lt_cv_sys_global_symbol_to_cdecl=
5752 fi
5753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5754   echo "$as_me:$LINENO: result: failed" >&5
5755 echo "${ECHO_T}failed" >&6
5756 else
5757   echo "$as_me:$LINENO: result: ok" >&5
5758 echo "${ECHO_T}ok" >&6
5759 fi
5760
5761 echo "$as_me:$LINENO: checking for objdir" >&5
5762 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5763 if test "${lt_cv_objdir+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   rm -f .libs 2>/dev/null
5767 mkdir .libs 2>/dev/null
5768 if test -d .libs; then
5769   lt_cv_objdir=.libs
5770 else
5771   # MS-DOS does not allow filenames that begin with a dot.
5772   lt_cv_objdir=_libs
5773 fi
5774 rmdir .libs 2>/dev/null
5775 fi
5776 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5777 echo "${ECHO_T}$lt_cv_objdir" >&6
5778 objdir=$lt_cv_objdir
5779
5780
5781
5782
5783
5784 case $host_os in
5785 aix3*)
5786   # AIX sometimes has problems with the GCC collect2 program.  For some
5787   # reason, if we set the COLLECT_NAMES environment variable, the problems
5788   # vanish in a puff of smoke.
5789   if test "X${COLLECT_NAMES+set}" != Xset; then
5790     COLLECT_NAMES=
5791     export COLLECT_NAMES
5792   fi
5793   ;;
5794 esac
5795
5796 # Sed substitution that helps us do robust quoting.  It backslashifies
5797 # metacharacters that are still active within double-quoted strings.
5798 Xsed='sed -e 1s/^X//'
5799 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5800
5801 # Same as above, but do not quote variable references.
5802 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5803
5804 # Sed substitution to delay expansion of an escaped shell variable in a
5805 # double_quote_subst'ed string.
5806 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5807
5808 # Sed substitution to avoid accidental globbing in evaled expressions
5809 no_glob_subst='s/\*/\\\*/g'
5810
5811 # Constants:
5812 rm="rm -f"
5813
5814 # Global variables:
5815 default_ofile=libtool
5816 can_build_shared=yes
5817
5818 # All known linkers require a `.a' archive for static linking (except MSVC,
5819 # which needs '.lib').
5820 libext=a
5821 ltmain="$ac_aux_dir/ltmain.sh"
5822 ofile="$default_ofile"
5823 with_gnu_ld="$lt_cv_prog_gnu_ld"
5824
5825 if test -n "$ac_tool_prefix"; then
5826   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ar; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_prog_AR+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   if test -n "$AR"; then
5834   ac_cv_prog_AR="$AR" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841   for ac_exec_ext in '' $ac_executable_extensions; do
5842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843     ac_cv_prog_AR="${ac_tool_prefix}ar"
5844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848 done
5849
5850 fi
5851 fi
5852 AR=$ac_cv_prog_AR
5853 if test -n "$AR"; then
5854   echo "$as_me:$LINENO: result: $AR" >&5
5855 echo "${ECHO_T}$AR" >&6
5856 else
5857   echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860
5861 fi
5862 if test -z "$ac_cv_prog_AR"; then
5863   ac_ct_AR=$AR
5864   # Extract the first word of "ar", so it can be a program name with args.
5865 set dummy ar; ac_word=$2
5866 echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   if test -n "$ac_ct_AR"; then
5872   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879   for ac_exec_ext in '' $ac_executable_extensions; do
5880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881     ac_cv_prog_ac_ct_AR="ar"
5882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886 done
5887
5888   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5889 fi
5890 fi
5891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5892 if test -n "$ac_ct_AR"; then
5893   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5894 echo "${ECHO_T}$ac_ct_AR" >&6
5895 else
5896   echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6
5898 fi
5899
5900   AR=$ac_ct_AR
5901 else
5902   AR="$ac_cv_prog_AR"
5903 fi
5904
5905 if test -n "$ac_tool_prefix"; then
5906   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_RANLIB+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   if test -n "$RANLIB"; then
5914   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929
5930 fi
5931 fi
5932 RANLIB=$ac_cv_prog_RANLIB
5933 if test -n "$RANLIB"; then
5934   echo "$as_me:$LINENO: result: $RANLIB" >&5
5935 echo "${ECHO_T}$RANLIB" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5939 fi
5940
5941 fi
5942 if test -z "$ac_cv_prog_RANLIB"; then
5943   ac_ct_RANLIB=$RANLIB
5944   # Extract the first word of "ranlib", so it can be a program name with args.
5945 set dummy ranlib; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   if test -n "$ac_ct_RANLIB"; then
5952   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961     ac_cv_prog_ac_ct_RANLIB="ranlib"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967
5968   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5969 fi
5970 fi
5971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972 if test -n "$ac_ct_RANLIB"; then
5973   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5974 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5975 else
5976   echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5978 fi
5979
5980   RANLIB=$ac_ct_RANLIB
5981 else
5982   RANLIB="$ac_cv_prog_RANLIB"
5983 fi
5984
5985 if test -n "$ac_tool_prefix"; then
5986   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}strip; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_STRIP+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   if test -n "$STRIP"; then
5994   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009
6010 fi
6011 fi
6012 STRIP=$ac_cv_prog_STRIP
6013 if test -n "$STRIP"; then
6014   echo "$as_me:$LINENO: result: $STRIP" >&5
6015 echo "${ECHO_T}$STRIP" >&6
6016 else
6017   echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6019 fi
6020
6021 fi
6022 if test -z "$ac_cv_prog_STRIP"; then
6023   ac_ct_STRIP=$STRIP
6024   # Extract the first word of "strip", so it can be a program name with args.
6025 set dummy strip; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   if test -n "$ac_ct_STRIP"; then
6032   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041     ac_cv_prog_ac_ct_STRIP="strip"
6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047
6048   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6049 fi
6050 fi
6051 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6052 if test -n "$ac_ct_STRIP"; then
6053   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6054 echo "${ECHO_T}$ac_ct_STRIP" >&6
6055 else
6056   echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6058 fi
6059
6060   STRIP=$ac_ct_STRIP
6061 else
6062   STRIP="$ac_cv_prog_STRIP"
6063 fi
6064
6065
6066 old_CC="$CC"
6067 old_CFLAGS="$CFLAGS"
6068
6069 # Set sane defaults for various variables
6070 test -z "$AR" && AR=ar
6071 test -z "$AR_FLAGS" && AR_FLAGS=cru
6072 test -z "$AS" && AS=as
6073 test -z "$CC" && CC=cc
6074 test -z "$LTCC" && LTCC=$CC
6075 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6076 test -z "$DLLTOOL" && DLLTOOL=dlltool
6077 test -z "$LD" && LD=ld
6078 test -z "$LN_S" && LN_S="ln -s"
6079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6080 test -z "$NM" && NM=nm
6081 test -z "$SED" && SED=sed
6082 test -z "$OBJDUMP" && OBJDUMP=objdump
6083 test -z "$RANLIB" && RANLIB=:
6084 test -z "$STRIP" && STRIP=:
6085 test -z "$ac_objext" && ac_objext=o
6086
6087 # Determine commands to create old-style static archives.
6088 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6089 old_postinstall_cmds='chmod 644 $oldlib'
6090 old_postuninstall_cmds=
6091
6092 if test -n "$RANLIB"; then
6093   case $host_os in
6094   openbsd*)
6095     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6096     ;;
6097   *)
6098     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6099     ;;
6100   esac
6101   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6102 fi
6103
6104 for cc_temp in $compiler""; do
6105   case $cc_temp in
6106     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6107     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6108     \-*) ;;
6109     *) break;;
6110   esac
6111 done
6112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6113
6114
6115 # Only perform the check for file, if the check method requires it
6116 case $deplibs_check_method in
6117 file_magic*)
6118   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6119     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6120 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   case $MAGIC_CMD in
6125 [\\/*] |  ?:[\\/]*)
6126   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6127   ;;
6128 *)
6129   lt_save_MAGIC_CMD="$MAGIC_CMD"
6130   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6131   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6132   for ac_dir in $ac_dummy; do
6133     IFS="$lt_save_ifs"
6134     test -z "$ac_dir" && ac_dir=.
6135     if test -f $ac_dir/${ac_tool_prefix}file; then
6136       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6137       if test -n "$file_magic_test_file"; then
6138         case $deplibs_check_method in
6139         "file_magic "*)
6140           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6141           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6142           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6143             $EGREP "$file_magic_regex" > /dev/null; then
6144             :
6145           else
6146             cat <<EOF 1>&2
6147
6148 *** Warning: the command libtool uses to detect shared libraries,
6149 *** $file_magic_cmd, produces output that libtool cannot recognize.
6150 *** The result is that libtool may fail to recognize shared libraries
6151 *** as such.  This will affect the creation of libtool libraries that
6152 *** depend on shared libraries, but programs linked with such libtool
6153 *** libraries will work regardless of this problem.  Nevertheless, you
6154 *** may want to report the problem to your system manager and/or to
6155 *** bug-libtool@gnu.org
6156
6157 EOF
6158           fi ;;
6159         esac
6160       fi
6161       break
6162     fi
6163   done
6164   IFS="$lt_save_ifs"
6165   MAGIC_CMD="$lt_save_MAGIC_CMD"
6166   ;;
6167 esac
6168 fi
6169
6170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6171 if test -n "$MAGIC_CMD"; then
6172   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6173 echo "${ECHO_T}$MAGIC_CMD" >&6
6174 else
6175   echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6
6177 fi
6178
6179 if test -z "$lt_cv_path_MAGIC_CMD"; then
6180   if test -n "$ac_tool_prefix"; then
6181     echo "$as_me:$LINENO: checking for file" >&5
6182 echo $ECHO_N "checking for file... $ECHO_C" >&6
6183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   case $MAGIC_CMD in
6187 [\\/*] |  ?:[\\/]*)
6188   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6189   ;;
6190 *)
6191   lt_save_MAGIC_CMD="$MAGIC_CMD"
6192   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6193   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6194   for ac_dir in $ac_dummy; do
6195     IFS="$lt_save_ifs"
6196     test -z "$ac_dir" && ac_dir=.
6197     if test -f $ac_dir/file; then
6198       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6199       if test -n "$file_magic_test_file"; then
6200         case $deplibs_check_method in
6201         "file_magic "*)
6202           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6203           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6204           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6205             $EGREP "$file_magic_regex" > /dev/null; then
6206             :
6207           else
6208             cat <<EOF 1>&2
6209
6210 *** Warning: the command libtool uses to detect shared libraries,
6211 *** $file_magic_cmd, produces output that libtool cannot recognize.
6212 *** The result is that libtool may fail to recognize shared libraries
6213 *** as such.  This will affect the creation of libtool libraries that
6214 *** depend on shared libraries, but programs linked with such libtool
6215 *** libraries will work regardless of this problem.  Nevertheless, you
6216 *** may want to report the problem to your system manager and/or to
6217 *** bug-libtool@gnu.org
6218
6219 EOF
6220           fi ;;
6221         esac
6222       fi
6223       break
6224     fi
6225   done
6226   IFS="$lt_save_ifs"
6227   MAGIC_CMD="$lt_save_MAGIC_CMD"
6228   ;;
6229 esac
6230 fi
6231
6232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233 if test -n "$MAGIC_CMD"; then
6234   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6235 echo "${ECHO_T}$MAGIC_CMD" >&6
6236 else
6237   echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6239 fi
6240
6241   else
6242     MAGIC_CMD=:
6243   fi
6244 fi
6245
6246   fi
6247   ;;
6248 esac
6249
6250 enable_dlopen=no
6251 enable_win32_dll=no
6252
6253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6254 if test "${enable_libtool_lock+set}" = set; then
6255   enableval="$enable_libtool_lock"
6256
6257 fi;
6258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6259
6260
6261 # Check whether --with-pic or --without-pic was given.
6262 if test "${with_pic+set}" = set; then
6263   withval="$with_pic"
6264   pic_mode="$withval"
6265 else
6266   pic_mode=default
6267 fi;
6268 test -z "$pic_mode" && pic_mode=default
6269
6270 # Use C for the default configuration in the libtool script
6271 tagname=
6272 lt_save_CC="$CC"
6273 ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278
6279
6280 # Source file extension for C test sources.
6281 ac_ext=c
6282
6283 # Object file extension for compiled C test sources.
6284 objext=o
6285 objext=$objext
6286
6287 # Code to be used in simple compile tests
6288 lt_simple_compile_test_code="int some_variable = 0;\n"
6289
6290 # Code to be used in simple link tests
6291 lt_simple_link_test_code='int main(){return(0);}\n'
6292
6293
6294 # If no C compiler was specified, use CC.
6295 LTCC=${LTCC-"$CC"}
6296
6297 # If no C compiler flags were specified, use CFLAGS.
6298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6299
6300 # Allow CC to be a program name with arguments.
6301 compiler=$CC
6302
6303
6304 # save warnings/boilerplate of simple test code
6305 ac_outfile=conftest.$ac_objext
6306 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6308 _lt_compiler_boilerplate=`cat conftest.err`
6309 $rm conftest*
6310
6311 ac_outfile=conftest.$ac_objext
6312 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6314 _lt_linker_boilerplate=`cat conftest.err`
6315 $rm conftest*
6316
6317
6318
6319 lt_prog_compiler_no_builtin_flag=
6320
6321 if test "$GCC" = yes; then
6322   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6323
6324
6325 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   lt_cv_prog_compiler_rtti_exceptions=no
6331   ac_outfile=conftest.$ac_objext
6332    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6333    lt_compiler_flag="-fno-rtti -fno-exceptions"
6334    # Insert the option either (1) after the last *FLAGS variable, or
6335    # (2) before a word containing "conftest.", or (3) at the end.
6336    # Note that $ac_compile itself does not contain backslashes and begins
6337    # with a dollar sign (not a hyphen), so the echo should work correctly.
6338    # The option is referenced via a variable to avoid confusing sed.
6339    lt_compile=`echo "$ac_compile" | $SED \
6340    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6341    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6342    -e 's:$: $lt_compiler_flag:'`
6343    (eval echo "\"\$as_me:6343: $lt_compile\"" >&5)
6344    (eval "$lt_compile" 2>conftest.err)
6345    ac_status=$?
6346    cat conftest.err >&5
6347    echo "$as_me:6347: \$? = $ac_status" >&5
6348    if (exit $ac_status) && test -s "$ac_outfile"; then
6349      # The compiler can only warn and ignore the option if not recognized
6350      # So say no if there are warnings other than the usual output.
6351      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6352      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6353      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6354        lt_cv_prog_compiler_rtti_exceptions=yes
6355      fi
6356    fi
6357    $rm conftest*
6358
6359 fi
6360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6362
6363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6364     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6365 else
6366     :
6367 fi
6368
6369 fi
6370
6371 lt_prog_compiler_wl=
6372 lt_prog_compiler_pic=
6373 lt_prog_compiler_static=
6374
6375 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6377
6378   if test "$GCC" = yes; then
6379     lt_prog_compiler_wl='-Wl,'
6380     lt_prog_compiler_static='-static'
6381
6382     case $host_os in
6383       aix*)
6384       # All AIX code is PIC.
6385       if test "$host_cpu" = ia64; then
6386         # AIX 5 now supports IA64 processor
6387         lt_prog_compiler_static='-Bstatic'
6388       fi
6389       ;;
6390
6391     amigaos*)
6392       # FIXME: we need at least 68020 code to build shared libraries, but
6393       # adding the `-m68020' flag to GCC prevents building anything better,
6394       # like `-m68040'.
6395       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6396       ;;
6397
6398     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6399       # PIC is the default for these OSes.
6400       ;;
6401
6402     mingw* | pw32* | os2*)
6403       # This hack is so that the source file can tell whether it is being
6404       # built for inclusion in a dll (and should export symbols for example).
6405       lt_prog_compiler_pic='-DDLL_EXPORT'
6406       ;;
6407
6408     darwin* | rhapsody*)
6409       # PIC is the default on this platform
6410       # Common symbols not allowed in MH_DYLIB files
6411       lt_prog_compiler_pic='-fno-common'
6412       ;;
6413
6414     interix3*)
6415       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6416       # Instead, we relocate shared libraries at runtime.
6417       ;;
6418
6419     msdosdjgpp*)
6420       # Just because we use GCC doesn't mean we suddenly get shared libraries
6421       # on systems that don't support them.
6422       lt_prog_compiler_can_build_shared=no
6423       enable_shared=no
6424       ;;
6425
6426     sysv4*MP*)
6427       if test -d /usr/nec; then
6428         lt_prog_compiler_pic=-Kconform_pic
6429       fi
6430       ;;
6431
6432     hpux*)
6433       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6434       # not for PA HP-UX.
6435       case $host_cpu in
6436       hppa*64*|ia64*)
6437         # +Z the default
6438         ;;
6439       *)
6440         lt_prog_compiler_pic='-fPIC'
6441         ;;
6442       esac
6443       ;;
6444
6445     *)
6446       lt_prog_compiler_pic='-fPIC'
6447       ;;
6448     esac
6449   else
6450     # PORTME Check for flag to pass linker flags through the system compiler.
6451     case $host_os in
6452     aix*)
6453       lt_prog_compiler_wl='-Wl,'
6454       if test "$host_cpu" = ia64; then
6455         # AIX 5 now supports IA64 processor
6456         lt_prog_compiler_static='-Bstatic'
6457       else
6458         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6459       fi
6460       ;;
6461       darwin*)
6462         # PIC is the default on this platform
6463         # Common symbols not allowed in MH_DYLIB files
6464        case $cc_basename in
6465          xlc*)
6466          lt_prog_compiler_pic='-qnocommon'
6467          lt_prog_compiler_wl='-Wl,'
6468          ;;
6469        esac
6470        ;;
6471
6472     mingw* | pw32* | os2*)
6473       # This hack is so that the source file can tell whether it is being
6474       # built for inclusion in a dll (and should export symbols for example).
6475       lt_prog_compiler_pic='-DDLL_EXPORT'
6476       ;;
6477
6478     hpux9* | hpux10* | hpux11*)
6479       lt_prog_compiler_wl='-Wl,'
6480       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6481       # not for PA HP-UX.
6482       case $host_cpu in
6483       hppa*64*|ia64*)
6484         # +Z the default
6485         ;;
6486       *)
6487         lt_prog_compiler_pic='+Z'
6488         ;;
6489       esac
6490       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6491       lt_prog_compiler_static='${wl}-a ${wl}archive'
6492       ;;
6493
6494     irix5* | irix6* | nonstopux*)
6495       lt_prog_compiler_wl='-Wl,'
6496       # PIC (with -KPIC) is the default.
6497       lt_prog_compiler_static='-non_shared'
6498       ;;
6499
6500     newsos6)
6501       lt_prog_compiler_pic='-KPIC'
6502       lt_prog_compiler_static='-Bstatic'
6503       ;;
6504
6505     linux*)
6506       case $cc_basename in
6507       icc* | ecc*)
6508         lt_prog_compiler_wl='-Wl,'
6509         lt_prog_compiler_pic='-KPIC'
6510         lt_prog_compiler_static='-static'
6511         ;;
6512       pgcc* | pgf77* | pgf90* | pgf95*)
6513         # Portland Group compilers (*not* the Pentium gcc compiler,
6514         # which looks to be a dead project)
6515         lt_prog_compiler_wl='-Wl,'
6516         lt_prog_compiler_pic='-fpic'
6517         lt_prog_compiler_static='-Bstatic'
6518         ;;
6519       ccc*)
6520         lt_prog_compiler_wl='-Wl,'
6521         # All Alpha code is PIC.
6522         lt_prog_compiler_static='-non_shared'
6523         ;;
6524       esac
6525       ;;
6526
6527     osf3* | osf4* | osf5*)
6528       lt_prog_compiler_wl='-Wl,'
6529       # All OSF/1 code is PIC.
6530       lt_prog_compiler_static='-non_shared'
6531       ;;
6532
6533     solaris*)
6534       lt_prog_compiler_pic='-KPIC'
6535       lt_prog_compiler_static='-Bstatic'
6536       case $cc_basename in
6537       f77* | f90* | f95*)
6538         lt_prog_compiler_wl='-Qoption ld ';;
6539       *)
6540         lt_prog_compiler_wl='-Wl,';;
6541       esac
6542       ;;
6543
6544     sunos4*)
6545       lt_prog_compiler_wl='-Qoption ld '
6546       lt_prog_compiler_pic='-PIC'
6547       lt_prog_compiler_static='-Bstatic'
6548       ;;
6549
6550     sysv4 | sysv4.2uw2* | sysv4.3*)
6551       lt_prog_compiler_wl='-Wl,'
6552       lt_prog_compiler_pic='-KPIC'
6553       lt_prog_compiler_static='-Bstatic'
6554       ;;
6555
6556     sysv4*MP*)
6557       if test -d /usr/nec ;then
6558         lt_prog_compiler_pic='-Kconform_pic'
6559         lt_prog_compiler_static='-Bstatic'
6560       fi
6561       ;;
6562
6563     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6564       lt_prog_compiler_wl='-Wl,'
6565       lt_prog_compiler_pic='-KPIC'
6566       lt_prog_compiler_static='-Bstatic'
6567       ;;
6568
6569     unicos*)
6570       lt_prog_compiler_wl='-Wl,'
6571       lt_prog_compiler_can_build_shared=no
6572       ;;
6573
6574     uts4*)
6575       lt_prog_compiler_pic='-pic'
6576       lt_prog_compiler_static='-Bstatic'
6577       ;;
6578
6579     *)
6580       lt_prog_compiler_can_build_shared=no
6581       ;;
6582     esac
6583   fi
6584
6585 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6586 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6587
6588 #
6589 # Check to make sure the PIC flag actually works.
6590 #
6591 if test -n "$lt_prog_compiler_pic"; then
6592
6593 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6594 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6595 if test "${lt_prog_compiler_pic_works+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   lt_prog_compiler_pic_works=no
6599   ac_outfile=conftest.$ac_objext
6600    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6601    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6602    # Insert the option either (1) after the last *FLAGS variable, or
6603    # (2) before a word containing "conftest.", or (3) at the end.
6604    # Note that $ac_compile itself does not contain backslashes and begins
6605    # with a dollar sign (not a hyphen), so the echo should work correctly.
6606    # The option is referenced via a variable to avoid confusing sed.
6607    lt_compile=`echo "$ac_compile" | $SED \
6608    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6609    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6610    -e 's:$: $lt_compiler_flag:'`
6611    (eval echo "\"\$as_me:6611: $lt_compile\"" >&5)
6612    (eval "$lt_compile" 2>conftest.err)
6613    ac_status=$?
6614    cat conftest.err >&5
6615    echo "$as_me:6615: \$? = $ac_status" >&5
6616    if (exit $ac_status) && test -s "$ac_outfile"; then
6617      # The compiler can only warn and ignore the option if not recognized
6618      # So say no if there are warnings other than the usual output.
6619      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6620      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6621      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6622        lt_prog_compiler_pic_works=yes
6623      fi
6624    fi
6625    $rm conftest*
6626
6627 fi
6628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6629 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6630
6631 if test x"$lt_prog_compiler_pic_works" = xyes; then
6632     case $lt_prog_compiler_pic in
6633      "" | " "*) ;;
6634      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6635      esac
6636 else
6637     lt_prog_compiler_pic=
6638      lt_prog_compiler_can_build_shared=no
6639 fi
6640
6641 fi
6642 case $host_os in
6643   # For platforms which do not support PIC, -DPIC is meaningless:
6644   *djgpp*)
6645     lt_prog_compiler_pic=
6646     ;;
6647   *)
6648     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6649     ;;
6650 esac
6651
6652 #
6653 # Check to make sure the static flag actually works.
6654 #
6655 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6656 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6657 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6658 if test "${lt_prog_compiler_static_works+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   lt_prog_compiler_static_works=no
6662    save_LDFLAGS="$LDFLAGS"
6663    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6664    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6665    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6666      # The linker can only warn and ignore the option if not recognized
6667      # So say no if there are warnings
6668      if test -s conftest.err; then
6669        # Append any errors to the config.log.
6670        cat conftest.err 1>&5
6671        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6672        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673        if diff conftest.exp conftest.er2 >/dev/null; then
6674          lt_prog_compiler_static_works=yes
6675        fi
6676      else
6677        lt_prog_compiler_static_works=yes
6678      fi
6679    fi
6680    $rm conftest*
6681    LDFLAGS="$save_LDFLAGS"
6682
6683 fi
6684 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6685 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6686
6687 if test x"$lt_prog_compiler_static_works" = xyes; then
6688     :
6689 else
6690     lt_prog_compiler_static=
6691 fi
6692
6693
6694 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   lt_cv_prog_compiler_c_o=no
6700    $rm -r conftest 2>/dev/null
6701    mkdir conftest
6702    cd conftest
6703    mkdir out
6704    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6705
6706    lt_compiler_flag="-o out/conftest2.$ac_objext"
6707    # Insert the option either (1) after the last *FLAGS variable, or
6708    # (2) before a word containing "conftest.", or (3) at the end.
6709    # Note that $ac_compile itself does not contain backslashes and begins
6710    # with a dollar sign (not a hyphen), so the echo should work correctly.
6711    lt_compile=`echo "$ac_compile" | $SED \
6712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6714    -e 's:$: $lt_compiler_flag:'`
6715    (eval echo "\"\$as_me:6715: $lt_compile\"" >&5)
6716    (eval "$lt_compile" 2>out/conftest.err)
6717    ac_status=$?
6718    cat out/conftest.err >&5
6719    echo "$as_me:6719: \$? = $ac_status" >&5
6720    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6721    then
6722      # The compiler can only warn and ignore the option if not recognized
6723      # So say no if there are warnings
6724      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6725      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6726      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6727        lt_cv_prog_compiler_c_o=yes
6728      fi
6729    fi
6730    chmod u+w . 2>&5
6731    $rm conftest*
6732    # SGI C++ compiler will create directory out/ii_files/ for
6733    # template instantiation
6734    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6735    $rm out/* && rmdir out
6736    cd ..
6737    rmdir conftest
6738    $rm conftest*
6739
6740 fi
6741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6743
6744
6745 hard_links="nottested"
6746 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6747   # do not overwrite the value of need_locks provided by the user
6748   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6749 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6750   hard_links=yes
6751   $rm conftest*
6752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6753   touch conftest.a
6754   ln conftest.a conftest.b 2>&5 || hard_links=no
6755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6756   echo "$as_me:$LINENO: result: $hard_links" >&5
6757 echo "${ECHO_T}$hard_links" >&6
6758   if test "$hard_links" = no; then
6759     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6760 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6761     need_locks=warn
6762   fi
6763 else
6764   need_locks=no
6765 fi
6766
6767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6769
6770   runpath_var=
6771   allow_undefined_flag=
6772   enable_shared_with_static_runtimes=no
6773   archive_cmds=
6774   archive_expsym_cmds=
6775   old_archive_From_new_cmds=
6776   old_archive_from_expsyms_cmds=
6777   export_dynamic_flag_spec=
6778   whole_archive_flag_spec=
6779   thread_safe_flag_spec=
6780   hardcode_libdir_flag_spec=
6781   hardcode_libdir_flag_spec_ld=
6782   hardcode_libdir_separator=
6783   hardcode_direct=no
6784   hardcode_minus_L=no
6785   hardcode_shlibpath_var=unsupported
6786   link_all_deplibs=unknown
6787   hardcode_automatic=no
6788   module_cmds=
6789   module_expsym_cmds=
6790   always_export_symbols=no
6791   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6792   # include_expsyms should be a list of space-separated symbols to be *always*
6793   # included in the symbol list
6794   include_expsyms=
6795   # exclude_expsyms can be an extended regexp of symbols to exclude
6796   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6797   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6798   # as well as any symbol that contains `d'.
6799   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6800   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6801   # platforms (ab)use it in PIC code, but their linkers get confused if
6802   # the symbol is explicitly referenced.  Since portable code cannot
6803   # rely on this symbol name, it's probably fine to never include it in
6804   # preloaded symbol tables.
6805   extract_expsyms_cmds=
6806   # Just being paranoid about ensuring that cc_basename is set.
6807   for cc_temp in $compiler""; do
6808   case $cc_temp in
6809     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811     \-*) ;;
6812     *) break;;
6813   esac
6814 done
6815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6816
6817   case $host_os in
6818   cygwin* | mingw* | pw32*)
6819     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6820     # When not using gcc, we currently assume that we are using
6821     # Microsoft Visual C++.
6822     if test "$GCC" != yes; then
6823       with_gnu_ld=no
6824     fi
6825     ;;
6826   interix*)
6827     # we just hope/assume this is gcc and not c89 (= MSVC++)
6828     with_gnu_ld=yes
6829     ;;
6830   openbsd*)
6831     with_gnu_ld=no
6832     ;;
6833   esac
6834
6835   ld_shlibs=yes
6836   if test "$with_gnu_ld" = yes; then
6837     # If archive_cmds runs LD, not CC, wlarc should be empty
6838     wlarc='${wl}'
6839
6840     # Set some defaults for GNU ld with shared library support. These
6841     # are reset later if shared libraries are not supported. Putting them
6842     # here allows them to be overridden if necessary.
6843     runpath_var=LD_RUN_PATH
6844     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6845     export_dynamic_flag_spec='${wl}--export-dynamic'
6846     # ancient GNU ld didn't support --whole-archive et. al.
6847     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6848         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6849       else
6850         whole_archive_flag_spec=
6851     fi
6852     supports_anon_versioning=no
6853     case `$LD -v 2>/dev/null` in
6854       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6855       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6856       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6857       *\ 2.11.*) ;; # other 2.11 versions
6858       *) supports_anon_versioning=yes ;;
6859     esac
6860
6861     # See if GNU ld supports shared libraries.
6862     case $host_os in
6863     aix3* | aix4* | aix5*)
6864       # On AIX/PPC, the GNU linker is very broken
6865       if test "$host_cpu" != ia64; then
6866         ld_shlibs=no
6867         cat <<EOF 1>&2
6868
6869 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6870 *** to be unable to reliably create shared libraries on AIX.
6871 *** Therefore, libtool is disabling shared libraries support.  If you
6872 *** really care for shared libraries, you may want to modify your PATH
6873 *** so that a non-GNU linker is found, and then restart.
6874
6875 EOF
6876       fi
6877       ;;
6878
6879     amigaos*)
6880       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)'
6881       hardcode_libdir_flag_spec='-L$libdir'
6882       hardcode_minus_L=yes
6883
6884       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6885       # that the semantics of dynamic libraries on AmigaOS, at least up
6886       # to version 4, is to share data among multiple programs linked
6887       # with the same dynamic library.  Since this doesn't match the
6888       # behavior of shared libraries on other platforms, we can't use
6889       # them.
6890       ld_shlibs=no
6891       ;;
6892
6893     beos*)
6894       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6895         allow_undefined_flag=unsupported
6896         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6897         # support --undefined.  This deserves some investigation.  FIXME
6898         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6899       else
6900         ld_shlibs=no
6901       fi
6902       ;;
6903
6904     cygwin* | mingw* | pw32*)
6905       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6906       # as there is no search path for DLLs.
6907       hardcode_libdir_flag_spec='-L$libdir'
6908       allow_undefined_flag=unsupported
6909       always_export_symbols=no
6910       enable_shared_with_static_runtimes=yes
6911       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6912
6913       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6914         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6915         # If the export-symbols file already is a .def file (1st line
6916         # is EXPORTS), use it as is; otherwise, prepend...
6917         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6918           cp $export_symbols $output_objdir/$soname.def;
6919         else
6920           echo EXPORTS > $output_objdir/$soname.def;
6921           cat $export_symbols >> $output_objdir/$soname.def;
6922         fi~
6923         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6924       else
6925         ld_shlibs=no
6926       fi
6927       ;;
6928
6929     interix3*)
6930       hardcode_direct=no
6931       hardcode_shlibpath_var=no
6932       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6933       export_dynamic_flag_spec='${wl}-E'
6934       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6935       # Instead, shared libraries are loaded at an image base (0x10000000 by
6936       # default) and relocated if they conflict, which is a slow very memory
6937       # consuming and fragmenting process.  To avoid this, we pick a random,
6938       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6939       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6940       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6941       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'
6942       ;;
6943
6944     linux*)
6945       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6946         tmp_addflag=
6947         case $cc_basename,$host_cpu in
6948         pgcc*)                          # Portland Group C compiler
6949           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'
6950           tmp_addflag=' $pic_flag'
6951           ;;
6952         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6953           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'
6954           tmp_addflag=' $pic_flag -Mnomain' ;;
6955         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6956           tmp_addflag=' -i_dynamic' ;;
6957         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6958           tmp_addflag=' -i_dynamic -nofor_main' ;;
6959         ifc* | ifort*)                  # Intel Fortran compiler
6960           tmp_addflag=' -nofor_main' ;;
6961         esac
6962         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6963
6964         if test $supports_anon_versioning = yes; then
6965           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6966   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6967   $echo "local: *; };" >> $output_objdir/$libname.ver~
6968           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6969         fi
6970         link_all_deplibs=no
6971       else
6972         ld_shlibs=no
6973       fi
6974       ;;
6975
6976     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6977       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6978         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6979         wlarc=
6980       else
6981         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6982         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6983       fi
6984       ;;
6985
6986     solaris*)
6987       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6988         ld_shlibs=no
6989         cat <<EOF 1>&2
6990
6991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6992 *** create shared libraries on Solaris systems.  Therefore, libtool
6993 *** is disabling shared libraries support.  We urge you to upgrade GNU
6994 *** binutils to release 2.9.1 or newer.  Another option is to modify
6995 *** your PATH or compiler configuration so that the native linker is
6996 *** used, and then restart.
6997
6998 EOF
6999       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7000         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002       else
7003         ld_shlibs=no
7004       fi
7005       ;;
7006
7007     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7008       case `$LD -v 2>&1` in
7009         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7010         ld_shlibs=no
7011         cat <<_LT_EOF 1>&2
7012
7013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7014 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7015 *** is disabling shared libraries support.  We urge you to upgrade GNU
7016 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7017 *** your PATH or compiler configuration so that the native linker is
7018 *** used, and then restart.
7019
7020 _LT_EOF
7021         ;;
7022         *)
7023           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7025             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7026             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7027           else
7028             ld_shlibs=no
7029           fi
7030         ;;
7031       esac
7032       ;;
7033
7034     sunos4*)
7035       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7036       wlarc=
7037       hardcode_direct=yes
7038       hardcode_shlibpath_var=no
7039       ;;
7040
7041     *)
7042       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045       else
7046         ld_shlibs=no
7047       fi
7048       ;;
7049     esac
7050
7051     if test "$ld_shlibs" = no; then
7052       runpath_var=
7053       hardcode_libdir_flag_spec=
7054       export_dynamic_flag_spec=
7055       whole_archive_flag_spec=
7056     fi
7057   else
7058     # PORTME fill in a description of your system's linker (not GNU ld)
7059     case $host_os in
7060     aix3*)
7061       allow_undefined_flag=unsupported
7062       always_export_symbols=yes
7063       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'
7064       # Note: this linker hardcodes the directories in LIBPATH if there
7065       # are no directories specified by -L.
7066       hardcode_minus_L=yes
7067       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7068         # Neither direct hardcoding nor static linking is supported with a
7069         # broken collect2.
7070         hardcode_direct=unsupported
7071       fi
7072       ;;
7073
7074     aix4* | aix5*)
7075       if test "$host_cpu" = ia64; then
7076         # On IA64, the linker does run time linking by default, so we don't
7077         # have to do anything special.
7078         aix_use_runtimelinking=no
7079         exp_sym_flag='-Bexport'
7080         no_entry_flag=""
7081       else
7082         # If we're using GNU nm, then we don't want the "-C" option.
7083         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7084         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7085           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'
7086         else
7087           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'
7088         fi
7089         aix_use_runtimelinking=no
7090
7091         # Test if we are trying to use run time linking or normal
7092         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7093         # need to do runtime linking.
7094         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7095           for ld_flag in $LDFLAGS; do
7096           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7097             aix_use_runtimelinking=yes
7098             break
7099           fi
7100           done
7101           ;;
7102         esac
7103
7104         exp_sym_flag='-bexport'
7105         no_entry_flag='-bnoentry'
7106       fi
7107
7108       # When large executables or shared objects are built, AIX ld can
7109       # have problems creating the table of contents.  If linking a library
7110       # or program results in "error TOC overflow" add -mminimal-toc to
7111       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7112       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7113
7114       archive_cmds=''
7115       hardcode_direct=yes
7116       hardcode_libdir_separator=':'
7117       link_all_deplibs=yes
7118
7119       if test "$GCC" = yes; then
7120         case $host_os in aix4.[012]|aix4.[012].*)
7121         # We only want to do this on AIX 4.2 and lower, the check
7122         # below for broken collect2 doesn't work under 4.3+
7123           collect2name=`${CC} -print-prog-name=collect2`
7124           if test -f "$collect2name" && \
7125            strings "$collect2name" | grep resolve_lib_name >/dev/null
7126           then
7127           # We have reworked collect2
7128           hardcode_direct=yes
7129           else
7130           # We have old collect2
7131           hardcode_direct=unsupported
7132           # It fails to find uninstalled libraries when the uninstalled
7133           # path is not listed in the libpath.  Setting hardcode_minus_L
7134           # to unsupported forces relinking
7135           hardcode_minus_L=yes
7136           hardcode_libdir_flag_spec='-L$libdir'
7137           hardcode_libdir_separator=
7138           fi
7139           ;;
7140         esac
7141         shared_flag='-shared'
7142         if test "$aix_use_runtimelinking" = yes; then
7143           shared_flag="$shared_flag "'${wl}-G'
7144         fi
7145       else
7146         # not using gcc
7147         if test "$host_cpu" = ia64; then
7148         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7149         # chokes on -Wl,-G. The following line is correct:
7150           shared_flag='-G'
7151         else
7152           if test "$aix_use_runtimelinking" = yes; then
7153             shared_flag='${wl}-G'
7154           else
7155             shared_flag='${wl}-bM:SRE'
7156           fi
7157         fi
7158       fi
7159
7160       # It seems that -bexpall does not export symbols beginning with
7161       # underscore (_), so it is better to generate a list of symbols to export.
7162       always_export_symbols=yes
7163       if test "$aix_use_runtimelinking" = yes; then
7164         # Warning - without using the other runtime loading flags (-brtl),
7165         # -berok will link without error, but may produce a broken library.
7166         allow_undefined_flag='-berok'
7167        # Determine the default libpath from the value encoded in an empty executable.
7168        cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174
7175 int
7176 main ()
7177 {
7178
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185   (eval $ac_link) 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; } &&
7198          { ac_try='test -s conftest$ac_exeext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204
7205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7206 }'`
7207 # Check for a 64-bit object if we didn't find anything.
7208 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7209 }'`; fi
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 fi
7215 rm -f conftest.err conftest.$ac_objext \
7216       conftest$ac_exeext conftest.$ac_ext
7217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7218
7219        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7220         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7221        else
7222         if test "$host_cpu" = ia64; then
7223           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7224           allow_undefined_flag="-z nodefs"
7225           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"
7226         else
7227          # Determine the default libpath from the value encoded in an empty executable.
7228          cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234
7235 int
7236 main ()
7237 {
7238
7239   ;
7240   return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245   (eval $ac_link) 2>conftest.er1
7246   ac_status=$?
7247   grep -v '^ *+' conftest.er1 >conftest.err
7248   rm -f conftest.er1
7249   cat conftest.err >&5
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } &&
7252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; } &&
7258          { ac_try='test -s conftest$ac_exeext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264
7265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7266 }'`
7267 # Check for a 64-bit object if we didn't find anything.
7268 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7269 }'`; fi
7270 else
7271   echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 fi
7275 rm -f conftest.err conftest.$ac_objext \
7276       conftest$ac_exeext conftest.$ac_ext
7277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7278
7279          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7280           # Warning - without using the other run time loading flags,
7281           # -berok will link without error, but may produce a broken library.
7282           no_undefined_flag=' ${wl}-bernotok'
7283           allow_undefined_flag=' ${wl}-berok'
7284           # Exported symbols can be pulled into shared objects from archives
7285           whole_archive_flag_spec='$convenience'
7286           archive_cmds_need_lc=yes
7287           # This is similar to how AIX traditionally builds its shared libraries.
7288           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'
7289         fi
7290       fi
7291       ;;
7292
7293     amigaos*)
7294       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)'
7295       hardcode_libdir_flag_spec='-L$libdir'
7296       hardcode_minus_L=yes
7297       # see comment about different semantics on the GNU ld section
7298       ld_shlibs=no
7299       ;;
7300
7301     bsdi[45]*)
7302       export_dynamic_flag_spec=-rdynamic
7303       ;;
7304
7305     cygwin* | mingw* | pw32*)
7306       # When not using gcc, we currently assume that we are using
7307       # Microsoft Visual C++.
7308       # hardcode_libdir_flag_spec is actually meaningless, as there is
7309       # no search path for DLLs.
7310       hardcode_libdir_flag_spec=' '
7311       allow_undefined_flag=unsupported
7312       # Tell ltmain to make .lib files, not .a files.
7313       libext=lib
7314       # Tell ltmain to make .dll files, not .so files.
7315       shrext_cmds=".dll"
7316       # FIXME: Setting linknames here is a bad hack.
7317       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7318       # The linker will automatically build a .lib file if we build a DLL.
7319       old_archive_From_new_cmds='true'
7320       # FIXME: Should let the user specify the lib program.
7321       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7322       fix_srcfile_path='`cygpath -w "$srcfile"`'
7323       enable_shared_with_static_runtimes=yes
7324       ;;
7325
7326     darwin* | rhapsody*)
7327       case $host_os in
7328         rhapsody* | darwin1.[012])
7329          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7330          ;;
7331        *) # Darwin 1.3 on
7332          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7333            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7334          else
7335            case ${MACOSX_DEPLOYMENT_TARGET} in
7336              10.[012])
7337                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7338                ;;
7339              10.*)
7340                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7341                ;;
7342            esac
7343          fi
7344          ;;
7345       esac
7346       archive_cmds_need_lc=no
7347       hardcode_direct=no
7348       hardcode_automatic=yes
7349       hardcode_shlibpath_var=unsupported
7350       whole_archive_flag_spec=''
7351       link_all_deplibs=yes
7352     if test "$GCC" = yes ; then
7353         output_verbose_link_cmd='echo'
7354         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7355       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7356       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7357       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7358       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7359     else
7360       case $cc_basename in
7361         xlc*)
7362          output_verbose_link_cmd='echo'
7363          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7364          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7365           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7366          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7367           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7368           ;;
7369        *)
7370          ld_shlibs=no
7371           ;;
7372       esac
7373     fi
7374       ;;
7375
7376     dgux*)
7377       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378       hardcode_libdir_flag_spec='-L$libdir'
7379       hardcode_shlibpath_var=no
7380       ;;
7381
7382     freebsd1*)
7383       ld_shlibs=no
7384       ;;
7385
7386     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7387     # support.  Future versions do this automatically, but an explicit c++rt0.o
7388     # does not break anything, and helps significantly (at the cost of a little
7389     # extra space).
7390     freebsd2.2*)
7391       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7392       hardcode_libdir_flag_spec='-R$libdir'
7393       hardcode_direct=yes
7394       hardcode_shlibpath_var=no
7395       ;;
7396
7397     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7398     freebsd2*)
7399       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7400       hardcode_direct=yes
7401       hardcode_minus_L=yes
7402       hardcode_shlibpath_var=no
7403       ;;
7404
7405     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7406     freebsd* | dragonfly*)
7407       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7408       hardcode_libdir_flag_spec='-R$libdir'
7409       hardcode_direct=yes
7410       hardcode_shlibpath_var=no
7411       ;;
7412
7413     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7414     kfreebsd*-gnu)
7415       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7416       hardcode_libdir_flag_spec='-R$libdir'
7417       hardcode_direct=yes
7418       hardcode_shlibpath_var=no
7419       link_all_deplibs=no
7420       ;;
7421
7422     hpux9*)
7423       if test "$GCC" = yes; then
7424         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'
7425       else
7426         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'
7427       fi
7428       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7429       hardcode_libdir_separator=:
7430       hardcode_direct=yes
7431
7432       # hardcode_minus_L: Not really in the search PATH,
7433       # but as the default location of the library.
7434       hardcode_minus_L=yes
7435       export_dynamic_flag_spec='${wl}-E'
7436       ;;
7437
7438     hpux10*)
7439       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7440         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7441       else
7442         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7443       fi
7444       if test "$with_gnu_ld" = no; then
7445         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7446         hardcode_libdir_separator=:
7447
7448         hardcode_direct=yes
7449         export_dynamic_flag_spec='${wl}-E'
7450
7451         # hardcode_minus_L: Not really in the search PATH,
7452         # but as the default location of the library.
7453         hardcode_minus_L=yes
7454       fi
7455       ;;
7456
7457     hpux11*)
7458       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7459         case $host_cpu in
7460         hppa*64*)
7461           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462           ;;
7463         ia64*)
7464           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7465           ;;
7466         *)
7467           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7468           ;;
7469         esac
7470       else
7471         case $host_cpu in
7472         hppa*64*)
7473           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474           ;;
7475         ia64*)
7476           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7477           ;;
7478         *)
7479           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7480           ;;
7481         esac
7482       fi
7483       if test "$with_gnu_ld" = no; then
7484         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7485         hardcode_libdir_separator=:
7486
7487         case $host_cpu in
7488         hppa*64*|ia64*)
7489           hardcode_libdir_flag_spec_ld='+b $libdir'
7490           hardcode_direct=no
7491           hardcode_shlibpath_var=no
7492           ;;
7493         *)
7494           hardcode_direct=yes
7495           export_dynamic_flag_spec='${wl}-E'
7496
7497           # hardcode_minus_L: Not really in the search PATH,
7498           # but as the default location of the library.
7499           hardcode_minus_L=yes
7500           ;;
7501         esac
7502       fi
7503       ;;
7504
7505     irix5* | irix6* | nonstopux*)
7506       if test "$GCC" = yes; then
7507         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7508       else
7509         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7510         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7511       fi
7512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7513       hardcode_libdir_separator=:
7514       link_all_deplibs=yes
7515       ;;
7516
7517     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7518       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7519         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7520       else
7521         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7522       fi
7523       hardcode_libdir_flag_spec='-R$libdir'
7524       hardcode_direct=yes
7525       hardcode_shlibpath_var=no
7526       ;;
7527
7528     newsos6)
7529       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530       hardcode_direct=yes
7531       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7532       hardcode_libdir_separator=:
7533       hardcode_shlibpath_var=no
7534       ;;
7535
7536     openbsd*)
7537       hardcode_direct=yes
7538       hardcode_shlibpath_var=no
7539       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7540         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7541         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7542         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7543         export_dynamic_flag_spec='${wl}-E'
7544       else
7545        case $host_os in
7546          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7547            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7548            hardcode_libdir_flag_spec='-R$libdir'
7549            ;;
7550          *)
7551            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7552            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7553            ;;
7554        esac
7555       fi
7556       ;;
7557
7558     os2*)
7559       hardcode_libdir_flag_spec='-L$libdir'
7560       hardcode_minus_L=yes
7561       allow_undefined_flag=unsupported
7562       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'
7563       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7564       ;;
7565
7566     osf3*)
7567       if test "$GCC" = yes; then
7568         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7569         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7570       else
7571         allow_undefined_flag=' -expect_unresolved \*'
7572         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7573       fi
7574       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7575       hardcode_libdir_separator=:
7576       ;;
7577
7578     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7579       if test "$GCC" = yes; then
7580         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7581         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7582         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583       else
7584         allow_undefined_flag=' -expect_unresolved \*'
7585         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7586         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7587         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7588
7589         # Both c and cxx compiler support -rpath directly
7590         hardcode_libdir_flag_spec='-rpath $libdir'
7591       fi
7592       hardcode_libdir_separator=:
7593       ;;
7594
7595     solaris*)
7596       no_undefined_flag=' -z text'
7597       if test "$GCC" = yes; then
7598         wlarc='${wl}'
7599         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7600         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7601           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7602       else
7603         wlarc=''
7604         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7605         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7606         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7607       fi
7608       hardcode_libdir_flag_spec='-R$libdir'
7609       hardcode_shlibpath_var=no
7610       case $host_os in
7611       solaris2.[0-5] | solaris2.[0-5].*) ;;
7612       *)
7613         # The compiler driver will combine linker options so we
7614         # cannot just pass the convience library names through
7615         # without $wl, iff we do not link with $LD.
7616         # Luckily, gcc supports the same syntax we need for Sun Studio.
7617         # Supported since Solaris 2.6 (maybe 2.5.1?)
7618         case $wlarc in
7619         '')
7620           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7621         *)
7622           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7623         esac ;;
7624       esac
7625       link_all_deplibs=yes
7626       ;;
7627
7628     sunos4*)
7629       if test "x$host_vendor" = xsequent; then
7630         # Use $CC to link under sequent, because it throws in some extra .o
7631         # files that make .init and .fini sections work.
7632         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7633       else
7634         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7635       fi
7636       hardcode_libdir_flag_spec='-L$libdir'
7637       hardcode_direct=yes
7638       hardcode_minus_L=yes
7639       hardcode_shlibpath_var=no
7640       ;;
7641
7642     sysv4)
7643       case $host_vendor in
7644         sni)
7645           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646           hardcode_direct=yes # is this really true???
7647         ;;
7648         siemens)
7649           ## LD is ld it makes a PLAMLIB
7650           ## CC just makes a GrossModule.
7651           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7652           reload_cmds='$CC -r -o $output$reload_objs'
7653           hardcode_direct=no
7654         ;;
7655         motorola)
7656           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7658         ;;
7659       esac
7660       runpath_var='LD_RUN_PATH'
7661       hardcode_shlibpath_var=no
7662       ;;
7663
7664     sysv4.3*)
7665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666       hardcode_shlibpath_var=no
7667       export_dynamic_flag_spec='-Bexport'
7668       ;;
7669
7670     sysv4*MP*)
7671       if test -d /usr/nec; then
7672         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7673         hardcode_shlibpath_var=no
7674         runpath_var=LD_RUN_PATH
7675         hardcode_runpath_var=yes
7676         ld_shlibs=yes
7677       fi
7678       ;;
7679
7680     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7681       no_undefined_flag='${wl}-z,text'
7682       archive_cmds_need_lc=no
7683       hardcode_shlibpath_var=no
7684       runpath_var='LD_RUN_PATH'
7685
7686       if test "$GCC" = yes; then
7687         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7688         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7689       else
7690         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7691         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7692       fi
7693       ;;
7694
7695     sysv5* | sco3.2v5* | sco5v6*)
7696       # Note: We can NOT use -z defs as we might desire, because we do not
7697       # link with -lc, and that would cause any symbols used from libc to
7698       # always be unresolved, which means just about no library would
7699       # ever link correctly.  If we're not using GNU ld we use -z text
7700       # though, which does catch some bad symbols but isn't as heavy-handed
7701       # as -z defs.
7702       no_undefined_flag='${wl}-z,text'
7703       allow_undefined_flag='${wl}-z,nodefs'
7704       archive_cmds_need_lc=no
7705       hardcode_shlibpath_var=no
7706       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7707       hardcode_libdir_separator=':'
7708       link_all_deplibs=yes
7709       export_dynamic_flag_spec='${wl}-Bexport'
7710       runpath_var='LD_RUN_PATH'
7711
7712       if test "$GCC" = yes; then
7713         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7714         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7715       else
7716         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7718       fi
7719       ;;
7720
7721     uts4*)
7722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7723       hardcode_libdir_flag_spec='-L$libdir'
7724       hardcode_shlibpath_var=no
7725       ;;
7726
7727     *)
7728       ld_shlibs=no
7729       ;;
7730     esac
7731   fi
7732
7733 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7734 echo "${ECHO_T}$ld_shlibs" >&6
7735 test "$ld_shlibs" = no && can_build_shared=no
7736
7737 #
7738 # Do we need to explicitly link libc?
7739 #
7740 case "x$archive_cmds_need_lc" in
7741 x|xyes)
7742   # Assume -lc should be added
7743   archive_cmds_need_lc=yes
7744
7745   if test "$enable_shared" = yes && test "$GCC" = yes; then
7746     case $archive_cmds in
7747     *'~'*)
7748       # FIXME: we may have to deal with multi-command sequences.
7749       ;;
7750     '$CC '*)
7751       # Test whether the compiler implicitly links with -lc since on some
7752       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7753       # to ld, don't add -lc before -lgcc.
7754       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7755 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7756       $rm conftest*
7757       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7758
7759       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760   (eval $ac_compile) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } 2>conftest.err; then
7764         soname=conftest
7765         lib=conftest
7766         libobjs=conftest.$ac_objext
7767         deplibs=
7768         wl=$lt_prog_compiler_wl
7769         pic_flag=$lt_prog_compiler_pic
7770         compiler_flags=-v
7771         linker_flags=-v
7772         verstring=
7773         output_objdir=.
7774         libname=conftest
7775         lt_save_allow_undefined_flag=$allow_undefined_flag
7776         allow_undefined_flag=
7777         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7778   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }
7782         then
7783           archive_cmds_need_lc=no
7784         else
7785           archive_cmds_need_lc=yes
7786         fi
7787         allow_undefined_flag=$lt_save_allow_undefined_flag
7788       else
7789         cat conftest.err 1>&5
7790       fi
7791       $rm conftest*
7792       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7793 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7794       ;;
7795     esac
7796   fi
7797   ;;
7798 esac
7799
7800 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7801 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7802 library_names_spec=
7803 libname_spec='lib$name'
7804 soname_spec=
7805 shrext_cmds=".so"
7806 postinstall_cmds=
7807 postuninstall_cmds=
7808 finish_cmds=
7809 finish_eval=
7810 shlibpath_var=
7811 shlibpath_overrides_runpath=unknown
7812 version_type=none
7813 dynamic_linker="$host_os ld.so"
7814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7815 if test "$GCC" = yes; then
7816   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7817   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7818     # if the path contains ";" then we assume it to be the separator
7819     # otherwise default to the standard path separator (i.e. ":") - it is
7820     # assumed that no part of a normal pathname contains ";" but that should
7821     # okay in the real world where ";" in dirpaths is itself problematic.
7822     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7823   else
7824     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7825   fi
7826 else
7827   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7828 fi
7829 need_lib_prefix=unknown
7830 hardcode_into_libs=no
7831
7832 # when you set need_version to no, make sure it does not cause -set_version
7833 # flags to be left without arguments
7834 need_version=unknown
7835
7836 case $host_os in
7837 aix3*)
7838   version_type=linux
7839   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7840   shlibpath_var=LIBPATH
7841
7842   # AIX 3 has no versioning support, so we append a major version to the name.
7843   soname_spec='${libname}${release}${shared_ext}$major'
7844   ;;
7845
7846 aix4* | aix5*)
7847   version_type=linux
7848   need_lib_prefix=no
7849   need_version=no
7850   hardcode_into_libs=yes
7851   if test "$host_cpu" = ia64; then
7852     # AIX 5 supports IA64
7853     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7854     shlibpath_var=LD_LIBRARY_PATH
7855   else
7856     # With GCC up to 2.95.x, collect2 would create an import file
7857     # for dependence libraries.  The import file would start with
7858     # the line `#! .'.  This would cause the generated library to
7859     # depend on `.', always an invalid library.  This was fixed in
7860     # development snapshots of GCC prior to 3.0.
7861     case $host_os in
7862       aix4 | aix4.[01] | aix4.[01].*)
7863       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7864            echo ' yes '
7865            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7866         :
7867       else
7868         can_build_shared=no
7869       fi
7870       ;;
7871     esac
7872     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7873     # soname into executable. Probably we can add versioning support to
7874     # collect2, so additional links can be useful in future.
7875     if test "$aix_use_runtimelinking" = yes; then
7876       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7877       # instead of lib<name>.a to let people know that these are not
7878       # typical AIX shared libraries.
7879       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7880     else
7881       # We preserve .a as extension for shared libraries through AIX4.2
7882       # and later when we are not doing run time linking.
7883       library_names_spec='${libname}${release}.a $libname.a'
7884       soname_spec='${libname}${release}${shared_ext}$major'
7885     fi
7886     shlibpath_var=LIBPATH
7887   fi
7888   ;;
7889
7890 amigaos*)
7891   library_names_spec='$libname.ixlibrary $libname.a'
7892   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7893   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'
7894   ;;
7895
7896 beos*)
7897   library_names_spec='${libname}${shared_ext}'
7898   dynamic_linker="$host_os ld.so"
7899   shlibpath_var=LIBRARY_PATH
7900   ;;
7901
7902 bsdi[45]*)
7903   version_type=linux
7904   need_version=no
7905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906   soname_spec='${libname}${release}${shared_ext}$major'
7907   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7908   shlibpath_var=LD_LIBRARY_PATH
7909   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7910   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7911   # the default ld.so.conf also contains /usr/contrib/lib and
7912   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7913   # libtool to hard-code these into programs
7914   ;;
7915
7916 cygwin* | mingw* | pw32*)
7917   version_type=windows
7918   shrext_cmds=".dll"
7919   need_version=no
7920   need_lib_prefix=no
7921
7922   case $GCC,$host_os in
7923   yes,cygwin* | yes,mingw* | yes,pw32*)
7924     library_names_spec='$libname.dll.a'
7925     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7926     postinstall_cmds='base_file=`basename \${file}`~
7927       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7928       dldir=$destdir/`dirname \$dlpath`~
7929       test -d \$dldir || mkdir -p \$dldir~
7930       $install_prog $dir/$dlname \$dldir/$dlname~
7931       chmod a+x \$dldir/$dlname'
7932     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7933       dlpath=$dir/\$dldll~
7934        $rm \$dlpath'
7935     shlibpath_overrides_runpath=yes
7936
7937     case $host_os in
7938     cygwin*)
7939       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7940       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7941       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7942       ;;
7943     mingw*)
7944       # MinGW DLLs use traditional 'lib' prefix
7945       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7946       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7947       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7948         # It is most probably a Windows format PATH printed by
7949         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7950         # path with ; separators, and with drive letters. We can handle the
7951         # drive letters (cygwin fileutils understands them), so leave them,
7952         # especially as we might pass files found there to a mingw objdump,
7953         # which wouldn't understand a cygwinified path. Ahh.
7954         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7955       else
7956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7957       fi
7958       ;;
7959     pw32*)
7960       # pw32 DLLs use 'pw' prefix rather than 'lib'
7961       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7962       ;;
7963     esac
7964     ;;
7965
7966   *)
7967     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7968     ;;
7969   esac
7970   dynamic_linker='Win32 ld.exe'
7971   # FIXME: first we should search . and the directory the executable is in
7972   shlibpath_var=PATH
7973   ;;
7974
7975 darwin* | rhapsody*)
7976   dynamic_linker="$host_os dyld"
7977   version_type=darwin
7978   need_lib_prefix=no
7979   need_version=no
7980   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7981   soname_spec='${libname}${release}${major}$shared_ext'
7982   shlibpath_overrides_runpath=yes
7983   shlibpath_var=DYLD_LIBRARY_PATH
7984   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7985   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7986   if test "$GCC" = yes; then
7987     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7988   else
7989     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7990   fi
7991   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7992   ;;
7993
7994 dgux*)
7995   version_type=linux
7996   need_lib_prefix=no
7997   need_version=no
7998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7999   soname_spec='${libname}${release}${shared_ext}$major'
8000   shlibpath_var=LD_LIBRARY_PATH
8001   ;;
8002
8003 freebsd1*)
8004   dynamic_linker=no
8005   ;;
8006
8007 kfreebsd*-gnu)
8008   version_type=linux
8009   need_lib_prefix=no
8010   need_version=no
8011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8012   soname_spec='${libname}${release}${shared_ext}$major'
8013   shlibpath_var=LD_LIBRARY_PATH
8014   shlibpath_overrides_runpath=no
8015   hardcode_into_libs=yes
8016   dynamic_linker='GNU ld.so'
8017   ;;
8018
8019 freebsd* | dragonfly*)
8020   # DragonFly does not have aout.  When/if they implement a new
8021   # versioning mechanism, adjust this.
8022   if test -x /usr/bin/objformat; then
8023     objformat=`/usr/bin/objformat`
8024   else
8025     case $host_os in
8026     freebsd[123]*) objformat=aout ;;
8027     *) objformat=elf ;;
8028     esac
8029   fi
8030   version_type=freebsd-$objformat
8031   case $version_type in
8032     freebsd-elf*)
8033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8034       need_version=no
8035       need_lib_prefix=no
8036       ;;
8037     freebsd-*)
8038       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8039       need_version=yes
8040       ;;
8041   esac
8042   shlibpath_var=LD_LIBRARY_PATH
8043   case $host_os in
8044   freebsd2*)
8045     shlibpath_overrides_runpath=yes
8046     ;;
8047   freebsd3.[01]* | freebsdelf3.[01]*)
8048     shlibpath_overrides_runpath=yes
8049     hardcode_into_libs=yes
8050     ;;
8051   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8052   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8053     shlibpath_overrides_runpath=no
8054     hardcode_into_libs=yes
8055     ;;
8056   freebsd*) # from 4.6 on
8057     shlibpath_overrides_runpath=yes
8058     hardcode_into_libs=yes
8059     ;;
8060   esac
8061   ;;
8062
8063 gnu*)
8064   version_type=linux
8065   need_lib_prefix=no
8066   need_version=no
8067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8068   soname_spec='${libname}${release}${shared_ext}$major'
8069   shlibpath_var=LD_LIBRARY_PATH
8070   hardcode_into_libs=yes
8071   ;;
8072
8073 hpux9* | hpux10* | hpux11*)
8074   # Give a soname corresponding to the major version so that dld.sl refuses to
8075   # link against other versions.
8076   version_type=sunos
8077   need_lib_prefix=no
8078   need_version=no
8079   case $host_cpu in
8080   ia64*)
8081     shrext_cmds='.so'
8082     hardcode_into_libs=yes
8083     dynamic_linker="$host_os dld.so"
8084     shlibpath_var=LD_LIBRARY_PATH
8085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087     soname_spec='${libname}${release}${shared_ext}$major'
8088     if test "X$HPUX_IA64_MODE" = X32; then
8089       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8090     else
8091       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8092     fi
8093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8094     ;;
8095    hppa*64*)
8096      shrext_cmds='.sl'
8097      hardcode_into_libs=yes
8098      dynamic_linker="$host_os dld.sl"
8099      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8100      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8101      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102      soname_spec='${libname}${release}${shared_ext}$major'
8103      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8104      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8105      ;;
8106    *)
8107     shrext_cmds='.sl'
8108     dynamic_linker="$host_os dld.sl"
8109     shlibpath_var=SHLIB_PATH
8110     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112     soname_spec='${libname}${release}${shared_ext}$major'
8113     ;;
8114   esac
8115   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8116   postinstall_cmds='chmod 555 $lib'
8117   ;;
8118
8119 interix3*)
8120   version_type=linux
8121   need_lib_prefix=no
8122   need_version=no
8123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8124   soname_spec='${libname}${release}${shared_ext}$major'
8125   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8126   shlibpath_var=LD_LIBRARY_PATH
8127   shlibpath_overrides_runpath=no
8128   hardcode_into_libs=yes
8129   ;;
8130
8131 irix5* | irix6* | nonstopux*)
8132   case $host_os in
8133     nonstopux*) version_type=nonstopux ;;
8134     *)
8135         if test "$lt_cv_prog_gnu_ld" = yes; then
8136                 version_type=linux
8137         else
8138                 version_type=irix
8139         fi ;;
8140   esac
8141   need_lib_prefix=no
8142   need_version=no
8143   soname_spec='${libname}${release}${shared_ext}$major'
8144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8145   case $host_os in
8146   irix5* | nonstopux*)
8147     libsuff= shlibsuff=
8148     ;;
8149   *)
8150     case $LD in # libtool.m4 will add one of these switches to LD
8151     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8152       libsuff= shlibsuff= libmagic=32-bit;;
8153     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8154       libsuff=32 shlibsuff=N32 libmagic=N32;;
8155     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8156       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8157     *) libsuff= shlibsuff= libmagic=never-match;;
8158     esac
8159     ;;
8160   esac
8161   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8162   shlibpath_overrides_runpath=no
8163   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8164   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8165   hardcode_into_libs=yes
8166   ;;
8167
8168 # No shared lib support for Linux oldld, aout, or coff.
8169 linux*oldld* | linux*aout* | linux*coff*)
8170   dynamic_linker=no
8171   ;;
8172
8173 # This must be Linux ELF.
8174 linux*)
8175   version_type=linux
8176   need_lib_prefix=no
8177   need_version=no
8178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179   soname_spec='${libname}${release}${shared_ext}$major'
8180   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8181   shlibpath_var=LD_LIBRARY_PATH
8182   shlibpath_overrides_runpath=no
8183   # This implies no fast_install, which is unacceptable.
8184   # Some rework will be needed to allow for fast_install
8185   # before this can be enabled.
8186   hardcode_into_libs=yes
8187
8188   # Append ld.so.conf contents to the search path
8189   if test -f /etc/ld.so.conf; then
8190     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8191     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8192   fi
8193
8194   # We used to test for /lib/ld.so.1 and disable shared libraries on
8195   # powerpc, because MkLinux only supported shared libraries with the
8196   # GNU dynamic linker.  Since this was broken with cross compilers,
8197   # most powerpc-linux boxes support dynamic linking these days and
8198   # people can always --disable-shared, the test was removed, and we
8199   # assume the GNU/Linux dynamic linker is in use.
8200   dynamic_linker='GNU/Linux ld.so'
8201   ;;
8202
8203 netbsdelf*-gnu)
8204   version_type=linux
8205   need_lib_prefix=no
8206   need_version=no
8207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8208   soname_spec='${libname}${release}${shared_ext}$major'
8209   shlibpath_var=LD_LIBRARY_PATH
8210   shlibpath_overrides_runpath=no
8211   hardcode_into_libs=yes
8212   dynamic_linker='NetBSD ld.elf_so'
8213   ;;
8214
8215 knetbsd*-gnu)
8216   version_type=linux
8217   need_lib_prefix=no
8218   need_version=no
8219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8220   soname_spec='${libname}${release}${shared_ext}$major'
8221   shlibpath_var=LD_LIBRARY_PATH
8222   shlibpath_overrides_runpath=no
8223   hardcode_into_libs=yes
8224   dynamic_linker='GNU ld.so'
8225   ;;
8226
8227 netbsd*)
8228   version_type=sunos
8229   need_lib_prefix=no
8230   need_version=no
8231   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8233     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8234     dynamic_linker='NetBSD (a.out) ld.so'
8235   else
8236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237     soname_spec='${libname}${release}${shared_ext}$major'
8238     dynamic_linker='NetBSD ld.elf_so'
8239   fi
8240   shlibpath_var=LD_LIBRARY_PATH
8241   shlibpath_overrides_runpath=yes
8242   hardcode_into_libs=yes
8243   ;;
8244
8245 newsos6)
8246   version_type=linux
8247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248   shlibpath_var=LD_LIBRARY_PATH
8249   shlibpath_overrides_runpath=yes
8250   ;;
8251
8252 nto-qnx*)
8253   version_type=linux
8254   need_lib_prefix=no
8255   need_version=no
8256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257   soname_spec='${libname}${release}${shared_ext}$major'
8258   shlibpath_var=LD_LIBRARY_PATH
8259   shlibpath_overrides_runpath=yes
8260   ;;
8261
8262 openbsd*)
8263   version_type=sunos
8264   sys_lib_dlsearch_path_spec="/usr/lib"
8265   need_lib_prefix=no
8266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8267   case $host_os in
8268     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8269     *)                         need_version=no  ;;
8270   esac
8271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8273   shlibpath_var=LD_LIBRARY_PATH
8274   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275     case $host_os in
8276       openbsd2.[89] | openbsd2.[89].*)
8277         shlibpath_overrides_runpath=no
8278         ;;
8279       *)
8280         shlibpath_overrides_runpath=yes
8281         ;;
8282       esac
8283   else
8284     shlibpath_overrides_runpath=yes
8285   fi
8286   ;;
8287
8288 os2*)
8289   libname_spec='$name'
8290   shrext_cmds=".dll"
8291   need_lib_prefix=no
8292   library_names_spec='$libname${shared_ext} $libname.a'
8293   dynamic_linker='OS/2 ld.exe'
8294   shlibpath_var=LIBPATH
8295   ;;
8296
8297 osf3* | osf4* | osf5*)
8298   version_type=osf
8299   need_lib_prefix=no
8300   need_version=no
8301   soname_spec='${libname}${release}${shared_ext}$major'
8302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303   shlibpath_var=LD_LIBRARY_PATH
8304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8306   ;;
8307
8308 solaris*)
8309   version_type=linux
8310   need_lib_prefix=no
8311   need_version=no
8312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8313   soname_spec='${libname}${release}${shared_ext}$major'
8314   shlibpath_var=LD_LIBRARY_PATH
8315   shlibpath_overrides_runpath=yes
8316   hardcode_into_libs=yes
8317   # ldd complains unless libraries are executable
8318   postinstall_cmds='chmod +x $lib'
8319   ;;
8320
8321 sunos4*)
8322   version_type=sunos
8323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8324   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8325   shlibpath_var=LD_LIBRARY_PATH
8326   shlibpath_overrides_runpath=yes
8327   if test "$with_gnu_ld" = yes; then
8328     need_lib_prefix=no
8329   fi
8330   need_version=yes
8331   ;;
8332
8333 sysv4 | sysv4.3*)
8334   version_type=linux
8335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8336   soname_spec='${libname}${release}${shared_ext}$major'
8337   shlibpath_var=LD_LIBRARY_PATH
8338   case $host_vendor in
8339     sni)
8340       shlibpath_overrides_runpath=no
8341       need_lib_prefix=no
8342       export_dynamic_flag_spec='${wl}-Blargedynsym'
8343       runpath_var=LD_RUN_PATH
8344       ;;
8345     siemens)
8346       need_lib_prefix=no
8347       ;;
8348     motorola)
8349       need_lib_prefix=no
8350       need_version=no
8351       shlibpath_overrides_runpath=no
8352       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8353       ;;
8354   esac
8355   ;;
8356
8357 sysv4*MP*)
8358   if test -d /usr/nec ;then
8359     version_type=linux
8360     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8361     soname_spec='$libname${shared_ext}.$major'
8362     shlibpath_var=LD_LIBRARY_PATH
8363   fi
8364   ;;
8365
8366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8367   version_type=freebsd-elf
8368   need_lib_prefix=no
8369   need_version=no
8370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8371   soname_spec='${libname}${release}${shared_ext}$major'
8372   shlibpath_var=LD_LIBRARY_PATH
8373   hardcode_into_libs=yes
8374   if test "$with_gnu_ld" = yes; then
8375     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8376     shlibpath_overrides_runpath=no
8377   else
8378     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8379     shlibpath_overrides_runpath=yes
8380     case $host_os in
8381       sco3.2v5*)
8382         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8383         ;;
8384     esac
8385   fi
8386   sys_lib_dlsearch_path_spec='/usr/lib'
8387   ;;
8388
8389 uts4*)
8390   version_type=linux
8391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392   soname_spec='${libname}${release}${shared_ext}$major'
8393   shlibpath_var=LD_LIBRARY_PATH
8394   ;;
8395
8396 *)
8397   dynamic_linker=no
8398   ;;
8399 esac
8400 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8401 echo "${ECHO_T}$dynamic_linker" >&6
8402 test "$dynamic_linker" = no && can_build_shared=no
8403
8404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8405 if test "$GCC" = yes; then
8406   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8407 fi
8408
8409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8410 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8411 hardcode_action=
8412 if test -n "$hardcode_libdir_flag_spec" || \
8413    test -n "$runpath_var" || \
8414    test "X$hardcode_automatic" = "Xyes" ; then
8415
8416   # We can hardcode non-existant directories.
8417   if test "$hardcode_direct" != no &&
8418      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8419      # have to relink, otherwise we might link with an installed library
8420      # when we should be linking with a yet-to-be-installed one
8421      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8422      test "$hardcode_minus_L" != no; then
8423     # Linking always hardcodes the temporary library directory.
8424     hardcode_action=relink
8425   else
8426     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8427     hardcode_action=immediate
8428   fi
8429 else
8430   # We cannot hardcode anything, or else we can only hardcode existing
8431   # directories.
8432   hardcode_action=unsupported
8433 fi
8434 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8435 echo "${ECHO_T}$hardcode_action" >&6
8436
8437 if test "$hardcode_action" = relink; then
8438   # Fast installation is not supported
8439   enable_fast_install=no
8440 elif test "$shlibpath_overrides_runpath" = yes ||
8441      test "$enable_shared" = no; then
8442   # Fast installation is not necessary
8443   enable_fast_install=needless
8444 fi
8445
8446 striplib=
8447 old_striplib=
8448 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8449 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8450 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8451   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8452   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8453   echo "$as_me:$LINENO: result: yes" >&5
8454 echo "${ECHO_T}yes" >&6
8455 else
8456 # FIXME - insert some real tests, host_os isn't really good enough
8457   case $host_os in
8458    darwin*)
8459        if test -n "$STRIP" ; then
8460          striplib="$STRIP -x"
8461          echo "$as_me:$LINENO: result: yes" >&5
8462 echo "${ECHO_T}yes" >&6
8463        else
8464   echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6
8466 fi
8467        ;;
8468    *)
8469   echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8471     ;;
8472   esac
8473 fi
8474
8475 if test "x$enable_dlopen" != xyes; then
8476   enable_dlopen=unknown
8477   enable_dlopen_self=unknown
8478   enable_dlopen_self_static=unknown
8479 else
8480   lt_cv_dlopen=no
8481   lt_cv_dlopen_libs=
8482
8483   case $host_os in
8484   beos*)
8485     lt_cv_dlopen="load_add_on"
8486     lt_cv_dlopen_libs=
8487     lt_cv_dlopen_self=yes
8488     ;;
8489
8490   mingw* | pw32*)
8491     lt_cv_dlopen="LoadLibrary"
8492     lt_cv_dlopen_libs=
8493    ;;
8494
8495   cygwin*)
8496     lt_cv_dlopen="dlopen"
8497     lt_cv_dlopen_libs=
8498    ;;
8499
8500   darwin*)
8501   # if libdl is installed we need to link against it
8502     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-ldl  $LIBS"
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515
8516 /* Override any gcc2 internal prototype to avoid an error.  */
8517 #ifdef __cplusplus
8518 extern "C"
8519 #endif
8520 /* We use char because int might match the return type of a gcc2
8521    builtin and then its argument prototype would still apply.  */
8522 char dlopen ();
8523 int
8524 main ()
8525 {
8526 dlopen ();
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest$ac_exeext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_cv_lib_dl_dlopen=yes
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 ac_cv_lib_dl_dlopen=no
8558 fi
8559 rm -f conftest.err conftest.$ac_objext \
8560       conftest$ac_exeext conftest.$ac_ext
8561 LIBS=$ac_check_lib_save_LIBS
8562 fi
8563 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8564 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8565 if test $ac_cv_lib_dl_dlopen = yes; then
8566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8567 else
8568
8569     lt_cv_dlopen="dyld"
8570     lt_cv_dlopen_libs=
8571     lt_cv_dlopen_self=yes
8572
8573 fi
8574
8575    ;;
8576
8577   *)
8578     echo "$as_me:$LINENO: checking for shl_load" >&5
8579 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8580 if test "${ac_cv_func_shl_load+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8591 #define shl_load innocuous_shl_load
8592
8593 /* System header to define __stub macros and hopefully few prototypes,
8594     which can conflict with char shl_load (); below.
8595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8596     <limits.h> exists even on freestanding compilers.  */
8597
8598 #ifdef __STDC__
8599 # include <limits.h>
8600 #else
8601 # include <assert.h>
8602 #endif
8603
8604 #undef shl_load
8605
8606 /* Override any gcc2 internal prototype to avoid an error.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 {
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612    builtin and then its argument prototype would still apply.  */
8613 char shl_load ();
8614 /* The GNU C library defines this for functions which it implements
8615     to always fail with ENOSYS.  Some functions are actually named
8616     something starting with __ and the normal name is an alias.  */
8617 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8618 choke me
8619 #else
8620 char (*f) () = shl_load;
8621 #endif
8622 #ifdef __cplusplus
8623 }
8624 #endif
8625
8626 int
8627 main ()
8628 {
8629 return f != shl_load;
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; } &&
8649          { ac_try='test -s conftest$ac_exeext'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; }; then
8655   ac_cv_func_shl_load=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_cv_func_shl_load=no
8661 fi
8662 rm -f conftest.err conftest.$ac_objext \
8663       conftest$ac_exeext conftest.$ac_ext
8664 fi
8665 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8666 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8667 if test $ac_cv_func_shl_load = yes; then
8668   lt_cv_dlopen="shl_load"
8669 else
8670   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8671 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8672 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   ac_check_lib_save_LIBS=$LIBS
8676 LIBS="-ldld  $LIBS"
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h.  */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h.  */
8683
8684 /* Override any gcc2 internal prototype to avoid an error.  */
8685 #ifdef __cplusplus
8686 extern "C"
8687 #endif
8688 /* We use char because int might match the return type of a gcc2
8689    builtin and then its argument prototype would still apply.  */
8690 char shl_load ();
8691 int
8692 main ()
8693 {
8694 shl_load ();
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701   (eval $ac_link) 2>conftest.er1
8702   ac_status=$?
8703   grep -v '^ *+' conftest.er1 >conftest.err
8704   rm -f conftest.er1
8705   cat conftest.err >&5
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } &&
8708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; } &&
8714          { ac_try='test -s conftest$ac_exeext'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; }; then
8720   ac_cv_lib_dld_shl_load=yes
8721 else
8722   echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_lib_dld_shl_load=no
8726 fi
8727 rm -f conftest.err conftest.$ac_objext \
8728       conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8732 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8733 if test $ac_cv_lib_dld_shl_load = yes; then
8734   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8735 else
8736   echo "$as_me:$LINENO: checking for dlopen" >&5
8737 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8738 if test "${ac_cv_func_dlopen+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8749 #define dlopen innocuous_dlopen
8750
8751 /* System header to define __stub macros and hopefully few prototypes,
8752     which can conflict with char dlopen (); below.
8753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754     <limits.h> exists even on freestanding compilers.  */
8755
8756 #ifdef __STDC__
8757 # include <limits.h>
8758 #else
8759 # include <assert.h>
8760 #endif
8761
8762 #undef dlopen
8763
8764 /* Override any gcc2 internal prototype to avoid an error.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 {
8768 #endif
8769 /* We use char because int might match the return type of a gcc2
8770    builtin and then its argument prototype would still apply.  */
8771 char dlopen ();
8772 /* The GNU C library defines this for functions which it implements
8773     to always fail with ENOSYS.  Some functions are actually named
8774     something starting with __ and the normal name is an alias.  */
8775 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8776 choke me
8777 #else
8778 char (*f) () = dlopen;
8779 #endif
8780 #ifdef __cplusplus
8781 }
8782 #endif
8783
8784 int
8785 main ()
8786 {
8787 return f != dlopen;
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794   (eval $ac_link) 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; } &&
8807          { ac_try='test -s conftest$ac_exeext'
8808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809   (eval $ac_try) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; }; then
8813   ac_cv_func_dlopen=yes
8814 else
8815   echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818 ac_cv_func_dlopen=no
8819 fi
8820 rm -f conftest.err conftest.$ac_objext \
8821       conftest$ac_exeext conftest.$ac_ext
8822 fi
8823 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8824 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8825 if test $ac_cv_func_dlopen = yes; then
8826   lt_cv_dlopen="dlopen"
8827 else
8828   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   ac_check_lib_save_LIBS=$LIBS
8834 LIBS="-ldl  $LIBS"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h.  */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h.  */
8841
8842 /* Override any gcc2 internal prototype to avoid an error.  */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 /* We use char because int might match the return type of a gcc2
8847    builtin and then its argument prototype would still apply.  */
8848 char dlopen ();
8849 int
8850 main ()
8851 {
8852 dlopen ();
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859   (eval $ac_link) 2>conftest.er1
8860   ac_status=$?
8861   grep -v '^ *+' conftest.er1 >conftest.err
8862   rm -f conftest.er1
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); } &&
8866          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; } &&
8872          { ac_try='test -s conftest$ac_exeext'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; }; then
8878   ac_cv_lib_dl_dlopen=yes
8879 else
8880   echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883 ac_cv_lib_dl_dlopen=no
8884 fi
8885 rm -f conftest.err conftest.$ac_objext \
8886       conftest$ac_exeext conftest.$ac_ext
8887 LIBS=$ac_check_lib_save_LIBS
8888 fi
8889 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8891 if test $ac_cv_lib_dl_dlopen = yes; then
8892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8893 else
8894   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lsvld  $LIBS"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907
8908 /* Override any gcc2 internal prototype to avoid an error.  */
8909 #ifdef __cplusplus
8910 extern "C"
8911 #endif
8912 /* We use char because int might match the return type of a gcc2
8913    builtin and then its argument prototype would still apply.  */
8914 char dlopen ();
8915 int
8916 main ()
8917 {
8918 dlopen ();
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925   (eval $ac_link) 2>conftest.er1
8926   ac_status=$?
8927   grep -v '^ *+' conftest.er1 >conftest.err
8928   rm -f conftest.er1
8929   cat conftest.err >&5
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } &&
8932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; } &&
8938          { ac_try='test -s conftest$ac_exeext'
8939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940   (eval $ac_try) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; }; then
8944   ac_cv_lib_svld_dlopen=yes
8945 else
8946   echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949 ac_cv_lib_svld_dlopen=no
8950 fi
8951 rm -f conftest.err conftest.$ac_objext \
8952       conftest$ac_exeext conftest.$ac_ext
8953 LIBS=$ac_check_lib_save_LIBS
8954 fi
8955 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8957 if test $ac_cv_lib_svld_dlopen = yes; then
8958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8959 else
8960   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   ac_check_lib_save_LIBS=$LIBS
8966 LIBS="-ldld  $LIBS"
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973
8974 /* Override any gcc2 internal prototype to avoid an error.  */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 /* We use char because int might match the return type of a gcc2
8979    builtin and then its argument prototype would still apply.  */
8980 char dld_link ();
8981 int
8982 main ()
8983 {
8984 dld_link ();
8985   ;
8986   return 0;
8987 }
8988 _ACEOF
8989 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8991   (eval $ac_link) 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; } &&
9004          { ac_try='test -s conftest$ac_exeext'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; }; then
9010   ac_cv_lib_dld_dld_link=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_cv_lib_dld_dld_link=no
9016 fi
9017 rm -f conftest.err conftest.$ac_objext \
9018       conftest$ac_exeext conftest.$ac_ext
9019 LIBS=$ac_check_lib_save_LIBS
9020 fi
9021 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9023 if test $ac_cv_lib_dld_dld_link = yes; then
9024   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9025 fi
9026
9027
9028 fi
9029
9030
9031 fi
9032
9033
9034 fi
9035
9036
9037 fi
9038
9039
9040 fi
9041
9042     ;;
9043   esac
9044
9045   if test "x$lt_cv_dlopen" != xno; then
9046     enable_dlopen=yes
9047   else
9048     enable_dlopen=no
9049   fi
9050
9051   case $lt_cv_dlopen in
9052   dlopen)
9053     save_CPPFLAGS="$CPPFLAGS"
9054     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9055
9056     save_LDFLAGS="$LDFLAGS"
9057     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9058
9059     save_LIBS="$LIBS"
9060     LIBS="$lt_cv_dlopen_libs $LIBS"
9061
9062     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9064 if test "${lt_cv_dlopen_self+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067           if test "$cross_compiling" = yes; then :
9068   lt_cv_dlopen_self=cross
9069 else
9070   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9071   lt_status=$lt_dlunknown
9072   cat > conftest.$ac_ext <<EOF
9073 #line 9073 "configure"
9074 #include "confdefs.h"
9075
9076 #if HAVE_DLFCN_H
9077 #include <dlfcn.h>
9078 #endif
9079
9080 #include <stdio.h>
9081
9082 #ifdef RTLD_GLOBAL
9083 #  define LT_DLGLOBAL           RTLD_GLOBAL
9084 #else
9085 #  ifdef DL_GLOBAL
9086 #    define LT_DLGLOBAL         DL_GLOBAL
9087 #  else
9088 #    define LT_DLGLOBAL         0
9089 #  endif
9090 #endif
9091
9092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9093    find out it does not work in some platform. */
9094 #ifndef LT_DLLAZY_OR_NOW
9095 #  ifdef RTLD_LAZY
9096 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9097 #  else
9098 #    ifdef DL_LAZY
9099 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9100 #    else
9101 #      ifdef RTLD_NOW
9102 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9103 #      else
9104 #        ifdef DL_NOW
9105 #          define LT_DLLAZY_OR_NOW      DL_NOW
9106 #        else
9107 #          define LT_DLLAZY_OR_NOW      0
9108 #        endif
9109 #      endif
9110 #    endif
9111 #  endif
9112 #endif
9113
9114 #ifdef __cplusplus
9115 extern "C" void exit (int);
9116 #endif
9117
9118 void fnord() { int i=42;}
9119 int main ()
9120 {
9121   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9122   int status = $lt_dlunknown;
9123
9124   if (self)
9125     {
9126       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9127       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9128       /* dlclose (self); */
9129     }
9130   else
9131     puts (dlerror ());
9132
9133     exit (status);
9134 }
9135 EOF
9136   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137   (eval $ac_link) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9141     (./conftest; exit; ) >&5 2>/dev/null
9142     lt_status=$?
9143     case x$lt_status in
9144       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9145       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9146       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9147     esac
9148   else :
9149     # compilation failed
9150     lt_cv_dlopen_self=no
9151   fi
9152 fi
9153 rm -fr conftest*
9154
9155
9156 fi
9157 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9158 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9159
9160     if test "x$lt_cv_dlopen_self" = xyes; then
9161       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9162       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9163 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9164 if test "${lt_cv_dlopen_self_static+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167           if test "$cross_compiling" = yes; then :
9168   lt_cv_dlopen_self_static=cross
9169 else
9170   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9171   lt_status=$lt_dlunknown
9172   cat > conftest.$ac_ext <<EOF
9173 #line 9173 "configure"
9174 #include "confdefs.h"
9175
9176 #if HAVE_DLFCN_H
9177 #include <dlfcn.h>
9178 #endif
9179
9180 #include <stdio.h>
9181
9182 #ifdef RTLD_GLOBAL
9183 #  define LT_DLGLOBAL           RTLD_GLOBAL
9184 #else
9185 #  ifdef DL_GLOBAL
9186 #    define LT_DLGLOBAL         DL_GLOBAL
9187 #  else
9188 #    define LT_DLGLOBAL         0
9189 #  endif
9190 #endif
9191
9192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9193    find out it does not work in some platform. */
9194 #ifndef LT_DLLAZY_OR_NOW
9195 #  ifdef RTLD_LAZY
9196 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9197 #  else
9198 #    ifdef DL_LAZY
9199 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9200 #    else
9201 #      ifdef RTLD_NOW
9202 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9203 #      else
9204 #        ifdef DL_NOW
9205 #          define LT_DLLAZY_OR_NOW      DL_NOW
9206 #        else
9207 #          define LT_DLLAZY_OR_NOW      0
9208 #        endif
9209 #      endif
9210 #    endif
9211 #  endif
9212 #endif
9213
9214 #ifdef __cplusplus
9215 extern "C" void exit (int);
9216 #endif
9217
9218 void fnord() { int i=42;}
9219 int main ()
9220 {
9221   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9222   int status = $lt_dlunknown;
9223
9224   if (self)
9225     {
9226       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9227       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9228       /* dlclose (self); */
9229     }
9230   else
9231     puts (dlerror ());
9232
9233     exit (status);
9234 }
9235 EOF
9236   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237   (eval $ac_link) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9241     (./conftest; exit; ) >&5 2>/dev/null
9242     lt_status=$?
9243     case x$lt_status in
9244       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9245       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9246       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9247     esac
9248   else :
9249     # compilation failed
9250     lt_cv_dlopen_self_static=no
9251   fi
9252 fi
9253 rm -fr conftest*
9254
9255
9256 fi
9257 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9258 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9259     fi
9260
9261     CPPFLAGS="$save_CPPFLAGS"
9262     LDFLAGS="$save_LDFLAGS"
9263     LIBS="$save_LIBS"
9264     ;;
9265   esac
9266
9267   case $lt_cv_dlopen_self in
9268   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9269   *) enable_dlopen_self=unknown ;;
9270   esac
9271
9272   case $lt_cv_dlopen_self_static in
9273   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9274   *) enable_dlopen_self_static=unknown ;;
9275   esac
9276 fi
9277
9278
9279 # Report which library types will actually be built
9280 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9281 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9282 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9283 echo "${ECHO_T}$can_build_shared" >&6
9284
9285 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9286 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9287 test "$can_build_shared" = "no" && enable_shared=no
9288
9289 # On AIX, shared libraries and static libraries use the same namespace, and
9290 # are all built from PIC.
9291 case $host_os in
9292 aix3*)
9293   test "$enable_shared" = yes && enable_static=no
9294   if test -n "$RANLIB"; then
9295     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9296     postinstall_cmds='$RANLIB $lib'
9297   fi
9298   ;;
9299
9300 aix4* | aix5*)
9301   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9302     test "$enable_shared" = yes && enable_static=no
9303   fi
9304     ;;
9305 esac
9306 echo "$as_me:$LINENO: result: $enable_shared" >&5
9307 echo "${ECHO_T}$enable_shared" >&6
9308
9309 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9310 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9311 # Make sure either enable_shared or enable_static is yes.
9312 test "$enable_shared" = yes || enable_static=yes
9313 echo "$as_me:$LINENO: result: $enable_static" >&5
9314 echo "${ECHO_T}$enable_static" >&6
9315
9316 # The else clause should only fire when bootstrapping the
9317 # libtool distribution, otherwise you forgot to ship ltmain.sh
9318 # with your package, and you will get complaints that there are
9319 # no rules to generate ltmain.sh.
9320 if test -f "$ltmain"; then
9321   # See if we are running on zsh, and set the options which allow our commands through
9322   # without removal of \ escapes.
9323   if test -n "${ZSH_VERSION+set}" ; then
9324     setopt NO_GLOB_SUBST
9325   fi
9326   # Now quote all the things that may contain metacharacters while being
9327   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9328   # variables and quote the copies for generation of the libtool script.
9329   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9330     SED SHELL STRIP \
9331     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9332     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9333     deplibs_check_method reload_flag reload_cmds need_locks \
9334     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9335     lt_cv_sys_global_symbol_to_c_name_address \
9336     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9337     old_postinstall_cmds old_postuninstall_cmds \
9338     compiler \
9339     CC \
9340     LD \
9341     lt_prog_compiler_wl \
9342     lt_prog_compiler_pic \
9343     lt_prog_compiler_static \
9344     lt_prog_compiler_no_builtin_flag \
9345     export_dynamic_flag_spec \
9346     thread_safe_flag_spec \
9347     whole_archive_flag_spec \
9348     enable_shared_with_static_runtimes \
9349     old_archive_cmds \
9350     old_archive_from_new_cmds \
9351     predep_objects \
9352     postdep_objects \
9353     predeps \
9354     postdeps \
9355     compiler_lib_search_path \
9356     archive_cmds \
9357     archive_expsym_cmds \
9358     postinstall_cmds \
9359     postuninstall_cmds \
9360     old_archive_from_expsyms_cmds \
9361     allow_undefined_flag \
9362     no_undefined_flag \
9363     export_symbols_cmds \
9364     hardcode_libdir_flag_spec \
9365     hardcode_libdir_flag_spec_ld \
9366     hardcode_libdir_separator \
9367     hardcode_automatic \
9368     module_cmds \
9369     module_expsym_cmds \
9370     lt_cv_prog_compiler_c_o \
9371     exclude_expsyms \
9372     include_expsyms; do
9373
9374     case $var in
9375     old_archive_cmds | \
9376     old_archive_from_new_cmds | \
9377     archive_cmds | \
9378     archive_expsym_cmds | \
9379     module_cmds | \
9380     module_expsym_cmds | \
9381     old_archive_from_expsyms_cmds | \
9382     export_symbols_cmds | \
9383     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9384     postinstall_cmds | postuninstall_cmds | \
9385     old_postinstall_cmds | old_postuninstall_cmds | \
9386     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9387       # Double-quote double-evaled strings.
9388       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9389       ;;
9390     *)
9391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9392       ;;
9393     esac
9394   done
9395
9396   case $lt_echo in
9397   *'\$0 --fallback-echo"')
9398     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9399     ;;
9400   esac
9401
9402 cfgfile="${ofile}T"
9403   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9404   $rm -f "$cfgfile"
9405   { echo "$as_me:$LINENO: creating $ofile" >&5
9406 echo "$as_me: creating $ofile" >&6;}
9407
9408   cat <<__EOF__ >> "$cfgfile"
9409 #! $SHELL
9410
9411 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9412 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9414 #
9415 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9416 # Free Software Foundation, Inc.
9417 #
9418 # This file is part of GNU Libtool:
9419 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9420 #
9421 # This program is free software; you can redistribute it and/or modify
9422 # it under the terms of the GNU General Public License as published by
9423 # the Free Software Foundation; either version 2 of the License, or
9424 # (at your option) any later version.
9425 #
9426 # This program is distributed in the hope that it will be useful, but
9427 # WITHOUT ANY WARRANTY; without even the implied warranty of
9428 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9429 # General Public License for more details.
9430 #
9431 # You should have received a copy of the GNU General Public License
9432 # along with this program; if not, write to the Free Software
9433 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9434 #
9435 # As a special exception to the GNU General Public License, if you
9436 # distribute this file as part of a program that contains a
9437 # configuration script generated by Autoconf, you may include it under
9438 # the same distribution terms that you use for the rest of that program.
9439
9440 # A sed program that does not truncate output.
9441 SED=$lt_SED
9442
9443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9444 Xsed="$SED -e 1s/^X//"
9445
9446 # The HP-UX ksh and POSIX shell print the target directory to stdout
9447 # if CDPATH is set.
9448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9449
9450 # The names of the tagged configurations supported by this script.
9451 available_tags=
9452
9453 # ### BEGIN LIBTOOL CONFIG
9454
9455 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9456
9457 # Shell to use when invoking shell scripts.
9458 SHELL=$lt_SHELL
9459
9460 # Whether or not to build shared libraries.
9461 build_libtool_libs=$enable_shared
9462
9463 # Whether or not to build static libraries.
9464 build_old_libs=$enable_static
9465
9466 # Whether or not to add -lc for building shared libraries.
9467 build_libtool_need_lc=$archive_cmds_need_lc
9468
9469 # Whether or not to disallow shared libs when runtime libs are static
9470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9471
9472 # Whether or not to optimize for fast installation.
9473 fast_install=$enable_fast_install
9474
9475 # The host system.
9476 host_alias=$host_alias
9477 host=$host
9478 host_os=$host_os
9479
9480 # The build system.
9481 build_alias=$build_alias
9482 build=$build
9483 build_os=$build_os
9484
9485 # An echo program that does not interpret backslashes.
9486 echo=$lt_echo
9487
9488 # The archiver.
9489 AR=$lt_AR
9490 AR_FLAGS=$lt_AR_FLAGS
9491
9492 # A C compiler.
9493 LTCC=$lt_LTCC
9494
9495 # LTCC compiler flags.
9496 LTCFLAGS=$lt_LTCFLAGS
9497
9498 # A language-specific compiler.
9499 CC=$lt_compiler
9500
9501 # Is the compiler the GNU C compiler?
9502 with_gcc=$GCC
9503
9504 # An ERE matcher.
9505 EGREP=$lt_EGREP
9506
9507 # The linker used to build libraries.
9508 LD=$lt_LD
9509
9510 # Whether we need hard or soft links.
9511 LN_S=$lt_LN_S
9512
9513 # A BSD-compatible nm program.
9514 NM=$lt_NM
9515
9516 # A symbol stripping program
9517 STRIP=$lt_STRIP
9518
9519 # Used to examine libraries when file_magic_cmd begins "file"
9520 MAGIC_CMD=$MAGIC_CMD
9521
9522 # Used on cygwin: DLL creation program.
9523 DLLTOOL="$DLLTOOL"
9524
9525 # Used on cygwin: object dumper.
9526 OBJDUMP="$OBJDUMP"
9527
9528 # Used on cygwin: assembler.
9529 AS="$AS"
9530
9531 # The name of the directory that contains temporary libtool files.
9532 objdir=$objdir
9533
9534 # How to create reloadable object files.
9535 reload_flag=$lt_reload_flag
9536 reload_cmds=$lt_reload_cmds
9537
9538 # How to pass a linker flag through the compiler.
9539 wl=$lt_lt_prog_compiler_wl
9540
9541 # Object file suffix (normally "o").
9542 objext="$ac_objext"
9543
9544 # Old archive suffix (normally "a").
9545 libext="$libext"
9546
9547 # Shared library suffix (normally ".so").
9548 shrext_cmds='$shrext_cmds'
9549
9550 # Executable file suffix (normally "").
9551 exeext="$exeext"
9552
9553 # Additional compiler flags for building library objects.
9554 pic_flag=$lt_lt_prog_compiler_pic
9555 pic_mode=$pic_mode
9556
9557 # What is the maximum length of a command?
9558 max_cmd_len=$lt_cv_sys_max_cmd_len
9559
9560 # Does compiler simultaneously support -c and -o options?
9561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9562
9563 # Must we lock files when doing compilation?
9564 need_locks=$lt_need_locks
9565
9566 # Do we need the lib prefix for modules?
9567 need_lib_prefix=$need_lib_prefix
9568
9569 # Do we need a version for libraries?
9570 need_version=$need_version
9571
9572 # Whether dlopen is supported.
9573 dlopen_support=$enable_dlopen
9574
9575 # Whether dlopen of programs is supported.
9576 dlopen_self=$enable_dlopen_self
9577
9578 # Whether dlopen of statically linked programs is supported.
9579 dlopen_self_static=$enable_dlopen_self_static
9580
9581 # Compiler flag to prevent dynamic linking.
9582 link_static_flag=$lt_lt_prog_compiler_static
9583
9584 # Compiler flag to turn off builtin functions.
9585 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9586
9587 # Compiler flag to allow reflexive dlopens.
9588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9589
9590 # Compiler flag to generate shared objects directly from archives.
9591 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9592
9593 # Compiler flag to generate thread-safe objects.
9594 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9595
9596 # Library versioning type.
9597 version_type=$version_type
9598
9599 # Format of library name prefix.
9600 libname_spec=$lt_libname_spec
9601
9602 # List of archive names.  First name is the real one, the rest are links.
9603 # The last name is the one that the linker finds with -lNAME.
9604 library_names_spec=$lt_library_names_spec
9605
9606 # The coded name of the library, if different from the real name.
9607 soname_spec=$lt_soname_spec
9608
9609 # Commands used to build and install an old-style archive.
9610 RANLIB=$lt_RANLIB
9611 old_archive_cmds=$lt_old_archive_cmds
9612 old_postinstall_cmds=$lt_old_postinstall_cmds
9613 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9614
9615 # Create an old-style archive from a shared archive.
9616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9617
9618 # Create a temporary old-style archive to link instead of a shared archive.
9619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9620
9621 # Commands used to build and install a shared archive.
9622 archive_cmds=$lt_archive_cmds
9623 archive_expsym_cmds=$lt_archive_expsym_cmds
9624 postinstall_cmds=$lt_postinstall_cmds
9625 postuninstall_cmds=$lt_postuninstall_cmds
9626
9627 # Commands used to build a loadable module (assumed same as above if empty)
9628 module_cmds=$lt_module_cmds
9629 module_expsym_cmds=$lt_module_expsym_cmds
9630
9631 # Commands to strip libraries.
9632 old_striplib=$lt_old_striplib
9633 striplib=$lt_striplib
9634
9635 # Dependencies to place before the objects being linked to create a
9636 # shared library.
9637 predep_objects=$lt_predep_objects
9638
9639 # Dependencies to place after the objects being linked to create a
9640 # shared library.
9641 postdep_objects=$lt_postdep_objects
9642
9643 # Dependencies to place before the objects being linked to create a
9644 # shared library.
9645 predeps=$lt_predeps
9646
9647 # Dependencies to place after the objects being linked to create a
9648 # shared library.
9649 postdeps=$lt_postdeps
9650
9651 # The library search path used internally by the compiler when linking
9652 # a shared library.
9653 compiler_lib_search_path=$lt_compiler_lib_search_path
9654
9655 # Method to check whether dependent libraries are shared objects.
9656 deplibs_check_method=$lt_deplibs_check_method
9657
9658 # Command to use when deplibs_check_method == file_magic.
9659 file_magic_cmd=$lt_file_magic_cmd
9660
9661 # Flag that allows shared libraries with undefined symbols to be built.
9662 allow_undefined_flag=$lt_allow_undefined_flag
9663
9664 # Flag that forces no undefined symbols.
9665 no_undefined_flag=$lt_no_undefined_flag
9666
9667 # Commands used to finish a libtool library installation in a directory.
9668 finish_cmds=$lt_finish_cmds
9669
9670 # Same as above, but a single script fragment to be evaled but not shown.
9671 finish_eval=$lt_finish_eval
9672
9673 # Take the output of nm and produce a listing of raw symbols and C names.
9674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9675
9676 # Transform the output of nm in a proper C declaration
9677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9678
9679 # Transform the output of nm in a C name address pair
9680 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9681
9682 # This is the shared library runtime path variable.
9683 runpath_var=$runpath_var
9684
9685 # This is the shared library path variable.
9686 shlibpath_var=$shlibpath_var
9687
9688 # Is shlibpath searched before the hard-coded library search path?
9689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9690
9691 # How to hardcode a shared library path into an executable.
9692 hardcode_action=$hardcode_action
9693
9694 # Whether we should hardcode library paths into libraries.
9695 hardcode_into_libs=$hardcode_into_libs
9696
9697 # Flag to hardcode \$libdir into a binary during linking.
9698 # This must work even if \$libdir does not exist.
9699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9700
9701 # If ld is used when linking, flag to hardcode \$libdir into
9702 # a binary during linking. This must work even if \$libdir does
9703 # not exist.
9704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9705
9706 # Whether we need a single -rpath flag with a separated argument.
9707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9708
9709 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9710 # resulting binary.
9711 hardcode_direct=$hardcode_direct
9712
9713 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9714 # resulting binary.
9715 hardcode_minus_L=$hardcode_minus_L
9716
9717 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9718 # the resulting binary.
9719 hardcode_shlibpath_var=$hardcode_shlibpath_var
9720
9721 # Set to yes if building a shared library automatically hardcodes DIR into the library
9722 # and all subsequent libraries and executables linked against it.
9723 hardcode_automatic=$hardcode_automatic
9724
9725 # Variables whose values should be saved in libtool wrapper scripts and
9726 # restored at relink time.
9727 variables_saved_for_relink="$variables_saved_for_relink"
9728
9729 # Whether libtool must link a program against all its dependency libraries.
9730 link_all_deplibs=$link_all_deplibs
9731
9732 # Compile-time system search path for libraries
9733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9734
9735 # Run-time system search path for libraries
9736 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9737
9738 # Fix the shell variable \$srcfile for the compiler.
9739 fix_srcfile_path="$fix_srcfile_path"
9740
9741 # Set to yes if exported symbols are required.
9742 always_export_symbols=$always_export_symbols
9743
9744 # The commands to list exported symbols.
9745 export_symbols_cmds=$lt_export_symbols_cmds
9746
9747 # The commands to extract the exported symbol list from a shared archive.
9748 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9749
9750 # Symbols that should not be listed in the preloaded symbols.
9751 exclude_expsyms=$lt_exclude_expsyms
9752
9753 # Symbols that must always be exported.
9754 include_expsyms=$lt_include_expsyms
9755
9756 # ### END LIBTOOL CONFIG
9757
9758 __EOF__
9759
9760
9761   case $host_os in
9762   aix3*)
9763     cat <<\EOF >> "$cfgfile"
9764
9765 # AIX sometimes has problems with the GCC collect2 program.  For some
9766 # reason, if we set the COLLECT_NAMES environment variable, the problems
9767 # vanish in a puff of smoke.
9768 if test "X${COLLECT_NAMES+set}" != Xset; then
9769   COLLECT_NAMES=
9770   export COLLECT_NAMES
9771 fi
9772 EOF
9773     ;;
9774   esac
9775
9776   # We use sed instead of cat because bash on DJGPP gets confused if
9777   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9778   # text mode, it properly converts lines to CR/LF.  This bash problem
9779   # is reportedly fixed, but why not run on old versions too?
9780   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9781
9782   mv -f "$cfgfile" "$ofile" || \
9783     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9784   chmod +x "$ofile"
9785
9786 else
9787   # If there is no Makefile yet, we rely on a make rule to execute
9788   # `config.status --recheck' to rerun these tests and create the
9789   # libtool script then.
9790   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9791   if test -f "$ltmain_in"; then
9792     test -f Makefile && make "$ltmain"
9793   fi
9794 fi
9795
9796
9797 ac_ext=c
9798 ac_cpp='$CPP $CPPFLAGS'
9799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9802
9803 CC="$lt_save_CC"
9804
9805
9806 # Check whether --with-tags or --without-tags was given.
9807 if test "${with_tags+set}" = set; then
9808   withval="$with_tags"
9809   tagnames="$withval"
9810 fi;
9811
9812 if test -f "$ltmain" && test -n "$tagnames"; then
9813   if test ! -f "${ofile}"; then
9814     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9815 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9816   fi
9817
9818   if test -z "$LTCC"; then
9819     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9820     if test -z "$LTCC"; then
9821       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9822 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9823     else
9824       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9825 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9826     fi
9827   fi
9828   if test -z "$LTCFLAGS"; then
9829     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9830   fi
9831
9832   # Extract list of available tagged configurations in $ofile.
9833   # Note that this assumes the entire list is on one line.
9834   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9835
9836   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9837   for tagname in $tagnames; do
9838     IFS="$lt_save_ifs"
9839     # Check whether tagname contains only valid characters
9840     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9841     "") ;;
9842     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9843 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9844    { (exit 1); exit 1; }; }
9845         ;;
9846     esac
9847
9848     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9849     then
9850       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9851 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9852    { (exit 1); exit 1; }; }
9853     fi
9854
9855     # Update the list of available tags.
9856     if test -n "$tagname"; then
9857       echo appending configuration tag \"$tagname\" to $ofile
9858
9859       case $tagname in
9860       CXX)
9861         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9862             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9863             (test "X$CXX" != "Xg++"))) ; then
9864           ac_ext=cc
9865 ac_cpp='$CXXCPP $CPPFLAGS'
9866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9869
9870
9871
9872
9873 archive_cmds_need_lc_CXX=no
9874 allow_undefined_flag_CXX=
9875 always_export_symbols_CXX=no
9876 archive_expsym_cmds_CXX=
9877 export_dynamic_flag_spec_CXX=
9878 hardcode_direct_CXX=no
9879 hardcode_libdir_flag_spec_CXX=
9880 hardcode_libdir_flag_spec_ld_CXX=
9881 hardcode_libdir_separator_CXX=
9882 hardcode_minus_L_CXX=no
9883 hardcode_shlibpath_var_CXX=unsupported
9884 hardcode_automatic_CXX=no
9885 module_cmds_CXX=
9886 module_expsym_cmds_CXX=
9887 link_all_deplibs_CXX=unknown
9888 old_archive_cmds_CXX=$old_archive_cmds
9889 no_undefined_flag_CXX=
9890 whole_archive_flag_spec_CXX=
9891 enable_shared_with_static_runtimes_CXX=no
9892
9893 # Dependencies to place before and after the object being linked:
9894 predep_objects_CXX=
9895 postdep_objects_CXX=
9896 predeps_CXX=
9897 postdeps_CXX=
9898 compiler_lib_search_path_CXX=
9899
9900 # Source file extension for C++ test sources.
9901 ac_ext=cpp
9902
9903 # Object file extension for compiled C++ test sources.
9904 objext=o
9905 objext_CXX=$objext
9906
9907 # Code to be used in simple compile tests
9908 lt_simple_compile_test_code="int some_variable = 0;\n"
9909
9910 # Code to be used in simple link tests
9911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9912
9913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9914
9915 # If no C compiler was specified, use CC.
9916 LTCC=${LTCC-"$CC"}
9917
9918 # If no C compiler flags were specified, use CFLAGS.
9919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9920
9921 # Allow CC to be a program name with arguments.
9922 compiler=$CC
9923
9924
9925 # save warnings/boilerplate of simple test code
9926 ac_outfile=conftest.$ac_objext
9927 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9929 _lt_compiler_boilerplate=`cat conftest.err`
9930 $rm conftest*
9931
9932 ac_outfile=conftest.$ac_objext
9933 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9935 _lt_linker_boilerplate=`cat conftest.err`
9936 $rm conftest*
9937
9938
9939 # Allow CC to be a program name with arguments.
9940 lt_save_CC=$CC
9941 lt_save_LD=$LD
9942 lt_save_GCC=$GCC
9943 GCC=$GXX
9944 lt_save_with_gnu_ld=$with_gnu_ld
9945 lt_save_path_LD=$lt_cv_path_LD
9946 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9947   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9948 else
9949   $as_unset lt_cv_prog_gnu_ld
9950 fi
9951 if test -n "${lt_cv_path_LDCXX+set}"; then
9952   lt_cv_path_LD=$lt_cv_path_LDCXX
9953 else
9954   $as_unset lt_cv_path_LD
9955 fi
9956 test -z "${LDCXX+set}" || LD=$LDCXX
9957 CC=${CXX-"c++"}
9958 compiler=$CC
9959 compiler_CXX=$CC
9960 for cc_temp in $compiler""; do
9961   case $cc_temp in
9962     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9963     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9964     \-*) ;;
9965     *) break;;
9966   esac
9967 done
9968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9969
9970
9971 # We don't want -fno-exception wen compiling C++ code, so set the
9972 # no_builtin_flag separately
9973 if test "$GXX" = yes; then
9974   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9975 else
9976   lt_prog_compiler_no_builtin_flag_CXX=
9977 fi
9978
9979 if test "$GXX" = yes; then
9980   # Set up default GNU C++ configuration
9981
9982
9983 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9984 if test "${with_gnu_ld+set}" = set; then
9985   withval="$with_gnu_ld"
9986   test "$withval" = no || with_gnu_ld=yes
9987 else
9988   with_gnu_ld=no
9989 fi;
9990 ac_prog=ld
9991 if test "$GCC" = yes; then
9992   # Check if gcc -print-prog-name=ld gives a path.
9993   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9994 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9995   case $host in
9996   *-*-mingw*)
9997     # gcc leaves a trailing carriage return which upsets mingw
9998     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9999   *)
10000     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10001   esac
10002   case $ac_prog in
10003     # Accept absolute paths.
10004     [\\/]* | ?:[\\/]*)
10005       re_direlt='/[^/][^/]*/\.\./'
10006       # Canonicalize the pathname of ld
10007       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10008       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10009         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10010       done
10011       test -z "$LD" && LD="$ac_prog"
10012       ;;
10013   "")
10014     # If it fails, then pretend we aren't using GCC.
10015     ac_prog=ld
10016     ;;
10017   *)
10018     # If it is relative, then search for the first ld in PATH.
10019     with_gnu_ld=unknown
10020     ;;
10021   esac
10022 elif test "$with_gnu_ld" = yes; then
10023   echo "$as_me:$LINENO: checking for GNU ld" >&5
10024 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10025 else
10026   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10027 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10028 fi
10029 if test "${lt_cv_path_LD+set}" = set; then
10030   echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032   if test -z "$LD"; then
10033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10034   for ac_dir in $PATH; do
10035     IFS="$lt_save_ifs"
10036     test -z "$ac_dir" && ac_dir=.
10037     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10038       lt_cv_path_LD="$ac_dir/$ac_prog"
10039       # Check to see if the program is GNU ld.  I'd rather use --version,
10040       # but apparently some variants of GNU ld only accept -v.
10041       # Break only if it was the GNU/non-GNU ld that we prefer.
10042       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10043       *GNU* | *'with BFD'*)
10044         test "$with_gnu_ld" != no && break
10045         ;;
10046       *)
10047         test "$with_gnu_ld" != yes && break
10048         ;;
10049       esac
10050     fi
10051   done
10052   IFS="$lt_save_ifs"
10053 else
10054   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10055 fi
10056 fi
10057
10058 LD="$lt_cv_path_LD"
10059 if test -n "$LD"; then
10060   echo "$as_me:$LINENO: result: $LD" >&5
10061 echo "${ECHO_T}$LD" >&6
10062 else
10063   echo "$as_me:$LINENO: result: no" >&5
10064 echo "${ECHO_T}no" >&6
10065 fi
10066 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10067 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10068    { (exit 1); exit 1; }; }
10069 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10070 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10071 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10075 case `$LD -v 2>&1 </dev/null` in
10076 *GNU* | *'with BFD'*)
10077   lt_cv_prog_gnu_ld=yes
10078   ;;
10079 *)
10080   lt_cv_prog_gnu_ld=no
10081   ;;
10082 esac
10083 fi
10084 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10085 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10086 with_gnu_ld=$lt_cv_prog_gnu_ld
10087
10088
10089
10090   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10091   # archiving commands below assume that GNU ld is being used.
10092   if test "$with_gnu_ld" = yes; then
10093     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094     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'
10095
10096     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10097     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10098
10099     # If archive_cmds runs LD, not CC, wlarc should be empty
10100     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10101     #     investigate it a little bit more. (MM)
10102     wlarc='${wl}'
10103
10104     # ancient GNU ld didn't support --whole-archive et. al.
10105     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10106         grep 'no-whole-archive' > /dev/null; then
10107       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10108     else
10109       whole_archive_flag_spec_CXX=
10110     fi
10111   else
10112     with_gnu_ld=no
10113     wlarc=
10114
10115     # A generic and very simple default shared library creation
10116     # command for GNU C++ for the case where it uses the native
10117     # linker, instead of GNU ld.  If possible, this setting should
10118     # overridden to take advantage of the native linker features on
10119     # the platform it is being used on.
10120     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10121   fi
10122
10123   # Commands to make compiler produce verbose output that lists
10124   # what "hidden" libraries, object files and flags are used when
10125   # linking a shared library.
10126   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10127
10128 else
10129   GXX=no
10130   with_gnu_ld=no
10131   wlarc=
10132 fi
10133
10134 # PORTME: fill in a description of your system's C++ link characteristics
10135 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10136 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10137 ld_shlibs_CXX=yes
10138 case $host_os in
10139   aix3*)
10140     # FIXME: insert proper C++ library support
10141     ld_shlibs_CXX=no
10142     ;;
10143   aix4* | aix5*)
10144     if test "$host_cpu" = ia64; then
10145       # On IA64, the linker does run time linking by default, so we don't
10146       # have to do anything special.
10147       aix_use_runtimelinking=no
10148       exp_sym_flag='-Bexport'
10149       no_entry_flag=""
10150     else
10151       aix_use_runtimelinking=no
10152
10153       # Test if we are trying to use run time linking or normal
10154       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10155       # need to do runtime linking.
10156       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10157         for ld_flag in $LDFLAGS; do
10158           case $ld_flag in
10159           *-brtl*)
10160             aix_use_runtimelinking=yes
10161             break
10162             ;;
10163           esac
10164         done
10165         ;;
10166       esac
10167
10168       exp_sym_flag='-bexport'
10169       no_entry_flag='-bnoentry'
10170     fi
10171
10172     # When large executables or shared objects are built, AIX ld can
10173     # have problems creating the table of contents.  If linking a library
10174     # or program results in "error TOC overflow" add -mminimal-toc to
10175     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10176     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10177
10178     archive_cmds_CXX=''
10179     hardcode_direct_CXX=yes
10180     hardcode_libdir_separator_CXX=':'
10181     link_all_deplibs_CXX=yes
10182
10183     if test "$GXX" = yes; then
10184       case $host_os in aix4.[012]|aix4.[012].*)
10185       # We only want to do this on AIX 4.2 and lower, the check
10186       # below for broken collect2 doesn't work under 4.3+
10187         collect2name=`${CC} -print-prog-name=collect2`
10188         if test -f "$collect2name" && \
10189            strings "$collect2name" | grep resolve_lib_name >/dev/null
10190         then
10191           # We have reworked collect2
10192           hardcode_direct_CXX=yes
10193         else
10194           # We have old collect2
10195           hardcode_direct_CXX=unsupported
10196           # It fails to find uninstalled libraries when the uninstalled
10197           # path is not listed in the libpath.  Setting hardcode_minus_L
10198           # to unsupported forces relinking
10199           hardcode_minus_L_CXX=yes
10200           hardcode_libdir_flag_spec_CXX='-L$libdir'
10201           hardcode_libdir_separator_CXX=
10202         fi
10203         ;;
10204       esac
10205       shared_flag='-shared'
10206       if test "$aix_use_runtimelinking" = yes; then
10207         shared_flag="$shared_flag "'${wl}-G'
10208       fi
10209     else
10210       # not using gcc
10211       if test "$host_cpu" = ia64; then
10212         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10213         # chokes on -Wl,-G. The following line is correct:
10214         shared_flag='-G'
10215       else
10216         if test "$aix_use_runtimelinking" = yes; then
10217           shared_flag='${wl}-G'
10218         else
10219           shared_flag='${wl}-bM:SRE'
10220         fi
10221       fi
10222     fi
10223
10224     # It seems that -bexpall does not export symbols beginning with
10225     # underscore (_), so it is better to generate a list of symbols to export.
10226     always_export_symbols_CXX=yes
10227     if test "$aix_use_runtimelinking" = yes; then
10228       # Warning - without using the other runtime loading flags (-brtl),
10229       # -berok will link without error, but may produce a broken library.
10230       allow_undefined_flag_CXX='-berok'
10231       # Determine the default libpath from the value encoded in an empty executable.
10232       cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238
10239 int
10240 main ()
10241 {
10242
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249   (eval $ac_link) 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10270 }'`
10271 # Check for a 64-bit object if we didn't find anything.
10272 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10273 }'`; fi
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 fi
10279 rm -f conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282
10283       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284
10285       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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10286      else
10287       if test "$host_cpu" = ia64; then
10288         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10289         allow_undefined_flag_CXX="-z nodefs"
10290         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"
10291       else
10292         # Determine the default libpath from the value encoded in an empty executable.
10293         cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300 int
10301 main ()
10302 {
10303
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310   (eval $ac_link) 2>conftest.er1
10311   ac_status=$?
10312   grep -v '^ *+' conftest.er1 >conftest.err
10313   rm -f conftest.er1
10314   cat conftest.err >&5
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10331 }'`
10332 # Check for a 64-bit object if we didn't find anything.
10333 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10334 }'`; fi
10335 else
10336   echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341       conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10343
10344         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345         # Warning - without using the other run time loading flags,
10346         # -berok will link without error, but may produce a broken library.
10347         no_undefined_flag_CXX=' ${wl}-bernotok'
10348         allow_undefined_flag_CXX=' ${wl}-berok'
10349         # Exported symbols can be pulled into shared objects from archives
10350         whole_archive_flag_spec_CXX='$convenience'
10351         archive_cmds_need_lc_CXX=yes
10352         # This is similar to how AIX traditionally builds its shared libraries.
10353         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'
10354       fi
10355     fi
10356     ;;
10357
10358   beos*)
10359     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10360       allow_undefined_flag_CXX=unsupported
10361       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10362       # support --undefined.  This deserves some investigation.  FIXME
10363       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364     else
10365       ld_shlibs_CXX=no
10366     fi
10367     ;;
10368
10369   chorus*)
10370     case $cc_basename in
10371       *)
10372         # FIXME: insert proper C++ library support
10373         ld_shlibs_CXX=no
10374         ;;
10375     esac
10376     ;;
10377
10378   cygwin* | mingw* | pw32*)
10379     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10380     # as there is no search path for DLLs.
10381     hardcode_libdir_flag_spec_CXX='-L$libdir'
10382     allow_undefined_flag_CXX=unsupported
10383     always_export_symbols_CXX=no
10384     enable_shared_with_static_runtimes_CXX=yes
10385
10386     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10387       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'
10388       # If the export-symbols file already is a .def file (1st line
10389       # is EXPORTS), use it as is; otherwise, prepend...
10390       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10391         cp $export_symbols $output_objdir/$soname.def;
10392       else
10393         echo EXPORTS > $output_objdir/$soname.def;
10394         cat $export_symbols >> $output_objdir/$soname.def;
10395       fi~
10396       $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'
10397     else
10398       ld_shlibs_CXX=no
10399     fi
10400   ;;
10401       darwin* | rhapsody*)
10402         case $host_os in
10403         rhapsody* | darwin1.[012])
10404          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10405          ;;
10406        *) # Darwin 1.3 on
10407          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10408            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10409          else
10410            case ${MACOSX_DEPLOYMENT_TARGET} in
10411              10.[012])
10412                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10413                ;;
10414              10.*)
10415                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10416                ;;
10417            esac
10418          fi
10419          ;;
10420         esac
10421       archive_cmds_need_lc_CXX=no
10422       hardcode_direct_CXX=no
10423       hardcode_automatic_CXX=yes
10424       hardcode_shlibpath_var_CXX=unsupported
10425       whole_archive_flag_spec_CXX=''
10426       link_all_deplibs_CXX=yes
10427
10428     if test "$GXX" = yes ; then
10429       lt_int_apple_cc_single_mod=no
10430       output_verbose_link_cmd='echo'
10431       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10432        lt_int_apple_cc_single_mod=yes
10433       fi
10434       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10435        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10436       else
10437           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'
10438         fi
10439         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10440         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10441           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10442             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10443           else
10444             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10445           fi
10446             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10447       else
10448       case $cc_basename in
10449         xlc*)
10450          output_verbose_link_cmd='echo'
10451           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10452           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10453           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10454           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10455           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10456           ;;
10457        *)
10458          ld_shlibs_CXX=no
10459           ;;
10460       esac
10461       fi
10462         ;;
10463
10464   dgux*)
10465     case $cc_basename in
10466       ec++*)
10467         # FIXME: insert proper C++ library support
10468         ld_shlibs_CXX=no
10469         ;;
10470       ghcx*)
10471         # Green Hills C++ Compiler
10472         # FIXME: insert proper C++ library support
10473         ld_shlibs_CXX=no
10474         ;;
10475       *)
10476         # FIXME: insert proper C++ library support
10477         ld_shlibs_CXX=no
10478         ;;
10479     esac
10480     ;;
10481   freebsd[12]*)
10482     # C++ shared libraries reported to be fairly broken before switch to ELF
10483     ld_shlibs_CXX=no
10484     ;;
10485   freebsd-elf*)
10486     archive_cmds_need_lc_CXX=no
10487     ;;
10488   freebsd* | kfreebsd*-gnu | dragonfly*)
10489     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10490     # conventions
10491     ld_shlibs_CXX=yes
10492     ;;
10493   gnu*)
10494     ;;
10495   hpux9*)
10496     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10497     hardcode_libdir_separator_CXX=:
10498     export_dynamic_flag_spec_CXX='${wl}-E'
10499     hardcode_direct_CXX=yes
10500     hardcode_minus_L_CXX=yes # Not in the search PATH,
10501                                 # but as the default
10502                                 # location of the library.
10503
10504     case $cc_basename in
10505     CC*)
10506       # FIXME: insert proper C++ library support
10507       ld_shlibs_CXX=no
10508       ;;
10509     aCC*)
10510       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'
10511       # Commands to make compiler produce verbose output that lists
10512       # what "hidden" libraries, object files and flags are used when
10513       # linking a shared library.
10514       #
10515       # There doesn't appear to be a way to prevent this compiler from
10516       # explicitly linking system object files so we need to strip them
10517       # from the output so that they don't get included in the library
10518       # dependencies.
10519       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10520       ;;
10521     *)
10522       if test "$GXX" = yes; then
10523         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'
10524       else
10525         # FIXME: insert proper C++ library support
10526         ld_shlibs_CXX=no
10527       fi
10528       ;;
10529     esac
10530     ;;
10531   hpux10*|hpux11*)
10532     if test $with_gnu_ld = no; then
10533       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10534       hardcode_libdir_separator_CXX=:
10535
10536       case $host_cpu in
10537       hppa*64*|ia64*)
10538         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10539         ;;
10540       *)
10541         export_dynamic_flag_spec_CXX='${wl}-E'
10542         ;;
10543       esac
10544     fi
10545     case $host_cpu in
10546     hppa*64*|ia64*)
10547       hardcode_direct_CXX=no
10548       hardcode_shlibpath_var_CXX=no
10549       ;;
10550     *)
10551       hardcode_direct_CXX=yes
10552       hardcode_minus_L_CXX=yes # Not in the search PATH,
10553                                               # but as the default
10554                                               # location of the library.
10555       ;;
10556     esac
10557
10558     case $cc_basename in
10559       CC*)
10560         # FIXME: insert proper C++ library support
10561         ld_shlibs_CXX=no
10562         ;;
10563       aCC*)
10564         case $host_cpu in
10565         hppa*64*)
10566           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10567           ;;
10568         ia64*)
10569           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10570           ;;
10571         *)
10572           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573           ;;
10574         esac
10575         # Commands to make compiler produce verbose output that lists
10576         # what "hidden" libraries, object files and flags are used when
10577         # linking a shared library.
10578         #
10579         # There doesn't appear to be a way to prevent this compiler from
10580         # explicitly linking system object files so we need to strip them
10581         # from the output so that they don't get included in the library
10582         # dependencies.
10583         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10584         ;;
10585       *)
10586         if test "$GXX" = yes; then
10587           if test $with_gnu_ld = no; then
10588             case $host_cpu in
10589             hppa*64*)
10590               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10591               ;;
10592             ia64*)
10593               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10594               ;;
10595             *)
10596               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'
10597               ;;
10598             esac
10599           fi
10600         else
10601           # FIXME: insert proper C++ library support
10602           ld_shlibs_CXX=no
10603         fi
10604         ;;
10605     esac
10606     ;;
10607   interix3*)
10608     hardcode_direct_CXX=no
10609     hardcode_shlibpath_var_CXX=no
10610     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10611     export_dynamic_flag_spec_CXX='${wl}-E'
10612     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10613     # Instead, shared libraries are loaded at an image base (0x10000000 by
10614     # default) and relocated if they conflict, which is a slow very memory
10615     # consuming and fragmenting process.  To avoid this, we pick a random,
10616     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10617     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10618     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'
10619     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'
10620     ;;
10621   irix5* | irix6*)
10622     case $cc_basename in
10623       CC*)
10624         # SGI C++
10625         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10626
10627         # Archives containing C++ object files must be created using
10628         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10629         # necessary to make sure instantiated templates are included
10630         # in the archive.
10631         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10632         ;;
10633       *)
10634         if test "$GXX" = yes; then
10635           if test "$with_gnu_ld" = no; then
10636             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10637           else
10638             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10639           fi
10640         fi
10641         link_all_deplibs_CXX=yes
10642         ;;
10643     esac
10644     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10645     hardcode_libdir_separator_CXX=:
10646     ;;
10647   linux*)
10648     case $cc_basename in
10649       KCC*)
10650         # Kuck and Associates, Inc. (KAI) C++ Compiler
10651
10652         # KCC will only create a shared library if the output file
10653         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654         # to its proper name (with version) after linking.
10655         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'
10656         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'
10657         # Commands to make compiler produce verbose output that lists
10658         # what "hidden" libraries, object files and flags are used when
10659         # linking a shared library.
10660         #
10661         # There doesn't appear to be a way to prevent this compiler from
10662         # explicitly linking system object files so we need to strip them
10663         # from the output so that they don't get included in the library
10664         # dependencies.
10665         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10666
10667         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10669
10670         # Archives containing C++ object files must be created using
10671         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10672         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10673         ;;
10674       icpc*)
10675         # Intel C++
10676         with_gnu_ld=yes
10677         # version 8.0 and above of icpc choke on multiply defined symbols
10678         # if we add $predep_objects and $postdep_objects, however 7.1 and
10679         # earlier do not add the objects themselves.
10680         case `$CC -V 2>&1` in
10681         *"Version 7."*)
10682           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683           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'
10684           ;;
10685         *)  # Version 8.0 or newer
10686           tmp_idyn=
10687           case $host_cpu in
10688             ia64*) tmp_idyn=' -i_dynamic';;
10689           esac
10690           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10691           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'
10692           ;;
10693         esac
10694         archive_cmds_need_lc_CXX=no
10695         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10696         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10697         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10698         ;;
10699       pgCC*)
10700         # Portland Group C++ compiler
10701         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10702         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'
10703
10704         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10705         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706         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'
10707         ;;
10708       cxx*)
10709         # Compaq C++
10710         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711         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'
10712
10713         runpath_var=LD_RUN_PATH
10714         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10715         hardcode_libdir_separator_CXX=:
10716
10717         # Commands to make compiler produce verbose output that lists
10718         # what "hidden" libraries, object files and flags are used when
10719         # linking a shared library.
10720         #
10721         # There doesn't appear to be a way to prevent this compiler from
10722         # explicitly linking system object files so we need to strip them
10723         # from the output so that they don't get included in the library
10724         # dependencies.
10725         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10726         ;;
10727     esac
10728     ;;
10729   lynxos*)
10730     # FIXME: insert proper C++ library support
10731     ld_shlibs_CXX=no
10732     ;;
10733   m88k*)
10734     # FIXME: insert proper C++ library support
10735     ld_shlibs_CXX=no
10736     ;;
10737   mvs*)
10738     case $cc_basename in
10739       cxx*)
10740         # FIXME: insert proper C++ library support
10741         ld_shlibs_CXX=no
10742         ;;
10743       *)
10744         # FIXME: insert proper C++ library support
10745         ld_shlibs_CXX=no
10746         ;;
10747     esac
10748     ;;
10749   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10750     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10751       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10752       wlarc=
10753       hardcode_libdir_flag_spec_CXX='-R$libdir'
10754       hardcode_direct_CXX=yes
10755       hardcode_shlibpath_var_CXX=no
10756     fi
10757     # Workaround some broken pre-1.5 toolchains
10758     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10759     ;;
10760   openbsd2*)
10761     # C++ shared libraries are fairly broken
10762     ld_shlibs_CXX=no
10763     ;;
10764   openbsd*)
10765     hardcode_direct_CXX=yes
10766     hardcode_shlibpath_var_CXX=no
10767     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10768     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10771       export_dynamic_flag_spec_CXX='${wl}-E'
10772       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10773     fi
10774     output_verbose_link_cmd='echo'
10775     ;;
10776   osf3*)
10777     case $cc_basename in
10778       KCC*)
10779         # Kuck and Associates, Inc. (KAI) C++ Compiler
10780
10781         # KCC will only create a shared library if the output file
10782         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10783         # to its proper name (with version) after linking.
10784         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'
10785
10786         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10787         hardcode_libdir_separator_CXX=:
10788
10789         # Archives containing C++ object files must be created using
10790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10792
10793         ;;
10794       RCC*)
10795         # Rational C++ 2.4.1
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799       cxx*)
10800         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10802
10803         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804         hardcode_libdir_separator_CXX=:
10805
10806         # Commands to make compiler produce verbose output that lists
10807         # what "hidden" libraries, object files and flags are used when
10808         # linking a shared library.
10809         #
10810         # There doesn't appear to be a way to prevent this compiler from
10811         # explicitly linking system object files so we need to strip them
10812         # from the output so that they don't get included in the library
10813         # dependencies.
10814         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10815         ;;
10816       *)
10817         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10818           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10819           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10820
10821           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10822           hardcode_libdir_separator_CXX=:
10823
10824           # Commands to make compiler produce verbose output that lists
10825           # what "hidden" libraries, object files and flags are used when
10826           # linking a shared library.
10827           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10828
10829         else
10830           # FIXME: insert proper C++ library support
10831           ld_shlibs_CXX=no
10832         fi
10833         ;;
10834     esac
10835     ;;
10836   osf4* | osf5*)
10837     case $cc_basename in
10838       KCC*)
10839         # Kuck and Associates, Inc. (KAI) C++ Compiler
10840
10841         # KCC will only create a shared library if the output file
10842         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10843         # to its proper name (with version) after linking.
10844         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'
10845
10846         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847         hardcode_libdir_separator_CXX=:
10848
10849         # Archives containing C++ object files must be created using
10850         # the KAI C++ compiler.
10851         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10852         ;;
10853       RCC*)
10854         # Rational C++ 2.4.1
10855         # FIXME: insert proper C++ library support
10856         ld_shlibs_CXX=no
10857         ;;
10858       cxx*)
10859         allow_undefined_flag_CXX=' -expect_unresolved \*'
10860         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10861         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10862           echo "-hidden">> $lib.exp~
10863           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10864           $rm $lib.exp'
10865
10866         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10867         hardcode_libdir_separator_CXX=:
10868
10869         # Commands to make compiler produce verbose output that lists
10870         # what "hidden" libraries, object files and flags are used when
10871         # linking a shared library.
10872         #
10873         # There doesn't appear to be a way to prevent this compiler from
10874         # explicitly linking system object files so we need to strip them
10875         # from the output so that they don't get included in the library
10876         # dependencies.
10877         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10878         ;;
10879       *)
10880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10881           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10883
10884           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885           hardcode_libdir_separator_CXX=:
10886
10887           # Commands to make compiler produce verbose output that lists
10888           # what "hidden" libraries, object files and flags are used when
10889           # linking a shared library.
10890           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10891
10892         else
10893           # FIXME: insert proper C++ library support
10894           ld_shlibs_CXX=no
10895         fi
10896         ;;
10897     esac
10898     ;;
10899   psos*)
10900     # FIXME: insert proper C++ library support
10901     ld_shlibs_CXX=no
10902     ;;
10903   sunos4*)
10904     case $cc_basename in
10905       CC*)
10906         # Sun C++ 4.x
10907         # FIXME: insert proper C++ library support
10908         ld_shlibs_CXX=no
10909         ;;
10910       lcc*)
10911         # Lucid
10912         # FIXME: insert proper C++ library support
10913         ld_shlibs_CXX=no
10914         ;;
10915       *)
10916         # FIXME: insert proper C++ library support
10917         ld_shlibs_CXX=no
10918         ;;
10919     esac
10920     ;;
10921   solaris*)
10922     case $cc_basename in
10923       CC*)
10924         # Sun C++ 4.2, 5.x and Centerline C++
10925         archive_cmds_need_lc_CXX=yes
10926         no_undefined_flag_CXX=' -zdefs'
10927         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10928         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10929         $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'
10930
10931         hardcode_libdir_flag_spec_CXX='-R$libdir'
10932         hardcode_shlibpath_var_CXX=no
10933         case $host_os in
10934           solaris2.[0-5] | solaris2.[0-5].*) ;;
10935           *)
10936             # The C++ compiler is used as linker so we must use $wl
10937             # flag to pass the commands to the underlying system
10938             # linker. We must also pass each convience library through
10939             # to the system linker between allextract/defaultextract.
10940             # The C++ compiler will combine linker options so we
10941             # cannot just pass the convience library names through
10942             # without $wl.
10943             # Supported since Solaris 2.6 (maybe 2.5.1?)
10944             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10945             ;;
10946         esac
10947         link_all_deplibs_CXX=yes
10948
10949         output_verbose_link_cmd='echo'
10950
10951         # Archives containing C++ object files must be created using
10952         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10953         # necessary to make sure instantiated templates are included
10954         # in the archive.
10955         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10956         ;;
10957       gcx*)
10958         # Green Hills C++ Compiler
10959         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10960
10961         # The C++ compiler must be used to create the archive.
10962         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10963         ;;
10964       *)
10965         # GNU C++ compiler with Solaris linker
10966         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10967           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10968           if $CC --version | grep -v '^2\.7' > /dev/null; then
10969             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10971                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10972
10973             # Commands to make compiler produce verbose output that lists
10974             # what "hidden" libraries, object files and flags are used when
10975             # linking a shared library.
10976             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10977           else
10978             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10979             # platform.
10980             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10981             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10982                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10983
10984             # Commands to make compiler produce verbose output that lists
10985             # what "hidden" libraries, object files and flags are used when
10986             # linking a shared library.
10987             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10988           fi
10989
10990           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10991         fi
10992         ;;
10993     esac
10994     ;;
10995   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996     no_undefined_flag_CXX='${wl}-z,text'
10997     archive_cmds_need_lc_CXX=no
10998     hardcode_shlibpath_var_CXX=no
10999     runpath_var='LD_RUN_PATH'
11000
11001     case $cc_basename in
11002       CC*)
11003         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005         ;;
11006       *)
11007         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         ;;
11010     esac
11011     ;;
11012   sysv5* | sco3.2v5* | sco5v6*)
11013     # Note: We can NOT use -z defs as we might desire, because we do not
11014     # link with -lc, and that would cause any symbols used from libc to
11015     # always be unresolved, which means just about no library would
11016     # ever link correctly.  If we're not using GNU ld we use -z text
11017     # though, which does catch some bad symbols but isn't as heavy-handed
11018     # as -z defs.
11019     # For security reasons, it is highly recommended that you always
11020     # use absolute paths for naming shared libraries, and exclude the
11021     # DT_RUNPATH tag from executables and libraries.  But doing so
11022     # requires that you compile everything twice, which is a pain.
11023     # So that behaviour is only enabled if SCOABSPATH is set to a
11024     # non-empty value in the environment.  Most likely only useful for
11025     # creating official distributions of packages.
11026     # This is a hack until libtool officially supports absolute path
11027     # names for shared libraries.
11028     no_undefined_flag_CXX='${wl}-z,text'
11029     allow_undefined_flag_CXX='${wl}-z,nodefs'
11030     archive_cmds_need_lc_CXX=no
11031     hardcode_shlibpath_var_CXX=no
11032     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11033     hardcode_libdir_separator_CXX=':'
11034     link_all_deplibs_CXX=yes
11035     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11036     runpath_var='LD_RUN_PATH'
11037
11038     case $cc_basename in
11039       CC*)
11040         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11041         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042         ;;
11043       *)
11044         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046         ;;
11047     esac
11048     ;;
11049   tandem*)
11050     case $cc_basename in
11051       NCC*)
11052         # NonStop-UX NCC 3.20
11053         # FIXME: insert proper C++ library support
11054         ld_shlibs_CXX=no
11055         ;;
11056       *)
11057         # FIXME: insert proper C++ library support
11058         ld_shlibs_CXX=no
11059         ;;
11060     esac
11061     ;;
11062   vxworks*)
11063     # FIXME: insert proper C++ library support
11064     ld_shlibs_CXX=no
11065     ;;
11066   *)
11067     # FIXME: insert proper C++ library support
11068     ld_shlibs_CXX=no
11069     ;;
11070 esac
11071 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11072 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11073 test "$ld_shlibs_CXX" = no && can_build_shared=no
11074
11075 GCC_CXX="$GXX"
11076 LD_CXX="$LD"
11077
11078
11079 cat > conftest.$ac_ext <<EOF
11080 class Foo
11081 {
11082 public:
11083   Foo (void) { a = 0; }
11084 private:
11085   int a;
11086 };
11087 EOF
11088
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090   (eval $ac_compile) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; then
11094   # Parse the compiler output and extract the necessary
11095   # objects, libraries and library flags.
11096
11097   # Sentinel used to keep track of whether or not we are before
11098   # the conftest object file.
11099   pre_test_object_deps_done=no
11100
11101   # The `*' in the case matches for architectures that use `case' in
11102   # $output_verbose_cmd can trigger glob expansion during the loop
11103   # eval without this substitution.
11104   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11105
11106   for p in `eval $output_verbose_link_cmd`; do
11107     case $p in
11108
11109     -L* | -R* | -l*)
11110        # Some compilers place space between "-{L,R}" and the path.
11111        # Remove the space.
11112        if test $p = "-L" \
11113           || test $p = "-R"; then
11114          prev=$p
11115          continue
11116        else
11117          prev=
11118        fi
11119
11120        if test "$pre_test_object_deps_done" = no; then
11121          case $p in
11122          -L* | -R*)
11123            # Internal compiler library paths should come after those
11124            # provided the user.  The postdeps already come after the
11125            # user supplied libs so there is no need to process them.
11126            if test -z "$compiler_lib_search_path_CXX"; then
11127              compiler_lib_search_path_CXX="${prev}${p}"
11128            else
11129              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11130            fi
11131            ;;
11132          # The "-l" case would never come before the object being
11133          # linked, so don't bother handling this case.
11134          esac
11135        else
11136          if test -z "$postdeps_CXX"; then
11137            postdeps_CXX="${prev}${p}"
11138          else
11139            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11140          fi
11141        fi
11142        ;;
11143
11144     *.$objext)
11145        # This assumes that the test object file only shows up
11146        # once in the compiler output.
11147        if test "$p" = "conftest.$objext"; then
11148          pre_test_object_deps_done=yes
11149          continue
11150        fi
11151
11152        if test "$pre_test_object_deps_done" = no; then
11153          if test -z "$predep_objects_CXX"; then
11154            predep_objects_CXX="$p"
11155          else
11156            predep_objects_CXX="$predep_objects_CXX $p"
11157          fi
11158        else
11159          if test -z "$postdep_objects_CXX"; then
11160            postdep_objects_CXX="$p"
11161          else
11162            postdep_objects_CXX="$postdep_objects_CXX $p"
11163          fi
11164        fi
11165        ;;
11166
11167     *) ;; # Ignore the rest.
11168
11169     esac
11170   done
11171
11172   # Clean up.
11173   rm -f a.out a.exe
11174 else
11175   echo "libtool.m4: error: problem compiling CXX test program"
11176 fi
11177
11178 $rm -f confest.$objext
11179
11180 # PORTME: override above test on systems where it is broken
11181 case $host_os in
11182 interix3*)
11183   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11184   # hack all around it, let's just trust "g++" to DTRT.
11185   predep_objects_CXX=
11186   postdep_objects_CXX=
11187   postdeps_CXX=
11188   ;;
11189
11190 solaris*)
11191   case $cc_basename in
11192   CC*)
11193     # Adding this requires a known-good setup of shared libraries for
11194     # Sun compiler versions before 5.6, else PIC objects from an old
11195     # archive will be linked into the output, leading to subtle bugs.
11196     postdeps_CXX='-lCstd -lCrun'
11197     ;;
11198   esac
11199   ;;
11200 esac
11201
11202
11203 case " $postdeps_CXX " in
11204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11205 esac
11206
11207 lt_prog_compiler_wl_CXX=
11208 lt_prog_compiler_pic_CXX=
11209 lt_prog_compiler_static_CXX=
11210
11211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11213
11214   # C++ specific cases for pic, static, wl, etc.
11215   if test "$GXX" = yes; then
11216     lt_prog_compiler_wl_CXX='-Wl,'
11217     lt_prog_compiler_static_CXX='-static'
11218
11219     case $host_os in
11220     aix*)
11221       # All AIX code is PIC.
11222       if test "$host_cpu" = ia64; then
11223         # AIX 5 now supports IA64 processor
11224         lt_prog_compiler_static_CXX='-Bstatic'
11225       fi
11226       ;;
11227     amigaos*)
11228       # FIXME: we need at least 68020 code to build shared libraries, but
11229       # adding the `-m68020' flag to GCC prevents building anything better,
11230       # like `-m68040'.
11231       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11232       ;;
11233     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11234       # PIC is the default for these OSes.
11235       ;;
11236     mingw* | os2* | pw32*)
11237       # This hack is so that the source file can tell whether it is being
11238       # built for inclusion in a dll (and should export symbols for example).
11239       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11240       ;;
11241     darwin* | rhapsody*)
11242       # PIC is the default on this platform
11243       # Common symbols not allowed in MH_DYLIB files
11244       lt_prog_compiler_pic_CXX='-fno-common'
11245       ;;
11246     *djgpp*)
11247       # DJGPP does not support shared libraries at all
11248       lt_prog_compiler_pic_CXX=
11249       ;;
11250     interix3*)
11251       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11252       # Instead, we relocate shared libraries at runtime.
11253       ;;
11254     sysv4*MP*)
11255       if test -d /usr/nec; then
11256         lt_prog_compiler_pic_CXX=-Kconform_pic
11257       fi
11258       ;;
11259     hpux*)
11260       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11261       # not for PA HP-UX.
11262       case $host_cpu in
11263       hppa*64*|ia64*)
11264         ;;
11265       *)
11266         lt_prog_compiler_pic_CXX='-fPIC'
11267         ;;
11268       esac
11269       ;;
11270     *)
11271       lt_prog_compiler_pic_CXX='-fPIC'
11272       ;;
11273     esac
11274   else
11275     case $host_os in
11276       aix4* | aix5*)
11277         # All AIX code is PIC.
11278         if test "$host_cpu" = ia64; then
11279           # AIX 5 now supports IA64 processor
11280           lt_prog_compiler_static_CXX='-Bstatic'
11281         else
11282           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11283         fi
11284         ;;
11285       chorus*)
11286         case $cc_basename in
11287         cxch68*)
11288           # Green Hills C++ Compiler
11289           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11290           ;;
11291         esac
11292         ;;
11293        darwin*)
11294          # PIC is the default on this platform
11295          # Common symbols not allowed in MH_DYLIB files
11296          case $cc_basename in
11297            xlc*)
11298            lt_prog_compiler_pic_CXX='-qnocommon'
11299            lt_prog_compiler_wl_CXX='-Wl,'
11300            ;;
11301          esac
11302        ;;
11303       dgux*)
11304         case $cc_basename in
11305           ec++*)
11306             lt_prog_compiler_pic_CXX='-KPIC'
11307             ;;
11308           ghcx*)
11309             # Green Hills C++ Compiler
11310             lt_prog_compiler_pic_CXX='-pic'
11311             ;;
11312           *)
11313             ;;
11314         esac
11315         ;;
11316       freebsd* | kfreebsd*-gnu | dragonfly*)
11317         # FreeBSD uses GNU C++
11318         ;;
11319       hpux9* | hpux10* | hpux11*)
11320         case $cc_basename in
11321           CC*)
11322             lt_prog_compiler_wl_CXX='-Wl,'
11323             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11324             if test "$host_cpu" != ia64; then
11325               lt_prog_compiler_pic_CXX='+Z'
11326             fi
11327             ;;
11328           aCC*)
11329             lt_prog_compiler_wl_CXX='-Wl,'
11330             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11331             case $host_cpu in
11332             hppa*64*|ia64*)
11333               # +Z the default
11334               ;;
11335             *)
11336               lt_prog_compiler_pic_CXX='+Z'
11337               ;;
11338             esac
11339             ;;
11340           *)
11341             ;;
11342         esac
11343         ;;
11344       interix*)
11345         # This is c89, which is MS Visual C++ (no shared libs)
11346         # Anyone wants to do a port?
11347         ;;
11348       irix5* | irix6* | nonstopux*)
11349         case $cc_basename in
11350           CC*)
11351             lt_prog_compiler_wl_CXX='-Wl,'
11352             lt_prog_compiler_static_CXX='-non_shared'
11353             # CC pic flag -KPIC is the default.
11354             ;;
11355           *)
11356             ;;
11357         esac
11358         ;;
11359       linux*)
11360         case $cc_basename in
11361           KCC*)
11362             # KAI C++ Compiler
11363             lt_prog_compiler_wl_CXX='--backend -Wl,'
11364             lt_prog_compiler_pic_CXX='-fPIC'
11365             ;;
11366           icpc* | ecpc*)
11367             # Intel C++
11368             lt_prog_compiler_wl_CXX='-Wl,'
11369             lt_prog_compiler_pic_CXX='-KPIC'
11370             lt_prog_compiler_static_CXX='-static'
11371             ;;
11372           pgCC*)
11373             # Portland Group C++ compiler.
11374             lt_prog_compiler_wl_CXX='-Wl,'
11375             lt_prog_compiler_pic_CXX='-fpic'
11376             lt_prog_compiler_static_CXX='-Bstatic'
11377             ;;
11378           cxx*)
11379             # Compaq C++
11380             # Make sure the PIC flag is empty.  It appears that all Alpha
11381             # Linux and Compaq Tru64 Unix objects are PIC.
11382             lt_prog_compiler_pic_CXX=
11383             lt_prog_compiler_static_CXX='-non_shared'
11384             ;;
11385           *)
11386             ;;
11387         esac
11388         ;;
11389       lynxos*)
11390         ;;
11391       m88k*)
11392         ;;
11393       mvs*)
11394         case $cc_basename in
11395           cxx*)
11396             lt_prog_compiler_pic_CXX='-W c,exportall'
11397             ;;
11398           *)
11399             ;;
11400         esac
11401         ;;
11402       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11403         ;;
11404       osf3* | osf4* | osf5*)
11405         case $cc_basename in
11406           KCC*)
11407             lt_prog_compiler_wl_CXX='--backend -Wl,'
11408             ;;
11409           RCC*)
11410             # Rational C++ 2.4.1
11411             lt_prog_compiler_pic_CXX='-pic'
11412             ;;
11413           cxx*)
11414             # Digital/Compaq C++
11415             lt_prog_compiler_wl_CXX='-Wl,'
11416             # Make sure the PIC flag is empty.  It appears that all Alpha
11417             # Linux and Compaq Tru64 Unix objects are PIC.
11418             lt_prog_compiler_pic_CXX=
11419             lt_prog_compiler_static_CXX='-non_shared'
11420             ;;
11421           *)
11422             ;;
11423         esac
11424         ;;
11425       psos*)
11426         ;;
11427       solaris*)
11428         case $cc_basename in
11429           CC*)
11430             # Sun C++ 4.2, 5.x and Centerline C++
11431             lt_prog_compiler_pic_CXX='-KPIC'
11432             lt_prog_compiler_static_CXX='-Bstatic'
11433             lt_prog_compiler_wl_CXX='-Qoption ld '
11434             ;;
11435           gcx*)
11436             # Green Hills C++ Compiler
11437             lt_prog_compiler_pic_CXX='-PIC'
11438             ;;
11439           *)
11440             ;;
11441         esac
11442         ;;
11443       sunos4*)
11444         case $cc_basename in
11445           CC*)
11446             # Sun C++ 4.x
11447             lt_prog_compiler_pic_CXX='-pic'
11448             lt_prog_compiler_static_CXX='-Bstatic'
11449             ;;
11450           lcc*)
11451             # Lucid
11452             lt_prog_compiler_pic_CXX='-pic'
11453             ;;
11454           *)
11455             ;;
11456         esac
11457         ;;
11458       tandem*)
11459         case $cc_basename in
11460           NCC*)
11461             # NonStop-UX NCC 3.20
11462             lt_prog_compiler_pic_CXX='-KPIC'
11463             ;;
11464           *)
11465             ;;
11466         esac
11467         ;;
11468       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11469         case $cc_basename in
11470           CC*)
11471             lt_prog_compiler_wl_CXX='-Wl,'
11472             lt_prog_compiler_pic_CXX='-KPIC'
11473             lt_prog_compiler_static_CXX='-Bstatic'
11474             ;;
11475         esac
11476         ;;
11477       vxworks*)
11478         ;;
11479       *)
11480         lt_prog_compiler_can_build_shared_CXX=no
11481         ;;
11482     esac
11483   fi
11484
11485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11486 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11487
11488 #
11489 # Check to make sure the PIC flag actually works.
11490 #
11491 if test -n "$lt_prog_compiler_pic_CXX"; then
11492
11493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11495 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   lt_prog_compiler_pic_works_CXX=no
11499   ac_outfile=conftest.$ac_objext
11500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11501    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11502    # Insert the option either (1) after the last *FLAGS variable, or
11503    # (2) before a word containing "conftest.", or (3) at the end.
11504    # Note that $ac_compile itself does not contain backslashes and begins
11505    # with a dollar sign (not a hyphen), so the echo should work correctly.
11506    # The option is referenced via a variable to avoid confusing sed.
11507    lt_compile=`echo "$ac_compile" | $SED \
11508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11510    -e 's:$: $lt_compiler_flag:'`
11511    (eval echo "\"\$as_me:11511: $lt_compile\"" >&5)
11512    (eval "$lt_compile" 2>conftest.err)
11513    ac_status=$?
11514    cat conftest.err >&5
11515    echo "$as_me:11515: \$? = $ac_status" >&5
11516    if (exit $ac_status) && test -s "$ac_outfile"; then
11517      # The compiler can only warn and ignore the option if not recognized
11518      # So say no if there are warnings other than the usual output.
11519      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11520      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11521      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11522        lt_prog_compiler_pic_works_CXX=yes
11523      fi
11524    fi
11525    $rm conftest*
11526
11527 fi
11528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11529 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11530
11531 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11532     case $lt_prog_compiler_pic_CXX in
11533      "" | " "*) ;;
11534      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11535      esac
11536 else
11537     lt_prog_compiler_pic_CXX=
11538      lt_prog_compiler_can_build_shared_CXX=no
11539 fi
11540
11541 fi
11542 case $host_os in
11543   # For platforms which do not support PIC, -DPIC is meaningless:
11544   *djgpp*)
11545     lt_prog_compiler_pic_CXX=
11546     ;;
11547   *)
11548     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11549     ;;
11550 esac
11551
11552 #
11553 # Check to make sure the static flag actually works.
11554 #
11555 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11556 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11557 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11558 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   lt_prog_compiler_static_works_CXX=no
11562    save_LDFLAGS="$LDFLAGS"
11563    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11564    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11565    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11566      # The linker can only warn and ignore the option if not recognized
11567      # So say no if there are warnings
11568      if test -s conftest.err; then
11569        # Append any errors to the config.log.
11570        cat conftest.err 1>&5
11571        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11572        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573        if diff conftest.exp conftest.er2 >/dev/null; then
11574          lt_prog_compiler_static_works_CXX=yes
11575        fi
11576      else
11577        lt_prog_compiler_static_works_CXX=yes
11578      fi
11579    fi
11580    $rm conftest*
11581    LDFLAGS="$save_LDFLAGS"
11582
11583 fi
11584 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11585 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11586
11587 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11588     :
11589 else
11590     lt_prog_compiler_static_CXX=
11591 fi
11592
11593
11594 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11596 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599   lt_cv_prog_compiler_c_o_CXX=no
11600    $rm -r conftest 2>/dev/null
11601    mkdir conftest
11602    cd conftest
11603    mkdir out
11604    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11605
11606    lt_compiler_flag="-o out/conftest2.$ac_objext"
11607    # Insert the option either (1) after the last *FLAGS variable, or
11608    # (2) before a word containing "conftest.", or (3) at the end.
11609    # Note that $ac_compile itself does not contain backslashes and begins
11610    # with a dollar sign (not a hyphen), so the echo should work correctly.
11611    lt_compile=`echo "$ac_compile" | $SED \
11612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11614    -e 's:$: $lt_compiler_flag:'`
11615    (eval echo "\"\$as_me:11615: $lt_compile\"" >&5)
11616    (eval "$lt_compile" 2>out/conftest.err)
11617    ac_status=$?
11618    cat out/conftest.err >&5
11619    echo "$as_me:11619: \$? = $ac_status" >&5
11620    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11621    then
11622      # The compiler can only warn and ignore the option if not recognized
11623      # So say no if there are warnings
11624      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11625      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11626      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11627        lt_cv_prog_compiler_c_o_CXX=yes
11628      fi
11629    fi
11630    chmod u+w . 2>&5
11631    $rm conftest*
11632    # SGI C++ compiler will create directory out/ii_files/ for
11633    # template instantiation
11634    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11635    $rm out/* && rmdir out
11636    cd ..
11637    rmdir conftest
11638    $rm conftest*
11639
11640 fi
11641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11643
11644
11645 hard_links="nottested"
11646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11647   # do not overwrite the value of need_locks provided by the user
11648   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11650   hard_links=yes
11651   $rm conftest*
11652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11653   touch conftest.a
11654   ln conftest.a conftest.b 2>&5 || hard_links=no
11655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11656   echo "$as_me:$LINENO: result: $hard_links" >&5
11657 echo "${ECHO_T}$hard_links" >&6
11658   if test "$hard_links" = no; then
11659     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11661     need_locks=warn
11662   fi
11663 else
11664   need_locks=no
11665 fi
11666
11667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11669
11670   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11671   case $host_os in
11672   aix4* | aix5*)
11673     # If we're using GNU nm, then we don't want the "-C" option.
11674     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11675     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11676       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'
11677     else
11678       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'
11679     fi
11680     ;;
11681   pw32*)
11682     export_symbols_cmds_CXX="$ltdll_cmds"
11683   ;;
11684   cygwin* | mingw*)
11685     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'
11686   ;;
11687   kfreebsd*-gnu)
11688     link_all_deplibs_CXX=no
11689   ;;
11690   linux*)
11691     link_all_deplibs_CXX=no
11692   ;;
11693   *)
11694     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11695   ;;
11696   esac
11697
11698 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11699 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11700 test "$ld_shlibs_CXX" = no && can_build_shared=no
11701
11702 #
11703 # Do we need to explicitly link libc?
11704 #
11705 case "x$archive_cmds_need_lc_CXX" in
11706 x|xyes)
11707   # Assume -lc should be added
11708   archive_cmds_need_lc_CXX=yes
11709
11710   if test "$enable_shared" = yes && test "$GCC" = yes; then
11711     case $archive_cmds_CXX in
11712     *'~'*)
11713       # FIXME: we may have to deal with multi-command sequences.
11714       ;;
11715     '$CC '*)
11716       # Test whether the compiler implicitly links with -lc since on some
11717       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11718       # to ld, don't add -lc before -lgcc.
11719       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11720 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11721       $rm conftest*
11722       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11723
11724       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725   (eval $ac_compile) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } 2>conftest.err; then
11729         soname=conftest
11730         lib=conftest
11731         libobjs=conftest.$ac_objext
11732         deplibs=
11733         wl=$lt_prog_compiler_wl_CXX
11734         pic_flag=$lt_prog_compiler_pic_CXX
11735         compiler_flags=-v
11736         linker_flags=-v
11737         verstring=
11738         output_objdir=.
11739         libname=conftest
11740         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11741         allow_undefined_flag_CXX=
11742         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11743   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }
11747         then
11748           archive_cmds_need_lc_CXX=no
11749         else
11750           archive_cmds_need_lc_CXX=yes
11751         fi
11752         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11753       else
11754         cat conftest.err 1>&5
11755       fi
11756       $rm conftest*
11757       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11758 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11759       ;;
11760     esac
11761   fi
11762   ;;
11763 esac
11764
11765 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11766 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11767 library_names_spec=
11768 libname_spec='lib$name'
11769 soname_spec=
11770 shrext_cmds=".so"
11771 postinstall_cmds=
11772 postuninstall_cmds=
11773 finish_cmds=
11774 finish_eval=
11775 shlibpath_var=
11776 shlibpath_overrides_runpath=unknown
11777 version_type=none
11778 dynamic_linker="$host_os ld.so"
11779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11780 if test "$GCC" = yes; then
11781   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11782   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11783     # if the path contains ";" then we assume it to be the separator
11784     # otherwise default to the standard path separator (i.e. ":") - it is
11785     # assumed that no part of a normal pathname contains ";" but that should
11786     # okay in the real world where ";" in dirpaths is itself problematic.
11787     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11788   else
11789     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11790   fi
11791 else
11792   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11793 fi
11794 need_lib_prefix=unknown
11795 hardcode_into_libs=no
11796
11797 # when you set need_version to no, make sure it does not cause -set_version
11798 # flags to be left without arguments
11799 need_version=unknown
11800
11801 case $host_os in
11802 aix3*)
11803   version_type=linux
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11805   shlibpath_var=LIBPATH
11806
11807   # AIX 3 has no versioning support, so we append a major version to the name.
11808   soname_spec='${libname}${release}${shared_ext}$major'
11809   ;;
11810
11811 aix4* | aix5*)
11812   version_type=linux
11813   need_lib_prefix=no
11814   need_version=no
11815   hardcode_into_libs=yes
11816   if test "$host_cpu" = ia64; then
11817     # AIX 5 supports IA64
11818     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11819     shlibpath_var=LD_LIBRARY_PATH
11820   else
11821     # With GCC up to 2.95.x, collect2 would create an import file
11822     # for dependence libraries.  The import file would start with
11823     # the line `#! .'.  This would cause the generated library to
11824     # depend on `.', always an invalid library.  This was fixed in
11825     # development snapshots of GCC prior to 3.0.
11826     case $host_os in
11827       aix4 | aix4.[01] | aix4.[01].*)
11828       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11829            echo ' yes '
11830            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11831         :
11832       else
11833         can_build_shared=no
11834       fi
11835       ;;
11836     esac
11837     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11838     # soname into executable. Probably we can add versioning support to
11839     # collect2, so additional links can be useful in future.
11840     if test "$aix_use_runtimelinking" = yes; then
11841       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11842       # instead of lib<name>.a to let people know that these are not
11843       # typical AIX shared libraries.
11844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845     else
11846       # We preserve .a as extension for shared libraries through AIX4.2
11847       # and later when we are not doing run time linking.
11848       library_names_spec='${libname}${release}.a $libname.a'
11849       soname_spec='${libname}${release}${shared_ext}$major'
11850     fi
11851     shlibpath_var=LIBPATH
11852   fi
11853   ;;
11854
11855 amigaos*)
11856   library_names_spec='$libname.ixlibrary $libname.a'
11857   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11858   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'
11859   ;;
11860
11861 beos*)
11862   library_names_spec='${libname}${shared_ext}'
11863   dynamic_linker="$host_os ld.so"
11864   shlibpath_var=LIBRARY_PATH
11865   ;;
11866
11867 bsdi[45]*)
11868   version_type=linux
11869   need_version=no
11870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871   soname_spec='${libname}${release}${shared_ext}$major'
11872   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11873   shlibpath_var=LD_LIBRARY_PATH
11874   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11875   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11876   # the default ld.so.conf also contains /usr/contrib/lib and
11877   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11878   # libtool to hard-code these into programs
11879   ;;
11880
11881 cygwin* | mingw* | pw32*)
11882   version_type=windows
11883   shrext_cmds=".dll"
11884   need_version=no
11885   need_lib_prefix=no
11886
11887   case $GCC,$host_os in
11888   yes,cygwin* | yes,mingw* | yes,pw32*)
11889     library_names_spec='$libname.dll.a'
11890     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11891     postinstall_cmds='base_file=`basename \${file}`~
11892       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11893       dldir=$destdir/`dirname \$dlpath`~
11894       test -d \$dldir || mkdir -p \$dldir~
11895       $install_prog $dir/$dlname \$dldir/$dlname~
11896       chmod a+x \$dldir/$dlname'
11897     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11898       dlpath=$dir/\$dldll~
11899        $rm \$dlpath'
11900     shlibpath_overrides_runpath=yes
11901
11902     case $host_os in
11903     cygwin*)
11904       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11905       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11907       ;;
11908     mingw*)
11909       # MinGW DLLs use traditional 'lib' prefix
11910       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11911       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11912       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11913         # It is most probably a Windows format PATH printed by
11914         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11915         # path with ; separators, and with drive letters. We can handle the
11916         # drive letters (cygwin fileutils understands them), so leave them,
11917         # especially as we might pass files found there to a mingw objdump,
11918         # which wouldn't understand a cygwinified path. Ahh.
11919         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11920       else
11921         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11922       fi
11923       ;;
11924     pw32*)
11925       # pw32 DLLs use 'pw' prefix rather than 'lib'
11926       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11927       ;;
11928     esac
11929     ;;
11930
11931   *)
11932     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11933     ;;
11934   esac
11935   dynamic_linker='Win32 ld.exe'
11936   # FIXME: first we should search . and the directory the executable is in
11937   shlibpath_var=PATH
11938   ;;
11939
11940 darwin* | rhapsody*)
11941   dynamic_linker="$host_os dyld"
11942   version_type=darwin
11943   need_lib_prefix=no
11944   need_version=no
11945   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11946   soname_spec='${libname}${release}${major}$shared_ext'
11947   shlibpath_overrides_runpath=yes
11948   shlibpath_var=DYLD_LIBRARY_PATH
11949   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11950   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11951   if test "$GCC" = yes; then
11952     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11953   else
11954     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11955   fi
11956   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11957   ;;
11958
11959 dgux*)
11960   version_type=linux
11961   need_lib_prefix=no
11962   need_version=no
11963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11964   soname_spec='${libname}${release}${shared_ext}$major'
11965   shlibpath_var=LD_LIBRARY_PATH
11966   ;;
11967
11968 freebsd1*)
11969   dynamic_linker=no
11970   ;;
11971
11972 kfreebsd*-gnu)
11973   version_type=linux
11974   need_lib_prefix=no
11975   need_version=no
11976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11977   soname_spec='${libname}${release}${shared_ext}$major'
11978   shlibpath_var=LD_LIBRARY_PATH
11979   shlibpath_overrides_runpath=no
11980   hardcode_into_libs=yes
11981   dynamic_linker='GNU ld.so'
11982   ;;
11983
11984 freebsd* | dragonfly*)
11985   # DragonFly does not have aout.  When/if they implement a new
11986   # versioning mechanism, adjust this.
11987   if test -x /usr/bin/objformat; then
11988     objformat=`/usr/bin/objformat`
11989   else
11990     case $host_os in
11991     freebsd[123]*) objformat=aout ;;
11992     *) objformat=elf ;;
11993     esac
11994   fi
11995   version_type=freebsd-$objformat
11996   case $version_type in
11997     freebsd-elf*)
11998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11999       need_version=no
12000       need_lib_prefix=no
12001       ;;
12002     freebsd-*)
12003       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12004       need_version=yes
12005       ;;
12006   esac
12007   shlibpath_var=LD_LIBRARY_PATH
12008   case $host_os in
12009   freebsd2*)
12010     shlibpath_overrides_runpath=yes
12011     ;;
12012   freebsd3.[01]* | freebsdelf3.[01]*)
12013     shlibpath_overrides_runpath=yes
12014     hardcode_into_libs=yes
12015     ;;
12016   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12017   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12018     shlibpath_overrides_runpath=no
12019     hardcode_into_libs=yes
12020     ;;
12021   freebsd*) # from 4.6 on
12022     shlibpath_overrides_runpath=yes
12023     hardcode_into_libs=yes
12024     ;;
12025   esac
12026   ;;
12027
12028 gnu*)
12029   version_type=linux
12030   need_lib_prefix=no
12031   need_version=no
12032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12033   soname_spec='${libname}${release}${shared_ext}$major'
12034   shlibpath_var=LD_LIBRARY_PATH
12035   hardcode_into_libs=yes
12036   ;;
12037
12038 hpux9* | hpux10* | hpux11*)
12039   # Give a soname corresponding to the major version so that dld.sl refuses to
12040   # link against other versions.
12041   version_type=sunos
12042   need_lib_prefix=no
12043   need_version=no
12044   case $host_cpu in
12045   ia64*)
12046     shrext_cmds='.so'
12047     hardcode_into_libs=yes
12048     dynamic_linker="$host_os dld.so"
12049     shlibpath_var=LD_LIBRARY_PATH
12050     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052     soname_spec='${libname}${release}${shared_ext}$major'
12053     if test "X$HPUX_IA64_MODE" = X32; then
12054       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12055     else
12056       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12057     fi
12058     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059     ;;
12060    hppa*64*)
12061      shrext_cmds='.sl'
12062      hardcode_into_libs=yes
12063      dynamic_linker="$host_os dld.sl"
12064      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12065      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12066      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067      soname_spec='${libname}${release}${shared_ext}$major'
12068      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12069      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070      ;;
12071    *)
12072     shrext_cmds='.sl'
12073     dynamic_linker="$host_os dld.sl"
12074     shlibpath_var=SHLIB_PATH
12075     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077     soname_spec='${libname}${release}${shared_ext}$major'
12078     ;;
12079   esac
12080   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12081   postinstall_cmds='chmod 555 $lib'
12082   ;;
12083
12084 interix3*)
12085   version_type=linux
12086   need_lib_prefix=no
12087   need_version=no
12088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12089   soname_spec='${libname}${release}${shared_ext}$major'
12090   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12091   shlibpath_var=LD_LIBRARY_PATH
12092   shlibpath_overrides_runpath=no
12093   hardcode_into_libs=yes
12094   ;;
12095
12096 irix5* | irix6* | nonstopux*)
12097   case $host_os in
12098     nonstopux*) version_type=nonstopux ;;
12099     *)
12100         if test "$lt_cv_prog_gnu_ld" = yes; then
12101                 version_type=linux
12102         else
12103                 version_type=irix
12104         fi ;;
12105   esac
12106   need_lib_prefix=no
12107   need_version=no
12108   soname_spec='${libname}${release}${shared_ext}$major'
12109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12110   case $host_os in
12111   irix5* | nonstopux*)
12112     libsuff= shlibsuff=
12113     ;;
12114   *)
12115     case $LD in # libtool.m4 will add one of these switches to LD
12116     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12117       libsuff= shlibsuff= libmagic=32-bit;;
12118     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12119       libsuff=32 shlibsuff=N32 libmagic=N32;;
12120     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12121       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12122     *) libsuff= shlibsuff= libmagic=never-match;;
12123     esac
12124     ;;
12125   esac
12126   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12127   shlibpath_overrides_runpath=no
12128   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12129   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12130   hardcode_into_libs=yes
12131   ;;
12132
12133 # No shared lib support for Linux oldld, aout, or coff.
12134 linux*oldld* | linux*aout* | linux*coff*)
12135   dynamic_linker=no
12136   ;;
12137
12138 # This must be Linux ELF.
12139 linux*)
12140   version_type=linux
12141   need_lib_prefix=no
12142   need_version=no
12143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144   soname_spec='${libname}${release}${shared_ext}$major'
12145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12146   shlibpath_var=LD_LIBRARY_PATH
12147   shlibpath_overrides_runpath=no
12148   # This implies no fast_install, which is unacceptable.
12149   # Some rework will be needed to allow for fast_install
12150   # before this can be enabled.
12151   hardcode_into_libs=yes
12152
12153   # Append ld.so.conf contents to the search path
12154   if test -f /etc/ld.so.conf; then
12155     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12156     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12157   fi
12158
12159   # We used to test for /lib/ld.so.1 and disable shared libraries on
12160   # powerpc, because MkLinux only supported shared libraries with the
12161   # GNU dynamic linker.  Since this was broken with cross compilers,
12162   # most powerpc-linux boxes support dynamic linking these days and
12163   # people can always --disable-shared, the test was removed, and we
12164   # assume the GNU/Linux dynamic linker is in use.
12165   dynamic_linker='GNU/Linux ld.so'
12166   ;;
12167
12168 netbsdelf*-gnu)
12169   version_type=linux
12170   need_lib_prefix=no
12171   need_version=no
12172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12173   soname_spec='${libname}${release}${shared_ext}$major'
12174   shlibpath_var=LD_LIBRARY_PATH
12175   shlibpath_overrides_runpath=no
12176   hardcode_into_libs=yes
12177   dynamic_linker='NetBSD ld.elf_so'
12178   ;;
12179
12180 knetbsd*-gnu)
12181   version_type=linux
12182   need_lib_prefix=no
12183   need_version=no
12184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12185   soname_spec='${libname}${release}${shared_ext}$major'
12186   shlibpath_var=LD_LIBRARY_PATH
12187   shlibpath_overrides_runpath=no
12188   hardcode_into_libs=yes
12189   dynamic_linker='GNU ld.so'
12190   ;;
12191
12192 netbsd*)
12193   version_type=sunos
12194   need_lib_prefix=no
12195   need_version=no
12196   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12198     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12199     dynamic_linker='NetBSD (a.out) ld.so'
12200   else
12201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12202     soname_spec='${libname}${release}${shared_ext}$major'
12203     dynamic_linker='NetBSD ld.elf_so'
12204   fi
12205   shlibpath_var=LD_LIBRARY_PATH
12206   shlibpath_overrides_runpath=yes
12207   hardcode_into_libs=yes
12208   ;;
12209
12210 newsos6)
12211   version_type=linux
12212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213   shlibpath_var=LD_LIBRARY_PATH
12214   shlibpath_overrides_runpath=yes
12215   ;;
12216
12217 nto-qnx*)
12218   version_type=linux
12219   need_lib_prefix=no
12220   need_version=no
12221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222   soname_spec='${libname}${release}${shared_ext}$major'
12223   shlibpath_var=LD_LIBRARY_PATH
12224   shlibpath_overrides_runpath=yes
12225   ;;
12226
12227 openbsd*)
12228   version_type=sunos
12229   sys_lib_dlsearch_path_spec="/usr/lib"
12230   need_lib_prefix=no
12231   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12232   case $host_os in
12233     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12234     *)                         need_version=no  ;;
12235   esac
12236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12237   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12238   shlibpath_var=LD_LIBRARY_PATH
12239   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12240     case $host_os in
12241       openbsd2.[89] | openbsd2.[89].*)
12242         shlibpath_overrides_runpath=no
12243         ;;
12244       *)
12245         shlibpath_overrides_runpath=yes
12246         ;;
12247       esac
12248   else
12249     shlibpath_overrides_runpath=yes
12250   fi
12251   ;;
12252
12253 os2*)
12254   libname_spec='$name'
12255   shrext_cmds=".dll"
12256   need_lib_prefix=no
12257   library_names_spec='$libname${shared_ext} $libname.a'
12258   dynamic_linker='OS/2 ld.exe'
12259   shlibpath_var=LIBPATH
12260   ;;
12261
12262 osf3* | osf4* | osf5*)
12263   version_type=osf
12264   need_lib_prefix=no
12265   need_version=no
12266   soname_spec='${libname}${release}${shared_ext}$major'
12267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268   shlibpath_var=LD_LIBRARY_PATH
12269   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12270   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12271   ;;
12272
12273 solaris*)
12274   version_type=linux
12275   need_lib_prefix=no
12276   need_version=no
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278   soname_spec='${libname}${release}${shared_ext}$major'
12279   shlibpath_var=LD_LIBRARY_PATH
12280   shlibpath_overrides_runpath=yes
12281   hardcode_into_libs=yes
12282   # ldd complains unless libraries are executable
12283   postinstall_cmds='chmod +x $lib'
12284   ;;
12285
12286 sunos4*)
12287   version_type=sunos
12288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12289   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12290   shlibpath_var=LD_LIBRARY_PATH
12291   shlibpath_overrides_runpath=yes
12292   if test "$with_gnu_ld" = yes; then
12293     need_lib_prefix=no
12294   fi
12295   need_version=yes
12296   ;;
12297
12298 sysv4 | sysv4.3*)
12299   version_type=linux
12300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301   soname_spec='${libname}${release}${shared_ext}$major'
12302   shlibpath_var=LD_LIBRARY_PATH
12303   case $host_vendor in
12304     sni)
12305       shlibpath_overrides_runpath=no
12306       need_lib_prefix=no
12307       export_dynamic_flag_spec='${wl}-Blargedynsym'
12308       runpath_var=LD_RUN_PATH
12309       ;;
12310     siemens)
12311       need_lib_prefix=no
12312       ;;
12313     motorola)
12314       need_lib_prefix=no
12315       need_version=no
12316       shlibpath_overrides_runpath=no
12317       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12318       ;;
12319   esac
12320   ;;
12321
12322 sysv4*MP*)
12323   if test -d /usr/nec ;then
12324     version_type=linux
12325     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12326     soname_spec='$libname${shared_ext}.$major'
12327     shlibpath_var=LD_LIBRARY_PATH
12328   fi
12329   ;;
12330
12331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12332   version_type=freebsd-elf
12333   need_lib_prefix=no
12334   need_version=no
12335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12336   soname_spec='${libname}${release}${shared_ext}$major'
12337   shlibpath_var=LD_LIBRARY_PATH
12338   hardcode_into_libs=yes
12339   if test "$with_gnu_ld" = yes; then
12340     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12341     shlibpath_overrides_runpath=no
12342   else
12343     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12344     shlibpath_overrides_runpath=yes
12345     case $host_os in
12346       sco3.2v5*)
12347         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12348         ;;
12349     esac
12350   fi
12351   sys_lib_dlsearch_path_spec='/usr/lib'
12352   ;;
12353
12354 uts4*)
12355   version_type=linux
12356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357   soname_spec='${libname}${release}${shared_ext}$major'
12358   shlibpath_var=LD_LIBRARY_PATH
12359   ;;
12360
12361 *)
12362   dynamic_linker=no
12363   ;;
12364 esac
12365 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12366 echo "${ECHO_T}$dynamic_linker" >&6
12367 test "$dynamic_linker" = no && can_build_shared=no
12368
12369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12370 if test "$GCC" = yes; then
12371   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12372 fi
12373
12374 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12375 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12376 hardcode_action_CXX=
12377 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12378    test -n "$runpath_var_CXX" || \
12379    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12380
12381   # We can hardcode non-existant directories.
12382   if test "$hardcode_direct_CXX" != no &&
12383      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12384      # have to relink, otherwise we might link with an installed library
12385      # when we should be linking with a yet-to-be-installed one
12386      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12387      test "$hardcode_minus_L_CXX" != no; then
12388     # Linking always hardcodes the temporary library directory.
12389     hardcode_action_CXX=relink
12390   else
12391     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12392     hardcode_action_CXX=immediate
12393   fi
12394 else
12395   # We cannot hardcode anything, or else we can only hardcode existing
12396   # directories.
12397   hardcode_action_CXX=unsupported
12398 fi
12399 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12400 echo "${ECHO_T}$hardcode_action_CXX" >&6
12401
12402 if test "$hardcode_action_CXX" = relink; then
12403   # Fast installation is not supported
12404   enable_fast_install=no
12405 elif test "$shlibpath_overrides_runpath" = yes ||
12406      test "$enable_shared" = no; then
12407   # Fast installation is not necessary
12408   enable_fast_install=needless
12409 fi
12410
12411
12412 # The else clause should only fire when bootstrapping the
12413 # libtool distribution, otherwise you forgot to ship ltmain.sh
12414 # with your package, and you will get complaints that there are
12415 # no rules to generate ltmain.sh.
12416 if test -f "$ltmain"; then
12417   # See if we are running on zsh, and set the options which allow our commands through
12418   # without removal of \ escapes.
12419   if test -n "${ZSH_VERSION+set}" ; then
12420     setopt NO_GLOB_SUBST
12421   fi
12422   # Now quote all the things that may contain metacharacters while being
12423   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12424   # variables and quote the copies for generation of the libtool script.
12425   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12426     SED SHELL STRIP \
12427     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12428     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12429     deplibs_check_method reload_flag reload_cmds need_locks \
12430     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12431     lt_cv_sys_global_symbol_to_c_name_address \
12432     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12433     old_postinstall_cmds old_postuninstall_cmds \
12434     compiler_CXX \
12435     CC_CXX \
12436     LD_CXX \
12437     lt_prog_compiler_wl_CXX \
12438     lt_prog_compiler_pic_CXX \
12439     lt_prog_compiler_static_CXX \
12440     lt_prog_compiler_no_builtin_flag_CXX \
12441     export_dynamic_flag_spec_CXX \
12442     thread_safe_flag_spec_CXX \
12443     whole_archive_flag_spec_CXX \
12444     enable_shared_with_static_runtimes_CXX \
12445     old_archive_cmds_CXX \
12446     old_archive_from_new_cmds_CXX \
12447     predep_objects_CXX \
12448     postdep_objects_CXX \
12449     predeps_CXX \
12450     postdeps_CXX \
12451     compiler_lib_search_path_CXX \
12452     archive_cmds_CXX \
12453     archive_expsym_cmds_CXX \
12454     postinstall_cmds_CXX \
12455     postuninstall_cmds_CXX \
12456     old_archive_from_expsyms_cmds_CXX \
12457     allow_undefined_flag_CXX \
12458     no_undefined_flag_CXX \
12459     export_symbols_cmds_CXX \
12460     hardcode_libdir_flag_spec_CXX \
12461     hardcode_libdir_flag_spec_ld_CXX \
12462     hardcode_libdir_separator_CXX \
12463     hardcode_automatic_CXX \
12464     module_cmds_CXX \
12465     module_expsym_cmds_CXX \
12466     lt_cv_prog_compiler_c_o_CXX \
12467     exclude_expsyms_CXX \
12468     include_expsyms_CXX; do
12469
12470     case $var in
12471     old_archive_cmds_CXX | \
12472     old_archive_from_new_cmds_CXX | \
12473     archive_cmds_CXX | \
12474     archive_expsym_cmds_CXX | \
12475     module_cmds_CXX | \
12476     module_expsym_cmds_CXX | \
12477     old_archive_from_expsyms_cmds_CXX | \
12478     export_symbols_cmds_CXX | \
12479     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12480     postinstall_cmds | postuninstall_cmds | \
12481     old_postinstall_cmds | old_postuninstall_cmds | \
12482     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12483       # Double-quote double-evaled strings.
12484       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12485       ;;
12486     *)
12487       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12488       ;;
12489     esac
12490   done
12491
12492   case $lt_echo in
12493   *'\$0 --fallback-echo"')
12494     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12495     ;;
12496   esac
12497
12498 cfgfile="$ofile"
12499
12500   cat <<__EOF__ >> "$cfgfile"
12501 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12502
12503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12504
12505 # Shell to use when invoking shell scripts.
12506 SHELL=$lt_SHELL
12507
12508 # Whether or not to build shared libraries.
12509 build_libtool_libs=$enable_shared
12510
12511 # Whether or not to build static libraries.
12512 build_old_libs=$enable_static
12513
12514 # Whether or not to add -lc for building shared libraries.
12515 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12516
12517 # Whether or not to disallow shared libs when runtime libs are static
12518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12519
12520 # Whether or not to optimize for fast installation.
12521 fast_install=$enable_fast_install
12522
12523 # The host system.
12524 host_alias=$host_alias
12525 host=$host
12526 host_os=$host_os
12527
12528 # The build system.
12529 build_alias=$build_alias
12530 build=$build
12531 build_os=$build_os
12532
12533 # An echo program that does not interpret backslashes.
12534 echo=$lt_echo
12535
12536 # The archiver.
12537 AR=$lt_AR
12538 AR_FLAGS=$lt_AR_FLAGS
12539
12540 # A C compiler.
12541 LTCC=$lt_LTCC
12542
12543 # LTCC compiler flags.
12544 LTCFLAGS=$lt_LTCFLAGS
12545
12546 # A language-specific compiler.
12547 CC=$lt_compiler_CXX
12548
12549 # Is the compiler the GNU C compiler?
12550 with_gcc=$GCC_CXX
12551
12552 # An ERE matcher.
12553 EGREP=$lt_EGREP
12554
12555 # The linker used to build libraries.
12556 LD=$lt_LD_CXX
12557
12558 # Whether we need hard or soft links.
12559 LN_S=$lt_LN_S
12560
12561 # A BSD-compatible nm program.
12562 NM=$lt_NM
12563
12564 # A symbol stripping program
12565 STRIP=$lt_STRIP
12566
12567 # Used to examine libraries when file_magic_cmd begins "file"
12568 MAGIC_CMD=$MAGIC_CMD
12569
12570 # Used on cygwin: DLL creation program.
12571 DLLTOOL="$DLLTOOL"
12572
12573 # Used on cygwin: object dumper.
12574 OBJDUMP="$OBJDUMP"
12575
12576 # Used on cygwin: assembler.
12577 AS="$AS"
12578
12579 # The name of the directory that contains temporary libtool files.
12580 objdir=$objdir
12581
12582 # How to create reloadable object files.
12583 reload_flag=$lt_reload_flag
12584 reload_cmds=$lt_reload_cmds
12585
12586 # How to pass a linker flag through the compiler.
12587 wl=$lt_lt_prog_compiler_wl_CXX
12588
12589 # Object file suffix (normally "o").
12590 objext="$ac_objext"
12591
12592 # Old archive suffix (normally "a").
12593 libext="$libext"
12594
12595 # Shared library suffix (normally ".so").
12596 shrext_cmds='$shrext_cmds'
12597
12598 # Executable file suffix (normally "").
12599 exeext="$exeext"
12600
12601 # Additional compiler flags for building library objects.
12602 pic_flag=$lt_lt_prog_compiler_pic_CXX
12603 pic_mode=$pic_mode
12604
12605 # What is the maximum length of a command?
12606 max_cmd_len=$lt_cv_sys_max_cmd_len
12607
12608 # Does compiler simultaneously support -c and -o options?
12609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12610
12611 # Must we lock files when doing compilation?
12612 need_locks=$lt_need_locks
12613
12614 # Do we need the lib prefix for modules?
12615 need_lib_prefix=$need_lib_prefix
12616
12617 # Do we need a version for libraries?
12618 need_version=$need_version
12619
12620 # Whether dlopen is supported.
12621 dlopen_support=$enable_dlopen
12622
12623 # Whether dlopen of programs is supported.
12624 dlopen_self=$enable_dlopen_self
12625
12626 # Whether dlopen of statically linked programs is supported.
12627 dlopen_self_static=$enable_dlopen_self_static
12628
12629 # Compiler flag to prevent dynamic linking.
12630 link_static_flag=$lt_lt_prog_compiler_static_CXX
12631
12632 # Compiler flag to turn off builtin functions.
12633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12634
12635 # Compiler flag to allow reflexive dlopens.
12636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12637
12638 # Compiler flag to generate shared objects directly from archives.
12639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12640
12641 # Compiler flag to generate thread-safe objects.
12642 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12643
12644 # Library versioning type.
12645 version_type=$version_type
12646
12647 # Format of library name prefix.
12648 libname_spec=$lt_libname_spec
12649
12650 # List of archive names.  First name is the real one, the rest are links.
12651 # The last name is the one that the linker finds with -lNAME.
12652 library_names_spec=$lt_library_names_spec
12653
12654 # The coded name of the library, if different from the real name.
12655 soname_spec=$lt_soname_spec
12656
12657 # Commands used to build and install an old-style archive.
12658 RANLIB=$lt_RANLIB
12659 old_archive_cmds=$lt_old_archive_cmds_CXX
12660 old_postinstall_cmds=$lt_old_postinstall_cmds
12661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12662
12663 # Create an old-style archive from a shared archive.
12664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12665
12666 # Create a temporary old-style archive to link instead of a shared archive.
12667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12668
12669 # Commands used to build and install a shared archive.
12670 archive_cmds=$lt_archive_cmds_CXX
12671 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12672 postinstall_cmds=$lt_postinstall_cmds
12673 postuninstall_cmds=$lt_postuninstall_cmds
12674
12675 # Commands used to build a loadable module (assumed same as above if empty)
12676 module_cmds=$lt_module_cmds_CXX
12677 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12678
12679 # Commands to strip libraries.
12680 old_striplib=$lt_old_striplib
12681 striplib=$lt_striplib
12682
12683 # Dependencies to place before the objects being linked to create a
12684 # shared library.
12685 predep_objects=$lt_predep_objects_CXX
12686
12687 # Dependencies to place after the objects being linked to create a
12688 # shared library.
12689 postdep_objects=$lt_postdep_objects_CXX
12690
12691 # Dependencies to place before the objects being linked to create a
12692 # shared library.
12693 predeps=$lt_predeps_CXX
12694
12695 # Dependencies to place after the objects being linked to create a
12696 # shared library.
12697 postdeps=$lt_postdeps_CXX
12698
12699 # The library search path used internally by the compiler when linking
12700 # a shared library.
12701 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12702
12703 # Method to check whether dependent libraries are shared objects.
12704 deplibs_check_method=$lt_deplibs_check_method
12705
12706 # Command to use when deplibs_check_method == file_magic.
12707 file_magic_cmd=$lt_file_magic_cmd
12708
12709 # Flag that allows shared libraries with undefined symbols to be built.
12710 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12711
12712 # Flag that forces no undefined symbols.
12713 no_undefined_flag=$lt_no_undefined_flag_CXX
12714
12715 # Commands used to finish a libtool library installation in a directory.
12716 finish_cmds=$lt_finish_cmds
12717
12718 # Same as above, but a single script fragment to be evaled but not shown.
12719 finish_eval=$lt_finish_eval
12720
12721 # Take the output of nm and produce a listing of raw symbols and C names.
12722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12723
12724 # Transform the output of nm in a proper C declaration
12725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12726
12727 # Transform the output of nm in a C name address pair
12728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12729
12730 # This is the shared library runtime path variable.
12731 runpath_var=$runpath_var
12732
12733 # This is the shared library path variable.
12734 shlibpath_var=$shlibpath_var
12735
12736 # Is shlibpath searched before the hard-coded library search path?
12737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12738
12739 # How to hardcode a shared library path into an executable.
12740 hardcode_action=$hardcode_action_CXX
12741
12742 # Whether we should hardcode library paths into libraries.
12743 hardcode_into_libs=$hardcode_into_libs
12744
12745 # Flag to hardcode \$libdir into a binary during linking.
12746 # This must work even if \$libdir does not exist.
12747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12748
12749 # If ld is used when linking, flag to hardcode \$libdir into
12750 # a binary during linking. This must work even if \$libdir does
12751 # not exist.
12752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12753
12754 # Whether we need a single -rpath flag with a separated argument.
12755 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12756
12757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12758 # resulting binary.
12759 hardcode_direct=$hardcode_direct_CXX
12760
12761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12762 # resulting binary.
12763 hardcode_minus_L=$hardcode_minus_L_CXX
12764
12765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12766 # the resulting binary.
12767 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12768
12769 # Set to yes if building a shared library automatically hardcodes DIR into the library
12770 # and all subsequent libraries and executables linked against it.
12771 hardcode_automatic=$hardcode_automatic_CXX
12772
12773 # Variables whose values should be saved in libtool wrapper scripts and
12774 # restored at relink time.
12775 variables_saved_for_relink="$variables_saved_for_relink"
12776
12777 # Whether libtool must link a program against all its dependency libraries.
12778 link_all_deplibs=$link_all_deplibs_CXX
12779
12780 # Compile-time system search path for libraries
12781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12782
12783 # Run-time system search path for libraries
12784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12785
12786 # Fix the shell variable \$srcfile for the compiler.
12787 fix_srcfile_path="$fix_srcfile_path_CXX"
12788
12789 # Set to yes if exported symbols are required.
12790 always_export_symbols=$always_export_symbols_CXX
12791
12792 # The commands to list exported symbols.
12793 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12794
12795 # The commands to extract the exported symbol list from a shared archive.
12796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12797
12798 # Symbols that should not be listed in the preloaded symbols.
12799 exclude_expsyms=$lt_exclude_expsyms_CXX
12800
12801 # Symbols that must always be exported.
12802 include_expsyms=$lt_include_expsyms_CXX
12803
12804 # ### END LIBTOOL TAG CONFIG: $tagname
12805
12806 __EOF__
12807
12808
12809 else
12810   # If there is no Makefile yet, we rely on a make rule to execute
12811   # `config.status --recheck' to rerun these tests and create the
12812   # libtool script then.
12813   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12814   if test -f "$ltmain_in"; then
12815     test -f Makefile && make "$ltmain"
12816   fi
12817 fi
12818
12819
12820 ac_ext=c
12821 ac_cpp='$CPP $CPPFLAGS'
12822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12825
12826 CC=$lt_save_CC
12827 LDCXX=$LD
12828 LD=$lt_save_LD
12829 GCC=$lt_save_GCC
12830 with_gnu_ldcxx=$with_gnu_ld
12831 with_gnu_ld=$lt_save_with_gnu_ld
12832 lt_cv_path_LDCXX=$lt_cv_path_LD
12833 lt_cv_path_LD=$lt_save_path_LD
12834 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12835 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12836
12837         else
12838           tagname=""
12839         fi
12840         ;;
12841
12842       F77)
12843         if test -n "$F77" && test "X$F77" != "Xno"; then
12844
12845 ac_ext=f
12846 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12847 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12849
12850
12851 archive_cmds_need_lc_F77=no
12852 allow_undefined_flag_F77=
12853 always_export_symbols_F77=no
12854 archive_expsym_cmds_F77=
12855 export_dynamic_flag_spec_F77=
12856 hardcode_direct_F77=no
12857 hardcode_libdir_flag_spec_F77=
12858 hardcode_libdir_flag_spec_ld_F77=
12859 hardcode_libdir_separator_F77=
12860 hardcode_minus_L_F77=no
12861 hardcode_automatic_F77=no
12862 module_cmds_F77=
12863 module_expsym_cmds_F77=
12864 link_all_deplibs_F77=unknown
12865 old_archive_cmds_F77=$old_archive_cmds
12866 no_undefined_flag_F77=
12867 whole_archive_flag_spec_F77=
12868 enable_shared_with_static_runtimes_F77=no
12869
12870 # Source file extension for f77 test sources.
12871 ac_ext=f
12872
12873 # Object file extension for compiled f77 test sources.
12874 objext=o
12875 objext_F77=$objext
12876
12877 # Code to be used in simple compile tests
12878 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12879
12880 # Code to be used in simple link tests
12881 lt_simple_link_test_code="      program t\n      end\n"
12882
12883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12884
12885 # If no C compiler was specified, use CC.
12886 LTCC=${LTCC-"$CC"}
12887
12888 # If no C compiler flags were specified, use CFLAGS.
12889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12890
12891 # Allow CC to be a program name with arguments.
12892 compiler=$CC
12893
12894
12895 # save warnings/boilerplate of simple test code
12896 ac_outfile=conftest.$ac_objext
12897 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12899 _lt_compiler_boilerplate=`cat conftest.err`
12900 $rm conftest*
12901
12902 ac_outfile=conftest.$ac_objext
12903 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12905 _lt_linker_boilerplate=`cat conftest.err`
12906 $rm conftest*
12907
12908
12909 # Allow CC to be a program name with arguments.
12910 lt_save_CC="$CC"
12911 CC=${F77-"f77"}
12912 compiler=$CC
12913 compiler_F77=$CC
12914 for cc_temp in $compiler""; do
12915   case $cc_temp in
12916     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12917     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12918     \-*) ;;
12919     *) break;;
12920   esac
12921 done
12922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12923
12924
12925 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12926 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12927 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12928 echo "${ECHO_T}$can_build_shared" >&6
12929
12930 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12931 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12932 test "$can_build_shared" = "no" && enable_shared=no
12933
12934 # On AIX, shared libraries and static libraries use the same namespace, and
12935 # are all built from PIC.
12936 case $host_os in
12937 aix3*)
12938   test "$enable_shared" = yes && enable_static=no
12939   if test -n "$RANLIB"; then
12940     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12941     postinstall_cmds='$RANLIB $lib'
12942   fi
12943   ;;
12944 aix4* | aix5*)
12945   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12946     test "$enable_shared" = yes && enable_static=no
12947   fi
12948   ;;
12949 esac
12950 echo "$as_me:$LINENO: result: $enable_shared" >&5
12951 echo "${ECHO_T}$enable_shared" >&6
12952
12953 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12954 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12955 # Make sure either enable_shared or enable_static is yes.
12956 test "$enable_shared" = yes || enable_static=yes
12957 echo "$as_me:$LINENO: result: $enable_static" >&5
12958 echo "${ECHO_T}$enable_static" >&6
12959
12960 GCC_F77="$G77"
12961 LD_F77="$LD"
12962
12963 lt_prog_compiler_wl_F77=
12964 lt_prog_compiler_pic_F77=
12965 lt_prog_compiler_static_F77=
12966
12967 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12969
12970   if test "$GCC" = yes; then
12971     lt_prog_compiler_wl_F77='-Wl,'
12972     lt_prog_compiler_static_F77='-static'
12973
12974     case $host_os in
12975       aix*)
12976       # All AIX code is PIC.
12977       if test "$host_cpu" = ia64; then
12978         # AIX 5 now supports IA64 processor
12979         lt_prog_compiler_static_F77='-Bstatic'
12980       fi
12981       ;;
12982
12983     amigaos*)
12984       # FIXME: we need at least 68020 code to build shared libraries, but
12985       # adding the `-m68020' flag to GCC prevents building anything better,
12986       # like `-m68040'.
12987       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12988       ;;
12989
12990     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12991       # PIC is the default for these OSes.
12992       ;;
12993
12994     mingw* | pw32* | os2*)
12995       # This hack is so that the source file can tell whether it is being
12996       # built for inclusion in a dll (and should export symbols for example).
12997       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12998       ;;
12999
13000     darwin* | rhapsody*)
13001       # PIC is the default on this platform
13002       # Common symbols not allowed in MH_DYLIB files
13003       lt_prog_compiler_pic_F77='-fno-common'
13004       ;;
13005
13006     interix3*)
13007       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13008       # Instead, we relocate shared libraries at runtime.
13009       ;;
13010
13011     msdosdjgpp*)
13012       # Just because we use GCC doesn't mean we suddenly get shared libraries
13013       # on systems that don't support them.
13014       lt_prog_compiler_can_build_shared_F77=no
13015       enable_shared=no
13016       ;;
13017
13018     sysv4*MP*)
13019       if test -d /usr/nec; then
13020         lt_prog_compiler_pic_F77=-Kconform_pic
13021       fi
13022       ;;
13023
13024     hpux*)
13025       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13026       # not for PA HP-UX.
13027       case $host_cpu in
13028       hppa*64*|ia64*)
13029         # +Z the default
13030         ;;
13031       *)
13032         lt_prog_compiler_pic_F77='-fPIC'
13033         ;;
13034       esac
13035       ;;
13036
13037     *)
13038       lt_prog_compiler_pic_F77='-fPIC'
13039       ;;
13040     esac
13041   else
13042     # PORTME Check for flag to pass linker flags through the system compiler.
13043     case $host_os in
13044     aix*)
13045       lt_prog_compiler_wl_F77='-Wl,'
13046       if test "$host_cpu" = ia64; then
13047         # AIX 5 now supports IA64 processor
13048         lt_prog_compiler_static_F77='-Bstatic'
13049       else
13050         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13051       fi
13052       ;;
13053       darwin*)
13054         # PIC is the default on this platform
13055         # Common symbols not allowed in MH_DYLIB files
13056        case $cc_basename in
13057          xlc*)
13058          lt_prog_compiler_pic_F77='-qnocommon'
13059          lt_prog_compiler_wl_F77='-Wl,'
13060          ;;
13061        esac
13062        ;;
13063
13064     mingw* | pw32* | os2*)
13065       # This hack is so that the source file can tell whether it is being
13066       # built for inclusion in a dll (and should export symbols for example).
13067       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13068       ;;
13069
13070     hpux9* | hpux10* | hpux11*)
13071       lt_prog_compiler_wl_F77='-Wl,'
13072       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13073       # not for PA HP-UX.
13074       case $host_cpu in
13075       hppa*64*|ia64*)
13076         # +Z the default
13077         ;;
13078       *)
13079         lt_prog_compiler_pic_F77='+Z'
13080         ;;
13081       esac
13082       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13083       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13084       ;;
13085
13086     irix5* | irix6* | nonstopux*)
13087       lt_prog_compiler_wl_F77='-Wl,'
13088       # PIC (with -KPIC) is the default.
13089       lt_prog_compiler_static_F77='-non_shared'
13090       ;;
13091
13092     newsos6)
13093       lt_prog_compiler_pic_F77='-KPIC'
13094       lt_prog_compiler_static_F77='-Bstatic'
13095       ;;
13096
13097     linux*)
13098       case $cc_basename in
13099       icc* | ecc*)
13100         lt_prog_compiler_wl_F77='-Wl,'
13101         lt_prog_compiler_pic_F77='-KPIC'
13102         lt_prog_compiler_static_F77='-static'
13103         ;;
13104       pgcc* | pgf77* | pgf90* | pgf95*)
13105         # Portland Group compilers (*not* the Pentium gcc compiler,
13106         # which looks to be a dead project)
13107         lt_prog_compiler_wl_F77='-Wl,'
13108         lt_prog_compiler_pic_F77='-fpic'
13109         lt_prog_compiler_static_F77='-Bstatic'
13110         ;;
13111       ccc*)
13112         lt_prog_compiler_wl_F77='-Wl,'
13113         # All Alpha code is PIC.
13114         lt_prog_compiler_static_F77='-non_shared'
13115         ;;
13116       esac
13117       ;;
13118
13119     osf3* | osf4* | osf5*)
13120       lt_prog_compiler_wl_F77='-Wl,'
13121       # All OSF/1 code is PIC.
13122       lt_prog_compiler_static_F77='-non_shared'
13123       ;;
13124
13125     solaris*)
13126       lt_prog_compiler_pic_F77='-KPIC'
13127       lt_prog_compiler_static_F77='-Bstatic'
13128       case $cc_basename in
13129       f77* | f90* | f95*)
13130         lt_prog_compiler_wl_F77='-Qoption ld ';;
13131       *)
13132         lt_prog_compiler_wl_F77='-Wl,';;
13133       esac
13134       ;;
13135
13136     sunos4*)
13137       lt_prog_compiler_wl_F77='-Qoption ld '
13138       lt_prog_compiler_pic_F77='-PIC'
13139       lt_prog_compiler_static_F77='-Bstatic'
13140       ;;
13141
13142     sysv4 | sysv4.2uw2* | sysv4.3*)
13143       lt_prog_compiler_wl_F77='-Wl,'
13144       lt_prog_compiler_pic_F77='-KPIC'
13145       lt_prog_compiler_static_F77='-Bstatic'
13146       ;;
13147
13148     sysv4*MP*)
13149       if test -d /usr/nec ;then
13150         lt_prog_compiler_pic_F77='-Kconform_pic'
13151         lt_prog_compiler_static_F77='-Bstatic'
13152       fi
13153       ;;
13154
13155     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13156       lt_prog_compiler_wl_F77='-Wl,'
13157       lt_prog_compiler_pic_F77='-KPIC'
13158       lt_prog_compiler_static_F77='-Bstatic'
13159       ;;
13160
13161     unicos*)
13162       lt_prog_compiler_wl_F77='-Wl,'
13163       lt_prog_compiler_can_build_shared_F77=no
13164       ;;
13165
13166     uts4*)
13167       lt_prog_compiler_pic_F77='-pic'
13168       lt_prog_compiler_static_F77='-Bstatic'
13169       ;;
13170
13171     *)
13172       lt_prog_compiler_can_build_shared_F77=no
13173       ;;
13174     esac
13175   fi
13176
13177 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13178 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13179
13180 #
13181 # Check to make sure the PIC flag actually works.
13182 #
13183 if test -n "$lt_prog_compiler_pic_F77"; then
13184
13185 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13187 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190   lt_prog_compiler_pic_works_F77=no
13191   ac_outfile=conftest.$ac_objext
13192    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13193    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13194    # Insert the option either (1) after the last *FLAGS variable, or
13195    # (2) before a word containing "conftest.", or (3) at the end.
13196    # Note that $ac_compile itself does not contain backslashes and begins
13197    # with a dollar sign (not a hyphen), so the echo should work correctly.
13198    # The option is referenced via a variable to avoid confusing sed.
13199    lt_compile=`echo "$ac_compile" | $SED \
13200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13202    -e 's:$: $lt_compiler_flag:'`
13203    (eval echo "\"\$as_me:13203: $lt_compile\"" >&5)
13204    (eval "$lt_compile" 2>conftest.err)
13205    ac_status=$?
13206    cat conftest.err >&5
13207    echo "$as_me:13207: \$? = $ac_status" >&5
13208    if (exit $ac_status) && test -s "$ac_outfile"; then
13209      # The compiler can only warn and ignore the option if not recognized
13210      # So say no if there are warnings other than the usual output.
13211      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13212      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13213      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13214        lt_prog_compiler_pic_works_F77=yes
13215      fi
13216    fi
13217    $rm conftest*
13218
13219 fi
13220 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13221 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13222
13223 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13224     case $lt_prog_compiler_pic_F77 in
13225      "" | " "*) ;;
13226      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13227      esac
13228 else
13229     lt_prog_compiler_pic_F77=
13230      lt_prog_compiler_can_build_shared_F77=no
13231 fi
13232
13233 fi
13234 case $host_os in
13235   # For platforms which do not support PIC, -DPIC is meaningless:
13236   *djgpp*)
13237     lt_prog_compiler_pic_F77=
13238     ;;
13239   *)
13240     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13241     ;;
13242 esac
13243
13244 #
13245 # Check to make sure the static flag actually works.
13246 #
13247 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13248 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13249 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13250 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13251   echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253   lt_prog_compiler_static_works_F77=no
13254    save_LDFLAGS="$LDFLAGS"
13255    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13256    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13257    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13258      # The linker can only warn and ignore the option if not recognized
13259      # So say no if there are warnings
13260      if test -s conftest.err; then
13261        # Append any errors to the config.log.
13262        cat conftest.err 1>&5
13263        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13264        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13265        if diff conftest.exp conftest.er2 >/dev/null; then
13266          lt_prog_compiler_static_works_F77=yes
13267        fi
13268      else
13269        lt_prog_compiler_static_works_F77=yes
13270      fi
13271    fi
13272    $rm conftest*
13273    LDFLAGS="$save_LDFLAGS"
13274
13275 fi
13276 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13277 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13278
13279 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13280     :
13281 else
13282     lt_prog_compiler_static_F77=
13283 fi
13284
13285
13286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13288 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   lt_cv_prog_compiler_c_o_F77=no
13292    $rm -r conftest 2>/dev/null
13293    mkdir conftest
13294    cd conftest
13295    mkdir out
13296    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13297
13298    lt_compiler_flag="-o out/conftest2.$ac_objext"
13299    # Insert the option either (1) after the last *FLAGS variable, or
13300    # (2) before a word containing "conftest.", or (3) at the end.
13301    # Note that $ac_compile itself does not contain backslashes and begins
13302    # with a dollar sign (not a hyphen), so the echo should work correctly.
13303    lt_compile=`echo "$ac_compile" | $SED \
13304    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13306    -e 's:$: $lt_compiler_flag:'`
13307    (eval echo "\"\$as_me:13307: $lt_compile\"" >&5)
13308    (eval "$lt_compile" 2>out/conftest.err)
13309    ac_status=$?
13310    cat out/conftest.err >&5
13311    echo "$as_me:13311: \$? = $ac_status" >&5
13312    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13313    then
13314      # The compiler can only warn and ignore the option if not recognized
13315      # So say no if there are warnings
13316      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13317      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13318      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13319        lt_cv_prog_compiler_c_o_F77=yes
13320      fi
13321    fi
13322    chmod u+w . 2>&5
13323    $rm conftest*
13324    # SGI C++ compiler will create directory out/ii_files/ for
13325    # template instantiation
13326    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13327    $rm out/* && rmdir out
13328    cd ..
13329    rmdir conftest
13330    $rm conftest*
13331
13332 fi
13333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13335
13336
13337 hard_links="nottested"
13338 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13339   # do not overwrite the value of need_locks provided by the user
13340   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13342   hard_links=yes
13343   $rm conftest*
13344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13345   touch conftest.a
13346   ln conftest.a conftest.b 2>&5 || hard_links=no
13347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348   echo "$as_me:$LINENO: result: $hard_links" >&5
13349 echo "${ECHO_T}$hard_links" >&6
13350   if test "$hard_links" = no; then
13351     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13353     need_locks=warn
13354   fi
13355 else
13356   need_locks=no
13357 fi
13358
13359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13361
13362   runpath_var=
13363   allow_undefined_flag_F77=
13364   enable_shared_with_static_runtimes_F77=no
13365   archive_cmds_F77=
13366   archive_expsym_cmds_F77=
13367   old_archive_From_new_cmds_F77=
13368   old_archive_from_expsyms_cmds_F77=
13369   export_dynamic_flag_spec_F77=
13370   whole_archive_flag_spec_F77=
13371   thread_safe_flag_spec_F77=
13372   hardcode_libdir_flag_spec_F77=
13373   hardcode_libdir_flag_spec_ld_F77=
13374   hardcode_libdir_separator_F77=
13375   hardcode_direct_F77=no
13376   hardcode_minus_L_F77=no
13377   hardcode_shlibpath_var_F77=unsupported
13378   link_all_deplibs_F77=unknown
13379   hardcode_automatic_F77=no
13380   module_cmds_F77=
13381   module_expsym_cmds_F77=
13382   always_export_symbols_F77=no
13383   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13384   # include_expsyms should be a list of space-separated symbols to be *always*
13385   # included in the symbol list
13386   include_expsyms_F77=
13387   # exclude_expsyms can be an extended regexp of symbols to exclude
13388   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13389   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13390   # as well as any symbol that contains `d'.
13391   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13392   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13393   # platforms (ab)use it in PIC code, but their linkers get confused if
13394   # the symbol is explicitly referenced.  Since portable code cannot
13395   # rely on this symbol name, it's probably fine to never include it in
13396   # preloaded symbol tables.
13397   extract_expsyms_cmds=
13398   # Just being paranoid about ensuring that cc_basename is set.
13399   for cc_temp in $compiler""; do
13400   case $cc_temp in
13401     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13402     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13403     \-*) ;;
13404     *) break;;
13405   esac
13406 done
13407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13408
13409   case $host_os in
13410   cygwin* | mingw* | pw32*)
13411     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13412     # When not using gcc, we currently assume that we are using
13413     # Microsoft Visual C++.
13414     if test "$GCC" != yes; then
13415       with_gnu_ld=no
13416     fi
13417     ;;
13418   interix*)
13419     # we just hope/assume this is gcc and not c89 (= MSVC++)
13420     with_gnu_ld=yes
13421     ;;
13422   openbsd*)
13423     with_gnu_ld=no
13424     ;;
13425   esac
13426
13427   ld_shlibs_F77=yes
13428   if test "$with_gnu_ld" = yes; then
13429     # If archive_cmds runs LD, not CC, wlarc should be empty
13430     wlarc='${wl}'
13431
13432     # Set some defaults for GNU ld with shared library support. These
13433     # are reset later if shared libraries are not supported. Putting them
13434     # here allows them to be overridden if necessary.
13435     runpath_var=LD_RUN_PATH
13436     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13437     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13438     # ancient GNU ld didn't support --whole-archive et. al.
13439     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13440         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13441       else
13442         whole_archive_flag_spec_F77=
13443     fi
13444     supports_anon_versioning=no
13445     case `$LD -v 2>/dev/null` in
13446       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13447       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13448       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13449       *\ 2.11.*) ;; # other 2.11 versions
13450       *) supports_anon_versioning=yes ;;
13451     esac
13452
13453     # See if GNU ld supports shared libraries.
13454     case $host_os in
13455     aix3* | aix4* | aix5*)
13456       # On AIX/PPC, the GNU linker is very broken
13457       if test "$host_cpu" != ia64; then
13458         ld_shlibs_F77=no
13459         cat <<EOF 1>&2
13460
13461 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13462 *** to be unable to reliably create shared libraries on AIX.
13463 *** Therefore, libtool is disabling shared libraries support.  If you
13464 *** really care for shared libraries, you may want to modify your PATH
13465 *** so that a non-GNU linker is found, and then restart.
13466
13467 EOF
13468       fi
13469       ;;
13470
13471     amigaos*)
13472       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13473       hardcode_libdir_flag_spec_F77='-L$libdir'
13474       hardcode_minus_L_F77=yes
13475
13476       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13477       # that the semantics of dynamic libraries on AmigaOS, at least up
13478       # to version 4, is to share data among multiple programs linked
13479       # with the same dynamic library.  Since this doesn't match the
13480       # behavior of shared libraries on other platforms, we can't use
13481       # them.
13482       ld_shlibs_F77=no
13483       ;;
13484
13485     beos*)
13486       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13487         allow_undefined_flag_F77=unsupported
13488         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13489         # support --undefined.  This deserves some investigation.  FIXME
13490         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13491       else
13492         ld_shlibs_F77=no
13493       fi
13494       ;;
13495
13496     cygwin* | mingw* | pw32*)
13497       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13498       # as there is no search path for DLLs.
13499       hardcode_libdir_flag_spec_F77='-L$libdir'
13500       allow_undefined_flag_F77=unsupported
13501       always_export_symbols_F77=no
13502       enable_shared_with_static_runtimes_F77=yes
13503       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13504
13505       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13506         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13507         # If the export-symbols file already is a .def file (1st line
13508         # is EXPORTS), use it as is; otherwise, prepend...
13509         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13510           cp $export_symbols $output_objdir/$soname.def;
13511         else
13512           echo EXPORTS > $output_objdir/$soname.def;
13513           cat $export_symbols >> $output_objdir/$soname.def;
13514         fi~
13515         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13516       else
13517         ld_shlibs_F77=no
13518       fi
13519       ;;
13520
13521     interix3*)
13522       hardcode_direct_F77=no
13523       hardcode_shlibpath_var_F77=no
13524       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13525       export_dynamic_flag_spec_F77='${wl}-E'
13526       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13527       # Instead, shared libraries are loaded at an image base (0x10000000 by
13528       # default) and relocated if they conflict, which is a slow very memory
13529       # consuming and fragmenting process.  To avoid this, we pick a random,
13530       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13531       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13532       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13533       archive_expsym_cmds_F77='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'
13534       ;;
13535
13536     linux*)
13537       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13538         tmp_addflag=
13539         case $cc_basename,$host_cpu in
13540         pgcc*)                          # Portland Group C compiler
13541           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13542           tmp_addflag=' $pic_flag'
13543           ;;
13544         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13545           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13546           tmp_addflag=' $pic_flag -Mnomain' ;;
13547         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13548           tmp_addflag=' -i_dynamic' ;;
13549         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13550           tmp_addflag=' -i_dynamic -nofor_main' ;;
13551         ifc* | ifort*)                  # Intel Fortran compiler
13552           tmp_addflag=' -nofor_main' ;;
13553         esac
13554         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13555
13556         if test $supports_anon_versioning = yes; then
13557           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13558   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13559   $echo "local: *; };" >> $output_objdir/$libname.ver~
13560           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13561         fi
13562         link_all_deplibs_F77=no
13563       else
13564         ld_shlibs_F77=no
13565       fi
13566       ;;
13567
13568     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13569       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13570         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13571         wlarc=
13572       else
13573         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13574         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13575       fi
13576       ;;
13577
13578     solaris*)
13579       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13580         ld_shlibs_F77=no
13581         cat <<EOF 1>&2
13582
13583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13584 *** create shared libraries on Solaris systems.  Therefore, libtool
13585 *** is disabling shared libraries support.  We urge you to upgrade GNU
13586 *** binutils to release 2.9.1 or newer.  Another option is to modify
13587 *** your PATH or compiler configuration so that the native linker is
13588 *** used, and then restart.
13589
13590 EOF
13591       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13592         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13594       else
13595         ld_shlibs_F77=no
13596       fi
13597       ;;
13598
13599     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13600       case `$LD -v 2>&1` in
13601         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13602         ld_shlibs_F77=no
13603         cat <<_LT_EOF 1>&2
13604
13605 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13606 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13607 *** is disabling shared libraries support.  We urge you to upgrade GNU
13608 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13609 *** your PATH or compiler configuration so that the native linker is
13610 *** used, and then restart.
13611
13612 _LT_EOF
13613         ;;
13614         *)
13615           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13616             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13617             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13618             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13619           else
13620             ld_shlibs_F77=no
13621           fi
13622         ;;
13623       esac
13624       ;;
13625
13626     sunos4*)
13627       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628       wlarc=
13629       hardcode_direct_F77=yes
13630       hardcode_shlibpath_var_F77=no
13631       ;;
13632
13633     *)
13634       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13635         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13637       else
13638         ld_shlibs_F77=no
13639       fi
13640       ;;
13641     esac
13642
13643     if test "$ld_shlibs_F77" = no; then
13644       runpath_var=
13645       hardcode_libdir_flag_spec_F77=
13646       export_dynamic_flag_spec_F77=
13647       whole_archive_flag_spec_F77=
13648     fi
13649   else
13650     # PORTME fill in a description of your system's linker (not GNU ld)
13651     case $host_os in
13652     aix3*)
13653       allow_undefined_flag_F77=unsupported
13654       always_export_symbols_F77=yes
13655       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13656       # Note: this linker hardcodes the directories in LIBPATH if there
13657       # are no directories specified by -L.
13658       hardcode_minus_L_F77=yes
13659       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13660         # Neither direct hardcoding nor static linking is supported with a
13661         # broken collect2.
13662         hardcode_direct_F77=unsupported
13663       fi
13664       ;;
13665
13666     aix4* | aix5*)
13667       if test "$host_cpu" = ia64; then
13668         # On IA64, the linker does run time linking by default, so we don't
13669         # have to do anything special.
13670         aix_use_runtimelinking=no
13671         exp_sym_flag='-Bexport'
13672         no_entry_flag=""
13673       else
13674         # If we're using GNU nm, then we don't want the "-C" option.
13675         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13676         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13677           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13678         else
13679           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13680         fi
13681         aix_use_runtimelinking=no
13682
13683         # Test if we are trying to use run time linking or normal
13684         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13685         # need to do runtime linking.
13686         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13687           for ld_flag in $LDFLAGS; do
13688           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13689             aix_use_runtimelinking=yes
13690             break
13691           fi
13692           done
13693           ;;
13694         esac
13695
13696         exp_sym_flag='-bexport'
13697         no_entry_flag='-bnoentry'
13698       fi
13699
13700       # When large executables or shared objects are built, AIX ld can
13701       # have problems creating the table of contents.  If linking a library
13702       # or program results in "error TOC overflow" add -mminimal-toc to
13703       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13704       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13705
13706       archive_cmds_F77=''
13707       hardcode_direct_F77=yes
13708       hardcode_libdir_separator_F77=':'
13709       link_all_deplibs_F77=yes
13710
13711       if test "$GCC" = yes; then
13712         case $host_os in aix4.[012]|aix4.[012].*)
13713         # We only want to do this on AIX 4.2 and lower, the check
13714         # below for broken collect2 doesn't work under 4.3+
13715           collect2name=`${CC} -print-prog-name=collect2`
13716           if test -f "$collect2name" && \
13717            strings "$collect2name" | grep resolve_lib_name >/dev/null
13718           then
13719           # We have reworked collect2
13720           hardcode_direct_F77=yes
13721           else
13722           # We have old collect2
13723           hardcode_direct_F77=unsupported
13724           # It fails to find uninstalled libraries when the uninstalled
13725           # path is not listed in the libpath.  Setting hardcode_minus_L
13726           # to unsupported forces relinking
13727           hardcode_minus_L_F77=yes
13728           hardcode_libdir_flag_spec_F77='-L$libdir'
13729           hardcode_libdir_separator_F77=
13730           fi
13731           ;;
13732         esac
13733         shared_flag='-shared'
13734         if test "$aix_use_runtimelinking" = yes; then
13735           shared_flag="$shared_flag "'${wl}-G'
13736         fi
13737       else
13738         # not using gcc
13739         if test "$host_cpu" = ia64; then
13740         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13741         # chokes on -Wl,-G. The following line is correct:
13742           shared_flag='-G'
13743         else
13744           if test "$aix_use_runtimelinking" = yes; then
13745             shared_flag='${wl}-G'
13746           else
13747             shared_flag='${wl}-bM:SRE'
13748           fi
13749         fi
13750       fi
13751
13752       # It seems that -bexpall does not export symbols beginning with
13753       # underscore (_), so it is better to generate a list of symbols to export.
13754       always_export_symbols_F77=yes
13755       if test "$aix_use_runtimelinking" = yes; then
13756         # Warning - without using the other runtime loading flags (-brtl),
13757         # -berok will link without error, but may produce a broken library.
13758         allow_undefined_flag_F77='-berok'
13759        # Determine the default libpath from the value encoded in an empty executable.
13760        cat >conftest.$ac_ext <<_ACEOF
13761       program main
13762
13763       end
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767   (eval $ac_link) 2>conftest.er1
13768   ac_status=$?
13769   grep -v '^ *+' conftest.er1 >conftest.err
13770   rm -f conftest.er1
13771   cat conftest.err >&5
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); } &&
13774          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; } &&
13780          { ac_try='test -s conftest$ac_exeext'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; }; then
13786
13787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13788 }'`
13789 # Check for a 64-bit object if we didn't find anything.
13790 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13791 }'`; fi
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796 fi
13797 rm -f conftest.err conftest.$ac_objext \
13798       conftest$ac_exeext conftest.$ac_ext
13799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13800
13801        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13802         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13803        else
13804         if test "$host_cpu" = ia64; then
13805           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13806           allow_undefined_flag_F77="-z nodefs"
13807           archive_expsym_cmds_F77="\$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"
13808         else
13809          # Determine the default libpath from the value encoded in an empty executable.
13810          cat >conftest.$ac_ext <<_ACEOF
13811       program main
13812
13813       end
13814 _ACEOF
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817   (eval $ac_link) 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } &&
13824          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest$ac_exeext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836
13837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13838 }'`
13839 # Check for a 64-bit object if we didn't find anything.
13840 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13841 }'`; fi
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 fi
13847 rm -f conftest.err conftest.$ac_objext \
13848       conftest$ac_exeext conftest.$ac_ext
13849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13850
13851          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13852           # Warning - without using the other run time loading flags,
13853           # -berok will link without error, but may produce a broken library.
13854           no_undefined_flag_F77=' ${wl}-bernotok'
13855           allow_undefined_flag_F77=' ${wl}-berok'
13856           # Exported symbols can be pulled into shared objects from archives
13857           whole_archive_flag_spec_F77='$convenience'
13858           archive_cmds_need_lc_F77=yes
13859           # This is similar to how AIX traditionally builds its shared libraries.
13860           archive_expsym_cmds_F77="\$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'
13861         fi
13862       fi
13863       ;;
13864
13865     amigaos*)
13866       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13867       hardcode_libdir_flag_spec_F77='-L$libdir'
13868       hardcode_minus_L_F77=yes
13869       # see comment about different semantics on the GNU ld section
13870       ld_shlibs_F77=no
13871       ;;
13872
13873     bsdi[45]*)
13874       export_dynamic_flag_spec_F77=-rdynamic
13875       ;;
13876
13877     cygwin* | mingw* | pw32*)
13878       # When not using gcc, we currently assume that we are using
13879       # Microsoft Visual C++.
13880       # hardcode_libdir_flag_spec is actually meaningless, as there is
13881       # no search path for DLLs.
13882       hardcode_libdir_flag_spec_F77=' '
13883       allow_undefined_flag_F77=unsupported
13884       # Tell ltmain to make .lib files, not .a files.
13885       libext=lib
13886       # Tell ltmain to make .dll files, not .so files.
13887       shrext_cmds=".dll"
13888       # FIXME: Setting linknames here is a bad hack.
13889       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13890       # The linker will automatically build a .lib file if we build a DLL.
13891       old_archive_From_new_cmds_F77='true'
13892       # FIXME: Should let the user specify the lib program.
13893       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13894       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13895       enable_shared_with_static_runtimes_F77=yes
13896       ;;
13897
13898     darwin* | rhapsody*)
13899       case $host_os in
13900         rhapsody* | darwin1.[012])
13901          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13902          ;;
13903        *) # Darwin 1.3 on
13904          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13905            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13906          else
13907            case ${MACOSX_DEPLOYMENT_TARGET} in
13908              10.[012])
13909                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13910                ;;
13911              10.*)
13912                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13913                ;;
13914            esac
13915          fi
13916          ;;
13917       esac
13918       archive_cmds_need_lc_F77=no
13919       hardcode_direct_F77=no
13920       hardcode_automatic_F77=yes
13921       hardcode_shlibpath_var_F77=unsupported
13922       whole_archive_flag_spec_F77=''
13923       link_all_deplibs_F77=yes
13924     if test "$GCC" = yes ; then
13925         output_verbose_link_cmd='echo'
13926         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13927       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13928       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13929       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13930       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13931     else
13932       case $cc_basename in
13933         xlc*)
13934          output_verbose_link_cmd='echo'
13935          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13936          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13937           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13938          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13939           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13940           ;;
13941        *)
13942          ld_shlibs_F77=no
13943           ;;
13944       esac
13945     fi
13946       ;;
13947
13948     dgux*)
13949       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950       hardcode_libdir_flag_spec_F77='-L$libdir'
13951       hardcode_shlibpath_var_F77=no
13952       ;;
13953
13954     freebsd1*)
13955       ld_shlibs_F77=no
13956       ;;
13957
13958     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13959     # support.  Future versions do this automatically, but an explicit c++rt0.o
13960     # does not break anything, and helps significantly (at the cost of a little
13961     # extra space).
13962     freebsd2.2*)
13963       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13964       hardcode_libdir_flag_spec_F77='-R$libdir'
13965       hardcode_direct_F77=yes
13966       hardcode_shlibpath_var_F77=no
13967       ;;
13968
13969     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13970     freebsd2*)
13971       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13972       hardcode_direct_F77=yes
13973       hardcode_minus_L_F77=yes
13974       hardcode_shlibpath_var_F77=no
13975       ;;
13976
13977     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13978     freebsd* | dragonfly*)
13979       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13980       hardcode_libdir_flag_spec_F77='-R$libdir'
13981       hardcode_direct_F77=yes
13982       hardcode_shlibpath_var_F77=no
13983       ;;
13984
13985     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13986     kfreebsd*-gnu)
13987       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13988       hardcode_libdir_flag_spec_F77='-R$libdir'
13989       hardcode_direct_F77=yes
13990       hardcode_shlibpath_var_F77=no
13991       link_all_deplibs_F77=no
13992       ;;
13993
13994     hpux9*)
13995       if test "$GCC" = yes; then
13996         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13997       else
13998         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13999       fi
14000       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14001       hardcode_libdir_separator_F77=:
14002       hardcode_direct_F77=yes
14003
14004       # hardcode_minus_L: Not really in the search PATH,
14005       # but as the default location of the library.
14006       hardcode_minus_L_F77=yes
14007       export_dynamic_flag_spec_F77='${wl}-E'
14008       ;;
14009
14010     hpux10*)
14011       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14012         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14013       else
14014         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14015       fi
14016       if test "$with_gnu_ld" = no; then
14017         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14018         hardcode_libdir_separator_F77=:
14019
14020         hardcode_direct_F77=yes
14021         export_dynamic_flag_spec_F77='${wl}-E'
14022
14023         # hardcode_minus_L: Not really in the search PATH,
14024         # but as the default location of the library.
14025         hardcode_minus_L_F77=yes
14026       fi
14027       ;;
14028
14029     hpux11*)
14030       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14031         case $host_cpu in
14032         hppa*64*)
14033           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14034           ;;
14035         ia64*)
14036           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14037           ;;
14038         *)
14039           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14040           ;;
14041         esac
14042       else
14043         case $host_cpu in
14044         hppa*64*)
14045           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14046           ;;
14047         ia64*)
14048           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14049           ;;
14050         *)
14051           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14052           ;;
14053         esac
14054       fi
14055       if test "$with_gnu_ld" = no; then
14056         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14057         hardcode_libdir_separator_F77=:
14058
14059         case $host_cpu in
14060         hppa*64*|ia64*)
14061           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14062           hardcode_direct_F77=no
14063           hardcode_shlibpath_var_F77=no
14064           ;;
14065         *)
14066           hardcode_direct_F77=yes
14067           export_dynamic_flag_spec_F77='${wl}-E'
14068
14069           # hardcode_minus_L: Not really in the search PATH,
14070           # but as the default location of the library.
14071           hardcode_minus_L_F77=yes
14072           ;;
14073         esac
14074       fi
14075       ;;
14076
14077     irix5* | irix6* | nonstopux*)
14078       if test "$GCC" = yes; then
14079         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14080       else
14081         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14082         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14083       fi
14084       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14085       hardcode_libdir_separator_F77=:
14086       link_all_deplibs_F77=yes
14087       ;;
14088
14089     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14090       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14091         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14092       else
14093         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14094       fi
14095       hardcode_libdir_flag_spec_F77='-R$libdir'
14096       hardcode_direct_F77=yes
14097       hardcode_shlibpath_var_F77=no
14098       ;;
14099
14100     newsos6)
14101       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14102       hardcode_direct_F77=yes
14103       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14104       hardcode_libdir_separator_F77=:
14105       hardcode_shlibpath_var_F77=no
14106       ;;
14107
14108     openbsd*)
14109       hardcode_direct_F77=yes
14110       hardcode_shlibpath_var_F77=no
14111       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14112         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14113         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14114         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14115         export_dynamic_flag_spec_F77='${wl}-E'
14116       else
14117        case $host_os in
14118          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14119            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14120            hardcode_libdir_flag_spec_F77='-R$libdir'
14121            ;;
14122          *)
14123            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14124            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14125            ;;
14126        esac
14127       fi
14128       ;;
14129
14130     os2*)
14131       hardcode_libdir_flag_spec_F77='-L$libdir'
14132       hardcode_minus_L_F77=yes
14133       allow_undefined_flag_F77=unsupported
14134       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14135       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14136       ;;
14137
14138     osf3*)
14139       if test "$GCC" = yes; then
14140         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14141         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14142       else
14143         allow_undefined_flag_F77=' -expect_unresolved \*'
14144         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14145       fi
14146       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14147       hardcode_libdir_separator_F77=:
14148       ;;
14149
14150     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14151       if test "$GCC" = yes; then
14152         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14153         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14154         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14155       else
14156         allow_undefined_flag_F77=' -expect_unresolved \*'
14157         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14158         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14159         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14160
14161         # Both c and cxx compiler support -rpath directly
14162         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14163       fi
14164       hardcode_libdir_separator_F77=:
14165       ;;
14166
14167     solaris*)
14168       no_undefined_flag_F77=' -z text'
14169       if test "$GCC" = yes; then
14170         wlarc='${wl}'
14171         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14172         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14173           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14174       else
14175         wlarc=''
14176         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14177         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14178         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14179       fi
14180       hardcode_libdir_flag_spec_F77='-R$libdir'
14181       hardcode_shlibpath_var_F77=no
14182       case $host_os in
14183       solaris2.[0-5] | solaris2.[0-5].*) ;;
14184       *)
14185         # The compiler driver will combine linker options so we
14186         # cannot just pass the convience library names through
14187         # without $wl, iff we do not link with $LD.
14188         # Luckily, gcc supports the same syntax we need for Sun Studio.
14189         # Supported since Solaris 2.6 (maybe 2.5.1?)
14190         case $wlarc in
14191         '')
14192           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14193         *)
14194           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14195         esac ;;
14196       esac
14197       link_all_deplibs_F77=yes
14198       ;;
14199
14200     sunos4*)
14201       if test "x$host_vendor" = xsequent; then
14202         # Use $CC to link under sequent, because it throws in some extra .o
14203         # files that make .init and .fini sections work.
14204         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14205       else
14206         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14207       fi
14208       hardcode_libdir_flag_spec_F77='-L$libdir'
14209       hardcode_direct_F77=yes
14210       hardcode_minus_L_F77=yes
14211       hardcode_shlibpath_var_F77=no
14212       ;;
14213
14214     sysv4)
14215       case $host_vendor in
14216         sni)
14217           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218           hardcode_direct_F77=yes # is this really true???
14219         ;;
14220         siemens)
14221           ## LD is ld it makes a PLAMLIB
14222           ## CC just makes a GrossModule.
14223           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14224           reload_cmds_F77='$CC -r -o $output$reload_objs'
14225           hardcode_direct_F77=no
14226         ;;
14227         motorola)
14228           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14229           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14230         ;;
14231       esac
14232       runpath_var='LD_RUN_PATH'
14233       hardcode_shlibpath_var_F77=no
14234       ;;
14235
14236     sysv4.3*)
14237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238       hardcode_shlibpath_var_F77=no
14239       export_dynamic_flag_spec_F77='-Bexport'
14240       ;;
14241
14242     sysv4*MP*)
14243       if test -d /usr/nec; then
14244         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245         hardcode_shlibpath_var_F77=no
14246         runpath_var=LD_RUN_PATH
14247         hardcode_runpath_var=yes
14248         ld_shlibs_F77=yes
14249       fi
14250       ;;
14251
14252     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14253       no_undefined_flag_F77='${wl}-z,text'
14254       archive_cmds_need_lc_F77=no
14255       hardcode_shlibpath_var_F77=no
14256       runpath_var='LD_RUN_PATH'
14257
14258       if test "$GCC" = yes; then
14259         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14260         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14261       else
14262         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14263         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14264       fi
14265       ;;
14266
14267     sysv5* | sco3.2v5* | sco5v6*)
14268       # Note: We can NOT use -z defs as we might desire, because we do not
14269       # link with -lc, and that would cause any symbols used from libc to
14270       # always be unresolved, which means just about no library would
14271       # ever link correctly.  If we're not using GNU ld we use -z text
14272       # though, which does catch some bad symbols but isn't as heavy-handed
14273       # as -z defs.
14274       no_undefined_flag_F77='${wl}-z,text'
14275       allow_undefined_flag_F77='${wl}-z,nodefs'
14276       archive_cmds_need_lc_F77=no
14277       hardcode_shlibpath_var_F77=no
14278       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14279       hardcode_libdir_separator_F77=':'
14280       link_all_deplibs_F77=yes
14281       export_dynamic_flag_spec_F77='${wl}-Bexport'
14282       runpath_var='LD_RUN_PATH'
14283
14284       if test "$GCC" = yes; then
14285         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14286         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14287       else
14288         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14289         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14290       fi
14291       ;;
14292
14293     uts4*)
14294       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295       hardcode_libdir_flag_spec_F77='-L$libdir'
14296       hardcode_shlibpath_var_F77=no
14297       ;;
14298
14299     *)
14300       ld_shlibs_F77=no
14301       ;;
14302     esac
14303   fi
14304
14305 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14306 echo "${ECHO_T}$ld_shlibs_F77" >&6
14307 test "$ld_shlibs_F77" = no && can_build_shared=no
14308
14309 #
14310 # Do we need to explicitly link libc?
14311 #
14312 case "x$archive_cmds_need_lc_F77" in
14313 x|xyes)
14314   # Assume -lc should be added
14315   archive_cmds_need_lc_F77=yes
14316
14317   if test "$enable_shared" = yes && test "$GCC" = yes; then
14318     case $archive_cmds_F77 in
14319     *'~'*)
14320       # FIXME: we may have to deal with multi-command sequences.
14321       ;;
14322     '$CC '*)
14323       # Test whether the compiler implicitly links with -lc since on some
14324       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14325       # to ld, don't add -lc before -lgcc.
14326       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14328       $rm conftest*
14329       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14330
14331       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332   (eval $ac_compile) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } 2>conftest.err; then
14336         soname=conftest
14337         lib=conftest
14338         libobjs=conftest.$ac_objext
14339         deplibs=
14340         wl=$lt_prog_compiler_wl_F77
14341         pic_flag=$lt_prog_compiler_pic_F77
14342         compiler_flags=-v
14343         linker_flags=-v
14344         verstring=
14345         output_objdir=.
14346         libname=conftest
14347         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14348         allow_undefined_flag_F77=
14349         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14350   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }
14354         then
14355           archive_cmds_need_lc_F77=no
14356         else
14357           archive_cmds_need_lc_F77=yes
14358         fi
14359         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14360       else
14361         cat conftest.err 1>&5
14362       fi
14363       $rm conftest*
14364       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14365 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14366       ;;
14367     esac
14368   fi
14369   ;;
14370 esac
14371
14372 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14374 library_names_spec=
14375 libname_spec='lib$name'
14376 soname_spec=
14377 shrext_cmds=".so"
14378 postinstall_cmds=
14379 postuninstall_cmds=
14380 finish_cmds=
14381 finish_eval=
14382 shlibpath_var=
14383 shlibpath_overrides_runpath=unknown
14384 version_type=none
14385 dynamic_linker="$host_os ld.so"
14386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14387 if test "$GCC" = yes; then
14388   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14389   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14390     # if the path contains ";" then we assume it to be the separator
14391     # otherwise default to the standard path separator (i.e. ":") - it is
14392     # assumed that no part of a normal pathname contains ";" but that should
14393     # okay in the real world where ";" in dirpaths is itself problematic.
14394     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14395   else
14396     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14397   fi
14398 else
14399   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14400 fi
14401 need_lib_prefix=unknown
14402 hardcode_into_libs=no
14403
14404 # when you set need_version to no, make sure it does not cause -set_version
14405 # flags to be left without arguments
14406 need_version=unknown
14407
14408 case $host_os in
14409 aix3*)
14410   version_type=linux
14411   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14412   shlibpath_var=LIBPATH
14413
14414   # AIX 3 has no versioning support, so we append a major version to the name.
14415   soname_spec='${libname}${release}${shared_ext}$major'
14416   ;;
14417
14418 aix4* | aix5*)
14419   version_type=linux
14420   need_lib_prefix=no
14421   need_version=no
14422   hardcode_into_libs=yes
14423   if test "$host_cpu" = ia64; then
14424     # AIX 5 supports IA64
14425     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14426     shlibpath_var=LD_LIBRARY_PATH
14427   else
14428     # With GCC up to 2.95.x, collect2 would create an import file
14429     # for dependence libraries.  The import file would start with
14430     # the line `#! .'.  This would cause the generated library to
14431     # depend on `.', always an invalid library.  This was fixed in
14432     # development snapshots of GCC prior to 3.0.
14433     case $host_os in
14434       aix4 | aix4.[01] | aix4.[01].*)
14435       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14436            echo ' yes '
14437            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14438         :
14439       else
14440         can_build_shared=no
14441       fi
14442       ;;
14443     esac
14444     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14445     # soname into executable. Probably we can add versioning support to
14446     # collect2, so additional links can be useful in future.
14447     if test "$aix_use_runtimelinking" = yes; then
14448       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14449       # instead of lib<name>.a to let people know that these are not
14450       # typical AIX shared libraries.
14451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14452     else
14453       # We preserve .a as extension for shared libraries through AIX4.2
14454       # and later when we are not doing run time linking.
14455       library_names_spec='${libname}${release}.a $libname.a'
14456       soname_spec='${libname}${release}${shared_ext}$major'
14457     fi
14458     shlibpath_var=LIBPATH
14459   fi
14460   ;;
14461
14462 amigaos*)
14463   library_names_spec='$libname.ixlibrary $libname.a'
14464   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14465   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'
14466   ;;
14467
14468 beos*)
14469   library_names_spec='${libname}${shared_ext}'
14470   dynamic_linker="$host_os ld.so"
14471   shlibpath_var=LIBRARY_PATH
14472   ;;
14473
14474 bsdi[45]*)
14475   version_type=linux
14476   need_version=no
14477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14480   shlibpath_var=LD_LIBRARY_PATH
14481   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14482   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14483   # the default ld.so.conf also contains /usr/contrib/lib and
14484   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14485   # libtool to hard-code these into programs
14486   ;;
14487
14488 cygwin* | mingw* | pw32*)
14489   version_type=windows
14490   shrext_cmds=".dll"
14491   need_version=no
14492   need_lib_prefix=no
14493
14494   case $GCC,$host_os in
14495   yes,cygwin* | yes,mingw* | yes,pw32*)
14496     library_names_spec='$libname.dll.a'
14497     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14498     postinstall_cmds='base_file=`basename \${file}`~
14499       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14500       dldir=$destdir/`dirname \$dlpath`~
14501       test -d \$dldir || mkdir -p \$dldir~
14502       $install_prog $dir/$dlname \$dldir/$dlname~
14503       chmod a+x \$dldir/$dlname'
14504     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14505       dlpath=$dir/\$dldll~
14506        $rm \$dlpath'
14507     shlibpath_overrides_runpath=yes
14508
14509     case $host_os in
14510     cygwin*)
14511       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14512       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14513       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14514       ;;
14515     mingw*)
14516       # MinGW DLLs use traditional 'lib' prefix
14517       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14518       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14519       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14520         # It is most probably a Windows format PATH printed by
14521         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14522         # path with ; separators, and with drive letters. We can handle the
14523         # drive letters (cygwin fileutils understands them), so leave them,
14524         # especially as we might pass files found there to a mingw objdump,
14525         # which wouldn't understand a cygwinified path. Ahh.
14526         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14527       else
14528         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14529       fi
14530       ;;
14531     pw32*)
14532       # pw32 DLLs use 'pw' prefix rather than 'lib'
14533       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14534       ;;
14535     esac
14536     ;;
14537
14538   *)
14539     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14540     ;;
14541   esac
14542   dynamic_linker='Win32 ld.exe'
14543   # FIXME: first we should search . and the directory the executable is in
14544   shlibpath_var=PATH
14545   ;;
14546
14547 darwin* | rhapsody*)
14548   dynamic_linker="$host_os dyld"
14549   version_type=darwin
14550   need_lib_prefix=no
14551   need_version=no
14552   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14553   soname_spec='${libname}${release}${major}$shared_ext'
14554   shlibpath_overrides_runpath=yes
14555   shlibpath_var=DYLD_LIBRARY_PATH
14556   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14557   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14558   if test "$GCC" = yes; then
14559     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14560   else
14561     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14562   fi
14563   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14564   ;;
14565
14566 dgux*)
14567   version_type=linux
14568   need_lib_prefix=no
14569   need_version=no
14570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14571   soname_spec='${libname}${release}${shared_ext}$major'
14572   shlibpath_var=LD_LIBRARY_PATH
14573   ;;
14574
14575 freebsd1*)
14576   dynamic_linker=no
14577   ;;
14578
14579 kfreebsd*-gnu)
14580   version_type=linux
14581   need_lib_prefix=no
14582   need_version=no
14583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   shlibpath_var=LD_LIBRARY_PATH
14586   shlibpath_overrides_runpath=no
14587   hardcode_into_libs=yes
14588   dynamic_linker='GNU ld.so'
14589   ;;
14590
14591 freebsd* | dragonfly*)
14592   # DragonFly does not have aout.  When/if they implement a new
14593   # versioning mechanism, adjust this.
14594   if test -x /usr/bin/objformat; then
14595     objformat=`/usr/bin/objformat`
14596   else
14597     case $host_os in
14598     freebsd[123]*) objformat=aout ;;
14599     *) objformat=elf ;;
14600     esac
14601   fi
14602   version_type=freebsd-$objformat
14603   case $version_type in
14604     freebsd-elf*)
14605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14606       need_version=no
14607       need_lib_prefix=no
14608       ;;
14609     freebsd-*)
14610       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14611       need_version=yes
14612       ;;
14613   esac
14614   shlibpath_var=LD_LIBRARY_PATH
14615   case $host_os in
14616   freebsd2*)
14617     shlibpath_overrides_runpath=yes
14618     ;;
14619   freebsd3.[01]* | freebsdelf3.[01]*)
14620     shlibpath_overrides_runpath=yes
14621     hardcode_into_libs=yes
14622     ;;
14623   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14624   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14625     shlibpath_overrides_runpath=no
14626     hardcode_into_libs=yes
14627     ;;
14628   freebsd*) # from 4.6 on
14629     shlibpath_overrides_runpath=yes
14630     hardcode_into_libs=yes
14631     ;;
14632   esac
14633   ;;
14634
14635 gnu*)
14636   version_type=linux
14637   need_lib_prefix=no
14638   need_version=no
14639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14640   soname_spec='${libname}${release}${shared_ext}$major'
14641   shlibpath_var=LD_LIBRARY_PATH
14642   hardcode_into_libs=yes
14643   ;;
14644
14645 hpux9* | hpux10* | hpux11*)
14646   # Give a soname corresponding to the major version so that dld.sl refuses to
14647   # link against other versions.
14648   version_type=sunos
14649   need_lib_prefix=no
14650   need_version=no
14651   case $host_cpu in
14652   ia64*)
14653     shrext_cmds='.so'
14654     hardcode_into_libs=yes
14655     dynamic_linker="$host_os dld.so"
14656     shlibpath_var=LD_LIBRARY_PATH
14657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659     soname_spec='${libname}${release}${shared_ext}$major'
14660     if test "X$HPUX_IA64_MODE" = X32; then
14661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14662     else
14663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14664     fi
14665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14666     ;;
14667    hppa*64*)
14668      shrext_cmds='.sl'
14669      hardcode_into_libs=yes
14670      dynamic_linker="$host_os dld.sl"
14671      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14672      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674      soname_spec='${libname}${release}${shared_ext}$major'
14675      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14676      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14677      ;;
14678    *)
14679     shrext_cmds='.sl'
14680     dynamic_linker="$host_os dld.sl"
14681     shlibpath_var=SHLIB_PATH
14682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684     soname_spec='${libname}${release}${shared_ext}$major'
14685     ;;
14686   esac
14687   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14688   postinstall_cmds='chmod 555 $lib'
14689   ;;
14690
14691 interix3*)
14692   version_type=linux
14693   need_lib_prefix=no
14694   need_version=no
14695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14696   soname_spec='${libname}${release}${shared_ext}$major'
14697   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   shlibpath_overrides_runpath=no
14700   hardcode_into_libs=yes
14701   ;;
14702
14703 irix5* | irix6* | nonstopux*)
14704   case $host_os in
14705     nonstopux*) version_type=nonstopux ;;
14706     *)
14707         if test "$lt_cv_prog_gnu_ld" = yes; then
14708                 version_type=linux
14709         else
14710                 version_type=irix
14711         fi ;;
14712   esac
14713   need_lib_prefix=no
14714   need_version=no
14715   soname_spec='${libname}${release}${shared_ext}$major'
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14717   case $host_os in
14718   irix5* | nonstopux*)
14719     libsuff= shlibsuff=
14720     ;;
14721   *)
14722     case $LD in # libtool.m4 will add one of these switches to LD
14723     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14724       libsuff= shlibsuff= libmagic=32-bit;;
14725     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14726       libsuff=32 shlibsuff=N32 libmagic=N32;;
14727     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14728       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14729     *) libsuff= shlibsuff= libmagic=never-match;;
14730     esac
14731     ;;
14732   esac
14733   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14734   shlibpath_overrides_runpath=no
14735   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14736   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14737   hardcode_into_libs=yes
14738   ;;
14739
14740 # No shared lib support for Linux oldld, aout, or coff.
14741 linux*oldld* | linux*aout* | linux*coff*)
14742   dynamic_linker=no
14743   ;;
14744
14745 # This must be Linux ELF.
14746 linux*)
14747   version_type=linux
14748   need_lib_prefix=no
14749   need_version=no
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751   soname_spec='${libname}${release}${shared_ext}$major'
14752   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14753   shlibpath_var=LD_LIBRARY_PATH
14754   shlibpath_overrides_runpath=no
14755   # This implies no fast_install, which is unacceptable.
14756   # Some rework will be needed to allow for fast_install
14757   # before this can be enabled.
14758   hardcode_into_libs=yes
14759
14760   # Append ld.so.conf contents to the search path
14761   if test -f /etc/ld.so.conf; then
14762     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14763     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14764   fi
14765
14766   # We used to test for /lib/ld.so.1 and disable shared libraries on
14767   # powerpc, because MkLinux only supported shared libraries with the
14768   # GNU dynamic linker.  Since this was broken with cross compilers,
14769   # most powerpc-linux boxes support dynamic linking these days and
14770   # people can always --disable-shared, the test was removed, and we
14771   # assume the GNU/Linux dynamic linker is in use.
14772   dynamic_linker='GNU/Linux ld.so'
14773   ;;
14774
14775 netbsdelf*-gnu)
14776   version_type=linux
14777   need_lib_prefix=no
14778   need_version=no
14779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   shlibpath_var=LD_LIBRARY_PATH
14782   shlibpath_overrides_runpath=no
14783   hardcode_into_libs=yes
14784   dynamic_linker='NetBSD ld.elf_so'
14785   ;;
14786
14787 knetbsd*-gnu)
14788   version_type=linux
14789   need_lib_prefix=no
14790   need_version=no
14791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14792   soname_spec='${libname}${release}${shared_ext}$major'
14793   shlibpath_var=LD_LIBRARY_PATH
14794   shlibpath_overrides_runpath=no
14795   hardcode_into_libs=yes
14796   dynamic_linker='GNU ld.so'
14797   ;;
14798
14799 netbsd*)
14800   version_type=sunos
14801   need_lib_prefix=no
14802   need_version=no
14803   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14805     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14806     dynamic_linker='NetBSD (a.out) ld.so'
14807   else
14808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14809     soname_spec='${libname}${release}${shared_ext}$major'
14810     dynamic_linker='NetBSD ld.elf_so'
14811   fi
14812   shlibpath_var=LD_LIBRARY_PATH
14813   shlibpath_overrides_runpath=yes
14814   hardcode_into_libs=yes
14815   ;;
14816
14817 newsos6)
14818   version_type=linux
14819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   shlibpath_overrides_runpath=yes
14822   ;;
14823
14824 nto-qnx*)
14825   version_type=linux
14826   need_lib_prefix=no
14827   need_version=no
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829   soname_spec='${libname}${release}${shared_ext}$major'
14830   shlibpath_var=LD_LIBRARY_PATH
14831   shlibpath_overrides_runpath=yes
14832   ;;
14833
14834 openbsd*)
14835   version_type=sunos
14836   sys_lib_dlsearch_path_spec="/usr/lib"
14837   need_lib_prefix=no
14838   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14839   case $host_os in
14840     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14841     *)                         need_version=no  ;;
14842   esac
14843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14845   shlibpath_var=LD_LIBRARY_PATH
14846   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14847     case $host_os in
14848       openbsd2.[89] | openbsd2.[89].*)
14849         shlibpath_overrides_runpath=no
14850         ;;
14851       *)
14852         shlibpath_overrides_runpath=yes
14853         ;;
14854       esac
14855   else
14856     shlibpath_overrides_runpath=yes
14857   fi
14858   ;;
14859
14860 os2*)
14861   libname_spec='$name'
14862   shrext_cmds=".dll"
14863   need_lib_prefix=no
14864   library_names_spec='$libname${shared_ext} $libname.a'
14865   dynamic_linker='OS/2 ld.exe'
14866   shlibpath_var=LIBPATH
14867   ;;
14868
14869 osf3* | osf4* | osf5*)
14870   version_type=osf
14871   need_lib_prefix=no
14872   need_version=no
14873   soname_spec='${libname}${release}${shared_ext}$major'
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14877   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14878   ;;
14879
14880 solaris*)
14881   version_type=linux
14882   need_lib_prefix=no
14883   need_version=no
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885   soname_spec='${libname}${release}${shared_ext}$major'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   shlibpath_overrides_runpath=yes
14888   hardcode_into_libs=yes
14889   # ldd complains unless libraries are executable
14890   postinstall_cmds='chmod +x $lib'
14891   ;;
14892
14893 sunos4*)
14894   version_type=sunos
14895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   shlibpath_overrides_runpath=yes
14899   if test "$with_gnu_ld" = yes; then
14900     need_lib_prefix=no
14901   fi
14902   need_version=yes
14903   ;;
14904
14905 sysv4 | sysv4.3*)
14906   version_type=linux
14907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908   soname_spec='${libname}${release}${shared_ext}$major'
14909   shlibpath_var=LD_LIBRARY_PATH
14910   case $host_vendor in
14911     sni)
14912       shlibpath_overrides_runpath=no
14913       need_lib_prefix=no
14914       export_dynamic_flag_spec='${wl}-Blargedynsym'
14915       runpath_var=LD_RUN_PATH
14916       ;;
14917     siemens)
14918       need_lib_prefix=no
14919       ;;
14920     motorola)
14921       need_lib_prefix=no
14922       need_version=no
14923       shlibpath_overrides_runpath=no
14924       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14925       ;;
14926   esac
14927   ;;
14928
14929 sysv4*MP*)
14930   if test -d /usr/nec ;then
14931     version_type=linux
14932     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14933     soname_spec='$libname${shared_ext}.$major'
14934     shlibpath_var=LD_LIBRARY_PATH
14935   fi
14936   ;;
14937
14938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14939   version_type=freebsd-elf
14940   need_lib_prefix=no
14941   need_version=no
14942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14943   soname_spec='${libname}${release}${shared_ext}$major'
14944   shlibpath_var=LD_LIBRARY_PATH
14945   hardcode_into_libs=yes
14946   if test "$with_gnu_ld" = yes; then
14947     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14948     shlibpath_overrides_runpath=no
14949   else
14950     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14951     shlibpath_overrides_runpath=yes
14952     case $host_os in
14953       sco3.2v5*)
14954         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14955         ;;
14956     esac
14957   fi
14958   sys_lib_dlsearch_path_spec='/usr/lib'
14959   ;;
14960
14961 uts4*)
14962   version_type=linux
14963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964   soname_spec='${libname}${release}${shared_ext}$major'
14965   shlibpath_var=LD_LIBRARY_PATH
14966   ;;
14967
14968 *)
14969   dynamic_linker=no
14970   ;;
14971 esac
14972 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14973 echo "${ECHO_T}$dynamic_linker" >&6
14974 test "$dynamic_linker" = no && can_build_shared=no
14975
14976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14977 if test "$GCC" = yes; then
14978   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14979 fi
14980
14981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14983 hardcode_action_F77=
14984 if test -n "$hardcode_libdir_flag_spec_F77" || \
14985    test -n "$runpath_var_F77" || \
14986    test "X$hardcode_automatic_F77" = "Xyes" ; then
14987
14988   # We can hardcode non-existant directories.
14989   if test "$hardcode_direct_F77" != no &&
14990      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14991      # have to relink, otherwise we might link with an installed library
14992      # when we should be linking with a yet-to-be-installed one
14993      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14994      test "$hardcode_minus_L_F77" != no; then
14995     # Linking always hardcodes the temporary library directory.
14996     hardcode_action_F77=relink
14997   else
14998     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14999     hardcode_action_F77=immediate
15000   fi
15001 else
15002   # We cannot hardcode anything, or else we can only hardcode existing
15003   # directories.
15004   hardcode_action_F77=unsupported
15005 fi
15006 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15007 echo "${ECHO_T}$hardcode_action_F77" >&6
15008
15009 if test "$hardcode_action_F77" = relink; then
15010   # Fast installation is not supported
15011   enable_fast_install=no
15012 elif test "$shlibpath_overrides_runpath" = yes ||
15013      test "$enable_shared" = no; then
15014   # Fast installation is not necessary
15015   enable_fast_install=needless
15016 fi
15017
15018
15019 # The else clause should only fire when bootstrapping the
15020 # libtool distribution, otherwise you forgot to ship ltmain.sh
15021 # with your package, and you will get complaints that there are
15022 # no rules to generate ltmain.sh.
15023 if test -f "$ltmain"; then
15024   # See if we are running on zsh, and set the options which allow our commands through
15025   # without removal of \ escapes.
15026   if test -n "${ZSH_VERSION+set}" ; then
15027     setopt NO_GLOB_SUBST
15028   fi
15029   # Now quote all the things that may contain metacharacters while being
15030   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15031   # variables and quote the copies for generation of the libtool script.
15032   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15033     SED SHELL STRIP \
15034     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15035     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15036     deplibs_check_method reload_flag reload_cmds need_locks \
15037     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15038     lt_cv_sys_global_symbol_to_c_name_address \
15039     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15040     old_postinstall_cmds old_postuninstall_cmds \
15041     compiler_F77 \
15042     CC_F77 \
15043     LD_F77 \
15044     lt_prog_compiler_wl_F77 \
15045     lt_prog_compiler_pic_F77 \
15046     lt_prog_compiler_static_F77 \
15047     lt_prog_compiler_no_builtin_flag_F77 \
15048     export_dynamic_flag_spec_F77 \
15049     thread_safe_flag_spec_F77 \
15050     whole_archive_flag_spec_F77 \
15051     enable_shared_with_static_runtimes_F77 \
15052     old_archive_cmds_F77 \
15053     old_archive_from_new_cmds_F77 \
15054     predep_objects_F77 \
15055     postdep_objects_F77 \
15056     predeps_F77 \
15057     postdeps_F77 \
15058     compiler_lib_search_path_F77 \
15059     archive_cmds_F77 \
15060     archive_expsym_cmds_F77 \
15061     postinstall_cmds_F77 \
15062     postuninstall_cmds_F77 \
15063     old_archive_from_expsyms_cmds_F77 \
15064     allow_undefined_flag_F77 \
15065     no_undefined_flag_F77 \
15066     export_symbols_cmds_F77 \
15067     hardcode_libdir_flag_spec_F77 \
15068     hardcode_libdir_flag_spec_ld_F77 \
15069     hardcode_libdir_separator_F77 \
15070     hardcode_automatic_F77 \
15071     module_cmds_F77 \
15072     module_expsym_cmds_F77 \
15073     lt_cv_prog_compiler_c_o_F77 \
15074     exclude_expsyms_F77 \
15075     include_expsyms_F77; do
15076
15077     case $var in
15078     old_archive_cmds_F77 | \
15079     old_archive_from_new_cmds_F77 | \
15080     archive_cmds_F77 | \
15081     archive_expsym_cmds_F77 | \
15082     module_cmds_F77 | \
15083     module_expsym_cmds_F77 | \
15084     old_archive_from_expsyms_cmds_F77 | \
15085     export_symbols_cmds_F77 | \
15086     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15087     postinstall_cmds | postuninstall_cmds | \
15088     old_postinstall_cmds | old_postuninstall_cmds | \
15089     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15090       # Double-quote double-evaled strings.
15091       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15092       ;;
15093     *)
15094       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15095       ;;
15096     esac
15097   done
15098
15099   case $lt_echo in
15100   *'\$0 --fallback-echo"')
15101     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15102     ;;
15103   esac
15104
15105 cfgfile="$ofile"
15106
15107   cat <<__EOF__ >> "$cfgfile"
15108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15109
15110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15111
15112 # Shell to use when invoking shell scripts.
15113 SHELL=$lt_SHELL
15114
15115 # Whether or not to build shared libraries.
15116 build_libtool_libs=$enable_shared
15117
15118 # Whether or not to build static libraries.
15119 build_old_libs=$enable_static
15120
15121 # Whether or not to add -lc for building shared libraries.
15122 build_libtool_need_lc=$archive_cmds_need_lc_F77
15123
15124 # Whether or not to disallow shared libs when runtime libs are static
15125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15126
15127 # Whether or not to optimize for fast installation.
15128 fast_install=$enable_fast_install
15129
15130 # The host system.
15131 host_alias=$host_alias
15132 host=$host
15133 host_os=$host_os
15134
15135 # The build system.
15136 build_alias=$build_alias
15137 build=$build
15138 build_os=$build_os
15139
15140 # An echo program that does not interpret backslashes.
15141 echo=$lt_echo
15142
15143 # The archiver.
15144 AR=$lt_AR
15145 AR_FLAGS=$lt_AR_FLAGS
15146
15147 # A C compiler.
15148 LTCC=$lt_LTCC
15149
15150 # LTCC compiler flags.
15151 LTCFLAGS=$lt_LTCFLAGS
15152
15153 # A language-specific compiler.
15154 CC=$lt_compiler_F77
15155
15156 # Is the compiler the GNU C compiler?
15157 with_gcc=$GCC_F77
15158
15159 # An ERE matcher.
15160 EGREP=$lt_EGREP
15161
15162 # The linker used to build libraries.
15163 LD=$lt_LD_F77
15164
15165 # Whether we need hard or soft links.
15166 LN_S=$lt_LN_S
15167
15168 # A BSD-compatible nm program.
15169 NM=$lt_NM
15170
15171 # A symbol stripping program
15172 STRIP=$lt_STRIP
15173
15174 # Used to examine libraries when file_magic_cmd begins "file"
15175 MAGIC_CMD=$MAGIC_CMD
15176
15177 # Used on cygwin: DLL creation program.
15178 DLLTOOL="$DLLTOOL"
15179
15180 # Used on cygwin: object dumper.
15181 OBJDUMP="$OBJDUMP"
15182
15183 # Used on cygwin: assembler.
15184 AS="$AS"
15185
15186 # The name of the directory that contains temporary libtool files.
15187 objdir=$objdir
15188
15189 # How to create reloadable object files.
15190 reload_flag=$lt_reload_flag
15191 reload_cmds=$lt_reload_cmds
15192
15193 # How to pass a linker flag through the compiler.
15194 wl=$lt_lt_prog_compiler_wl_F77
15195
15196 # Object file suffix (normally "o").
15197 objext="$ac_objext"
15198
15199 # Old archive suffix (normally "a").
15200 libext="$libext"
15201
15202 # Shared library suffix (normally ".so").
15203 shrext_cmds='$shrext_cmds'
15204
15205 # Executable file suffix (normally "").
15206 exeext="$exeext"
15207
15208 # Additional compiler flags for building library objects.
15209 pic_flag=$lt_lt_prog_compiler_pic_F77
15210 pic_mode=$pic_mode
15211
15212 # What is the maximum length of a command?
15213 max_cmd_len=$lt_cv_sys_max_cmd_len
15214
15215 # Does compiler simultaneously support -c and -o options?
15216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15217
15218 # Must we lock files when doing compilation?
15219 need_locks=$lt_need_locks
15220
15221 # Do we need the lib prefix for modules?
15222 need_lib_prefix=$need_lib_prefix
15223
15224 # Do we need a version for libraries?
15225 need_version=$need_version
15226
15227 # Whether dlopen is supported.
15228 dlopen_support=$enable_dlopen
15229
15230 # Whether dlopen of programs is supported.
15231 dlopen_self=$enable_dlopen_self
15232
15233 # Whether dlopen of statically linked programs is supported.
15234 dlopen_self_static=$enable_dlopen_self_static
15235
15236 # Compiler flag to prevent dynamic linking.
15237 link_static_flag=$lt_lt_prog_compiler_static_F77
15238
15239 # Compiler flag to turn off builtin functions.
15240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15241
15242 # Compiler flag to allow reflexive dlopens.
15243 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15244
15245 # Compiler flag to generate shared objects directly from archives.
15246 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15247
15248 # Compiler flag to generate thread-safe objects.
15249 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15250
15251 # Library versioning type.
15252 version_type=$version_type
15253
15254 # Format of library name prefix.
15255 libname_spec=$lt_libname_spec
15256
15257 # List of archive names.  First name is the real one, the rest are links.
15258 # The last name is the one that the linker finds with -lNAME.
15259 library_names_spec=$lt_library_names_spec
15260
15261 # The coded name of the library, if different from the real name.
15262 soname_spec=$lt_soname_spec
15263
15264 # Commands used to build and install an old-style archive.
15265 RANLIB=$lt_RANLIB
15266 old_archive_cmds=$lt_old_archive_cmds_F77
15267 old_postinstall_cmds=$lt_old_postinstall_cmds
15268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15269
15270 # Create an old-style archive from a shared archive.
15271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15272
15273 # Create a temporary old-style archive to link instead of a shared archive.
15274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15275
15276 # Commands used to build and install a shared archive.
15277 archive_cmds=$lt_archive_cmds_F77
15278 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15279 postinstall_cmds=$lt_postinstall_cmds
15280 postuninstall_cmds=$lt_postuninstall_cmds
15281
15282 # Commands used to build a loadable module (assumed same as above if empty)
15283 module_cmds=$lt_module_cmds_F77
15284 module_expsym_cmds=$lt_module_expsym_cmds_F77
15285
15286 # Commands to strip libraries.
15287 old_striplib=$lt_old_striplib
15288 striplib=$lt_striplib
15289
15290 # Dependencies to place before the objects being linked to create a
15291 # shared library.
15292 predep_objects=$lt_predep_objects_F77
15293
15294 # Dependencies to place after the objects being linked to create a
15295 # shared library.
15296 postdep_objects=$lt_postdep_objects_F77
15297
15298 # Dependencies to place before the objects being linked to create a
15299 # shared library.
15300 predeps=$lt_predeps_F77
15301
15302 # Dependencies to place after the objects being linked to create a
15303 # shared library.
15304 postdeps=$lt_postdeps_F77
15305
15306 # The library search path used internally by the compiler when linking
15307 # a shared library.
15308 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15309
15310 # Method to check whether dependent libraries are shared objects.
15311 deplibs_check_method=$lt_deplibs_check_method
15312
15313 # Command to use when deplibs_check_method == file_magic.
15314 file_magic_cmd=$lt_file_magic_cmd
15315
15316 # Flag that allows shared libraries with undefined symbols to be built.
15317 allow_undefined_flag=$lt_allow_undefined_flag_F77
15318
15319 # Flag that forces no undefined symbols.
15320 no_undefined_flag=$lt_no_undefined_flag_F77
15321
15322 # Commands used to finish a libtool library installation in a directory.
15323 finish_cmds=$lt_finish_cmds
15324
15325 # Same as above, but a single script fragment to be evaled but not shown.
15326 finish_eval=$lt_finish_eval
15327
15328 # Take the output of nm and produce a listing of raw symbols and C names.
15329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15330
15331 # Transform the output of nm in a proper C declaration
15332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15333
15334 # Transform the output of nm in a C name address pair
15335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15336
15337 # This is the shared library runtime path variable.
15338 runpath_var=$runpath_var
15339
15340 # This is the shared library path variable.
15341 shlibpath_var=$shlibpath_var
15342
15343 # Is shlibpath searched before the hard-coded library search path?
15344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15345
15346 # How to hardcode a shared library path into an executable.
15347 hardcode_action=$hardcode_action_F77
15348
15349 # Whether we should hardcode library paths into libraries.
15350 hardcode_into_libs=$hardcode_into_libs
15351
15352 # Flag to hardcode \$libdir into a binary during linking.
15353 # This must work even if \$libdir does not exist.
15354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15355
15356 # If ld is used when linking, flag to hardcode \$libdir into
15357 # a binary during linking. This must work even if \$libdir does
15358 # not exist.
15359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15360
15361 # Whether we need a single -rpath flag with a separated argument.
15362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15363
15364 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15365 # resulting binary.
15366 hardcode_direct=$hardcode_direct_F77
15367
15368 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15369 # resulting binary.
15370 hardcode_minus_L=$hardcode_minus_L_F77
15371
15372 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15373 # the resulting binary.
15374 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15375
15376 # Set to yes if building a shared library automatically hardcodes DIR into the library
15377 # and all subsequent libraries and executables linked against it.
15378 hardcode_automatic=$hardcode_automatic_F77
15379
15380 # Variables whose values should be saved in libtool wrapper scripts and
15381 # restored at relink time.
15382 variables_saved_for_relink="$variables_saved_for_relink"
15383
15384 # Whether libtool must link a program against all its dependency libraries.
15385 link_all_deplibs=$link_all_deplibs_F77
15386
15387 # Compile-time system search path for libraries
15388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15389
15390 # Run-time system search path for libraries
15391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15392
15393 # Fix the shell variable \$srcfile for the compiler.
15394 fix_srcfile_path="$fix_srcfile_path_F77"
15395
15396 # Set to yes if exported symbols are required.
15397 always_export_symbols=$always_export_symbols_F77
15398
15399 # The commands to list exported symbols.
15400 export_symbols_cmds=$lt_export_symbols_cmds_F77
15401
15402 # The commands to extract the exported symbol list from a shared archive.
15403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15404
15405 # Symbols that should not be listed in the preloaded symbols.
15406 exclude_expsyms=$lt_exclude_expsyms_F77
15407
15408 # Symbols that must always be exported.
15409 include_expsyms=$lt_include_expsyms_F77
15410
15411 # ### END LIBTOOL TAG CONFIG: $tagname
15412
15413 __EOF__
15414
15415
15416 else
15417   # If there is no Makefile yet, we rely on a make rule to execute
15418   # `config.status --recheck' to rerun these tests and create the
15419   # libtool script then.
15420   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15421   if test -f "$ltmain_in"; then
15422     test -f Makefile && make "$ltmain"
15423   fi
15424 fi
15425
15426
15427 ac_ext=c
15428 ac_cpp='$CPP $CPPFLAGS'
15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432
15433 CC="$lt_save_CC"
15434
15435         else
15436           tagname=""
15437         fi
15438         ;;
15439
15440       GCJ)
15441         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15442
15443
15444
15445 # Source file extension for Java test sources.
15446 ac_ext=java
15447
15448 # Object file extension for compiled Java test sources.
15449 objext=o
15450 objext_GCJ=$objext
15451
15452 # Code to be used in simple compile tests
15453 lt_simple_compile_test_code="class foo {}\n"
15454
15455 # Code to be used in simple link tests
15456 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15457
15458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15459
15460 # If no C compiler was specified, use CC.
15461 LTCC=${LTCC-"$CC"}
15462
15463 # If no C compiler flags were specified, use CFLAGS.
15464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15465
15466 # Allow CC to be a program name with arguments.
15467 compiler=$CC
15468
15469
15470 # save warnings/boilerplate of simple test code
15471 ac_outfile=conftest.$ac_objext
15472 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15474 _lt_compiler_boilerplate=`cat conftest.err`
15475 $rm conftest*
15476
15477 ac_outfile=conftest.$ac_objext
15478 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15480 _lt_linker_boilerplate=`cat conftest.err`
15481 $rm conftest*
15482
15483
15484 # Allow CC to be a program name with arguments.
15485 lt_save_CC="$CC"
15486 CC=${GCJ-"gcj"}
15487 compiler=$CC
15488 compiler_GCJ=$CC
15489 for cc_temp in $compiler""; do
15490   case $cc_temp in
15491     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15492     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15493     \-*) ;;
15494     *) break;;
15495   esac
15496 done
15497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15498
15499
15500 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15501 archive_cmds_need_lc_GCJ=no
15502
15503 old_archive_cmds_GCJ=$old_archive_cmds
15504
15505
15506 lt_prog_compiler_no_builtin_flag_GCJ=
15507
15508 if test "$GCC" = yes; then
15509   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15510
15511
15512 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15513 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   lt_cv_prog_compiler_rtti_exceptions=no
15518   ac_outfile=conftest.$ac_objext
15519    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15520    lt_compiler_flag="-fno-rtti -fno-exceptions"
15521    # Insert the option either (1) after the last *FLAGS variable, or
15522    # (2) before a word containing "conftest.", or (3) at the end.
15523    # Note that $ac_compile itself does not contain backslashes and begins
15524    # with a dollar sign (not a hyphen), so the echo should work correctly.
15525    # The option is referenced via a variable to avoid confusing sed.
15526    lt_compile=`echo "$ac_compile" | $SED \
15527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15529    -e 's:$: $lt_compiler_flag:'`
15530    (eval echo "\"\$as_me:15530: $lt_compile\"" >&5)
15531    (eval "$lt_compile" 2>conftest.err)
15532    ac_status=$?
15533    cat conftest.err >&5
15534    echo "$as_me:15534: \$? = $ac_status" >&5
15535    if (exit $ac_status) && test -s "$ac_outfile"; then
15536      # The compiler can only warn and ignore the option if not recognized
15537      # So say no if there are warnings other than the usual output.
15538      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15541        lt_cv_prog_compiler_rtti_exceptions=yes
15542      fi
15543    fi
15544    $rm conftest*
15545
15546 fi
15547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15548 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15549
15550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15551     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15552 else
15553     :
15554 fi
15555
15556 fi
15557
15558 lt_prog_compiler_wl_GCJ=
15559 lt_prog_compiler_pic_GCJ=
15560 lt_prog_compiler_static_GCJ=
15561
15562 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15563 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15564
15565   if test "$GCC" = yes; then
15566     lt_prog_compiler_wl_GCJ='-Wl,'
15567     lt_prog_compiler_static_GCJ='-static'
15568
15569     case $host_os in
15570       aix*)
15571       # All AIX code is PIC.
15572       if test "$host_cpu" = ia64; then
15573         # AIX 5 now supports IA64 processor
15574         lt_prog_compiler_static_GCJ='-Bstatic'
15575       fi
15576       ;;
15577
15578     amigaos*)
15579       # FIXME: we need at least 68020 code to build shared libraries, but
15580       # adding the `-m68020' flag to GCC prevents building anything better,
15581       # like `-m68040'.
15582       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15583       ;;
15584
15585     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15586       # PIC is the default for these OSes.
15587       ;;
15588
15589     mingw* | pw32* | os2*)
15590       # This hack is so that the source file can tell whether it is being
15591       # built for inclusion in a dll (and should export symbols for example).
15592       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15593       ;;
15594
15595     darwin* | rhapsody*)
15596       # PIC is the default on this platform
15597       # Common symbols not allowed in MH_DYLIB files
15598       lt_prog_compiler_pic_GCJ='-fno-common'
15599       ;;
15600
15601     interix3*)
15602       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15603       # Instead, we relocate shared libraries at runtime.
15604       ;;
15605
15606     msdosdjgpp*)
15607       # Just because we use GCC doesn't mean we suddenly get shared libraries
15608       # on systems that don't support them.
15609       lt_prog_compiler_can_build_shared_GCJ=no
15610       enable_shared=no
15611       ;;
15612
15613     sysv4*MP*)
15614       if test -d /usr/nec; then
15615         lt_prog_compiler_pic_GCJ=-Kconform_pic
15616       fi
15617       ;;
15618
15619     hpux*)
15620       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15621       # not for PA HP-UX.
15622       case $host_cpu in
15623       hppa*64*|ia64*)
15624         # +Z the default
15625         ;;
15626       *)
15627         lt_prog_compiler_pic_GCJ='-fPIC'
15628         ;;
15629       esac
15630       ;;
15631
15632     *)
15633       lt_prog_compiler_pic_GCJ='-fPIC'
15634       ;;
15635     esac
15636   else
15637     # PORTME Check for flag to pass linker flags through the system compiler.
15638     case $host_os in
15639     aix*)
15640       lt_prog_compiler_wl_GCJ='-Wl,'
15641       if test "$host_cpu" = ia64; then
15642         # AIX 5 now supports IA64 processor
15643         lt_prog_compiler_static_GCJ='-Bstatic'
15644       else
15645         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15646       fi
15647       ;;
15648       darwin*)
15649         # PIC is the default on this platform
15650         # Common symbols not allowed in MH_DYLIB files
15651        case $cc_basename in
15652          xlc*)
15653          lt_prog_compiler_pic_GCJ='-qnocommon'
15654          lt_prog_compiler_wl_GCJ='-Wl,'
15655          ;;
15656        esac
15657        ;;
15658
15659     mingw* | pw32* | os2*)
15660       # This hack is so that the source file can tell whether it is being
15661       # built for inclusion in a dll (and should export symbols for example).
15662       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15663       ;;
15664
15665     hpux9* | hpux10* | hpux11*)
15666       lt_prog_compiler_wl_GCJ='-Wl,'
15667       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15668       # not for PA HP-UX.
15669       case $host_cpu in
15670       hppa*64*|ia64*)
15671         # +Z the default
15672         ;;
15673       *)
15674         lt_prog_compiler_pic_GCJ='+Z'
15675         ;;
15676       esac
15677       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15678       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15679       ;;
15680
15681     irix5* | irix6* | nonstopux*)
15682       lt_prog_compiler_wl_GCJ='-Wl,'
15683       # PIC (with -KPIC) is the default.
15684       lt_prog_compiler_static_GCJ='-non_shared'
15685       ;;
15686
15687     newsos6)
15688       lt_prog_compiler_pic_GCJ='-KPIC'
15689       lt_prog_compiler_static_GCJ='-Bstatic'
15690       ;;
15691
15692     linux*)
15693       case $cc_basename in
15694       icc* | ecc*)
15695         lt_prog_compiler_wl_GCJ='-Wl,'
15696         lt_prog_compiler_pic_GCJ='-KPIC'
15697         lt_prog_compiler_static_GCJ='-static'
15698         ;;
15699       pgcc* | pgf77* | pgf90* | pgf95*)
15700         # Portland Group compilers (*not* the Pentium gcc compiler,
15701         # which looks to be a dead project)
15702         lt_prog_compiler_wl_GCJ='-Wl,'
15703         lt_prog_compiler_pic_GCJ='-fpic'
15704         lt_prog_compiler_static_GCJ='-Bstatic'
15705         ;;
15706       ccc*)
15707         lt_prog_compiler_wl_GCJ='-Wl,'
15708         # All Alpha code is PIC.
15709         lt_prog_compiler_static_GCJ='-non_shared'
15710         ;;
15711       esac
15712       ;;
15713
15714     osf3* | osf4* | osf5*)
15715       lt_prog_compiler_wl_GCJ='-Wl,'
15716       # All OSF/1 code is PIC.
15717       lt_prog_compiler_static_GCJ='-non_shared'
15718       ;;
15719
15720     solaris*)
15721       lt_prog_compiler_pic_GCJ='-KPIC'
15722       lt_prog_compiler_static_GCJ='-Bstatic'
15723       case $cc_basename in
15724       f77* | f90* | f95*)
15725         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15726       *)
15727         lt_prog_compiler_wl_GCJ='-Wl,';;
15728       esac
15729       ;;
15730
15731     sunos4*)
15732       lt_prog_compiler_wl_GCJ='-Qoption ld '
15733       lt_prog_compiler_pic_GCJ='-PIC'
15734       lt_prog_compiler_static_GCJ='-Bstatic'
15735       ;;
15736
15737     sysv4 | sysv4.2uw2* | sysv4.3*)
15738       lt_prog_compiler_wl_GCJ='-Wl,'
15739       lt_prog_compiler_pic_GCJ='-KPIC'
15740       lt_prog_compiler_static_GCJ='-Bstatic'
15741       ;;
15742
15743     sysv4*MP*)
15744       if test -d /usr/nec ;then
15745         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15746         lt_prog_compiler_static_GCJ='-Bstatic'
15747       fi
15748       ;;
15749
15750     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15751       lt_prog_compiler_wl_GCJ='-Wl,'
15752       lt_prog_compiler_pic_GCJ='-KPIC'
15753       lt_prog_compiler_static_GCJ='-Bstatic'
15754       ;;
15755
15756     unicos*)
15757       lt_prog_compiler_wl_GCJ='-Wl,'
15758       lt_prog_compiler_can_build_shared_GCJ=no
15759       ;;
15760
15761     uts4*)
15762       lt_prog_compiler_pic_GCJ='-pic'
15763       lt_prog_compiler_static_GCJ='-Bstatic'
15764       ;;
15765
15766     *)
15767       lt_prog_compiler_can_build_shared_GCJ=no
15768       ;;
15769     esac
15770   fi
15771
15772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15773 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15774
15775 #
15776 # Check to make sure the PIC flag actually works.
15777 #
15778 if test -n "$lt_prog_compiler_pic_GCJ"; then
15779
15780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15782 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15783   echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785   lt_prog_compiler_pic_works_GCJ=no
15786   ac_outfile=conftest.$ac_objext
15787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15789    # Insert the option either (1) after the last *FLAGS variable, or
15790    # (2) before a word containing "conftest.", or (3) at the end.
15791    # Note that $ac_compile itself does not contain backslashes and begins
15792    # with a dollar sign (not a hyphen), so the echo should work correctly.
15793    # The option is referenced via a variable to avoid confusing sed.
15794    lt_compile=`echo "$ac_compile" | $SED \
15795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797    -e 's:$: $lt_compiler_flag:'`
15798    (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799    (eval "$lt_compile" 2>conftest.err)
15800    ac_status=$?
15801    cat conftest.err >&5
15802    echo "$as_me:15802: \$? = $ac_status" >&5
15803    if (exit $ac_status) && test -s "$ac_outfile"; then
15804      # The compiler can only warn and ignore the option if not recognized
15805      # So say no if there are warnings other than the usual output.
15806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15809        lt_prog_compiler_pic_works_GCJ=yes
15810      fi
15811    fi
15812    $rm conftest*
15813
15814 fi
15815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15816 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15817
15818 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15819     case $lt_prog_compiler_pic_GCJ in
15820      "" | " "*) ;;
15821      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15822      esac
15823 else
15824     lt_prog_compiler_pic_GCJ=
15825      lt_prog_compiler_can_build_shared_GCJ=no
15826 fi
15827
15828 fi
15829 case $host_os in
15830   # For platforms which do not support PIC, -DPIC is meaningless:
15831   *djgpp*)
15832     lt_prog_compiler_pic_GCJ=
15833     ;;
15834   *)
15835     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15836     ;;
15837 esac
15838
15839 #
15840 # Check to make sure the static flag actually works.
15841 #
15842 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15843 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15844 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15845 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15846   echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848   lt_prog_compiler_static_works_GCJ=no
15849    save_LDFLAGS="$LDFLAGS"
15850    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15851    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15852    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15853      # The linker can only warn and ignore the option if not recognized
15854      # So say no if there are warnings
15855      if test -s conftest.err; then
15856        # Append any errors to the config.log.
15857        cat conftest.err 1>&5
15858        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15859        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15860        if diff conftest.exp conftest.er2 >/dev/null; then
15861          lt_prog_compiler_static_works_GCJ=yes
15862        fi
15863      else
15864        lt_prog_compiler_static_works_GCJ=yes
15865      fi
15866    fi
15867    $rm conftest*
15868    LDFLAGS="$save_LDFLAGS"
15869
15870 fi
15871 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15872 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15873
15874 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15875     :
15876 else
15877     lt_prog_compiler_static_GCJ=
15878 fi
15879
15880
15881 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15883 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   lt_cv_prog_compiler_c_o_GCJ=no
15887    $rm -r conftest 2>/dev/null
15888    mkdir conftest
15889    cd conftest
15890    mkdir out
15891    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15892
15893    lt_compiler_flag="-o out/conftest2.$ac_objext"
15894    # Insert the option either (1) after the last *FLAGS variable, or
15895    # (2) before a word containing "conftest.", or (3) at the end.
15896    # Note that $ac_compile itself does not contain backslashes and begins
15897    # with a dollar sign (not a hyphen), so the echo should work correctly.
15898    lt_compile=`echo "$ac_compile" | $SED \
15899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15901    -e 's:$: $lt_compiler_flag:'`
15902    (eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
15903    (eval "$lt_compile" 2>out/conftest.err)
15904    ac_status=$?
15905    cat out/conftest.err >&5
15906    echo "$as_me:15906: \$? = $ac_status" >&5
15907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15908    then
15909      # The compiler can only warn and ignore the option if not recognized
15910      # So say no if there are warnings
15911      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15912      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15913      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15914        lt_cv_prog_compiler_c_o_GCJ=yes
15915      fi
15916    fi
15917    chmod u+w . 2>&5
15918    $rm conftest*
15919    # SGI C++ compiler will create directory out/ii_files/ for
15920    # template instantiation
15921    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15922    $rm out/* && rmdir out
15923    cd ..
15924    rmdir conftest
15925    $rm conftest*
15926
15927 fi
15928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15930
15931
15932 hard_links="nottested"
15933 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15934   # do not overwrite the value of need_locks provided by the user
15935   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15936 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15937   hard_links=yes
15938   $rm conftest*
15939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15940   touch conftest.a
15941   ln conftest.a conftest.b 2>&5 || hard_links=no
15942   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15943   echo "$as_me:$LINENO: result: $hard_links" >&5
15944 echo "${ECHO_T}$hard_links" >&6
15945   if test "$hard_links" = no; then
15946     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15947 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15948     need_locks=warn
15949   fi
15950 else
15951   need_locks=no
15952 fi
15953
15954 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15956
15957   runpath_var=
15958   allow_undefined_flag_GCJ=
15959   enable_shared_with_static_runtimes_GCJ=no
15960   archive_cmds_GCJ=
15961   archive_expsym_cmds_GCJ=
15962   old_archive_From_new_cmds_GCJ=
15963   old_archive_from_expsyms_cmds_GCJ=
15964   export_dynamic_flag_spec_GCJ=
15965   whole_archive_flag_spec_GCJ=
15966   thread_safe_flag_spec_GCJ=
15967   hardcode_libdir_flag_spec_GCJ=
15968   hardcode_libdir_flag_spec_ld_GCJ=
15969   hardcode_libdir_separator_GCJ=
15970   hardcode_direct_GCJ=no
15971   hardcode_minus_L_GCJ=no
15972   hardcode_shlibpath_var_GCJ=unsupported
15973   link_all_deplibs_GCJ=unknown
15974   hardcode_automatic_GCJ=no
15975   module_cmds_GCJ=
15976   module_expsym_cmds_GCJ=
15977   always_export_symbols_GCJ=no
15978   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15979   # include_expsyms should be a list of space-separated symbols to be *always*
15980   # included in the symbol list
15981   include_expsyms_GCJ=
15982   # exclude_expsyms can be an extended regexp of symbols to exclude
15983   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15984   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15985   # as well as any symbol that contains `d'.
15986   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15987   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15988   # platforms (ab)use it in PIC code, but their linkers get confused if
15989   # the symbol is explicitly referenced.  Since portable code cannot
15990   # rely on this symbol name, it's probably fine to never include it in
15991   # preloaded symbol tables.
15992   extract_expsyms_cmds=
15993   # Just being paranoid about ensuring that cc_basename is set.
15994   for cc_temp in $compiler""; do
15995   case $cc_temp in
15996     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15997     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15998     \-*) ;;
15999     *) break;;
16000   esac
16001 done
16002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16003
16004   case $host_os in
16005   cygwin* | mingw* | pw32*)
16006     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16007     # When not using gcc, we currently assume that we are using
16008     # Microsoft Visual C++.
16009     if test "$GCC" != yes; then
16010       with_gnu_ld=no
16011     fi
16012     ;;
16013   interix*)
16014     # we just hope/assume this is gcc and not c89 (= MSVC++)
16015     with_gnu_ld=yes
16016     ;;
16017   openbsd*)
16018     with_gnu_ld=no
16019     ;;
16020   esac
16021
16022   ld_shlibs_GCJ=yes
16023   if test "$with_gnu_ld" = yes; then
16024     # If archive_cmds runs LD, not CC, wlarc should be empty
16025     wlarc='${wl}'
16026
16027     # Set some defaults for GNU ld with shared library support. These
16028     # are reset later if shared libraries are not supported. Putting them
16029     # here allows them to be overridden if necessary.
16030     runpath_var=LD_RUN_PATH
16031     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16032     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16033     # ancient GNU ld didn't support --whole-archive et. al.
16034     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16035         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16036       else
16037         whole_archive_flag_spec_GCJ=
16038     fi
16039     supports_anon_versioning=no
16040     case `$LD -v 2>/dev/null` in
16041       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16042       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16043       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16044       *\ 2.11.*) ;; # other 2.11 versions
16045       *) supports_anon_versioning=yes ;;
16046     esac
16047
16048     # See if GNU ld supports shared libraries.
16049     case $host_os in
16050     aix3* | aix4* | aix5*)
16051       # On AIX/PPC, the GNU linker is very broken
16052       if test "$host_cpu" != ia64; then
16053         ld_shlibs_GCJ=no
16054         cat <<EOF 1>&2
16055
16056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16057 *** to be unable to reliably create shared libraries on AIX.
16058 *** Therefore, libtool is disabling shared libraries support.  If you
16059 *** really care for shared libraries, you may want to modify your PATH
16060 *** so that a non-GNU linker is found, and then restart.
16061
16062 EOF
16063       fi
16064       ;;
16065
16066     amigaos*)
16067       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16068       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16069       hardcode_minus_L_GCJ=yes
16070
16071       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16072       # that the semantics of dynamic libraries on AmigaOS, at least up
16073       # to version 4, is to share data among multiple programs linked
16074       # with the same dynamic library.  Since this doesn't match the
16075       # behavior of shared libraries on other platforms, we can't use
16076       # them.
16077       ld_shlibs_GCJ=no
16078       ;;
16079
16080     beos*)
16081       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16082         allow_undefined_flag_GCJ=unsupported
16083         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16084         # support --undefined.  This deserves some investigation.  FIXME
16085         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16086       else
16087         ld_shlibs_GCJ=no
16088       fi
16089       ;;
16090
16091     cygwin* | mingw* | pw32*)
16092       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16093       # as there is no search path for DLLs.
16094       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16095       allow_undefined_flag_GCJ=unsupported
16096       always_export_symbols_GCJ=no
16097       enable_shared_with_static_runtimes_GCJ=yes
16098       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16099
16100       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16101         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16102         # If the export-symbols file already is a .def file (1st line
16103         # is EXPORTS), use it as is; otherwise, prepend...
16104         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16105           cp $export_symbols $output_objdir/$soname.def;
16106         else
16107           echo EXPORTS > $output_objdir/$soname.def;
16108           cat $export_symbols >> $output_objdir/$soname.def;
16109         fi~
16110         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16111       else
16112         ld_shlibs_GCJ=no
16113       fi
16114       ;;
16115
16116     interix3*)
16117       hardcode_direct_GCJ=no
16118       hardcode_shlibpath_var_GCJ=no
16119       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16120       export_dynamic_flag_spec_GCJ='${wl}-E'
16121       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16122       # Instead, shared libraries are loaded at an image base (0x10000000 by
16123       # default) and relocated if they conflict, which is a slow very memory
16124       # consuming and fragmenting process.  To avoid this, we pick a random,
16125       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16126       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16127       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16128       archive_expsym_cmds_GCJ='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'
16129       ;;
16130
16131     linux*)
16132       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133         tmp_addflag=
16134         case $cc_basename,$host_cpu in
16135         pgcc*)                          # Portland Group C compiler
16136           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16137           tmp_addflag=' $pic_flag'
16138           ;;
16139         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16140           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16141           tmp_addflag=' $pic_flag -Mnomain' ;;
16142         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16143           tmp_addflag=' -i_dynamic' ;;
16144         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16145           tmp_addflag=' -i_dynamic -nofor_main' ;;
16146         ifc* | ifort*)                  # Intel Fortran compiler
16147           tmp_addflag=' -nofor_main' ;;
16148         esac
16149         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150
16151         if test $supports_anon_versioning = yes; then
16152           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16153   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16154   $echo "local: *; };" >> $output_objdir/$libname.ver~
16155           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16156         fi
16157         link_all_deplibs_GCJ=no
16158       else
16159         ld_shlibs_GCJ=no
16160       fi
16161       ;;
16162
16163     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16164       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16165         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16166         wlarc=
16167       else
16168         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16169         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16170       fi
16171       ;;
16172
16173     solaris*)
16174       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16175         ld_shlibs_GCJ=no
16176         cat <<EOF 1>&2
16177
16178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16179 *** create shared libraries on Solaris systems.  Therefore, libtool
16180 *** is disabling shared libraries support.  We urge you to upgrade GNU
16181 *** binutils to release 2.9.1 or newer.  Another option is to modify
16182 *** your PATH or compiler configuration so that the native linker is
16183 *** used, and then restart.
16184
16185 EOF
16186       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16187         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16188         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16189       else
16190         ld_shlibs_GCJ=no
16191       fi
16192       ;;
16193
16194     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16195       case `$LD -v 2>&1` in
16196         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16197         ld_shlibs_GCJ=no
16198         cat <<_LT_EOF 1>&2
16199
16200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16201 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16202 *** is disabling shared libraries support.  We urge you to upgrade GNU
16203 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16204 *** your PATH or compiler configuration so that the native linker is
16205 *** used, and then restart.
16206
16207 _LT_EOF
16208         ;;
16209         *)
16210           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16211             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16212             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16213             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16214           else
16215             ld_shlibs_GCJ=no
16216           fi
16217         ;;
16218       esac
16219       ;;
16220
16221     sunos4*)
16222       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16223       wlarc=
16224       hardcode_direct_GCJ=yes
16225       hardcode_shlibpath_var_GCJ=no
16226       ;;
16227
16228     *)
16229       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16230         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16232       else
16233         ld_shlibs_GCJ=no
16234       fi
16235       ;;
16236     esac
16237
16238     if test "$ld_shlibs_GCJ" = no; then
16239       runpath_var=
16240       hardcode_libdir_flag_spec_GCJ=
16241       export_dynamic_flag_spec_GCJ=
16242       whole_archive_flag_spec_GCJ=
16243     fi
16244   else
16245     # PORTME fill in a description of your system's linker (not GNU ld)
16246     case $host_os in
16247     aix3*)
16248       allow_undefined_flag_GCJ=unsupported
16249       always_export_symbols_GCJ=yes
16250       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16251       # Note: this linker hardcodes the directories in LIBPATH if there
16252       # are no directories specified by -L.
16253       hardcode_minus_L_GCJ=yes
16254       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16255         # Neither direct hardcoding nor static linking is supported with a
16256         # broken collect2.
16257         hardcode_direct_GCJ=unsupported
16258       fi
16259       ;;
16260
16261     aix4* | aix5*)
16262       if test "$host_cpu" = ia64; then
16263         # On IA64, the linker does run time linking by default, so we don't
16264         # have to do anything special.
16265         aix_use_runtimelinking=no
16266         exp_sym_flag='-Bexport'
16267         no_entry_flag=""
16268       else
16269         # If we're using GNU nm, then we don't want the "-C" option.
16270         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16271         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16272           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16273         else
16274           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16275         fi
16276         aix_use_runtimelinking=no
16277
16278         # Test if we are trying to use run time linking or normal
16279         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16280         # need to do runtime linking.
16281         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16282           for ld_flag in $LDFLAGS; do
16283           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16284             aix_use_runtimelinking=yes
16285             break
16286           fi
16287           done
16288           ;;
16289         esac
16290
16291         exp_sym_flag='-bexport'
16292         no_entry_flag='-bnoentry'
16293       fi
16294
16295       # When large executables or shared objects are built, AIX ld can
16296       # have problems creating the table of contents.  If linking a library
16297       # or program results in "error TOC overflow" add -mminimal-toc to
16298       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16299       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16300
16301       archive_cmds_GCJ=''
16302       hardcode_direct_GCJ=yes
16303       hardcode_libdir_separator_GCJ=':'
16304       link_all_deplibs_GCJ=yes
16305
16306       if test "$GCC" = yes; then
16307         case $host_os in aix4.[012]|aix4.[012].*)
16308         # We only want to do this on AIX 4.2 and lower, the check
16309         # below for broken collect2 doesn't work under 4.3+
16310           collect2name=`${CC} -print-prog-name=collect2`
16311           if test -f "$collect2name" && \
16312            strings "$collect2name" | grep resolve_lib_name >/dev/null
16313           then
16314           # We have reworked collect2
16315           hardcode_direct_GCJ=yes
16316           else
16317           # We have old collect2
16318           hardcode_direct_GCJ=unsupported
16319           # It fails to find uninstalled libraries when the uninstalled
16320           # path is not listed in the libpath.  Setting hardcode_minus_L
16321           # to unsupported forces relinking
16322           hardcode_minus_L_GCJ=yes
16323           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324           hardcode_libdir_separator_GCJ=
16325           fi
16326           ;;
16327         esac
16328         shared_flag='-shared'
16329         if test "$aix_use_runtimelinking" = yes; then
16330           shared_flag="$shared_flag "'${wl}-G'
16331         fi
16332       else
16333         # not using gcc
16334         if test "$host_cpu" = ia64; then
16335         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16336         # chokes on -Wl,-G. The following line is correct:
16337           shared_flag='-G'
16338         else
16339           if test "$aix_use_runtimelinking" = yes; then
16340             shared_flag='${wl}-G'
16341           else
16342             shared_flag='${wl}-bM:SRE'
16343           fi
16344         fi
16345       fi
16346
16347       # It seems that -bexpall does not export symbols beginning with
16348       # underscore (_), so it is better to generate a list of symbols to export.
16349       always_export_symbols_GCJ=yes
16350       if test "$aix_use_runtimelinking" = yes; then
16351         # Warning - without using the other runtime loading flags (-brtl),
16352         # -berok will link without error, but may produce a broken library.
16353         allow_undefined_flag_GCJ='-berok'
16354        # Determine the default libpath from the value encoded in an empty executable.
16355        cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h.  */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h.  */
16361
16362 int
16363 main ()
16364 {
16365
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 rm -f conftest.$ac_objext conftest$ac_exeext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16372   (eval $ac_link) 2>conftest.er1
16373   ac_status=$?
16374   grep -v '^ *+' conftest.er1 >conftest.err
16375   rm -f conftest.er1
16376   cat conftest.err >&5
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); } &&
16379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; } &&
16385          { ac_try='test -s conftest$ac_exeext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391
16392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16393 }'`
16394 # Check for a 64-bit object if we didn't find anything.
16395 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16396 }'`; fi
16397 else
16398   echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401 fi
16402 rm -f conftest.err conftest.$ac_objext \
16403       conftest$ac_exeext conftest.$ac_ext
16404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16405
16406        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16407         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16408        else
16409         if test "$host_cpu" = ia64; then
16410           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16411           allow_undefined_flag_GCJ="-z nodefs"
16412           archive_expsym_cmds_GCJ="\$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"
16413         else
16414          # Determine the default libpath from the value encoded in an empty executable.
16415          cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h.  */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h.  */
16421
16422 int
16423 main ()
16424 {
16425
16426   ;
16427   return 0;
16428 }
16429 _ACEOF
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432   (eval $ac_link) 2>conftest.er1
16433   ac_status=$?
16434   grep -v '^ *+' conftest.er1 >conftest.err
16435   rm -f conftest.er1
16436   cat conftest.err >&5
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } &&
16439          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441   (eval $ac_try) 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; } &&
16445          { ac_try='test -s conftest$ac_exeext'
16446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447   (eval $ac_try) 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); }; }; then
16451
16452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16453 }'`
16454 # Check for a 64-bit object if we didn't find anything.
16455 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16456 }'`; fi
16457 else
16458   echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 fi
16462 rm -f conftest.err conftest.$ac_objext \
16463       conftest$ac_exeext conftest.$ac_ext
16464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16465
16466          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16467           # Warning - without using the other run time loading flags,
16468           # -berok will link without error, but may produce a broken library.
16469           no_undefined_flag_GCJ=' ${wl}-bernotok'
16470           allow_undefined_flag_GCJ=' ${wl}-berok'
16471           # Exported symbols can be pulled into shared objects from archives
16472           whole_archive_flag_spec_GCJ='$convenience'
16473           archive_cmds_need_lc_GCJ=yes
16474           # This is similar to how AIX traditionally builds its shared libraries.
16475           archive_expsym_cmds_GCJ="\$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'
16476         fi
16477       fi
16478       ;;
16479
16480     amigaos*)
16481       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16482       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16483       hardcode_minus_L_GCJ=yes
16484       # see comment about different semantics on the GNU ld section
16485       ld_shlibs_GCJ=no
16486       ;;
16487
16488     bsdi[45]*)
16489       export_dynamic_flag_spec_GCJ=-rdynamic
16490       ;;
16491
16492     cygwin* | mingw* | pw32*)
16493       # When not using gcc, we currently assume that we are using
16494       # Microsoft Visual C++.
16495       # hardcode_libdir_flag_spec is actually meaningless, as there is
16496       # no search path for DLLs.
16497       hardcode_libdir_flag_spec_GCJ=' '
16498       allow_undefined_flag_GCJ=unsupported
16499       # Tell ltmain to make .lib files, not .a files.
16500       libext=lib
16501       # Tell ltmain to make .dll files, not .so files.
16502       shrext_cmds=".dll"
16503       # FIXME: Setting linknames here is a bad hack.
16504       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16505       # The linker will automatically build a .lib file if we build a DLL.
16506       old_archive_From_new_cmds_GCJ='true'
16507       # FIXME: Should let the user specify the lib program.
16508       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16509       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16510       enable_shared_with_static_runtimes_GCJ=yes
16511       ;;
16512
16513     darwin* | rhapsody*)
16514       case $host_os in
16515         rhapsody* | darwin1.[012])
16516          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16517          ;;
16518        *) # Darwin 1.3 on
16519          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16520            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16521          else
16522            case ${MACOSX_DEPLOYMENT_TARGET} in
16523              10.[012])
16524                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16525                ;;
16526              10.*)
16527                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16528                ;;
16529            esac
16530          fi
16531          ;;
16532       esac
16533       archive_cmds_need_lc_GCJ=no
16534       hardcode_direct_GCJ=no
16535       hardcode_automatic_GCJ=yes
16536       hardcode_shlibpath_var_GCJ=unsupported
16537       whole_archive_flag_spec_GCJ=''
16538       link_all_deplibs_GCJ=yes
16539     if test "$GCC" = yes ; then
16540         output_verbose_link_cmd='echo'
16541         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16542       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16543       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16544       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16545       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16546     else
16547       case $cc_basename in
16548         xlc*)
16549          output_verbose_link_cmd='echo'
16550          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16551          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16552           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16553          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16554           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16555           ;;
16556        *)
16557          ld_shlibs_GCJ=no
16558           ;;
16559       esac
16560     fi
16561       ;;
16562
16563     dgux*)
16564       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16566       hardcode_shlibpath_var_GCJ=no
16567       ;;
16568
16569     freebsd1*)
16570       ld_shlibs_GCJ=no
16571       ;;
16572
16573     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16574     # support.  Future versions do this automatically, but an explicit c++rt0.o
16575     # does not break anything, and helps significantly (at the cost of a little
16576     # extra space).
16577     freebsd2.2*)
16578       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16579       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16580       hardcode_direct_GCJ=yes
16581       hardcode_shlibpath_var_GCJ=no
16582       ;;
16583
16584     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16585     freebsd2*)
16586       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16587       hardcode_direct_GCJ=yes
16588       hardcode_minus_L_GCJ=yes
16589       hardcode_shlibpath_var_GCJ=no
16590       ;;
16591
16592     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16593     freebsd* | dragonfly*)
16594       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16595       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16596       hardcode_direct_GCJ=yes
16597       hardcode_shlibpath_var_GCJ=no
16598       ;;
16599
16600     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16601     kfreebsd*-gnu)
16602       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16603       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16604       hardcode_direct_GCJ=yes
16605       hardcode_shlibpath_var_GCJ=no
16606       link_all_deplibs_GCJ=no
16607       ;;
16608
16609     hpux9*)
16610       if test "$GCC" = yes; then
16611         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16612       else
16613         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16614       fi
16615       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16616       hardcode_libdir_separator_GCJ=:
16617       hardcode_direct_GCJ=yes
16618
16619       # hardcode_minus_L: Not really in the search PATH,
16620       # but as the default location of the library.
16621       hardcode_minus_L_GCJ=yes
16622       export_dynamic_flag_spec_GCJ='${wl}-E'
16623       ;;
16624
16625     hpux10*)
16626       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16627         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16628       else
16629         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16630       fi
16631       if test "$with_gnu_ld" = no; then
16632         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16633         hardcode_libdir_separator_GCJ=:
16634
16635         hardcode_direct_GCJ=yes
16636         export_dynamic_flag_spec_GCJ='${wl}-E'
16637
16638         # hardcode_minus_L: Not really in the search PATH,
16639         # but as the default location of the library.
16640         hardcode_minus_L_GCJ=yes
16641       fi
16642       ;;
16643
16644     hpux11*)
16645       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16646         case $host_cpu in
16647         hppa*64*)
16648           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16649           ;;
16650         ia64*)
16651           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16652           ;;
16653         *)
16654           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16655           ;;
16656         esac
16657       else
16658         case $host_cpu in
16659         hppa*64*)
16660           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16661           ;;
16662         ia64*)
16663           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16664           ;;
16665         *)
16666           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16667           ;;
16668         esac
16669       fi
16670       if test "$with_gnu_ld" = no; then
16671         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16672         hardcode_libdir_separator_GCJ=:
16673
16674         case $host_cpu in
16675         hppa*64*|ia64*)
16676           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16677           hardcode_direct_GCJ=no
16678           hardcode_shlibpath_var_GCJ=no
16679           ;;
16680         *)
16681           hardcode_direct_GCJ=yes
16682           export_dynamic_flag_spec_GCJ='${wl}-E'
16683
16684           # hardcode_minus_L: Not really in the search PATH,
16685           # but as the default location of the library.
16686           hardcode_minus_L_GCJ=yes
16687           ;;
16688         esac
16689       fi
16690       ;;
16691
16692     irix5* | irix6* | nonstopux*)
16693       if test "$GCC" = yes; then
16694         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16695       else
16696         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16697         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16698       fi
16699       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16700       hardcode_libdir_separator_GCJ=:
16701       link_all_deplibs_GCJ=yes
16702       ;;
16703
16704     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16705       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16706         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16707       else
16708         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16709       fi
16710       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16711       hardcode_direct_GCJ=yes
16712       hardcode_shlibpath_var_GCJ=no
16713       ;;
16714
16715     newsos6)
16716       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717       hardcode_direct_GCJ=yes
16718       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16719       hardcode_libdir_separator_GCJ=:
16720       hardcode_shlibpath_var_GCJ=no
16721       ;;
16722
16723     openbsd*)
16724       hardcode_direct_GCJ=yes
16725       hardcode_shlibpath_var_GCJ=no
16726       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16727         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16728         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16729         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16730         export_dynamic_flag_spec_GCJ='${wl}-E'
16731       else
16732        case $host_os in
16733          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16734            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16735            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16736            ;;
16737          *)
16738            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16739            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16740            ;;
16741        esac
16742       fi
16743       ;;
16744
16745     os2*)
16746       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16747       hardcode_minus_L_GCJ=yes
16748       allow_undefined_flag_GCJ=unsupported
16749       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16750       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16751       ;;
16752
16753     osf3*)
16754       if test "$GCC" = yes; then
16755         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16756         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16757       else
16758         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16759         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16760       fi
16761       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16762       hardcode_libdir_separator_GCJ=:
16763       ;;
16764
16765     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16766       if test "$GCC" = yes; then
16767         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16768         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16769         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16770       else
16771         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16772         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16773         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16774         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16775
16776         # Both c and cxx compiler support -rpath directly
16777         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16778       fi
16779       hardcode_libdir_separator_GCJ=:
16780       ;;
16781
16782     solaris*)
16783       no_undefined_flag_GCJ=' -z text'
16784       if test "$GCC" = yes; then
16785         wlarc='${wl}'
16786         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16788           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16789       else
16790         wlarc=''
16791         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16793         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16794       fi
16795       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16796       hardcode_shlibpath_var_GCJ=no
16797       case $host_os in
16798       solaris2.[0-5] | solaris2.[0-5].*) ;;
16799       *)
16800         # The compiler driver will combine linker options so we
16801         # cannot just pass the convience library names through
16802         # without $wl, iff we do not link with $LD.
16803         # Luckily, gcc supports the same syntax we need for Sun Studio.
16804         # Supported since Solaris 2.6 (maybe 2.5.1?)
16805         case $wlarc in
16806         '')
16807           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16808         *)
16809           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16810         esac ;;
16811       esac
16812       link_all_deplibs_GCJ=yes
16813       ;;
16814
16815     sunos4*)
16816       if test "x$host_vendor" = xsequent; then
16817         # Use $CC to link under sequent, because it throws in some extra .o
16818         # files that make .init and .fini sections work.
16819         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16820       else
16821         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16822       fi
16823       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824       hardcode_direct_GCJ=yes
16825       hardcode_minus_L_GCJ=yes
16826       hardcode_shlibpath_var_GCJ=no
16827       ;;
16828
16829     sysv4)
16830       case $host_vendor in
16831         sni)
16832           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16833           hardcode_direct_GCJ=yes # is this really true???
16834         ;;
16835         siemens)
16836           ## LD is ld it makes a PLAMLIB
16837           ## CC just makes a GrossModule.
16838           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16839           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16840           hardcode_direct_GCJ=no
16841         ;;
16842         motorola)
16843           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16844           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16845         ;;
16846       esac
16847       runpath_var='LD_RUN_PATH'
16848       hardcode_shlibpath_var_GCJ=no
16849       ;;
16850
16851     sysv4.3*)
16852       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16853       hardcode_shlibpath_var_GCJ=no
16854       export_dynamic_flag_spec_GCJ='-Bexport'
16855       ;;
16856
16857     sysv4*MP*)
16858       if test -d /usr/nec; then
16859         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860         hardcode_shlibpath_var_GCJ=no
16861         runpath_var=LD_RUN_PATH
16862         hardcode_runpath_var=yes
16863         ld_shlibs_GCJ=yes
16864       fi
16865       ;;
16866
16867     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16868       no_undefined_flag_GCJ='${wl}-z,text'
16869       archive_cmds_need_lc_GCJ=no
16870       hardcode_shlibpath_var_GCJ=no
16871       runpath_var='LD_RUN_PATH'
16872
16873       if test "$GCC" = yes; then
16874         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16875         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16876       else
16877         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16878         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16879       fi
16880       ;;
16881
16882     sysv5* | sco3.2v5* | sco5v6*)
16883       # Note: We can NOT use -z defs as we might desire, because we do not
16884       # link with -lc, and that would cause any symbols used from libc to
16885       # always be unresolved, which means just about no library would
16886       # ever link correctly.  If we're not using GNU ld we use -z text
16887       # though, which does catch some bad symbols but isn't as heavy-handed
16888       # as -z defs.
16889       no_undefined_flag_GCJ='${wl}-z,text'
16890       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16891       archive_cmds_need_lc_GCJ=no
16892       hardcode_shlibpath_var_GCJ=no
16893       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16894       hardcode_libdir_separator_GCJ=':'
16895       link_all_deplibs_GCJ=yes
16896       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16897       runpath_var='LD_RUN_PATH'
16898
16899       if test "$GCC" = yes; then
16900         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16901         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16902       else
16903         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16904         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16905       fi
16906       ;;
16907
16908     uts4*)
16909       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16910       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16911       hardcode_shlibpath_var_GCJ=no
16912       ;;
16913
16914     *)
16915       ld_shlibs_GCJ=no
16916       ;;
16917     esac
16918   fi
16919
16920 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16921 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16922 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16923
16924 #
16925 # Do we need to explicitly link libc?
16926 #
16927 case "x$archive_cmds_need_lc_GCJ" in
16928 x|xyes)
16929   # Assume -lc should be added
16930   archive_cmds_need_lc_GCJ=yes
16931
16932   if test "$enable_shared" = yes && test "$GCC" = yes; then
16933     case $archive_cmds_GCJ in
16934     *'~'*)
16935       # FIXME: we may have to deal with multi-command sequences.
16936       ;;
16937     '$CC '*)
16938       # Test whether the compiler implicitly links with -lc since on some
16939       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16940       # to ld, don't add -lc before -lgcc.
16941       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16943       $rm conftest*
16944       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16945
16946       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947   (eval $ac_compile) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } 2>conftest.err; then
16951         soname=conftest
16952         lib=conftest
16953         libobjs=conftest.$ac_objext
16954         deplibs=
16955         wl=$lt_prog_compiler_wl_GCJ
16956         pic_flag=$lt_prog_compiler_pic_GCJ
16957         compiler_flags=-v
16958         linker_flags=-v
16959         verstring=
16960         output_objdir=.
16961         libname=conftest
16962         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16963         allow_undefined_flag_GCJ=
16964         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16965   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }
16969         then
16970           archive_cmds_need_lc_GCJ=no
16971         else
16972           archive_cmds_need_lc_GCJ=yes
16973         fi
16974         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16975       else
16976         cat conftest.err 1>&5
16977       fi
16978       $rm conftest*
16979       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16980 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16981       ;;
16982     esac
16983   fi
16984   ;;
16985 esac
16986
16987 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16989 library_names_spec=
16990 libname_spec='lib$name'
16991 soname_spec=
16992 shrext_cmds=".so"
16993 postinstall_cmds=
16994 postuninstall_cmds=
16995 finish_cmds=
16996 finish_eval=
16997 shlibpath_var=
16998 shlibpath_overrides_runpath=unknown
16999 version_type=none
17000 dynamic_linker="$host_os ld.so"
17001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17002 if test "$GCC" = yes; then
17003   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17004   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17005     # if the path contains ";" then we assume it to be the separator
17006     # otherwise default to the standard path separator (i.e. ":") - it is
17007     # assumed that no part of a normal pathname contains ";" but that should
17008     # okay in the real world where ";" in dirpaths is itself problematic.
17009     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17010   else
17011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17012   fi
17013 else
17014   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17015 fi
17016 need_lib_prefix=unknown
17017 hardcode_into_libs=no
17018
17019 # when you set need_version to no, make sure it does not cause -set_version
17020 # flags to be left without arguments
17021 need_version=unknown
17022
17023 case $host_os in
17024 aix3*)
17025   version_type=linux
17026   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17027   shlibpath_var=LIBPATH
17028
17029   # AIX 3 has no versioning support, so we append a major version to the name.
17030   soname_spec='${libname}${release}${shared_ext}$major'
17031   ;;
17032
17033 aix4* | aix5*)
17034   version_type=linux
17035   need_lib_prefix=no
17036   need_version=no
17037   hardcode_into_libs=yes
17038   if test "$host_cpu" = ia64; then
17039     # AIX 5 supports IA64
17040     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17041     shlibpath_var=LD_LIBRARY_PATH
17042   else
17043     # With GCC up to 2.95.x, collect2 would create an import file
17044     # for dependence libraries.  The import file would start with
17045     # the line `#! .'.  This would cause the generated library to
17046     # depend on `.', always an invalid library.  This was fixed in
17047     # development snapshots of GCC prior to 3.0.
17048     case $host_os in
17049       aix4 | aix4.[01] | aix4.[01].*)
17050       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17051            echo ' yes '
17052            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17053         :
17054       else
17055         can_build_shared=no
17056       fi
17057       ;;
17058     esac
17059     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17060     # soname into executable. Probably we can add versioning support to
17061     # collect2, so additional links can be useful in future.
17062     if test "$aix_use_runtimelinking" = yes; then
17063       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17064       # instead of lib<name>.a to let people know that these are not
17065       # typical AIX shared libraries.
17066       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067     else
17068       # We preserve .a as extension for shared libraries through AIX4.2
17069       # and later when we are not doing run time linking.
17070       library_names_spec='${libname}${release}.a $libname.a'
17071       soname_spec='${libname}${release}${shared_ext}$major'
17072     fi
17073     shlibpath_var=LIBPATH
17074   fi
17075   ;;
17076
17077 amigaos*)
17078   library_names_spec='$libname.ixlibrary $libname.a'
17079   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17080   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'
17081   ;;
17082
17083 beos*)
17084   library_names_spec='${libname}${shared_ext}'
17085   dynamic_linker="$host_os ld.so"
17086   shlibpath_var=LIBRARY_PATH
17087   ;;
17088
17089 bsdi[45]*)
17090   version_type=linux
17091   need_version=no
17092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093   soname_spec='${libname}${release}${shared_ext}$major'
17094   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17095   shlibpath_var=LD_LIBRARY_PATH
17096   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17097   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17098   # the default ld.so.conf also contains /usr/contrib/lib and
17099   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17100   # libtool to hard-code these into programs
17101   ;;
17102
17103 cygwin* | mingw* | pw32*)
17104   version_type=windows
17105   shrext_cmds=".dll"
17106   need_version=no
17107   need_lib_prefix=no
17108
17109   case $GCC,$host_os in
17110   yes,cygwin* | yes,mingw* | yes,pw32*)
17111     library_names_spec='$libname.dll.a'
17112     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17113     postinstall_cmds='base_file=`basename \${file}`~
17114       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17115       dldir=$destdir/`dirname \$dlpath`~
17116       test -d \$dldir || mkdir -p \$dldir~
17117       $install_prog $dir/$dlname \$dldir/$dlname~
17118       chmod a+x \$dldir/$dlname'
17119     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17120       dlpath=$dir/\$dldll~
17121        $rm \$dlpath'
17122     shlibpath_overrides_runpath=yes
17123
17124     case $host_os in
17125     cygwin*)
17126       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17127       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17128       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17129       ;;
17130     mingw*)
17131       # MinGW DLLs use traditional 'lib' prefix
17132       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17133       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17134       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17135         # It is most probably a Windows format PATH printed by
17136         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17137         # path with ; separators, and with drive letters. We can handle the
17138         # drive letters (cygwin fileutils understands them), so leave them,
17139         # especially as we might pass files found there to a mingw objdump,
17140         # which wouldn't understand a cygwinified path. Ahh.
17141         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17142       else
17143         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17144       fi
17145       ;;
17146     pw32*)
17147       # pw32 DLLs use 'pw' prefix rather than 'lib'
17148       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17149       ;;
17150     esac
17151     ;;
17152
17153   *)
17154     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17155     ;;
17156   esac
17157   dynamic_linker='Win32 ld.exe'
17158   # FIXME: first we should search . and the directory the executable is in
17159   shlibpath_var=PATH
17160   ;;
17161
17162 darwin* | rhapsody*)
17163   dynamic_linker="$host_os dyld"
17164   version_type=darwin
17165   need_lib_prefix=no
17166   need_version=no
17167   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17168   soname_spec='${libname}${release}${major}$shared_ext'
17169   shlibpath_overrides_runpath=yes
17170   shlibpath_var=DYLD_LIBRARY_PATH
17171   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17172   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17173   if test "$GCC" = yes; then
17174     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17175   else
17176     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17177   fi
17178   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17179   ;;
17180
17181 dgux*)
17182   version_type=linux
17183   need_lib_prefix=no
17184   need_version=no
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17186   soname_spec='${libname}${release}${shared_ext}$major'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   ;;
17189
17190 freebsd1*)
17191   dynamic_linker=no
17192   ;;
17193
17194 kfreebsd*-gnu)
17195   version_type=linux
17196   need_lib_prefix=no
17197   need_version=no
17198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17199   soname_spec='${libname}${release}${shared_ext}$major'
17200   shlibpath_var=LD_LIBRARY_PATH
17201   shlibpath_overrides_runpath=no
17202   hardcode_into_libs=yes
17203   dynamic_linker='GNU ld.so'
17204   ;;
17205
17206 freebsd* | dragonfly*)
17207   # DragonFly does not have aout.  When/if they implement a new
17208   # versioning mechanism, adjust this.
17209   if test -x /usr/bin/objformat; then
17210     objformat=`/usr/bin/objformat`
17211   else
17212     case $host_os in
17213     freebsd[123]*) objformat=aout ;;
17214     *) objformat=elf ;;
17215     esac
17216   fi
17217   version_type=freebsd-$objformat
17218   case $version_type in
17219     freebsd-elf*)
17220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17221       need_version=no
17222       need_lib_prefix=no
17223       ;;
17224     freebsd-*)
17225       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17226       need_version=yes
17227       ;;
17228   esac
17229   shlibpath_var=LD_LIBRARY_PATH
17230   case $host_os in
17231   freebsd2*)
17232     shlibpath_overrides_runpath=yes
17233     ;;
17234   freebsd3.[01]* | freebsdelf3.[01]*)
17235     shlibpath_overrides_runpath=yes
17236     hardcode_into_libs=yes
17237     ;;
17238   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17239   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17240     shlibpath_overrides_runpath=no
17241     hardcode_into_libs=yes
17242     ;;
17243   freebsd*) # from 4.6 on
17244     shlibpath_overrides_runpath=yes
17245     hardcode_into_libs=yes
17246     ;;
17247   esac
17248   ;;
17249
17250 gnu*)
17251   version_type=linux
17252   need_lib_prefix=no
17253   need_version=no
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17255   soname_spec='${libname}${release}${shared_ext}$major'
17256   shlibpath_var=LD_LIBRARY_PATH
17257   hardcode_into_libs=yes
17258   ;;
17259
17260 hpux9* | hpux10* | hpux11*)
17261   # Give a soname corresponding to the major version so that dld.sl refuses to
17262   # link against other versions.
17263   version_type=sunos
17264   need_lib_prefix=no
17265   need_version=no
17266   case $host_cpu in
17267   ia64*)
17268     shrext_cmds='.so'
17269     hardcode_into_libs=yes
17270     dynamic_linker="$host_os dld.so"
17271     shlibpath_var=LD_LIBRARY_PATH
17272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274     soname_spec='${libname}${release}${shared_ext}$major'
17275     if test "X$HPUX_IA64_MODE" = X32; then
17276       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17277     else
17278       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17279     fi
17280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17281     ;;
17282    hppa*64*)
17283      shrext_cmds='.sl'
17284      hardcode_into_libs=yes
17285      dynamic_linker="$host_os dld.sl"
17286      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17287      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17288      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289      soname_spec='${libname}${release}${shared_ext}$major'
17290      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17291      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17292      ;;
17293    *)
17294     shrext_cmds='.sl'
17295     dynamic_linker="$host_os dld.sl"
17296     shlibpath_var=SHLIB_PATH
17297     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299     soname_spec='${libname}${release}${shared_ext}$major'
17300     ;;
17301   esac
17302   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17303   postinstall_cmds='chmod 555 $lib'
17304   ;;
17305
17306 interix3*)
17307   version_type=linux
17308   need_lib_prefix=no
17309   need_version=no
17310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17311   soname_spec='${libname}${release}${shared_ext}$major'
17312   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17313   shlibpath_var=LD_LIBRARY_PATH
17314   shlibpath_overrides_runpath=no
17315   hardcode_into_libs=yes
17316   ;;
17317
17318 irix5* | irix6* | nonstopux*)
17319   case $host_os in
17320     nonstopux*) version_type=nonstopux ;;
17321     *)
17322         if test "$lt_cv_prog_gnu_ld" = yes; then
17323                 version_type=linux
17324         else
17325                 version_type=irix
17326         fi ;;
17327   esac
17328   need_lib_prefix=no
17329   need_version=no
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17332   case $host_os in
17333   irix5* | nonstopux*)
17334     libsuff= shlibsuff=
17335     ;;
17336   *)
17337     case $LD in # libtool.m4 will add one of these switches to LD
17338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17339       libsuff= shlibsuff= libmagic=32-bit;;
17340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17341       libsuff=32 shlibsuff=N32 libmagic=N32;;
17342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17344     *) libsuff= shlibsuff= libmagic=never-match;;
17345     esac
17346     ;;
17347   esac
17348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17349   shlibpath_overrides_runpath=no
17350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17352   hardcode_into_libs=yes
17353   ;;
17354
17355 # No shared lib support for Linux oldld, aout, or coff.
17356 linux*oldld* | linux*aout* | linux*coff*)
17357   dynamic_linker=no
17358   ;;
17359
17360 # This must be Linux ELF.
17361 linux*)
17362   version_type=linux
17363   need_lib_prefix=no
17364   need_version=no
17365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366   soname_spec='${libname}${release}${shared_ext}$major'
17367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17368   shlibpath_var=LD_LIBRARY_PATH
17369   shlibpath_overrides_runpath=no
17370   # This implies no fast_install, which is unacceptable.
17371   # Some rework will be needed to allow for fast_install
17372   # before this can be enabled.
17373   hardcode_into_libs=yes
17374
17375   # Append ld.so.conf contents to the search path
17376   if test -f /etc/ld.so.conf; then
17377     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17379   fi
17380
17381   # We used to test for /lib/ld.so.1 and disable shared libraries on
17382   # powerpc, because MkLinux only supported shared libraries with the
17383   # GNU dynamic linker.  Since this was broken with cross compilers,
17384   # most powerpc-linux boxes support dynamic linking these days and
17385   # people can always --disable-shared, the test was removed, and we
17386   # assume the GNU/Linux dynamic linker is in use.
17387   dynamic_linker='GNU/Linux ld.so'
17388   ;;
17389
17390 netbsdelf*-gnu)
17391   version_type=linux
17392   need_lib_prefix=no
17393   need_version=no
17394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17395   soname_spec='${libname}${release}${shared_ext}$major'
17396   shlibpath_var=LD_LIBRARY_PATH
17397   shlibpath_overrides_runpath=no
17398   hardcode_into_libs=yes
17399   dynamic_linker='NetBSD ld.elf_so'
17400   ;;
17401
17402 knetbsd*-gnu)
17403   version_type=linux
17404   need_lib_prefix=no
17405   need_version=no
17406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17407   soname_spec='${libname}${release}${shared_ext}$major'
17408   shlibpath_var=LD_LIBRARY_PATH
17409   shlibpath_overrides_runpath=no
17410   hardcode_into_libs=yes
17411   dynamic_linker='GNU ld.so'
17412   ;;
17413
17414 netbsd*)
17415   version_type=sunos
17416   need_lib_prefix=no
17417   need_version=no
17418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17421     dynamic_linker='NetBSD (a.out) ld.so'
17422   else
17423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17424     soname_spec='${libname}${release}${shared_ext}$major'
17425     dynamic_linker='NetBSD ld.elf_so'
17426   fi
17427   shlibpath_var=LD_LIBRARY_PATH
17428   shlibpath_overrides_runpath=yes
17429   hardcode_into_libs=yes
17430   ;;
17431
17432 newsos6)
17433   version_type=linux
17434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435   shlibpath_var=LD_LIBRARY_PATH
17436   shlibpath_overrides_runpath=yes
17437   ;;
17438
17439 nto-qnx*)
17440   version_type=linux
17441   need_lib_prefix=no
17442   need_version=no
17443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444   soname_spec='${libname}${release}${shared_ext}$major'
17445   shlibpath_var=LD_LIBRARY_PATH
17446   shlibpath_overrides_runpath=yes
17447   ;;
17448
17449 openbsd*)
17450   version_type=sunos
17451   sys_lib_dlsearch_path_spec="/usr/lib"
17452   need_lib_prefix=no
17453   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17454   case $host_os in
17455     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17456     *)                         need_version=no  ;;
17457   esac
17458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17460   shlibpath_var=LD_LIBRARY_PATH
17461   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17462     case $host_os in
17463       openbsd2.[89] | openbsd2.[89].*)
17464         shlibpath_overrides_runpath=no
17465         ;;
17466       *)
17467         shlibpath_overrides_runpath=yes
17468         ;;
17469       esac
17470   else
17471     shlibpath_overrides_runpath=yes
17472   fi
17473   ;;
17474
17475 os2*)
17476   libname_spec='$name'
17477   shrext_cmds=".dll"
17478   need_lib_prefix=no
17479   library_names_spec='$libname${shared_ext} $libname.a'
17480   dynamic_linker='OS/2 ld.exe'
17481   shlibpath_var=LIBPATH
17482   ;;
17483
17484 osf3* | osf4* | osf5*)
17485   version_type=osf
17486   need_lib_prefix=no
17487   need_version=no
17488   soname_spec='${libname}${release}${shared_ext}$major'
17489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490   shlibpath_var=LD_LIBRARY_PATH
17491   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17492   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17493   ;;
17494
17495 solaris*)
17496   version_type=linux
17497   need_lib_prefix=no
17498   need_version=no
17499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500   soname_spec='${libname}${release}${shared_ext}$major'
17501   shlibpath_var=LD_LIBRARY_PATH
17502   shlibpath_overrides_runpath=yes
17503   hardcode_into_libs=yes
17504   # ldd complains unless libraries are executable
17505   postinstall_cmds='chmod +x $lib'
17506   ;;
17507
17508 sunos4*)
17509   version_type=sunos
17510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17511   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=yes
17514   if test "$with_gnu_ld" = yes; then
17515     need_lib_prefix=no
17516   fi
17517   need_version=yes
17518   ;;
17519
17520 sysv4 | sysv4.3*)
17521   version_type=linux
17522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523   soname_spec='${libname}${release}${shared_ext}$major'
17524   shlibpath_var=LD_LIBRARY_PATH
17525   case $host_vendor in
17526     sni)
17527       shlibpath_overrides_runpath=no
17528       need_lib_prefix=no
17529       export_dynamic_flag_spec='${wl}-Blargedynsym'
17530       runpath_var=LD_RUN_PATH
17531       ;;
17532     siemens)
17533       need_lib_prefix=no
17534       ;;
17535     motorola)
17536       need_lib_prefix=no
17537       need_version=no
17538       shlibpath_overrides_runpath=no
17539       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17540       ;;
17541   esac
17542   ;;
17543
17544 sysv4*MP*)
17545   if test -d /usr/nec ;then
17546     version_type=linux
17547     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17548     soname_spec='$libname${shared_ext}.$major'
17549     shlibpath_var=LD_LIBRARY_PATH
17550   fi
17551   ;;
17552
17553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17554   version_type=freebsd-elf
17555   need_lib_prefix=no
17556   need_version=no
17557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17558   soname_spec='${libname}${release}${shared_ext}$major'
17559   shlibpath_var=LD_LIBRARY_PATH
17560   hardcode_into_libs=yes
17561   if test "$with_gnu_ld" = yes; then
17562     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17563     shlibpath_overrides_runpath=no
17564   else
17565     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17566     shlibpath_overrides_runpath=yes
17567     case $host_os in
17568       sco3.2v5*)
17569         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17570         ;;
17571     esac
17572   fi
17573   sys_lib_dlsearch_path_spec='/usr/lib'
17574   ;;
17575
17576 uts4*)
17577   version_type=linux
17578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579   soname_spec='${libname}${release}${shared_ext}$major'
17580   shlibpath_var=LD_LIBRARY_PATH
17581   ;;
17582
17583 *)
17584   dynamic_linker=no
17585   ;;
17586 esac
17587 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17588 echo "${ECHO_T}$dynamic_linker" >&6
17589 test "$dynamic_linker" = no && can_build_shared=no
17590
17591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17592 if test "$GCC" = yes; then
17593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17594 fi
17595
17596 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17598 hardcode_action_GCJ=
17599 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17600    test -n "$runpath_var_GCJ" || \
17601    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17602
17603   # We can hardcode non-existant directories.
17604   if test "$hardcode_direct_GCJ" != no &&
17605      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17606      # have to relink, otherwise we might link with an installed library
17607      # when we should be linking with a yet-to-be-installed one
17608      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17609      test "$hardcode_minus_L_GCJ" != no; then
17610     # Linking always hardcodes the temporary library directory.
17611     hardcode_action_GCJ=relink
17612   else
17613     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17614     hardcode_action_GCJ=immediate
17615   fi
17616 else
17617   # We cannot hardcode anything, or else we can only hardcode existing
17618   # directories.
17619   hardcode_action_GCJ=unsupported
17620 fi
17621 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17622 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17623
17624 if test "$hardcode_action_GCJ" = relink; then
17625   # Fast installation is not supported
17626   enable_fast_install=no
17627 elif test "$shlibpath_overrides_runpath" = yes ||
17628      test "$enable_shared" = no; then
17629   # Fast installation is not necessary
17630   enable_fast_install=needless
17631 fi
17632
17633
17634 # The else clause should only fire when bootstrapping the
17635 # libtool distribution, otherwise you forgot to ship ltmain.sh
17636 # with your package, and you will get complaints that there are
17637 # no rules to generate ltmain.sh.
17638 if test -f "$ltmain"; then
17639   # See if we are running on zsh, and set the options which allow our commands through
17640   # without removal of \ escapes.
17641   if test -n "${ZSH_VERSION+set}" ; then
17642     setopt NO_GLOB_SUBST
17643   fi
17644   # Now quote all the things that may contain metacharacters while being
17645   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17646   # variables and quote the copies for generation of the libtool script.
17647   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17648     SED SHELL STRIP \
17649     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17650     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17651     deplibs_check_method reload_flag reload_cmds need_locks \
17652     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17653     lt_cv_sys_global_symbol_to_c_name_address \
17654     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17655     old_postinstall_cmds old_postuninstall_cmds \
17656     compiler_GCJ \
17657     CC_GCJ \
17658     LD_GCJ \
17659     lt_prog_compiler_wl_GCJ \
17660     lt_prog_compiler_pic_GCJ \
17661     lt_prog_compiler_static_GCJ \
17662     lt_prog_compiler_no_builtin_flag_GCJ \
17663     export_dynamic_flag_spec_GCJ \
17664     thread_safe_flag_spec_GCJ \
17665     whole_archive_flag_spec_GCJ \
17666     enable_shared_with_static_runtimes_GCJ \
17667     old_archive_cmds_GCJ \
17668     old_archive_from_new_cmds_GCJ \
17669     predep_objects_GCJ \
17670     postdep_objects_GCJ \
17671     predeps_GCJ \
17672     postdeps_GCJ \
17673     compiler_lib_search_path_GCJ \
17674     archive_cmds_GCJ \
17675     archive_expsym_cmds_GCJ \
17676     postinstall_cmds_GCJ \
17677     postuninstall_cmds_GCJ \
17678     old_archive_from_expsyms_cmds_GCJ \
17679     allow_undefined_flag_GCJ \
17680     no_undefined_flag_GCJ \
17681     export_symbols_cmds_GCJ \
17682     hardcode_libdir_flag_spec_GCJ \
17683     hardcode_libdir_flag_spec_ld_GCJ \
17684     hardcode_libdir_separator_GCJ \
17685     hardcode_automatic_GCJ \
17686     module_cmds_GCJ \
17687     module_expsym_cmds_GCJ \
17688     lt_cv_prog_compiler_c_o_GCJ \
17689     exclude_expsyms_GCJ \
17690     include_expsyms_GCJ; do
17691
17692     case $var in
17693     old_archive_cmds_GCJ | \
17694     old_archive_from_new_cmds_GCJ | \
17695     archive_cmds_GCJ | \
17696     archive_expsym_cmds_GCJ | \
17697     module_cmds_GCJ | \
17698     module_expsym_cmds_GCJ | \
17699     old_archive_from_expsyms_cmds_GCJ | \
17700     export_symbols_cmds_GCJ | \
17701     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17702     postinstall_cmds | postuninstall_cmds | \
17703     old_postinstall_cmds | old_postuninstall_cmds | \
17704     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17705       # Double-quote double-evaled strings.
17706       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17707       ;;
17708     *)
17709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17710       ;;
17711     esac
17712   done
17713
17714   case $lt_echo in
17715   *'\$0 --fallback-echo"')
17716     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17717     ;;
17718   esac
17719
17720 cfgfile="$ofile"
17721
17722   cat <<__EOF__ >> "$cfgfile"
17723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17724
17725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17726
17727 # Shell to use when invoking shell scripts.
17728 SHELL=$lt_SHELL
17729
17730 # Whether or not to build shared libraries.
17731 build_libtool_libs=$enable_shared
17732
17733 # Whether or not to build static libraries.
17734 build_old_libs=$enable_static
17735
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17738
17739 # Whether or not to disallow shared libs when runtime libs are static
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17741
17742 # Whether or not to optimize for fast installation.
17743 fast_install=$enable_fast_install
17744
17745 # The host system.
17746 host_alias=$host_alias
17747 host=$host
17748 host_os=$host_os
17749
17750 # The build system.
17751 build_alias=$build_alias
17752 build=$build
17753 build_os=$build_os
17754
17755 # An echo program that does not interpret backslashes.
17756 echo=$lt_echo
17757
17758 # The archiver.
17759 AR=$lt_AR
17760 AR_FLAGS=$lt_AR_FLAGS
17761
17762 # A C compiler.
17763 LTCC=$lt_LTCC
17764
17765 # LTCC compiler flags.
17766 LTCFLAGS=$lt_LTCFLAGS
17767
17768 # A language-specific compiler.
17769 CC=$lt_compiler_GCJ
17770
17771 # Is the compiler the GNU C compiler?
17772 with_gcc=$GCC_GCJ
17773
17774 # An ERE matcher.
17775 EGREP=$lt_EGREP
17776
17777 # The linker used to build libraries.
17778 LD=$lt_LD_GCJ
17779
17780 # Whether we need hard or soft links.
17781 LN_S=$lt_LN_S
17782
17783 # A BSD-compatible nm program.
17784 NM=$lt_NM
17785
17786 # A symbol stripping program
17787 STRIP=$lt_STRIP
17788
17789 # Used to examine libraries when file_magic_cmd begins "file"
17790 MAGIC_CMD=$MAGIC_CMD
17791
17792 # Used on cygwin: DLL creation program.
17793 DLLTOOL="$DLLTOOL"
17794
17795 # Used on cygwin: object dumper.
17796 OBJDUMP="$OBJDUMP"
17797
17798 # Used on cygwin: assembler.
17799 AS="$AS"
17800
17801 # The name of the directory that contains temporary libtool files.
17802 objdir=$objdir
17803
17804 # How to create reloadable object files.
17805 reload_flag=$lt_reload_flag
17806 reload_cmds=$lt_reload_cmds
17807
17808 # How to pass a linker flag through the compiler.
17809 wl=$lt_lt_prog_compiler_wl_GCJ
17810
17811 # Object file suffix (normally "o").
17812 objext="$ac_objext"
17813
17814 # Old archive suffix (normally "a").
17815 libext="$libext"
17816
17817 # Shared library suffix (normally ".so").
17818 shrext_cmds='$shrext_cmds'
17819
17820 # Executable file suffix (normally "").
17821 exeext="$exeext"
17822
17823 # Additional compiler flags for building library objects.
17824 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17825 pic_mode=$pic_mode
17826
17827 # What is the maximum length of a command?
17828 max_cmd_len=$lt_cv_sys_max_cmd_len
17829
17830 # Does compiler simultaneously support -c and -o options?
17831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17832
17833 # Must we lock files when doing compilation?
17834 need_locks=$lt_need_locks
17835
17836 # Do we need the lib prefix for modules?
17837 need_lib_prefix=$need_lib_prefix
17838
17839 # Do we need a version for libraries?
17840 need_version=$need_version
17841
17842 # Whether dlopen is supported.
17843 dlopen_support=$enable_dlopen
17844
17845 # Whether dlopen of programs is supported.
17846 dlopen_self=$enable_dlopen_self
17847
17848 # Whether dlopen of statically linked programs is supported.
17849 dlopen_self_static=$enable_dlopen_self_static
17850
17851 # Compiler flag to prevent dynamic linking.
17852 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17853
17854 # Compiler flag to turn off builtin functions.
17855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17856
17857 # Compiler flag to allow reflexive dlopens.
17858 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17859
17860 # Compiler flag to generate shared objects directly from archives.
17861 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17862
17863 # Compiler flag to generate thread-safe objects.
17864 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17865
17866 # Library versioning type.
17867 version_type=$version_type
17868
17869 # Format of library name prefix.
17870 libname_spec=$lt_libname_spec
17871
17872 # List of archive names.  First name is the real one, the rest are links.
17873 # The last name is the one that the linker finds with -lNAME.
17874 library_names_spec=$lt_library_names_spec
17875
17876 # The coded name of the library, if different from the real name.
17877 soname_spec=$lt_soname_spec
17878
17879 # Commands used to build and install an old-style archive.
17880 RANLIB=$lt_RANLIB
17881 old_archive_cmds=$lt_old_archive_cmds_GCJ
17882 old_postinstall_cmds=$lt_old_postinstall_cmds
17883 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17884
17885 # Create an old-style archive from a shared archive.
17886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17887
17888 # Create a temporary old-style archive to link instead of a shared archive.
17889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17890
17891 # Commands used to build and install a shared archive.
17892 archive_cmds=$lt_archive_cmds_GCJ
17893 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17894 postinstall_cmds=$lt_postinstall_cmds
17895 postuninstall_cmds=$lt_postuninstall_cmds
17896
17897 # Commands used to build a loadable module (assumed same as above if empty)
17898 module_cmds=$lt_module_cmds_GCJ
17899 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17900
17901 # Commands to strip libraries.
17902 old_striplib=$lt_old_striplib
17903 striplib=$lt_striplib
17904
17905 # Dependencies to place before the objects being linked to create a
17906 # shared library.
17907 predep_objects=$lt_predep_objects_GCJ
17908
17909 # Dependencies to place after the objects being linked to create a
17910 # shared library.
17911 postdep_objects=$lt_postdep_objects_GCJ
17912
17913 # Dependencies to place before the objects being linked to create a
17914 # shared library.
17915 predeps=$lt_predeps_GCJ
17916
17917 # Dependencies to place after the objects being linked to create a
17918 # shared library.
17919 postdeps=$lt_postdeps_GCJ
17920
17921 # The library search path used internally by the compiler when linking
17922 # a shared library.
17923 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17924
17925 # Method to check whether dependent libraries are shared objects.
17926 deplibs_check_method=$lt_deplibs_check_method
17927
17928 # Command to use when deplibs_check_method == file_magic.
17929 file_magic_cmd=$lt_file_magic_cmd
17930
17931 # Flag that allows shared libraries with undefined symbols to be built.
17932 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17933
17934 # Flag that forces no undefined symbols.
17935 no_undefined_flag=$lt_no_undefined_flag_GCJ
17936
17937 # Commands used to finish a libtool library installation in a directory.
17938 finish_cmds=$lt_finish_cmds
17939
17940 # Same as above, but a single script fragment to be evaled but not shown.
17941 finish_eval=$lt_finish_eval
17942
17943 # Take the output of nm and produce a listing of raw symbols and C names.
17944 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17945
17946 # Transform the output of nm in a proper C declaration
17947 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17948
17949 # Transform the output of nm in a C name address pair
17950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17951
17952 # This is the shared library runtime path variable.
17953 runpath_var=$runpath_var
17954
17955 # This is the shared library path variable.
17956 shlibpath_var=$shlibpath_var
17957
17958 # Is shlibpath searched before the hard-coded library search path?
17959 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17960
17961 # How to hardcode a shared library path into an executable.
17962 hardcode_action=$hardcode_action_GCJ
17963
17964 # Whether we should hardcode library paths into libraries.
17965 hardcode_into_libs=$hardcode_into_libs
17966
17967 # Flag to hardcode \$libdir into a binary during linking.
17968 # This must work even if \$libdir does not exist.
17969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17970
17971 # If ld is used when linking, flag to hardcode \$libdir into
17972 # a binary during linking. This must work even if \$libdir does
17973 # not exist.
17974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17975
17976 # Whether we need a single -rpath flag with a separated argument.
17977 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17978
17979 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17980 # resulting binary.
17981 hardcode_direct=$hardcode_direct_GCJ
17982
17983 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17984 # resulting binary.
17985 hardcode_minus_L=$hardcode_minus_L_GCJ
17986
17987 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17988 # the resulting binary.
17989 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17990
17991 # Set to yes if building a shared library automatically hardcodes DIR into the library
17992 # and all subsequent libraries and executables linked against it.
17993 hardcode_automatic=$hardcode_automatic_GCJ
17994
17995 # Variables whose values should be saved in libtool wrapper scripts and
17996 # restored at relink time.
17997 variables_saved_for_relink="$variables_saved_for_relink"
17998
17999 # Whether libtool must link a program against all its dependency libraries.
18000 link_all_deplibs=$link_all_deplibs_GCJ
18001
18002 # Compile-time system search path for libraries
18003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18004
18005 # Run-time system search path for libraries
18006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18007
18008 # Fix the shell variable \$srcfile for the compiler.
18009 fix_srcfile_path="$fix_srcfile_path_GCJ"
18010
18011 # Set to yes if exported symbols are required.
18012 always_export_symbols=$always_export_symbols_GCJ
18013
18014 # The commands to list exported symbols.
18015 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18016
18017 # The commands to extract the exported symbol list from a shared archive.
18018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18019
18020 # Symbols that should not be listed in the preloaded symbols.
18021 exclude_expsyms=$lt_exclude_expsyms_GCJ
18022
18023 # Symbols that must always be exported.
18024 include_expsyms=$lt_include_expsyms_GCJ
18025
18026 # ### END LIBTOOL TAG CONFIG: $tagname
18027
18028 __EOF__
18029
18030
18031 else
18032   # If there is no Makefile yet, we rely on a make rule to execute
18033   # `config.status --recheck' to rerun these tests and create the
18034   # libtool script then.
18035   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18036   if test -f "$ltmain_in"; then
18037     test -f Makefile && make "$ltmain"
18038   fi
18039 fi
18040
18041
18042 ac_ext=c
18043 ac_cpp='$CPP $CPPFLAGS'
18044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048 CC="$lt_save_CC"
18049
18050         else
18051           tagname=""
18052         fi
18053         ;;
18054
18055       RC)
18056
18057
18058
18059 # Source file extension for RC test sources.
18060 ac_ext=rc
18061
18062 # Object file extension for compiled RC test sources.
18063 objext=o
18064 objext_RC=$objext
18065
18066 # Code to be used in simple compile tests
18067 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18068
18069 # Code to be used in simple link tests
18070 lt_simple_link_test_code="$lt_simple_compile_test_code"
18071
18072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074 # If no C compiler was specified, use CC.
18075 LTCC=${LTCC-"$CC"}
18076
18077 # If no C compiler flags were specified, use CFLAGS.
18078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18079
18080 # Allow CC to be a program name with arguments.
18081 compiler=$CC
18082
18083
18084 # save warnings/boilerplate of simple test code
18085 ac_outfile=conftest.$ac_objext
18086 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088 _lt_compiler_boilerplate=`cat conftest.err`
18089 $rm conftest*
18090
18091 ac_outfile=conftest.$ac_objext
18092 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18094 _lt_linker_boilerplate=`cat conftest.err`
18095 $rm conftest*
18096
18097
18098 # Allow CC to be a program name with arguments.
18099 lt_save_CC="$CC"
18100 CC=${RC-"windres"}
18101 compiler=$CC
18102 compiler_RC=$CC
18103 for cc_temp in $compiler""; do
18104   case $cc_temp in
18105     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18106     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18107     \-*) ;;
18108     *) break;;
18109   esac
18110 done
18111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18112
18113 lt_cv_prog_compiler_c_o_RC=yes
18114
18115 # The else clause should only fire when bootstrapping the
18116 # libtool distribution, otherwise you forgot to ship ltmain.sh
18117 # with your package, and you will get complaints that there are
18118 # no rules to generate ltmain.sh.
18119 if test -f "$ltmain"; then
18120   # See if we are running on zsh, and set the options which allow our commands through
18121   # without removal of \ escapes.
18122   if test -n "${ZSH_VERSION+set}" ; then
18123     setopt NO_GLOB_SUBST
18124   fi
18125   # Now quote all the things that may contain metacharacters while being
18126   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18127   # variables and quote the copies for generation of the libtool script.
18128   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18129     SED SHELL STRIP \
18130     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18131     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18132     deplibs_check_method reload_flag reload_cmds need_locks \
18133     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18134     lt_cv_sys_global_symbol_to_c_name_address \
18135     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18136     old_postinstall_cmds old_postuninstall_cmds \
18137     compiler_RC \
18138     CC_RC \
18139     LD_RC \
18140     lt_prog_compiler_wl_RC \
18141     lt_prog_compiler_pic_RC \
18142     lt_prog_compiler_static_RC \
18143     lt_prog_compiler_no_builtin_flag_RC \
18144     export_dynamic_flag_spec_RC \
18145     thread_safe_flag_spec_RC \
18146     whole_archive_flag_spec_RC \
18147     enable_shared_with_static_runtimes_RC \
18148     old_archive_cmds_RC \
18149     old_archive_from_new_cmds_RC \
18150     predep_objects_RC \
18151     postdep_objects_RC \
18152     predeps_RC \
18153     postdeps_RC \
18154     compiler_lib_search_path_RC \
18155     archive_cmds_RC \
18156     archive_expsym_cmds_RC \
18157     postinstall_cmds_RC \
18158     postuninstall_cmds_RC \
18159     old_archive_from_expsyms_cmds_RC \
18160     allow_undefined_flag_RC \
18161     no_undefined_flag_RC \
18162     export_symbols_cmds_RC \
18163     hardcode_libdir_flag_spec_RC \
18164     hardcode_libdir_flag_spec_ld_RC \
18165     hardcode_libdir_separator_RC \
18166     hardcode_automatic_RC \
18167     module_cmds_RC \
18168     module_expsym_cmds_RC \
18169     lt_cv_prog_compiler_c_o_RC \
18170     exclude_expsyms_RC \
18171     include_expsyms_RC; do
18172
18173     case $var in
18174     old_archive_cmds_RC | \
18175     old_archive_from_new_cmds_RC | \
18176     archive_cmds_RC | \
18177     archive_expsym_cmds_RC | \
18178     module_cmds_RC | \
18179     module_expsym_cmds_RC | \
18180     old_archive_from_expsyms_cmds_RC | \
18181     export_symbols_cmds_RC | \
18182     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18183     postinstall_cmds | postuninstall_cmds | \
18184     old_postinstall_cmds | old_postuninstall_cmds | \
18185     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18186       # Double-quote double-evaled strings.
18187       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18188       ;;
18189     *)
18190       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18191       ;;
18192     esac
18193   done
18194
18195   case $lt_echo in
18196   *'\$0 --fallback-echo"')
18197     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18198     ;;
18199   esac
18200
18201 cfgfile="$ofile"
18202
18203   cat <<__EOF__ >> "$cfgfile"
18204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18205
18206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18207
18208 # Shell to use when invoking shell scripts.
18209 SHELL=$lt_SHELL
18210
18211 # Whether or not to build shared libraries.
18212 build_libtool_libs=$enable_shared
18213
18214 # Whether or not to build static libraries.
18215 build_old_libs=$enable_static
18216
18217 # Whether or not to add -lc for building shared libraries.
18218 build_libtool_need_lc=$archive_cmds_need_lc_RC
18219
18220 # Whether or not to disallow shared libs when runtime libs are static
18221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18222
18223 # Whether or not to optimize for fast installation.
18224 fast_install=$enable_fast_install
18225
18226 # The host system.
18227 host_alias=$host_alias
18228 host=$host
18229 host_os=$host_os
18230
18231 # The build system.
18232 build_alias=$build_alias
18233 build=$build
18234 build_os=$build_os
18235
18236 # An echo program that does not interpret backslashes.
18237 echo=$lt_echo
18238
18239 # The archiver.
18240 AR=$lt_AR
18241 AR_FLAGS=$lt_AR_FLAGS
18242
18243 # A C compiler.
18244 LTCC=$lt_LTCC
18245
18246 # LTCC compiler flags.
18247 LTCFLAGS=$lt_LTCFLAGS
18248
18249 # A language-specific compiler.
18250 CC=$lt_compiler_RC
18251
18252 # Is the compiler the GNU C compiler?
18253 with_gcc=$GCC_RC
18254
18255 # An ERE matcher.
18256 EGREP=$lt_EGREP
18257
18258 # The linker used to build libraries.
18259 LD=$lt_LD_RC
18260
18261 # Whether we need hard or soft links.
18262 LN_S=$lt_LN_S
18263
18264 # A BSD-compatible nm program.
18265 NM=$lt_NM
18266
18267 # A symbol stripping program
18268 STRIP=$lt_STRIP
18269
18270 # Used to examine libraries when file_magic_cmd begins "file"
18271 MAGIC_CMD=$MAGIC_CMD
18272
18273 # Used on cygwin: DLL creation program.
18274 DLLTOOL="$DLLTOOL"
18275
18276 # Used on cygwin: object dumper.
18277 OBJDUMP="$OBJDUMP"
18278
18279 # Used on cygwin: assembler.
18280 AS="$AS"
18281
18282 # The name of the directory that contains temporary libtool files.
18283 objdir=$objdir
18284
18285 # How to create reloadable object files.
18286 reload_flag=$lt_reload_flag
18287 reload_cmds=$lt_reload_cmds
18288
18289 # How to pass a linker flag through the compiler.
18290 wl=$lt_lt_prog_compiler_wl_RC
18291
18292 # Object file suffix (normally "o").
18293 objext="$ac_objext"
18294
18295 # Old archive suffix (normally "a").
18296 libext="$libext"
18297
18298 # Shared library suffix (normally ".so").
18299 shrext_cmds='$shrext_cmds'
18300
18301 # Executable file suffix (normally "").
18302 exeext="$exeext"
18303
18304 # Additional compiler flags for building library objects.
18305 pic_flag=$lt_lt_prog_compiler_pic_RC
18306 pic_mode=$pic_mode
18307
18308 # What is the maximum length of a command?
18309 max_cmd_len=$lt_cv_sys_max_cmd_len
18310
18311 # Does compiler simultaneously support -c and -o options?
18312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18313
18314 # Must we lock files when doing compilation?
18315 need_locks=$lt_need_locks
18316
18317 # Do we need the lib prefix for modules?
18318 need_lib_prefix=$need_lib_prefix
18319
18320 # Do we need a version for libraries?
18321 need_version=$need_version
18322
18323 # Whether dlopen is supported.
18324 dlopen_support=$enable_dlopen
18325
18326 # Whether dlopen of programs is supported.
18327 dlopen_self=$enable_dlopen_self
18328
18329 # Whether dlopen of statically linked programs is supported.
18330 dlopen_self_static=$enable_dlopen_self_static
18331
18332 # Compiler flag to prevent dynamic linking.
18333 link_static_flag=$lt_lt_prog_compiler_static_RC
18334
18335 # Compiler flag to turn off builtin functions.
18336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18337
18338 # Compiler flag to allow reflexive dlopens.
18339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18340
18341 # Compiler flag to generate shared objects directly from archives.
18342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18343
18344 # Compiler flag to generate thread-safe objects.
18345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18346
18347 # Library versioning type.
18348 version_type=$version_type
18349
18350 # Format of library name prefix.
18351 libname_spec=$lt_libname_spec
18352
18353 # List of archive names.  First name is the real one, the rest are links.
18354 # The last name is the one that the linker finds with -lNAME.
18355 library_names_spec=$lt_library_names_spec
18356
18357 # The coded name of the library, if different from the real name.
18358 soname_spec=$lt_soname_spec
18359
18360 # Commands used to build and install an old-style archive.
18361 RANLIB=$lt_RANLIB
18362 old_archive_cmds=$lt_old_archive_cmds_RC
18363 old_postinstall_cmds=$lt_old_postinstall_cmds
18364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18365
18366 # Create an old-style archive from a shared archive.
18367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18368
18369 # Create a temporary old-style archive to link instead of a shared archive.
18370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18371
18372 # Commands used to build and install a shared archive.
18373 archive_cmds=$lt_archive_cmds_RC
18374 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18375 postinstall_cmds=$lt_postinstall_cmds
18376 postuninstall_cmds=$lt_postuninstall_cmds
18377
18378 # Commands used to build a loadable module (assumed same as above if empty)
18379 module_cmds=$lt_module_cmds_RC
18380 module_expsym_cmds=$lt_module_expsym_cmds_RC
18381
18382 # Commands to strip libraries.
18383 old_striplib=$lt_old_striplib
18384 striplib=$lt_striplib
18385
18386 # Dependencies to place before the objects being linked to create a
18387 # shared library.
18388 predep_objects=$lt_predep_objects_RC
18389
18390 # Dependencies to place after the objects being linked to create a
18391 # shared library.
18392 postdep_objects=$lt_postdep_objects_RC
18393
18394 # Dependencies to place before the objects being linked to create a
18395 # shared library.
18396 predeps=$lt_predeps_RC
18397
18398 # Dependencies to place after the objects being linked to create a
18399 # shared library.
18400 postdeps=$lt_postdeps_RC
18401
18402 # The library search path used internally by the compiler when linking
18403 # a shared library.
18404 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18405
18406 # Method to check whether dependent libraries are shared objects.
18407 deplibs_check_method=$lt_deplibs_check_method
18408
18409 # Command to use when deplibs_check_method == file_magic.
18410 file_magic_cmd=$lt_file_magic_cmd
18411
18412 # Flag that allows shared libraries with undefined symbols to be built.
18413 allow_undefined_flag=$lt_allow_undefined_flag_RC
18414
18415 # Flag that forces no undefined symbols.
18416 no_undefined_flag=$lt_no_undefined_flag_RC
18417
18418 # Commands used to finish a libtool library installation in a directory.
18419 finish_cmds=$lt_finish_cmds
18420
18421 # Same as above, but a single script fragment to be evaled but not shown.
18422 finish_eval=$lt_finish_eval
18423
18424 # Take the output of nm and produce a listing of raw symbols and C names.
18425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18426
18427 # Transform the output of nm in a proper C declaration
18428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18429
18430 # Transform the output of nm in a C name address pair
18431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18432
18433 # This is the shared library runtime path variable.
18434 runpath_var=$runpath_var
18435
18436 # This is the shared library path variable.
18437 shlibpath_var=$shlibpath_var
18438
18439 # Is shlibpath searched before the hard-coded library search path?
18440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18441
18442 # How to hardcode a shared library path into an executable.
18443 hardcode_action=$hardcode_action_RC
18444
18445 # Whether we should hardcode library paths into libraries.
18446 hardcode_into_libs=$hardcode_into_libs
18447
18448 # Flag to hardcode \$libdir into a binary during linking.
18449 # This must work even if \$libdir does not exist.
18450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18451
18452 # If ld is used when linking, flag to hardcode \$libdir into
18453 # a binary during linking. This must work even if \$libdir does
18454 # not exist.
18455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18456
18457 # Whether we need a single -rpath flag with a separated argument.
18458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18459
18460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18461 # resulting binary.
18462 hardcode_direct=$hardcode_direct_RC
18463
18464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18465 # resulting binary.
18466 hardcode_minus_L=$hardcode_minus_L_RC
18467
18468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18469 # the resulting binary.
18470 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18471
18472 # Set to yes if building a shared library automatically hardcodes DIR into the library
18473 # and all subsequent libraries and executables linked against it.
18474 hardcode_automatic=$hardcode_automatic_RC
18475
18476 # Variables whose values should be saved in libtool wrapper scripts and
18477 # restored at relink time.
18478 variables_saved_for_relink="$variables_saved_for_relink"
18479
18480 # Whether libtool must link a program against all its dependency libraries.
18481 link_all_deplibs=$link_all_deplibs_RC
18482
18483 # Compile-time system search path for libraries
18484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18485
18486 # Run-time system search path for libraries
18487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18488
18489 # Fix the shell variable \$srcfile for the compiler.
18490 fix_srcfile_path="$fix_srcfile_path_RC"
18491
18492 # Set to yes if exported symbols are required.
18493 always_export_symbols=$always_export_symbols_RC
18494
18495 # The commands to list exported symbols.
18496 export_symbols_cmds=$lt_export_symbols_cmds_RC
18497
18498 # The commands to extract the exported symbol list from a shared archive.
18499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18500
18501 # Symbols that should not be listed in the preloaded symbols.
18502 exclude_expsyms=$lt_exclude_expsyms_RC
18503
18504 # Symbols that must always be exported.
18505 include_expsyms=$lt_include_expsyms_RC
18506
18507 # ### END LIBTOOL TAG CONFIG: $tagname
18508
18509 __EOF__
18510
18511
18512 else
18513   # If there is no Makefile yet, we rely on a make rule to execute
18514   # `config.status --recheck' to rerun these tests and create the
18515   # libtool script then.
18516   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18517   if test -f "$ltmain_in"; then
18518     test -f Makefile && make "$ltmain"
18519   fi
18520 fi
18521
18522
18523 ac_ext=c
18524 ac_cpp='$CPP $CPPFLAGS'
18525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18528
18529 CC="$lt_save_CC"
18530
18531         ;;
18532
18533       *)
18534         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18535 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18536    { (exit 1); exit 1; }; }
18537         ;;
18538       esac
18539
18540       # Append the new tag name to the list of available tags.
18541       if test -n "$tagname" ; then
18542       available_tags="$available_tags $tagname"
18543     fi
18544     fi
18545   done
18546   IFS="$lt_save_ifs"
18547
18548   # Now substitute the updated list of available tags.
18549   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18550     mv "${ofile}T" "$ofile"
18551     chmod +x "$ofile"
18552   else
18553     rm -f "${ofile}T"
18554     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18555 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18556    { (exit 1); exit 1; }; }
18557   fi
18558 fi
18559
18560
18561
18562 # This can be used to rebuild libtool when needed
18563 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18564
18565 # Always use our own libtool.
18566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18567
18568 # Prevent multiple expansion
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591 # Check whether some low-level functions/files are available
18592 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18593 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18594 if test "${ac_cv_header_stdc+set}" = set; then
18595   echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597   cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603 #include <stdlib.h>
18604 #include <stdarg.h>
18605 #include <string.h>
18606 #include <float.h>
18607
18608 int
18609 main ()
18610 {
18611
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618   (eval $ac_compile) 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } &&
18625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627   (eval $ac_try) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; } &&
18631          { ac_try='test -s conftest.$ac_objext'
18632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633   (eval $ac_try) 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; }; then
18637   ac_cv_header_stdc=yes
18638 else
18639   echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ac_cv_header_stdc=no
18643 fi
18644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18645
18646 if test $ac_cv_header_stdc = yes; then
18647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18648   cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h.  */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h.  */
18654 #include <string.h>
18655
18656 _ACEOF
18657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18658   $EGREP "memchr" >/dev/null 2>&1; then
18659   :
18660 else
18661   ac_cv_header_stdc=no
18662 fi
18663 rm -f conftest*
18664
18665 fi
18666
18667 if test $ac_cv_header_stdc = yes; then
18668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18669   cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h.  */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h.  */
18675 #include <stdlib.h>
18676
18677 _ACEOF
18678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18679   $EGREP "free" >/dev/null 2>&1; then
18680   :
18681 else
18682   ac_cv_header_stdc=no
18683 fi
18684 rm -f conftest*
18685
18686 fi
18687
18688 if test $ac_cv_header_stdc = yes; then
18689   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18690   if test "$cross_compiling" = yes; then
18691   :
18692 else
18693   cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699 #include <ctype.h>
18700 #if ((' ' & 0x0FF) == 0x020)
18701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18703 #else
18704 # define ISLOWER(c) \
18705                    (('a' <= (c) && (c) <= 'i') \
18706                      || ('j' <= (c) && (c) <= 'r') \
18707                      || ('s' <= (c) && (c) <= 'z'))
18708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18709 #endif
18710
18711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18712 int
18713 main ()
18714 {
18715   int i;
18716   for (i = 0; i < 256; i++)
18717     if (XOR (islower (i), ISLOWER (i))
18718         || toupper (i) != TOUPPER (i))
18719       exit(2);
18720   exit (0);
18721 }
18722 _ACEOF
18723 rm -f conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725   (eval $ac_link) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730   (eval $ac_try) 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; }; then
18734   :
18735 else
18736   echo "$as_me: program exited with status $ac_status" >&5
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ( exit $ac_status )
18741 ac_cv_header_stdc=no
18742 fi
18743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18744 fi
18745 fi
18746 fi
18747 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18748 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18749 if test $ac_cv_header_stdc = yes; then
18750
18751 cat >>confdefs.h <<\_ACEOF
18752 #define STDC_HEADERS 1
18753 _ACEOF
18754
18755 fi
18756
18757
18758 # These are tested for by AC_HEADER_STDC, but I check again to set the var
18759 if test "${ac_cv_header_stdint_h+set}" = set; then
18760   echo "$as_me:$LINENO: checking for stdint.h" >&5
18761 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
18762 if test "${ac_cv_header_stdint_h+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 fi
18765 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
18766 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
18767 else
18768   # Is the header compilable?
18769 echo "$as_me:$LINENO: checking stdint.h usability" >&5
18770 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18777 $ac_includes_default
18778 #include <stdint.h>
18779 _ACEOF
18780 rm -f conftest.$ac_objext
18781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18782   (eval $ac_compile) 2>conftest.er1
18783   ac_status=$?
18784   grep -v '^ *+' conftest.er1 >conftest.err
18785   rm -f conftest.er1
18786   cat conftest.err >&5
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } &&
18789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791   (eval $ac_try) 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; } &&
18795          { ac_try='test -s conftest.$ac_objext'
18796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797   (eval $ac_try) 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; }; then
18801   ac_header_compiler=yes
18802 else
18803   echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_header_compiler=no
18807 fi
18808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18810 echo "${ECHO_T}$ac_header_compiler" >&6
18811
18812 # Is the header present?
18813 echo "$as_me:$LINENO: checking stdint.h presence" >&5
18814 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821 #include <stdint.h>
18822 _ACEOF
18823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18825   ac_status=$?
18826   grep -v '^ *+' conftest.er1 >conftest.err
18827   rm -f conftest.er1
18828   cat conftest.err >&5
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } >/dev/null; then
18831   if test -s conftest.err; then
18832     ac_cpp_err=$ac_c_preproc_warn_flag
18833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18834   else
18835     ac_cpp_err=
18836   fi
18837 else
18838   ac_cpp_err=yes
18839 fi
18840 if test -z "$ac_cpp_err"; then
18841   ac_header_preproc=yes
18842 else
18843   echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846   ac_header_preproc=no
18847 fi
18848 rm -f conftest.err conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850 echo "${ECHO_T}$ac_header_preproc" >&6
18851
18852 # So?  What about this header?
18853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18854   yes:no: )
18855     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
18856 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
18858 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
18859     ac_header_preproc=yes
18860     ;;
18861   no:yes:* )
18862     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
18863 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
18864     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
18865 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
18866     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
18867 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
18868     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
18869 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18870     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
18871 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
18872     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
18873 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
18874     (
18875       cat <<\_ASBOX
18876 ## ------------------------------------ ##
18877 ## Report this to opensource@google.com ##
18878 ## ------------------------------------ ##
18879 _ASBOX
18880     ) |
18881       sed "s/^/$as_me: WARNING:     /" >&2
18882     ;;
18883 esac
18884 echo "$as_me:$LINENO: checking for stdint.h" >&5
18885 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
18886 if test "${ac_cv_header_stdint_h+set}" = set; then
18887   echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889   ac_cv_header_stdint_h=$ac_header_preproc
18890 fi
18891 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
18892 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
18893
18894 fi
18895 if test $ac_cv_header_stdint_h = yes; then
18896   ac_cv_have_stdint_h=1
18897 else
18898   ac_cv_have_stdint_h=0
18899 fi
18900
18901
18902 if test "${ac_cv_header_sys_types_h+set}" = set; then
18903   echo "$as_me:$LINENO: checking for sys/types.h" >&5
18904 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
18905 if test "${ac_cv_header_sys_types_h+set}" = set; then
18906   echo $ECHO_N "(cached) $ECHO_C" >&6
18907 fi
18908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
18909 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
18910 else
18911   # Is the header compilable?
18912 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
18913 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920 $ac_includes_default
18921 #include <sys/types.h>
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925   (eval $ac_compile) 2>conftest.er1
18926   ac_status=$?
18927   grep -v '^ *+' conftest.er1 >conftest.err
18928   rm -f conftest.er1
18929   cat conftest.err >&5
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); } &&
18932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest.$ac_objext'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; }; then
18944   ac_header_compiler=yes
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 ac_header_compiler=no
18950 fi
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18953 echo "${ECHO_T}$ac_header_compiler" >&6
18954
18955 # Is the header present?
18956 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
18957 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
18958 cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964 #include <sys/types.h>
18965 _ACEOF
18966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } >/dev/null; then
18974   if test -s conftest.err; then
18975     ac_cpp_err=$ac_c_preproc_warn_flag
18976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18977   else
18978     ac_cpp_err=
18979   fi
18980 else
18981   ac_cpp_err=yes
18982 fi
18983 if test -z "$ac_cpp_err"; then
18984   ac_header_preproc=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989   ac_header_preproc=no
18990 fi
18991 rm -f conftest.err conftest.$ac_ext
18992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18993 echo "${ECHO_T}$ac_header_preproc" >&6
18994
18995 # So?  What about this header?
18996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18997   yes:no: )
18998     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
18999 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19000     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19001 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19002     ac_header_preproc=yes
19003     ;;
19004   no:yes:* )
19005     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19006 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19007     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19008 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19009     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19010 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19011     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19012 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19015     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19016 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19017     (
19018       cat <<\_ASBOX
19019 ## ------------------------------------ ##
19020 ## Report this to opensource@google.com ##
19021 ## ------------------------------------ ##
19022 _ASBOX
19023     ) |
19024       sed "s/^/$as_me: WARNING:     /" >&2
19025     ;;
19026 esac
19027 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19028 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19029 if test "${ac_cv_header_sys_types_h+set}" = set; then
19030   echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032   ac_cv_header_sys_types_h=$ac_header_preproc
19033 fi
19034 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19035 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19036
19037 fi
19038 if test $ac_cv_header_sys_types_h = yes; then
19039   ac_cv_have_systypes_h=1
19040 else
19041   ac_cv_have_systypes_h=0
19042 fi
19043
19044
19045 if test "${ac_cv_header_inttypes_h+set}" = set; then
19046   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19047 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19048 if test "${ac_cv_header_inttypes_h+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 fi
19051 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19052 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19053 else
19054   # Is the header compilable?
19055 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19056 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19057 cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063 $ac_includes_default
19064 #include <inttypes.h>
19065 _ACEOF
19066 rm -f conftest.$ac_objext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19068   (eval $ac_compile) 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077   (eval $ac_try) 2>&5
19078   ac_status=$?
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); }; } &&
19081          { ac_try='test -s conftest.$ac_objext'
19082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083   (eval $ac_try) 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); }; }; then
19087   ac_header_compiler=yes
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_header_compiler=no
19093 fi
19094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19096 echo "${ECHO_T}$ac_header_compiler" >&6
19097
19098 # Is the header present?
19099 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19100 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 #include <inttypes.h>
19108 _ACEOF
19109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } >/dev/null; then
19117   if test -s conftest.err; then
19118     ac_cpp_err=$ac_c_preproc_warn_flag
19119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19120   else
19121     ac_cpp_err=
19122   fi
19123 else
19124   ac_cpp_err=yes
19125 fi
19126 if test -z "$ac_cpp_err"; then
19127   ac_header_preproc=yes
19128 else
19129   echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132   ac_header_preproc=no
19133 fi
19134 rm -f conftest.err conftest.$ac_ext
19135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19136 echo "${ECHO_T}$ac_header_preproc" >&6
19137
19138 # So?  What about this header?
19139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19140   yes:no: )
19141     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19142 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19143     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19144 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19145     ac_header_preproc=yes
19146     ;;
19147   no:yes:* )
19148     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19149 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19150     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
19151 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
19152     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19153 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19154     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
19155 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19156     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19157 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19158     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19159 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
19160     (
19161       cat <<\_ASBOX
19162 ## ------------------------------------ ##
19163 ## Report this to opensource@google.com ##
19164 ## ------------------------------------ ##
19165 _ASBOX
19166     ) |
19167       sed "s/^/$as_me: WARNING:     /" >&2
19168     ;;
19169 esac
19170 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19171 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19172 if test "${ac_cv_header_inttypes_h+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   ac_cv_header_inttypes_h=$ac_header_preproc
19176 fi
19177 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19178 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19179
19180 fi
19181 if test $ac_cv_header_inttypes_h = yes; then
19182   ac_cv_have_inttypes_h=1
19183 else
19184   ac_cv_have_inttypes_h=0
19185 fi
19186
19187
19188
19189 for ac_header in syscall.h
19190 do
19191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19193   echo "$as_me:$LINENO: checking for $ac_header" >&5
19194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 fi
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19200 else
19201   # Is the header compilable?
19202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 $ac_includes_default
19211 #include <$ac_header>
19212 _ACEOF
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215   (eval $ac_compile) 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } &&
19222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } &&
19228          { ac_try='test -s conftest.$ac_objext'
19229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230   (eval $ac_try) 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; }; then
19234   ac_header_compiler=yes
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 ac_header_compiler=no
19240 fi
19241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19243 echo "${ECHO_T}$ac_header_compiler" >&6
19244
19245 # Is the header present?
19246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19248 cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 #include <$ac_header>
19255 _ACEOF
19256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } >/dev/null; then
19264   if test -s conftest.err; then
19265     ac_cpp_err=$ac_c_preproc_warn_flag
19266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19267   else
19268     ac_cpp_err=
19269   fi
19270 else
19271   ac_cpp_err=yes
19272 fi
19273 if test -z "$ac_cpp_err"; then
19274   ac_header_preproc=yes
19275 else
19276   echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279   ac_header_preproc=no
19280 fi
19281 rm -f conftest.err conftest.$ac_ext
19282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19283 echo "${ECHO_T}$ac_header_preproc" >&6
19284
19285 # So?  What about this header?
19286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19287   yes:no: )
19288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19292     ac_header_preproc=yes
19293     ;;
19294   no:yes:* )
19295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19307     (
19308       cat <<\_ASBOX
19309 ## ------------------------------------ ##
19310 ## Report this to opensource@google.com ##
19311 ## ------------------------------------ ##
19312 _ASBOX
19313     ) |
19314       sed "s/^/$as_me: WARNING:     /" >&2
19315     ;;
19316 esac
19317 echo "$as_me:$LINENO: checking for $ac_header" >&5
19318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19320   echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322   eval "$as_ac_Header=\$ac_header_preproc"
19323 fi
19324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19326
19327 fi
19328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19329   cat >>confdefs.h <<_ACEOF
19330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19331 _ACEOF
19332
19333 fi
19334
19335 done
19336
19337
19338 for ac_header in sys/syscall.h
19339 do
19340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342   echo "$as_me:$LINENO: checking for $ac_header" >&5
19343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19345   echo $ECHO_N "(cached) $ECHO_C" >&6
19346 fi
19347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19349 else
19350   # Is the header compilable?
19351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359 $ac_includes_default
19360 #include <$ac_header>
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364   (eval $ac_compile) 2>conftest.er1
19365   ac_status=$?
19366   grep -v '^ *+' conftest.er1 >conftest.err
19367   rm -f conftest.er1
19368   cat conftest.err >&5
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); } &&
19371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest.$ac_objext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   ac_header_compiler=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_header_compiler=no
19389 fi
19390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 echo "${ECHO_T}$ac_header_compiler" >&6
19393
19394 # Is the header present?
19395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 #include <$ac_header>
19404 _ACEOF
19405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19407   ac_status=$?
19408   grep -v '^ *+' conftest.er1 >conftest.err
19409   rm -f conftest.er1
19410   cat conftest.err >&5
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } >/dev/null; then
19413   if test -s conftest.err; then
19414     ac_cpp_err=$ac_c_preproc_warn_flag
19415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19416   else
19417     ac_cpp_err=
19418   fi
19419 else
19420   ac_cpp_err=yes
19421 fi
19422 if test -z "$ac_cpp_err"; then
19423   ac_header_preproc=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428   ac_header_preproc=no
19429 fi
19430 rm -f conftest.err conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6
19433
19434 # So?  What about this header?
19435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19436   yes:no: )
19437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19441     ac_header_preproc=yes
19442     ;;
19443   no:yes:* )
19444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19456     (
19457       cat <<\_ASBOX
19458 ## ------------------------------------ ##
19459 ## Report this to opensource@google.com ##
19460 ## ------------------------------------ ##
19461 _ASBOX
19462     ) |
19463       sed "s/^/$as_me: WARNING:     /" >&2
19464     ;;
19465 esac
19466 echo "$as_me:$LINENO: checking for $ac_header" >&5
19467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469   echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471   eval "$as_ac_Header=\$ac_header_preproc"
19472 fi
19473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19475
19476 fi
19477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19478   cat >>confdefs.h <<_ACEOF
19479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19480 _ACEOF
19481
19482 fi
19483
19484 done
19485
19486 # For backtrace with glibc.
19487 # TODO(hamaji): Support other platforms using libgcc.
19488
19489 for ac_header in execinfo.h
19490 do
19491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19493   echo "$as_me:$LINENO: checking for $ac_header" >&5
19494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19496   echo $ECHO_N "(cached) $ECHO_C" >&6
19497 fi
19498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19500 else
19501   # Is the header compilable?
19502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510 $ac_includes_default
19511 #include <$ac_header>
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515   (eval $ac_compile) 2>conftest.er1
19516   ac_status=$?
19517   grep -v '^ *+' conftest.er1 >conftest.err
19518   rm -f conftest.er1
19519   cat conftest.err >&5
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } &&
19522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524   (eval $ac_try) 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; } &&
19528          { ac_try='test -s conftest.$ac_objext'
19529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530   (eval $ac_try) 2>&5
19531   ac_status=$?
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); }; }; then
19534   ac_header_compiler=yes
19535 else
19536   echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19538
19539 ac_header_compiler=no
19540 fi
19541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19543 echo "${ECHO_T}$ac_header_compiler" >&6
19544
19545 # Is the header present?
19546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #include <$ac_header>
19555 _ACEOF
19556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } >/dev/null; then
19564   if test -s conftest.err; then
19565     ac_cpp_err=$ac_c_preproc_warn_flag
19566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19567   else
19568     ac_cpp_err=
19569   fi
19570 else
19571   ac_cpp_err=yes
19572 fi
19573 if test -z "$ac_cpp_err"; then
19574   ac_header_preproc=yes
19575 else
19576   echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579   ac_header_preproc=no
19580 fi
19581 rm -f conftest.err conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19583 echo "${ECHO_T}$ac_header_preproc" >&6
19584
19585 # So?  What about this header?
19586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19587   yes:no: )
19588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19592     ac_header_preproc=yes
19593     ;;
19594   no:yes:* )
19595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19607     (
19608       cat <<\_ASBOX
19609 ## ------------------------------------ ##
19610 ## Report this to opensource@google.com ##
19611 ## ------------------------------------ ##
19612 _ASBOX
19613     ) |
19614       sed "s/^/$as_me: WARNING:     /" >&2
19615     ;;
19616 esac
19617 echo "$as_me:$LINENO: checking for $ac_header" >&5
19618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   eval "$as_ac_Header=\$ac_header_preproc"
19623 fi
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626
19627 fi
19628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629   cat >>confdefs.h <<_ACEOF
19630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19631 _ACEOF
19632
19633 fi
19634
19635 done
19636
19637
19638 echo "$as_me:$LINENO: checking for void *" >&5
19639 echo $ECHO_N "checking for void *... $ECHO_C" >&6
19640 if test "${ac_cv_type_void_p+set}" = set; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643   cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649 $ac_includes_default
19650 int
19651 main ()
19652 {
19653 if ((void * *) 0)
19654   return 0;
19655 if (sizeof (void *))
19656   return 0;
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663   (eval $ac_compile) 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672   (eval $ac_try) 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; } &&
19676          { ac_try='test -s conftest.$ac_objext'
19677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678   (eval $ac_try) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; }; then
19682   ac_cv_type_void_p=yes
19683 else
19684   echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687 ac_cv_type_void_p=no
19688 fi
19689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19690 fi
19691 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19692 echo "${ECHO_T}$ac_cv_type_void_p" >&6
19693
19694 echo "$as_me:$LINENO: checking size of void *" >&5
19695 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
19696 if test "${ac_cv_sizeof_void_p+set}" = set; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   if test "$ac_cv_type_void_p" = yes; then
19700   # The cast to unsigned long works around a bug in the HP C Compiler
19701   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19702   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19703   # This bug is HP SR number 8606223364.
19704   if test "$cross_compiling" = yes; then
19705   # Depending upon the size, compute the lo and hi bounds.
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712 $ac_includes_default
19713 int
19714 main ()
19715 {
19716 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
19717 test_array [0] = 0
19718
19719   ;
19720   return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725   (eval $ac_compile) 2>conftest.er1
19726   ac_status=$?
19727   grep -v '^ *+' conftest.er1 >conftest.err
19728   rm -f conftest.er1
19729   cat conftest.err >&5
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } &&
19732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734   (eval $ac_try) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; } &&
19738          { ac_try='test -s conftest.$ac_objext'
19739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740   (eval $ac_try) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; }; then
19744   ac_lo=0 ac_mid=0
19745   while :; do
19746     cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752 $ac_includes_default
19753 int
19754 main ()
19755 {
19756 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19757 test_array [0] = 0
19758
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19765   (eval $ac_compile) 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } &&
19772          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774   (eval $ac_try) 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; } &&
19778          { ac_try='test -s conftest.$ac_objext'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   ac_hi=$ac_mid; break
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 ac_lo=`expr $ac_mid + 1`
19790                     if test $ac_lo -le $ac_mid; then
19791                       ac_lo= ac_hi=
19792                       break
19793                     fi
19794                     ac_mid=`expr 2 '*' $ac_mid + 1`
19795 fi
19796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19797   done
19798 else
19799   echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802 cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808 $ac_includes_default
19809 int
19810 main ()
19811 {
19812 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19813 test_array [0] = 0
19814
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19821   (eval $ac_compile) 2>conftest.er1
19822   ac_status=$?
19823   grep -v '^ *+' conftest.er1 >conftest.err
19824   rm -f conftest.er1
19825   cat conftest.err >&5
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); } &&
19828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830   (eval $ac_try) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; } &&
19834          { ac_try='test -s conftest.$ac_objext'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   ac_hi=-1 ac_mid=-1
19841   while :; do
19842     cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h.  */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h.  */
19848 $ac_includes_default
19849 int
19850 main ()
19851 {
19852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19853 test_array [0] = 0
19854
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19861   (eval $ac_compile) 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } &&
19868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; } &&
19874          { ac_try='test -s conftest.$ac_objext'
19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876   (eval $ac_try) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; }; then
19880   ac_lo=$ac_mid; break
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 ac_hi=`expr '(' $ac_mid ')' - 1`
19886                        if test $ac_mid -le $ac_hi; then
19887                          ac_lo= ac_hi=
19888                          break
19889                        fi
19890                        ac_mid=`expr 2 '*' $ac_mid`
19891 fi
19892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19893   done
19894 else
19895   echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898 ac_lo= ac_hi=
19899 fi
19900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19901 fi
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19903 # Binary search between lo and hi bounds.
19904 while test "x$ac_lo" != "x$ac_hi"; do
19905   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 $ac_includes_default
19913 int
19914 main ()
19915 {
19916 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19917 test_array [0] = 0
19918
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925   (eval $ac_compile) 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } &&
19932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; } &&
19938          { ac_try='test -s conftest.$ac_objext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_hi=$ac_mid
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ac_lo=`expr '(' $ac_mid ')' + 1`
19950 fi
19951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19952 done
19953 case $ac_lo in
19954 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19956 See \`config.log' for more details." >&5
19957 echo "$as_me: error: cannot compute sizeof (void *), 77
19958 See \`config.log' for more details." >&2;}
19959    { (exit 1); exit 1; }; } ;;
19960 esac
19961 else
19962   if test "$cross_compiling" = yes; then
19963   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19964 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19965    { (exit 1); exit 1; }; }
19966 else
19967   cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 $ac_includes_default
19974 long longval () { return (long) (sizeof (void *)); }
19975 unsigned long ulongval () { return (long) (sizeof (void *)); }
19976 #include <stdio.h>
19977 #include <stdlib.h>
19978 int
19979 main ()
19980 {
19981
19982   FILE *f = fopen ("conftest.val", "w");
19983   if (! f)
19984     exit (1);
19985   if (((long) (sizeof (void *))) < 0)
19986     {
19987       long i = longval ();
19988       if (i != ((long) (sizeof (void *))))
19989         exit (1);
19990       fprintf (f, "%ld\n", i);
19991     }
19992   else
19993     {
19994       unsigned long i = ulongval ();
19995       if (i != ((long) (sizeof (void *))))
19996         exit (1);
19997       fprintf (f, "%lu\n", i);
19998     }
19999   exit (ferror (f) || fclose (f) != 0);
20000
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007   (eval $ac_link) 2>&5
20008   ac_status=$?
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012   (eval $ac_try) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   ac_cv_sizeof_void_p=`cat conftest.val`
20017 else
20018   echo "$as_me: program exited with status $ac_status" >&5
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ( exit $ac_status )
20023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
20024 See \`config.log' for more details." >&5
20025 echo "$as_me: error: cannot compute sizeof (void *), 77
20026 See \`config.log' for more details." >&2;}
20027    { (exit 1); exit 1; }; }
20028 fi
20029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20030 fi
20031 fi
20032 rm -f conftest.val
20033 else
20034   ac_cv_sizeof_void_p=0
20035 fi
20036 fi
20037 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20038 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
20039 cat >>confdefs.h <<_ACEOF
20040 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20041 _ACEOF
20042
20043
20044
20045 # These are the types I need.  We look for them in either stdint.h,
20046 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
20047 echo "$as_me:$LINENO: checking for uint16_t" >&5
20048 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
20049 if test "${ac_cv_type_uint16_t+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 $ac_includes_default
20059 int
20060 main ()
20061 {
20062 if ((uint16_t *) 0)
20063   return 0;
20064 if (sizeof (uint16_t))
20065   return 0;
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 rm -f conftest.$ac_objext
20071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20072   (eval $ac_compile) 2>conftest.er1
20073   ac_status=$?
20074   grep -v '^ *+' conftest.er1 >conftest.err
20075   rm -f conftest.er1
20076   cat conftest.err >&5
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } &&
20079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081   (eval $ac_try) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; } &&
20085          { ac_try='test -s conftest.$ac_objext'
20086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087   (eval $ac_try) 2>&5
20088   ac_status=$?
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); }; }; then
20091   ac_cv_type_uint16_t=yes
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096 ac_cv_type_uint16_t=no
20097 fi
20098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20099 fi
20100 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
20101 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
20102 if test $ac_cv_type_uint16_t = yes; then
20103   ac_cv_have_uint16_t=1
20104 else
20105   ac_cv_have_uint16_t=0
20106 fi
20107
20108 echo "$as_me:$LINENO: checking for u_int16_t" >&5
20109 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
20110 if test "${ac_cv_type_u_int16_t+set}" = set; then
20111   echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 $ac_includes_default
20120 int
20121 main ()
20122 {
20123 if ((u_int16_t *) 0)
20124   return 0;
20125 if (sizeof (u_int16_t))
20126   return 0;
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20133   (eval $ac_compile) 2>conftest.er1
20134   ac_status=$?
20135   grep -v '^ *+' conftest.er1 >conftest.err
20136   rm -f conftest.er1
20137   cat conftest.err >&5
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); } &&
20140          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142   (eval $ac_try) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; } &&
20146          { ac_try='test -s conftest.$ac_objext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   ac_cv_type_u_int16_t=yes
20153 else
20154   echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 ac_cv_type_u_int16_t=no
20158 fi
20159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20160 fi
20161 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
20162 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
20163 if test $ac_cv_type_u_int16_t = yes; then
20164   ac_cv_have_u_int16_t=1
20165 else
20166   ac_cv_have_u_int16_t=0
20167 fi
20168
20169 echo "$as_me:$LINENO: checking for __uint16" >&5
20170 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6
20171 if test "${ac_cv_type___uint16+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174   cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180 $ac_includes_default
20181 int
20182 main ()
20183 {
20184 if ((__uint16 *) 0)
20185   return 0;
20186 if (sizeof (__uint16))
20187   return 0;
20188   ;
20189   return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194   (eval $ac_compile) 2>conftest.er1
20195   ac_status=$?
20196   grep -v '^ *+' conftest.er1 >conftest.err
20197   rm -f conftest.er1
20198   cat conftest.err >&5
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } &&
20201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; } &&
20207          { ac_try='test -s conftest.$ac_objext'
20208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209   (eval $ac_try) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_type___uint16=yes
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ac_cv_type___uint16=no
20219 fi
20220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20221 fi
20222 echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
20223 echo "${ECHO_T}$ac_cv_type___uint16" >&6
20224 if test $ac_cv_type___uint16 = yes; then
20225   ac_cv_have___uint16=1
20226 else
20227   ac_cv_have___uint16=0
20228 fi
20229
20230
20231 echo "$as_me:$LINENO: checking for sigaltstack" >&5
20232 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6
20233 if test "${ac_cv_func_sigaltstack+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
20243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20244 #define sigaltstack innocuous_sigaltstack
20245
20246 /* System header to define __stub macros and hopefully few prototypes,
20247     which can conflict with char sigaltstack (); below.
20248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249     <limits.h> exists even on freestanding compilers.  */
20250
20251 #ifdef __STDC__
20252 # include <limits.h>
20253 #else
20254 # include <assert.h>
20255 #endif
20256
20257 #undef sigaltstack
20258
20259 /* Override any gcc2 internal prototype to avoid an error.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 {
20263 #endif
20264 /* We use char because int might match the return type of a gcc2
20265    builtin and then its argument prototype would still apply.  */
20266 char sigaltstack ();
20267 /* The GNU C library defines this for functions which it implements
20268     to always fail with ENOSYS.  Some functions are actually named
20269     something starting with __ and the normal name is an alias.  */
20270 #if defined (__stub_sigaltstack) || defined (__stub___sigaltstack)
20271 choke me
20272 #else
20273 char (*f) () = sigaltstack;
20274 #endif
20275 #ifdef __cplusplus
20276 }
20277 #endif
20278
20279 int
20280 main ()
20281 {
20282 return f != sigaltstack;
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289   (eval $ac_link) 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } &&
20296          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298   (eval $ac_try) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; } &&
20302          { ac_try='test -s conftest$ac_exeext'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; }; then
20308   ac_cv_func_sigaltstack=yes
20309 else
20310   echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_cv_func_sigaltstack=no
20314 fi
20315 rm -f conftest.err conftest.$ac_objext \
20316       conftest$ac_exeext conftest.$ac_ext
20317 fi
20318 echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
20319 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6
20320 if test $ac_cv_func_sigaltstack = yes; then
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_SIGALTSTACK 1
20324 _ACEOF
20325
20326 fi
20327
20328 echo "$as_me:$LINENO: checking for dladdr" >&5
20329 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6
20330 if test "${ac_cv_func_dladdr+set}" = set; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
20340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20341 #define dladdr innocuous_dladdr
20342
20343 /* System header to define __stub macros and hopefully few prototypes,
20344     which can conflict with char dladdr (); below.
20345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20346     <limits.h> exists even on freestanding compilers.  */
20347
20348 #ifdef __STDC__
20349 # include <limits.h>
20350 #else
20351 # include <assert.h>
20352 #endif
20353
20354 #undef dladdr
20355
20356 /* Override any gcc2 internal prototype to avoid an error.  */
20357 #ifdef __cplusplus
20358 extern "C"
20359 {
20360 #endif
20361 /* We use char because int might match the return type of a gcc2
20362    builtin and then its argument prototype would still apply.  */
20363 char dladdr ();
20364 /* The GNU C library defines this for functions which it implements
20365     to always fail with ENOSYS.  Some functions are actually named
20366     something starting with __ and the normal name is an alias.  */
20367 #if defined (__stub_dladdr) || defined (__stub___dladdr)
20368 choke me
20369 #else
20370 char (*f) () = dladdr;
20371 #endif
20372 #ifdef __cplusplus
20373 }
20374 #endif
20375
20376 int
20377 main ()
20378 {
20379 return f != dladdr;
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20386   (eval $ac_link) 2>conftest.er1
20387   ac_status=$?
20388   grep -v '^ *+' conftest.er1 >conftest.err
20389   rm -f conftest.er1
20390   cat conftest.err >&5
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); } &&
20393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395   (eval $ac_try) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; } &&
20399          { ac_try='test -s conftest$ac_exeext'
20400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401   (eval $ac_try) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_cv_func_dladdr=yes
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_cv_func_dladdr=no
20411 fi
20412 rm -f conftest.err conftest.$ac_objext \
20413       conftest$ac_exeext conftest.$ac_ext
20414 fi
20415 echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
20416 echo "${ECHO_T}$ac_cv_func_dladdr" >&6
20417 if test $ac_cv_func_dladdr = yes; then
20418
20419 cat >>confdefs.h <<\_ACEOF
20420 #define HAVE_DLADDR 1
20421 _ACEOF
20422
20423 fi
20424
20425
20426
20427   echo "$as_me:$LINENO: checking for __attribute__" >&5
20428 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
20429   if test "${ac_cv___attribute__+set}" = set; then
20430   echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432
20433     cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439 #include <stdlib.h>
20440        static void foo(void) __attribute__ ((unused));
20441        void foo(void) { exit(1); }
20442 int
20443 main ()
20444 {
20445
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452   (eval $ac_compile) 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } &&
20459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461   (eval $ac_try) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); }; } &&
20465          { ac_try='test -s conftest.$ac_objext'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_cv___attribute__=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ac_cv___attribute__=no
20477
20478 fi
20479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20480 fi
20481
20482   if test "$ac_cv___attribute__" = "yes"; then
20483
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE___ATTRIBUTE__ 1
20486 _ACEOF
20487
20488   fi
20489   echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
20490 echo "${ECHO_T}$ac_cv___attribute__" >&6
20491
20492 # We only care about these two attributes.
20493 if test x"$ac_cv___attribute__" = x"yes"; then
20494   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
20495   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
20496 else
20497   ac_cv___attribute___noreturn=
20498   ac_cv___attribute___printf_4_5=
20499 fi
20500
20501
20502   echo "$as_me:$LINENO: checking for __builtin_expect" >&5
20503 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
20504   if test "${ac_cv___builtin_expect+set}" = set; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507
20508     cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
20515 int
20516 main ()
20517 {
20518
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 rm -f conftest.$ac_objext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20525   (eval $ac_compile) 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } &&
20532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; } &&
20538          { ac_try='test -s conftest.$ac_objext'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544   ac_cv___builtin_expect=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv___builtin_expect=no
20550
20551 fi
20552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20553 fi
20554
20555   if test "$ac_cv___builtin_expect" = "yes"; then
20556
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE___BUILTIN_EXPECT 1
20559 _ACEOF
20560
20561   fi
20562   echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
20563 echo "${ECHO_T}$ac_cv___builtin_expect" >&6
20564
20565 if test x"$ac_cv___builtin_expect" = x"yes"; then
20566   ac_cv_have___builtin_expect=1
20567 else
20568   ac_cv_have___builtin_expect=0
20569 fi
20570
20571 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
20572 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
20573 # Check whether --enable-frame_pointers or --disable-frame_pointers was given.
20574 if test "${enable_frame_pointers+set}" = set; then
20575   enableval="$enable_frame_pointers"
20576   enable_frame_pointers=no
20577 fi;
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584
20585 int
20586 main ()
20587 {
20588 return __x86_64__ == 1 ? 0 : 1
20589   ;
20590   return 0;
20591 }
20592 _ACEOF
20593 rm -f conftest.$ac_objext
20594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20595   (eval $ac_compile) 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } &&
20602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604   (eval $ac_try) 2>&5
20605   ac_status=$?
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); }; } &&
20608          { ac_try='test -s conftest.$ac_objext'
20609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610   (eval $ac_try) 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); }; }; then
20614   is_x86_64=yes
20615 else
20616   echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 is_x86_64=no
20620 fi
20621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20622
20623
20624 if test "$enable_frame_pointers" = yes; then
20625   ENABLE_FRAME_POINTERS_TRUE=
20626   ENABLE_FRAME_POINTERS_FALSE='#'
20627 else
20628   ENABLE_FRAME_POINTERS_TRUE='#'
20629   ENABLE_FRAME_POINTERS_FALSE=
20630 fi
20631
20632
20633
20634 if test "$is_x86_64" = yes; then
20635   X86_64_TRUE=
20636   X86_64_FALSE='#'
20637 else
20638   X86_64_TRUE='#'
20639   X86_64_FALSE=
20640 fi
20641
20642
20643 # Some of the code in this directory depends on pthreads
20644
20645
20646
20647
20648 ac_ext=c
20649 ac_cpp='$CPP $CPPFLAGS'
20650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20653
20654 acx_pthread_ok=no
20655
20656 # We used to check for pthread.h first, but this fails if pthread.h
20657 # requires special compiler flags (e.g. on True64 or Sequent).
20658 # It gets checked for in the link test anyway.
20659
20660 # First of all, check if the user has set any of the PTHREAD_LIBS,
20661 # etcetera environment variables, and if threads linking works using
20662 # them:
20663 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20664         save_CFLAGS="$CFLAGS"
20665         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20666         save_LIBS="$LIBS"
20667         LIBS="$PTHREAD_LIBS $LIBS"
20668         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20669 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
20670         cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676
20677 /* Override any gcc2 internal prototype to avoid an error.  */
20678 #ifdef __cplusplus
20679 extern "C"
20680 #endif
20681 /* We use char because int might match the return type of a gcc2
20682    builtin and then its argument prototype would still apply.  */
20683 char pthread_join ();
20684 int
20685 main ()
20686 {
20687 pthread_join ();
20688   ;
20689   return 0;
20690 }
20691 _ACEOF
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20694   (eval $ac_link) 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } &&
20701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; } &&
20707          { ac_try='test -s conftest$ac_exeext'
20708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709   (eval $ac_try) 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   acx_pthread_ok=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 fi
20719 rm -f conftest.err conftest.$ac_objext \
20720       conftest$ac_exeext conftest.$ac_ext
20721         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20722 echo "${ECHO_T}$acx_pthread_ok" >&6
20723         if test x"$acx_pthread_ok" = xno; then
20724                 PTHREAD_LIBS=""
20725                 PTHREAD_CFLAGS=""
20726         fi
20727         LIBS="$save_LIBS"
20728         CFLAGS="$save_CFLAGS"
20729 fi
20730
20731 # We must check for the threads library under a number of different
20732 # names; the ordering is very important because some systems
20733 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20734 # libraries is broken (non-POSIX).
20735
20736 # Create a list of thread flags to try.  Items starting with a "-" are
20737 # C compiler flags, and other items are library names, except for "none"
20738 # which indicates that we try without any flags at all, and "pthread-config"
20739 # which is a program returning the flags for the Pth emulation library.
20740
20741 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20742
20743 # The ordering *is* (sometimes) important.  Some notes on the
20744 # individual items follow:
20745
20746 # pthreads: AIX (must check this before -lpthread)
20747 # none: in case threads are in libc; should be tried before -Kthread and
20748 #       other compiler flags to prevent continual compiler warnings
20749 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20750 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20751 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20752 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20753 # -pthreads: Solaris/gcc
20754 # -mthreads: Mingw32/gcc, Lynx/gcc
20755 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20756 #      doesn't hurt to check since this sometimes defines pthreads too;
20757 #      also defines -D_REENTRANT)
20758 #      ... -mt is also the pthreads flag for HP/aCC
20759 # pthread: Linux, etcetera
20760 # --thread-safe: KAI C++
20761 # pthread-config: use pthread-config program (for GNU Pth library)
20762
20763 case "${host_cpu}-${host_os}" in
20764         *solaris*)
20765
20766         # On Solaris (at least, for some versions), libc contains stubbed
20767         # (non-functional) versions of the pthreads routines, so link-based
20768         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
20769         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20770         # a function called by this macro, so we could check for that, but
20771         # who knows whether they'll stub that too in a future libc.)  So,
20772         # we'll just look for -pthreads and -lpthread first:
20773
20774         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20775         ;;
20776 esac
20777
20778 if test x"$acx_pthread_ok" = xno; then
20779 for flag in $acx_pthread_flags; do
20780
20781         case $flag in
20782                 none)
20783                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20784 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
20785                 ;;
20786
20787                 -*)
20788                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20789 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
20790                 PTHREAD_CFLAGS="$flag"
20791                 ;;
20792
20793                 pthread-config)
20794                 # Extract the first word of "pthread-config", so it can be a program name with args.
20795 set dummy pthread-config; ac_word=$2
20796 echo "$as_me:$LINENO: checking for $ac_word" >&5
20797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20798 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801   if test -n "$acx_pthread_config"; then
20802   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20803 else
20804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20805 for as_dir in $PATH
20806 do
20807   IFS=$as_save_IFS
20808   test -z "$as_dir" && as_dir=.
20809   for ac_exec_ext in '' $ac_executable_extensions; do
20810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20811     ac_cv_prog_acx_pthread_config="yes"
20812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20813     break 2
20814   fi
20815 done
20816 done
20817
20818   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20819 fi
20820 fi
20821 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20822 if test -n "$acx_pthread_config"; then
20823   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20824 echo "${ECHO_T}$acx_pthread_config" >&6
20825 else
20826   echo "$as_me:$LINENO: result: no" >&5
20827 echo "${ECHO_T}no" >&6
20828 fi
20829
20830                 if test x"$acx_pthread_config" = xno; then continue; fi
20831                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20832                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20833                 ;;
20834
20835                 *)
20836                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20837 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
20838                 PTHREAD_LIBS="-l$flag"
20839                 ;;
20840         esac
20841
20842         save_LIBS="$LIBS"
20843         save_CFLAGS="$CFLAGS"
20844         LIBS="$PTHREAD_LIBS $LIBS"
20845         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20846
20847         # Check for various functions.  We must include pthread.h,
20848         # since some functions may be macros.  (On the Sequent, we
20849         # need a special flag -Kthread to make this header compile.)
20850         # We check for pthread_join because it is in -lpthread on IRIX
20851         # while pthread_create is in libc.  We check for pthread_attr_init
20852         # due to DEC craziness with -lpthreads.  We check for
20853         # pthread_cleanup_push because it is one of the few pthread
20854         # functions on Solaris that doesn't have a non-functional libc stub.
20855         # We try pthread_create on general principles.
20856         cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h.  */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h.  */
20862 #include <pthread.h>
20863 int
20864 main ()
20865 {
20866 pthread_t th; pthread_join(th, 0);
20867                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20868                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875   (eval $ac_link) 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } &&
20882          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; } &&
20888          { ac_try='test -s conftest$ac_exeext'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   acx_pthread_ok=yes
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899 fi
20900 rm -f conftest.err conftest.$ac_objext \
20901       conftest$ac_exeext conftest.$ac_ext
20902
20903         LIBS="$save_LIBS"
20904         CFLAGS="$save_CFLAGS"
20905
20906         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20907 echo "${ECHO_T}$acx_pthread_ok" >&6
20908         if test "x$acx_pthread_ok" = xyes; then
20909                 break;
20910         fi
20911
20912         PTHREAD_LIBS=""
20913         PTHREAD_CFLAGS=""
20914 done
20915 fi
20916
20917 # Various other checks:
20918 if test "x$acx_pthread_ok" = xyes; then
20919         save_LIBS="$LIBS"
20920         LIBS="$PTHREAD_LIBS $LIBS"
20921         save_CFLAGS="$CFLAGS"
20922         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20923
20924         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20925         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20926 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
20927         attr_name=unknown
20928         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20929             cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h.  */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h.  */
20935 #include <pthread.h>
20936 int
20937 main ()
20938 {
20939 int attr=$attr; return attr;
20940   ;
20941   return 0;
20942 }
20943 _ACEOF
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20946   (eval $ac_link) 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } &&
20953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955   (eval $ac_try) 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); }; } &&
20959          { ac_try='test -s conftest$ac_exeext'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; }; then
20965   attr_name=$attr; break
20966 else
20967   echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970 fi
20971 rm -f conftest.err conftest.$ac_objext \
20972       conftest$ac_exeext conftest.$ac_ext
20973         done
20974         echo "$as_me:$LINENO: result: $attr_name" >&5
20975 echo "${ECHO_T}$attr_name" >&6
20976         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20977
20978 cat >>confdefs.h <<_ACEOF
20979 #define PTHREAD_CREATE_JOINABLE $attr_name
20980 _ACEOF
20981
20982         fi
20983
20984         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
20985 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
20986         flag=no
20987         case "${host_cpu}-${host_os}" in
20988             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20989             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20990         esac
20991         echo "$as_me:$LINENO: result: ${flag}" >&5
20992 echo "${ECHO_T}${flag}" >&6
20993         if test "x$flag" != xno; then
20994             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20995         fi
20996
20997         LIBS="$save_LIBS"
20998         CFLAGS="$save_CFLAGS"
20999         # More AIX lossage: must compile with xlc_r or cc_r
21000         if test x"$GCC" != xyes; then
21001           for ac_prog in xlc_r cc_r
21002 do
21003   # Extract the first word of "$ac_prog", so it can be a program name with args.
21004 set dummy $ac_prog; ac_word=$2
21005 echo "$as_me:$LINENO: checking for $ac_word" >&5
21006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21007 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21008   echo $ECHO_N "(cached) $ECHO_C" >&6
21009 else
21010   if test -n "$PTHREAD_CC"; then
21011   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21012 else
21013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014 for as_dir in $PATH
21015 do
21016   IFS=$as_save_IFS
21017   test -z "$as_dir" && as_dir=.
21018   for ac_exec_ext in '' $ac_executable_extensions; do
21019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21020     ac_cv_prog_PTHREAD_CC="$ac_prog"
21021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21022     break 2
21023   fi
21024 done
21025 done
21026
21027 fi
21028 fi
21029 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21030 if test -n "$PTHREAD_CC"; then
21031   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21032 echo "${ECHO_T}$PTHREAD_CC" >&6
21033 else
21034   echo "$as_me:$LINENO: result: no" >&5
21035 echo "${ECHO_T}no" >&6
21036 fi
21037
21038   test -n "$PTHREAD_CC" && break
21039 done
21040 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
21041
21042         else
21043           PTHREAD_CC=$CC
21044         fi
21045
21046    # The next part tries to detect GCC inconsistency with -shared on some
21047    # architectures and systems. The problem is that in certain
21048    # configurations, when -shared is specified, GCC "forgets" to
21049    # internally use various flags which are still necessary.
21050
21051    echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
21052 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6
21053    check_inconsistencies=yes
21054    case "${host_cpu}-${host_os}" in
21055      *-darwin*) check_inconsistencies=no ;;
21056    esac
21057    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
21058       echo "$as_me:$LINENO: result: no" >&5
21059 echo "${ECHO_T}no" >&6
21060    else
21061       echo "$as_me:$LINENO: result: yes" >&5
21062 echo "${ECHO_T}yes" >&6
21063
21064       # In order not to create several levels of indentation, we test
21065       # the value of "$ok" until we find out the cure or run out of
21066       # ideas.
21067       ok="no"
21068
21069       #
21070       # Prepare the flags
21071       #
21072       save_CFLAGS="$CFLAGS"
21073       save_LIBS="$LIBS"
21074       save_CC="$CC"
21075       # Try with the flags determined by the earlier checks.
21076       #
21077       # -Wl,-z,defs forces link-time symbol resolution, so that the
21078       # linking checks with -shared actually have any value
21079       #
21080       # FIXME: -fPIC is required for -shared on many architectures,
21081       # so we specify it here, but the right way would probably be to
21082       # properly detect whether it is actually required.
21083       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
21084       LIBS="$PTHREAD_LIBS $LIBS"
21085       CC="$PTHREAD_CC"
21086
21087       echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
21088 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6
21089       cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095 #include <pthread.h>
21096 int
21097 main ()
21098 {
21099 pthread_t th; pthread_join(th, 0);
21100          pthread_attr_init(0); pthread_cleanup_push(0, 0);
21101          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108   (eval $ac_link) 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } &&
21115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; } &&
21121          { ac_try='test -s conftest$ac_exeext'
21122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123   (eval $ac_try) 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ok=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 fi
21133 rm -f conftest.err conftest.$ac_objext \
21134       conftest$ac_exeext conftest.$ac_ext
21135
21136       if test "x$ok" = xyes; then
21137          echo "$as_me:$LINENO: result: yes" >&5
21138 echo "${ECHO_T}yes" >&6
21139       else
21140          echo "$as_me:$LINENO: result: no" >&5
21141 echo "${ECHO_T}no" >&6
21142       fi
21143
21144       #
21145       # Linux gcc on some architectures such as mips/mipsel forgets
21146       # about -lpthread
21147       #
21148       if test x"$ok" = xno; then
21149          echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
21150 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6
21151          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
21152          cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158 #include <pthread.h>
21159 int
21160 main ()
21161 {
21162 pthread_t th; pthread_join(th, 0);
21163             pthread_attr_init(0); pthread_cleanup_push(0, 0);
21164             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21165   ;
21166   return 0;
21167 }
21168 _ACEOF
21169 rm -f conftest.$ac_objext conftest$ac_exeext
21170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21171   (eval $ac_link) 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } &&
21178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180   (eval $ac_try) 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }; } &&
21184          { ac_try='test -s conftest$ac_exeext'
21185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186   (eval $ac_try) 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; }; then
21190   ok=yes
21191 else
21192   echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195 fi
21196 rm -f conftest.err conftest.$ac_objext \
21197       conftest$ac_exeext conftest.$ac_ext
21198
21199          if test "x$ok" = xyes; then
21200             echo "$as_me:$LINENO: result: yes" >&5
21201 echo "${ECHO_T}yes" >&6
21202             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
21203          else
21204             echo "$as_me:$LINENO: result: no" >&5
21205 echo "${ECHO_T}no" >&6
21206          fi
21207       fi
21208       #
21209       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
21210       #
21211       if test x"$ok" = xno; then
21212          echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
21213 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6
21214          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
21215          cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221 #include <pthread.h>
21222 int
21223 main ()
21224 {
21225 pthread_t th; pthread_join(th, 0);
21226               pthread_attr_init(0); pthread_cleanup_push(0, 0);
21227               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21228   ;
21229   return 0;
21230 }
21231 _ACEOF
21232 rm -f conftest.$ac_objext conftest$ac_exeext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21234   (eval $ac_link) 2>conftest.er1
21235   ac_status=$?
21236   grep -v '^ *+' conftest.er1 >conftest.err
21237   rm -f conftest.er1
21238   cat conftest.err >&5
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); } &&
21241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243   (eval $ac_try) 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; } &&
21247          { ac_try='test -s conftest$ac_exeext'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253   ok=yes
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 fi
21259 rm -f conftest.err conftest.$ac_objext \
21260       conftest$ac_exeext conftest.$ac_ext
21261
21262          if test "x$ok" = xyes; then
21263             echo "$as_me:$LINENO: result: yes" >&5
21264 echo "${ECHO_T}yes" >&6
21265             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
21266          else
21267             echo "$as_me:$LINENO: result: no" >&5
21268 echo "${ECHO_T}no" >&6
21269          fi
21270       fi
21271       if test x"$ok" = xno; then
21272          # OK, we have run out of ideas
21273          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
21274 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
21275
21276          # so it's not safe to assume that we may use pthreads
21277          acx_pthread_ok=no
21278       fi
21279
21280       CFLAGS="$save_CFLAGS"
21281       LIBS="$save_LIBS"
21282       CC="$save_CC"
21283    fi
21284 else
21285         PTHREAD_CC="$CC"
21286 fi
21287
21288
21289
21290
21291
21292 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21293 if test x"$acx_pthread_ok" = xyes; then
21294
21295 cat >>confdefs.h <<\_ACEOF
21296 #define HAVE_PTHREAD 1
21297 _ACEOF
21298
21299         :
21300 else
21301         acx_pthread_ok=no
21302
21303 fi
21304 ac_ext=c
21305 ac_cpp='$CPP $CPPFLAGS'
21306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21309
21310
21311
21312 # Check if there is google-gflags library installed.
21313 echo "$as_me:$LINENO: checking for main in -lgflags" >&5
21314 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6
21315 if test "${ac_cv_lib_gflags_main+set}" = set; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   ac_check_lib_save_LIBS=$LIBS
21319 LIBS="-lgflags  $LIBS"
21320 cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326
21327
21328 int
21329 main ()
21330 {
21331 main ();
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext conftest$ac_exeext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21338   (eval $ac_link) 2>conftest.er1
21339   ac_status=$?
21340   grep -v '^ *+' conftest.er1 >conftest.err
21341   rm -f conftest.er1
21342   cat conftest.err >&5
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); } &&
21345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347   (eval $ac_try) 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; } &&
21351          { ac_try='test -s conftest$ac_exeext'
21352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353   (eval $ac_try) 2>&5
21354   ac_status=$?
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); }; }; then
21357   ac_cv_lib_gflags_main=yes
21358 else
21359   echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21361
21362 ac_cv_lib_gflags_main=no
21363 fi
21364 rm -f conftest.err conftest.$ac_objext \
21365       conftest$ac_exeext conftest.$ac_ext
21366 LIBS=$ac_check_lib_save_LIBS
21367 fi
21368 echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
21369 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6
21370 if test $ac_cv_lib_gflags_main = yes; then
21371   ac_cv_have_libgflags=1
21372 else
21373   ac_cv_have_libgflags=0
21374 fi
21375
21376 if test x"$ac_cv_have_libgflags" = x"1"; then
21377   GFLAGS_LIBS=-lgflags
21378
21379 cat >>confdefs.h <<\_ACEOF
21380 #define HAVE_LIB_GFLAGS 1
21381 _ACEOF
21382
21383 else
21384   GFLAGS_LIBS=
21385 fi
21386
21387 # We'd like to use read/write locks in several places in the code.
21388 # See if our pthreads support extends to that.  Note: for linux, it
21389 # does as long as you define _XOPEN_SOURCE appropriately.
21390 echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
21391 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6
21392 if test "${ac_rwlock+set}" = set; then
21393   echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395
21396
21397  ac_ext=c
21398 ac_cpp='$CPP $CPPFLAGS'
21399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21402
21403  cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 #define _XOPEN_SOURCE 500
21410                  #include <pthread.h>
21411 int
21412 main ()
21413 {
21414 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
21415                  pthread_rwlock_rdlock(&l);
21416                  return 0;
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21423   (eval $ac_compile) 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } &&
21430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; } &&
21436          { ac_try='test -s conftest.$ac_objext'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   ac_rwlock=yes
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447 ac_rwlock=no
21448 fi
21449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21450  ac_ext=c
21451 ac_cpp='$CPP $CPPFLAGS'
21452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21455
21456
21457 fi
21458 echo "$as_me:$LINENO: result: $ac_rwlock" >&5
21459 echo "${ECHO_T}$ac_rwlock" >&6
21460 if test "$ac_rwlock" = yes; then
21461
21462 cat >>confdefs.h <<\_ACEOF
21463 #define HAVE_RWLOCK 1
21464 _ACEOF
21465
21466 fi
21467
21468
21469 # Find out what namespace 'normal' STL code lives in, and also what namespace
21470 # the user wants our classes to be defined in
21471 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21472 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21473 if test "${ac_cv_cxx_namespaces+set}" = set; then
21474   echo $ECHO_N "(cached) $ECHO_C" >&6
21475 else
21476
21477
21478                   ac_ext=cc
21479 ac_cpp='$CXXCPP $CPPFLAGS'
21480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21483
21484                   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 namespace Outer {
21491                                     namespace Inner { int i = 0; }}
21492 int
21493 main ()
21494 {
21495 using namespace Outer::Inner; return i;
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21502   (eval $ac_compile) 2>conftest.er1
21503   ac_status=$?
21504   grep -v '^ *+' conftest.er1 >conftest.err
21505   rm -f conftest.er1
21506   cat conftest.err >&5
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } &&
21509          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; } &&
21515          { ac_try='test -s conftest.$ac_objext'
21516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517   (eval $ac_try) 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); }; }; then
21521   ac_cv_cxx_namespaces=yes
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_cv_cxx_namespaces=no
21527 fi
21528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21529                   ac_ext=c
21530 ac_cpp='$CPP $CPPFLAGS'
21531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21534
21535 fi
21536 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21537 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21538   if test "$ac_cv_cxx_namespaces" = yes; then
21539
21540 cat >>confdefs.h <<\_ACEOF
21541 #define HAVE_NAMESPACES 1
21542 _ACEOF
21543
21544   fi
21545 echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
21546 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6
21547 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550
21551
21552
21553       ac_ext=cc
21554 ac_cpp='$CXXCPP $CPPFLAGS'
21555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21558
21559       cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h.  */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h.  */
21565 #include <vector>
21566 int
21567 main ()
21568 {
21569 vector<int> t; return 0;
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576   (eval $ac_compile) 2>conftest.er1
21577   ac_status=$?
21578   grep -v '^ *+' conftest.er1 >conftest.err
21579   rm -f conftest.er1
21580   cat conftest.err >&5
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } &&
21583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585   (eval $ac_try) 2>&5
21586   ac_status=$?
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); }; } &&
21589          { ac_try='test -s conftest.$ac_objext'
21590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591   (eval $ac_try) 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; }; then
21595   ac_cv_cxx_stl_namespace=none
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 fi
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602       cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 #include <vector>
21609 int
21610 main ()
21611 {
21612 std::vector<int> t; return 0;
21613   ;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21619   (eval $ac_compile) 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } &&
21626          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628   (eval $ac_try) 2>&5
21629   ac_status=$?
21630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631   (exit $ac_status); }; } &&
21632          { ac_try='test -s conftest.$ac_objext'
21633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634   (eval $ac_try) 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); }; }; then
21638   ac_cv_cxx_stl_namespace=std
21639 else
21640   echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21642
21643 fi
21644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21645       ac_ext=c
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21650
21651 fi
21652 echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
21653 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6
21654    if test "$ac_cv_cxx_stl_namespace" = none; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define STL_NAMESPACE
21658 _ACEOF
21659
21660    fi
21661    if test "$ac_cv_cxx_stl_namespace" = std; then
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define STL_NAMESPACE std
21665 _ACEOF
21666
21667    fi
21668
21669 google_namespace_default=google
21670    # Check whether --enable-namespace or --disable-namespace was given.
21671 if test "${enable_namespace+set}" = set; then
21672   enableval="$enable_namespace"
21673   case "$enableval" in
21674                     yes) google_namespace="$google_namespace_default" ;;
21675                      no) google_namespace="" ;;
21676                       *) google_namespace="$enableval" ;;
21677                   esac
21678 else
21679   google_namespace="$google_namespace_default"
21680 fi;
21681    if test -n "$google_namespace"; then
21682      ac_google_namespace="$google_namespace"
21683      ac_google_start_namespace="namespace $google_namespace {"
21684      ac_google_end_namespace="}"
21685    else
21686      ac_google_namespace=""
21687      ac_google_start_namespace=""
21688      ac_google_end_namespace=""
21689    fi
21690
21691 cat >>confdefs.h <<_ACEOF
21692 #define GOOGLE_NAMESPACE $ac_google_namespace
21693 _ACEOF
21694
21695
21696 cat >>confdefs.h <<_ACEOF
21697 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
21698 _ACEOF
21699
21700
21701 cat >>confdefs.h <<_ACEOF
21702 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
21703 _ACEOF
21704
21705
21706
21707 echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
21708 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6
21709 if test "${ac_cv_cxx_using_operator+set}" = set; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712
21713
21714        ac_ext=cc
21715 ac_cpp='$CXXCPP $CPPFLAGS'
21716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21719
21720        cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h.  */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h.  */
21726 #include <iostream>
21727                        std::ostream& operator<<(std::ostream&, struct s);
21728 int
21729 main ()
21730 {
21731 using ::operator<<; return 0;
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21738   (eval $ac_compile) 2>conftest.er1
21739   ac_status=$?
21740   grep -v '^ *+' conftest.er1 >conftest.err
21741   rm -f conftest.er1
21742   cat conftest.err >&5
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); } &&
21745          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; } &&
21751          { ac_try='test -s conftest.$ac_objext'
21752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753   (eval $ac_try) 2>&5
21754   ac_status=$?
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); }; }; then
21757   ac_cv_cxx_using_operator=1
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 ac_cv_cxx_using_operator=0
21763 fi
21764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21765       ac_ext=c
21766 ac_cpp='$CPP $CPPFLAGS'
21767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21770
21771 fi
21772 echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
21773 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6
21774   if test "$ac_cv_cxx_using_operator" = 1; then
21775
21776 cat >>confdefs.h <<\_ACEOF
21777 #define HAVE_USING_OPERATOR 1
21778 _ACEOF
21779
21780   fi
21781
21782 # These are what's needed by logging.h.in and raw_logging.h.in
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799 # Write generated configuration file
21800                                                   ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
21801
21802 cat >confcache <<\_ACEOF
21803 # This file is a shell script that caches the results of configure
21804 # tests run on this system so they can be shared between configure
21805 # scripts and configure runs, see configure's option --config-cache.
21806 # It is not useful on other systems.  If it contains results you don't
21807 # want to keep, you may remove or edit it.
21808 #
21809 # config.status only pays attention to the cache file if you give it
21810 # the --recheck option to rerun configure.
21811 #
21812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21814 # following values.
21815
21816 _ACEOF
21817
21818 # The following way of writing the cache mishandles newlines in values,
21819 # but we know of no workaround that is simple, portable, and efficient.
21820 # So, don't put newlines in cache variables' values.
21821 # Ultrix sh set writes to stderr and can't be redirected directly,
21822 # and sets the high bit in the cache file unless we assign to the vars.
21823 {
21824   (set) 2>&1 |
21825     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21826     *ac_space=\ *)
21827       # `set' does not quote correctly, so add quotes (double-quote
21828       # substitution turns \\\\ into \\, and sed turns \\ into \).
21829       sed -n \
21830         "s/'/'\\\\''/g;
21831           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21832       ;;
21833     *)
21834       # `set' quotes correctly as required by POSIX, so do not add quotes.
21835       sed -n \
21836         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21837       ;;
21838     esac;
21839 } |
21840   sed '
21841      t clear
21842      : clear
21843      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21844      t end
21845      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21846      : end' >>confcache
21847 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21848   if test -w $cache_file; then
21849     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21850     cat confcache >$cache_file
21851   else
21852     echo "not updating unwritable cache $cache_file"
21853   fi
21854 fi
21855 rm -f confcache
21856
21857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21858 # Let make expand exec_prefix.
21859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21860
21861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21863 # trailing colons and then remove the whole line if VPATH becomes empty
21864 # (actually we leave an empty line to preserve line numbers).
21865 if test "x$srcdir" = x.; then
21866   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21867 s/:*\$(srcdir):*/:/;
21868 s/:*\${srcdir}:*/:/;
21869 s/:*@srcdir@:*/:/;
21870 s/^\([^=]*=[     ]*\):*/\1/;
21871 s/:*$//;
21872 s/^[^=]*=[       ]*$//;
21873 }'
21874 fi
21875
21876 DEFS=-DHAVE_CONFIG_H
21877
21878 ac_libobjs=
21879 ac_ltlibobjs=
21880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21881   # 1. Remove the extension, and $U if already installed.
21882   ac_i=`echo "$ac_i" |
21883          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21884   # 2. Add them.
21885   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21886   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21887 done
21888 LIBOBJS=$ac_libobjs
21889
21890 LTLIBOBJS=$ac_ltlibobjs
21891
21892
21893 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21894   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21895 Usually this means the macro was only invoked conditionally." >&5
21896 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21897 Usually this means the macro was only invoked conditionally." >&2;}
21898    { (exit 1); exit 1; }; }
21899 fi
21900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21901   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21902 Usually this means the macro was only invoked conditionally." >&5
21903 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21904 Usually this means the macro was only invoked conditionally." >&2;}
21905    { (exit 1); exit 1; }; }
21906 fi
21907 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21908   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21909 Usually this means the macro was only invoked conditionally." >&5
21910 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21911 Usually this means the macro was only invoked conditionally." >&2;}
21912    { (exit 1); exit 1; }; }
21913 fi
21914 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
21915   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
21916 Usually this means the macro was only invoked conditionally." >&5
21917 echo "$as_me: error: conditional \"GCC\" was never defined.
21918 Usually this means the macro was only invoked conditionally." >&2;}
21919    { (exit 1); exit 1; }; }
21920 fi
21921 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
21922   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
21923 Usually this means the macro was only invoked conditionally." >&5
21924 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
21925 Usually this means the macro was only invoked conditionally." >&2;}
21926    { (exit 1); exit 1; }; }
21927 fi
21928 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
21929   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
21930 Usually this means the macro was only invoked conditionally." >&5
21931 echo "$as_me: error: conditional \"X86_64\" was never defined.
21932 Usually this means the macro was only invoked conditionally." >&2;}
21933    { (exit 1); exit 1; }; }
21934 fi
21935
21936 : ${CONFIG_STATUS=./config.status}
21937 ac_clean_files_save=$ac_clean_files
21938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21941 cat >$CONFIG_STATUS <<_ACEOF
21942 #! $SHELL
21943 # Generated by $as_me.
21944 # Run this file to recreate the current configuration.
21945 # Compiler output produced by configure, useful for debugging
21946 # configure, is in config.log if it exists.
21947
21948 debug=false
21949 ac_cs_recheck=false
21950 ac_cs_silent=false
21951 SHELL=\${CONFIG_SHELL-$SHELL}
21952 _ACEOF
21953
21954 cat >>$CONFIG_STATUS <<\_ACEOF
21955 ## --------------------- ##
21956 ## M4sh Initialization.  ##
21957 ## --------------------- ##
21958
21959 # Be Bourne compatible
21960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21961   emulate sh
21962   NULLCMD=:
21963   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21964   # is contrary to our usage.  Disable this feature.
21965   alias -g '${1+"$@"}'='"$@"'
21966 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21967   set -o posix
21968 fi
21969 DUALCASE=1; export DUALCASE # for MKS sh
21970
21971 # Support unset when possible.
21972 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21973   as_unset=unset
21974 else
21975   as_unset=false
21976 fi
21977
21978
21979 # Work around bugs in pre-3.0 UWIN ksh.
21980 $as_unset ENV MAIL MAILPATH
21981 PS1='$ '
21982 PS2='> '
21983 PS4='+ '
21984
21985 # NLS nuisances.
21986 for as_var in \
21987   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21988   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21989   LC_TELEPHONE LC_TIME
21990 do
21991   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21992     eval $as_var=C; export $as_var
21993   else
21994     $as_unset $as_var
21995   fi
21996 done
21997
21998 # Required to use basename.
21999 if expr a : '\(a\)' >/dev/null 2>&1; then
22000   as_expr=expr
22001 else
22002   as_expr=false
22003 fi
22004
22005 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22006   as_basename=basename
22007 else
22008   as_basename=false
22009 fi
22010
22011
22012 # Name of the executable.
22013 as_me=`$as_basename "$0" ||
22014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22015          X"$0" : 'X\(//\)$' \| \
22016          X"$0" : 'X\(/\)$' \| \
22017          .     : '\(.\)' 2>/dev/null ||
22018 echo X/"$0" |
22019     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22020           /^X\/\(\/\/\)$/{ s//\1/; q; }
22021           /^X\/\(\/\).*/{ s//\1/; q; }
22022           s/.*/./; q'`
22023
22024
22025 # PATH needs CR, and LINENO needs CR and PATH.
22026 # Avoid depending upon Character Ranges.
22027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22030 as_cr_digits='0123456789'
22031 as_cr_alnum=$as_cr_Letters$as_cr_digits
22032
22033 # The user is always right.
22034 if test "${PATH_SEPARATOR+set}" != set; then
22035   echo "#! /bin/sh" >conf$$.sh
22036   echo  "exit 0"   >>conf$$.sh
22037   chmod +x conf$$.sh
22038   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22039     PATH_SEPARATOR=';'
22040   else
22041     PATH_SEPARATOR=:
22042   fi
22043   rm -f conf$$.sh
22044 fi
22045
22046
22047   as_lineno_1=$LINENO
22048   as_lineno_2=$LINENO
22049   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22050   test "x$as_lineno_1" != "x$as_lineno_2" &&
22051   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22052   # Find who we are.  Look in the path if we contain no path at all
22053   # relative or not.
22054   case $0 in
22055     *[\\/]* ) as_myself=$0 ;;
22056     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22057 for as_dir in $PATH
22058 do
22059   IFS=$as_save_IFS
22060   test -z "$as_dir" && as_dir=.
22061   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22062 done
22063
22064        ;;
22065   esac
22066   # We did not find ourselves, most probably we were run as `sh COMMAND'
22067   # in which case we are not to be found in the path.
22068   if test "x$as_myself" = x; then
22069     as_myself=$0
22070   fi
22071   if test ! -f "$as_myself"; then
22072     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22073 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22074    { (exit 1); exit 1; }; }
22075   fi
22076   case $CONFIG_SHELL in
22077   '')
22078     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22079 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22080 do
22081   IFS=$as_save_IFS
22082   test -z "$as_dir" && as_dir=.
22083   for as_base in sh bash ksh sh5; do
22084          case $as_dir in
22085          /*)
22086            if ("$as_dir/$as_base" -c '
22087   as_lineno_1=$LINENO
22088   as_lineno_2=$LINENO
22089   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22090   test "x$as_lineno_1" != "x$as_lineno_2" &&
22091   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22092              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22093              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22094              CONFIG_SHELL=$as_dir/$as_base
22095              export CONFIG_SHELL
22096              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22097            fi;;
22098          esac
22099        done
22100 done
22101 ;;
22102   esac
22103
22104   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22105   # uniformly replaced by the line number.  The first 'sed' inserts a
22106   # line-number line before each line; the second 'sed' does the real
22107   # work.  The second script uses 'N' to pair each line-number line
22108   # with the numbered line, and appends trailing '-' during
22109   # substitution so that $LINENO is not a special case at line end.
22110   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22111   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22112   sed '=' <$as_myself |
22113     sed '
22114       N
22115       s,$,-,
22116       : loop
22117       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22118       t loop
22119       s,-$,,
22120       s,^['$as_cr_digits']*\n,,
22121     ' >$as_me.lineno &&
22122   chmod +x $as_me.lineno ||
22123     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22124 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22125    { (exit 1); exit 1; }; }
22126
22127   # Don't try to exec as it changes $[0], causing all sort of problems
22128   # (the dirname of $[0] is not the place where we might find the
22129   # original and so on.  Autoconf is especially sensible to this).
22130   . ./$as_me.lineno
22131   # Exit status is that of the last command.
22132   exit
22133 }
22134
22135
22136 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22137   *c*,-n*) ECHO_N= ECHO_C='
22138 ' ECHO_T='      ' ;;
22139   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22140   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22141 esac
22142
22143 if expr a : '\(a\)' >/dev/null 2>&1; then
22144   as_expr=expr
22145 else
22146   as_expr=false
22147 fi
22148
22149 rm -f conf$$ conf$$.exe conf$$.file
22150 echo >conf$$.file
22151 if ln -s conf$$.file conf$$ 2>/dev/null; then
22152   # We could just check for DJGPP; but this test a) works b) is more generic
22153   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22154   if test -f conf$$.exe; then
22155     # Don't use ln at all; we don't have any links
22156     as_ln_s='cp -p'
22157   else
22158     as_ln_s='ln -s'
22159   fi
22160 elif ln conf$$.file conf$$ 2>/dev/null; then
22161   as_ln_s=ln
22162 else
22163   as_ln_s='cp -p'
22164 fi
22165 rm -f conf$$ conf$$.exe conf$$.file
22166
22167 if mkdir -p . 2>/dev/null; then
22168   as_mkdir_p=:
22169 else
22170   test -d ./-p && rmdir ./-p
22171   as_mkdir_p=false
22172 fi
22173
22174 as_executable_p="test -f"
22175
22176 # Sed expression to map a string onto a valid CPP name.
22177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22178
22179 # Sed expression to map a string onto a valid variable name.
22180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22181
22182
22183 # IFS
22184 # We need space, tab and new line, in precisely that order.
22185 as_nl='
22186 '
22187 IFS="   $as_nl"
22188
22189 # CDPATH.
22190 $as_unset CDPATH
22191
22192 exec 6>&1
22193
22194 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22195 # report actual input values of CONFIG_FILES etc. instead of their
22196 # values after options handling.  Logging --version etc. is OK.
22197 exec 5>>config.log
22198 {
22199   echo
22200   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22201 ## Running $as_me. ##
22202 _ASBOX
22203 } >&5
22204 cat >&5 <<_CSEOF
22205
22206 This file was extended by glog $as_me 0.1, which was
22207 generated by GNU Autoconf 2.59.  Invocation command line was
22208
22209   CONFIG_FILES    = $CONFIG_FILES
22210   CONFIG_HEADERS  = $CONFIG_HEADERS
22211   CONFIG_LINKS    = $CONFIG_LINKS
22212   CONFIG_COMMANDS = $CONFIG_COMMANDS
22213   $ $0 $@
22214
22215 _CSEOF
22216 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22217 echo >&5
22218 _ACEOF
22219
22220 # Files that config.status was made for.
22221 if test -n "$ac_config_files"; then
22222   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22223 fi
22224
22225 if test -n "$ac_config_headers"; then
22226   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22227 fi
22228
22229 if test -n "$ac_config_links"; then
22230   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22231 fi
22232
22233 if test -n "$ac_config_commands"; then
22234   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22235 fi
22236
22237 cat >>$CONFIG_STATUS <<\_ACEOF
22238
22239 ac_cs_usage="\
22240 \`$as_me' instantiates files from templates according to the
22241 current configuration.
22242
22243 Usage: $0 [OPTIONS] [FILE]...
22244
22245   -h, --help       print this help, then exit
22246   -V, --version    print version number, then exit
22247   -q, --quiet      do not print progress messages
22248   -d, --debug      don't remove temporary files
22249       --recheck    update $as_me by reconfiguring in the same conditions
22250   --file=FILE[:TEMPLATE]
22251                    instantiate the configuration file FILE
22252   --header=FILE[:TEMPLATE]
22253                    instantiate the configuration header FILE
22254
22255 Configuration files:
22256 $config_files
22257
22258 Configuration headers:
22259 $config_headers
22260
22261 Configuration commands:
22262 $config_commands
22263
22264 Report bugs to <bug-autoconf@gnu.org>."
22265 _ACEOF
22266
22267 cat >>$CONFIG_STATUS <<_ACEOF
22268 ac_cs_version="\\
22269 glog config.status 0.1
22270 configured by $0, generated by GNU Autoconf 2.59,
22271   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22272
22273 Copyright (C) 2003 Free Software Foundation, Inc.
22274 This config.status script is free software; the Free Software Foundation
22275 gives unlimited permission to copy, distribute and modify it."
22276 srcdir=$srcdir
22277 INSTALL="$INSTALL"
22278 _ACEOF
22279
22280 cat >>$CONFIG_STATUS <<\_ACEOF
22281 # If no file are specified by the user, then we need to provide default
22282 # value.  By we need to know if files were specified by the user.
22283 ac_need_defaults=:
22284 while test $# != 0
22285 do
22286   case $1 in
22287   --*=*)
22288     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22289     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22290     ac_shift=:
22291     ;;
22292   -*)
22293     ac_option=$1
22294     ac_optarg=$2
22295     ac_shift=shift
22296     ;;
22297   *) # This is not an option, so the user has probably given explicit
22298      # arguments.
22299      ac_option=$1
22300      ac_need_defaults=false;;
22301   esac
22302
22303   case $ac_option in
22304   # Handling of the options.
22305 _ACEOF
22306 cat >>$CONFIG_STATUS <<\_ACEOF
22307   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22308     ac_cs_recheck=: ;;
22309   --version | --vers* | -V )
22310     echo "$ac_cs_version"; exit 0 ;;
22311   --he | --h)
22312     # Conflict between --help and --header
22313     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22314 Try \`$0 --help' for more information." >&5
22315 echo "$as_me: error: ambiguous option: $1
22316 Try \`$0 --help' for more information." >&2;}
22317    { (exit 1); exit 1; }; };;
22318   --help | --hel | -h )
22319     echo "$ac_cs_usage"; exit 0 ;;
22320   --debug | --d* | -d )
22321     debug=: ;;
22322   --file | --fil | --fi | --f )
22323     $ac_shift
22324     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22325     ac_need_defaults=false;;
22326   --header | --heade | --head | --hea )
22327     $ac_shift
22328     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22329     ac_need_defaults=false;;
22330   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22331   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22332     ac_cs_silent=: ;;
22333
22334   # This is an error.
22335   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22336 Try \`$0 --help' for more information." >&5
22337 echo "$as_me: error: unrecognized option: $1
22338 Try \`$0 --help' for more information." >&2;}
22339    { (exit 1); exit 1; }; } ;;
22340
22341   *) ac_config_targets="$ac_config_targets $1" ;;
22342
22343   esac
22344   shift
22345 done
22346
22347 ac_configure_extra_args=
22348
22349 if $ac_cs_silent; then
22350   exec 6>/dev/null
22351   ac_configure_extra_args="$ac_configure_extra_args --silent"
22352 fi
22353
22354 _ACEOF
22355 cat >>$CONFIG_STATUS <<_ACEOF
22356 if \$ac_cs_recheck; then
22357   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22358   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22359 fi
22360
22361 _ACEOF
22362
22363 cat >>$CONFIG_STATUS <<_ACEOF
22364 #
22365 # INIT-COMMANDS section.
22366 #
22367
22368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22369
22370 _ACEOF
22371
22372
22373
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22375 for ac_config_target in $ac_config_targets
22376 do
22377   case "$ac_config_target" in
22378   # Handling of arguments.
22379   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22380   "src/glog/logging.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
22381   "src/glog/raw_logging.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
22382   "src/glog/vlog_is_on.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
22383   "src/glog/stl_logging.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
22384   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22385   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22386   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22388    { (exit 1); exit 1; }; };;
22389   esac
22390 done
22391
22392 # If the user did not use the arguments to specify the items to instantiate,
22393 # then the envvar interface is used.  Set only those that are not.
22394 # We use the long form for the default assignment because of an extremely
22395 # bizarre bug on SunOS 4.1.3.
22396 if $ac_need_defaults; then
22397   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22398   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22399   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22400 fi
22401
22402 # Have a temporary directory for convenience.  Make it in the build tree
22403 # simply because there is no reason to put it here, and in addition,
22404 # creating and moving files from /tmp can sometimes cause problems.
22405 # Create a temporary directory, and hook for its removal unless debugging.
22406 $debug ||
22407 {
22408   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22409   trap '{ (exit 1); exit 1; }' 1 2 13 15
22410 }
22411
22412 # Create a (secure) tmp directory for tmp files.
22413
22414 {
22415   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22416   test -n "$tmp" && test -d "$tmp"
22417 }  ||
22418 {
22419   tmp=./confstat$$-$RANDOM
22420   (umask 077 && mkdir $tmp)
22421 } ||
22422 {
22423    echo "$me: cannot create a temporary directory in ." >&2
22424    { (exit 1); exit 1; }
22425 }
22426
22427 _ACEOF
22428
22429 cat >>$CONFIG_STATUS <<_ACEOF
22430
22431 #
22432 # CONFIG_FILES section.
22433 #
22434
22435 # No need to generate the scripts if there are no CONFIG_FILES.
22436 # This happens for instance when ./config.status config.h
22437 if test -n "\$CONFIG_FILES"; then
22438   # Protect against being on the right side of a sed subst in config.status.
22439   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22440    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22441 s,@SHELL@,$SHELL,;t t
22442 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22443 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22444 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22445 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22446 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22447 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22448 s,@exec_prefix@,$exec_prefix,;t t
22449 s,@prefix@,$prefix,;t t
22450 s,@program_transform_name@,$program_transform_name,;t t
22451 s,@bindir@,$bindir,;t t
22452 s,@sbindir@,$sbindir,;t t
22453 s,@libexecdir@,$libexecdir,;t t
22454 s,@datadir@,$datadir,;t t
22455 s,@sysconfdir@,$sysconfdir,;t t
22456 s,@sharedstatedir@,$sharedstatedir,;t t
22457 s,@localstatedir@,$localstatedir,;t t
22458 s,@libdir@,$libdir,;t t
22459 s,@includedir@,$includedir,;t t
22460 s,@oldincludedir@,$oldincludedir,;t t
22461 s,@infodir@,$infodir,;t t
22462 s,@mandir@,$mandir,;t t
22463 s,@build_alias@,$build_alias,;t t
22464 s,@host_alias@,$host_alias,;t t
22465 s,@target_alias@,$target_alias,;t t
22466 s,@DEFS@,$DEFS,;t t
22467 s,@ECHO_C@,$ECHO_C,;t t
22468 s,@ECHO_N@,$ECHO_N,;t t
22469 s,@ECHO_T@,$ECHO_T,;t t
22470 s,@LIBS@,$LIBS,;t t
22471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22474 s,@CYGPATH_W@,$CYGPATH_W,;t t
22475 s,@PACKAGE@,$PACKAGE,;t t
22476 s,@VERSION@,$VERSION,;t t
22477 s,@ACLOCAL@,$ACLOCAL,;t t
22478 s,@AUTOCONF@,$AUTOCONF,;t t
22479 s,@AUTOMAKE@,$AUTOMAKE,;t t
22480 s,@AUTOHEADER@,$AUTOHEADER,;t t
22481 s,@MAKEINFO@,$MAKEINFO,;t t
22482 s,@install_sh@,$install_sh,;t t
22483 s,@STRIP@,$STRIP,;t t
22484 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22485 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22486 s,@mkdir_p@,$mkdir_p,;t t
22487 s,@AWK@,$AWK,;t t
22488 s,@SET_MAKE@,$SET_MAKE,;t t
22489 s,@am__leading_dot@,$am__leading_dot,;t t
22490 s,@AMTAR@,$AMTAR,;t t
22491 s,@am__tar@,$am__tar,;t t
22492 s,@am__untar@,$am__untar,;t t
22493 s,@CC@,$CC,;t t
22494 s,@CFLAGS@,$CFLAGS,;t t
22495 s,@LDFLAGS@,$LDFLAGS,;t t
22496 s,@CPPFLAGS@,$CPPFLAGS,;t t
22497 s,@ac_ct_CC@,$ac_ct_CC,;t t
22498 s,@EXEEXT@,$EXEEXT,;t t
22499 s,@OBJEXT@,$OBJEXT,;t t
22500 s,@DEPDIR@,$DEPDIR,;t t
22501 s,@am__include@,$am__include,;t t
22502 s,@am__quote@,$am__quote,;t t
22503 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22504 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22505 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22506 s,@CCDEPMODE@,$CCDEPMODE,;t t
22507 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22508 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22509 s,@CPP@,$CPP,;t t
22510 s,@CXX@,$CXX,;t t
22511 s,@CXXFLAGS@,$CXXFLAGS,;t t
22512 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22513 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22514 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22515 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22516 s,@GCC_TRUE@,$GCC_TRUE,;t t
22517 s,@GCC_FALSE@,$GCC_FALSE,;t t
22518 s,@build@,$build,;t t
22519 s,@build_cpu@,$build_cpu,;t t
22520 s,@build_vendor@,$build_vendor,;t t
22521 s,@build_os@,$build_os,;t t
22522 s,@host@,$host,;t t
22523 s,@host_cpu@,$host_cpu,;t t
22524 s,@host_vendor@,$host_vendor,;t t
22525 s,@host_os@,$host_os,;t t
22526 s,@EGREP@,$EGREP,;t t
22527 s,@LN_S@,$LN_S,;t t
22528 s,@ECHO@,$ECHO,;t t
22529 s,@AR@,$AR,;t t
22530 s,@ac_ct_AR@,$ac_ct_AR,;t t
22531 s,@RANLIB@,$RANLIB,;t t
22532 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22533 s,@CXXCPP@,$CXXCPP,;t t
22534 s,@F77@,$F77,;t t
22535 s,@FFLAGS@,$FFLAGS,;t t
22536 s,@ac_ct_F77@,$ac_ct_F77,;t t
22537 s,@LIBTOOL@,$LIBTOOL,;t t
22538 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22539 s,@ENABLE_FRAME_POINTERS_TRUE@,$ENABLE_FRAME_POINTERS_TRUE,;t t
22540 s,@ENABLE_FRAME_POINTERS_FALSE@,$ENABLE_FRAME_POINTERS_FALSE,;t t
22541 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
22542 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
22543 s,@acx_pthread_config@,$acx_pthread_config,;t t
22544 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22545 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22546 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22547 s,@ac_google_start_namespace@,$ac_google_start_namespace,;t t
22548 s,@ac_google_end_namespace@,$ac_google_end_namespace,;t t
22549 s,@ac_google_namespace@,$ac_google_namespace,;t t
22550 s,@ac_cv_cxx_using_operator@,$ac_cv_cxx_using_operator,;t t
22551 s,@ac_cv___attribute___noreturn@,$ac_cv___attribute___noreturn,;t t
22552 s,@ac_cv___attribute___printf_4_5@,$ac_cv___attribute___printf_4_5,;t t
22553 s,@ac_cv_have___builtin_expect@,$ac_cv_have___builtin_expect,;t t
22554 s,@ac_cv_have_stdint_h@,$ac_cv_have_stdint_h,;t t
22555 s,@ac_cv_have_systypes_h@,$ac_cv_have_systypes_h,;t t
22556 s,@ac_cv_have_inttypes_h@,$ac_cv_have_inttypes_h,;t t
22557 s,@ac_cv_have_uint16_t@,$ac_cv_have_uint16_t,;t t
22558 s,@ac_cv_have_u_int16_t@,$ac_cv_have_u_int16_t,;t t
22559 s,@ac_cv_have___uint16@,$ac_cv_have___uint16,;t t
22560 s,@ac_cv_have_libgflags@,$ac_cv_have_libgflags,;t t
22561 s,@GFLAGS_LIBS@,$GFLAGS_LIBS,;t t
22562 s,@LIBOBJS@,$LIBOBJS,;t t
22563 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22564 CEOF
22565
22566 _ACEOF
22567
22568   cat >>$CONFIG_STATUS <<\_ACEOF
22569   # Split the substitutions into bite-sized pieces for seds with
22570   # small command number limits, like on Digital OSF/1 and HP-UX.
22571   ac_max_sed_lines=48
22572   ac_sed_frag=1 # Number of current file.
22573   ac_beg=1 # First line for current file.
22574   ac_end=$ac_max_sed_lines # Line after last line for current file.
22575   ac_more_lines=:
22576   ac_sed_cmds=
22577   while $ac_more_lines; do
22578     if test $ac_beg -gt 1; then
22579       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22580     else
22581       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22582     fi
22583     if test ! -s $tmp/subs.frag; then
22584       ac_more_lines=false
22585     else
22586       # The purpose of the label and of the branching condition is to
22587       # speed up the sed processing (if there are no `@' at all, there
22588       # is no need to browse any of the substitutions).
22589       # These are the two extra sed commands mentioned above.
22590       (echo ':t
22591   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22592       if test -z "$ac_sed_cmds"; then
22593         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22594       else
22595         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22596       fi
22597       ac_sed_frag=`expr $ac_sed_frag + 1`
22598       ac_beg=$ac_end
22599       ac_end=`expr $ac_end + $ac_max_sed_lines`
22600     fi
22601   done
22602   if test -z "$ac_sed_cmds"; then
22603     ac_sed_cmds=cat
22604   fi
22605 fi # test -n "$CONFIG_FILES"
22606
22607 _ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22610   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22611   case $ac_file in
22612   - | *:- | *:-:* ) # input from stdin
22613         cat >$tmp/stdin
22614         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22615         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22616   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22617         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22618   * )   ac_file_in=$ac_file.in ;;
22619   esac
22620
22621   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22622   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624          X"$ac_file" : 'X\(//\)[^/]' \| \
22625          X"$ac_file" : 'X\(//\)$' \| \
22626          X"$ac_file" : 'X\(/\)' \| \
22627          .     : '\(.\)' 2>/dev/null ||
22628 echo X"$ac_file" |
22629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631           /^X\(\/\/\)$/{ s//\1/; q; }
22632           /^X\(\/\).*/{ s//\1/; q; }
22633           s/.*/./; q'`
22634   { if $as_mkdir_p; then
22635     mkdir -p "$ac_dir"
22636   else
22637     as_dir="$ac_dir"
22638     as_dirs=
22639     while test ! -d "$as_dir"; do
22640       as_dirs="$as_dir $as_dirs"
22641       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643          X"$as_dir" : 'X\(//\)[^/]' \| \
22644          X"$as_dir" : 'X\(//\)$' \| \
22645          X"$as_dir" : 'X\(/\)' \| \
22646          .     : '\(.\)' 2>/dev/null ||
22647 echo X"$as_dir" |
22648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650           /^X\(\/\/\)$/{ s//\1/; q; }
22651           /^X\(\/\).*/{ s//\1/; q; }
22652           s/.*/./; q'`
22653     done
22654     test ! -n "$as_dirs" || mkdir $as_dirs
22655   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22657    { (exit 1); exit 1; }; }; }
22658
22659   ac_builddir=.
22660
22661 if test "$ac_dir" != .; then
22662   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22663   # A "../" for each directory in $ac_dir_suffix.
22664   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22665 else
22666   ac_dir_suffix= ac_top_builddir=
22667 fi
22668
22669 case $srcdir in
22670   .)  # No --srcdir option.  We are building in place.
22671     ac_srcdir=.
22672     if test -z "$ac_top_builddir"; then
22673        ac_top_srcdir=.
22674     else
22675        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22676     fi ;;
22677   [\\/]* | ?:[\\/]* )  # Absolute path.
22678     ac_srcdir=$srcdir$ac_dir_suffix;
22679     ac_top_srcdir=$srcdir ;;
22680   *) # Relative path.
22681     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22682     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22683 esac
22684
22685 # Do not use `cd foo && pwd` to compute absolute paths, because
22686 # the directories may not exist.
22687 case `pwd` in
22688 .) ac_abs_builddir="$ac_dir";;
22689 *)
22690   case "$ac_dir" in
22691   .) ac_abs_builddir=`pwd`;;
22692   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22693   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22694   esac;;
22695 esac
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22698 *)
22699   case ${ac_top_builddir}. in
22700   .) ac_abs_top_builddir=$ac_abs_builddir;;
22701   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22702   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22703   esac;;
22704 esac
22705 case $ac_abs_builddir in
22706 .) ac_abs_srcdir=$ac_srcdir;;
22707 *)
22708   case $ac_srcdir in
22709   .) ac_abs_srcdir=$ac_abs_builddir;;
22710   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22711   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22712   esac;;
22713 esac
22714 case $ac_abs_builddir in
22715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22716 *)
22717   case $ac_top_srcdir in
22718   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22719   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22720   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22721   esac;;
22722 esac
22723
22724
22725   case $INSTALL in
22726   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22727   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22728   esac
22729
22730   # Let's still pretend it is `configure' which instantiates (i.e., don't
22731   # use $as_me), people would be surprised to read:
22732   #    /* config.h.  Generated by config.status.  */
22733   if test x"$ac_file" = x-; then
22734     configure_input=
22735   else
22736     configure_input="$ac_file.  "
22737   fi
22738   configure_input=$configure_input"Generated from `echo $ac_file_in |
22739                                      sed 's,.*/,,'` by configure."
22740
22741   # First look for the input files in the build tree, otherwise in the
22742   # src tree.
22743   ac_file_inputs=`IFS=:
22744     for f in $ac_file_in; do
22745       case $f in
22746       -) echo $tmp/stdin ;;
22747       [\\/$]*)
22748          # Absolute (can't be DOS-style, as IFS=:)
22749          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751    { (exit 1); exit 1; }; }
22752          echo "$f";;
22753       *) # Relative
22754          if test -f "$f"; then
22755            # Build tree
22756            echo "$f"
22757          elif test -f "$srcdir/$f"; then
22758            # Source tree
22759            echo "$srcdir/$f"
22760          else
22761            # /dev/null tree
22762            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22763 echo "$as_me: error: cannot find input file: $f" >&2;}
22764    { (exit 1); exit 1; }; }
22765          fi;;
22766       esac
22767     done` || { (exit 1); exit 1; }
22768
22769   if test x"$ac_file" != x-; then
22770     { echo "$as_me:$LINENO: creating $ac_file" >&5
22771 echo "$as_me: creating $ac_file" >&6;}
22772     rm -f "$ac_file"
22773   fi
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<_ACEOF
22776   sed "$ac_vpsub
22777 $extrasub
22778 _ACEOF
22779 cat >>$CONFIG_STATUS <<\_ACEOF
22780 :t
22781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22782 s,@configure_input@,$configure_input,;t t
22783 s,@srcdir@,$ac_srcdir,;t t
22784 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22785 s,@top_srcdir@,$ac_top_srcdir,;t t
22786 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22787 s,@builddir@,$ac_builddir,;t t
22788 s,@abs_builddir@,$ac_abs_builddir,;t t
22789 s,@top_builddir@,$ac_top_builddir,;t t
22790 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22791 s,@INSTALL@,$ac_INSTALL,;t t
22792 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22793   rm -f $tmp/stdin
22794   if test x"$ac_file" != x-; then
22795     mv $tmp/out $ac_file
22796   else
22797     cat $tmp/out
22798     rm -f $tmp/out
22799   fi
22800
22801 done
22802 _ACEOF
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22804
22805 #
22806 # CONFIG_HEADER section.
22807 #
22808
22809 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22810 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22811 #
22812 # ac_d sets the value in "#define NAME VALUE" lines.
22813 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22814 ac_dB='[         ].*$,\1#\2'
22815 ac_dC=' '
22816 ac_dD=',;t'
22817 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22818 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22819 ac_uB='$,\1#\2define\3'
22820 ac_uC=' '
22821 ac_uD=',;t'
22822
22823 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22824   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22825   case $ac_file in
22826   - | *:- | *:-:* ) # input from stdin
22827         cat >$tmp/stdin
22828         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22829         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22830   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22831         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22832   * )   ac_file_in=$ac_file.in ;;
22833   esac
22834
22835   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22836 echo "$as_me: creating $ac_file" >&6;}
22837
22838   # First look for the input files in the build tree, otherwise in the
22839   # src tree.
22840   ac_file_inputs=`IFS=:
22841     for f in $ac_file_in; do
22842       case $f in
22843       -) echo $tmp/stdin ;;
22844       [\\/$]*)
22845          # Absolute (can't be DOS-style, as IFS=:)
22846          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22847 echo "$as_me: error: cannot find input file: $f" >&2;}
22848    { (exit 1); exit 1; }; }
22849          # Do quote $f, to prevent DOS paths from being IFS'd.
22850          echo "$f";;
22851       *) # Relative
22852          if test -f "$f"; then
22853            # Build tree
22854            echo "$f"
22855          elif test -f "$srcdir/$f"; then
22856            # Source tree
22857            echo "$srcdir/$f"
22858          else
22859            # /dev/null tree
22860            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22861 echo "$as_me: error: cannot find input file: $f" >&2;}
22862    { (exit 1); exit 1; }; }
22863          fi;;
22864       esac
22865     done` || { (exit 1); exit 1; }
22866   # Remove the trailing spaces.
22867   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22868
22869 _ACEOF
22870
22871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22872 # `conftest.undefs', that substitutes the proper values into
22873 # config.h.in to produce config.h.  The first handles `#define'
22874 # templates, and the second `#undef' templates.
22875 # And first: Protect against being on the right side of a sed subst in
22876 # config.status.  Protect against being in an unquoted here document
22877 # in config.status.
22878 rm -f conftest.defines conftest.undefs
22879 # Using a here document instead of a string reduces the quoting nightmare.
22880 # Putting comments in sed scripts is not portable.
22881 #
22882 # `end' is used to avoid that the second main sed command (meant for
22883 # 0-ary CPP macros) applies to n-ary macro definitions.
22884 # See the Autoconf documentation for `clear'.
22885 cat >confdef2sed.sed <<\_ACEOF
22886 s/[\\&,]/\\&/g
22887 s,[\\$`],\\&,g
22888 t clear
22889 : clear
22890 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22891 t end
22892 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22893 : end
22894 _ACEOF
22895 # If some macros were called several times there might be several times
22896 # the same #defines, which is useless.  Nevertheless, we may not want to
22897 # sort them, since we want the *last* AC-DEFINE to be honored.
22898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22900 rm -f confdef2sed.sed
22901
22902 # This sed command replaces #undef with comments.  This is necessary, for
22903 # example, in the case of _POSIX_SOURCE, which is predefined and required
22904 # on some systems where configure will not decide to define it.
22905 cat >>conftest.undefs <<\_ACEOF
22906 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22907 _ACEOF
22908
22909 # Break up conftest.defines because some shells have a limit on the size
22910 # of here documents, and old seds have small limits too (100 cmds).
22911 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22912 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22913 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22914 echo '  :' >>$CONFIG_STATUS
22915 rm -f conftest.tail
22916 while grep . conftest.defines >/dev/null
22917 do
22918   # Write a limited-size here document to $tmp/defines.sed.
22919   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22920   # Speed up: don't consider the non `#define' lines.
22921   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22922   # Work around the forget-to-reset-the-flag bug.
22923   echo 't clr' >>$CONFIG_STATUS
22924   echo ': clr' >>$CONFIG_STATUS
22925   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22926   echo 'CEOF
22927   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22928   rm -f $tmp/in
22929   mv $tmp/out $tmp/in
22930 ' >>$CONFIG_STATUS
22931   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22932   rm -f conftest.defines
22933   mv conftest.tail conftest.defines
22934 done
22935 rm -f conftest.defines
22936 echo '  fi # grep' >>$CONFIG_STATUS
22937 echo >>$CONFIG_STATUS
22938
22939 # Break up conftest.undefs because some shells have a limit on the size
22940 # of here documents, and old seds have small limits too (100 cmds).
22941 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22942 rm -f conftest.tail
22943 while grep . conftest.undefs >/dev/null
22944 do
22945   # Write a limited-size here document to $tmp/undefs.sed.
22946   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22947   # Speed up: don't consider the non `#undef'
22948   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22949   # Work around the forget-to-reset-the-flag bug.
22950   echo 't clr' >>$CONFIG_STATUS
22951   echo ': clr' >>$CONFIG_STATUS
22952   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22953   echo 'CEOF
22954   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22955   rm -f $tmp/in
22956   mv $tmp/out $tmp/in
22957 ' >>$CONFIG_STATUS
22958   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22959   rm -f conftest.undefs
22960   mv conftest.tail conftest.undefs
22961 done
22962 rm -f conftest.undefs
22963
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965   # Let's still pretend it is `configure' which instantiates (i.e., don't
22966   # use $as_me), people would be surprised to read:
22967   #    /* config.h.  Generated by config.status.  */
22968   if test x"$ac_file" = x-; then
22969     echo "/* Generated by configure.  */" >$tmp/config.h
22970   else
22971     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22972   fi
22973   cat $tmp/in >>$tmp/config.h
22974   rm -f $tmp/in
22975   if test x"$ac_file" != x-; then
22976     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22977       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22978 echo "$as_me: $ac_file is unchanged" >&6;}
22979     else
22980       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22982          X"$ac_file" : 'X\(//\)[^/]' \| \
22983          X"$ac_file" : 'X\(//\)$' \| \
22984          X"$ac_file" : 'X\(/\)' \| \
22985          .     : '\(.\)' 2>/dev/null ||
22986 echo X"$ac_file" |
22987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989           /^X\(\/\/\)$/{ s//\1/; q; }
22990           /^X\(\/\).*/{ s//\1/; q; }
22991           s/.*/./; q'`
22992       { if $as_mkdir_p; then
22993     mkdir -p "$ac_dir"
22994   else
22995     as_dir="$ac_dir"
22996     as_dirs=
22997     while test ! -d "$as_dir"; do
22998       as_dirs="$as_dir $as_dirs"
22999       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23001          X"$as_dir" : 'X\(//\)[^/]' \| \
23002          X"$as_dir" : 'X\(//\)$' \| \
23003          X"$as_dir" : 'X\(/\)' \| \
23004          .     : '\(.\)' 2>/dev/null ||
23005 echo X"$as_dir" |
23006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23007           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23008           /^X\(\/\/\)$/{ s//\1/; q; }
23009           /^X\(\/\).*/{ s//\1/; q; }
23010           s/.*/./; q'`
23011     done
23012     test ! -n "$as_dirs" || mkdir $as_dirs
23013   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23015    { (exit 1); exit 1; }; }; }
23016
23017       rm -f $ac_file
23018       mv $tmp/config.h $ac_file
23019     fi
23020   else
23021     cat $tmp/config.h
23022     rm -f $tmp/config.h
23023   fi
23024 # Compute $ac_file's index in $config_headers.
23025 _am_stamp_count=1
23026 for _am_header in $config_headers :; do
23027   case $_am_header in
23028     $ac_file | $ac_file:* )
23029       break ;;
23030     * )
23031       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23032   esac
23033 done
23034 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23035 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23036          X$ac_file : 'X\(//\)[^/]' \| \
23037          X$ac_file : 'X\(//\)$' \| \
23038          X$ac_file : 'X\(/\)' \| \
23039          .     : '\(.\)' 2>/dev/null ||
23040 echo X$ac_file |
23041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23042           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23043           /^X\(\/\/\)$/{ s//\1/; q; }
23044           /^X\(\/\).*/{ s//\1/; q; }
23045           s/.*/./; q'`/stamp-h$_am_stamp_count
23046 done
23047 _ACEOF
23048 cat >>$CONFIG_STATUS <<\_ACEOF
23049
23050 #
23051 # CONFIG_COMMANDS section.
23052 #
23053 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23054   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23055   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23056   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23057 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058          X"$ac_dest" : 'X\(//\)[^/]' \| \
23059          X"$ac_dest" : 'X\(//\)$' \| \
23060          X"$ac_dest" : 'X\(/\)' \| \
23061          .     : '\(.\)' 2>/dev/null ||
23062 echo X"$ac_dest" |
23063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23064           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23065           /^X\(\/\/\)$/{ s//\1/; q; }
23066           /^X\(\/\).*/{ s//\1/; q; }
23067           s/.*/./; q'`
23068   { if $as_mkdir_p; then
23069     mkdir -p "$ac_dir"
23070   else
23071     as_dir="$ac_dir"
23072     as_dirs=
23073     while test ! -d "$as_dir"; do
23074       as_dirs="$as_dir $as_dirs"
23075       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23077          X"$as_dir" : 'X\(//\)[^/]' \| \
23078          X"$as_dir" : 'X\(//\)$' \| \
23079          X"$as_dir" : 'X\(/\)' \| \
23080          .     : '\(.\)' 2>/dev/null ||
23081 echo X"$as_dir" |
23082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23084           /^X\(\/\/\)$/{ s//\1/; q; }
23085           /^X\(\/\).*/{ s//\1/; q; }
23086           s/.*/./; q'`
23087     done
23088     test ! -n "$as_dirs" || mkdir $as_dirs
23089   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23090 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23091    { (exit 1); exit 1; }; }; }
23092
23093   ac_builddir=.
23094
23095 if test "$ac_dir" != .; then
23096   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23097   # A "../" for each directory in $ac_dir_suffix.
23098   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23099 else
23100   ac_dir_suffix= ac_top_builddir=
23101 fi
23102
23103 case $srcdir in
23104   .)  # No --srcdir option.  We are building in place.
23105     ac_srcdir=.
23106     if test -z "$ac_top_builddir"; then
23107        ac_top_srcdir=.
23108     else
23109        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23110     fi ;;
23111   [\\/]* | ?:[\\/]* )  # Absolute path.
23112     ac_srcdir=$srcdir$ac_dir_suffix;
23113     ac_top_srcdir=$srcdir ;;
23114   *) # Relative path.
23115     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23116     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23117 esac
23118
23119 # Do not use `cd foo && pwd` to compute absolute paths, because
23120 # the directories may not exist.
23121 case `pwd` in
23122 .) ac_abs_builddir="$ac_dir";;
23123 *)
23124   case "$ac_dir" in
23125   .) ac_abs_builddir=`pwd`;;
23126   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23127   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23128   esac;;
23129 esac
23130 case $ac_abs_builddir in
23131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23132 *)
23133   case ${ac_top_builddir}. in
23134   .) ac_abs_top_builddir=$ac_abs_builddir;;
23135   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23136   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23137   esac;;
23138 esac
23139 case $ac_abs_builddir in
23140 .) ac_abs_srcdir=$ac_srcdir;;
23141 *)
23142   case $ac_srcdir in
23143   .) ac_abs_srcdir=$ac_abs_builddir;;
23144   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23145   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23146   esac;;
23147 esac
23148 case $ac_abs_builddir in
23149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23150 *)
23151   case $ac_top_srcdir in
23152   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23153   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23154   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23155   esac;;
23156 esac
23157
23158
23159   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23160 echo "$as_me: executing $ac_dest commands" >&6;}
23161   case $ac_dest in
23162     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23163   # Strip MF so we end up with the name of the file.
23164   mf=`echo "$mf" | sed -e 's/:.*$//'`
23165   # Check whether this is an Automake generated Makefile or not.
23166   # We used to match only the files named `Makefile.in', but
23167   # some people rename them; so instead we look at the file content.
23168   # Grep'ing the first line is not enough: some people post-process
23169   # each Makefile.in and add a new line on top of each file to say so.
23170   # So let's grep whole file.
23171   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23172     dirpart=`(dirname "$mf") 2>/dev/null ||
23173 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23174          X"$mf" : 'X\(//\)[^/]' \| \
23175          X"$mf" : 'X\(//\)$' \| \
23176          X"$mf" : 'X\(/\)' \| \
23177          .     : '\(.\)' 2>/dev/null ||
23178 echo X"$mf" |
23179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23181           /^X\(\/\/\)$/{ s//\1/; q; }
23182           /^X\(\/\).*/{ s//\1/; q; }
23183           s/.*/./; q'`
23184   else
23185     continue
23186   fi
23187   # Extract the definition of DEPDIR, am__include, and am__quote
23188   # from the Makefile without running `make'.
23189   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23190   test -z "$DEPDIR" && continue
23191   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23192   test -z "am__include" && continue
23193   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23194   # When using ansi2knr, U may be empty or an underscore; expand it
23195   U=`sed -n 's/^U = //p' < "$mf"`
23196   # Find all dependency output files, they are included files with
23197   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23198   # simplest approach to changing $(DEPDIR) to its actual value in the
23199   # expansion.
23200   for file in `sed -n "
23201     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23202        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23203     # Make sure the directory exists.
23204     test -f "$dirpart/$file" && continue
23205     fdir=`(dirname "$file") 2>/dev/null ||
23206 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207          X"$file" : 'X\(//\)[^/]' \| \
23208          X"$file" : 'X\(//\)$' \| \
23209          X"$file" : 'X\(/\)' \| \
23210          .     : '\(.\)' 2>/dev/null ||
23211 echo X"$file" |
23212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23214           /^X\(\/\/\)$/{ s//\1/; q; }
23215           /^X\(\/\).*/{ s//\1/; q; }
23216           s/.*/./; q'`
23217     { if $as_mkdir_p; then
23218     mkdir -p $dirpart/$fdir
23219   else
23220     as_dir=$dirpart/$fdir
23221     as_dirs=
23222     while test ! -d "$as_dir"; do
23223       as_dirs="$as_dir $as_dirs"
23224       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23226          X"$as_dir" : 'X\(//\)[^/]' \| \
23227          X"$as_dir" : 'X\(//\)$' \| \
23228          X"$as_dir" : 'X\(/\)' \| \
23229          .     : '\(.\)' 2>/dev/null ||
23230 echo X"$as_dir" |
23231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23233           /^X\(\/\/\)$/{ s//\1/; q; }
23234           /^X\(\/\).*/{ s//\1/; q; }
23235           s/.*/./; q'`
23236     done
23237     test ! -n "$as_dirs" || mkdir $as_dirs
23238   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23239 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23240    { (exit 1); exit 1; }; }; }
23241
23242     # echo "creating $dirpart/$file"
23243     echo '# dummy' > "$dirpart/$file"
23244   done
23245 done
23246  ;;
23247   esac
23248 done
23249 _ACEOF
23250
23251 cat >>$CONFIG_STATUS <<\_ACEOF
23252
23253 { (exit 0); exit 0; }
23254 _ACEOF
23255 chmod +x $CONFIG_STATUS
23256 ac_clean_files=$ac_clean_files_save
23257
23258
23259 # configure is writing to config.log, and then calls config.status.
23260 # config.status does its own redirection, appending to config.log.
23261 # Unfortunately, on DOS this fails, as config.log is still kept open
23262 # by configure, so config.status won't be able to write to it; its
23263 # output is simply discarded.  So we exec the FD to /dev/null,
23264 # effectively closing config.log, so it can be properly (re)opened and
23265 # appended to by config.status.  When coming back to configure, we
23266 # need to make the FD available again.
23267 if test "$no_create" != yes; then
23268   ac_cs_success=:
23269   ac_config_status_args=
23270   test "$silent" = yes &&
23271     ac_config_status_args="$ac_config_status_args --quiet"
23272   exec 5>/dev/null
23273   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23274   exec 5>>config.log
23275   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23276   # would make configure fail if this is the last instruction.
23277   $ac_cs_success || { (exit 1); exit 1; }
23278 fi
23279