Splint annotations.
[tools/librpm-tizen.git] / zlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for zlib 1.2.1.1.
4 #
5 # Report bugs to <rpm-list@redhat.com>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${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='zlib'
425 PACKAGE_TARNAME='zlib'
426 PACKAGE_VERSION='1.2.1.1'
427 PACKAGE_STRING='zlib 1.2.1.1'
428 PACKAGE_BUGREPORT='rpm-list@redhat.com'
429
430 ac_unique_file="gzio.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
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 zlib 1.2.1.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   --target=TARGET   configure for building compilers for TARGET [HOST]
1019 _ACEOF
1020 fi
1021
1022 if test -n "$ac_init_help"; then
1023   case $ac_init_help in
1024      short | recursive ) echo "Configuration of zlib 1.2.1.1:";;
1025    esac
1026   cat <<\_ACEOF
1027
1028 Optional Features:
1029   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1030   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1031   --disable-dependency-tracking  speeds up one-time build
1032   --enable-dependency-tracking   do not reject slow dependency extractors
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-static[=PKGS]
1036                           build static libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-libtool-lock  avoid locking (might break parallel builds)
1040   --disable-largefile     omit support for large files
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050
1051 Some influential environment variables:
1052   CC          C compiler command
1053   CFLAGS      C compiler flags
1054   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055               nonstandard directory <lib dir>
1056   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057               headers in a nonstandard directory <include dir>
1058   CPP         C preprocessor
1059   CXX         C++ compiler command
1060   CXXFLAGS    C++ compiler flags
1061   CXXCPP      C++ preprocessor
1062   F77         Fortran 77 compiler command
1063   FFLAGS      Fortran 77 compiler flags
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 Report bugs to <rpm-list@redhat.com>.
1069 _ACEOF
1070 fi
1071
1072 if test "$ac_init_help" = "recursive"; then
1073   # If there are subdirs, report their specific --help.
1074   ac_popdir=`pwd`
1075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076     test -d $ac_dir || continue
1077     ac_builddir=.
1078
1079 if test "$ac_dir" != .; then
1080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081   # A "../" for each directory in $ac_dir_suffix.
1082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084   ac_dir_suffix= ac_top_builddir=
1085 fi
1086
1087 case $srcdir in
1088   .)  # No --srcdir option.  We are building in place.
1089     ac_srcdir=.
1090     if test -z "$ac_top_builddir"; then
1091        ac_top_srcdir=.
1092     else
1093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094     fi ;;
1095   [\\/]* | ?:[\\/]* )  # Absolute path.
1096     ac_srcdir=$srcdir$ac_dir_suffix;
1097     ac_top_srcdir=$srcdir ;;
1098   *) # Relative path.
1099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1102
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1105 case `pwd` in
1106 .) ac_abs_builddir="$ac_dir";;
1107 *)
1108   case "$ac_dir" in
1109   .) ac_abs_builddir=`pwd`;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *)
1117   case ${ac_top_builddir}. in
1118   .) ac_abs_top_builddir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1125 *)
1126   case $ac_srcdir in
1127   .) ac_abs_srcdir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *)
1135   case $ac_top_srcdir in
1136   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139   esac;;
1140 esac
1141
1142     cd $ac_dir
1143     # Check for guested configure; otherwise get Cygnus style configure.
1144     if test -f $ac_srcdir/configure.gnu; then
1145       echo
1146       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147     elif test -f $ac_srcdir/configure; then
1148       echo
1149       $SHELL $ac_srcdir/configure  --help=recursive
1150     elif test -f $ac_srcdir/configure.ac ||
1151            test -f $ac_srcdir/configure.in; then
1152       echo
1153       $ac_configure --help
1154     else
1155       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156     fi
1157     cd $ac_popdir
1158   done
1159 fi
1160
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163   cat <<\_ACEOF
1164 zlib configure 1.2.1.1
1165 generated by GNU Autoconf 2.59
1166
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1170 _ACEOF
1171   exit 0
1172 fi
1173 exec 5>config.log
1174 cat >&5 <<_ACEOF
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1177
1178 It was created by zlib $as_me 1.2.1.1, which was
1179 generated by GNU Autoconf 2.59.  Invocation command line was
1180
1181   $ $0 $@
1182
1183 _ACEOF
1184 {
1185 cat <<_ASUNAME
1186 ## --------- ##
1187 ## Platform. ##
1188 ## --------- ##
1189
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1198
1199 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1200 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1203 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1204 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1205 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1206
1207 _ASUNAME
1208
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 for as_dir in $PATH
1211 do
1212   IFS=$as_save_IFS
1213   test -z "$as_dir" && as_dir=.
1214   echo "PATH: $as_dir"
1215 done
1216
1217 } >&5
1218
1219 cat >&5 <<_ACEOF
1220
1221
1222 ## ----------- ##
1223 ## Core tests. ##
1224 ## ----------- ##
1225
1226 _ACEOF
1227
1228
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_configure_args=
1235 ac_configure_args0=
1236 ac_configure_args1=
1237 ac_sep=
1238 ac_must_keep_next=false
1239 for ac_pass in 1 2
1240 do
1241   for ac_arg
1242   do
1243     case $ac_arg in
1244     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246     | -silent | --silent | --silen | --sile | --sil)
1247       continue ;;
1248     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250     esac
1251     case $ac_pass in
1252     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253     2)
1254       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255       if test $ac_must_keep_next = true; then
1256         ac_must_keep_next=false # Got value, back to normal.
1257       else
1258         case $ac_arg in
1259           *=* | --config-cache | -C | -disable-* | --disable-* \
1260           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262           | -with-* | --with-* | -without-* | --without-* | --x)
1263             case "$ac_configure_args0 " in
1264               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265             esac
1266             ;;
1267           -* ) ac_must_keep_next=true ;;
1268         esac
1269       fi
1270       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271       # Get rid of the leading space.
1272       ac_sep=" "
1273       ;;
1274     esac
1275   done
1276 done
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log.  We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286   # Save into config.log some information that might help in debugging.
1287   {
1288     echo
1289
1290     cat <<\_ASBOX
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1294 _ASBOX
1295     echo
1296     # The following way of writing the cache mishandles newlines in values,
1297 {
1298   (set) 2>&1 |
1299     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300     *ac_space=\ *)
1301       sed -n \
1302         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304       ;;
1305     *)
1306       sed -n \
1307         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308       ;;
1309     esac;
1310 }
1311     echo
1312
1313     cat <<\_ASBOX
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1317 _ASBOX
1318     echo
1319     for ac_var in $ac_subst_vars
1320     do
1321       eval ac_val=$`echo $ac_var`
1322       echo "$ac_var='"'"'$ac_val'"'"'"
1323     done | sort
1324     echo
1325
1326     if test -n "$ac_subst_files"; then
1327       cat <<\_ASBOX
1328 ## ------------- ##
1329 ## Output files. ##
1330 ## ------------- ##
1331 _ASBOX
1332       echo
1333       for ac_var in $ac_subst_files
1334       do
1335         eval ac_val=$`echo $ac_var`
1336         echo "$ac_var='"'"'$ac_val'"'"'"
1337       done | sort
1338       echo
1339     fi
1340
1341     if test -s confdefs.h; then
1342       cat <<\_ASBOX
1343 ## ----------- ##
1344 ## confdefs.h. ##
1345 ## ----------- ##
1346 _ASBOX
1347       echo
1348       sed "/^$/d" confdefs.h | sort
1349       echo
1350     fi
1351     test "$ac_signal" != 0 &&
1352       echo "$as_me: caught signal $ac_signal"
1353     echo "$as_me: exit $exit_status"
1354   } >&5
1355   rm -f core *.core &&
1356   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357     exit $exit_status
1358      ' 0
1359 for ac_signal in 1 2 13 15; do
1360   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 done
1362 ac_signal=0
1363
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 echo >confdefs.h
1368
1369 # Predefined preprocessor variables.
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 _ACEOF
1394
1395
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399   if test "x$prefix" != xNONE; then
1400     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401   else
1402     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403   fi
1404 fi
1405 for ac_site_file in $CONFIG_SITE; do
1406   if test -r "$ac_site_file"; then
1407     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409     sed 's/^/| /' "$ac_site_file" >&5
1410     . "$ac_site_file"
1411   fi
1412 done
1413
1414 if test -r "$cache_file"; then
1415   # Some versions of bash will fail to source /dev/null (special
1416   # files actually), so we avoid doing that.
1417   if test -f "$cache_file"; then
1418     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1420     case $cache_file in
1421       [\\/]* | ?:[\\/]* ) . $cache_file;;
1422       *)                      . ./$cache_file;;
1423     esac
1424   fi
1425 else
1426   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1428   >$cache_file
1429 fi
1430
1431 # Check that the precious variables saved in the cache have kept the same
1432 # value.
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437   eval ac_new_set=\$ac_env_${ac_var}_set
1438   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439   eval ac_new_val="\$ac_env_${ac_var}_value"
1440   case $ac_old_set,$ac_new_set in
1441     set,)
1442       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444       ac_cache_corrupted=: ;;
1445     ,set)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,);;
1450     *)
1451       if test "x$ac_old_val" != "x$ac_new_val"; then
1452         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1455 echo "$as_me:   former value:  $ac_old_val" >&2;}
1456         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1457 echo "$as_me:   current value: $ac_new_val" >&2;}
1458         ac_cache_corrupted=:
1459       fi;;
1460   esac
1461   # Pass precious variables to config.status.
1462   if test "$ac_new_set" = set; then
1463     case $ac_new_val in
1464     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466     *) ac_arg=$ac_var=$ac_new_val ;;
1467     esac
1468     case " $ac_configure_args " in
1469       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1470       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471     esac
1472   fi
1473 done
1474 if $ac_cache_corrupted; then
1475   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479    { (exit 1); exit 1; }; }
1480 fi
1481
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514 ac_aux_dir=
1515 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1516   if test -f $ac_dir/install-sh; then
1517     ac_aux_dir=$ac_dir
1518     ac_install_sh="$ac_aux_dir/install-sh -c"
1519     break
1520   elif test -f $ac_dir/install.sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install.sh -c"
1523     break
1524   elif test -f $ac_dir/shtool; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/shtool install -c"
1527     break
1528   fi
1529 done
1530 if test -z "$ac_aux_dir"; then
1531   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1532 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1536 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1537 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
1539 # Make sure we can run config.sub.
1540 $ac_config_sub sun4 >/dev/null 2>&1 ||
1541   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1542 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1543    { (exit 1); exit 1; }; }
1544
1545 echo "$as_me:$LINENO: checking build system type" >&5
1546 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1547 if test "${ac_cv_build+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   ac_cv_build_alias=$build_alias
1551 test -z "$ac_cv_build_alias" &&
1552   ac_cv_build_alias=`$ac_config_guess`
1553 test -z "$ac_cv_build_alias" &&
1554   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1555 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1556    { (exit 1); exit 1; }; }
1557 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1558   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1560    { (exit 1); exit 1; }; }
1561
1562 fi
1563 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1564 echo "${ECHO_T}$ac_cv_build" >&6
1565 build=$ac_cv_build
1566 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571 echo "$as_me:$LINENO: checking host system type" >&5
1572 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1573 if test "${ac_cv_host+set}" = set; then
1574   echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576   ac_cv_host_alias=$host_alias
1577 test -z "$ac_cv_host_alias" &&
1578   ac_cv_host_alias=$ac_cv_build_alias
1579 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1580   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1586 echo "${ECHO_T}$ac_cv_host" >&6
1587 host=$ac_cv_host
1588 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593 echo "$as_me:$LINENO: checking target system type" >&5
1594 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1595 if test "${ac_cv_target+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   ac_cv_target_alias=$target_alias
1599 test "x$ac_cv_target_alias" = "x" &&
1600   ac_cv_target_alias=$ac_cv_host_alias
1601 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1602   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1603 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1604    { (exit 1); exit 1; }; }
1605
1606 fi
1607 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1608 echo "${ECHO_T}$ac_cv_target" >&6
1609 target=$ac_cv_target
1610 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613
1614
1615 # The aliases save the names the user supplied, while $host etc.
1616 # will get canonicalized.
1617 test -n "$target_alias" &&
1618   test "$program_prefix$program_suffix$program_transform_name" = \
1619     NONENONEs,x,x, &&
1620   program_prefix=${target_alias}-
1621
1622           ac_config_headers="$ac_config_headers config.h"
1623
1624 am__api_version="1.9"
1625 # Find a good install program.  We prefer a C program (faster),
1626 # so one script is as good as another.  But avoid the broken or
1627 # incompatible versions:
1628 # SysV /etc/install, /usr/sbin/install
1629 # SunOS /usr/etc/install
1630 # IRIX /sbin/install
1631 # AIX /bin/install
1632 # AmigaOS /C/install, which installs bootblocks on floppy discs
1633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1636 # OS/2's system install, which has a completely different semantic
1637 # ./install, which can be erroneously created by make from ./install.sh.
1638 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1639 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1640 if test -z "$INSTALL"; then
1641 if test "${ac_cv_path_install+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   # Account for people who put trailing slashes in PATH elements.
1650 case $as_dir/ in
1651   ./ | .// | /cC/* | \
1652   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1653   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1654   /usr/ucb/* ) ;;
1655   *)
1656     # OSF1 and SCO ODT 3.0 have their own names for install.
1657     # Don't use installbsd from OSF since it installs stuff as root
1658     # by default.
1659     for ac_prog in ginstall scoinst install; do
1660       for ac_exec_ext in '' $ac_executable_extensions; do
1661         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662           if test $ac_prog = install &&
1663             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664             # AIX install.  It has an incompatible calling convention.
1665             :
1666           elif test $ac_prog = install &&
1667             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668             # program-specific install script used by HP pwplus--don't use.
1669             :
1670           else
1671             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1672             break 3
1673           fi
1674         fi
1675       done
1676     done
1677     ;;
1678 esac
1679 done
1680
1681
1682 fi
1683   if test "${ac_cv_path_install+set}" = set; then
1684     INSTALL=$ac_cv_path_install
1685   else
1686     # As a last resort, use the slow shell script.  We don't cache a
1687     # path for INSTALL within a source directory, because that will
1688     # break other packages using the cache if that directory is
1689     # removed, or if the path is relative.
1690     INSTALL=$ac_install_sh
1691   fi
1692 fi
1693 echo "$as_me:$LINENO: result: $INSTALL" >&5
1694 echo "${ECHO_T}$INSTALL" >&6
1695
1696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697 # It thinks the first close brace ends the variable substitution.
1698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1699
1700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1701
1702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1703
1704 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706 # Just in case
1707 sleep 1
1708 echo timestamp > conftest.file
1709 # Do `set' in a subshell so we don't clobber the current shell's
1710 # arguments.  Must try -L first in case configure is actually a
1711 # symlink; some systems play weird games with the mod time of symlinks
1712 # (eg FreeBSD returns the mod time of the symlink's containing
1713 # directory).
1714 if (
1715    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716    if test "$*" = "X"; then
1717       # -L didn't work.
1718       set X `ls -t $srcdir/configure conftest.file`
1719    fi
1720    rm -f conftest.file
1721    if test "$*" != "X $srcdir/configure conftest.file" \
1722       && test "$*" != "X conftest.file $srcdir/configure"; then
1723
1724       # If neither matched, then we have a broken ls.  This can happen
1725       # if, for instance, CONFIG_SHELL is bash and it inherits a
1726       # broken ls alias from the environment.  This has actually
1727       # happened.  Such a system could not be considered "sane".
1728       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1731 alias in your environment" >&2;}
1732    { (exit 1); exit 1; }; }
1733    fi
1734
1735    test "$2" = conftest.file
1736    )
1737 then
1738    # Ok.
1739    :
1740 else
1741    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745    { (exit 1); exit 1; }; }
1746 fi
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749 test "$program_prefix" != NONE &&
1750   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751 # Use a double $ so make ignores it.
1752 test "$program_suffix" != NONE &&
1753   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754 # Double any \ or $.  echo might interpret backslashes.
1755 # By default was `s,x,x', remove it if useless.
1756 cat <<\_ACEOF >conftest.sed
1757 s/[\\$]/&&/g;s/;s,x,x,$//
1758 _ACEOF
1759 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760 rm conftest.sed
1761
1762 # expand $ac_aux_dir to an absolute path
1763 am_aux_dir=`cd $ac_aux_dir && pwd`
1764
1765 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1766 # Use eval to expand $SHELL
1767 if eval "$MISSING --run true"; then
1768   am_missing_run="$MISSING --run "
1769 else
1770   am_missing_run=
1771   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1772 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1773 fi
1774
1775 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1776   # We used to keeping the `.' as first argument, in order to
1777   # allow $(mkdir_p) to be used without argument.  As in
1778   #   $(mkdir_p) $(somedir)
1779   # where $(somedir) is conditionally defined.  However this is wrong
1780   # for two reasons:
1781   #  1. if the package is installed by a user who cannot write `.'
1782   #     make install will fail,
1783   #  2. the above comment should most certainly read
1784   #     $(mkdir_p) $(DESTDIR)$(somedir)
1785   #     so it does not work when $(somedir) is undefined and
1786   #     $(DESTDIR) is not.
1787   #  To support the latter case, we have to write
1788   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1789   #  so the `.' trick is pointless.
1790   mkdir_p='mkdir -p --'
1791 else
1792   # On NextStep and OpenStep, the `mkdir' command does not
1793   # recognize any option.  It will interpret all options as
1794   # directories to create, and then abort because `.' already
1795   # exists.
1796   for d in ./-p ./--version;
1797   do
1798     test -d $d && rmdir $d
1799   done
1800   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1801   if test -f "$ac_aux_dir/mkinstalldirs"; then
1802     mkdir_p='$(mkinstalldirs)'
1803   else
1804     mkdir_p='$(install_sh) -d'
1805   fi
1806 fi
1807
1808 for ac_prog in gawk mawk nawk awk
1809 do
1810   # Extract the first word of "$ac_prog", so it can be a program name with args.
1811 set dummy $ac_prog; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_AWK+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$AWK"; then
1818   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_AWK="$ac_prog"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 AWK=$ac_cv_prog_AWK
1837 if test -n "$AWK"; then
1838   echo "$as_me:$LINENO: result: $AWK" >&5
1839 echo "${ECHO_T}$AWK" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845   test -n "$AWK" && break
1846 done
1847
1848 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1849 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   cat >conftest.make <<\_ACEOF
1855 all:
1856         @echo 'ac_maketemp="$(MAKE)"'
1857 _ACEOF
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1860 if test -n "$ac_maketemp"; then
1861   eval ac_cv_prog_make_${ac_make}_set=yes
1862 else
1863   eval ac_cv_prog_make_${ac_make}_set=no
1864 fi
1865 rm -f conftest.make
1866 fi
1867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1868   echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870   SET_MAKE=
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874   SET_MAKE="MAKE=${MAKE-make}"
1875 fi
1876
1877 rm -rf .tst 2>/dev/null
1878 mkdir .tst 2>/dev/null
1879 if test -d .tst; then
1880   am__leading_dot=.
1881 else
1882   am__leading_dot=_
1883 fi
1884 rmdir .tst 2>/dev/null
1885
1886 # test to see if srcdir already configured
1887 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1888    test -f $srcdir/config.status; then
1889   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1890 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894 # test whether we have cygpath
1895 if test -z "$CYGPATH_W"; then
1896   if (cygpath --version) >/dev/null 2>/dev/null; then
1897     CYGPATH_W='cygpath -w'
1898   else
1899     CYGPATH_W=echo
1900   fi
1901 fi
1902
1903
1904 # Define the identity of the package.
1905  PACKAGE='zlib'
1906  VERSION='1.2.1.1'
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE "$PACKAGE"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define VERSION "$VERSION"
1916 _ACEOF
1917
1918 # Some tools Automake needs.
1919
1920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1921
1922
1923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1924
1925
1926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1927
1928
1929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1930
1931
1932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1933
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1935
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'.  However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941   if test -n "$ac_tool_prefix"; then
1942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$STRIP"; then
1950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970   echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1972 else
1973   echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 fi
1978 if test -z "$ac_cv_prog_STRIP"; then
1979   ac_ct_STRIP=$STRIP
1980   # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$ac_ct_STRIP"; then
1988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997     ac_cv_prog_ac_ct_STRIP="strip"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2005 fi
2006 fi
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   STRIP=$ac_ct_STRIP
2017 else
2018   STRIP="$ac_cv_prog_STRIP"
2019 fi
2020
2021 fi
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2023
2024 # We need awk for the "check" target.  The system "awk" is bad on
2025 # some platforms.
2026 # Always define AMTAR for backward compatibility.
2027
2028 AMTAR=${AMTAR-"${am_missing_run}tar"}
2029
2030 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2031
2032
2033
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 if test -n "$ac_tool_prefix"; then
2043   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071   echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078 fi
2079 if test -z "$ac_cv_prog_CC"; then
2080   ac_ct_CC=$CC
2081   # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$ac_ct_CC"; then
2089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_ac_ct_CC="gcc"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116   CC=$ac_ct_CC
2117 else
2118   CC="$ac_cv_prog_CC"
2119 fi
2120
2121 if test -z "$CC"; then
2122   if test -n "$ac_tool_prefix"; then
2123   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   if test -n "$CC"; then
2131   ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   for ac_exec_ext in '' $ac_executable_extensions; do
2139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140     ac_cv_prog_CC="${ac_tool_prefix}cc"
2141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142     break 2
2143   fi
2144 done
2145 done
2146
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151   echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2153 else
2154   echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2156 fi
2157
2158 fi
2159 if test -z "$ac_cv_prog_CC"; then
2160   ac_ct_CC=$CC
2161   # Extract the first word of "cc", so it can be a program name with args.
2162 set dummy cc; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test -n "$ac_ct_CC"; then
2169   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
2175   test -z "$as_dir" && as_dir=.
2176   for ac_exec_ext in '' $ac_executable_extensions; do
2177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178     ac_cv_prog_ac_ct_CC="cc"
2179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180     break 2
2181   fi
2182 done
2183 done
2184
2185 fi
2186 fi
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6
2191 else
2192   echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2194 fi
2195
2196   CC=$ac_ct_CC
2197 else
2198   CC="$ac_cv_prog_CC"
2199 fi
2200
2201 fi
2202 if test -z "$CC"; then
2203   # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test -n "$CC"; then
2211   ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213   ac_prog_rejected=no
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222        ac_prog_rejected=yes
2223        continue
2224      fi
2225     ac_cv_prog_CC="cc"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231
2232 if test $ac_prog_rejected = yes; then
2233   # We found a bogon in the path, so make sure we never use it.
2234   set dummy $ac_cv_prog_CC
2235   shift
2236   if test $# != 0; then
2237     # We chose a different compiler from the bogus one.
2238     # However, it has the same basename, so the bogon will be chosen
2239     # first if we set CC to just the basename; use the full file name.
2240     shift
2241     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2242   fi
2243 fi
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248   echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251   echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 fi
2256 if test -z "$CC"; then
2257   if test -n "$ac_tool_prefix"; then
2258   for ac_prog in cl
2259   do
2260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   if test -n "$CC"; then
2268   ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2290 else
2291   echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2294
2295     test -n "$CC" && break
2296   done
2297 fi
2298 if test -z "$CC"; then
2299   ac_ct_CC=$CC
2300   for ac_prog in cl
2301 do
2302   # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   if test -n "$ac_ct_CC"; then
2310   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319     ac_cv_prog_ac_ct_CC="$ac_prog"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325
2326 fi
2327 fi
2328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329 if test -n "$ac_ct_CC"; then
2330   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331 echo "${ECHO_T}$ac_ct_CC" >&6
2332 else
2333   echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6
2335 fi
2336
2337   test -n "$ac_ct_CC" && break
2338 done
2339
2340   CC=$ac_ct_CC
2341 fi
2342
2343 fi
2344
2345
2346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: no acceptable C compiler found in \$PATH
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351
2352 # Provide some information about the compiler.
2353 echo "$as_me:$LINENO:" \
2354      "checking for C compiler version" >&5
2355 ac_compiler=`set X $ac_compile; echo $2`
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357   (eval $ac_compiler --version </dev/null >&5) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362   (eval $ac_compiler -v </dev/null >&5) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367   (eval $ac_compiler -V </dev/null >&5) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }
2371
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378
2379 int
2380 main ()
2381 {
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2396   (eval $ac_link_default) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; then
2400   # Find the output, starting from the most likely.  This scheme is
2401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2402 # resort.
2403
2404 # Be careful to initialize this variable, since it used to be cached.
2405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2406 ac_cv_exeext=
2407 # b.out is created by i960 compilers.
2408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2409 do
2410   test -f "$ac_file" || continue
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2413         ;;
2414     conftest.$ac_ext )
2415         # This is the source file.
2416         ;;
2417     [ab].out )
2418         # We found the default executable, but exeext='' is most
2419         # certainly right.
2420         break;;
2421     *.* )
2422         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423         # FIXME: I believe we export ac_cv_exeext for Libtool,
2424         # but it would be cool to find out if it's true.  Does anybody
2425         # maintain Libtool? --akim.
2426         export ac_cv_exeext
2427         break;;
2428     * )
2429         break;;
2430   esac
2431 done
2432 else
2433   echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: C compiler cannot create executables
2439 See \`config.log' for more details." >&2;}
2440    { (exit 77); exit 77; }; }
2441 fi
2442
2443 ac_exeext=$ac_cv_exeext
2444 echo "$as_me:$LINENO: result: $ac_file" >&5
2445 echo "${ECHO_T}$ac_file" >&6
2446
2447 # Check the compiler produces executables we can run.  If not, either
2448 # the compiler is broken, or we cross compile.
2449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452 # If not cross compiling, check that we can run a simple program.
2453 if test "$cross_compiling" != yes; then
2454   if { ac_try='./$ac_file'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460     cross_compiling=no
2461   else
2462     if test "$cross_compiling" = maybe; then
2463         cross_compiling=yes
2464     else
2465         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2466 If you meant to cross compile, use \`--host'.
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot run C compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }
2472     fi
2473   fi
2474 fi
2475 echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2477
2478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2479 ac_clean_files=$ac_clean_files_save
2480 # Check the compiler produces executables we can run.  If not, either
2481 # the compiler is broken, or we cross compile.
2482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485 echo "${ECHO_T}$cross_compiling" >&6
2486
2487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490   (eval $ac_link) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; then
2494   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2495 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe'), while it won't with
2497 # `rm'.
2498 for ac_file in conftest.exe conftest conftest.*; do
2499   test -f "$ac_file" || continue
2500   case $ac_file in
2501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2502     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503           export ac_cv_exeext
2504           break;;
2505     * ) break;;
2506   esac
2507 done
2508 else
2509   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513    { (exit 1); exit 1; }; }
2514 fi
2515
2516 rm -f conftest$ac_cv_exeext
2517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6
2519
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2522 ac_exeext=$EXEEXT
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553        break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cc_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689   CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691   if test "$GCC" = yes; then
2692     CFLAGS="-g -O2"
2693   else
2694     CFLAGS="-g"
2695   fi
2696 else
2697   if test "$GCC" = yes; then
2698     CFLAGS="-O2"
2699   else
2700     CFLAGS=
2701   fi
2702 fi
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724      char **p;
2725      int i;
2726 {
2727   return p[i];
2728 }
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2730 {
2731   char *s;
2732   va_list v;
2733   va_start (v,p);
2734   s = g (p, va_arg (v,int));
2735   va_end (v);
2736   return s;
2737 }
2738
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2740    function prototypes and stuff, but not '\xHH' hex character constants.
2741    These don't provoke an error unfortunately, instead are silently treated
2742    as 'x'.  The following induces an error, until -std1 is added to get
2743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2744    array size at least.  It's necessary to write '\x00'==0 to get something
2745    that's true only with -std1.  */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX                   -qlanglvl=ansi
2765 # Ultrix and OSF/1      -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2768 # SVR4                  -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 do
2771   CC="$ac_save_CC $ac_arg"
2772   rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 fi
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2805
2806 fi
2807
2808 case "x$ac_cv_prog_cc_stdc" in
2809   x|xno)
2810     echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2812   *)
2813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815     CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2817
2818 # Some people use a C++ compiler to compile C.  Since we use `exit',
2819 # in C++ we need to declare it.  In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824   choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   for ac_declaration in \
2850    '' \
2851    'extern "C" void std::exit (int) throw (); using std::exit;' \
2852    'extern "C" void std::exit (int); using std::exit;' \
2853    'extern "C" void exit (int) throw ();' \
2854    'extern "C" void exit (int);' \
2855    'void exit (int);'
2856 do
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 #include <stdlib.h>
2865 int
2866 main ()
2867 {
2868 exit (42);
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875   (eval $ac_compile) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_c_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest.$ac_objext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   :
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 continue
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 $ac_declaration
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   break
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 fi
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950   echo '#ifdef __cplusplus' >>confdefs.h
2951   echo $ac_declaration      >>confdefs.h
2952   echo '#endif'             >>confdefs.h
2953 fi
2954
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 DEPDIR="${am__leading_dot}deps"
2967
2968           ac_config_commands="$ac_config_commands depfiles"
2969
2970
2971 am_make=${MAKE-make}
2972 cat > confinc << 'END'
2973 am__doit:
2974         @echo done
2975 .PHONY: am__doit
2976 END
2977 # If we don't find an include directive, just comment out the code.
2978 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2979 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2980 am__include="#"
2981 am__quote=
2982 _am_result=none
2983 # First try GNU make style include.
2984 echo "include confinc" > confmf
2985 # We grep out `Entering directory' and `Leaving directory'
2986 # messages which can occur if `w' ends up in MAKEFLAGS.
2987 # In particular we don't look at `^make:' because GNU make might
2988 # be invoked under some other name (usually "gmake"), in which
2989 # case it prints its new name instead of `make'.
2990 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2991    am__include=include
2992    am__quote=
2993    _am_result=GNU
2994 fi
2995 # Now try BSD make style include.
2996 if test "$am__include" = "#"; then
2997    echo '.include "confinc"' > confmf
2998    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2999       am__include=.include
3000       am__quote="\""
3001       _am_result=BSD
3002    fi
3003 fi
3004
3005
3006 echo "$as_me:$LINENO: result: $_am_result" >&5
3007 echo "${ECHO_T}$_am_result" >&6
3008 rm -f confinc confmf
3009
3010 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3011 if test "${enable_dependency_tracking+set}" = set; then
3012   enableval="$enable_dependency_tracking"
3013
3014 fi;
3015 if test "x$enable_dependency_tracking" != xno; then
3016   am_depcomp="$ac_aux_dir/depcomp"
3017   AMDEPBACKSLASH='\'
3018 fi
3019
3020
3021 if test "x$enable_dependency_tracking" != xno; then
3022   AMDEP_TRUE=
3023   AMDEP_FALSE='#'
3024 else
3025   AMDEP_TRUE='#'
3026   AMDEP_FALSE=
3027 fi
3028
3029
3030
3031
3032 depcc="$CC"   am_compiler_list=
3033
3034 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3035 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3036 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3040   # We make a subdir and do the tests there.  Otherwise we can end up
3041   # making bogus files that we don't know about and never remove.  For
3042   # instance it was reported that on HP-UX the gcc test will end up
3043   # making a dummy file named `D' -- because `-MD' means `put the output
3044   # in D'.
3045   mkdir conftest.dir
3046   # Copy depcomp to subdir because otherwise we won't find it if we're
3047   # using a relative directory.
3048   cp "$am_depcomp" conftest.dir
3049   cd conftest.dir
3050   # We will build objects and dependencies in a subdirectory because
3051   # it helps to detect inapplicable dependency modes.  For instance
3052   # both Tru64's cc and ICC support -MD to output dependencies as a
3053   # side effect of compilation, but ICC will put the dependencies in
3054   # the current directory while Tru64 will put them in the object
3055   # directory.
3056   mkdir sub
3057
3058   am_cv_CC_dependencies_compiler_type=none
3059   if test "$am_compiler_list" = ""; then
3060      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3061   fi
3062   for depmode in $am_compiler_list; do
3063     # Setup a source with many dependencies, because some compilers
3064     # like to wrap large dependency lists on column 80 (with \), and
3065     # we should not choose a depcomp mode which is confused by this.
3066     #
3067     # We need to recreate these files for each test, as the compiler may
3068     # overwrite some of them when testing with obscure command lines.
3069     # This happens at least with the AIX C compiler.
3070     : > sub/conftest.c
3071     for i in 1 2 3 4 5 6; do
3072       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3073       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3074       # Solaris 8's {/usr,}/bin/sh.
3075       touch sub/conftst$i.h
3076     done
3077     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3078
3079     case $depmode in
3080     nosideeffect)
3081       # after this tag, mechanisms are not by side-effect, so they'll
3082       # only be used when explicitly requested
3083       if test "x$enable_dependency_tracking" = xyes; then
3084         continue
3085       else
3086         break
3087       fi
3088       ;;
3089     none) break ;;
3090     esac
3091     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3092     # mode.  It turns out that the SunPro C++ compiler does not properly
3093     # handle `-M -o', and we need to detect this.
3094     if depmode=$depmode \
3095        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3096        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3097        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3098          >/dev/null 2>conftest.err &&
3099        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3100        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3101        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3102       # icc doesn't choke on unknown options, it will just issue warnings
3103       # or remarks (even with -Werror).  So we grep stderr for any message
3104       # that says an option was ignored or not supported.
3105       # When given -MP, icc 7.0 and 7.1 complain thusly:
3106       #   icc: Command line warning: ignoring option '-M'; no argument required
3107       # The diagnosis changed in icc 8.0:
3108       #   icc: Command line remark: option '-MP' not supported
3109       if (grep 'ignoring option' conftest.err ||
3110           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3111         am_cv_CC_dependencies_compiler_type=$depmode
3112         break
3113       fi
3114     fi
3115   done
3116
3117   cd ..
3118   rm -rf conftest.dir
3119 else
3120   am_cv_CC_dependencies_compiler_type=none
3121 fi
3122
3123 fi
3124 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3125 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3127
3128
3129
3130 if
3131   test "x$enable_dependency_tracking" != xno \
3132   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3133   am__fastdepCC_TRUE=
3134   am__fastdepCC_FALSE='#'
3135 else
3136   am__fastdepCC_TRUE='#'
3137   am__fastdepCC_FALSE=
3138 fi
3139
3140
3141 # Check whether --enable-shared or --disable-shared was given.
3142 if test "${enable_shared+set}" = set; then
3143   enableval="$enable_shared"
3144   p=${PACKAGE-default}
3145     case $enableval in
3146     yes) enable_shared=yes ;;
3147     no) enable_shared=no ;;
3148     *)
3149       enable_shared=no
3150       # Look at the argument we got.  We use all the common list separators.
3151       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3152       for pkg in $enableval; do
3153         IFS="$lt_save_ifs"
3154         if test "X$pkg" = "X$p"; then
3155           enable_shared=yes
3156         fi
3157       done
3158       IFS="$lt_save_ifs"
3159       ;;
3160     esac
3161 else
3162   enable_shared=yes
3163 fi;
3164
3165 # Check whether --enable-static or --disable-static was given.
3166 if test "${enable_static+set}" = set; then
3167   enableval="$enable_static"
3168   p=${PACKAGE-default}
3169     case $enableval in
3170     yes) enable_static=yes ;;
3171     no) enable_static=no ;;
3172     *)
3173      enable_static=no
3174       # Look at the argument we got.  We use all the common list separators.
3175       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3176       for pkg in $enableval; do
3177         IFS="$lt_save_ifs"
3178         if test "X$pkg" = "X$p"; then
3179           enable_static=yes
3180         fi
3181       done
3182       IFS="$lt_save_ifs"
3183       ;;
3184     esac
3185 else
3186   enable_static=yes
3187 fi;
3188
3189 # Check whether --enable-fast-install or --disable-fast-install was given.
3190 if test "${enable_fast_install+set}" = set; then
3191   enableval="$enable_fast_install"
3192   p=${PACKAGE-default}
3193     case $enableval in
3194     yes) enable_fast_install=yes ;;
3195     no) enable_fast_install=no ;;
3196     *)
3197       enable_fast_install=no
3198       # Look at the argument we got.  We use all the common list separators.
3199       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3200       for pkg in $enableval; do
3201         IFS="$lt_save_ifs"
3202         if test "X$pkg" = "X$p"; then
3203           enable_fast_install=yes
3204         fi
3205       done
3206       IFS="$lt_save_ifs"
3207       ;;
3208     esac
3209 else
3210   enable_fast_install=yes
3211 fi;
3212
3213 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3214 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3215 if test "${lt_cv_path_SED+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   # Loop through the user's path and test for sed and gsed.
3219 # Then use that list of sed's as ones to test for truncation.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225   for lt_ac_prog in sed gsed; do
3226     for ac_exec_ext in '' $ac_executable_extensions; do
3227       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3228         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3229       fi
3230     done
3231   done
3232 done
3233 lt_ac_max=0
3234 lt_ac_count=0
3235 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3236 # along with /bin/sed that truncates output.
3237 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3238   test ! -f $lt_ac_sed && break
3239   cat /dev/null > conftest.in
3240   lt_ac_count=0
3241   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3242   # Check for GNU sed and select it if it is found.
3243   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3244     lt_cv_path_SED=$lt_ac_sed
3245     break
3246   fi
3247   while true; do
3248     cat conftest.in conftest.in >conftest.tmp
3249     mv conftest.tmp conftest.in
3250     cp conftest.in conftest.nl
3251     echo >>conftest.nl
3252     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3253     cmp -s conftest.out conftest.nl || break
3254     # 10000 chars as input seems more than enough
3255     test $lt_ac_count -gt 10 && break
3256     lt_ac_count=`expr $lt_ac_count + 1`
3257     if test $lt_ac_count -gt $lt_ac_max; then
3258       lt_ac_max=$lt_ac_count
3259       lt_cv_path_SED=$lt_ac_sed
3260     fi
3261   done
3262 done
3263 SED=$lt_cv_path_SED
3264
3265 fi
3266
3267 echo "$as_me:$LINENO: result: $SED" >&5
3268 echo "${ECHO_T}$SED" >&6
3269
3270 echo "$as_me:$LINENO: checking for egrep" >&5
3271 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3272 if test "${ac_cv_prog_egrep+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3276     then ac_cv_prog_egrep='grep -E'
3277     else ac_cv_prog_egrep='egrep'
3278     fi
3279 fi
3280 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3281 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3282  EGREP=$ac_cv_prog_egrep
3283
3284
3285
3286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3287 if test "${with_gnu_ld+set}" = set; then
3288   withval="$with_gnu_ld"
3289   test "$withval" = no || with_gnu_ld=yes
3290 else
3291   with_gnu_ld=no
3292 fi;
3293 ac_prog=ld
3294 if test "$GCC" = yes; then
3295   # Check if gcc -print-prog-name=ld gives a path.
3296   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3297 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3298   case $host in
3299   *-*-mingw*)
3300     # gcc leaves a trailing carriage return which upsets mingw
3301     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3302   *)
3303     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3304   esac
3305   case $ac_prog in
3306     # Accept absolute paths.
3307     [\\/]* | ?:[\\/]*)
3308       re_direlt='/[^/][^/]*/\.\./'
3309       # Canonicalize the pathname of ld
3310       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3311       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3312         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3313       done
3314       test -z "$LD" && LD="$ac_prog"
3315       ;;
3316   "")
3317     # If it fails, then pretend we aren't using GCC.
3318     ac_prog=ld
3319     ;;
3320   *)
3321     # If it is relative, then search for the first ld in PATH.
3322     with_gnu_ld=unknown
3323     ;;
3324   esac
3325 elif test "$with_gnu_ld" = yes; then
3326   echo "$as_me:$LINENO: checking for GNU ld" >&5
3327 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3328 else
3329   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3330 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3331 fi
3332 if test "${lt_cv_path_LD+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -z "$LD"; then
3336   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3337   for ac_dir in $PATH; do
3338     IFS="$lt_save_ifs"
3339     test -z "$ac_dir" && ac_dir=.
3340     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3341       lt_cv_path_LD="$ac_dir/$ac_prog"
3342       # Check to see if the program is GNU ld.  I'd rather use --version,
3343       # but apparently some GNU ld's only accept -v.
3344       # Break only if it was the GNU/non-GNU ld that we prefer.
3345       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3346       *GNU* | *'with BFD'*)
3347         test "$with_gnu_ld" != no && break
3348         ;;
3349       *)
3350         test "$with_gnu_ld" != yes && break
3351         ;;
3352       esac
3353     fi
3354   done
3355   IFS="$lt_save_ifs"
3356 else
3357   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3358 fi
3359 fi
3360
3361 LD="$lt_cv_path_LD"
3362 if test -n "$LD"; then
3363   echo "$as_me:$LINENO: result: $LD" >&5
3364 echo "${ECHO_T}$LD" >&6
3365 else
3366   echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3370 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3371    { (exit 1); exit 1; }; }
3372 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3373 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3374 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3378 case `$LD -v 2>&1 </dev/null` in
3379 *GNU* | *'with BFD'*)
3380   lt_cv_prog_gnu_ld=yes
3381   ;;
3382 *)
3383   lt_cv_prog_gnu_ld=no
3384   ;;
3385 esac
3386 fi
3387 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3388 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3389 with_gnu_ld=$lt_cv_prog_gnu_ld
3390
3391
3392 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3393 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3394 if test "${lt_cv_ld_reload_flag+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   lt_cv_ld_reload_flag='-r'
3398 fi
3399 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3400 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3401 reload_flag=$lt_cv_ld_reload_flag
3402 case $reload_flag in
3403 "" | " "*) ;;
3404 *) reload_flag=" $reload_flag" ;;
3405 esac
3406 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3407
3408 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3409 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3410 if test "${lt_cv_path_NM+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -n "$NM"; then
3414   # Let the user override the test.
3415   lt_cv_path_NM="$NM"
3416 else
3417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3418   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3419     IFS="$lt_save_ifs"
3420     test -z "$ac_dir" && ac_dir=.
3421     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3422     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3423       # Check to see if the nm accepts a BSD-compat flag.
3424       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425       #   nm: unknown option "B" ignored
3426       # Tru64's nm complains that /dev/null is an invalid object file
3427       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3428       */dev/null* | *'Invalid file or object type'*)
3429         lt_cv_path_NM="$tmp_nm -B"
3430         break
3431         ;;
3432       *)
3433         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3434         */dev/null*)
3435           lt_cv_path_NM="$tmp_nm -p"
3436           break
3437           ;;
3438         *)
3439           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3440           continue # so that we can try to find one that supports BSD flags
3441           ;;
3442         esac
3443       esac
3444     fi
3445   done
3446   IFS="$lt_save_ifs"
3447   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3448 fi
3449 fi
3450 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3451 echo "${ECHO_T}$lt_cv_path_NM" >&6
3452 NM="$lt_cv_path_NM"
3453
3454 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3456 LN_S=$as_ln_s
3457 if test "$LN_S" = "ln -s"; then
3458   echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3460 else
3461   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3462 echo "${ECHO_T}no, using $LN_S" >&6
3463 fi
3464
3465 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3466 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3467 if test "${lt_cv_deplibs_check_method+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   lt_cv_file_magic_cmd='$MAGIC_CMD'
3471 lt_cv_file_magic_test_file=
3472 lt_cv_deplibs_check_method='unknown'
3473 # Need to set the preceding variable on all platforms that support
3474 # interlibrary dependencies.
3475 # 'none' -- dependencies not supported.
3476 # `unknown' -- same as none, but documents that we really don't know.
3477 # 'pass_all' -- all dependencies passed with no checks.
3478 # 'test_compile' -- check by making test program.
3479 # 'file_magic [[regex]]' -- check by looking for files in library path
3480 # which responds to the $file_magic_cmd with a given extended regex.
3481 # If you have `file' or equivalent on your system and you're not sure
3482 # whether `pass_all' will *always* work, you probably want this one.
3483
3484 case $host_os in
3485 aix4* | aix5*)
3486   lt_cv_deplibs_check_method=pass_all
3487   ;;
3488
3489 beos*)
3490   lt_cv_deplibs_check_method=pass_all
3491   ;;
3492
3493 bsdi4*)
3494   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3495   lt_cv_file_magic_cmd='/usr/bin/file -L'
3496   lt_cv_file_magic_test_file=/shlib/libc.so
3497   ;;
3498
3499 cygwin*)
3500   # func_win32_libid is a shell function defined in ltmain.sh
3501   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3502   lt_cv_file_magic_cmd='func_win32_libid'
3503   ;;
3504
3505 mingw* | pw32*)
3506   # Base MSYS/MinGW do not provide the 'file' command needed by
3507   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3508   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3509   lt_cv_file_magic_cmd='$OBJDUMP -f'
3510   ;;
3511
3512 darwin* | rhapsody*)
3513   lt_cv_deplibs_check_method=pass_all
3514   ;;
3515
3516 freebsd* | kfreebsd*-gnu)
3517   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3518     case $host_cpu in
3519     i*86 )
3520       # Not sure whether the presence of OpenBSD here was a mistake.
3521       # Let's accept both of them until this is cleared up.
3522       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3523       lt_cv_file_magic_cmd=/usr/bin/file
3524       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3525       ;;
3526     esac
3527   else
3528     lt_cv_deplibs_check_method=pass_all
3529   fi
3530   ;;
3531
3532 gnu*)
3533   lt_cv_deplibs_check_method=pass_all
3534   ;;
3535
3536 hpux10.20* | hpux11*)
3537   lt_cv_file_magic_cmd=/usr/bin/file
3538   case "$host_cpu" in
3539   ia64*)
3540     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3541     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3542     ;;
3543   hppa*64*)
3544     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]'
3545     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3546     ;;
3547   *)
3548     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3549     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550     ;;
3551   esac
3552   ;;
3553
3554 irix5* | irix6* | nonstopux*)
3555   case $LD in
3556   *-32|*"-32 ") libmagic=32-bit;;
3557   *-n32|*"-n32 ") libmagic=N32;;
3558   *-64|*"-64 ") libmagic=64-bit;;
3559   *) libmagic=never-match;;
3560   esac
3561   lt_cv_deplibs_check_method=pass_all
3562   ;;
3563
3564 # This must be Linux ELF.
3565 linux*)
3566   case $host_cpu in
3567   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3568     lt_cv_deplibs_check_method=pass_all ;;
3569   *)
3570     # glibc up to 2.1.1 does not perform some relocations on ARM
3571     # this will be overridden with pass_all, but let us keep it just in case
3572     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3573   esac
3574   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3575   lt_cv_deplibs_check_method=pass_all
3576   ;;
3577
3578 netbsd*)
3579   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3581   else
3582     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3583   fi
3584   ;;
3585
3586 newos6*)
3587   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3588   lt_cv_file_magic_cmd=/usr/bin/file
3589   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3590   ;;
3591
3592 nto-qnx*)
3593   lt_cv_deplibs_check_method=unknown
3594   ;;
3595
3596 openbsd*)
3597   lt_cv_file_magic_cmd=/usr/bin/file
3598   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3599   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3600     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3601   else
3602     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3603   fi
3604   ;;
3605
3606 osf3* | osf4* | osf5*)
3607   lt_cv_deplibs_check_method=pass_all
3608   ;;
3609
3610 sco3.2v5*)
3611   lt_cv_deplibs_check_method=pass_all
3612   ;;
3613
3614 solaris*)
3615   lt_cv_deplibs_check_method=pass_all
3616   ;;
3617
3618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3619   case $host_vendor in
3620   motorola)
3621     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]'
3622     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3623     ;;
3624   ncr)
3625     lt_cv_deplibs_check_method=pass_all
3626     ;;
3627   sequent)
3628     lt_cv_file_magic_cmd='/bin/file'
3629     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3630     ;;
3631   sni)
3632     lt_cv_file_magic_cmd='/bin/file'
3633     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3634     lt_cv_file_magic_test_file=/lib/libc.so
3635     ;;
3636   siemens)
3637     lt_cv_deplibs_check_method=pass_all
3638     ;;
3639   esac
3640   ;;
3641
3642 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3643   lt_cv_deplibs_check_method=pass_all
3644   ;;
3645 esac
3646
3647 fi
3648 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3649 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3650 file_magic_cmd=$lt_cv_file_magic_cmd
3651 deplibs_check_method=$lt_cv_deplibs_check_method
3652 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3653
3654
3655
3656
3657 # If no C compiler was specified, use CC.
3658 LTCC=${LTCC-"$CC"}
3659
3660 # Allow CC to be a program name with arguments.
3661 compiler=$CC
3662
3663
3664 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3665 if test "${enable_libtool_lock+set}" = set; then
3666   enableval="$enable_libtool_lock"
3667
3668 fi;
3669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3670
3671 # Some flags need to be propagated to the compiler or linker for good
3672 # libtool support.
3673 case $host in
3674 ia64-*-hpux*)
3675   # Find out which ABI we are using.
3676   echo 'int i;' > conftest.$ac_ext
3677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678   (eval $ac_compile) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; then
3682     case `/usr/bin/file conftest.$ac_objext` in
3683     *ELF-32*)
3684       HPUX_IA64_MODE="32"
3685       ;;
3686     *ELF-64*)
3687       HPUX_IA64_MODE="64"
3688       ;;
3689     esac
3690   fi
3691   rm -rf conftest*
3692   ;;
3693 *-*-irix6*)
3694   # Find out which ABI we are using.
3695   echo '#line 3695 "configure"' > conftest.$ac_ext
3696   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697   (eval $ac_compile) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; then
3701    if test "$lt_cv_prog_gnu_ld" = yes; then
3702     case `/usr/bin/file conftest.$ac_objext` in
3703     *32-bit*)
3704       LD="${LD-ld} -melf32bsmip"
3705       ;;
3706     *N32*)
3707       LD="${LD-ld} -melf32bmipn32"
3708       ;;
3709     *64-bit*)
3710       LD="${LD-ld} -melf64bmip"
3711       ;;
3712     esac
3713    else
3714     case `/usr/bin/file conftest.$ac_objext` in
3715     *32-bit*)
3716       LD="${LD-ld} -32"
3717       ;;
3718     *N32*)
3719       LD="${LD-ld} -n32"
3720       ;;
3721     *64-bit*)
3722       LD="${LD-ld} -64"
3723       ;;
3724     esac
3725    fi
3726   fi
3727   rm -rf conftest*
3728   ;;
3729
3730 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3731   # Find out which ABI we are using.
3732   echo 'int i;' > conftest.$ac_ext
3733   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734   (eval $ac_compile) 2>&5
3735   ac_status=$?
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); }; then
3738     case "`/usr/bin/file conftest.o`" in
3739     *32-bit*)
3740       case $host in
3741         x86_64-*linux*)
3742           LD="${LD-ld} -m elf_i386"
3743           ;;
3744         ppc64-*linux*|powerpc64-*linux*)
3745           LD="${LD-ld} -m elf32ppclinux"
3746           ;;
3747         s390x-*linux*)
3748           LD="${LD-ld} -m elf_s390"
3749           ;;
3750         sparc64-*linux*)
3751           LD="${LD-ld} -m elf32_sparc"
3752           ;;
3753       esac
3754       ;;
3755     *64-bit*)
3756       case $host in
3757         x86_64-*linux*)
3758           LD="${LD-ld} -m elf_x86_64"
3759           ;;
3760         ppc*-*linux*|powerpc*-*linux*)
3761           LD="${LD-ld} -m elf64ppc"
3762           ;;
3763         s390*-*linux*)
3764           LD="${LD-ld} -m elf64_s390"
3765           ;;
3766         sparc*-*linux*)
3767           LD="${LD-ld} -m elf64_sparc"
3768           ;;
3769       esac
3770       ;;
3771     esac
3772   fi
3773   rm -rf conftest*
3774   ;;
3775
3776 *-*-sco3.2v5*)
3777   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3778   SAVE_CFLAGS="$CFLAGS"
3779   CFLAGS="$CFLAGS -belf"
3780   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3781 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3782 if test "${lt_cv_cc_needs_belf+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791      cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h.  */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.$ac_objext conftest$ac_exeext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808   (eval $ac_link) 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -z "$ac_c_werror_flag"
3816                          || test ! -s conftest.err'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; } &&
3822          { ac_try='test -s conftest$ac_exeext'
3823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824   (eval $ac_try) 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }; }; then
3828   lt_cv_cc_needs_belf=yes
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 lt_cv_cc_needs_belf=no
3834 fi
3835 rm -f conftest.err conftest.$ac_objext \
3836       conftest$ac_exeext conftest.$ac_ext
3837      ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843 fi
3844 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3845 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3846   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3847     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3848     CFLAGS="$SAVE_CFLAGS"
3849   fi
3850   ;;
3851
3852 esac
3853
3854 need_locks="$enable_libtool_lock"
3855
3856
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3864 # On Suns, sometimes $CPP names a directory.
3865 if test -n "$CPP" && test -d "$CPP"; then
3866   CPP=
3867 fi
3868 if test -z "$CPP"; then
3869   if test "${ac_cv_prog_CPP+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872       # Double quotes because CPP needs to be expanded
3873     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3874     do
3875       ac_preproc_ok=false
3876 for ac_c_preproc_warn_flag in '' yes
3877 do
3878   # Use a header file that comes with gcc, so configuring glibc
3879   # with a fresh cross-compiler works.
3880   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881   # <limits.h> exists even on freestanding compilers.
3882   # On the NeXT, cc -E runs the code through the compiler's parser,
3883   # not just through cpp. "Syntax error" is here to catch this case.
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #ifdef __STDC__
3891 # include <limits.h>
3892 #else
3893 # include <assert.h>
3894 #endif
3895                      Syntax error
3896 _ACEOF
3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } >/dev/null; then
3905   if test -s conftest.err; then
3906     ac_cpp_err=$ac_c_preproc_warn_flag
3907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3908   else
3909     ac_cpp_err=
3910   fi
3911 else
3912   ac_cpp_err=yes
3913 fi
3914 if test -z "$ac_cpp_err"; then
3915   :
3916 else
3917   echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920   # Broken: fails on valid input.
3921 continue
3922 fi
3923 rm -f conftest.err conftest.$ac_ext
3924
3925   # OK, works on sane cases.  Now check whether non-existent headers
3926   # can be detected and how.
3927   cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933 #include <ac_nonexistent.h>
3934 _ACEOF
3935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3937   ac_status=$?
3938   grep -v '^ *+' conftest.er1 >conftest.err
3939   rm -f conftest.er1
3940   cat conftest.err >&5
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); } >/dev/null; then
3943   if test -s conftest.err; then
3944     ac_cpp_err=$ac_c_preproc_warn_flag
3945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3946   else
3947     ac_cpp_err=
3948   fi
3949 else
3950   ac_cpp_err=yes
3951 fi
3952 if test -z "$ac_cpp_err"; then
3953   # Broken: success on invalid input.
3954 continue
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959   # Passes both tests.
3960 ac_preproc_ok=:
3961 break
3962 fi
3963 rm -f conftest.err conftest.$ac_ext
3964
3965 done
3966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3967 rm -f conftest.err conftest.$ac_ext
3968 if $ac_preproc_ok; then
3969   break
3970 fi
3971
3972     done
3973     ac_cv_prog_CPP=$CPP
3974
3975 fi
3976   CPP=$ac_cv_prog_CPP
3977 else
3978   ac_cv_prog_CPP=$CPP
3979 fi
3980 echo "$as_me:$LINENO: result: $CPP" >&5
3981 echo "${ECHO_T}$CPP" >&6
3982 ac_preproc_ok=false
3983 for ac_c_preproc_warn_flag in '' yes
3984 do
3985   # Use a header file that comes with gcc, so configuring glibc
3986   # with a fresh cross-compiler works.
3987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988   # <limits.h> exists even on freestanding compilers.
3989   # On the NeXT, cc -E runs the code through the compiler's parser,
3990   # not just through cpp. "Syntax error" is here to catch this case.
3991   cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 #ifdef __STDC__
3998 # include <limits.h>
3999 #else
4000 # include <assert.h>
4001 #endif
4002                      Syntax error
4003 _ACEOF
4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } >/dev/null; then
4012   if test -s conftest.err; then
4013     ac_cpp_err=$ac_c_preproc_warn_flag
4014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4015   else
4016     ac_cpp_err=
4017   fi
4018 else
4019   ac_cpp_err=yes
4020 fi
4021 if test -z "$ac_cpp_err"; then
4022   :
4023 else
4024   echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027   # Broken: fails on valid input.
4028 continue
4029 fi
4030 rm -f conftest.err conftest.$ac_ext
4031
4032   # OK, works on sane cases.  Now check whether non-existent headers
4033   # can be detected and how.
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #include <ac_nonexistent.h>
4041 _ACEOF
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044   ac_status=$?
4045   grep -v '^ *+' conftest.er1 >conftest.err
4046   rm -f conftest.er1
4047   cat conftest.err >&5
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); } >/dev/null; then
4050   if test -s conftest.err; then
4051     ac_cpp_err=$ac_c_preproc_warn_flag
4052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4053   else
4054     ac_cpp_err=
4055   fi
4056 else
4057   ac_cpp_err=yes
4058 fi
4059 if test -z "$ac_cpp_err"; then
4060   # Broken: success on invalid input.
4061 continue
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066   # Passes both tests.
4067 ac_preproc_ok=:
4068 break
4069 fi
4070 rm -f conftest.err conftest.$ac_ext
4071
4072 done
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.err conftest.$ac_ext
4075 if $ac_preproc_ok; then
4076   :
4077 else
4078   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4079 See \`config.log' for more details." >&5
4080 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details." >&2;}
4082    { (exit 1); exit 1; }; }
4083 fi
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 #include <stdlib.h>
4104 #include <stdarg.h>
4105 #include <string.h>
4106 #include <float.h>
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118   (eval $ac_compile) 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -z "$ac_c_werror_flag"
4126                          || test ! -s conftest.err'
4127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128   (eval $ac_try) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; } &&
4132          { ac_try='test -s conftest.$ac_objext'
4133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134   (eval $ac_try) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; }; then
4138   ac_cv_header_stdc=yes
4139 else
4140   echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 ac_cv_header_stdc=no
4144 fi
4145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147 if test $ac_cv_header_stdc = yes; then
4148   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <string.h>
4156
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "memchr" >/dev/null 2>&1; then
4160   :
4161 else
4162   ac_cv_header_stdc=no
4163 fi
4164 rm -f conftest*
4165
4166 fi
4167
4168 if test $ac_cv_header_stdc = yes; then
4169   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170   cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176 #include <stdlib.h>
4177
4178 _ACEOF
4179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180   $EGREP "free" >/dev/null 2>&1; then
4181   :
4182 else
4183   ac_cv_header_stdc=no
4184 fi
4185 rm -f conftest*
4186
4187 fi
4188
4189 if test $ac_cv_header_stdc = yes; then
4190   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4191   if test "$cross_compiling" = yes; then
4192   :
4193 else
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <ctype.h>
4201 #if ((' ' & 0x0FF) == 0x020)
4202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 #else
4205 # define ISLOWER(c) \
4206                    (('a' <= (c) && (c) <= 'i') \
4207                      || ('j' <= (c) && (c) <= 'r') \
4208                      || ('s' <= (c) && (c) <= 'z'))
4209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4210 #endif
4211
4212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4213 int
4214 main ()
4215 {
4216   int i;
4217   for (i = 0; i < 256; i++)
4218     if (XOR (islower (i), ISLOWER (i))
4219         || toupper (i) != TOUPPER (i))
4220       exit(2);
4221   exit (0);
4222 }
4223 _ACEOF
4224 rm -f conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226   (eval $ac_link) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   :
4236 else
4237   echo "$as_me: program exited with status $ac_status" >&5
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 ( exit $ac_status )
4242 ac_cv_header_stdc=no
4243 fi
4244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4245 fi
4246 fi
4247 fi
4248 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4249 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4250 if test $ac_cv_header_stdc = yes; then
4251
4252 cat >>confdefs.h <<\_ACEOF
4253 #define STDC_HEADERS 1
4254 _ACEOF
4255
4256 fi
4257
4258 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4269                   inttypes.h stdint.h unistd.h
4270 do
4271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4272 echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283 $ac_includes_default
4284
4285 #include <$ac_header>
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289   (eval $ac_compile) 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } &&
4296          { ac_try='test -z "$ac_c_werror_flag"
4297                          || test ! -s conftest.err'
4298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299   (eval $ac_try) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; } &&
4303          { ac_try='test -s conftest.$ac_objext'
4304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305   (eval $ac_try) 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }; }; then
4309   eval "$as_ac_Header=yes"
4310 else
4311   echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 eval "$as_ac_Header=no"
4315 fi
4316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317 fi
4318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4321   cat >>confdefs.h <<_ACEOF
4322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4323 _ACEOF
4324
4325 fi
4326
4327 done
4328
4329
4330
4331 for ac_header in dlfcn.h
4332 do
4333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335   echo "$as_me:$LINENO: checking for $ac_header" >&5
4336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 fi
4340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342 else
4343   # Is the header compilable?
4344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h.  */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h.  */
4352 $ac_includes_default
4353 #include <$ac_header>
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357   (eval $ac_compile) 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } &&
4364          { ac_try='test -z "$ac_c_werror_flag"
4365                          || test ! -s conftest.err'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest.$ac_objext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_header_compiler=yes
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 ac_header_compiler=no
4383 fi
4384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4386 echo "${ECHO_T}$ac_header_compiler" >&6
4387
4388 # Is the header present?
4389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 #include <$ac_header>
4398 _ACEOF
4399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } >/dev/null; then
4407   if test -s conftest.err; then
4408     ac_cpp_err=$ac_c_preproc_warn_flag
4409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4410   else
4411     ac_cpp_err=
4412   fi
4413 else
4414   ac_cpp_err=yes
4415 fi
4416 if test -z "$ac_cpp_err"; then
4417   ac_header_preproc=yes
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422   ac_header_preproc=no
4423 fi
4424 rm -f conftest.err conftest.$ac_ext
4425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4426 echo "${ECHO_T}$ac_header_preproc" >&6
4427
4428 # So?  What about this header?
4429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4430   yes:no: )
4431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4435     ac_header_preproc=yes
4436     ;;
4437   no:yes:* )
4438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4450     (
4451       cat <<\_ASBOX
4452 ## ---------------------------------- ##
4453 ## Report this to rpm-list@redhat.com ##
4454 ## ---------------------------------- ##
4455 _ASBOX
4456     ) |
4457       sed "s/^/$as_me: WARNING:     /" >&2
4458     ;;
4459 esac
4460 echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   eval "$as_ac_Header=\$ac_header_preproc"
4466 fi
4467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4469
4470 fi
4471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4472   cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474 _ACEOF
4475
4476 fi
4477
4478 done
4479
4480 ac_ext=cc
4481 ac_cpp='$CXXCPP $CPPFLAGS'
4482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4485 if test -n "$ac_tool_prefix"; then
4486   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4487   do
4488     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_CXX+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   if test -n "$CXX"; then
4496   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503   for ac_exec_ext in '' $ac_executable_extensions; do
4504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510 done
4511
4512 fi
4513 fi
4514 CXX=$ac_cv_prog_CXX
4515 if test -n "$CXX"; then
4516   echo "$as_me:$LINENO: result: $CXX" >&5
4517 echo "${ECHO_T}$CXX" >&6
4518 else
4519   echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4521 fi
4522
4523     test -n "$CXX" && break
4524   done
4525 fi
4526 if test -z "$CXX"; then
4527   ac_ct_CXX=$CXX
4528   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4529 do
4530   # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   if test -n "$ac_ct_CXX"; then
4538   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543   IFS=$as_save_IFS
4544   test -z "$as_dir" && as_dir=.
4545   for ac_exec_ext in '' $ac_executable_extensions; do
4546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547     ac_cv_prog_ac_ct_CXX="$ac_prog"
4548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549     break 2
4550   fi
4551 done
4552 done
4553
4554 fi
4555 fi
4556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557 if test -n "$ac_ct_CXX"; then
4558   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4559 echo "${ECHO_T}$ac_ct_CXX" >&6
4560 else
4561   echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4563 fi
4564
4565   test -n "$ac_ct_CXX" && break
4566 done
4567 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4568
4569   CXX=$ac_ct_CXX
4570 fi
4571
4572
4573 # Provide some information about the compiler.
4574 echo "$as_me:$LINENO:" \
4575      "checking for C++ compiler version" >&5
4576 ac_compiler=`set X $ac_compile; echo $2`
4577 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4578   (eval $ac_compiler --version </dev/null >&5) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }
4582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4583   (eval $ac_compiler -v </dev/null >&5) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }
4587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4588   (eval $ac_compiler -V </dev/null >&5) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }
4592
4593 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4594 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4595 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h.  */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h.  */
4604
4605 int
4606 main ()
4607 {
4608 #ifndef __GNUC__
4609        choke me
4610 #endif
4611
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618   (eval $ac_compile) 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -z "$ac_cxx_werror_flag"
4626                          || test ! -s conftest.err'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; } &&
4632          { ac_try='test -s conftest.$ac_objext'
4633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634   (eval $ac_try) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   ac_compiler_gnu=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 ac_compiler_gnu=no
4644 fi
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4647
4648 fi
4649 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4651 GXX=`test $ac_compiler_gnu = yes && echo yes`
4652 ac_test_CXXFLAGS=${CXXFLAGS+set}
4653 ac_save_CXXFLAGS=$CXXFLAGS
4654 CXXFLAGS="-g"
4655 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4656 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4657 if test "${ac_cv_prog_cxx_g+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677   (eval $ac_compile) 2>conftest.er1
4678   ac_status=$?
4679   grep -v '^ *+' conftest.er1 >conftest.err
4680   rm -f conftest.er1
4681   cat conftest.err >&5
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); } &&
4684          { ac_try='test -z "$ac_cxx_werror_flag"
4685                          || test ! -s conftest.err'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; } &&
4691          { ac_try='test -s conftest.$ac_objext'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   ac_cv_prog_cxx_g=yes
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 ac_cv_prog_cxx_g=no
4703 fi
4704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4707 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4708 if test "$ac_test_CXXFLAGS" = set; then
4709   CXXFLAGS=$ac_save_CXXFLAGS
4710 elif test $ac_cv_prog_cxx_g = yes; then
4711   if test "$GXX" = yes; then
4712     CXXFLAGS="-g -O2"
4713   else
4714     CXXFLAGS="-g"
4715   fi
4716 else
4717   if test "$GXX" = yes; then
4718     CXXFLAGS="-O2"
4719   else
4720     CXXFLAGS=
4721   fi
4722 fi
4723 for ac_declaration in \
4724    '' \
4725    'extern "C" void std::exit (int) throw (); using std::exit;' \
4726    'extern "C" void std::exit (int); using std::exit;' \
4727    'extern "C" void exit (int) throw ();' \
4728    'extern "C" void exit (int);' \
4729    'void exit (int);'
4730 do
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_declaration
4738 #include <stdlib.h>
4739 int
4740 main ()
4741 {
4742 exit (42);
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749   (eval $ac_compile) 2>conftest.er1
4750   ac_status=$?
4751   grep -v '^ *+' conftest.er1 >conftest.err
4752   rm -f conftest.er1
4753   cat conftest.err >&5
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); } &&
4756          { ac_try='test -z "$ac_cxx_werror_flag"
4757                          || test ! -s conftest.err'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; } &&
4763          { ac_try='test -s conftest.$ac_objext'
4764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765   (eval $ac_try) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   :
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 continue
4775 fi
4776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777   cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 $ac_declaration
4784 int
4785 main ()
4786 {
4787 exit (42);
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794   (eval $ac_compile) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -z "$ac_cxx_werror_flag"
4802                          || test ! -s conftest.err'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; } &&
4808          { ac_try='test -s conftest.$ac_objext'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   break
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 fi
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 done
4822 rm -f conftest*
4823 if test -n "$ac_declaration"; then
4824   echo '#ifdef __cplusplus' >>confdefs.h
4825   echo $ac_declaration      >>confdefs.h
4826   echo '#endif'             >>confdefs.h
4827 fi
4828
4829 ac_ext=cc
4830 ac_cpp='$CXXCPP $CPPFLAGS'
4831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4834
4835 depcc="$CXX"  am_compiler_list=
4836
4837 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4838 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4839 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843   # We make a subdir and do the tests there.  Otherwise we can end up
4844   # making bogus files that we don't know about and never remove.  For
4845   # instance it was reported that on HP-UX the gcc test will end up
4846   # making a dummy file named `D' -- because `-MD' means `put the output
4847   # in D'.
4848   mkdir conftest.dir
4849   # Copy depcomp to subdir because otherwise we won't find it if we're
4850   # using a relative directory.
4851   cp "$am_depcomp" conftest.dir
4852   cd conftest.dir
4853   # We will build objects and dependencies in a subdirectory because
4854   # it helps to detect inapplicable dependency modes.  For instance
4855   # both Tru64's cc and ICC support -MD to output dependencies as a
4856   # side effect of compilation, but ICC will put the dependencies in
4857   # the current directory while Tru64 will put them in the object
4858   # directory.
4859   mkdir sub
4860
4861   am_cv_CXX_dependencies_compiler_type=none
4862   if test "$am_compiler_list" = ""; then
4863      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4864   fi
4865   for depmode in $am_compiler_list; do
4866     # Setup a source with many dependencies, because some compilers
4867     # like to wrap large dependency lists on column 80 (with \), and
4868     # we should not choose a depcomp mode which is confused by this.
4869     #
4870     # We need to recreate these files for each test, as the compiler may
4871     # overwrite some of them when testing with obscure command lines.
4872     # This happens at least with the AIX C compiler.
4873     : > sub/conftest.c
4874     for i in 1 2 3 4 5 6; do
4875       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4876       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4877       # Solaris 8's {/usr,}/bin/sh.
4878       touch sub/conftst$i.h
4879     done
4880     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4881
4882     case $depmode in
4883     nosideeffect)
4884       # after this tag, mechanisms are not by side-effect, so they'll
4885       # only be used when explicitly requested
4886       if test "x$enable_dependency_tracking" = xyes; then
4887         continue
4888       else
4889         break
4890       fi
4891       ;;
4892     none) break ;;
4893     esac
4894     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4895     # mode.  It turns out that the SunPro C++ compiler does not properly
4896     # handle `-M -o', and we need to detect this.
4897     if depmode=$depmode \
4898        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4899        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4901          >/dev/null 2>conftest.err &&
4902        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4904        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905       # icc doesn't choke on unknown options, it will just issue warnings
4906       # or remarks (even with -Werror).  So we grep stderr for any message
4907       # that says an option was ignored or not supported.
4908       # When given -MP, icc 7.0 and 7.1 complain thusly:
4909       #   icc: Command line warning: ignoring option '-M'; no argument required
4910       # The diagnosis changed in icc 8.0:
4911       #   icc: Command line remark: option '-MP' not supported
4912       if (grep 'ignoring option' conftest.err ||
4913           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914         am_cv_CXX_dependencies_compiler_type=$depmode
4915         break
4916       fi
4917     fi
4918   done
4919
4920   cd ..
4921   rm -rf conftest.dir
4922 else
4923   am_cv_CXX_dependencies_compiler_type=none
4924 fi
4925
4926 fi
4927 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4929 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4930
4931
4932
4933 if
4934   test "x$enable_dependency_tracking" != xno \
4935   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4936   am__fastdepCXX_TRUE=
4937   am__fastdepCXX_FALSE='#'
4938 else
4939   am__fastdepCXX_TRUE='#'
4940   am__fastdepCXX_FALSE=
4941 fi
4942
4943
4944 ac_ext=cc
4945 ac_cpp='$CXXCPP $CPPFLAGS'
4946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951 if test -z "$CXXCPP"; then
4952   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955       # Double quotes because CXXCPP needs to be expanded
4956     for CXXCPP in "$CXX -E" "/lib/cpp"
4957     do
4958       ac_preproc_ok=false
4959 for ac_cxx_preproc_warn_flag in '' yes
4960 do
4961   # Use a header file that comes with gcc, so configuring glibc
4962   # with a fresh cross-compiler works.
4963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964   # <limits.h> exists even on freestanding compilers.
4965   # On the NeXT, cc -E runs the code through the compiler's parser,
4966   # not just through cpp. "Syntax error" is here to catch this case.
4967   cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #ifdef __STDC__
4974 # include <limits.h>
4975 #else
4976 # include <assert.h>
4977 #endif
4978                      Syntax error
4979 _ACEOF
4980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } >/dev/null; then
4988   if test -s conftest.err; then
4989     ac_cpp_err=$ac_cxx_preproc_warn_flag
4990     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991   else
4992     ac_cpp_err=
4993   fi
4994 else
4995   ac_cpp_err=yes
4996 fi
4997 if test -z "$ac_cpp_err"; then
4998   :
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003   # Broken: fails on valid input.
5004 continue
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008   # OK, works on sane cases.  Now check whether non-existent headers
5009   # can be detected and how.
5010   cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } >/dev/null; then
5026   if test -s conftest.err; then
5027     ac_cpp_err=$ac_cxx_preproc_warn_flag
5028     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5029   else
5030     ac_cpp_err=
5031   fi
5032 else
5033   ac_cpp_err=yes
5034 fi
5035 if test -z "$ac_cpp_err"; then
5036   # Broken: success on invalid input.
5037 continue
5038 else
5039   echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042   # Passes both tests.
5043 ac_preproc_ok=:
5044 break
5045 fi
5046 rm -f conftest.err conftest.$ac_ext
5047
5048 done
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then
5052   break
5053 fi
5054
5055     done
5056     ac_cv_prog_CXXCPP=$CXXCPP
5057
5058 fi
5059   CXXCPP=$ac_cv_prog_CXXCPP
5060 else
5061   ac_cv_prog_CXXCPP=$CXXCPP
5062 fi
5063 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064 echo "${ECHO_T}$CXXCPP" >&6
5065 ac_preproc_ok=false
5066 for ac_cxx_preproc_warn_flag in '' yes
5067 do
5068   # Use a header file that comes with gcc, so configuring glibc
5069   # with a fresh cross-compiler works.
5070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071   # <limits.h> exists even on freestanding compilers.
5072   # On the NeXT, cc -E runs the code through the compiler's parser,
5073   # not just through cpp. "Syntax error" is here to catch this case.
5074   cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080 #ifdef __STDC__
5081 # include <limits.h>
5082 #else
5083 # include <assert.h>
5084 #endif
5085                      Syntax error
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } >/dev/null; then
5095   if test -s conftest.err; then
5096     ac_cpp_err=$ac_cxx_preproc_warn_flag
5097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098   else
5099     ac_cpp_err=
5100   fi
5101 else
5102   ac_cpp_err=yes
5103 fi
5104 if test -z "$ac_cpp_err"; then
5105   :
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110   # Broken: fails on valid input.
5111 continue
5112 fi
5113 rm -f conftest.err conftest.$ac_ext
5114
5115   # OK, works on sane cases.  Now check whether non-existent headers
5116   # can be detected and how.
5117   cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <ac_nonexistent.h>
5124 _ACEOF
5125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } >/dev/null; then
5133   if test -s conftest.err; then
5134     ac_cpp_err=$ac_cxx_preproc_warn_flag
5135     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5136   else
5137     ac_cpp_err=
5138   fi
5139 else
5140   ac_cpp_err=yes
5141 fi
5142 if test -z "$ac_cpp_err"; then
5143   # Broken: success on invalid input.
5144 continue
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149   # Passes both tests.
5150 ac_preproc_ok=:
5151 break
5152 fi
5153 rm -f conftest.err conftest.$ac_ext
5154
5155 done
5156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157 rm -f conftest.err conftest.$ac_ext
5158 if $ac_preproc_ok; then
5159   :
5160 else
5161   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164 See \`config.log' for more details." >&2;}
5165    { (exit 1); exit 1; }; }
5166 fi
5167
5168 ac_ext=cc
5169 ac_cpp='$CXXCPP $CPPFLAGS'
5170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
5174
5175 ac_ext=f
5176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179 if test -n "$ac_tool_prefix"; then
5180   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5181   do
5182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_F77+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   if test -n "$F77"; then
5190   ac_cv_prog_F77="$F77" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205
5206 fi
5207 fi
5208 F77=$ac_cv_prog_F77
5209 if test -n "$F77"; then
5210   echo "$as_me:$LINENO: result: $F77" >&5
5211 echo "${ECHO_T}$F77" >&6
5212 else
5213   echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5215 fi
5216
5217     test -n "$F77" && break
5218   done
5219 fi
5220 if test -z "$F77"; then
5221   ac_ct_F77=$F77
5222   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5223 do
5224   # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   if test -n "$ac_ct_F77"; then
5232   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_ac_ct_F77="$ac_prog"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247
5248 fi
5249 fi
5250 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251 if test -n "$ac_ct_F77"; then
5252   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253 echo "${ECHO_T}$ac_ct_F77" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259   test -n "$ac_ct_F77" && break
5260 done
5261
5262   F77=$ac_ct_F77
5263 fi
5264
5265
5266 # Provide some information about the compiler.
5267 echo "$as_me:5267:" \
5268      "checking for Fortran 77 compiler version" >&5
5269 ac_compiler=`set X $ac_compile; echo $2`
5270 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271   (eval $ac_compiler --version </dev/null >&5) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }
5275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276   (eval $ac_compiler -v </dev/null >&5) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }
5280 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281   (eval $ac_compiler -V </dev/null >&5) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }
5285 rm -f a.out
5286
5287 # If we don't use `.F' as extension, the preprocessor is not run on the
5288 # input file.  (Note that this only needs to work for GNU compilers.)
5289 ac_save_ext=$ac_ext
5290 ac_ext=F
5291 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5292 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5293 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   cat >conftest.$ac_ext <<_ACEOF
5297       program main
5298 #ifndef __GNUC__
5299        choke me
5300 #endif
5301
5302       end
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_f77_werror_flag"
5314                          || test ! -s conftest.err'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; } &&
5320          { ac_try='test -s conftest.$ac_objext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   ac_compiler_gnu=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_compiler_gnu=no
5332 fi
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5335
5336 fi
5337 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5339 ac_ext=$ac_save_ext
5340 ac_test_FFLAGS=${FFLAGS+set}
5341 ac_save_FFLAGS=$FFLAGS
5342 FFLAGS=
5343 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345 if test "${ac_cv_prog_f77_g+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   FFLAGS=-g
5349 cat >conftest.$ac_ext <<_ACEOF
5350       program main
5351
5352       end
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356   (eval $ac_compile) 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } &&
5363          { ac_try='test -z "$ac_f77_werror_flag"
5364                          || test ! -s conftest.err'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   ac_cv_prog_f77_g=yes
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ac_cv_prog_f77_g=no
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385 fi
5386 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388 if test "$ac_test_FFLAGS" = set; then
5389   FFLAGS=$ac_save_FFLAGS
5390 elif test $ac_cv_prog_f77_g = yes; then
5391   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5392     FFLAGS="-g -O2"
5393   else
5394     FFLAGS="-g"
5395   fi
5396 else
5397   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5398     FFLAGS="-O2"
5399   else
5400     FFLAGS=
5401   fi
5402 fi
5403
5404 G77=`test $ac_compiler_gnu = yes && echo yes`
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412
5413 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5414
5415 # find the maximum length of command line arguments
5416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421     i=0
5422   teststring="ABCD"
5423
5424   case $build_os in
5425   msdosdjgpp*)
5426     # On DJGPP, this test can blow up pretty badly due to problems in libc
5427     # (any single argument exceeding 2000 bytes causes a buffer overrun
5428     # during glob expansion).  Even if it were fixed, the result of this
5429     # check would be larger than it should be.
5430     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5431     ;;
5432
5433   gnu*)
5434     # Under GNU Hurd, this test is not required because there is
5435     # no limit to the length of command line arguments.
5436     # Libtool will interpret -1 as no limit whatsoever
5437     lt_cv_sys_max_cmd_len=-1;
5438     ;;
5439
5440   cygwin* | mingw*)
5441     # On Win9x/ME, this test blows up -- it succeeds, but takes
5442     # about 5 minutes as the teststring grows exponentially.
5443     # Worse, since 9x/ME are not pre-emptively multitasking,
5444     # you end up with a "frozen" computer, even though with patience
5445     # the test eventually succeeds (with a max line length of 256k).
5446     # Instead, let's just punt: use the minimum linelength reported by
5447     # all of the supported platforms: 8192 (on NT/2K/XP).
5448     lt_cv_sys_max_cmd_len=8192;
5449     ;;
5450
5451   amigaos*)
5452     # On AmigaOS with pdksh, this test takes hours, literally.
5453     # So we just punt and use a minimum line length of 8192.
5454     lt_cv_sys_max_cmd_len=8192;
5455     ;;
5456
5457  *)
5458     # If test is not a shell built-in, we'll probably end up computing a
5459     # maximum length that is only half of the actual maximum length, but
5460     # we can't tell.
5461     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5462                = "XX$teststring") >/dev/null 2>&1 &&
5463             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5464             lt_cv_sys_max_cmd_len=$new_result &&
5465             test $i != 17 # 1/2 MB should be enough
5466     do
5467       i=`expr $i + 1`
5468       teststring=$teststring$teststring
5469     done
5470     teststring=
5471     # Add a significant safety factor because C++ compilers can tack on massive
5472     # amounts of additional arguments before passing them to the linker.
5473     # It appears as though 1/2 is a usable value.
5474     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5475     ;;
5476   esac
5477
5478 fi
5479
5480 if test -n $lt_cv_sys_max_cmd_len ; then
5481   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5482 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5483 else
5484   echo "$as_me:$LINENO: result: none" >&5
5485 echo "${ECHO_T}none" >&6
5486 fi
5487
5488
5489
5490
5491 # Check for command to grab the raw symbol name followed by C symbol from nm.
5492 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5493 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5494 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497
5498 # These are sane defaults that work on at least a few old systems.
5499 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5500
5501 # Character class describing NM global symbol codes.
5502 symcode='[BCDEGRST]'
5503
5504 # Regexp to match symbols that can be accessed directly from C.
5505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5506
5507 # Transform the above into a raw symbol and a C symbol.
5508 symxfrm='\1 \2\3 \3'
5509
5510 # Transform an extracted symbol line into a proper C declaration
5511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5512
5513 # Transform an extracted symbol line into symbol name and symbol address
5514 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'"
5515
5516 # Define system-specific variables.
5517 case $host_os in
5518 aix*)
5519   symcode='[BCDT]'
5520   ;;
5521 cygwin* | mingw* | pw32*)
5522   symcode='[ABCDGISTW]'
5523   ;;
5524 hpux*) # Its linker distinguishes data from code symbols
5525   if test "$host_cpu" = ia64; then
5526     symcode='[ABCDEGRST]'
5527   fi
5528   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529   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'"
5530   ;;
5531 irix* | nonstopux*)
5532   symcode='[BCDEGRST]'
5533   ;;
5534 osf*)
5535   symcode='[BCDEGQRST]'
5536   ;;
5537 solaris* | sysv5*)
5538   symcode='[BDRT]'
5539   ;;
5540 sysv4)
5541   symcode='[DFNSTU]'
5542   ;;
5543 esac
5544
5545 # Handle CRLF in mingw tool chain
5546 opt_cr=
5547 case $build_os in
5548 mingw*)
5549   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5550   ;;
5551 esac
5552
5553 # If we're using GNU nm, then use its standard symbol codes.
5554 case `$NM -V 2>&1` in
5555 *GNU* | *'with BFD'*)
5556   symcode='[ABCDGIRSTW]' ;;
5557 esac
5558
5559 # Try without a prefix undercore, then with it.
5560 for ac_symprfx in "" "_"; do
5561
5562   # Write the raw and C identifiers.
5563   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5564
5565   # Check to see that the pipe works correctly.
5566   pipe_works=no
5567
5568   rm -f conftest*
5569   cat > conftest.$ac_ext <<EOF
5570 #ifdef __cplusplus
5571 extern "C" {
5572 #endif
5573 char nm_test_var;
5574 void nm_test_func(){}
5575 #ifdef __cplusplus
5576 }
5577 #endif
5578 int main(){nm_test_var='a';nm_test_func();return(0);}
5579 EOF
5580
5581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582   (eval $ac_compile) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; then
5586     # Now try to grab the symbols.
5587     nlist=conftest.nm
5588     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && test -s "$nlist"; then
5593       # Try sorting and uniquifying the output.
5594       if sort "$nlist" | uniq > "$nlist"T; then
5595         mv -f "$nlist"T "$nlist"
5596       else
5597         rm -f "$nlist"T
5598       fi
5599
5600       # Make sure that we snagged all the symbols we need.
5601       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5602         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5603           cat <<EOF > conftest.$ac_ext
5604 #ifdef __cplusplus
5605 extern "C" {
5606 #endif
5607
5608 EOF
5609           # Now generate the symbol file.
5610           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5611
5612           cat <<EOF >> conftest.$ac_ext
5613 #if defined (__STDC__) && __STDC__
5614 # define lt_ptr_t void *
5615 #else
5616 # define lt_ptr_t char *
5617 # define const
5618 #endif
5619
5620 /* The mapping between symbol names and symbols. */
5621 const struct {
5622   const char *name;
5623   lt_ptr_t address;
5624 }
5625 lt_preloaded_symbols[] =
5626 {
5627 EOF
5628           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5629           cat <<\EOF >> conftest.$ac_ext
5630   {0, (lt_ptr_t) 0}
5631 };
5632
5633 #ifdef __cplusplus
5634 }
5635 #endif
5636 EOF
5637           # Now try linking the two files.
5638           mv conftest.$ac_objext conftstm.$ac_objext
5639           lt_save_LIBS="$LIBS"
5640           lt_save_CFLAGS="$CFLAGS"
5641           LIBS="conftstm.$ac_objext"
5642           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5643           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644   (eval $ac_link) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5648             pipe_works=yes
5649           fi
5650           LIBS="$lt_save_LIBS"
5651           CFLAGS="$lt_save_CFLAGS"
5652         else
5653           echo "cannot find nm_test_func in $nlist" >&5
5654         fi
5655       else
5656         echo "cannot find nm_test_var in $nlist" >&5
5657       fi
5658     else
5659       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5660     fi
5661   else
5662     echo "$progname: failed program was:" >&5
5663     cat conftest.$ac_ext >&5
5664   fi
5665   rm -f conftest* conftst*
5666
5667   # Do not use the global_symbol_pipe unless it works.
5668   if test "$pipe_works" = yes; then
5669     break
5670   else
5671     lt_cv_sys_global_symbol_pipe=
5672   fi
5673 done
5674
5675 fi
5676
5677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5678   lt_cv_sys_global_symbol_to_cdecl=
5679 fi
5680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5681   echo "$as_me:$LINENO: result: failed" >&5
5682 echo "${ECHO_T}failed" >&6
5683 else
5684   echo "$as_me:$LINENO: result: ok" >&5
5685 echo "${ECHO_T}ok" >&6
5686 fi
5687
5688 echo "$as_me:$LINENO: checking for objdir" >&5
5689 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5690 if test "${lt_cv_objdir+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   rm -f .libs 2>/dev/null
5694 mkdir .libs 2>/dev/null
5695 if test -d .libs; then
5696   lt_cv_objdir=.libs
5697 else
5698   # MS-DOS does not allow filenames that begin with a dot.
5699   lt_cv_objdir=_libs
5700 fi
5701 rmdir .libs 2>/dev/null
5702 fi
5703 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5704 echo "${ECHO_T}$lt_cv_objdir" >&6
5705 objdir=$lt_cv_objdir
5706
5707
5708
5709
5710
5711 case $host_os in
5712 aix3*)
5713   # AIX sometimes has problems with the GCC collect2 program.  For some
5714   # reason, if we set the COLLECT_NAMES environment variable, the problems
5715   # vanish in a puff of smoke.
5716   if test "X${COLLECT_NAMES+set}" != Xset; then
5717     COLLECT_NAMES=
5718     export COLLECT_NAMES
5719   fi
5720   ;;
5721 esac
5722
5723 # Sed substitution that helps us do robust quoting.  It backslashifies
5724 # metacharacters that are still active within double-quoted strings.
5725 Xsed='sed -e s/^X//'
5726 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5727
5728 # Same as above, but do not quote variable references.
5729 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5730
5731 # Sed substitution to delay expansion of an escaped shell variable in a
5732 # double_quote_subst'ed string.
5733 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5734
5735 # Sed substitution to avoid accidental globbing in evaled expressions
5736 no_glob_subst='s/\*/\\\*/g'
5737
5738 # Constants:
5739 rm="rm -f"
5740
5741 # Global variables:
5742 default_ofile=libtool
5743 can_build_shared=yes
5744
5745 # All known linkers require a `.a' archive for static linking (except M$VC,
5746 # which needs '.lib').
5747 libext=a
5748 ltmain="$ac_aux_dir/ltmain.sh"
5749 ofile="$default_ofile"
5750 with_gnu_ld="$lt_cv_prog_gnu_ld"
5751
5752 if test -n "$ac_tool_prefix"; then
5753   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}ar; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_AR+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   if test -n "$AR"; then
5761   ac_cv_prog_AR="$AR" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770     ac_cv_prog_AR="${ac_tool_prefix}ar"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776
5777 fi
5778 fi
5779 AR=$ac_cv_prog_AR
5780 if test -n "$AR"; then
5781   echo "$as_me:$LINENO: result: $AR" >&5
5782 echo "${ECHO_T}$AR" >&6
5783 else
5784   echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788 fi
5789 if test -z "$ac_cv_prog_AR"; then
5790   ac_ct_AR=$AR
5791   # Extract the first word of "ar", so it can be a program name with args.
5792 set dummy ar; ac_word=$2
5793 echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   if test -n "$ac_ct_AR"; then
5799   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806   for ac_exec_ext in '' $ac_executable_extensions; do
5807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808     ac_cv_prog_ac_ct_AR="ar"
5809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810     break 2
5811   fi
5812 done
5813 done
5814
5815   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5816 fi
5817 fi
5818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5819 if test -n "$ac_ct_AR"; then
5820   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5821 echo "${ECHO_T}$ac_ct_AR" >&6
5822 else
5823   echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825 fi
5826
5827   AR=$ac_ct_AR
5828 else
5829   AR="$ac_cv_prog_AR"
5830 fi
5831
5832 if test -n "$ac_tool_prefix"; then
5833   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_RANLIB+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   if test -n "$RANLIB"; then
5841   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856
5857 fi
5858 fi
5859 RANLIB=$ac_cv_prog_RANLIB
5860 if test -n "$RANLIB"; then
5861   echo "$as_me:$LINENO: result: $RANLIB" >&5
5862 echo "${ECHO_T}$RANLIB" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868 fi
5869 if test -z "$ac_cv_prog_RANLIB"; then
5870   ac_ct_RANLIB=$RANLIB
5871   # Extract the first word of "ranlib", so it can be a program name with args.
5872 set dummy ranlib; ac_word=$2
5873 echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$ac_ct_RANLIB"; then
5879   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888     ac_cv_prog_ac_ct_RANLIB="ranlib"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894
5895   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5896 fi
5897 fi
5898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5899 if test -n "$ac_ct_RANLIB"; then
5900   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5901 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907   RANLIB=$ac_ct_RANLIB
5908 else
5909   RANLIB="$ac_cv_prog_RANLIB"
5910 fi
5911
5912 if test -n "$ac_tool_prefix"; then
5913   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}strip; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_STRIP+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   if test -n "$STRIP"; then
5921   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928   for ac_exec_ext in '' $ac_executable_extensions; do
5929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935 done
5936
5937 fi
5938 fi
5939 STRIP=$ac_cv_prog_STRIP
5940 if test -n "$STRIP"; then
5941   echo "$as_me:$LINENO: result: $STRIP" >&5
5942 echo "${ECHO_T}$STRIP" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948 fi
5949 if test -z "$ac_cv_prog_STRIP"; then
5950   ac_ct_STRIP=$STRIP
5951   # Extract the first word of "strip", so it can be a program name with args.
5952 set dummy strip; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   if test -n "$ac_ct_STRIP"; then
5959   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966   for ac_exec_ext in '' $ac_executable_extensions; do
5967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_prog_ac_ct_STRIP="strip"
5969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973 done
5974
5975   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5976 fi
5977 fi
5978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979 if test -n "$ac_ct_STRIP"; then
5980   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5981 echo "${ECHO_T}$ac_ct_STRIP" >&6
5982 else
5983   echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 fi
5986
5987   STRIP=$ac_ct_STRIP
5988 else
5989   STRIP="$ac_cv_prog_STRIP"
5990 fi
5991
5992
5993 old_CC="$CC"
5994 old_CFLAGS="$CFLAGS"
5995
5996 # Set sane defaults for various variables
5997 test -z "$AR" && AR=ar
5998 test -z "$AR_FLAGS" && AR_FLAGS=cru
5999 test -z "$AS" && AS=as
6000 test -z "$CC" && CC=cc
6001 test -z "$LTCC" && LTCC=$CC
6002 test -z "$DLLTOOL" && DLLTOOL=dlltool
6003 test -z "$LD" && LD=ld
6004 test -z "$LN_S" && LN_S="ln -s"
6005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6006 test -z "$NM" && NM=nm
6007 test -z "$SED" && SED=sed
6008 test -z "$OBJDUMP" && OBJDUMP=objdump
6009 test -z "$RANLIB" && RANLIB=:
6010 test -z "$STRIP" && STRIP=:
6011 test -z "$ac_objext" && ac_objext=o
6012
6013 # Determine commands to create old-style static archives.
6014 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6015 old_postinstall_cmds='chmod 644 $oldlib'
6016 old_postuninstall_cmds=
6017
6018 if test -n "$RANLIB"; then
6019   case $host_os in
6020   openbsd*)
6021     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6022     ;;
6023   *)
6024     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6025     ;;
6026   esac
6027   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6028 fi
6029
6030 # Only perform the check for file, if the check method requires it
6031 case $deplibs_check_method in
6032 file_magic*)
6033   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6034     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6035 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6036 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   case $MAGIC_CMD in
6040 [\\/*] |  ?:[\\/]*)
6041   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6042   ;;
6043 *)
6044   lt_save_MAGIC_CMD="$MAGIC_CMD"
6045   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6046   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6047   for ac_dir in $ac_dummy; do
6048     IFS="$lt_save_ifs"
6049     test -z "$ac_dir" && ac_dir=.
6050     if test -f $ac_dir/${ac_tool_prefix}file; then
6051       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6052       if test -n "$file_magic_test_file"; then
6053         case $deplibs_check_method in
6054         "file_magic "*)
6055           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6056           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6058             $EGREP "$file_magic_regex" > /dev/null; then
6059             :
6060           else
6061             cat <<EOF 1>&2
6062
6063 *** Warning: the command libtool uses to detect shared libraries,
6064 *** $file_magic_cmd, produces output that libtool cannot recognize.
6065 *** The result is that libtool may fail to recognize shared libraries
6066 *** as such.  This will affect the creation of libtool libraries that
6067 *** depend on shared libraries, but programs linked with such libtool
6068 *** libraries will work regardless of this problem.  Nevertheless, you
6069 *** may want to report the problem to your system manager and/or to
6070 *** bug-libtool@gnu.org
6071
6072 EOF
6073           fi ;;
6074         esac
6075       fi
6076       break
6077     fi
6078   done
6079   IFS="$lt_save_ifs"
6080   MAGIC_CMD="$lt_save_MAGIC_CMD"
6081   ;;
6082 esac
6083 fi
6084
6085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6086 if test -n "$MAGIC_CMD"; then
6087   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6088 echo "${ECHO_T}$MAGIC_CMD" >&6
6089 else
6090   echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6
6092 fi
6093
6094 if test -z "$lt_cv_path_MAGIC_CMD"; then
6095   if test -n "$ac_tool_prefix"; then
6096     echo "$as_me:$LINENO: checking for file" >&5
6097 echo $ECHO_N "checking for file... $ECHO_C" >&6
6098 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   case $MAGIC_CMD in
6102 [\\/*] |  ?:[\\/]*)
6103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6104   ;;
6105 *)
6106   lt_save_MAGIC_CMD="$MAGIC_CMD"
6107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6108   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6109   for ac_dir in $ac_dummy; do
6110     IFS="$lt_save_ifs"
6111     test -z "$ac_dir" && ac_dir=.
6112     if test -f $ac_dir/file; then
6113       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6114       if test -n "$file_magic_test_file"; then
6115         case $deplibs_check_method in
6116         "file_magic "*)
6117           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6118           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6120             $EGREP "$file_magic_regex" > /dev/null; then
6121             :
6122           else
6123             cat <<EOF 1>&2
6124
6125 *** Warning: the command libtool uses to detect shared libraries,
6126 *** $file_magic_cmd, produces output that libtool cannot recognize.
6127 *** The result is that libtool may fail to recognize shared libraries
6128 *** as such.  This will affect the creation of libtool libraries that
6129 *** depend on shared libraries, but programs linked with such libtool
6130 *** libraries will work regardless of this problem.  Nevertheless, you
6131 *** may want to report the problem to your system manager and/or to
6132 *** bug-libtool@gnu.org
6133
6134 EOF
6135           fi ;;
6136         esac
6137       fi
6138       break
6139     fi
6140   done
6141   IFS="$lt_save_ifs"
6142   MAGIC_CMD="$lt_save_MAGIC_CMD"
6143   ;;
6144 esac
6145 fi
6146
6147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6148 if test -n "$MAGIC_CMD"; then
6149   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6150 echo "${ECHO_T}$MAGIC_CMD" >&6
6151 else
6152   echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6154 fi
6155
6156   else
6157     MAGIC_CMD=:
6158   fi
6159 fi
6160
6161   fi
6162   ;;
6163 esac
6164
6165 enable_dlopen=no
6166 enable_win32_dll=no
6167
6168 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6169 if test "${enable_libtool_lock+set}" = set; then
6170   enableval="$enable_libtool_lock"
6171
6172 fi;
6173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6174
6175
6176 # Check whether --with-pic or --without-pic was given.
6177 if test "${with_pic+set}" = set; then
6178   withval="$with_pic"
6179   pic_mode="$withval"
6180 else
6181   pic_mode=default
6182 fi;
6183 test -z "$pic_mode" && pic_mode=default
6184
6185 # Use C for the default configuration in the libtool script
6186 tagname=
6187 lt_save_CC="$CC"
6188 ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194
6195 # Source file extension for C test sources.
6196 ac_ext=c
6197
6198 # Object file extension for compiled C test sources.
6199 objext=o
6200 objext=$objext
6201
6202 # Code to be used in simple compile tests
6203 lt_simple_compile_test_code="int some_variable = 0;\n"
6204
6205 # Code to be used in simple link tests
6206 lt_simple_link_test_code='int main(){return(0);}\n'
6207
6208
6209 # If no C compiler was specified, use CC.
6210 LTCC=${LTCC-"$CC"}
6211
6212 # Allow CC to be a program name with arguments.
6213 compiler=$CC
6214
6215
6216 #
6217 # Check for any special shared library compilation flags.
6218 #
6219 lt_prog_cc_shlib=
6220 if test "$GCC" = no; then
6221   case $host_os in
6222   sco3.2v5*)
6223     lt_prog_cc_shlib='-belf'
6224     ;;
6225   esac
6226 fi
6227 if test -n "$lt_prog_cc_shlib"; then
6228   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6229 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6230   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6231   else
6232     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6233 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6234     lt_cv_prog_cc_can_build_shared=no
6235   fi
6236 fi
6237
6238
6239 #
6240 # Check to make sure the static flag actually works.
6241 #
6242 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6243 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6244 if test "${lt_prog_compiler_static_works+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   lt_prog_compiler_static_works=no
6248    save_LDFLAGS="$LDFLAGS"
6249    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6250    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6251    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6252      # The compiler can only warn and ignore the option if not recognized
6253      # So say no if there are warnings
6254      if test -s conftest.err; then
6255        # Append any errors to the config.log.
6256        cat conftest.err 1>&5
6257      else
6258        lt_prog_compiler_static_works=yes
6259      fi
6260    fi
6261    $rm conftest*
6262    LDFLAGS="$save_LDFLAGS"
6263
6264 fi
6265 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6266 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6267
6268 if test x"$lt_prog_compiler_static_works" = xyes; then
6269     :
6270 else
6271     lt_prog_compiler_static=
6272 fi
6273
6274
6275
6276
6277 lt_prog_compiler_no_builtin_flag=
6278
6279 if test "$GCC" = yes; then
6280   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6281
6282
6283 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6284 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6285 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   lt_cv_prog_compiler_rtti_exceptions=no
6289   ac_outfile=conftest.$ac_objext
6290    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6291    lt_compiler_flag="-fno-rtti -fno-exceptions"
6292    # Insert the option either (1) after the last *FLAGS variable, or
6293    # (2) before a word containing "conftest.", or (3) at the end.
6294    # Note that $ac_compile itself does not contain backslashes and begins
6295    # with a dollar sign (not a hyphen), so the echo should work correctly.
6296    # The option is referenced via a variable to avoid confusing sed.
6297    lt_compile=`echo "$ac_compile" | $SED \
6298    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6300    -e 's:$: $lt_compiler_flag:'`
6301    (eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
6302    (eval "$lt_compile" 2>conftest.err)
6303    ac_status=$?
6304    cat conftest.err >&5
6305    echo "$as_me:6305: \$? = $ac_status" >&5
6306    if (exit $ac_status) && test -s "$ac_outfile"; then
6307      # The compiler can only warn and ignore the option if not recognized
6308      # So say no if there are warnings
6309      if test ! -s conftest.err; then
6310        lt_cv_prog_compiler_rtti_exceptions=yes
6311      fi
6312    fi
6313    $rm conftest*
6314
6315 fi
6316 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6317 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6318
6319 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6320     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6321 else
6322     :
6323 fi
6324
6325 fi
6326
6327 lt_prog_compiler_wl=
6328 lt_prog_compiler_pic=
6329 lt_prog_compiler_static=
6330
6331 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6332 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6333
6334   if test "$GCC" = yes; then
6335     lt_prog_compiler_wl='-Wl,'
6336     lt_prog_compiler_static='-static'
6337
6338     case $host_os in
6339       aix*)
6340       # All AIX code is PIC.
6341       if test "$host_cpu" = ia64; then
6342         # AIX 5 now supports IA64 processor
6343         lt_prog_compiler_static='-Bstatic'
6344       fi
6345       ;;
6346
6347     amigaos*)
6348       # FIXME: we need at least 68020 code to build shared libraries, but
6349       # adding the `-m68020' flag to GCC prevents building anything better,
6350       # like `-m68040'.
6351       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6352       ;;
6353
6354     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6355       # PIC is the default for these OSes.
6356       ;;
6357
6358     mingw* | pw32* | os2*)
6359       # This hack is so that the source file can tell whether it is being
6360       # built for inclusion in a dll (and should export symbols for example).
6361       lt_prog_compiler_pic='-DDLL_EXPORT'
6362       ;;
6363
6364     darwin* | rhapsody*)
6365       # PIC is the default on this platform
6366       # Common symbols not allowed in MH_DYLIB files
6367       lt_prog_compiler_pic='-fno-common'
6368       ;;
6369
6370     msdosdjgpp*)
6371       # Just because we use GCC doesn't mean we suddenly get shared libraries
6372       # on systems that don't support them.
6373       lt_prog_compiler_can_build_shared=no
6374       enable_shared=no
6375       ;;
6376
6377     sysv4*MP*)
6378       if test -d /usr/nec; then
6379         lt_prog_compiler_pic=-Kconform_pic
6380       fi
6381       ;;
6382
6383     hpux*)
6384       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6385       # not for PA HP-UX.
6386       case "$host_cpu" in
6387       hppa*64*|ia64*)
6388         # +Z the default
6389         ;;
6390       *)
6391         lt_prog_compiler_pic='-fPIC'
6392         ;;
6393       esac
6394       ;;
6395
6396     *)
6397       lt_prog_compiler_pic='-fPIC'
6398       ;;
6399     esac
6400   else
6401     # PORTME Check for flag to pass linker flags through the system compiler.
6402     case $host_os in
6403     aix*)
6404       lt_prog_compiler_wl='-Wl,'
6405       if test "$host_cpu" = ia64; then
6406         # AIX 5 now supports IA64 processor
6407         lt_prog_compiler_static='-Bstatic'
6408       else
6409         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6410       fi
6411       ;;
6412
6413     mingw* | pw32* | os2*)
6414       # This hack is so that the source file can tell whether it is being
6415       # built for inclusion in a dll (and should export symbols for example).
6416       lt_prog_compiler_pic='-DDLL_EXPORT'
6417       ;;
6418
6419     hpux9* | hpux10* | hpux11*)
6420       lt_prog_compiler_wl='-Wl,'
6421       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6422       # not for PA HP-UX.
6423       case "$host_cpu" in
6424       hppa*64*|ia64*)
6425         # +Z the default
6426         ;;
6427       *)
6428         lt_prog_compiler_pic='+Z'
6429         ;;
6430       esac
6431       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6432       lt_prog_compiler_static='${wl}-a ${wl}archive'
6433       ;;
6434
6435     irix5* | irix6* | nonstopux*)
6436       lt_prog_compiler_wl='-Wl,'
6437       # PIC (with -KPIC) is the default.
6438       lt_prog_compiler_static='-non_shared'
6439       ;;
6440
6441     newsos6)
6442       lt_prog_compiler_pic='-KPIC'
6443       lt_prog_compiler_static='-Bstatic'
6444       ;;
6445
6446     linux*)
6447       case $CC in
6448       icc* | ecc*)
6449         lt_prog_compiler_wl='-Wl,'
6450         lt_prog_compiler_pic='-KPIC'
6451         lt_prog_compiler_static='-static'
6452         ;;
6453       ccc*)
6454         lt_prog_compiler_wl='-Wl,'
6455         # All Alpha code is PIC.
6456         lt_prog_compiler_static='-non_shared'
6457         ;;
6458       esac
6459       ;;
6460
6461     osf3* | osf4* | osf5*)
6462       lt_prog_compiler_wl='-Wl,'
6463       # All OSF/1 code is PIC.
6464       lt_prog_compiler_static='-non_shared'
6465       ;;
6466
6467     sco3.2v5*)
6468       lt_prog_compiler_pic='-Kpic'
6469       lt_prog_compiler_static='-dn'
6470       ;;
6471
6472     solaris*)
6473       lt_prog_compiler_wl='-Wl,'
6474       lt_prog_compiler_pic='-KPIC'
6475       lt_prog_compiler_static='-Bstatic'
6476       ;;
6477
6478     sunos4*)
6479       lt_prog_compiler_wl='-Qoption ld '
6480       lt_prog_compiler_pic='-PIC'
6481       lt_prog_compiler_static='-Bstatic'
6482       ;;
6483
6484     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6485       lt_prog_compiler_wl='-Wl,'
6486       lt_prog_compiler_pic='-KPIC'
6487       lt_prog_compiler_static='-Bstatic'
6488       ;;
6489
6490     sysv4*MP*)
6491       if test -d /usr/nec ;then
6492         lt_prog_compiler_pic='-Kconform_pic'
6493         lt_prog_compiler_static='-Bstatic'
6494       fi
6495       ;;
6496
6497     uts4*)
6498       lt_prog_compiler_pic='-pic'
6499       lt_prog_compiler_static='-Bstatic'
6500       ;;
6501
6502     *)
6503       lt_prog_compiler_can_build_shared=no
6504       ;;
6505     esac
6506   fi
6507
6508 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6509 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6510
6511 #
6512 # Check to make sure the PIC flag actually works.
6513 #
6514 if test -n "$lt_prog_compiler_pic"; then
6515
6516 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6517 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6518 if test "${lt_prog_compiler_pic_works+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   lt_prog_compiler_pic_works=no
6522   ac_outfile=conftest.$ac_objext
6523    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6524    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6525    # Insert the option either (1) after the last *FLAGS variable, or
6526    # (2) before a word containing "conftest.", or (3) at the end.
6527    # Note that $ac_compile itself does not contain backslashes and begins
6528    # with a dollar sign (not a hyphen), so the echo should work correctly.
6529    # The option is referenced via a variable to avoid confusing sed.
6530    lt_compile=`echo "$ac_compile" | $SED \
6531    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6533    -e 's:$: $lt_compiler_flag:'`
6534    (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
6535    (eval "$lt_compile" 2>conftest.err)
6536    ac_status=$?
6537    cat conftest.err >&5
6538    echo "$as_me:6538: \$? = $ac_status" >&5
6539    if (exit $ac_status) && test -s "$ac_outfile"; then
6540      # The compiler can only warn and ignore the option if not recognized
6541      # So say no if there are warnings
6542      if test ! -s conftest.err; then
6543        lt_prog_compiler_pic_works=yes
6544      fi
6545    fi
6546    $rm conftest*
6547
6548 fi
6549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6550 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6551
6552 if test x"$lt_prog_compiler_pic_works" = xyes; then
6553     case $lt_prog_compiler_pic in
6554      "" | " "*) ;;
6555      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6556      esac
6557 else
6558     lt_prog_compiler_pic=
6559      lt_prog_compiler_can_build_shared=no
6560 fi
6561
6562 fi
6563 case "$host_os" in
6564   # For platforms which do not support PIC, -DPIC is meaningless:
6565   *djgpp*)
6566     lt_prog_compiler_pic=
6567     ;;
6568   *)
6569     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6570     ;;
6571 esac
6572
6573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6575 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   lt_cv_prog_compiler_c_o=no
6579    $rm -r conftest 2>/dev/null
6580    mkdir conftest
6581    cd conftest
6582    mkdir out
6583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6584
6585    lt_compiler_flag="-o out/conftest2.$ac_objext"
6586    # Insert the option either (1) after the last *FLAGS variable, or
6587    # (2) before a word containing "conftest.", or (3) at the end.
6588    # Note that $ac_compile itself does not contain backslashes and begins
6589    # with a dollar sign (not a hyphen), so the echo should work correctly.
6590    lt_compile=`echo "$ac_compile" | $SED \
6591    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593    -e 's:$: $lt_compiler_flag:'`
6594    (eval echo "\"\$as_me:6594: $lt_compile\"" >&5)
6595    (eval "$lt_compile" 2>out/conftest.err)
6596    ac_status=$?
6597    cat out/conftest.err >&5
6598    echo "$as_me:6598: \$? = $ac_status" >&5
6599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6600    then
6601      # The compiler can only warn and ignore the option if not recognized
6602      # So say no if there are warnings
6603      if test ! -s out/conftest.err; then
6604        lt_cv_prog_compiler_c_o=yes
6605      fi
6606    fi
6607    chmod u+w .
6608    $rm conftest*
6609    # SGI C++ compiler will create directory out/ii_files/ for
6610    # template instantiation
6611    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6612    $rm out/* && rmdir out
6613    cd ..
6614    rmdir conftest
6615    $rm conftest*
6616
6617 fi
6618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6620
6621
6622 hard_links="nottested"
6623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6624   # do not overwrite the value of need_locks provided by the user
6625   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6627   hard_links=yes
6628   $rm conftest*
6629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6630   touch conftest.a
6631   ln conftest.a conftest.b 2>&5 || hard_links=no
6632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6633   echo "$as_me:$LINENO: result: $hard_links" >&5
6634 echo "${ECHO_T}$hard_links" >&6
6635   if test "$hard_links" = no; then
6636     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6638     need_locks=warn
6639   fi
6640 else
6641   need_locks=no
6642 fi
6643
6644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6646
6647   runpath_var=
6648   allow_undefined_flag=
6649   enable_shared_with_static_runtimes=no
6650   archive_cmds=
6651   archive_expsym_cmds=
6652   old_archive_From_new_cmds=
6653   old_archive_from_expsyms_cmds=
6654   export_dynamic_flag_spec=
6655   whole_archive_flag_spec=
6656   thread_safe_flag_spec=
6657   hardcode_libdir_flag_spec=
6658   hardcode_libdir_flag_spec_ld=
6659   hardcode_libdir_separator=
6660   hardcode_direct=no
6661   hardcode_minus_L=no
6662   hardcode_shlibpath_var=unsupported
6663   link_all_deplibs=unknown
6664   hardcode_automatic=no
6665   module_cmds=
6666   module_expsym_cmds=
6667   always_export_symbols=no
6668   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6669   # include_expsyms should be a list of space-separated symbols to be *always*
6670   # included in the symbol list
6671   include_expsyms=
6672   # exclude_expsyms can be an extended regexp of symbols to exclude
6673   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6674   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6675   # as well as any symbol that contains `d'.
6676   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6677   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6678   # platforms (ab)use it in PIC code, but their linkers get confused if
6679   # the symbol is explicitly referenced.  Since portable code cannot
6680   # rely on this symbol name, it's probably fine to never include it in
6681   # preloaded symbol tables.
6682   extract_expsyms_cmds=
6683
6684   case $host_os in
6685   cygwin* | mingw* | pw32*)
6686     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6687     # When not using gcc, we currently assume that we are using
6688     # Microsoft Visual C++.
6689     if test "$GCC" != yes; then
6690       with_gnu_ld=no
6691     fi
6692     ;;
6693   openbsd*)
6694     with_gnu_ld=no
6695     ;;
6696   esac
6697
6698   ld_shlibs=yes
6699   if test "$with_gnu_ld" = yes; then
6700     # If archive_cmds runs LD, not CC, wlarc should be empty
6701     wlarc='${wl}'
6702
6703     # See if GNU ld supports shared libraries.
6704     case $host_os in
6705     aix3* | aix4* | aix5*)
6706       # On AIX/PPC, the GNU linker is very broken
6707       if test "$host_cpu" != ia64; then
6708         ld_shlibs=no
6709         cat <<EOF 1>&2
6710
6711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6712 *** to be unable to reliably create shared libraries on AIX.
6713 *** Therefore, libtool is disabling shared libraries support.  If you
6714 *** really care for shared libraries, you may want to modify your PATH
6715 *** so that a non-GNU linker is found, and then restart.
6716
6717 EOF
6718       fi
6719       ;;
6720
6721     amigaos*)
6722       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)'
6723       hardcode_libdir_flag_spec='-L$libdir'
6724       hardcode_minus_L=yes
6725
6726       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6727       # that the semantics of dynamic libraries on AmigaOS, at least up
6728       # to version 4, is to share data among multiple programs linked
6729       # with the same dynamic library.  Since this doesn't match the
6730       # behavior of shared libraries on other platforms, we can't use
6731       # them.
6732       ld_shlibs=no
6733       ;;
6734
6735     beos*)
6736       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6737         allow_undefined_flag=unsupported
6738         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6739         # support --undefined.  This deserves some investigation.  FIXME
6740         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741       else
6742         ld_shlibs=no
6743       fi
6744       ;;
6745
6746     cygwin* | mingw* | pw32*)
6747       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6748       # as there is no search path for DLLs.
6749       hardcode_libdir_flag_spec='-L$libdir'
6750       allow_undefined_flag=unsupported
6751       always_export_symbols=no
6752       enable_shared_with_static_runtimes=yes
6753       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6754
6755       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6757         # If the export-symbols file already is a .def file (1st line
6758         # is EXPORTS), use it as is; otherwise, prepend...
6759         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6760           cp $export_symbols $output_objdir/$soname.def;
6761         else
6762           echo EXPORTS > $output_objdir/$soname.def;
6763           cat $export_symbols >> $output_objdir/$soname.def;
6764         fi~
6765         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6766       else
6767         ld_shlibs=no
6768       fi
6769       ;;
6770
6771     netbsd*)
6772       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6773         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6774         wlarc=
6775       else
6776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778       fi
6779       ;;
6780
6781     solaris* | sysv5*)
6782       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6783         ld_shlibs=no
6784         cat <<EOF 1>&2
6785
6786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6787 *** create shared libraries on Solaris systems.  Therefore, libtool
6788 *** is disabling shared libraries support.  We urge you to upgrade GNU
6789 *** binutils to release 2.9.1 or newer.  Another option is to modify
6790 *** your PATH or compiler configuration so that the native linker is
6791 *** used, and then restart.
6792
6793 EOF
6794       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797       else
6798         ld_shlibs=no
6799       fi
6800       ;;
6801
6802     sunos4*)
6803       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6804       wlarc=
6805       hardcode_direct=yes
6806       hardcode_shlibpath_var=no
6807       ;;
6808
6809   linux*)
6810     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812         archive_cmds="$tmp_archive_cmds"
6813       supports_anon_versioning=no
6814       case `$LD -v 2>/dev/null` in
6815         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6816         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6817         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6818         *\ 2.11.*) ;; # other 2.11 versions
6819         *) supports_anon_versioning=yes ;;
6820       esac
6821       if test $supports_anon_versioning = yes; then
6822         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6824 $echo "local: *; };" >> $output_objdir/$libname.ver~
6825         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6826       else
6827         archive_expsym_cmds="$tmp_archive_cmds"
6828       fi
6829     else
6830       ld_shlibs=no
6831     fi
6832     ;;
6833
6834     *)
6835       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6836         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6837         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6838       else
6839         ld_shlibs=no
6840       fi
6841       ;;
6842     esac
6843
6844     if test "$ld_shlibs" = yes; then
6845       runpath_var=LD_RUN_PATH
6846       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6847       export_dynamic_flag_spec='${wl}--export-dynamic'
6848       # ancient GNU ld didn't support --whole-archive et. al.
6849       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6850         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6851       else
6852         whole_archive_flag_spec=
6853       fi
6854     fi
6855   else
6856     # PORTME fill in a description of your system's linker (not GNU ld)
6857     case $host_os in
6858     aix3*)
6859       allow_undefined_flag=unsupported
6860       always_export_symbols=yes
6861       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'
6862       # Note: this linker hardcodes the directories in LIBPATH if there
6863       # are no directories specified by -L.
6864       hardcode_minus_L=yes
6865       if test "$GCC" = yes && test -z "$link_static_flag"; then
6866         # Neither direct hardcoding nor static linking is supported with a
6867         # broken collect2.
6868         hardcode_direct=unsupported
6869       fi
6870       ;;
6871
6872     aix4* | aix5*)
6873       if test "$host_cpu" = ia64; then
6874         # On IA64, the linker does run time linking by default, so we don't
6875         # have to do anything special.
6876         aix_use_runtimelinking=no
6877         exp_sym_flag='-Bexport'
6878         no_entry_flag=""
6879       else
6880         # If we're using GNU nm, then we don't want the "-C" option.
6881         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6882         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6883           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'
6884         else
6885           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'
6886         fi
6887         aix_use_runtimelinking=no
6888
6889         # Test if we are trying to use run time linking or normal
6890         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6891         # need to do runtime linking.
6892         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6893           for ld_flag in $LDFLAGS; do
6894           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6895             aix_use_runtimelinking=yes
6896             break
6897           fi
6898           done
6899         esac
6900
6901         exp_sym_flag='-bexport'
6902         no_entry_flag='-bnoentry'
6903       fi
6904
6905       # When large executables or shared objects are built, AIX ld can
6906       # have problems creating the table of contents.  If linking a library
6907       # or program results in "error TOC overflow" add -mminimal-toc to
6908       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6909       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6910
6911       archive_cmds=''
6912       hardcode_direct=yes
6913       hardcode_libdir_separator=':'
6914       link_all_deplibs=yes
6915
6916       if test "$GCC" = yes; then
6917         case $host_os in aix4.012|aix4.012.*)
6918         # We only want to do this on AIX 4.2 and lower, the check
6919         # below for broken collect2 doesn't work under 4.3+
6920           collect2name=`${CC} -print-prog-name=collect2`
6921           if test -f "$collect2name" && \
6922            strings "$collect2name" | grep resolve_lib_name >/dev/null
6923           then
6924           # We have reworked collect2
6925           hardcode_direct=yes
6926           else
6927           # We have old collect2
6928           hardcode_direct=unsupported
6929           # It fails to find uninstalled libraries when the uninstalled
6930           # path is not listed in the libpath.  Setting hardcode_minus_L
6931           # to unsupported forces relinking
6932           hardcode_minus_L=yes
6933           hardcode_libdir_flag_spec='-L$libdir'
6934           hardcode_libdir_separator=
6935           fi
6936         esac
6937         shared_flag='-shared'
6938       else
6939         # not using gcc
6940         if test "$host_cpu" = ia64; then
6941         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6942         # chokes on -Wl,-G. The following line is correct:
6943           shared_flag='-G'
6944         else
6945         if test "$aix_use_runtimelinking" = yes; then
6946             shared_flag='${wl}-G'
6947           else
6948             shared_flag='${wl}-bM:SRE'
6949         fi
6950         fi
6951       fi
6952
6953       # It seems that -bexpall does not export symbols beginning with
6954       # underscore (_), so it is better to generate a list of symbols to export.
6955       always_export_symbols=yes
6956       if test "$aix_use_runtimelinking" = yes; then
6957         # Warning - without using the other runtime loading flags (-brtl),
6958         # -berok will link without error, but may produce a broken library.
6959         allow_undefined_flag='-berok'
6960        # Determine the default libpath from the value encoded in an empty executable.
6961        cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h.  */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h.  */
6967
6968 int
6969 main ()
6970 {
6971
6972   ;
6973   return 0;
6974 }
6975 _ACEOF
6976 rm -f conftest.$ac_objext conftest$ac_exeext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978   (eval $ac_link) 2>conftest.er1
6979   ac_status=$?
6980   grep -v '^ *+' conftest.er1 >conftest.err
6981   rm -f conftest.er1
6982   cat conftest.err >&5
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -z "$ac_c_werror_flag"
6986                          || test ! -s conftest.err'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; } &&
6992          { ac_try='test -s conftest$ac_exeext'
6993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994   (eval $ac_try) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); }; }; then
6998
6999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7000 }'`
7001 # Check for a 64-bit object if we didn't find anything.
7002 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; }
7003 }'`; fi
7004 else
7005   echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008 fi
7009 rm -f conftest.err conftest.$ac_objext \
7010       conftest$ac_exeext conftest.$ac_ext
7011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7012
7013        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7014         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7015        else
7016         if test "$host_cpu" = ia64; then
7017           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7018           allow_undefined_flag="-z nodefs"
7019           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7020         else
7021          # Determine the default libpath from the value encoded in an empty executable.
7022          cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h.  */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h.  */
7028
7029 int
7030 main ()
7031 {
7032
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039   (eval $ac_link) 2>conftest.er1
7040   ac_status=$?
7041   grep -v '^ *+' conftest.er1 >conftest.err
7042   rm -f conftest.er1
7043   cat conftest.err >&5
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } &&
7046          { ac_try='test -z "$ac_c_werror_flag"
7047                          || test ! -s conftest.err'
7048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049   (eval $ac_try) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); }; } &&
7053          { ac_try='test -s conftest$ac_exeext'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; }; then
7059
7060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7061 }'`
7062 # Check for a 64-bit object if we didn't find anything.
7063 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; }
7064 }'`; fi
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 fi
7070 rm -f conftest.err conftest.$ac_objext \
7071       conftest$ac_exeext conftest.$ac_ext
7072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7073
7074          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7075           # Warning - without using the other run time loading flags,
7076           # -berok will link without error, but may produce a broken library.
7077           no_undefined_flag=' ${wl}-bernotok'
7078           allow_undefined_flag=' ${wl}-berok'
7079           # -bexpall does not export symbols beginning with underscore (_)
7080           always_export_symbols=yes
7081           # Exported symbols can be pulled into shared objects from archives
7082           whole_archive_flag_spec=' '
7083           archive_cmds_need_lc=yes
7084           # This is similar to how AIX traditionally builds it's shared libraries.
7085           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7086         fi
7087       fi
7088       ;;
7089
7090     amigaos*)
7091       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)'
7092       hardcode_libdir_flag_spec='-L$libdir'
7093       hardcode_minus_L=yes
7094       # see comment about different semantics on the GNU ld section
7095       ld_shlibs=no
7096       ;;
7097
7098     bsdi4*)
7099       export_dynamic_flag_spec=-rdynamic
7100       ;;
7101
7102     cygwin* | mingw* | pw32*)
7103       # When not using gcc, we currently assume that we are using
7104       # Microsoft Visual C++.
7105       # hardcode_libdir_flag_spec is actually meaningless, as there is
7106       # no search path for DLLs.
7107       hardcode_libdir_flag_spec=' '
7108       allow_undefined_flag=unsupported
7109       # Tell ltmain to make .lib files, not .a files.
7110       libext=lib
7111       # Tell ltmain to make .dll files, not .so files.
7112       shrext_cmds=".dll"
7113       # FIXME: Setting linknames here is a bad hack.
7114       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7115       # The linker will automatically build a .lib file if we build a DLL.
7116       old_archive_From_new_cmds='true'
7117       # FIXME: Should let the user specify the lib program.
7118       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7119       fix_srcfile_path='`cygpath -w "$srcfile"`'
7120       enable_shared_with_static_runtimes=yes
7121       ;;
7122
7123     darwin* | rhapsody*)
7124     if test "$GXX" = yes ; then
7125       archive_cmds_need_lc=no
7126       case "$host_os" in
7127       rhapsody* | darwin1.[012])
7128         allow_undefined_flag='-undefined suppress'
7129         ;;
7130       *) # Darwin 1.3 on
7131       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7132         allow_undefined_flag='-flat_namespace -undefined suppress'
7133       else
7134         case ${MACOSX_DEPLOYMENT_TARGET} in
7135           10.[012])
7136             allow_undefined_flag='-flat_namespace -undefined suppress'
7137             ;;
7138           10.*)
7139             allow_undefined_flag='-undefined dynamic_lookup'
7140             ;;
7141         esac
7142       fi
7143         ;;
7144       esac
7145         lt_int_apple_cc_single_mod=no
7146         output_verbose_link_cmd='echo'
7147         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7148           lt_int_apple_cc_single_mod=yes
7149         fi
7150         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7151           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7152         else
7153         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7154       fi
7155       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7156       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7157         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7158           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7159         else
7160           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7161         fi
7162           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}'
7163       hardcode_direct=no
7164       hardcode_automatic=yes
7165       hardcode_shlibpath_var=unsupported
7166       whole_archive_flag_spec='-all_load $convenience'
7167       link_all_deplibs=yes
7168     else
7169       ld_shlibs=no
7170     fi
7171       ;;
7172
7173     dgux*)
7174       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7175       hardcode_libdir_flag_spec='-L$libdir'
7176       hardcode_shlibpath_var=no
7177       ;;
7178
7179     freebsd1*)
7180       ld_shlibs=no
7181       ;;
7182
7183     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7184     # support.  Future versions do this automatically, but an explicit c++rt0.o
7185     # does not break anything, and helps significantly (at the cost of a little
7186     # extra space).
7187     freebsd2.2*)
7188       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7189       hardcode_libdir_flag_spec='-R$libdir'
7190       hardcode_direct=yes
7191       hardcode_shlibpath_var=no
7192       ;;
7193
7194     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7195     freebsd2*)
7196       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7197       hardcode_direct=yes
7198       hardcode_minus_L=yes
7199       hardcode_shlibpath_var=no
7200       ;;
7201
7202     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7203     freebsd* | kfreebsd*-gnu)
7204       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7205       hardcode_libdir_flag_spec='-R$libdir'
7206       hardcode_direct=yes
7207       hardcode_shlibpath_var=no
7208       ;;
7209
7210     hpux9*)
7211       if test "$GCC" = yes; then
7212         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'
7213       else
7214         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'
7215       fi
7216       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7217       hardcode_libdir_separator=:
7218       hardcode_direct=yes
7219
7220       # hardcode_minus_L: Not really in the search PATH,
7221       # but as the default location of the library.
7222       hardcode_minus_L=yes
7223       export_dynamic_flag_spec='${wl}-E'
7224       ;;
7225
7226     hpux10* | hpux11*)
7227       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7228         case "$host_cpu" in
7229         hppa*64*|ia64*)
7230           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7231           ;;
7232         *)
7233           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7234           ;;
7235         esac
7236       else
7237         case "$host_cpu" in
7238         hppa*64*|ia64*)
7239           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7240           ;;
7241         *)
7242           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7243           ;;
7244         esac
7245       fi
7246       if test "$with_gnu_ld" = no; then
7247         case "$host_cpu" in
7248         hppa*64*)
7249           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7250           hardcode_libdir_flag_spec_ld='+b $libdir'
7251           hardcode_libdir_separator=:
7252           hardcode_direct=no
7253           hardcode_shlibpath_var=no
7254           ;;
7255         ia64*)
7256           hardcode_libdir_flag_spec='-L$libdir'
7257           hardcode_direct=no
7258           hardcode_shlibpath_var=no
7259
7260           # hardcode_minus_L: Not really in the search PATH,
7261           # but as the default location of the library.
7262           hardcode_minus_L=yes
7263           ;;
7264         *)
7265           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7266           hardcode_libdir_separator=:
7267           hardcode_direct=yes
7268           export_dynamic_flag_spec='${wl}-E'
7269
7270           # hardcode_minus_L: Not really in the search PATH,
7271           # but as the default location of the library.
7272           hardcode_minus_L=yes
7273           ;;
7274         esac
7275       fi
7276       ;;
7277
7278     irix5* | irix6* | nonstopux*)
7279       if test "$GCC" = yes; then
7280         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'
7281       else
7282         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'
7283         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7284       fi
7285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7286       hardcode_libdir_separator=:
7287       link_all_deplibs=yes
7288       ;;
7289
7290     netbsd*)
7291       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7292         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7293       else
7294         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7295       fi
7296       hardcode_libdir_flag_spec='-R$libdir'
7297       hardcode_direct=yes
7298       hardcode_shlibpath_var=no
7299       ;;
7300
7301     newsos6)
7302       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7303       hardcode_direct=yes
7304       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7305       hardcode_libdir_separator=:
7306       hardcode_shlibpath_var=no
7307       ;;
7308
7309     openbsd*)
7310       hardcode_direct=yes
7311       hardcode_shlibpath_var=no
7312       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7313         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7314         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7315         export_dynamic_flag_spec='${wl}-E'
7316       else
7317        case $host_os in
7318          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7319            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7320            hardcode_libdir_flag_spec='-R$libdir'
7321            ;;
7322          *)
7323            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7324            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7325            ;;
7326        esac
7327       fi
7328       ;;
7329
7330     os2*)
7331       hardcode_libdir_flag_spec='-L$libdir'
7332       hardcode_minus_L=yes
7333       allow_undefined_flag=unsupported
7334       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'
7335       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7336       ;;
7337
7338     osf3*)
7339       if test "$GCC" = yes; then
7340         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7341         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'
7342       else
7343         allow_undefined_flag=' -expect_unresolved \*'
7344         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'
7345       fi
7346       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7347       hardcode_libdir_separator=:
7348       ;;
7349
7350     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7351       if test "$GCC" = yes; then
7352         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7353         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'
7354         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7355       else
7356         allow_undefined_flag=' -expect_unresolved \*'
7357         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'
7358         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7359         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7360
7361         # Both c and cxx compiler support -rpath directly
7362         hardcode_libdir_flag_spec='-rpath $libdir'
7363       fi
7364       hardcode_libdir_separator=:
7365       ;;
7366
7367     sco3.2v5*)
7368       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369       hardcode_shlibpath_var=no
7370       export_dynamic_flag_spec='${wl}-Bexport'
7371       runpath_var=LD_RUN_PATH
7372       hardcode_runpath_var=yes
7373       ;;
7374
7375     solaris*)
7376       no_undefined_flag=' -z text'
7377       if test "$GCC" = yes; then
7378         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7379         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7381       else
7382         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7383         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7384         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7385       fi
7386       hardcode_libdir_flag_spec='-R$libdir'
7387       hardcode_shlibpath_var=no
7388       case $host_os in
7389       solaris2.[0-5] | solaris2.[0-5].*) ;;
7390       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7391         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7392       esac
7393       link_all_deplibs=yes
7394       ;;
7395
7396     sunos4*)
7397       if test "x$host_vendor" = xsequent; then
7398         # Use $CC to link under sequent, because it throws in some extra .o
7399         # files that make .init and .fini sections work.
7400         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7401       else
7402         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7403       fi
7404       hardcode_libdir_flag_spec='-L$libdir'
7405       hardcode_direct=yes
7406       hardcode_minus_L=yes
7407       hardcode_shlibpath_var=no
7408       ;;
7409
7410     sysv4)
7411       case $host_vendor in
7412         sni)
7413           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414           hardcode_direct=yes # is this really true???
7415         ;;
7416         siemens)
7417           ## LD is ld it makes a PLAMLIB
7418           ## CC just makes a GrossModule.
7419           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7420           reload_cmds='$CC -r -o $output$reload_objs'
7421           hardcode_direct=no
7422         ;;
7423         motorola)
7424           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7426         ;;
7427       esac
7428       runpath_var='LD_RUN_PATH'
7429       hardcode_shlibpath_var=no
7430       ;;
7431
7432     sysv4.3*)
7433       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434       hardcode_shlibpath_var=no
7435       export_dynamic_flag_spec='-Bexport'
7436       ;;
7437
7438     sysv4*MP*)
7439       if test -d /usr/nec; then
7440         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441         hardcode_shlibpath_var=no
7442         runpath_var=LD_RUN_PATH
7443         hardcode_runpath_var=yes
7444         ld_shlibs=yes
7445       fi
7446       ;;
7447
7448     sysv4.2uw2*)
7449       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7450       hardcode_direct=yes
7451       hardcode_minus_L=no
7452       hardcode_shlibpath_var=no
7453       hardcode_runpath_var=yes
7454       runpath_var=LD_RUN_PATH
7455       ;;
7456
7457    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7458       no_undefined_flag='${wl}-z ${wl}text'
7459       if test "$GCC" = yes; then
7460         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7461       else
7462         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463       fi
7464       runpath_var='LD_RUN_PATH'
7465       hardcode_shlibpath_var=no
7466       ;;
7467
7468     sysv5*)
7469       no_undefined_flag=' -z text'
7470       # $CC -shared without GNU ld will not create a library from C++
7471       # object files and a static libstdc++, better avoid it by now
7472       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7474                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7475       hardcode_libdir_flag_spec=
7476       hardcode_shlibpath_var=no
7477       runpath_var='LD_RUN_PATH'
7478       ;;
7479
7480     uts4*)
7481       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482       hardcode_libdir_flag_spec='-L$libdir'
7483       hardcode_shlibpath_var=no
7484       ;;
7485
7486     *)
7487       ld_shlibs=no
7488       ;;
7489     esac
7490   fi
7491
7492 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7493 echo "${ECHO_T}$ld_shlibs" >&6
7494 test "$ld_shlibs" = no && can_build_shared=no
7495
7496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7497 if test "$GCC" = yes; then
7498   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7499 fi
7500
7501 #
7502 # Do we need to explicitly link libc?
7503 #
7504 case "x$archive_cmds_need_lc" in
7505 x|xyes)
7506   # Assume -lc should be added
7507   archive_cmds_need_lc=yes
7508
7509   if test "$enable_shared" = yes && test "$GCC" = yes; then
7510     case $archive_cmds in
7511     *'~'*)
7512       # FIXME: we may have to deal with multi-command sequences.
7513       ;;
7514     '$CC '*)
7515       # Test whether the compiler implicitly links with -lc since on some
7516       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7517       # to ld, don't add -lc before -lgcc.
7518       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7519 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7520       $rm conftest*
7521       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7522
7523       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524   (eval $ac_compile) 2>&5
7525   ac_status=$?
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } 2>conftest.err; then
7528         soname=conftest
7529         lib=conftest
7530         libobjs=conftest.$ac_objext
7531         deplibs=
7532         wl=$lt_prog_compiler_wl
7533         compiler_flags=-v
7534         linker_flags=-v
7535         verstring=
7536         output_objdir=.
7537         libname=conftest
7538         lt_save_allow_undefined_flag=$allow_undefined_flag
7539         allow_undefined_flag=
7540         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7541   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }
7545         then
7546           archive_cmds_need_lc=no
7547         else
7548           archive_cmds_need_lc=yes
7549         fi
7550         allow_undefined_flag=$lt_save_allow_undefined_flag
7551       else
7552         cat conftest.err 1>&5
7553       fi
7554       $rm conftest*
7555       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7556 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7557       ;;
7558     esac
7559   fi
7560   ;;
7561 esac
7562
7563 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7565 library_names_spec=
7566 libname_spec='lib$name'
7567 soname_spec=
7568 shrext_cmds=".so"
7569 postinstall_cmds=
7570 postuninstall_cmds=
7571 finish_cmds=
7572 finish_eval=
7573 shlibpath_var=
7574 shlibpath_overrides_runpath=unknown
7575 version_type=none
7576 dynamic_linker="$host_os ld.so"
7577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7578 if test "$GCC" = yes; then
7579   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7580   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7581     # if the path contains ";" then we assume it to be the separator
7582     # otherwise default to the standard path separator (i.e. ":") - it is
7583     # assumed that no part of a normal pathname contains ";" but that should
7584     # okay in the real world where ";" in dirpaths is itself problematic.
7585     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7586   else
7587     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7588   fi
7589 else
7590   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7591 fi
7592 need_lib_prefix=unknown
7593 hardcode_into_libs=no
7594
7595 # when you set need_version to no, make sure it does not cause -set_version
7596 # flags to be left without arguments
7597 need_version=unknown
7598
7599 case $host_os in
7600 aix3*)
7601   version_type=linux
7602   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7603   shlibpath_var=LIBPATH
7604
7605   # AIX 3 has no versioning support, so we append a major version to the name.
7606   soname_spec='${libname}${release}${shared_ext}$major'
7607   ;;
7608
7609 aix4* | aix5*)
7610   version_type=linux
7611   need_lib_prefix=no
7612   need_version=no
7613   hardcode_into_libs=yes
7614   if test "$host_cpu" = ia64; then
7615     # AIX 5 supports IA64
7616     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7617     shlibpath_var=LD_LIBRARY_PATH
7618   else
7619     # With GCC up to 2.95.x, collect2 would create an import file
7620     # for dependence libraries.  The import file would start with
7621     # the line `#! .'.  This would cause the generated library to
7622     # depend on `.', always an invalid library.  This was fixed in
7623     # development snapshots of GCC prior to 3.0.
7624     case $host_os in
7625       aix4 | aix4.[01] | aix4.[01].*)
7626       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7627            echo ' yes '
7628            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7629         :
7630       else
7631         can_build_shared=no
7632       fi
7633       ;;
7634     esac
7635     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7636     # soname into executable. Probably we can add versioning support to
7637     # collect2, so additional links can be useful in future.
7638     if test "$aix_use_runtimelinking" = yes; then
7639       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7640       # instead of lib<name>.a to let people know that these are not
7641       # typical AIX shared libraries.
7642       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7643     else
7644       # We preserve .a as extension for shared libraries through AIX4.2
7645       # and later when we are not doing run time linking.
7646       library_names_spec='${libname}${release}.a $libname.a'
7647       soname_spec='${libname}${release}${shared_ext}$major'
7648     fi
7649     shlibpath_var=LIBPATH
7650   fi
7651   ;;
7652
7653 amigaos*)
7654   library_names_spec='$libname.ixlibrary $libname.a'
7655   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7656   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'
7657   ;;
7658
7659 beos*)
7660   library_names_spec='${libname}${shared_ext}'
7661   dynamic_linker="$host_os ld.so"
7662   shlibpath_var=LIBRARY_PATH
7663   ;;
7664
7665 bsdi4*)
7666   version_type=linux
7667   need_version=no
7668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669   soname_spec='${libname}${release}${shared_ext}$major'
7670   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7671   shlibpath_var=LD_LIBRARY_PATH
7672   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7673   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7674   # the default ld.so.conf also contains /usr/contrib/lib and
7675   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7676   # libtool to hard-code these into programs
7677   ;;
7678
7679 cygwin* | mingw* | pw32*)
7680   version_type=windows
7681   shrext_cmds=".dll"
7682   need_version=no
7683   need_lib_prefix=no
7684
7685   case $GCC,$host_os in
7686   yes,cygwin* | yes,mingw* | yes,pw32*)
7687     library_names_spec='$libname.dll.a'
7688     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7689     postinstall_cmds='base_file=`basename \${file}`~
7690       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7691       dldir=$destdir/`dirname \$dlpath`~
7692       test -d \$dldir || mkdir -p \$dldir~
7693       $install_prog $dir/$dlname \$dldir/$dlname'
7694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7695       dlpath=$dir/\$dldll~
7696        $rm \$dlpath'
7697     shlibpath_overrides_runpath=yes
7698
7699     case $host_os in
7700     cygwin*)
7701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7703       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7704       ;;
7705     mingw*)
7706       # MinGW DLLs use traditional 'lib' prefix
7707       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7708       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7709       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7710         # It is most probably a Windows format PATH printed by
7711         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7712         # path with ; separators, and with drive letters. We can handle the
7713         # drive letters (cygwin fileutils understands them), so leave them,
7714         # especially as we might pass files found there to a mingw objdump,
7715         # which wouldn't understand a cygwinified path. Ahh.
7716         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7717       else
7718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7719       fi
7720       ;;
7721     pw32*)
7722       # pw32 DLLs use 'pw' prefix rather than 'lib'
7723       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7724       ;;
7725     esac
7726     ;;
7727
7728   *)
7729     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7730     ;;
7731   esac
7732   dynamic_linker='Win32 ld.exe'
7733   # FIXME: first we should search . and the directory the executable is in
7734   shlibpath_var=PATH
7735   ;;
7736
7737 darwin* | rhapsody*)
7738   dynamic_linker="$host_os dyld"
7739   version_type=darwin
7740   need_lib_prefix=no
7741   need_version=no
7742   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7743   soname_spec='${libname}${release}${major}$shared_ext'
7744   shlibpath_overrides_runpath=yes
7745   shlibpath_var=DYLD_LIBRARY_PATH
7746   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7747   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7748   if test "$GCC" = yes; then
7749     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"`
7750   else
7751     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7752   fi
7753   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7754   ;;
7755
7756 dgux*)
7757   version_type=linux
7758   need_lib_prefix=no
7759   need_version=no
7760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7761   soname_spec='${libname}${release}${shared_ext}$major'
7762   shlibpath_var=LD_LIBRARY_PATH
7763   ;;
7764
7765 freebsd1*)
7766   dynamic_linker=no
7767   ;;
7768
7769 kfreebsd*-gnu)
7770   version_type=linux
7771   need_lib_prefix=no
7772   need_version=no
7773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7774   soname_spec='${libname}${release}${shared_ext}$major'
7775   shlibpath_var=LD_LIBRARY_PATH
7776   shlibpath_overrides_runpath=no
7777   hardcode_into_libs=yes
7778   dynamic_linker='GNU ld.so'
7779   ;;
7780
7781 freebsd*)
7782   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7783   version_type=freebsd-$objformat
7784   case $version_type in
7785     freebsd-elf*)
7786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7787       need_version=no
7788       need_lib_prefix=no
7789       ;;
7790     freebsd-*)
7791       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7792       need_version=yes
7793       ;;
7794   esac
7795   shlibpath_var=LD_LIBRARY_PATH
7796   case $host_os in
7797   freebsd2*)
7798     shlibpath_overrides_runpath=yes
7799     ;;
7800   freebsd3.01* | freebsdelf3.01*)
7801     shlibpath_overrides_runpath=yes
7802     hardcode_into_libs=yes
7803     ;;
7804   *) # from 3.2 on
7805     shlibpath_overrides_runpath=no
7806     hardcode_into_libs=yes
7807     ;;
7808   esac
7809   ;;
7810
7811 gnu*)
7812   version_type=linux
7813   need_lib_prefix=no
7814   need_version=no
7815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7816   soname_spec='${libname}${release}${shared_ext}$major'
7817   shlibpath_var=LD_LIBRARY_PATH
7818   hardcode_into_libs=yes
7819   ;;
7820
7821 hpux9* | hpux10* | hpux11*)
7822   # Give a soname corresponding to the major version so that dld.sl refuses to
7823   # link against other versions.
7824   version_type=sunos
7825   need_lib_prefix=no
7826   need_version=no
7827   case "$host_cpu" in
7828   ia64*)
7829     shrext_cmds='.so'
7830     hardcode_into_libs=yes
7831     dynamic_linker="$host_os dld.so"
7832     shlibpath_var=LD_LIBRARY_PATH
7833     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835     soname_spec='${libname}${release}${shared_ext}$major'
7836     if test "X$HPUX_IA64_MODE" = X32; then
7837       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7838     else
7839       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7840     fi
7841     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7842     ;;
7843    hppa*64*)
7844      shrext_cmds='.sl'
7845      hardcode_into_libs=yes
7846      dynamic_linker="$host_os dld.sl"
7847      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7848      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7849      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850      soname_spec='${libname}${release}${shared_ext}$major'
7851      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7852      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7853      ;;
7854    *)
7855     shrext_cmds='.sl'
7856     dynamic_linker="$host_os dld.sl"
7857     shlibpath_var=SHLIB_PATH
7858     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7860     soname_spec='${libname}${release}${shared_ext}$major'
7861     ;;
7862   esac
7863   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7864   postinstall_cmds='chmod 555 $lib'
7865   ;;
7866
7867 irix5* | irix6* | nonstopux*)
7868   case $host_os in
7869     nonstopux*) version_type=nonstopux ;;
7870     *)
7871         if test "$lt_cv_prog_gnu_ld" = yes; then
7872                 version_type=linux
7873         else
7874                 version_type=irix
7875         fi ;;
7876   esac
7877   need_lib_prefix=no
7878   need_version=no
7879   soname_spec='${libname}${release}${shared_ext}$major'
7880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7881   case $host_os in
7882   irix5* | nonstopux*)
7883     libsuff= shlibsuff=
7884     ;;
7885   *)
7886     case $LD in # libtool.m4 will add one of these switches to LD
7887     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7888       libsuff= shlibsuff= libmagic=32-bit;;
7889     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7890       libsuff=32 shlibsuff=N32 libmagic=N32;;
7891     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7892       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7893     *) libsuff= shlibsuff= libmagic=never-match;;
7894     esac
7895     ;;
7896   esac
7897   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7898   shlibpath_overrides_runpath=no
7899   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7900   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7901   hardcode_into_libs=yes
7902   ;;
7903
7904 # No shared lib support for Linux oldld, aout, or coff.
7905 linux*oldld* | linux*aout* | linux*coff*)
7906   dynamic_linker=no
7907   ;;
7908
7909 # This must be Linux ELF.
7910 linux*)
7911   version_type=linux
7912   need_lib_prefix=no
7913   need_version=no
7914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915   soname_spec='${libname}${release}${shared_ext}$major'
7916   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7917   shlibpath_var=LD_LIBRARY_PATH
7918   shlibpath_overrides_runpath=no
7919   # This implies no fast_install, which is unacceptable.
7920   # Some rework will be needed to allow for fast_install
7921   # before this can be enabled.
7922   hardcode_into_libs=yes
7923
7924   # find out which ABI we are using
7925   libsuff=
7926   case "$host_cpu" in
7927   x86_64*|s390x*|powerpc64*)
7928     echo '#line 7928 "configure"' > conftest.$ac_ext
7929     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930   (eval $ac_compile) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; then
7934       case `/usr/bin/file conftest.$ac_objext` in
7935       *64-bit*)
7936         libsuff=64
7937         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7938         ;;
7939       esac
7940     fi
7941     rm -rf conftest*
7942     ;;
7943   esac
7944
7945   # Append ld.so.conf contents to the search path
7946   if test -f /etc/ld.so.conf; then
7947     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7948     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7949   fi
7950
7951   # We used to test for /lib/ld.so.1 and disable shared libraries on
7952   # powerpc, because MkLinux only supported shared libraries with the
7953   # GNU dynamic linker.  Since this was broken with cross compilers,
7954   # most powerpc-linux boxes support dynamic linking these days and
7955   # people can always --disable-shared, the test was removed, and we
7956   # assume the GNU/Linux dynamic linker is in use.
7957   dynamic_linker='GNU/Linux ld.so'
7958   ;;
7959
7960 knetbsd*-gnu)
7961   version_type=linux
7962   need_lib_prefix=no
7963   need_version=no
7964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7965   soname_spec='${libname}${release}${shared_ext}$major'
7966   shlibpath_var=LD_LIBRARY_PATH
7967   shlibpath_overrides_runpath=no
7968   hardcode_into_libs=yes
7969   dynamic_linker='GNU ld.so'
7970   ;;
7971
7972 netbsd*)
7973   version_type=sunos
7974   need_lib_prefix=no
7975   need_version=no
7976   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7978     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7979     dynamic_linker='NetBSD (a.out) ld.so'
7980   else
7981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7982     soname_spec='${libname}${release}${shared_ext}$major'
7983     dynamic_linker='NetBSD ld.elf_so'
7984   fi
7985   shlibpath_var=LD_LIBRARY_PATH
7986   shlibpath_overrides_runpath=yes
7987   hardcode_into_libs=yes
7988   ;;
7989
7990 newsos6)
7991   version_type=linux
7992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7993   shlibpath_var=LD_LIBRARY_PATH
7994   shlibpath_overrides_runpath=yes
7995   ;;
7996
7997 nto-qnx*)
7998   version_type=linux
7999   need_lib_prefix=no
8000   need_version=no
8001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8002   soname_spec='${libname}${release}${shared_ext}$major'
8003   shlibpath_var=LD_LIBRARY_PATH
8004   shlibpath_overrides_runpath=yes
8005   ;;
8006
8007 openbsd*)
8008   version_type=sunos
8009   need_lib_prefix=no
8010   need_version=yes
8011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8012   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8013   shlibpath_var=LD_LIBRARY_PATH
8014   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8015     case $host_os in
8016       openbsd2.[89] | openbsd2.[89].*)
8017         shlibpath_overrides_runpath=no
8018         ;;
8019       *)
8020         shlibpath_overrides_runpath=yes
8021         ;;
8022       esac
8023   else
8024     shlibpath_overrides_runpath=yes
8025   fi
8026   ;;
8027
8028 os2*)
8029   libname_spec='$name'
8030   shrext_cmds=".dll"
8031   need_lib_prefix=no
8032   library_names_spec='$libname${shared_ext} $libname.a'
8033   dynamic_linker='OS/2 ld.exe'
8034   shlibpath_var=LIBPATH
8035   ;;
8036
8037 osf3* | osf4* | osf5*)
8038   version_type=osf
8039   need_lib_prefix=no
8040   need_version=no
8041   soname_spec='${libname}${release}${shared_ext}$major'
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043   shlibpath_var=LD_LIBRARY_PATH
8044   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8045   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8046   ;;
8047
8048 sco3.2v5*)
8049   version_type=osf
8050   soname_spec='${libname}${release}${shared_ext}$major'
8051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8052   shlibpath_var=LD_LIBRARY_PATH
8053   ;;
8054
8055 solaris*)
8056   version_type=linux
8057   need_lib_prefix=no
8058   need_version=no
8059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8060   soname_spec='${libname}${release}${shared_ext}$major'
8061   shlibpath_var=LD_LIBRARY_PATH
8062   shlibpath_overrides_runpath=yes
8063   hardcode_into_libs=yes
8064   # ldd complains unless libraries are executable
8065   postinstall_cmds='chmod +x $lib'
8066   ;;
8067
8068 sunos4*)
8069   version_type=sunos
8070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8071   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8072   shlibpath_var=LD_LIBRARY_PATH
8073   shlibpath_overrides_runpath=yes
8074   if test "$with_gnu_ld" = yes; then
8075     need_lib_prefix=no
8076   fi
8077   need_version=yes
8078   ;;
8079
8080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8081   version_type=linux
8082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083   soname_spec='${libname}${release}${shared_ext}$major'
8084   shlibpath_var=LD_LIBRARY_PATH
8085   case $host_vendor in
8086     sni)
8087       shlibpath_overrides_runpath=no
8088       need_lib_prefix=no
8089       export_dynamic_flag_spec='${wl}-Blargedynsym'
8090       runpath_var=LD_RUN_PATH
8091       ;;
8092     siemens)
8093       need_lib_prefix=no
8094       ;;
8095     motorola)
8096       need_lib_prefix=no
8097       need_version=no
8098       shlibpath_overrides_runpath=no
8099       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8100       ;;
8101   esac
8102   ;;
8103
8104 sysv4*MP*)
8105   if test -d /usr/nec ;then
8106     version_type=linux
8107     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8108     soname_spec='$libname${shared_ext}.$major'
8109     shlibpath_var=LD_LIBRARY_PATH
8110   fi
8111   ;;
8112
8113 uts4*)
8114   version_type=linux
8115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116   soname_spec='${libname}${release}${shared_ext}$major'
8117   shlibpath_var=LD_LIBRARY_PATH
8118   ;;
8119
8120 *)
8121   dynamic_linker=no
8122   ;;
8123 esac
8124 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8125 echo "${ECHO_T}$dynamic_linker" >&6
8126 test "$dynamic_linker" = no && can_build_shared=no
8127
8128 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8130 hardcode_action=
8131 if test -n "$hardcode_libdir_flag_spec" || \
8132    test -n "$runpath_var " || \
8133    test "X$hardcode_automatic"="Xyes" ; then
8134
8135   # We can hardcode non-existant directories.
8136   if test "$hardcode_direct" != no &&
8137      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8138      # have to relink, otherwise we might link with an installed library
8139      # when we should be linking with a yet-to-be-installed one
8140      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8141      test "$hardcode_minus_L" != no; then
8142     # Linking always hardcodes the temporary library directory.
8143     hardcode_action=relink
8144   else
8145     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8146     hardcode_action=immediate
8147   fi
8148 else
8149   # We cannot hardcode anything, or else we can only hardcode existing
8150   # directories.
8151   hardcode_action=unsupported
8152 fi
8153 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8154 echo "${ECHO_T}$hardcode_action" >&6
8155
8156 if test "$hardcode_action" = relink; then
8157   # Fast installation is not supported
8158   enable_fast_install=no
8159 elif test "$shlibpath_overrides_runpath" = yes ||
8160      test "$enable_shared" = no; then
8161   # Fast installation is not necessary
8162   enable_fast_install=needless
8163 fi
8164
8165 striplib=
8166 old_striplib=
8167 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8168 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8169 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8170   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8171   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8172   echo "$as_me:$LINENO: result: yes" >&5
8173 echo "${ECHO_T}yes" >&6
8174 else
8175 # FIXME - insert some real tests, host_os isn't really good enough
8176   case $host_os in
8177    darwin*)
8178        if test -n "$STRIP" ; then
8179          striplib="$STRIP -x"
8180          echo "$as_me:$LINENO: result: yes" >&5
8181 echo "${ECHO_T}yes" >&6
8182        else
8183   echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8185 fi
8186        ;;
8187    *)
8188   echo "$as_me:$LINENO: result: no" >&5
8189 echo "${ECHO_T}no" >&6
8190     ;;
8191   esac
8192 fi
8193
8194 if test "x$enable_dlopen" != xyes; then
8195   enable_dlopen=unknown
8196   enable_dlopen_self=unknown
8197   enable_dlopen_self_static=unknown
8198 else
8199   lt_cv_dlopen=no
8200   lt_cv_dlopen_libs=
8201
8202   case $host_os in
8203   beos*)
8204     lt_cv_dlopen="load_add_on"
8205     lt_cv_dlopen_libs=
8206     lt_cv_dlopen_self=yes
8207     ;;
8208
8209   mingw* | pw32*)
8210     lt_cv_dlopen="LoadLibrary"
8211     lt_cv_dlopen_libs=
8212    ;;
8213
8214   cygwin*)
8215     lt_cv_dlopen="dlopen"
8216     lt_cv_dlopen_libs=
8217    ;;
8218
8219   darwin*)
8220   # if libdl is installed we need to link against it
8221     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8222 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8223 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   ac_check_lib_save_LIBS=$LIBS
8227 LIBS="-ldl  $LIBS"
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234
8235 /* Override any gcc2 internal prototype to avoid an error.  */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 /* We use char because int might match the return type of a gcc2
8240    builtin and then its argument prototype would still apply.  */
8241 char dlopen ();
8242 int
8243 main ()
8244 {
8245 dlopen ();
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252   (eval $ac_link) 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -z "$ac_c_werror_flag"
8260                          || test ! -s conftest.err'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; } &&
8266          { ac_try='test -s conftest$ac_exeext'
8267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268   (eval $ac_try) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; }; then
8272   ac_cv_lib_dl_dlopen=yes
8273 else
8274   echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277 ac_cv_lib_dl_dlopen=no
8278 fi
8279 rm -f conftest.err conftest.$ac_objext \
8280       conftest$ac_exeext conftest.$ac_ext
8281 LIBS=$ac_check_lib_save_LIBS
8282 fi
8283 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8284 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8285 if test $ac_cv_lib_dl_dlopen = yes; then
8286   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8287 else
8288
8289     lt_cv_dlopen="dyld"
8290     lt_cv_dlopen_libs=
8291     lt_cv_dlopen_self=yes
8292
8293 fi
8294
8295    ;;
8296
8297   *)
8298     echo "$as_me:$LINENO: checking for shl_load" >&5
8299 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8300 if test "${ac_cv_func_shl_load+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8311 #define shl_load innocuous_shl_load
8312
8313 /* System header to define __stub macros and hopefully few prototypes,
8314     which can conflict with char shl_load (); below.
8315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8316     <limits.h> exists even on freestanding compilers.  */
8317
8318 #ifdef __STDC__
8319 # include <limits.h>
8320 #else
8321 # include <assert.h>
8322 #endif
8323
8324 #undef shl_load
8325
8326 /* Override any gcc2 internal prototype to avoid an error.  */
8327 #ifdef __cplusplus
8328 extern "C"
8329 {
8330 #endif
8331 /* We use char because int might match the return type of a gcc2
8332    builtin and then its argument prototype would still apply.  */
8333 char shl_load ();
8334 /* The GNU C library defines this for functions which it implements
8335     to always fail with ENOSYS.  Some functions are actually named
8336     something starting with __ and the normal name is an alias.  */
8337 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8338 choke me
8339 #else
8340 char (*f) () = shl_load;
8341 #endif
8342 #ifdef __cplusplus
8343 }
8344 #endif
8345
8346 int
8347 main ()
8348 {
8349 return f != shl_load;
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag"
8364                          || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   ac_cv_func_shl_load=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 ac_cv_func_shl_load=no
8382 fi
8383 rm -f conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext conftest.$ac_ext
8385 fi
8386 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8387 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8388 if test $ac_cv_func_shl_load = yes; then
8389   lt_cv_dlopen="shl_load"
8390 else
8391   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8392 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   ac_check_lib_save_LIBS=$LIBS
8397 LIBS="-ldld  $LIBS"
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404
8405 /* Override any gcc2 internal prototype to avoid an error.  */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 /* We use char because int might match the return type of a gcc2
8410    builtin and then its argument prototype would still apply.  */
8411 char shl_load ();
8412 int
8413 main ()
8414 {
8415 shl_load ();
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422   (eval $ac_link) 2>conftest.er1
8423   ac_status=$?
8424   grep -v '^ *+' conftest.er1 >conftest.err
8425   rm -f conftest.er1
8426   cat conftest.err >&5
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -z "$ac_c_werror_flag"
8430                          || test ! -s conftest.err'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; } &&
8436          { ac_try='test -s conftest$ac_exeext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_cv_lib_dld_shl_load=yes
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447 ac_cv_lib_dld_shl_load=no
8448 fi
8449 rm -f conftest.err conftest.$ac_objext \
8450       conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8452 fi
8453 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8454 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8455 if test $ac_cv_lib_dld_shl_load = yes; then
8456   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8457 else
8458   echo "$as_me:$LINENO: checking for dlopen" >&5
8459 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8460 if test "${ac_cv_func_dlopen+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8471 #define dlopen innocuous_dlopen
8472
8473 /* System header to define __stub macros and hopefully few prototypes,
8474     which can conflict with char dlopen (); below.
8475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8476     <limits.h> exists even on freestanding compilers.  */
8477
8478 #ifdef __STDC__
8479 # include <limits.h>
8480 #else
8481 # include <assert.h>
8482 #endif
8483
8484 #undef dlopen
8485
8486 /* Override any gcc2 internal prototype to avoid an error.  */
8487 #ifdef __cplusplus
8488 extern "C"
8489 {
8490 #endif
8491 /* We use char because int might match the return type of a gcc2
8492    builtin and then its argument prototype would still apply.  */
8493 char dlopen ();
8494 /* The GNU C library defines this for functions which it implements
8495     to always fail with ENOSYS.  Some functions are actually named
8496     something starting with __ and the normal name is an alias.  */
8497 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8498 choke me
8499 #else
8500 char (*f) () = dlopen;
8501 #endif
8502 #ifdef __cplusplus
8503 }
8504 #endif
8505
8506 int
8507 main ()
8508 {
8509 return f != dlopen;
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"
8524                          || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536   ac_cv_func_dlopen=yes
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_func_dlopen=no
8542 fi
8543 rm -f conftest.err conftest.$ac_objext \
8544       conftest$ac_exeext conftest.$ac_ext
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8548 if test $ac_cv_func_dlopen = yes; then
8549   lt_cv_dlopen="dlopen"
8550 else
8551   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-ldl  $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any gcc2 internal prototype to avoid an error.  */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 /* We use char because int might match the return type of a gcc2
8570    builtin and then its argument prototype would still apply.  */
8571 char dlopen ();
8572 int
8573 main ()
8574 {
8575 dlopen ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582   (eval $ac_link) 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag"
8590                          || test ! -s conftest.err'
8591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592   (eval $ac_try) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; } &&
8596          { ac_try='test -s conftest$ac_exeext'
8597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; }; then
8602   ac_cv_lib_dl_dlopen=yes
8603 else
8604   echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_cv_lib_dl_dlopen=no
8608 fi
8609 rm -f conftest.err conftest.$ac_objext \
8610       conftest$ac_exeext conftest.$ac_ext
8611 LIBS=$ac_check_lib_save_LIBS
8612 fi
8613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8615 if test $ac_cv_lib_dl_dlopen = yes; then
8616   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8617 else
8618   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8619 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623   ac_check_lib_save_LIBS=$LIBS
8624 LIBS="-lsvld  $LIBS"
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 /* Override any gcc2 internal prototype to avoid an error.  */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637    builtin and then its argument prototype would still apply.  */
8638 char dlopen ();
8639 int
8640 main ()
8641 {
8642 dlopen ();
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649   (eval $ac_link) 2>conftest.er1
8650   ac_status=$?
8651   grep -v '^ *+' conftest.er1 >conftest.err
8652   rm -f conftest.er1
8653   cat conftest.err >&5
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -z "$ac_c_werror_flag"
8657                          || test ! -s conftest.err'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; } &&
8663          { ac_try='test -s conftest$ac_exeext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_cv_lib_svld_dlopen=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_lib_svld_dlopen=no
8675 fi
8676 rm -f conftest.err conftest.$ac_objext \
8677       conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8679 fi
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8682 if test $ac_cv_lib_svld_dlopen = yes; then
8683   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8684 else
8685   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8686 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8687 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-ldld  $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698
8699 /* Override any gcc2 internal prototype to avoid an error.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704    builtin and then its argument prototype would still apply.  */
8705 char dld_link ();
8706 int
8707 main ()
8708 {
8709 dld_link ();
8710   ;
8711   return 0;
8712 }
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716   (eval $ac_link) 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -z "$ac_c_werror_flag"
8724                          || test ! -s conftest.err'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; } &&
8730          { ac_try='test -s conftest$ac_exeext'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; }; then
8736   ac_cv_lib_dld_dld_link=yes
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 ac_cv_lib_dld_dld_link=no
8742 fi
8743 rm -f conftest.err conftest.$ac_objext \
8744       conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8748 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8749 if test $ac_cv_lib_dld_dld_link = yes; then
8750   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8751 fi
8752
8753
8754 fi
8755
8756
8757 fi
8758
8759
8760 fi
8761
8762
8763 fi
8764
8765
8766 fi
8767
8768     ;;
8769   esac
8770
8771   if test "x$lt_cv_dlopen" != xno; then
8772     enable_dlopen=yes
8773   else
8774     enable_dlopen=no
8775   fi
8776
8777   case $lt_cv_dlopen in
8778   dlopen)
8779     save_CPPFLAGS="$CPPFLAGS"
8780     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8781
8782     save_LDFLAGS="$LDFLAGS"
8783     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8784
8785     save_LIBS="$LIBS"
8786     LIBS="$lt_cv_dlopen_libs $LIBS"
8787
8788     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8789 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8790 if test "${lt_cv_dlopen_self+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793           if test "$cross_compiling" = yes; then :
8794   lt_cv_dlopen_self=cross
8795 else
8796   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8797   lt_status=$lt_dlunknown
8798   cat > conftest.$ac_ext <<EOF
8799 #line 8799 "configure"
8800 #include "confdefs.h"
8801
8802 #if HAVE_DLFCN_H
8803 #include <dlfcn.h>
8804 #endif
8805
8806 #include <stdio.h>
8807
8808 #ifdef RTLD_GLOBAL
8809 #  define LT_DLGLOBAL           RTLD_GLOBAL
8810 #else
8811 #  ifdef DL_GLOBAL
8812 #    define LT_DLGLOBAL         DL_GLOBAL
8813 #  else
8814 #    define LT_DLGLOBAL         0
8815 #  endif
8816 #endif
8817
8818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8819    find out it does not work in some platform. */
8820 #ifndef LT_DLLAZY_OR_NOW
8821 #  ifdef RTLD_LAZY
8822 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8823 #  else
8824 #    ifdef DL_LAZY
8825 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8826 #    else
8827 #      ifdef RTLD_NOW
8828 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8829 #      else
8830 #        ifdef DL_NOW
8831 #          define LT_DLLAZY_OR_NOW      DL_NOW
8832 #        else
8833 #          define LT_DLLAZY_OR_NOW      0
8834 #        endif
8835 #      endif
8836 #    endif
8837 #  endif
8838 #endif
8839
8840 #ifdef __cplusplus
8841 extern "C" void exit (int);
8842 #endif
8843
8844 void fnord() { int i=42;}
8845 int main ()
8846 {
8847   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8848   int status = $lt_dlunknown;
8849
8850   if (self)
8851     {
8852       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8853       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8854       /* dlclose (self); */
8855     }
8856
8857     exit (status);
8858 }
8859 EOF
8860   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861   (eval $ac_link) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8865     (./conftest; exit; ) 2>/dev/null
8866     lt_status=$?
8867     case x$lt_status in
8868       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8869       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8870       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8871     esac
8872   else :
8873     # compilation failed
8874     lt_cv_dlopen_self=no
8875   fi
8876 fi
8877 rm -fr conftest*
8878
8879
8880 fi
8881 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8882 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8883
8884     if test "x$lt_cv_dlopen_self" = xyes; then
8885       LDFLAGS="$LDFLAGS $link_static_flag"
8886       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8887 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8888 if test "${lt_cv_dlopen_self_static+set}" = set; then
8889   echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891           if test "$cross_compiling" = yes; then :
8892   lt_cv_dlopen_self_static=cross
8893 else
8894   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8895   lt_status=$lt_dlunknown
8896   cat > conftest.$ac_ext <<EOF
8897 #line 8897 "configure"
8898 #include "confdefs.h"
8899
8900 #if HAVE_DLFCN_H
8901 #include <dlfcn.h>
8902 #endif
8903
8904 #include <stdio.h>
8905
8906 #ifdef RTLD_GLOBAL
8907 #  define LT_DLGLOBAL           RTLD_GLOBAL
8908 #else
8909 #  ifdef DL_GLOBAL
8910 #    define LT_DLGLOBAL         DL_GLOBAL
8911 #  else
8912 #    define LT_DLGLOBAL         0
8913 #  endif
8914 #endif
8915
8916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8917    find out it does not work in some platform. */
8918 #ifndef LT_DLLAZY_OR_NOW
8919 #  ifdef RTLD_LAZY
8920 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8921 #  else
8922 #    ifdef DL_LAZY
8923 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8924 #    else
8925 #      ifdef RTLD_NOW
8926 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8927 #      else
8928 #        ifdef DL_NOW
8929 #          define LT_DLLAZY_OR_NOW      DL_NOW
8930 #        else
8931 #          define LT_DLLAZY_OR_NOW      0
8932 #        endif
8933 #      endif
8934 #    endif
8935 #  endif
8936 #endif
8937
8938 #ifdef __cplusplus
8939 extern "C" void exit (int);
8940 #endif
8941
8942 void fnord() { int i=42;}
8943 int main ()
8944 {
8945   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8946   int status = $lt_dlunknown;
8947
8948   if (self)
8949     {
8950       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8951       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8952       /* dlclose (self); */
8953     }
8954
8955     exit (status);
8956 }
8957 EOF
8958   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8959   (eval $ac_link) 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8963     (./conftest; exit; ) 2>/dev/null
8964     lt_status=$?
8965     case x$lt_status in
8966       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8967       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8968       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8969     esac
8970   else :
8971     # compilation failed
8972     lt_cv_dlopen_self_static=no
8973   fi
8974 fi
8975 rm -fr conftest*
8976
8977
8978 fi
8979 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8980 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8981     fi
8982
8983     CPPFLAGS="$save_CPPFLAGS"
8984     LDFLAGS="$save_LDFLAGS"
8985     LIBS="$save_LIBS"
8986     ;;
8987   esac
8988
8989   case $lt_cv_dlopen_self in
8990   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8991   *) enable_dlopen_self=unknown ;;
8992   esac
8993
8994   case $lt_cv_dlopen_self_static in
8995   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8996   *) enable_dlopen_self_static=unknown ;;
8997   esac
8998 fi
8999
9000
9001 # Report which librarie types wil actually be built
9002 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9003 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9004 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9005 echo "${ECHO_T}$can_build_shared" >&6
9006
9007 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9008 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9009 test "$can_build_shared" = "no" && enable_shared=no
9010
9011 # On AIX, shared libraries and static libraries use the same namespace, and
9012 # are all built from PIC.
9013 case "$host_os" in
9014 aix3*)
9015   test "$enable_shared" = yes && enable_static=no
9016   if test -n "$RANLIB"; then
9017     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9018     postinstall_cmds='$RANLIB $lib'
9019   fi
9020   ;;
9021
9022 aix4* | aix5*)
9023   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9024     test "$enable_shared" = yes && enable_static=no
9025   fi
9026   ;;
9027   darwin* | rhapsody*)
9028   if test "$GCC" = yes; then
9029     archive_cmds_need_lc=no
9030     case "$host_os" in
9031     rhapsody* | darwin1.[012])
9032       allow_undefined_flag='-undefined suppress'
9033       ;;
9034     *) # Darwin 1.3 on
9035       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9036         allow_undefined_flag='-flat_namespace -undefined suppress'
9037       else
9038         case ${MACOSX_DEPLOYMENT_TARGET} in
9039           10.[012])
9040             allow_undefined_flag='-flat_namespace -undefined suppress'
9041             ;;
9042           10.*)
9043             allow_undefined_flag='-undefined dynamic_lookup'
9044             ;;
9045         esac
9046       fi
9047       ;;
9048     esac
9049     output_verbose_link_cmd='echo'
9050     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9051     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9052     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9053     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}'
9054     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}'
9055     hardcode_direct=no
9056     hardcode_automatic=yes
9057     hardcode_shlibpath_var=unsupported
9058     whole_archive_flag_spec='-all_load $convenience'
9059     link_all_deplibs=yes
9060   else
9061     ld_shlibs=no
9062   fi
9063     ;;
9064 esac
9065 echo "$as_me:$LINENO: result: $enable_shared" >&5
9066 echo "${ECHO_T}$enable_shared" >&6
9067
9068 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9069 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9070 # Make sure either enable_shared or enable_static is yes.
9071 test "$enable_shared" = yes || enable_static=yes
9072 echo "$as_me:$LINENO: result: $enable_static" >&5
9073 echo "${ECHO_T}$enable_static" >&6
9074
9075 # The else clause should only fire when bootstrapping the
9076 # libtool distribution, otherwise you forgot to ship ltmain.sh
9077 # with your package, and you will get complaints that there are
9078 # no rules to generate ltmain.sh.
9079 if test -f "$ltmain"; then
9080   # See if we are running on zsh, and set the options which allow our commands through
9081   # without removal of \ escapes.
9082   if test -n "${ZSH_VERSION+set}" ; then
9083     setopt NO_GLOB_SUBST
9084   fi
9085   # Now quote all the things that may contain metacharacters while being
9086   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9087   # variables and quote the copies for generation of the libtool script.
9088   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9089     SED SHELL STRIP \
9090     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9091     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9092     deplibs_check_method reload_flag reload_cmds need_locks \
9093     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9094     lt_cv_sys_global_symbol_to_c_name_address \
9095     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9096     old_postinstall_cmds old_postuninstall_cmds \
9097     compiler \
9098     CC \
9099     LD \
9100     lt_prog_compiler_wl \
9101     lt_prog_compiler_pic \
9102     lt_prog_compiler_static \
9103     lt_prog_compiler_no_builtin_flag \
9104     export_dynamic_flag_spec \
9105     thread_safe_flag_spec \
9106     whole_archive_flag_spec \
9107     enable_shared_with_static_runtimes \
9108     old_archive_cmds \
9109     old_archive_from_new_cmds \
9110     predep_objects \
9111     postdep_objects \
9112     predeps \
9113     postdeps \
9114     compiler_lib_search_path \
9115     archive_cmds \
9116     archive_expsym_cmds \
9117     postinstall_cmds \
9118     postuninstall_cmds \
9119     old_archive_from_expsyms_cmds \
9120     allow_undefined_flag \
9121     no_undefined_flag \
9122     export_symbols_cmds \
9123     hardcode_libdir_flag_spec \
9124     hardcode_libdir_flag_spec_ld \
9125     hardcode_libdir_separator \
9126     hardcode_automatic \
9127     module_cmds \
9128     module_expsym_cmds \
9129     lt_cv_prog_compiler_c_o \
9130     exclude_expsyms \
9131     include_expsyms; do
9132
9133     case $var in
9134     old_archive_cmds | \
9135     old_archive_from_new_cmds | \
9136     archive_cmds | \
9137     archive_expsym_cmds | \
9138     module_cmds | \
9139     module_expsym_cmds | \
9140     old_archive_from_expsyms_cmds | \
9141     export_symbols_cmds | \
9142     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9143     postinstall_cmds | postuninstall_cmds | \
9144     old_postinstall_cmds | old_postuninstall_cmds | \
9145     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9146       # Double-quote double-evaled strings.
9147       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9148       ;;
9149     *)
9150       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9151       ;;
9152     esac
9153   done
9154
9155   case $lt_echo in
9156   *'\$0 --fallback-echo"')
9157     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9158     ;;
9159   esac
9160
9161 cfgfile="${ofile}T"
9162   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9163   $rm -f "$cfgfile"
9164   { echo "$as_me:$LINENO: creating $ofile" >&5
9165 echo "$as_me: creating $ofile" >&6;}
9166
9167   cat <<__EOF__ >> "$cfgfile"
9168 #! $SHELL
9169
9170 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9171 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9172 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9173 #
9174 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9175 # Free Software Foundation, Inc.
9176 #
9177 # This file is part of GNU Libtool:
9178 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9179 #
9180 # This program is free software; you can redistribute it and/or modify
9181 # it under the terms of the GNU General Public License as published by
9182 # the Free Software Foundation; either version 2 of the License, or
9183 # (at your option) any later version.
9184 #
9185 # This program is distributed in the hope that it will be useful, but
9186 # WITHOUT ANY WARRANTY; without even the implied warranty of
9187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9188 # General Public License for more details.
9189 #
9190 # You should have received a copy of the GNU General Public License
9191 # along with this program; if not, write to the Free Software
9192 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9193 #
9194 # As a special exception to the GNU General Public License, if you
9195 # distribute this file as part of a program that contains a
9196 # configuration script generated by Autoconf, you may include it under
9197 # the same distribution terms that you use for the rest of that program.
9198
9199 # A sed program that does not truncate output.
9200 SED=$lt_SED
9201
9202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9203 Xsed="$SED -e s/^X//"
9204
9205 # The HP-UX ksh and POSIX shell print the target directory to stdout
9206 # if CDPATH is set.
9207 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9208
9209 # The names of the tagged configurations supported by this script.
9210 available_tags=
9211
9212 # ### BEGIN LIBTOOL CONFIG
9213
9214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9215
9216 # Shell to use when invoking shell scripts.
9217 SHELL=$lt_SHELL
9218
9219 # Whether or not to build shared libraries.
9220 build_libtool_libs=$enable_shared
9221
9222 # Whether or not to build static libraries.
9223 build_old_libs=$enable_static
9224
9225 # Whether or not to add -lc for building shared libraries.
9226 build_libtool_need_lc=$archive_cmds_need_lc
9227
9228 # Whether or not to disallow shared libs when runtime libs are static
9229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9230
9231 # Whether or not to optimize for fast installation.
9232 fast_install=$enable_fast_install
9233
9234 # The host system.
9235 host_alias=$host_alias
9236 host=$host
9237
9238 # An echo program that does not interpret backslashes.
9239 echo=$lt_echo
9240
9241 # The archiver.
9242 AR=$lt_AR
9243 AR_FLAGS=$lt_AR_FLAGS
9244
9245 # A C compiler.
9246 LTCC=$lt_LTCC
9247
9248 # A language-specific compiler.
9249 CC=$lt_compiler
9250
9251 # Is the compiler the GNU C compiler?
9252 with_gcc=$GCC
9253
9254 # An ERE matcher.
9255 EGREP=$lt_EGREP
9256
9257 # The linker used to build libraries.
9258 LD=$lt_LD
9259
9260 # Whether we need hard or soft links.
9261 LN_S=$lt_LN_S
9262
9263 # A BSD-compatible nm program.
9264 NM=$lt_NM
9265
9266 # A symbol stripping program
9267 STRIP=$lt_STRIP
9268
9269 # Used to examine libraries when file_magic_cmd begins "file"
9270 MAGIC_CMD=$MAGIC_CMD
9271
9272 # Used on cygwin: DLL creation program.
9273 DLLTOOL="$DLLTOOL"
9274
9275 # Used on cygwin: object dumper.
9276 OBJDUMP="$OBJDUMP"
9277
9278 # Used on cygwin: assembler.
9279 AS="$AS"
9280
9281 # The name of the directory that contains temporary libtool files.
9282 objdir=$objdir
9283
9284 # How to create reloadable object files.
9285 reload_flag=$lt_reload_flag
9286 reload_cmds=$lt_reload_cmds
9287
9288 # How to pass a linker flag through the compiler.
9289 wl=$lt_lt_prog_compiler_wl
9290
9291 # Object file suffix (normally "o").
9292 objext="$ac_objext"
9293
9294 # Old archive suffix (normally "a").
9295 libext="$libext"
9296
9297 # Shared library suffix (normally ".so").
9298 shrext_cmds='$shrext_cmds'
9299
9300 # Executable file suffix (normally "").
9301 exeext="$exeext"
9302
9303 # Additional compiler flags for building library objects.
9304 pic_flag=$lt_lt_prog_compiler_pic
9305 pic_mode=$pic_mode
9306
9307 # What is the maximum length of a command?
9308 max_cmd_len=$lt_cv_sys_max_cmd_len
9309
9310 # Does compiler simultaneously support -c and -o options?
9311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9312
9313 # Must we lock files when doing compilation ?
9314 need_locks=$lt_need_locks
9315
9316 # Do we need the lib prefix for modules?
9317 need_lib_prefix=$need_lib_prefix
9318
9319 # Do we need a version for libraries?
9320 need_version=$need_version
9321
9322 # Whether dlopen is supported.
9323 dlopen_support=$enable_dlopen
9324
9325 # Whether dlopen of programs is supported.
9326 dlopen_self=$enable_dlopen_self
9327
9328 # Whether dlopen of statically linked programs is supported.
9329 dlopen_self_static=$enable_dlopen_self_static
9330
9331 # Compiler flag to prevent dynamic linking.
9332 link_static_flag=$lt_lt_prog_compiler_static
9333
9334 # Compiler flag to turn off builtin functions.
9335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9336
9337 # Compiler flag to allow reflexive dlopens.
9338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9339
9340 # Compiler flag to generate shared objects directly from archives.
9341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9342
9343 # Compiler flag to generate thread-safe objects.
9344 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9345
9346 # Library versioning type.
9347 version_type=$version_type
9348
9349 # Format of library name prefix.
9350 libname_spec=$lt_libname_spec
9351
9352 # List of archive names.  First name is the real one, the rest are links.
9353 # The last name is the one that the linker finds with -lNAME.
9354 library_names_spec=$lt_library_names_spec
9355
9356 # The coded name of the library, if different from the real name.
9357 soname_spec=$lt_soname_spec
9358
9359 # Commands used to build and install an old-style archive.
9360 RANLIB=$lt_RANLIB
9361 old_archive_cmds=$lt_old_archive_cmds
9362 old_postinstall_cmds=$lt_old_postinstall_cmds
9363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9364
9365 # Create an old-style archive from a shared archive.
9366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9367
9368 # Create a temporary old-style archive to link instead of a shared archive.
9369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9370
9371 # Commands used to build and install a shared archive.
9372 archive_cmds=$lt_archive_cmds
9373 archive_expsym_cmds=$lt_archive_expsym_cmds
9374 postinstall_cmds=$lt_postinstall_cmds
9375 postuninstall_cmds=$lt_postuninstall_cmds
9376
9377 # Commands used to build a loadable module (assumed same as above if empty)
9378 module_cmds=$lt_module_cmds
9379 module_expsym_cmds=$lt_module_expsym_cmds
9380
9381 # Commands to strip libraries.
9382 old_striplib=$lt_old_striplib
9383 striplib=$lt_striplib
9384
9385 # Dependencies to place before the objects being linked to create a
9386 # shared library.
9387 predep_objects=$lt_predep_objects
9388
9389 # Dependencies to place after the objects being linked to create a
9390 # shared library.
9391 postdep_objects=$lt_postdep_objects
9392
9393 # Dependencies to place before the objects being linked to create a
9394 # shared library.
9395 predeps=$lt_predeps
9396
9397 # Dependencies to place after the objects being linked to create a
9398 # shared library.
9399 postdeps=$lt_postdeps
9400
9401 # The library search path used internally by the compiler when linking
9402 # a shared library.
9403 compiler_lib_search_path=$lt_compiler_lib_search_path
9404
9405 # Method to check whether dependent libraries are shared objects.
9406 deplibs_check_method=$lt_deplibs_check_method
9407
9408 # Command to use when deplibs_check_method == file_magic.
9409 file_magic_cmd=$lt_file_magic_cmd
9410
9411 # Flag that allows shared libraries with undefined symbols to be built.
9412 allow_undefined_flag=$lt_allow_undefined_flag
9413
9414 # Flag that forces no undefined symbols.
9415 no_undefined_flag=$lt_no_undefined_flag
9416
9417 # Commands used to finish a libtool library installation in a directory.
9418 finish_cmds=$lt_finish_cmds
9419
9420 # Same as above, but a single script fragment to be evaled but not shown.
9421 finish_eval=$lt_finish_eval
9422
9423 # Take the output of nm and produce a listing of raw symbols and C names.
9424 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9425
9426 # Transform the output of nm in a proper C declaration
9427 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9428
9429 # Transform the output of nm in a C name address pair
9430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9431
9432 # This is the shared library runtime path variable.
9433 runpath_var=$runpath_var
9434
9435 # This is the shared library path variable.
9436 shlibpath_var=$shlibpath_var
9437
9438 # Is shlibpath searched before the hard-coded library search path?
9439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9440
9441 # How to hardcode a shared library path into an executable.
9442 hardcode_action=$hardcode_action
9443
9444 # Whether we should hardcode library paths into libraries.
9445 hardcode_into_libs=$hardcode_into_libs
9446
9447 # Flag to hardcode \$libdir into a binary during linking.
9448 # This must work even if \$libdir does not exist.
9449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9450
9451 # If ld is used when linking, flag to hardcode \$libdir into
9452 # a binary during linking. This must work even if \$libdir does
9453 # not exist.
9454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9455
9456 # Whether we need a single -rpath flag with a separated argument.
9457 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9458
9459 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9460 # resulting binary.
9461 hardcode_direct=$hardcode_direct
9462
9463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9464 # resulting binary.
9465 hardcode_minus_L=$hardcode_minus_L
9466
9467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9468 # the resulting binary.
9469 hardcode_shlibpath_var=$hardcode_shlibpath_var
9470
9471 # Set to yes if building a shared library automatically hardcodes DIR into the library
9472 # and all subsequent libraries and executables linked against it.
9473 hardcode_automatic=$hardcode_automatic
9474
9475 # Variables whose values should be saved in libtool wrapper scripts and
9476 # restored at relink time.
9477 variables_saved_for_relink="$variables_saved_for_relink"
9478
9479 # Whether libtool must link a program against all its dependency libraries.
9480 link_all_deplibs=$link_all_deplibs
9481
9482 # Compile-time system search path for libraries
9483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9484
9485 # Run-time system search path for libraries
9486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9487
9488 # Fix the shell variable \$srcfile for the compiler.
9489 fix_srcfile_path="$fix_srcfile_path"
9490
9491 # Set to yes if exported symbols are required.
9492 always_export_symbols=$always_export_symbols
9493
9494 # The commands to list exported symbols.
9495 export_symbols_cmds=$lt_export_symbols_cmds
9496
9497 # The commands to extract the exported symbol list from a shared archive.
9498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9499
9500 # Symbols that should not be listed in the preloaded symbols.
9501 exclude_expsyms=$lt_exclude_expsyms
9502
9503 # Symbols that must always be exported.
9504 include_expsyms=$lt_include_expsyms
9505
9506 # ### END LIBTOOL CONFIG
9507
9508 __EOF__
9509
9510
9511   case $host_os in
9512   aix3*)
9513     cat <<\EOF >> "$cfgfile"
9514
9515 # AIX sometimes has problems with the GCC collect2 program.  For some
9516 # reason, if we set the COLLECT_NAMES environment variable, the problems
9517 # vanish in a puff of smoke.
9518 if test "X${COLLECT_NAMES+set}" != Xset; then
9519   COLLECT_NAMES=
9520   export COLLECT_NAMES
9521 fi
9522 EOF
9523     ;;
9524   esac
9525
9526   # We use sed instead of cat because bash on DJGPP gets confused if
9527   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9528   # text mode, it properly converts lines to CR/LF.  This bash problem
9529   # is reportedly fixed, but why not run on old versions too?
9530   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9531
9532   mv -f "$cfgfile" "$ofile" || \
9533     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9534   chmod +x "$ofile"
9535
9536 else
9537   # If there is no Makefile yet, we rely on a make rule to execute
9538   # `config.status --recheck' to rerun these tests and create the
9539   # libtool script then.
9540   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9541   if test -f "$ltmain_in"; then
9542     test -f Makefile && make "$ltmain"
9543   fi
9544 fi
9545
9546
9547 ac_ext=c
9548 ac_cpp='$CPP $CPPFLAGS'
9549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9552
9553 CC="$lt_save_CC"
9554
9555
9556 # Check whether --with-tags or --without-tags was given.
9557 if test "${with_tags+set}" = set; then
9558   withval="$with_tags"
9559   tagnames="$withval"
9560 fi;
9561
9562 if test -f "$ltmain" && test -n "$tagnames"; then
9563   if test ! -f "${ofile}"; then
9564     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9565 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9566   fi
9567
9568   if test -z "$LTCC"; then
9569     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9570     if test -z "$LTCC"; then
9571       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9572 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9573     else
9574       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9575 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9576     fi
9577   fi
9578
9579   # Extract list of available tagged configurations in $ofile.
9580   # Note that this assumes the entire list is on one line.
9581   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9582
9583   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9584   for tagname in $tagnames; do
9585     IFS="$lt_save_ifs"
9586     # Check whether tagname contains only valid characters
9587     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9588     "") ;;
9589     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9590 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9591    { (exit 1); exit 1; }; }
9592         ;;
9593     esac
9594
9595     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9596     then
9597       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9598 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9599    { (exit 1); exit 1; }; }
9600     fi
9601
9602     # Update the list of available tags.
9603     if test -n "$tagname"; then
9604       echo appending configuration tag \"$tagname\" to $ofile
9605
9606       case $tagname in
9607       CXX)
9608         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9609           ac_ext=cc
9610 ac_cpp='$CXXCPP $CPPFLAGS'
9611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9614
9615
9616
9617
9618 archive_cmds_need_lc_CXX=no
9619 allow_undefined_flag_CXX=
9620 always_export_symbols_CXX=no
9621 archive_expsym_cmds_CXX=
9622 export_dynamic_flag_spec_CXX=
9623 hardcode_direct_CXX=no
9624 hardcode_libdir_flag_spec_CXX=
9625 hardcode_libdir_flag_spec_ld_CXX=
9626 hardcode_libdir_separator_CXX=
9627 hardcode_minus_L_CXX=no
9628 hardcode_automatic_CXX=no
9629 module_cmds_CXX=
9630 module_expsym_cmds_CXX=
9631 link_all_deplibs_CXX=unknown
9632 old_archive_cmds_CXX=$old_archive_cmds
9633 no_undefined_flag_CXX=
9634 whole_archive_flag_spec_CXX=
9635 enable_shared_with_static_runtimes_CXX=no
9636
9637 # Dependencies to place before and after the object being linked:
9638 predep_objects_CXX=
9639 postdep_objects_CXX=
9640 predeps_CXX=
9641 postdeps_CXX=
9642 compiler_lib_search_path_CXX=
9643
9644 # Source file extension for C++ test sources.
9645 ac_ext=cc
9646
9647 # Object file extension for compiled C++ test sources.
9648 objext=o
9649 objext_CXX=$objext
9650
9651 # Code to be used in simple compile tests
9652 lt_simple_compile_test_code="int some_variable = 0;\n"
9653
9654 # Code to be used in simple link tests
9655 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9656
9657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9658
9659 # If no C compiler was specified, use CC.
9660 LTCC=${LTCC-"$CC"}
9661
9662 # Allow CC to be a program name with arguments.
9663 compiler=$CC
9664
9665
9666 # Allow CC to be a program name with arguments.
9667 lt_save_CC=$CC
9668 lt_save_LD=$LD
9669 lt_save_GCC=$GCC
9670 GCC=$GXX
9671 lt_save_with_gnu_ld=$with_gnu_ld
9672 lt_save_path_LD=$lt_cv_path_LD
9673 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9674   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9675 else
9676   unset lt_cv_prog_gnu_ld
9677 fi
9678 if test -n "${lt_cv_path_LDCXX+set}"; then
9679   lt_cv_path_LD=$lt_cv_path_LDCXX
9680 else
9681   unset lt_cv_path_LD
9682 fi
9683 test -z "${LDCXX+set}" || LD=$LDCXX
9684 CC=${CXX-"c++"}
9685 compiler=$CC
9686 compiler_CXX=$CC
9687 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9688
9689 # We don't want -fno-exception wen compiling C++ code, so set the
9690 # no_builtin_flag separately
9691 if test "$GXX" = yes; then
9692   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9693 else
9694   lt_prog_compiler_no_builtin_flag_CXX=
9695 fi
9696
9697 if test "$GXX" = yes; then
9698   # Set up default GNU C++ configuration
9699
9700
9701 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9702 if test "${with_gnu_ld+set}" = set; then
9703   withval="$with_gnu_ld"
9704   test "$withval" = no || with_gnu_ld=yes
9705 else
9706   with_gnu_ld=no
9707 fi;
9708 ac_prog=ld
9709 if test "$GCC" = yes; then
9710   # Check if gcc -print-prog-name=ld gives a path.
9711   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9712 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9713   case $host in
9714   *-*-mingw*)
9715     # gcc leaves a trailing carriage return which upsets mingw
9716     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9717   *)
9718     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9719   esac
9720   case $ac_prog in
9721     # Accept absolute paths.
9722     [\\/]* | ?:[\\/]*)
9723       re_direlt='/[^/][^/]*/\.\./'
9724       # Canonicalize the pathname of ld
9725       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9726       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9727         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9728       done
9729       test -z "$LD" && LD="$ac_prog"
9730       ;;
9731   "")
9732     # If it fails, then pretend we aren't using GCC.
9733     ac_prog=ld
9734     ;;
9735   *)
9736     # If it is relative, then search for the first ld in PATH.
9737     with_gnu_ld=unknown
9738     ;;
9739   esac
9740 elif test "$with_gnu_ld" = yes; then
9741   echo "$as_me:$LINENO: checking for GNU ld" >&5
9742 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9743 else
9744   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9745 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9746 fi
9747 if test "${lt_cv_path_LD+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   if test -z "$LD"; then
9751   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9752   for ac_dir in $PATH; do
9753     IFS="$lt_save_ifs"
9754     test -z "$ac_dir" && ac_dir=.
9755     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9756       lt_cv_path_LD="$ac_dir/$ac_prog"
9757       # Check to see if the program is GNU ld.  I'd rather use --version,
9758       # but apparently some GNU ld's only accept -v.
9759       # Break only if it was the GNU/non-GNU ld that we prefer.
9760       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9761       *GNU* | *'with BFD'*)
9762         test "$with_gnu_ld" != no && break
9763         ;;
9764       *)
9765         test "$with_gnu_ld" != yes && break
9766         ;;
9767       esac
9768     fi
9769   done
9770   IFS="$lt_save_ifs"
9771 else
9772   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9773 fi
9774 fi
9775
9776 LD="$lt_cv_path_LD"
9777 if test -n "$LD"; then
9778   echo "$as_me:$LINENO: result: $LD" >&5
9779 echo "${ECHO_T}$LD" >&6
9780 else
9781   echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6
9783 fi
9784 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9785 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9786    { (exit 1); exit 1; }; }
9787 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9788 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9790   echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9793 case `$LD -v 2>&1 </dev/null` in
9794 *GNU* | *'with BFD'*)
9795   lt_cv_prog_gnu_ld=yes
9796   ;;
9797 *)
9798   lt_cv_prog_gnu_ld=no
9799   ;;
9800 esac
9801 fi
9802 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9803 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9804 with_gnu_ld=$lt_cv_prog_gnu_ld
9805
9806
9807
9808   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9809   # archiving commands below assume that GNU ld is being used.
9810   if test "$with_gnu_ld" = yes; then
9811     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812     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'
9813
9814     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9815     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9816
9817     # If archive_cmds runs LD, not CC, wlarc should be empty
9818     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9819     #     investigate it a little bit more. (MM)
9820     wlarc='${wl}'
9821
9822     # ancient GNU ld didn't support --whole-archive et. al.
9823     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9824         grep 'no-whole-archive' > /dev/null; then
9825       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9826     else
9827       whole_archive_flag_spec_CXX=
9828     fi
9829   else
9830     with_gnu_ld=no
9831     wlarc=
9832
9833     # A generic and very simple default shared library creation
9834     # command for GNU C++ for the case where it uses the native
9835     # linker, instead of GNU ld.  If possible, this setting should
9836     # overridden to take advantage of the native linker features on
9837     # the platform it is being used on.
9838     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9839   fi
9840
9841   # Commands to make compiler produce verbose output that lists
9842   # what "hidden" libraries, object files and flags are used when
9843   # linking a shared library.
9844   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9845
9846 else
9847   GXX=no
9848   with_gnu_ld=no
9849   wlarc=
9850 fi
9851
9852 # PORTME: fill in a description of your system's C++ link characteristics
9853 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9855 ld_shlibs_CXX=yes
9856 case $host_os in
9857   aix3*)
9858     # FIXME: insert proper C++ library support
9859     ld_shlibs_CXX=no
9860     ;;
9861   aix4* | aix5*)
9862     if test "$host_cpu" = ia64; then
9863       # On IA64, the linker does run time linking by default, so we don't
9864       # have to do anything special.
9865       aix_use_runtimelinking=no
9866       exp_sym_flag='-Bexport'
9867       no_entry_flag=""
9868     else
9869       aix_use_runtimelinking=no
9870
9871       # Test if we are trying to use run time linking or normal
9872       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9873       # need to do runtime linking.
9874       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9875         for ld_flag in $LDFLAGS; do
9876           case $ld_flag in
9877           *-brtl*)
9878             aix_use_runtimelinking=yes
9879             break
9880             ;;
9881           esac
9882         done
9883       esac
9884
9885       exp_sym_flag='-bexport'
9886       no_entry_flag='-bnoentry'
9887     fi
9888
9889     # When large executables or shared objects are built, AIX ld can
9890     # have problems creating the table of contents.  If linking a library
9891     # or program results in "error TOC overflow" add -mminimal-toc to
9892     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9893     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9894
9895     archive_cmds_CXX=''
9896     hardcode_direct_CXX=yes
9897     hardcode_libdir_separator_CXX=':'
9898     link_all_deplibs_CXX=yes
9899
9900     if test "$GXX" = yes; then
9901       case $host_os in aix4.012|aix4.012.*)
9902       # We only want to do this on AIX 4.2 and lower, the check
9903       # below for broken collect2 doesn't work under 4.3+
9904         collect2name=`${CC} -print-prog-name=collect2`
9905         if test -f "$collect2name" && \
9906            strings "$collect2name" | grep resolve_lib_name >/dev/null
9907         then
9908           # We have reworked collect2
9909           hardcode_direct_CXX=yes
9910         else
9911           # We have old collect2
9912           hardcode_direct_CXX=unsupported
9913           # It fails to find uninstalled libraries when the uninstalled
9914           # path is not listed in the libpath.  Setting hardcode_minus_L
9915           # to unsupported forces relinking
9916           hardcode_minus_L_CXX=yes
9917           hardcode_libdir_flag_spec_CXX='-L$libdir'
9918           hardcode_libdir_separator_CXX=
9919         fi
9920       esac
9921       shared_flag='-shared'
9922     else
9923       # not using gcc
9924       if test "$host_cpu" = ia64; then
9925         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9926         # chokes on -Wl,-G. The following line is correct:
9927         shared_flag='-G'
9928       else
9929         if test "$aix_use_runtimelinking" = yes; then
9930           shared_flag='${wl}-G'
9931         else
9932           shared_flag='${wl}-bM:SRE'
9933         fi
9934       fi
9935     fi
9936
9937     # It seems that -bexpall does not export symbols beginning with
9938     # underscore (_), so it is better to generate a list of symbols to export.
9939     always_export_symbols_CXX=yes
9940     if test "$aix_use_runtimelinking" = yes; then
9941       # Warning - without using the other runtime loading flags (-brtl),
9942       # -berok will link without error, but may produce a broken library.
9943       allow_undefined_flag_CXX='-berok'
9944       # Determine the default libpath from the value encoded in an empty executable.
9945       cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h.  */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h.  */
9951
9952 int
9953 main ()
9954 {
9955
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962   (eval $ac_link) 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_cxx_werror_flag"
9970                          || test ! -s conftest.err'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; } &&
9976          { ac_try='test -s conftest$ac_exeext'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982
9983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9984 }'`
9985 # Check for a 64-bit object if we didn't find anything.
9986 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; }
9987 }'`; fi
9988 else
9989   echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 fi
9993 rm -f conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9996
9997       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9998
9999       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10000      else
10001       if test "$host_cpu" = ia64; then
10002         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10003         allow_undefined_flag_CXX="-z nodefs"
10004         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10005       else
10006         # Determine the default libpath from the value encoded in an empty executable.
10007         cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013
10014 int
10015 main ()
10016 {
10017
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024   (eval $ac_link) 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_cxx_werror_flag"
10032                          || test ! -s conftest.err'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044
10045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10046 }'`
10047 # Check for a 64-bit object if we didn't find anything.
10048 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; }
10049 }'`; fi
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 fi
10055 rm -f conftest.err conftest.$ac_objext \
10056       conftest$ac_exeext conftest.$ac_ext
10057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10058
10059         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10060         # Warning - without using the other run time loading flags,
10061         # -berok will link without error, but may produce a broken library.
10062         no_undefined_flag_CXX=' ${wl}-bernotok'
10063         allow_undefined_flag_CXX=' ${wl}-berok'
10064         # -bexpall does not export symbols beginning with underscore (_)
10065         always_export_symbols_CXX=yes
10066         # Exported symbols can be pulled into shared objects from archives
10067         whole_archive_flag_spec_CXX=' '
10068         archive_cmds_need_lc_CXX=yes
10069         # This is similar to how AIX traditionally builds it's shared libraries.
10070         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10071       fi
10072     fi
10073     ;;
10074   chorus*)
10075     case $cc_basename in
10076       *)
10077         # FIXME: insert proper C++ library support
10078         ld_shlibs_CXX=no
10079         ;;
10080     esac
10081     ;;
10082
10083   cygwin* | mingw* | pw32*)
10084     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10085     # as there is no search path for DLLs.
10086     hardcode_libdir_flag_spec_CXX='-L$libdir'
10087     allow_undefined_flag_CXX=unsupported
10088     always_export_symbols_CXX=no
10089     enable_shared_with_static_runtimes_CXX=yes
10090
10091     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10092       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10093       # If the export-symbols file already is a .def file (1st line
10094       # is EXPORTS), use it as is; otherwise, prepend...
10095       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10096         cp $export_symbols $output_objdir/$soname.def;
10097       else
10098         echo EXPORTS > $output_objdir/$soname.def;
10099         cat $export_symbols >> $output_objdir/$soname.def;
10100       fi~
10101       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10102     else
10103       ld_shlibs_CXX=no
10104     fi
10105   ;;
10106
10107   darwin* | rhapsody*)
10108   if test "$GXX" = yes; then
10109     archive_cmds_need_lc_CXX=no
10110     case "$host_os" in
10111     rhapsody* | darwin1.[012])
10112       allow_undefined_flag_CXX='-undefined suppress'
10113       ;;
10114     *) # Darwin 1.3 on
10115       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10116         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10117       else
10118         case ${MACOSX_DEPLOYMENT_TARGET} in
10119           10.[012])
10120             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10121             ;;
10122           10.*)
10123             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10124             ;;
10125         esac
10126       fi
10127       ;;
10128     esac
10129     lt_int_apple_cc_single_mod=no
10130     output_verbose_link_cmd='echo'
10131     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10132       lt_int_apple_cc_single_mod=yes
10133     fi
10134     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10135       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10136     else
10137       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10138     fi
10139     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10140
10141     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10142     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10143       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}'
10144     else
10145       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10146     fi
10147     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}'
10148     hardcode_direct_CXX=no
10149     hardcode_automatic_CXX=yes
10150     hardcode_shlibpath_var_CXX=unsupported
10151     whole_archive_flag_spec_CXX='-all_load $convenience'
10152     link_all_deplibs_CXX=yes
10153   else
10154     ld_shlibs_CXX=no
10155   fi
10156     ;;
10157
10158   dgux*)
10159     case $cc_basename in
10160       ec++)
10161         # FIXME: insert proper C++ library support
10162         ld_shlibs_CXX=no
10163         ;;
10164       ghcx)
10165         # Green Hills C++ Compiler
10166         # FIXME: insert proper C++ library support
10167         ld_shlibs_CXX=no
10168         ;;
10169       *)
10170         # FIXME: insert proper C++ library support
10171         ld_shlibs_CXX=no
10172         ;;
10173     esac
10174     ;;
10175   freebsd12*)
10176     # C++ shared libraries reported to be fairly broken before switch to ELF
10177     ld_shlibs_CXX=no
10178     ;;
10179   freebsd-elf*)
10180     archive_cmds_need_lc_CXX=no
10181     ;;
10182   freebsd* | kfreebsd*-gnu)
10183     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10184     # conventions
10185     ld_shlibs_CXX=yes
10186     ;;
10187   gnu*)
10188     ;;
10189   hpux9*)
10190     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10191     hardcode_libdir_separator_CXX=:
10192     export_dynamic_flag_spec_CXX='${wl}-E'
10193     hardcode_direct_CXX=yes
10194     hardcode_minus_L_CXX=yes # Not in the search PATH,
10195                                 # but as the default
10196                                 # location of the library.
10197
10198     case $cc_basename in
10199     CC)
10200       # FIXME: insert proper C++ library support
10201       ld_shlibs_CXX=no
10202       ;;
10203     aCC)
10204       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'
10205       # Commands to make compiler produce verbose output that lists
10206       # what "hidden" libraries, object files and flags are used when
10207       # linking a shared library.
10208       #
10209       # There doesn't appear to be a way to prevent this compiler from
10210       # explicitly linking system object files so we need to strip them
10211       # from the output so that they don't get included in the library
10212       # dependencies.
10213       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'
10214       ;;
10215     *)
10216       if test "$GXX" = yes; then
10217         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'
10218       else
10219         # FIXME: insert proper C++ library support
10220         ld_shlibs_CXX=no
10221       fi
10222       ;;
10223     esac
10224     ;;
10225   hpux10*|hpux11*)
10226     if test $with_gnu_ld = no; then
10227       case "$host_cpu" in
10228       hppa*64*)
10229         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10230         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10231         hardcode_libdir_separator_CXX=:
10232         ;;
10233       ia64*)
10234         hardcode_libdir_flag_spec_CXX='-L$libdir'
10235         ;;
10236       *)
10237         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10238         hardcode_libdir_separator_CXX=:
10239         export_dynamic_flag_spec_CXX='${wl}-E'
10240         ;;
10241       esac
10242     fi
10243     case "$host_cpu" in
10244     hppa*64*)
10245       hardcode_direct_CXX=no
10246       hardcode_shlibpath_var_CXX=no
10247       ;;
10248     ia64*)
10249       hardcode_direct_CXX=no
10250       hardcode_shlibpath_var_CXX=no
10251       hardcode_minus_L_CXX=yes # Not in the search PATH,
10252                                               # but as the default
10253                                               # location of the library.
10254       ;;
10255     *)
10256       hardcode_direct_CXX=yes
10257       hardcode_minus_L_CXX=yes # Not in the search PATH,
10258                                               # but as the default
10259                                               # location of the library.
10260       ;;
10261     esac
10262
10263     case $cc_basename in
10264       CC)
10265         # FIXME: insert proper C++ library support
10266         ld_shlibs_CXX=no
10267         ;;
10268       aCC)
10269         case "$host_cpu" in
10270         hppa*64*|ia64*)
10271           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10272           ;;
10273         *)
10274           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10275           ;;
10276         esac
10277         # Commands to make compiler produce verbose output that lists
10278         # what "hidden" libraries, object files and flags are used when
10279         # linking a shared library.
10280         #
10281         # There doesn't appear to be a way to prevent this compiler from
10282         # explicitly linking system object files so we need to strip them
10283         # from the output so that they don't get included in the library
10284         # dependencies.
10285         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'
10286         ;;
10287       *)
10288         if test "$GXX" = yes; then
10289           if test $with_gnu_ld = no; then
10290             case "$host_cpu" in
10291             ia64*|hppa*64*)
10292               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10293               ;;
10294             *)
10295               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'
10296               ;;
10297             esac
10298           fi
10299         else
10300           # FIXME: insert proper C++ library support
10301           ld_shlibs_CXX=no
10302         fi
10303         ;;
10304     esac
10305     ;;
10306   irix5* | irix6*)
10307     case $cc_basename in
10308       CC)
10309         # SGI C++
10310         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10311
10312         # Archives containing C++ object files must be created using
10313         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10314         # necessary to make sure instantiated templates are included
10315         # in the archive.
10316         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10317         ;;
10318       *)
10319         if test "$GXX" = yes; then
10320           if test "$with_gnu_ld" = no; then
10321             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10322           else
10323             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'
10324           fi
10325         fi
10326         link_all_deplibs_CXX=yes
10327         ;;
10328     esac
10329     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10330     hardcode_libdir_separator_CXX=:
10331     ;;
10332   linux*)
10333     case $cc_basename in
10334       KCC)
10335         # Kuck and Associates, Inc. (KAI) C++ Compiler
10336
10337         # KCC will only create a shared library if the output file
10338         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10339         # to its proper name (with version) after linking.
10340         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'
10341         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'
10342         # Commands to make compiler produce verbose output that lists
10343         # what "hidden" libraries, object files and flags are used when
10344         # linking a shared library.
10345         #
10346         # There doesn't appear to be a way to prevent this compiler from
10347         # explicitly linking system object files so we need to strip them
10348         # from the output so that they don't get included in the library
10349         # dependencies.
10350         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'
10351
10352         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10353         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10354
10355         # Archives containing C++ object files must be created using
10356         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10357         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10358         ;;
10359       icpc)
10360         # Intel C++
10361         with_gnu_ld=yes
10362         archive_cmds_need_lc_CXX=no
10363         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364         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'
10365         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10366         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10367         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10368         ;;
10369       cxx)
10370         # Compaq C++
10371         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10372         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'
10373
10374         runpath_var=LD_RUN_PATH
10375         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10376         hardcode_libdir_separator_CXX=:
10377
10378         # Commands to make compiler produce verbose output that lists
10379         # what "hidden" libraries, object files and flags are used when
10380         # linking a shared library.
10381         #
10382         # There doesn't appear to be a way to prevent this compiler from
10383         # explicitly linking system object files so we need to strip them
10384         # from the output so that they don't get included in the library
10385         # dependencies.
10386         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'
10387         ;;
10388     esac
10389     ;;
10390   lynxos*)
10391     # FIXME: insert proper C++ library support
10392     ld_shlibs_CXX=no
10393     ;;
10394   m88k*)
10395     # FIXME: insert proper C++ library support
10396     ld_shlibs_CXX=no
10397     ;;
10398   mvs*)
10399     case $cc_basename in
10400       cxx)
10401         # FIXME: insert proper C++ library support
10402         ld_shlibs_CXX=no
10403         ;;
10404       *)
10405         # FIXME: insert proper C++ library support
10406         ld_shlibs_CXX=no
10407         ;;
10408     esac
10409     ;;
10410   netbsd*)
10411     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10412       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10413       wlarc=
10414       hardcode_libdir_flag_spec_CXX='-R$libdir'
10415       hardcode_direct_CXX=yes
10416       hardcode_shlibpath_var_CXX=no
10417     fi
10418     # Workaround some broken pre-1.5 toolchains
10419     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10420     ;;
10421   osf3*)
10422     case $cc_basename in
10423       KCC)
10424         # Kuck and Associates, Inc. (KAI) C++ Compiler
10425
10426         # KCC will only create a shared library if the output file
10427         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10428         # to its proper name (with version) after linking.
10429         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'
10430
10431         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10432         hardcode_libdir_separator_CXX=:
10433
10434         # Archives containing C++ object files must be created using
10435         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10436         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10437
10438         ;;
10439       RCC)
10440         # Rational C++ 2.4.1
10441         # FIXME: insert proper C++ library support
10442         ld_shlibs_CXX=no
10443         ;;
10444       cxx)
10445         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10446         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10447
10448         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10449         hardcode_libdir_separator_CXX=:
10450
10451         # Commands to make compiler produce verbose output that lists
10452         # what "hidden" libraries, object files and flags are used when
10453         # linking a shared library.
10454         #
10455         # There doesn't appear to be a way to prevent this compiler from
10456         # explicitly linking system object files so we need to strip them
10457         # from the output so that they don't get included in the library
10458         # dependencies.
10459         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'
10460         ;;
10461       *)
10462         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10463           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10464           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10465
10466           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10467           hardcode_libdir_separator_CXX=:
10468
10469           # Commands to make compiler produce verbose output that lists
10470           # what "hidden" libraries, object files and flags are used when
10471           # linking a shared library.
10472           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10473
10474         else
10475           # FIXME: insert proper C++ library support
10476           ld_shlibs_CXX=no
10477         fi
10478         ;;
10479     esac
10480     ;;
10481   osf4* | osf5*)
10482     case $cc_basename in
10483       KCC)
10484         # Kuck and Associates, Inc. (KAI) C++ Compiler
10485
10486         # KCC will only create a shared library if the output file
10487         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10488         # to its proper name (with version) after linking.
10489         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'
10490
10491         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10492         hardcode_libdir_separator_CXX=:
10493
10494         # Archives containing C++ object files must be created using
10495         # the KAI C++ compiler.
10496         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10497         ;;
10498       RCC)
10499         # Rational C++ 2.4.1
10500         # FIXME: insert proper C++ library support
10501         ld_shlibs_CXX=no
10502         ;;
10503       cxx)
10504         allow_undefined_flag_CXX=' -expect_unresolved \*'
10505         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10506         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10507           echo "-hidden">> $lib.exp~
10508           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10509           $rm $lib.exp'
10510
10511         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10512         hardcode_libdir_separator_CXX=:
10513
10514         # Commands to make compiler produce verbose output that lists
10515         # what "hidden" libraries, object files and flags are used when
10516         # linking a shared library.
10517         #
10518         # There doesn't appear to be a way to prevent this compiler from
10519         # explicitly linking system object files so we need to strip them
10520         # from the output so that they don't get included in the library
10521         # dependencies.
10522         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'
10523         ;;
10524       *)
10525         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10526           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10527          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10528
10529           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10530           hardcode_libdir_separator_CXX=:
10531
10532           # Commands to make compiler produce verbose output that lists
10533           # what "hidden" libraries, object files and flags are used when
10534           # linking a shared library.
10535           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10536
10537         else
10538           # FIXME: insert proper C++ library support
10539           ld_shlibs_CXX=no
10540         fi
10541         ;;
10542     esac
10543     ;;
10544   psos*)
10545     # FIXME: insert proper C++ library support
10546     ld_shlibs_CXX=no
10547     ;;
10548   sco*)
10549     archive_cmds_need_lc_CXX=no
10550     case $cc_basename in
10551       CC)
10552         # FIXME: insert proper C++ library support
10553         ld_shlibs_CXX=no
10554         ;;
10555       *)
10556         # FIXME: insert proper C++ library support
10557         ld_shlibs_CXX=no
10558         ;;
10559     esac
10560     ;;
10561   sunos4*)
10562     case $cc_basename in
10563       CC)
10564         # Sun C++ 4.x
10565         # FIXME: insert proper C++ library support
10566         ld_shlibs_CXX=no
10567         ;;
10568       lcc)
10569         # Lucid
10570         # FIXME: insert proper C++ library support
10571         ld_shlibs_CXX=no
10572         ;;
10573       *)
10574         # FIXME: insert proper C++ library support
10575         ld_shlibs_CXX=no
10576         ;;
10577     esac
10578     ;;
10579   solaris*)
10580     case $cc_basename in
10581       CC)
10582         # Sun C++ 4.2, 5.x and Centerline C++
10583         no_undefined_flag_CXX=' -zdefs'
10584         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10585         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10586         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10587
10588         hardcode_libdir_flag_spec_CXX='-R$libdir'
10589         hardcode_shlibpath_var_CXX=no
10590         case $host_os in
10591           solaris2.0-5 | solaris2.0-5.*) ;;
10592           *)
10593             # The C++ compiler is used as linker so we must use $wl
10594             # flag to pass the commands to the underlying system
10595             # linker.
10596             # Supported since Solaris 2.6 (maybe 2.5.1?)
10597             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10598             ;;
10599         esac
10600         link_all_deplibs_CXX=yes
10601
10602         # Commands to make compiler produce verbose output that lists
10603         # what "hidden" libraries, object files and flags are used when
10604         # linking a shared library.
10605         #
10606         # There doesn't appear to be a way to prevent this compiler from
10607         # explicitly linking system object files so we need to strip them
10608         # from the output so that they don't get included in the library
10609         # dependencies.
10610         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10611
10612         # Archives containing C++ object files must be created using
10613         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10614         # necessary to make sure instantiated templates are included
10615         # in the archive.
10616         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10617         ;;
10618       gcx)
10619         # Green Hills C++ Compiler
10620         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10621
10622         # The C++ compiler must be used to create the archive.
10623         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10624         ;;
10625       *)
10626         # GNU C++ compiler with Solaris linker
10627         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10628           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10629           if $CC --version | grep -v '^2\.7' > /dev/null; then
10630             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10631             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10632                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10633
10634             # Commands to make compiler produce verbose output that lists
10635             # what "hidden" libraries, object files and flags are used when
10636             # linking a shared library.
10637             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10638           else
10639             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10640             # platform.
10641             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10642             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10643                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10644
10645             # Commands to make compiler produce verbose output that lists
10646             # what "hidden" libraries, object files and flags are used when
10647             # linking a shared library.
10648             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10649           fi
10650
10651           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10652         fi
10653         ;;
10654     esac
10655     ;;
10656   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10657     archive_cmds_need_lc_CXX=no
10658     ;;
10659   tandem*)
10660     case $cc_basename in
10661       NCC)
10662         # NonStop-UX NCC 3.20
10663         # FIXME: insert proper C++ library support
10664         ld_shlibs_CXX=no
10665         ;;
10666       *)
10667         # FIXME: insert proper C++ library support
10668         ld_shlibs_CXX=no
10669         ;;
10670     esac
10671     ;;
10672   vxworks*)
10673     # FIXME: insert proper C++ library support
10674     ld_shlibs_CXX=no
10675     ;;
10676   *)
10677     # FIXME: insert proper C++ library support
10678     ld_shlibs_CXX=no
10679     ;;
10680 esac
10681 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10682 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10683 test "$ld_shlibs_CXX" = no && can_build_shared=no
10684
10685 GCC_CXX="$GXX"
10686 LD_CXX="$LD"
10687
10688
10689 cat > conftest.$ac_ext <<EOF
10690 class Foo
10691 {
10692 public:
10693   Foo (void) { a = 0; }
10694 private:
10695   int a;
10696 };
10697 EOF
10698
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700   (eval $ac_compile) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; then
10704   # Parse the compiler output and extract the necessary
10705   # objects, libraries and library flags.
10706
10707   # Sentinel used to keep track of whether or not we are before
10708   # the conftest object file.
10709   pre_test_object_deps_done=no
10710
10711   # The `*' in the case matches for architectures that use `case' in
10712   # $output_verbose_cmd can trigger glob expansion during the loop
10713   # eval without this substitution.
10714   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10715
10716   for p in `eval $output_verbose_link_cmd`; do
10717     case $p in
10718
10719     -L* | -R* | -l*)
10720        # Some compilers place space between "-{L,R}" and the path.
10721        # Remove the space.
10722        if test $p = "-L" \
10723           || test $p = "-R"; then
10724          prev=$p
10725          continue
10726        else
10727          prev=
10728        fi
10729
10730        if test "$pre_test_object_deps_done" = no; then
10731          case $p in
10732          -L* | -R*)
10733            # Internal compiler library paths should come after those
10734            # provided the user.  The postdeps already come after the
10735            # user supplied libs so there is no need to process them.
10736            if test -z "$compiler_lib_search_path_CXX"; then
10737              compiler_lib_search_path_CXX="${prev}${p}"
10738            else
10739              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10740            fi
10741            ;;
10742          # The "-l" case would never come before the object being
10743          # linked, so don't bother handling this case.
10744          esac
10745        else
10746          if test -z "$postdeps_CXX"; then
10747            postdeps_CXX="${prev}${p}"
10748          else
10749            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10750          fi
10751        fi
10752        ;;
10753
10754     *.$objext)
10755        # This assumes that the test object file only shows up
10756        # once in the compiler output.
10757        if test "$p" = "conftest.$objext"; then
10758          pre_test_object_deps_done=yes
10759          continue
10760        fi
10761
10762        if test "$pre_test_object_deps_done" = no; then
10763          if test -z "$predep_objects_CXX"; then
10764            predep_objects_CXX="$p"
10765          else
10766            predep_objects_CXX="$predep_objects_CXX $p"
10767          fi
10768        else
10769          if test -z "$postdep_objects_CXX"; then
10770            postdep_objects_CXX="$p"
10771          else
10772            postdep_objects_CXX="$postdep_objects_CXX $p"
10773          fi
10774        fi
10775        ;;
10776
10777     *) ;; # Ignore the rest.
10778
10779     esac
10780   done
10781
10782   # Clean up.
10783   rm -f a.out a.exe
10784 else
10785   echo "libtool.m4: error: problem compiling CXX test program"
10786 fi
10787
10788 $rm -f confest.$objext
10789
10790 case " $postdeps_CXX " in
10791 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10792 esac
10793
10794 lt_prog_compiler_wl_CXX=
10795 lt_prog_compiler_pic_CXX=
10796 lt_prog_compiler_static_CXX=
10797
10798 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10799 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10800
10801   # C++ specific cases for pic, static, wl, etc.
10802   if test "$GXX" = yes; then
10803     lt_prog_compiler_wl_CXX='-Wl,'
10804     lt_prog_compiler_static_CXX='-static'
10805
10806     case $host_os in
10807     aix*)
10808       # All AIX code is PIC.
10809       if test "$host_cpu" = ia64; then
10810         # AIX 5 now supports IA64 processor
10811         lt_prog_compiler_static_CXX='-Bstatic'
10812       fi
10813       ;;
10814     amigaos*)
10815       # FIXME: we need at least 68020 code to build shared libraries, but
10816       # adding the `-m68020' flag to GCC prevents building anything better,
10817       # like `-m68040'.
10818       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10819       ;;
10820     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10821       # PIC is the default for these OSes.
10822       ;;
10823     mingw* | os2* | pw32*)
10824       # This hack is so that the source file can tell whether it is being
10825       # built for inclusion in a dll (and should export symbols for example).
10826       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10827       ;;
10828     darwin* | rhapsody*)
10829       # PIC is the default on this platform
10830       # Common symbols not allowed in MH_DYLIB files
10831       lt_prog_compiler_pic_CXX='-fno-common'
10832       ;;
10833     *djgpp*)
10834       # DJGPP does not support shared libraries at all
10835       lt_prog_compiler_pic_CXX=
10836       ;;
10837     sysv4*MP*)
10838       if test -d /usr/nec; then
10839         lt_prog_compiler_pic_CXX=-Kconform_pic
10840       fi
10841       ;;
10842     hpux*)
10843       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10844       # not for PA HP-UX.
10845       case "$host_cpu" in
10846       hppa*64*|ia64*)
10847         ;;
10848       *)
10849         lt_prog_compiler_pic_CXX='-fPIC'
10850         ;;
10851       esac
10852       ;;
10853     *)
10854       lt_prog_compiler_pic_CXX='-fPIC'
10855       ;;
10856     esac
10857   else
10858     case $host_os in
10859       aix4* | aix5*)
10860         # All AIX code is PIC.
10861         if test "$host_cpu" = ia64; then
10862           # AIX 5 now supports IA64 processor
10863           lt_prog_compiler_static_CXX='-Bstatic'
10864         else
10865           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10866         fi
10867         ;;
10868       chorus*)
10869         case $cc_basename in
10870         cxch68)
10871           # Green Hills C++ Compiler
10872           # _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"
10873           ;;
10874         esac
10875         ;;
10876       dgux*)
10877         case $cc_basename in
10878           ec++)
10879             lt_prog_compiler_pic_CXX='-KPIC'
10880             ;;
10881           ghcx)
10882             # Green Hills C++ Compiler
10883             lt_prog_compiler_pic_CXX='-pic'
10884             ;;
10885           *)
10886             ;;
10887         esac
10888         ;;
10889       freebsd* | kfreebsd*-gnu)
10890         # FreeBSD uses GNU C++
10891         ;;
10892       hpux9* | hpux10* | hpux11*)
10893         case $cc_basename in
10894           CC)
10895             lt_prog_compiler_wl_CXX='-Wl,'
10896             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10897             if test "$host_cpu" != ia64; then
10898               lt_prog_compiler_pic_CXX='+Z'
10899             fi
10900             ;;
10901           aCC)
10902             lt_prog_compiler_wl_CXX='-Wl,'
10903             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10904             case "$host_cpu" in
10905             hppa*64*|ia64*)
10906               # +Z the default
10907               ;;
10908             *)
10909               lt_prog_compiler_pic_CXX='+Z'
10910               ;;
10911             esac
10912             ;;
10913           *)
10914             ;;
10915         esac
10916         ;;
10917       irix5* | irix6* | nonstopux*)
10918         case $cc_basename in
10919           CC)
10920             lt_prog_compiler_wl_CXX='-Wl,'
10921             lt_prog_compiler_static_CXX='-non_shared'
10922             # CC pic flag -KPIC is the default.
10923             ;;
10924           *)
10925             ;;
10926         esac
10927         ;;
10928       linux*)
10929         case $cc_basename in
10930           KCC)
10931             # KAI C++ Compiler
10932             lt_prog_compiler_wl_CXX='--backend -Wl,'
10933             lt_prog_compiler_pic_CXX='-fPIC'
10934             ;;
10935           icpc)
10936             # Intel C++
10937             lt_prog_compiler_wl_CXX='-Wl,'
10938             lt_prog_compiler_pic_CXX='-KPIC'
10939             lt_prog_compiler_static_CXX='-static'
10940             ;;
10941           cxx)
10942             # Compaq C++
10943             # Make sure the PIC flag is empty.  It appears that all Alpha
10944             # Linux and Compaq Tru64 Unix objects are PIC.
10945             lt_prog_compiler_pic_CXX=
10946             lt_prog_compiler_static_CXX='-non_shared'
10947             ;;
10948           *)
10949             ;;
10950         esac
10951         ;;
10952       lynxos*)
10953         ;;
10954       m88k*)
10955         ;;
10956       mvs*)
10957         case $cc_basename in
10958           cxx)
10959             lt_prog_compiler_pic_CXX='-W c,exportall'
10960             ;;
10961           *)
10962             ;;
10963         esac
10964         ;;
10965       netbsd*)
10966         ;;
10967       osf3* | osf4* | osf5*)
10968         case $cc_basename in
10969           KCC)
10970             lt_prog_compiler_wl_CXX='--backend -Wl,'
10971             ;;
10972           RCC)
10973             # Rational C++ 2.4.1
10974             lt_prog_compiler_pic_CXX='-pic'
10975             ;;
10976           cxx)
10977             # Digital/Compaq C++
10978             lt_prog_compiler_wl_CXX='-Wl,'
10979             # Make sure the PIC flag is empty.  It appears that all Alpha
10980             # Linux and Compaq Tru64 Unix objects are PIC.
10981             lt_prog_compiler_pic_CXX=
10982             lt_prog_compiler_static_CXX='-non_shared'
10983             ;;
10984           *)
10985             ;;
10986         esac
10987         ;;
10988       psos*)
10989         ;;
10990       sco*)
10991         case $cc_basename in
10992           CC)
10993             lt_prog_compiler_pic_CXX='-fPIC'
10994             ;;
10995           *)
10996             ;;
10997         esac
10998         ;;
10999       solaris*)
11000         case $cc_basename in
11001           CC)
11002             # Sun C++ 4.2, 5.x and Centerline C++
11003             lt_prog_compiler_pic_CXX='-KPIC'
11004             lt_prog_compiler_static_CXX='-Bstatic'
11005             lt_prog_compiler_wl_CXX='-Qoption ld '
11006             ;;
11007           gcx)
11008             # Green Hills C++ Compiler
11009             lt_prog_compiler_pic_CXX='-PIC'
11010             ;;
11011           *)
11012             ;;
11013         esac
11014         ;;
11015       sunos4*)
11016         case $cc_basename in
11017           CC)
11018             # Sun C++ 4.x
11019             lt_prog_compiler_pic_CXX='-pic'
11020             lt_prog_compiler_static_CXX='-Bstatic'
11021             ;;
11022           lcc)
11023             # Lucid
11024             lt_prog_compiler_pic_CXX='-pic'
11025             ;;
11026           *)
11027             ;;
11028         esac
11029         ;;
11030       tandem*)
11031         case $cc_basename in
11032           NCC)
11033             # NonStop-UX NCC 3.20
11034             lt_prog_compiler_pic_CXX='-KPIC'
11035             ;;
11036           *)
11037             ;;
11038         esac
11039         ;;
11040       unixware*)
11041         ;;
11042       vxworks*)
11043         ;;
11044       *)
11045         lt_prog_compiler_can_build_shared_CXX=no
11046         ;;
11047     esac
11048   fi
11049
11050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11051 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11052
11053 #
11054 # Check to make sure the PIC flag actually works.
11055 #
11056 if test -n "$lt_prog_compiler_pic_CXX"; then
11057
11058 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11059 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11060 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063   lt_prog_compiler_pic_works_CXX=no
11064   ac_outfile=conftest.$ac_objext
11065    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11066    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11067    # Insert the option either (1) after the last *FLAGS variable, or
11068    # (2) before a word containing "conftest.", or (3) at the end.
11069    # Note that $ac_compile itself does not contain backslashes and begins
11070    # with a dollar sign (not a hyphen), so the echo should work correctly.
11071    # The option is referenced via a variable to avoid confusing sed.
11072    lt_compile=`echo "$ac_compile" | $SED \
11073    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11074    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11075    -e 's:$: $lt_compiler_flag:'`
11076    (eval echo "\"\$as_me:11076: $lt_compile\"" >&5)
11077    (eval "$lt_compile" 2>conftest.err)
11078    ac_status=$?
11079    cat conftest.err >&5
11080    echo "$as_me:11080: \$? = $ac_status" >&5
11081    if (exit $ac_status) && test -s "$ac_outfile"; then
11082      # The compiler can only warn and ignore the option if not recognized
11083      # So say no if there are warnings
11084      if test ! -s conftest.err; then
11085        lt_prog_compiler_pic_works_CXX=yes
11086      fi
11087    fi
11088    $rm conftest*
11089
11090 fi
11091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11092 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11093
11094 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11095     case $lt_prog_compiler_pic_CXX in
11096      "" | " "*) ;;
11097      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11098      esac
11099 else
11100     lt_prog_compiler_pic_CXX=
11101      lt_prog_compiler_can_build_shared_CXX=no
11102 fi
11103
11104 fi
11105 case "$host_os" in
11106   # For platforms which do not support PIC, -DPIC is meaningless:
11107   *djgpp*)
11108     lt_prog_compiler_pic_CXX=
11109     ;;
11110   *)
11111     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11112     ;;
11113 esac
11114
11115 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11117 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   lt_cv_prog_compiler_c_o_CXX=no
11121    $rm -r conftest 2>/dev/null
11122    mkdir conftest
11123    cd conftest
11124    mkdir out
11125    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11126
11127    lt_compiler_flag="-o out/conftest2.$ac_objext"
11128    # Insert the option either (1) after the last *FLAGS variable, or
11129    # (2) before a word containing "conftest.", or (3) at the end.
11130    # Note that $ac_compile itself does not contain backslashes and begins
11131    # with a dollar sign (not a hyphen), so the echo should work correctly.
11132    lt_compile=`echo "$ac_compile" | $SED \
11133    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11135    -e 's:$: $lt_compiler_flag:'`
11136    (eval echo "\"\$as_me:11136: $lt_compile\"" >&5)
11137    (eval "$lt_compile" 2>out/conftest.err)
11138    ac_status=$?
11139    cat out/conftest.err >&5
11140    echo "$as_me:11140: \$? = $ac_status" >&5
11141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11142    then
11143      # The compiler can only warn and ignore the option if not recognized
11144      # So say no if there are warnings
11145      if test ! -s out/conftest.err; then
11146        lt_cv_prog_compiler_c_o_CXX=yes
11147      fi
11148    fi
11149    chmod u+w .
11150    $rm conftest*
11151    # SGI C++ compiler will create directory out/ii_files/ for
11152    # template instantiation
11153    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11154    $rm out/* && rmdir out
11155    cd ..
11156    rmdir conftest
11157    $rm conftest*
11158
11159 fi
11160 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11161 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11162
11163
11164 hard_links="nottested"
11165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11166   # do not overwrite the value of need_locks provided by the user
11167   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11169   hard_links=yes
11170   $rm conftest*
11171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11172   touch conftest.a
11173   ln conftest.a conftest.b 2>&5 || hard_links=no
11174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11175   echo "$as_me:$LINENO: result: $hard_links" >&5
11176 echo "${ECHO_T}$hard_links" >&6
11177   if test "$hard_links" = no; then
11178     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11180     need_locks=warn
11181   fi
11182 else
11183   need_locks=no
11184 fi
11185
11186 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11187 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11188
11189   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11190   case $host_os in
11191   aix4* | aix5*)
11192     # If we're using GNU nm, then we don't want the "-C" option.
11193     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11194     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11195       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'
11196     else
11197       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'
11198     fi
11199     ;;
11200   pw32*)
11201     export_symbols_cmds_CXX="$ltdll_cmds"
11202   ;;
11203   cygwin* | mingw*)
11204     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11205   ;;
11206   *)
11207     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11208   ;;
11209   esac
11210
11211 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11212 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11213 test "$ld_shlibs_CXX" = no && can_build_shared=no
11214
11215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11216 if test "$GCC" = yes; then
11217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11218 fi
11219
11220 #
11221 # Do we need to explicitly link libc?
11222 #
11223 case "x$archive_cmds_need_lc_CXX" in
11224 x|xyes)
11225   # Assume -lc should be added
11226   archive_cmds_need_lc_CXX=yes
11227
11228   if test "$enable_shared" = yes && test "$GCC" = yes; then
11229     case $archive_cmds_CXX in
11230     *'~'*)
11231       # FIXME: we may have to deal with multi-command sequences.
11232       ;;
11233     '$CC '*)
11234       # Test whether the compiler implicitly links with -lc since on some
11235       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11236       # to ld, don't add -lc before -lgcc.
11237       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11239       $rm conftest*
11240       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11241
11242       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11243   (eval $ac_compile) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } 2>conftest.err; then
11247         soname=conftest
11248         lib=conftest
11249         libobjs=conftest.$ac_objext
11250         deplibs=
11251         wl=$lt_prog_compiler_wl_CXX
11252         compiler_flags=-v
11253         linker_flags=-v
11254         verstring=
11255         output_objdir=.
11256         libname=conftest
11257         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11258         allow_undefined_flag_CXX=
11259         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11260   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }
11264         then
11265           archive_cmds_need_lc_CXX=no
11266         else
11267           archive_cmds_need_lc_CXX=yes
11268         fi
11269         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11270       else
11271         cat conftest.err 1>&5
11272       fi
11273       $rm conftest*
11274       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11275 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11276       ;;
11277     esac
11278   fi
11279   ;;
11280 esac
11281
11282 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11283 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11284 library_names_spec=
11285 libname_spec='lib$name'
11286 soname_spec=
11287 shrext_cmds=".so"
11288 postinstall_cmds=
11289 postuninstall_cmds=
11290 finish_cmds=
11291 finish_eval=
11292 shlibpath_var=
11293 shlibpath_overrides_runpath=unknown
11294 version_type=none
11295 dynamic_linker="$host_os ld.so"
11296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11297 if test "$GCC" = yes; then
11298   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11299   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11300     # if the path contains ";" then we assume it to be the separator
11301     # otherwise default to the standard path separator (i.e. ":") - it is
11302     # assumed that no part of a normal pathname contains ";" but that should
11303     # okay in the real world where ";" in dirpaths is itself problematic.
11304     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11305   else
11306     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11307   fi
11308 else
11309   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11310 fi
11311 need_lib_prefix=unknown
11312 hardcode_into_libs=no
11313
11314 # when you set need_version to no, make sure it does not cause -set_version
11315 # flags to be left without arguments
11316 need_version=unknown
11317
11318 case $host_os in
11319 aix3*)
11320   version_type=linux
11321   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11322   shlibpath_var=LIBPATH
11323
11324   # AIX 3 has no versioning support, so we append a major version to the name.
11325   soname_spec='${libname}${release}${shared_ext}$major'
11326   ;;
11327
11328 aix4* | aix5*)
11329   version_type=linux
11330   need_lib_prefix=no
11331   need_version=no
11332   hardcode_into_libs=yes
11333   if test "$host_cpu" = ia64; then
11334     # AIX 5 supports IA64
11335     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11336     shlibpath_var=LD_LIBRARY_PATH
11337   else
11338     # With GCC up to 2.95.x, collect2 would create an import file
11339     # for dependence libraries.  The import file would start with
11340     # the line `#! .'.  This would cause the generated library to
11341     # depend on `.', always an invalid library.  This was fixed in
11342     # development snapshots of GCC prior to 3.0.
11343     case $host_os in
11344       aix4 | aix4.[01] | aix4.[01].*)
11345       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11346            echo ' yes '
11347            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11348         :
11349       else
11350         can_build_shared=no
11351       fi
11352       ;;
11353     esac
11354     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11355     # soname into executable. Probably we can add versioning support to
11356     # collect2, so additional links can be useful in future.
11357     if test "$aix_use_runtimelinking" = yes; then
11358       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11359       # instead of lib<name>.a to let people know that these are not
11360       # typical AIX shared libraries.
11361       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362     else
11363       # We preserve .a as extension for shared libraries through AIX4.2
11364       # and later when we are not doing run time linking.
11365       library_names_spec='${libname}${release}.a $libname.a'
11366       soname_spec='${libname}${release}${shared_ext}$major'
11367     fi
11368     shlibpath_var=LIBPATH
11369   fi
11370   ;;
11371
11372 amigaos*)
11373   library_names_spec='$libname.ixlibrary $libname.a'
11374   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375   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'
11376   ;;
11377
11378 beos*)
11379   library_names_spec='${libname}${shared_ext}'
11380   dynamic_linker="$host_os ld.so"
11381   shlibpath_var=LIBRARY_PATH
11382   ;;
11383
11384 bsdi4*)
11385   version_type=linux
11386   need_version=no
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390   shlibpath_var=LD_LIBRARY_PATH
11391   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393   # the default ld.so.conf also contains /usr/contrib/lib and
11394   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395   # libtool to hard-code these into programs
11396   ;;
11397
11398 cygwin* | mingw* | pw32*)
11399   version_type=windows
11400   shrext_cmds=".dll"
11401   need_version=no
11402   need_lib_prefix=no
11403
11404   case $GCC,$host_os in
11405   yes,cygwin* | yes,mingw* | yes,pw32*)
11406     library_names_spec='$libname.dll.a'
11407     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408     postinstall_cmds='base_file=`basename \${file}`~
11409       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11410       dldir=$destdir/`dirname \$dlpath`~
11411       test -d \$dldir || mkdir -p \$dldir~
11412       $install_prog $dir/$dlname \$dldir/$dlname'
11413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11414       dlpath=$dir/\$dldll~
11415        $rm \$dlpath'
11416     shlibpath_overrides_runpath=yes
11417
11418     case $host_os in
11419     cygwin*)
11420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11423       ;;
11424     mingw*)
11425       # MinGW DLLs use traditional 'lib' prefix
11426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11428       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11429         # It is most probably a Windows format PATH printed by
11430         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11431         # path with ; separators, and with drive letters. We can handle the
11432         # drive letters (cygwin fileutils understands them), so leave them,
11433         # especially as we might pass files found there to a mingw objdump,
11434         # which wouldn't understand a cygwinified path. Ahh.
11435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11436       else
11437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11438       fi
11439       ;;
11440     pw32*)
11441       # pw32 DLLs use 'pw' prefix rather than 'lib'
11442       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11443       ;;
11444     esac
11445     ;;
11446
11447   *)
11448     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11449     ;;
11450   esac
11451   dynamic_linker='Win32 ld.exe'
11452   # FIXME: first we should search . and the directory the executable is in
11453   shlibpath_var=PATH
11454   ;;
11455
11456 darwin* | rhapsody*)
11457   dynamic_linker="$host_os dyld"
11458   version_type=darwin
11459   need_lib_prefix=no
11460   need_version=no
11461   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11462   soname_spec='${libname}${release}${major}$shared_ext'
11463   shlibpath_overrides_runpath=yes
11464   shlibpath_var=DYLD_LIBRARY_PATH
11465   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11466   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11467   if test "$GCC" = yes; then
11468     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"`
11469   else
11470     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11471   fi
11472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11473   ;;
11474
11475 dgux*)
11476   version_type=linux
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   ;;
11483
11484 freebsd1*)
11485   dynamic_linker=no
11486   ;;
11487
11488 kfreebsd*-gnu)
11489   version_type=linux
11490   need_lib_prefix=no
11491   need_version=no
11492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11493   soname_spec='${libname}${release}${shared_ext}$major'
11494   shlibpath_var=LD_LIBRARY_PATH
11495   shlibpath_overrides_runpath=no
11496   hardcode_into_libs=yes
11497   dynamic_linker='GNU ld.so'
11498   ;;
11499
11500 freebsd*)
11501   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11502   version_type=freebsd-$objformat
11503   case $version_type in
11504     freebsd-elf*)
11505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11506       need_version=no
11507       need_lib_prefix=no
11508       ;;
11509     freebsd-*)
11510       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11511       need_version=yes
11512       ;;
11513   esac
11514   shlibpath_var=LD_LIBRARY_PATH
11515   case $host_os in
11516   freebsd2*)
11517     shlibpath_overrides_runpath=yes
11518     ;;
11519   freebsd3.01* | freebsdelf3.01*)
11520     shlibpath_overrides_runpath=yes
11521     hardcode_into_libs=yes
11522     ;;
11523   *) # from 3.2 on
11524     shlibpath_overrides_runpath=no
11525     hardcode_into_libs=yes
11526     ;;
11527   esac
11528   ;;
11529
11530 gnu*)
11531   version_type=linux
11532   need_lib_prefix=no
11533   need_version=no
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11535   soname_spec='${libname}${release}${shared_ext}$major'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   hardcode_into_libs=yes
11538   ;;
11539
11540 hpux9* | hpux10* | hpux11*)
11541   # Give a soname corresponding to the major version so that dld.sl refuses to
11542   # link against other versions.
11543   version_type=sunos
11544   need_lib_prefix=no
11545   need_version=no
11546   case "$host_cpu" in
11547   ia64*)
11548     shrext_cmds='.so'
11549     hardcode_into_libs=yes
11550     dynamic_linker="$host_os dld.so"
11551     shlibpath_var=LD_LIBRARY_PATH
11552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554     soname_spec='${libname}${release}${shared_ext}$major'
11555     if test "X$HPUX_IA64_MODE" = X32; then
11556       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11557     else
11558       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11559     fi
11560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561     ;;
11562    hppa*64*)
11563      shrext_cmds='.sl'
11564      hardcode_into_libs=yes
11565      dynamic_linker="$host_os dld.sl"
11566      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11567      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569      soname_spec='${libname}${release}${shared_ext}$major'
11570      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11571      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572      ;;
11573    *)
11574     shrext_cmds='.sl'
11575     dynamic_linker="$host_os dld.sl"
11576     shlibpath_var=SHLIB_PATH
11577     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579     soname_spec='${libname}${release}${shared_ext}$major'
11580     ;;
11581   esac
11582   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11583   postinstall_cmds='chmod 555 $lib'
11584   ;;
11585
11586 irix5* | irix6* | nonstopux*)
11587   case $host_os in
11588     nonstopux*) version_type=nonstopux ;;
11589     *)
11590         if test "$lt_cv_prog_gnu_ld" = yes; then
11591                 version_type=linux
11592         else
11593                 version_type=irix
11594         fi ;;
11595   esac
11596   need_lib_prefix=no
11597   need_version=no
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11600   case $host_os in
11601   irix5* | nonstopux*)
11602     libsuff= shlibsuff=
11603     ;;
11604   *)
11605     case $LD in # libtool.m4 will add one of these switches to LD
11606     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11607       libsuff= shlibsuff= libmagic=32-bit;;
11608     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11609       libsuff=32 shlibsuff=N32 libmagic=N32;;
11610     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11611       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11612     *) libsuff= shlibsuff= libmagic=never-match;;
11613     esac
11614     ;;
11615   esac
11616   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11617   shlibpath_overrides_runpath=no
11618   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11619   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11620   hardcode_into_libs=yes
11621   ;;
11622
11623 # No shared lib support for Linux oldld, aout, or coff.
11624 linux*oldld* | linux*aout* | linux*coff*)
11625   dynamic_linker=no
11626   ;;
11627
11628 # This must be Linux ELF.
11629 linux*)
11630   version_type=linux
11631   need_lib_prefix=no
11632   need_version=no
11633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634   soname_spec='${libname}${release}${shared_ext}$major'
11635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11636   shlibpath_var=LD_LIBRARY_PATH
11637   shlibpath_overrides_runpath=no
11638   # This implies no fast_install, which is unacceptable.
11639   # Some rework will be needed to allow for fast_install
11640   # before this can be enabled.
11641   hardcode_into_libs=yes
11642
11643   # find out which ABI we are using
11644   libsuff=
11645   case "$host_cpu" in
11646   x86_64*|s390x*|powerpc64*)
11647     echo '#line 11647 "configure"' > conftest.$ac_ext
11648     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649   (eval $ac_compile) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; then
11653       case `/usr/bin/file conftest.$ac_objext` in
11654       *64-bit*)
11655         libsuff=64
11656         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11657         ;;
11658       esac
11659     fi
11660     rm -rf conftest*
11661     ;;
11662   esac
11663
11664   # Append ld.so.conf contents to the search path
11665   if test -f /etc/ld.so.conf; then
11666     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11667     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11668   fi
11669
11670   # We used to test for /lib/ld.so.1 and disable shared libraries on
11671   # powerpc, because MkLinux only supported shared libraries with the
11672   # GNU dynamic linker.  Since this was broken with cross compilers,
11673   # most powerpc-linux boxes support dynamic linking these days and
11674   # people can always --disable-shared, the test was removed, and we
11675   # assume the GNU/Linux dynamic linker is in use.
11676   dynamic_linker='GNU/Linux ld.so'
11677   ;;
11678
11679 knetbsd*-gnu)
11680   version_type=linux
11681   need_lib_prefix=no
11682   need_version=no
11683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   shlibpath_var=LD_LIBRARY_PATH
11686   shlibpath_overrides_runpath=no
11687   hardcode_into_libs=yes
11688   dynamic_linker='GNU ld.so'
11689   ;;
11690
11691 netbsd*)
11692   version_type=sunos
11693   need_lib_prefix=no
11694   need_version=no
11695   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11697     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11698     dynamic_linker='NetBSD (a.out) ld.so'
11699   else
11700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11701     soname_spec='${libname}${release}${shared_ext}$major'
11702     dynamic_linker='NetBSD ld.elf_so'
11703   fi
11704   shlibpath_var=LD_LIBRARY_PATH
11705   shlibpath_overrides_runpath=yes
11706   hardcode_into_libs=yes
11707   ;;
11708
11709 newsos6)
11710   version_type=linux
11711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712   shlibpath_var=LD_LIBRARY_PATH
11713   shlibpath_overrides_runpath=yes
11714   ;;
11715
11716 nto-qnx*)
11717   version_type=linux
11718   need_lib_prefix=no
11719   need_version=no
11720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721   soname_spec='${libname}${release}${shared_ext}$major'
11722   shlibpath_var=LD_LIBRARY_PATH
11723   shlibpath_overrides_runpath=yes
11724   ;;
11725
11726 openbsd*)
11727   version_type=sunos
11728   need_lib_prefix=no
11729   need_version=yes
11730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11732   shlibpath_var=LD_LIBRARY_PATH
11733   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11734     case $host_os in
11735       openbsd2.[89] | openbsd2.[89].*)
11736         shlibpath_overrides_runpath=no
11737         ;;
11738       *)
11739         shlibpath_overrides_runpath=yes
11740         ;;
11741       esac
11742   else
11743     shlibpath_overrides_runpath=yes
11744   fi
11745   ;;
11746
11747 os2*)
11748   libname_spec='$name'
11749   shrext_cmds=".dll"
11750   need_lib_prefix=no
11751   library_names_spec='$libname${shared_ext} $libname.a'
11752   dynamic_linker='OS/2 ld.exe'
11753   shlibpath_var=LIBPATH
11754   ;;
11755
11756 osf3* | osf4* | osf5*)
11757   version_type=osf
11758   need_lib_prefix=no
11759   need_version=no
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11764   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11765   ;;
11766
11767 sco3.2v5*)
11768   version_type=osf
11769   soname_spec='${libname}${release}${shared_ext}$major'
11770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771   shlibpath_var=LD_LIBRARY_PATH
11772   ;;
11773
11774 solaris*)
11775   version_type=linux
11776   need_lib_prefix=no
11777   need_version=no
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779   soname_spec='${libname}${release}${shared_ext}$major'
11780   shlibpath_var=LD_LIBRARY_PATH
11781   shlibpath_overrides_runpath=yes
11782   hardcode_into_libs=yes
11783   # ldd complains unless libraries are executable
11784   postinstall_cmds='chmod +x $lib'
11785   ;;
11786
11787 sunos4*)
11788   version_type=sunos
11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=yes
11793   if test "$with_gnu_ld" = yes; then
11794     need_lib_prefix=no
11795   fi
11796   need_version=yes
11797   ;;
11798
11799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11800   version_type=linux
11801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   shlibpath_var=LD_LIBRARY_PATH
11804   case $host_vendor in
11805     sni)
11806       shlibpath_overrides_runpath=no
11807       need_lib_prefix=no
11808       export_dynamic_flag_spec='${wl}-Blargedynsym'
11809       runpath_var=LD_RUN_PATH
11810       ;;
11811     siemens)
11812       need_lib_prefix=no
11813       ;;
11814     motorola)
11815       need_lib_prefix=no
11816       need_version=no
11817       shlibpath_overrides_runpath=no
11818       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11819       ;;
11820   esac
11821   ;;
11822
11823 sysv4*MP*)
11824   if test -d /usr/nec ;then
11825     version_type=linux
11826     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11827     soname_spec='$libname${shared_ext}.$major'
11828     shlibpath_var=LD_LIBRARY_PATH
11829   fi
11830   ;;
11831
11832 uts4*)
11833   version_type=linux
11834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835   soname_spec='${libname}${release}${shared_ext}$major'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   ;;
11838
11839 *)
11840   dynamic_linker=no
11841   ;;
11842 esac
11843 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11844 echo "${ECHO_T}$dynamic_linker" >&6
11845 test "$dynamic_linker" = no && can_build_shared=no
11846
11847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11849 hardcode_action_CXX=
11850 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11851    test -n "$runpath_var CXX" || \
11852    test "X$hardcode_automatic_CXX"="Xyes" ; then
11853
11854   # We can hardcode non-existant directories.
11855   if test "$hardcode_direct_CXX" != no &&
11856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11857      # have to relink, otherwise we might link with an installed library
11858      # when we should be linking with a yet-to-be-installed one
11859      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11860      test "$hardcode_minus_L_CXX" != no; then
11861     # Linking always hardcodes the temporary library directory.
11862     hardcode_action_CXX=relink
11863   else
11864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11865     hardcode_action_CXX=immediate
11866   fi
11867 else
11868   # We cannot hardcode anything, or else we can only hardcode existing
11869   # directories.
11870   hardcode_action_CXX=unsupported
11871 fi
11872 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11873 echo "${ECHO_T}$hardcode_action_CXX" >&6
11874
11875 if test "$hardcode_action_CXX" = relink; then
11876   # Fast installation is not supported
11877   enable_fast_install=no
11878 elif test "$shlibpath_overrides_runpath" = yes ||
11879      test "$enable_shared" = no; then
11880   # Fast installation is not necessary
11881   enable_fast_install=needless
11882 fi
11883
11884 striplib=
11885 old_striplib=
11886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11889   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11890   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11891   echo "$as_me:$LINENO: result: yes" >&5
11892 echo "${ECHO_T}yes" >&6
11893 else
11894 # FIXME - insert some real tests, host_os isn't really good enough
11895   case $host_os in
11896    darwin*)
11897        if test -n "$STRIP" ; then
11898          striplib="$STRIP -x"
11899          echo "$as_me:$LINENO: result: yes" >&5
11900 echo "${ECHO_T}yes" >&6
11901        else
11902   echo "$as_me:$LINENO: result: no" >&5
11903 echo "${ECHO_T}no" >&6
11904 fi
11905        ;;
11906    *)
11907   echo "$as_me:$LINENO: result: no" >&5
11908 echo "${ECHO_T}no" >&6
11909     ;;
11910   esac
11911 fi
11912
11913 if test "x$enable_dlopen" != xyes; then
11914   enable_dlopen=unknown
11915   enable_dlopen_self=unknown
11916   enable_dlopen_self_static=unknown
11917 else
11918   lt_cv_dlopen=no
11919   lt_cv_dlopen_libs=
11920
11921   case $host_os in
11922   beos*)
11923     lt_cv_dlopen="load_add_on"
11924     lt_cv_dlopen_libs=
11925     lt_cv_dlopen_self=yes
11926     ;;
11927
11928   mingw* | pw32*)
11929     lt_cv_dlopen="LoadLibrary"
11930     lt_cv_dlopen_libs=
11931    ;;
11932
11933   cygwin*)
11934     lt_cv_dlopen="dlopen"
11935     lt_cv_dlopen_libs=
11936    ;;
11937
11938   darwin*)
11939   # if libdl is installed we need to link against it
11940     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-ldl  $LIBS"
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953
11954 /* Override any gcc2 internal prototype to avoid an error.  */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 /* We use char because int might match the return type of a gcc2
11959    builtin and then its argument prototype would still apply.  */
11960 char dlopen ();
11961 int
11962 main ()
11963 {
11964 dlopen ();
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971   (eval $ac_link) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_cxx_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   ac_cv_lib_dl_dlopen=yes
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_lib_dl_dlopen=no
11997 fi
11998 rm -f conftest.err conftest.$ac_objext \
11999       conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12001 fi
12002 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12003 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12004 if test $ac_cv_lib_dl_dlopen = yes; then
12005   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12006 else
12007
12008     lt_cv_dlopen="dyld"
12009     lt_cv_dlopen_libs=
12010     lt_cv_dlopen_self=yes
12011
12012 fi
12013
12014    ;;
12015
12016   *)
12017     echo "$as_me:$LINENO: checking for shl_load" >&5
12018 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12019 if test "${ac_cv_func_shl_load+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h.  */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h.  */
12028 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12030 #define shl_load innocuous_shl_load
12031
12032 /* System header to define __stub macros and hopefully few prototypes,
12033     which can conflict with char shl_load (); below.
12034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035     <limits.h> exists even on freestanding compilers.  */
12036
12037 #ifdef __STDC__
12038 # include <limits.h>
12039 #else
12040 # include <assert.h>
12041 #endif
12042
12043 #undef shl_load
12044
12045 /* Override any gcc2 internal prototype to avoid an error.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 {
12049 #endif
12050 /* We use char because int might match the return type of a gcc2
12051    builtin and then its argument prototype would still apply.  */
12052 char shl_load ();
12053 /* The GNU C library defines this for functions which it implements
12054     to always fail with ENOSYS.  Some functions are actually named
12055     something starting with __ and the normal name is an alias.  */
12056 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12057 choke me
12058 #else
12059 char (*f) () = shl_load;
12060 #endif
12061 #ifdef __cplusplus
12062 }
12063 #endif
12064
12065 int
12066 main ()
12067 {
12068 return f != shl_load;
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075   (eval $ac_link) 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } &&
12082          { ac_try='test -z "$ac_cxx_werror_flag"
12083                          || test ! -s conftest.err'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; } &&
12089          { ac_try='test -s conftest$ac_exeext'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; }; then
12095   ac_cv_func_shl_load=yes
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 ac_cv_func_shl_load=no
12101 fi
12102 rm -f conftest.err conftest.$ac_objext \
12103       conftest$ac_exeext conftest.$ac_ext
12104 fi
12105 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12106 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12107 if test $ac_cv_func_shl_load = yes; then
12108   lt_cv_dlopen="shl_load"
12109 else
12110   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12111 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12112 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115   ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-ldld  $LIBS"
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123
12124 /* Override any gcc2 internal prototype to avoid an error.  */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 /* We use char because int might match the return type of a gcc2
12129    builtin and then its argument prototype would still apply.  */
12130 char shl_load ();
12131 int
12132 main ()
12133 {
12134 shl_load ();
12135   ;
12136   return 0;
12137 }
12138 _ACEOF
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12141   (eval $ac_link) 2>conftest.er1
12142   ac_status=$?
12143   grep -v '^ *+' conftest.er1 >conftest.err
12144   rm -f conftest.er1
12145   cat conftest.err >&5
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); } &&
12148          { ac_try='test -z "$ac_cxx_werror_flag"
12149                          || test ! -s conftest.err'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; } &&
12155          { ac_try='test -s conftest$ac_exeext'
12156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157   (eval $ac_try) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); }; }; then
12161   ac_cv_lib_dld_shl_load=yes
12162 else
12163   echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ac_cv_lib_dld_shl_load=no
12167 fi
12168 rm -f conftest.err conftest.$ac_objext \
12169       conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12171 fi
12172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12173 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12174 if test $ac_cv_lib_dld_shl_load = yes; then
12175   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12176 else
12177   echo "$as_me:$LINENO: checking for dlopen" >&5
12178 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12179 if test "${ac_cv_func_dlopen+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12190 #define dlopen innocuous_dlopen
12191
12192 /* System header to define __stub macros and hopefully few prototypes,
12193     which can conflict with char dlopen (); below.
12194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12195     <limits.h> exists even on freestanding compilers.  */
12196
12197 #ifdef __STDC__
12198 # include <limits.h>
12199 #else
12200 # include <assert.h>
12201 #endif
12202
12203 #undef dlopen
12204
12205 /* Override any gcc2 internal prototype to avoid an error.  */
12206 #ifdef __cplusplus
12207 extern "C"
12208 {
12209 #endif
12210 /* We use char because int might match the return type of a gcc2
12211    builtin and then its argument prototype would still apply.  */
12212 char dlopen ();
12213 /* The GNU C library defines this for functions which it implements
12214     to always fail with ENOSYS.  Some functions are actually named
12215     something starting with __ and the normal name is an alias.  */
12216 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12217 choke me
12218 #else
12219 char (*f) () = dlopen;
12220 #endif
12221 #ifdef __cplusplus
12222 }
12223 #endif
12224
12225 int
12226 main ()
12227 {
12228 return f != dlopen;
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235   (eval $ac_link) 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } &&
12242          { ac_try='test -z "$ac_cxx_werror_flag"
12243                          || test ! -s conftest.err'
12244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245   (eval $ac_try) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; } &&
12249          { ac_try='test -s conftest$ac_exeext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_cv_func_dlopen=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 ac_cv_func_dlopen=no
12261 fi
12262 rm -f conftest.err conftest.$ac_objext \
12263       conftest$ac_exeext conftest.$ac_ext
12264 fi
12265 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12266 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12267 if test $ac_cv_func_dlopen = yes; then
12268   lt_cv_dlopen="dlopen"
12269 else
12270   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ldl  $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283
12284 /* Override any gcc2 internal prototype to avoid an error.  */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 /* We use char because int might match the return type of a gcc2
12289    builtin and then its argument prototype would still apply.  */
12290 char dlopen ();
12291 int
12292 main ()
12293 {
12294 dlopen ();
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301   (eval $ac_link) 2>conftest.er1
12302   ac_status=$?
12303   grep -v '^ *+' conftest.er1 >conftest.err
12304   rm -f conftest.er1
12305   cat conftest.err >&5
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); } &&
12308          { ac_try='test -z "$ac_cxx_werror_flag"
12309                          || test ! -s conftest.err'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; } &&
12315          { ac_try='test -s conftest$ac_exeext'
12316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317   (eval $ac_try) 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; }; then
12321   ac_cv_lib_dl_dlopen=yes
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_cv_lib_dl_dlopen=no
12327 fi
12328 rm -f conftest.err conftest.$ac_objext \
12329       conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12331 fi
12332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12334 if test $ac_cv_lib_dl_dlopen = yes; then
12335   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12336 else
12337   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12338 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-lsvld  $LIBS"
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350
12351 /* Override any gcc2 internal prototype to avoid an error.  */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 /* We use char because int might match the return type of a gcc2
12356    builtin and then its argument prototype would still apply.  */
12357 char dlopen ();
12358 int
12359 main ()
12360 {
12361 dlopen ();
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368   (eval $ac_link) 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -z "$ac_cxx_werror_flag"
12376                          || test ! -s conftest.err'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; } &&
12382          { ac_try='test -s conftest$ac_exeext'
12383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384   (eval $ac_try) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; }; then
12388   ac_cv_lib_svld_dlopen=yes
12389 else
12390   echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_cv_lib_svld_dlopen=no
12394 fi
12395 rm -f conftest.err conftest.$ac_objext \
12396       conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12400 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12401 if test $ac_cv_lib_svld_dlopen = yes; then
12402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12403 else
12404   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12405 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   ac_check_lib_save_LIBS=$LIBS
12410 LIBS="-ldld  $LIBS"
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417
12418 /* Override any gcc2 internal prototype to avoid an error.  */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 /* We use char because int might match the return type of a gcc2
12423    builtin and then its argument prototype would still apply.  */
12424 char dld_link ();
12425 int
12426 main ()
12427 {
12428 dld_link ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435   (eval $ac_link) 2>conftest.er1
12436   ac_status=$?
12437   grep -v '^ *+' conftest.er1 >conftest.err
12438   rm -f conftest.er1
12439   cat conftest.err >&5
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } &&
12442          { ac_try='test -z "$ac_cxx_werror_flag"
12443                          || test ! -s conftest.err'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; } &&
12449          { ac_try='test -s conftest$ac_exeext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_lib_dld_dld_link=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ac_cv_lib_dld_dld_link=no
12461 fi
12462 rm -f conftest.err conftest.$ac_objext \
12463       conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12465 fi
12466 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12467 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12468 if test $ac_cv_lib_dld_dld_link = yes; then
12469   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12470 fi
12471
12472
12473 fi
12474
12475
12476 fi
12477
12478
12479 fi
12480
12481
12482 fi
12483
12484
12485 fi
12486
12487     ;;
12488   esac
12489
12490   if test "x$lt_cv_dlopen" != xno; then
12491     enable_dlopen=yes
12492   else
12493     enable_dlopen=no
12494   fi
12495
12496   case $lt_cv_dlopen in
12497   dlopen)
12498     save_CPPFLAGS="$CPPFLAGS"
12499     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12500
12501     save_LDFLAGS="$LDFLAGS"
12502     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12503
12504     save_LIBS="$LIBS"
12505     LIBS="$lt_cv_dlopen_libs $LIBS"
12506
12507     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12508 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12509 if test "${lt_cv_dlopen_self+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512           if test "$cross_compiling" = yes; then :
12513   lt_cv_dlopen_self=cross
12514 else
12515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12516   lt_status=$lt_dlunknown
12517   cat > conftest.$ac_ext <<EOF
12518 #line 12518 "configure"
12519 #include "confdefs.h"
12520
12521 #if HAVE_DLFCN_H
12522 #include <dlfcn.h>
12523 #endif
12524
12525 #include <stdio.h>
12526
12527 #ifdef RTLD_GLOBAL
12528 #  define LT_DLGLOBAL           RTLD_GLOBAL
12529 #else
12530 #  ifdef DL_GLOBAL
12531 #    define LT_DLGLOBAL         DL_GLOBAL
12532 #  else
12533 #    define LT_DLGLOBAL         0
12534 #  endif
12535 #endif
12536
12537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12538    find out it does not work in some platform. */
12539 #ifndef LT_DLLAZY_OR_NOW
12540 #  ifdef RTLD_LAZY
12541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12542 #  else
12543 #    ifdef DL_LAZY
12544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12545 #    else
12546 #      ifdef RTLD_NOW
12547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12548 #      else
12549 #        ifdef DL_NOW
12550 #          define LT_DLLAZY_OR_NOW      DL_NOW
12551 #        else
12552 #          define LT_DLLAZY_OR_NOW      0
12553 #        endif
12554 #      endif
12555 #    endif
12556 #  endif
12557 #endif
12558
12559 #ifdef __cplusplus
12560 extern "C" void exit (int);
12561 #endif
12562
12563 void fnord() { int i=42;}
12564 int main ()
12565 {
12566   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12567   int status = $lt_dlunknown;
12568
12569   if (self)
12570     {
12571       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12572       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12573       /* dlclose (self); */
12574     }
12575
12576     exit (status);
12577 }
12578 EOF
12579   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580   (eval $ac_link) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12584     (./conftest; exit; ) 2>/dev/null
12585     lt_status=$?
12586     case x$lt_status in
12587       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12588       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12589       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12590     esac
12591   else :
12592     # compilation failed
12593     lt_cv_dlopen_self=no
12594   fi
12595 fi
12596 rm -fr conftest*
12597
12598
12599 fi
12600 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12601 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12602
12603     if test "x$lt_cv_dlopen_self" = xyes; then
12604       LDFLAGS="$LDFLAGS $link_static_flag"
12605       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12606 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12607 if test "${lt_cv_dlopen_self_static+set}" = set; then
12608   echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610           if test "$cross_compiling" = yes; then :
12611   lt_cv_dlopen_self_static=cross
12612 else
12613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614   lt_status=$lt_dlunknown
12615   cat > conftest.$ac_ext <<EOF
12616 #line 12616 "configure"
12617 #include "confdefs.h"
12618
12619 #if HAVE_DLFCN_H
12620 #include <dlfcn.h>
12621 #endif
12622
12623 #include <stdio.h>
12624
12625 #ifdef RTLD_GLOBAL
12626 #  define LT_DLGLOBAL           RTLD_GLOBAL
12627 #else
12628 #  ifdef DL_GLOBAL
12629 #    define LT_DLGLOBAL         DL_GLOBAL
12630 #  else
12631 #    define LT_DLGLOBAL         0
12632 #  endif
12633 #endif
12634
12635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636    find out it does not work in some platform. */
12637 #ifndef LT_DLLAZY_OR_NOW
12638 #  ifdef RTLD_LAZY
12639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12640 #  else
12641 #    ifdef DL_LAZY
12642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12643 #    else
12644 #      ifdef RTLD_NOW
12645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12646 #      else
12647 #        ifdef DL_NOW
12648 #          define LT_DLLAZY_OR_NOW      DL_NOW
12649 #        else
12650 #          define LT_DLLAZY_OR_NOW      0
12651 #        endif
12652 #      endif
12653 #    endif
12654 #  endif
12655 #endif
12656
12657 #ifdef __cplusplus
12658 extern "C" void exit (int);
12659 #endif
12660
12661 void fnord() { int i=42;}
12662 int main ()
12663 {
12664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665   int status = $lt_dlunknown;
12666
12667   if (self)
12668     {
12669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12670       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12671       /* dlclose (self); */
12672     }
12673
12674     exit (status);
12675 }
12676 EOF
12677   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678   (eval $ac_link) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12682     (./conftest; exit; ) 2>/dev/null
12683     lt_status=$?
12684     case x$lt_status in
12685       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12686       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12687       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12688     esac
12689   else :
12690     # compilation failed
12691     lt_cv_dlopen_self_static=no
12692   fi
12693 fi
12694 rm -fr conftest*
12695
12696
12697 fi
12698 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12699 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12700     fi
12701
12702     CPPFLAGS="$save_CPPFLAGS"
12703     LDFLAGS="$save_LDFLAGS"
12704     LIBS="$save_LIBS"
12705     ;;
12706   esac
12707
12708   case $lt_cv_dlopen_self in
12709   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12710   *) enable_dlopen_self=unknown ;;
12711   esac
12712
12713   case $lt_cv_dlopen_self_static in
12714   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12715   *) enable_dlopen_self_static=unknown ;;
12716   esac
12717 fi
12718
12719
12720 # The else clause should only fire when bootstrapping the
12721 # libtool distribution, otherwise you forgot to ship ltmain.sh
12722 # with your package, and you will get complaints that there are
12723 # no rules to generate ltmain.sh.
12724 if test -f "$ltmain"; then
12725   # See if we are running on zsh, and set the options which allow our commands through
12726   # without removal of \ escapes.
12727   if test -n "${ZSH_VERSION+set}" ; then
12728     setopt NO_GLOB_SUBST
12729   fi
12730   # Now quote all the things that may contain metacharacters while being
12731   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12732   # variables and quote the copies for generation of the libtool script.
12733   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12734     SED SHELL STRIP \
12735     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12736     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12737     deplibs_check_method reload_flag reload_cmds need_locks \
12738     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12739     lt_cv_sys_global_symbol_to_c_name_address \
12740     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12741     old_postinstall_cmds old_postuninstall_cmds \
12742     compiler_CXX \
12743     CC_CXX \
12744     LD_CXX \
12745     lt_prog_compiler_wl_CXX \
12746     lt_prog_compiler_pic_CXX \
12747     lt_prog_compiler_static_CXX \
12748     lt_prog_compiler_no_builtin_flag_CXX \
12749     export_dynamic_flag_spec_CXX \
12750     thread_safe_flag_spec_CXX \
12751     whole_archive_flag_spec_CXX \
12752     enable_shared_with_static_runtimes_CXX \
12753     old_archive_cmds_CXX \
12754     old_archive_from_new_cmds_CXX \
12755     predep_objects_CXX \
12756     postdep_objects_CXX \
12757     predeps_CXX \
12758     postdeps_CXX \
12759     compiler_lib_search_path_CXX \
12760     archive_cmds_CXX \
12761     archive_expsym_cmds_CXX \
12762     postinstall_cmds_CXX \
12763     postuninstall_cmds_CXX \
12764     old_archive_from_expsyms_cmds_CXX \
12765     allow_undefined_flag_CXX \
12766     no_undefined_flag_CXX \
12767     export_symbols_cmds_CXX \
12768     hardcode_libdir_flag_spec_CXX \
12769     hardcode_libdir_flag_spec_ld_CXX \
12770     hardcode_libdir_separator_CXX \
12771     hardcode_automatic_CXX \
12772     module_cmds_CXX \
12773     module_expsym_cmds_CXX \
12774     lt_cv_prog_compiler_c_o_CXX \
12775     exclude_expsyms_CXX \
12776     include_expsyms_CXX; do
12777
12778     case $var in
12779     old_archive_cmds_CXX | \
12780     old_archive_from_new_cmds_CXX | \
12781     archive_cmds_CXX | \
12782     archive_expsym_cmds_CXX | \
12783     module_cmds_CXX | \
12784     module_expsym_cmds_CXX | \
12785     old_archive_from_expsyms_cmds_CXX | \
12786     export_symbols_cmds_CXX | \
12787     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12788     postinstall_cmds | postuninstall_cmds | \
12789     old_postinstall_cmds | old_postuninstall_cmds | \
12790     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12791       # Double-quote double-evaled strings.
12792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12793       ;;
12794     *)
12795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12796       ;;
12797     esac
12798   done
12799
12800   case $lt_echo in
12801   *'\$0 --fallback-echo"')
12802     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12803     ;;
12804   esac
12805
12806 cfgfile="$ofile"
12807
12808   cat <<__EOF__ >> "$cfgfile"
12809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12810
12811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12812
12813 # Shell to use when invoking shell scripts.
12814 SHELL=$lt_SHELL
12815
12816 # Whether or not to build shared libraries.
12817 build_libtool_libs=$enable_shared
12818
12819 # Whether or not to build static libraries.
12820 build_old_libs=$enable_static
12821
12822 # Whether or not to add -lc for building shared libraries.
12823 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12824
12825 # Whether or not to disallow shared libs when runtime libs are static
12826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12827
12828 # Whether or not to optimize for fast installation.
12829 fast_install=$enable_fast_install
12830
12831 # The host system.
12832 host_alias=$host_alias
12833 host=$host
12834
12835 # An echo program that does not interpret backslashes.
12836 echo=$lt_echo
12837
12838 # The archiver.
12839 AR=$lt_AR
12840 AR_FLAGS=$lt_AR_FLAGS
12841
12842 # A C compiler.
12843 LTCC=$lt_LTCC
12844
12845 # A language-specific compiler.
12846 CC=$lt_compiler_CXX
12847
12848 # Is the compiler the GNU C compiler?
12849 with_gcc=$GCC_CXX
12850
12851 # An ERE matcher.
12852 EGREP=$lt_EGREP
12853
12854 # The linker used to build libraries.
12855 LD=$lt_LD_CXX
12856
12857 # Whether we need hard or soft links.
12858 LN_S=$lt_LN_S
12859
12860 # A BSD-compatible nm program.
12861 NM=$lt_NM
12862
12863 # A symbol stripping program
12864 STRIP=$lt_STRIP
12865
12866 # Used to examine libraries when file_magic_cmd begins "file"
12867 MAGIC_CMD=$MAGIC_CMD
12868
12869 # Used on cygwin: DLL creation program.
12870 DLLTOOL="$DLLTOOL"
12871
12872 # Used on cygwin: object dumper.
12873 OBJDUMP="$OBJDUMP"
12874
12875 # Used on cygwin: assembler.
12876 AS="$AS"
12877
12878 # The name of the directory that contains temporary libtool files.
12879 objdir=$objdir
12880
12881 # How to create reloadable object files.
12882 reload_flag=$lt_reload_flag
12883 reload_cmds=$lt_reload_cmds
12884
12885 # How to pass a linker flag through the compiler.
12886 wl=$lt_lt_prog_compiler_wl_CXX
12887
12888 # Object file suffix (normally "o").
12889 objext="$ac_objext"
12890
12891 # Old archive suffix (normally "a").
12892 libext="$libext"
12893
12894 # Shared library suffix (normally ".so").
12895 shrext_cmds='$shrext_cmds'
12896
12897 # Executable file suffix (normally "").
12898 exeext="$exeext"
12899
12900 # Additional compiler flags for building library objects.
12901 pic_flag=$lt_lt_prog_compiler_pic_CXX
12902 pic_mode=$pic_mode
12903
12904 # What is the maximum length of a command?
12905 max_cmd_len=$lt_cv_sys_max_cmd_len
12906
12907 # Does compiler simultaneously support -c and -o options?
12908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12909
12910 # Must we lock files when doing compilation ?
12911 need_locks=$lt_need_locks
12912
12913 # Do we need the lib prefix for modules?
12914 need_lib_prefix=$need_lib_prefix
12915
12916 # Do we need a version for libraries?
12917 need_version=$need_version
12918
12919 # Whether dlopen is supported.
12920 dlopen_support=$enable_dlopen
12921
12922 # Whether dlopen of programs is supported.
12923 dlopen_self=$enable_dlopen_self
12924
12925 # Whether dlopen of statically linked programs is supported.
12926 dlopen_self_static=$enable_dlopen_self_static
12927
12928 # Compiler flag to prevent dynamic linking.
12929 link_static_flag=$lt_lt_prog_compiler_static_CXX
12930
12931 # Compiler flag to turn off builtin functions.
12932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12933
12934 # Compiler flag to allow reflexive dlopens.
12935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12936
12937 # Compiler flag to generate shared objects directly from archives.
12938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12939
12940 # Compiler flag to generate thread-safe objects.
12941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12942
12943 # Library versioning type.
12944 version_type=$version_type
12945
12946 # Format of library name prefix.
12947 libname_spec=$lt_libname_spec
12948
12949 # List of archive names.  First name is the real one, the rest are links.
12950 # The last name is the one that the linker finds with -lNAME.
12951 library_names_spec=$lt_library_names_spec
12952
12953 # The coded name of the library, if different from the real name.
12954 soname_spec=$lt_soname_spec
12955
12956 # Commands used to build and install an old-style archive.
12957 RANLIB=$lt_RANLIB
12958 old_archive_cmds=$lt_old_archive_cmds_CXX
12959 old_postinstall_cmds=$lt_old_postinstall_cmds
12960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12961
12962 # Create an old-style archive from a shared archive.
12963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12964
12965 # Create a temporary old-style archive to link instead of a shared archive.
12966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12967
12968 # Commands used to build and install a shared archive.
12969 archive_cmds=$lt_archive_cmds_CXX
12970 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12971 postinstall_cmds=$lt_postinstall_cmds
12972 postuninstall_cmds=$lt_postuninstall_cmds
12973
12974 # Commands used to build a loadable module (assumed same as above if empty)
12975 module_cmds=$lt_module_cmds_CXX
12976 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12977
12978 # Commands to strip libraries.
12979 old_striplib=$lt_old_striplib
12980 striplib=$lt_striplib
12981
12982 # Dependencies to place before the objects being linked to create a
12983 # shared library.
12984 predep_objects=$lt_predep_objects_CXX
12985
12986 # Dependencies to place after the objects being linked to create a
12987 # shared library.
12988 postdep_objects=$lt_postdep_objects_CXX
12989
12990 # Dependencies to place before the objects being linked to create a
12991 # shared library.
12992 predeps=$lt_predeps_CXX
12993
12994 # Dependencies to place after the objects being linked to create a
12995 # shared library.
12996 postdeps=$lt_postdeps_CXX
12997
12998 # The library search path used internally by the compiler when linking
12999 # a shared library.
13000 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13001
13002 # Method to check whether dependent libraries are shared objects.
13003 deplibs_check_method=$lt_deplibs_check_method
13004
13005 # Command to use when deplibs_check_method == file_magic.
13006 file_magic_cmd=$lt_file_magic_cmd
13007
13008 # Flag that allows shared libraries with undefined symbols to be built.
13009 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13010
13011 # Flag that forces no undefined symbols.
13012 no_undefined_flag=$lt_no_undefined_flag_CXX
13013
13014 # Commands used to finish a libtool library installation in a directory.
13015 finish_cmds=$lt_finish_cmds
13016
13017 # Same as above, but a single script fragment to be evaled but not shown.
13018 finish_eval=$lt_finish_eval
13019
13020 # Take the output of nm and produce a listing of raw symbols and C names.
13021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13022
13023 # Transform the output of nm in a proper C declaration
13024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13025
13026 # Transform the output of nm in a C name address pair
13027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13028
13029 # This is the shared library runtime path variable.
13030 runpath_var=$runpath_var
13031
13032 # This is the shared library path variable.
13033 shlibpath_var=$shlibpath_var
13034
13035 # Is shlibpath searched before the hard-coded library search path?
13036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13037
13038 # How to hardcode a shared library path into an executable.
13039 hardcode_action=$hardcode_action_CXX
13040
13041 # Whether we should hardcode library paths into libraries.
13042 hardcode_into_libs=$hardcode_into_libs
13043
13044 # Flag to hardcode \$libdir into a binary during linking.
13045 # This must work even if \$libdir does not exist.
13046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13047
13048 # If ld is used when linking, flag to hardcode \$libdir into
13049 # a binary during linking. This must work even if \$libdir does
13050 # not exist.
13051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13052
13053 # Whether we need a single -rpath flag with a separated argument.
13054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13055
13056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13057 # resulting binary.
13058 hardcode_direct=$hardcode_direct_CXX
13059
13060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13061 # resulting binary.
13062 hardcode_minus_L=$hardcode_minus_L_CXX
13063
13064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13065 # the resulting binary.
13066 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13067
13068 # Set to yes if building a shared library automatically hardcodes DIR into the library
13069 # and all subsequent libraries and executables linked against it.
13070 hardcode_automatic=$hardcode_automatic_CXX
13071
13072 # Variables whose values should be saved in libtool wrapper scripts and
13073 # restored at relink time.
13074 variables_saved_for_relink="$variables_saved_for_relink"
13075
13076 # Whether libtool must link a program against all its dependency libraries.
13077 link_all_deplibs=$link_all_deplibs_CXX
13078
13079 # Compile-time system search path for libraries
13080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13081
13082 # Run-time system search path for libraries
13083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13084
13085 # Fix the shell variable \$srcfile for the compiler.
13086 fix_srcfile_path="$fix_srcfile_path_CXX"
13087
13088 # Set to yes if exported symbols are required.
13089 always_export_symbols=$always_export_symbols_CXX
13090
13091 # The commands to list exported symbols.
13092 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13093
13094 # The commands to extract the exported symbol list from a shared archive.
13095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13096
13097 # Symbols that should not be listed in the preloaded symbols.
13098 exclude_expsyms=$lt_exclude_expsyms_CXX
13099
13100 # Symbols that must always be exported.
13101 include_expsyms=$lt_include_expsyms_CXX
13102
13103 # ### END LIBTOOL TAG CONFIG: $tagname
13104
13105 __EOF__
13106
13107
13108 else
13109   # If there is no Makefile yet, we rely on a make rule to execute
13110   # `config.status --recheck' to rerun these tests and create the
13111   # libtool script then.
13112   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13113   if test -f "$ltmain_in"; then
13114     test -f Makefile && make "$ltmain"
13115   fi
13116 fi
13117
13118
13119 ac_ext=c
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13124
13125 CC=$lt_save_CC
13126 LDCXX=$LD
13127 LD=$lt_save_LD
13128 GCC=$lt_save_GCC
13129 with_gnu_ldcxx=$with_gnu_ld
13130 with_gnu_ld=$lt_save_with_gnu_ld
13131 lt_cv_path_LDCXX=$lt_cv_path_LD
13132 lt_cv_path_LD=$lt_save_path_LD
13133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13135
13136         else
13137           tagname=""
13138         fi
13139         ;;
13140
13141       F77)
13142         if test -n "$F77" && test "X$F77" != "Xno"; then
13143
13144 ac_ext=f
13145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13148
13149
13150 archive_cmds_need_lc_F77=no
13151 allow_undefined_flag_F77=
13152 always_export_symbols_F77=no
13153 archive_expsym_cmds_F77=
13154 export_dynamic_flag_spec_F77=
13155 hardcode_direct_F77=no
13156 hardcode_libdir_flag_spec_F77=
13157 hardcode_libdir_flag_spec_ld_F77=
13158 hardcode_libdir_separator_F77=
13159 hardcode_minus_L_F77=no
13160 hardcode_automatic_F77=no
13161 module_cmds_F77=
13162 module_expsym_cmds_F77=
13163 link_all_deplibs_F77=unknown
13164 old_archive_cmds_F77=$old_archive_cmds
13165 no_undefined_flag_F77=
13166 whole_archive_flag_spec_F77=
13167 enable_shared_with_static_runtimes_F77=no
13168
13169 # Source file extension for f77 test sources.
13170 ac_ext=f
13171
13172 # Object file extension for compiled f77 test sources.
13173 objext=o
13174 objext_F77=$objext
13175
13176 # Code to be used in simple compile tests
13177 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13178
13179 # Code to be used in simple link tests
13180 lt_simple_link_test_code="      program t\n      end\n"
13181
13182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13183
13184 # If no C compiler was specified, use CC.
13185 LTCC=${LTCC-"$CC"}
13186
13187 # Allow CC to be a program name with arguments.
13188 compiler=$CC
13189
13190
13191 # Allow CC to be a program name with arguments.
13192 lt_save_CC="$CC"
13193 CC=${F77-"f77"}
13194 compiler=$CC
13195 compiler_F77=$CC
13196 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13197
13198 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13199 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13200 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13201 echo "${ECHO_T}$can_build_shared" >&6
13202
13203 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13204 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13205 test "$can_build_shared" = "no" && enable_shared=no
13206
13207 # On AIX, shared libraries and static libraries use the same namespace, and
13208 # are all built from PIC.
13209 case "$host_os" in
13210 aix3*)
13211   test "$enable_shared" = yes && enable_static=no
13212   if test -n "$RANLIB"; then
13213     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13214     postinstall_cmds='$RANLIB $lib'
13215   fi
13216   ;;
13217 aix4* | aix5*)
13218   test "$enable_shared" = yes && enable_static=no
13219   ;;
13220 esac
13221 echo "$as_me:$LINENO: result: $enable_shared" >&5
13222 echo "${ECHO_T}$enable_shared" >&6
13223
13224 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13226 # Make sure either enable_shared or enable_static is yes.
13227 test "$enable_shared" = yes || enable_static=yes
13228 echo "$as_me:$LINENO: result: $enable_static" >&5
13229 echo "${ECHO_T}$enable_static" >&6
13230
13231 test "$ld_shlibs_F77" = no && can_build_shared=no
13232
13233 GCC_F77="$G77"
13234 LD_F77="$LD"
13235
13236 lt_prog_compiler_wl_F77=
13237 lt_prog_compiler_pic_F77=
13238 lt_prog_compiler_static_F77=
13239
13240 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13241 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13242
13243   if test "$GCC" = yes; then
13244     lt_prog_compiler_wl_F77='-Wl,'
13245     lt_prog_compiler_static_F77='-static'
13246
13247     case $host_os in
13248       aix*)
13249       # All AIX code is PIC.
13250       if test "$host_cpu" = ia64; then
13251         # AIX 5 now supports IA64 processor
13252         lt_prog_compiler_static_F77='-Bstatic'
13253       fi
13254       ;;
13255
13256     amigaos*)
13257       # FIXME: we need at least 68020 code to build shared libraries, but
13258       # adding the `-m68020' flag to GCC prevents building anything better,
13259       # like `-m68040'.
13260       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13261       ;;
13262
13263     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13264       # PIC is the default for these OSes.
13265       ;;
13266
13267     mingw* | pw32* | os2*)
13268       # This hack is so that the source file can tell whether it is being
13269       # built for inclusion in a dll (and should export symbols for example).
13270       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13271       ;;
13272
13273     darwin* | rhapsody*)
13274       # PIC is the default on this platform
13275       # Common symbols not allowed in MH_DYLIB files
13276       lt_prog_compiler_pic_F77='-fno-common'
13277       ;;
13278
13279     msdosdjgpp*)
13280       # Just because we use GCC doesn't mean we suddenly get shared libraries
13281       # on systems that don't support them.
13282       lt_prog_compiler_can_build_shared_F77=no
13283       enable_shared=no
13284       ;;
13285
13286     sysv4*MP*)
13287       if test -d /usr/nec; then
13288         lt_prog_compiler_pic_F77=-Kconform_pic
13289       fi
13290       ;;
13291
13292     hpux*)
13293       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13294       # not for PA HP-UX.
13295       case "$host_cpu" in
13296       hppa*64*|ia64*)
13297         # +Z the default
13298         ;;
13299       *)
13300         lt_prog_compiler_pic_F77='-fPIC'
13301         ;;
13302       esac
13303       ;;
13304
13305     *)
13306       lt_prog_compiler_pic_F77='-fPIC'
13307       ;;
13308     esac
13309   else
13310     # PORTME Check for flag to pass linker flags through the system compiler.
13311     case $host_os in
13312     aix*)
13313       lt_prog_compiler_wl_F77='-Wl,'
13314       if test "$host_cpu" = ia64; then
13315         # AIX 5 now supports IA64 processor
13316         lt_prog_compiler_static_F77='-Bstatic'
13317       else
13318         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13319       fi
13320       ;;
13321
13322     mingw* | pw32* | os2*)
13323       # This hack is so that the source file can tell whether it is being
13324       # built for inclusion in a dll (and should export symbols for example).
13325       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13326       ;;
13327
13328     hpux9* | hpux10* | hpux11*)
13329       lt_prog_compiler_wl_F77='-Wl,'
13330       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13331       # not for PA HP-UX.
13332       case "$host_cpu" in
13333       hppa*64*|ia64*)
13334         # +Z the default
13335         ;;
13336       *)
13337         lt_prog_compiler_pic_F77='+Z'
13338         ;;
13339       esac
13340       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13341       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13342       ;;
13343
13344     irix5* | irix6* | nonstopux*)
13345       lt_prog_compiler_wl_F77='-Wl,'
13346       # PIC (with -KPIC) is the default.
13347       lt_prog_compiler_static_F77='-non_shared'
13348       ;;
13349
13350     newsos6)
13351       lt_prog_compiler_pic_F77='-KPIC'
13352       lt_prog_compiler_static_F77='-Bstatic'
13353       ;;
13354
13355     linux*)
13356       case $CC in
13357       icc* | ecc*)
13358         lt_prog_compiler_wl_F77='-Wl,'
13359         lt_prog_compiler_pic_F77='-KPIC'
13360         lt_prog_compiler_static_F77='-static'
13361         ;;
13362       ccc*)
13363         lt_prog_compiler_wl_F77='-Wl,'
13364         # All Alpha code is PIC.
13365         lt_prog_compiler_static_F77='-non_shared'
13366         ;;
13367       esac
13368       ;;
13369
13370     osf3* | osf4* | osf5*)
13371       lt_prog_compiler_wl_F77='-Wl,'
13372       # All OSF/1 code is PIC.
13373       lt_prog_compiler_static_F77='-non_shared'
13374       ;;
13375
13376     sco3.2v5*)
13377       lt_prog_compiler_pic_F77='-Kpic'
13378       lt_prog_compiler_static_F77='-dn'
13379       ;;
13380
13381     solaris*)
13382       lt_prog_compiler_wl_F77='-Wl,'
13383       lt_prog_compiler_pic_F77='-KPIC'
13384       lt_prog_compiler_static_F77='-Bstatic'
13385       ;;
13386
13387     sunos4*)
13388       lt_prog_compiler_wl_F77='-Qoption ld '
13389       lt_prog_compiler_pic_F77='-PIC'
13390       lt_prog_compiler_static_F77='-Bstatic'
13391       ;;
13392
13393     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13394       lt_prog_compiler_wl_F77='-Wl,'
13395       lt_prog_compiler_pic_F77='-KPIC'
13396       lt_prog_compiler_static_F77='-Bstatic'
13397       ;;
13398
13399     sysv4*MP*)
13400       if test -d /usr/nec ;then
13401         lt_prog_compiler_pic_F77='-Kconform_pic'
13402         lt_prog_compiler_static_F77='-Bstatic'
13403       fi
13404       ;;
13405
13406     uts4*)
13407       lt_prog_compiler_pic_F77='-pic'
13408       lt_prog_compiler_static_F77='-Bstatic'
13409       ;;
13410
13411     *)
13412       lt_prog_compiler_can_build_shared_F77=no
13413       ;;
13414     esac
13415   fi
13416
13417 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13418 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13419
13420 #
13421 # Check to make sure the PIC flag actually works.
13422 #
13423 if test -n "$lt_prog_compiler_pic_F77"; then
13424
13425 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13426 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13427 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   lt_prog_compiler_pic_works_F77=no
13431   ac_outfile=conftest.$ac_objext
13432    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13433    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13434    # Insert the option either (1) after the last *FLAGS variable, or
13435    # (2) before a word containing "conftest.", or (3) at the end.
13436    # Note that $ac_compile itself does not contain backslashes and begins
13437    # with a dollar sign (not a hyphen), so the echo should work correctly.
13438    # The option is referenced via a variable to avoid confusing sed.
13439    lt_compile=`echo "$ac_compile" | $SED \
13440    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13442    -e 's:$: $lt_compiler_flag:'`
13443    (eval echo "\"\$as_me:13443: $lt_compile\"" >&5)
13444    (eval "$lt_compile" 2>conftest.err)
13445    ac_status=$?
13446    cat conftest.err >&5
13447    echo "$as_me:13447: \$? = $ac_status" >&5
13448    if (exit $ac_status) && test -s "$ac_outfile"; then
13449      # The compiler can only warn and ignore the option if not recognized
13450      # So say no if there are warnings
13451      if test ! -s conftest.err; then
13452        lt_prog_compiler_pic_works_F77=yes
13453      fi
13454    fi
13455    $rm conftest*
13456
13457 fi
13458 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13459 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13460
13461 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13462     case $lt_prog_compiler_pic_F77 in
13463      "" | " "*) ;;
13464      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13465      esac
13466 else
13467     lt_prog_compiler_pic_F77=
13468      lt_prog_compiler_can_build_shared_F77=no
13469 fi
13470
13471 fi
13472 case "$host_os" in
13473   # For platforms which do not support PIC, -DPIC is meaningless:
13474   *djgpp*)
13475     lt_prog_compiler_pic_F77=
13476     ;;
13477   *)
13478     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13479     ;;
13480 esac
13481
13482 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13483 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13484 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487   lt_cv_prog_compiler_c_o_F77=no
13488    $rm -r conftest 2>/dev/null
13489    mkdir conftest
13490    cd conftest
13491    mkdir out
13492    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13493
13494    lt_compiler_flag="-o out/conftest2.$ac_objext"
13495    # Insert the option either (1) after the last *FLAGS variable, or
13496    # (2) before a word containing "conftest.", or (3) at the end.
13497    # Note that $ac_compile itself does not contain backslashes and begins
13498    # with a dollar sign (not a hyphen), so the echo should work correctly.
13499    lt_compile=`echo "$ac_compile" | $SED \
13500    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13501    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13502    -e 's:$: $lt_compiler_flag:'`
13503    (eval echo "\"\$as_me:13503: $lt_compile\"" >&5)
13504    (eval "$lt_compile" 2>out/conftest.err)
13505    ac_status=$?
13506    cat out/conftest.err >&5
13507    echo "$as_me:13507: \$? = $ac_status" >&5
13508    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13509    then
13510      # The compiler can only warn and ignore the option if not recognized
13511      # So say no if there are warnings
13512      if test ! -s out/conftest.err; then
13513        lt_cv_prog_compiler_c_o_F77=yes
13514      fi
13515    fi
13516    chmod u+w .
13517    $rm conftest*
13518    # SGI C++ compiler will create directory out/ii_files/ for
13519    # template instantiation
13520    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13521    $rm out/* && rmdir out
13522    cd ..
13523    rmdir conftest
13524    $rm conftest*
13525
13526 fi
13527 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13529
13530
13531 hard_links="nottested"
13532 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13533   # do not overwrite the value of need_locks provided by the user
13534   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13536   hard_links=yes
13537   $rm conftest*
13538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539   touch conftest.a
13540   ln conftest.a conftest.b 2>&5 || hard_links=no
13541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13542   echo "$as_me:$LINENO: result: $hard_links" >&5
13543 echo "${ECHO_T}$hard_links" >&6
13544   if test "$hard_links" = no; then
13545     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13547     need_locks=warn
13548   fi
13549 else
13550   need_locks=no
13551 fi
13552
13553 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13555
13556   runpath_var=
13557   allow_undefined_flag_F77=
13558   enable_shared_with_static_runtimes_F77=no
13559   archive_cmds_F77=
13560   archive_expsym_cmds_F77=
13561   old_archive_From_new_cmds_F77=
13562   old_archive_from_expsyms_cmds_F77=
13563   export_dynamic_flag_spec_F77=
13564   whole_archive_flag_spec_F77=
13565   thread_safe_flag_spec_F77=
13566   hardcode_libdir_flag_spec_F77=
13567   hardcode_libdir_flag_spec_ld_F77=
13568   hardcode_libdir_separator_F77=
13569   hardcode_direct_F77=no
13570   hardcode_minus_L_F77=no
13571   hardcode_shlibpath_var_F77=unsupported
13572   link_all_deplibs_F77=unknown
13573   hardcode_automatic_F77=no
13574   module_cmds_F77=
13575   module_expsym_cmds_F77=
13576   always_export_symbols_F77=no
13577   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13578   # include_expsyms should be a list of space-separated symbols to be *always*
13579   # included in the symbol list
13580   include_expsyms_F77=
13581   # exclude_expsyms can be an extended regexp of symbols to exclude
13582   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13583   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13584   # as well as any symbol that contains `d'.
13585   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13586   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13587   # platforms (ab)use it in PIC code, but their linkers get confused if
13588   # the symbol is explicitly referenced.  Since portable code cannot
13589   # rely on this symbol name, it's probably fine to never include it in
13590   # preloaded symbol tables.
13591   extract_expsyms_cmds=
13592
13593   case $host_os in
13594   cygwin* | mingw* | pw32*)
13595     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13596     # When not using gcc, we currently assume that we are using
13597     # Microsoft Visual C++.
13598     if test "$GCC" != yes; then
13599       with_gnu_ld=no
13600     fi
13601     ;;
13602   openbsd*)
13603     with_gnu_ld=no
13604     ;;
13605   esac
13606
13607   ld_shlibs_F77=yes
13608   if test "$with_gnu_ld" = yes; then
13609     # If archive_cmds runs LD, not CC, wlarc should be empty
13610     wlarc='${wl}'
13611
13612     # See if GNU ld supports shared libraries.
13613     case $host_os in
13614     aix3* | aix4* | aix5*)
13615       # On AIX/PPC, the GNU linker is very broken
13616       if test "$host_cpu" != ia64; then
13617         ld_shlibs_F77=no
13618         cat <<EOF 1>&2
13619
13620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13621 *** to be unable to reliably create shared libraries on AIX.
13622 *** Therefore, libtool is disabling shared libraries support.  If you
13623 *** really care for shared libraries, you may want to modify your PATH
13624 *** so that a non-GNU linker is found, and then restart.
13625
13626 EOF
13627       fi
13628       ;;
13629
13630     amigaos*)
13631       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)'
13632       hardcode_libdir_flag_spec_F77='-L$libdir'
13633       hardcode_minus_L_F77=yes
13634
13635       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13636       # that the semantics of dynamic libraries on AmigaOS, at least up
13637       # to version 4, is to share data among multiple programs linked
13638       # with the same dynamic library.  Since this doesn't match the
13639       # behavior of shared libraries on other platforms, we can't use
13640       # them.
13641       ld_shlibs_F77=no
13642       ;;
13643
13644     beos*)
13645       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13646         allow_undefined_flag_F77=unsupported
13647         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13648         # support --undefined.  This deserves some investigation.  FIXME
13649         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13650       else
13651         ld_shlibs_F77=no
13652       fi
13653       ;;
13654
13655     cygwin* | mingw* | pw32*)
13656       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13657       # as there is no search path for DLLs.
13658       hardcode_libdir_flag_spec_F77='-L$libdir'
13659       allow_undefined_flag_F77=unsupported
13660       always_export_symbols_F77=no
13661       enable_shared_with_static_runtimes_F77=yes
13662       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13663
13664       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13665         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13666         # If the export-symbols file already is a .def file (1st line
13667         # is EXPORTS), use it as is; otherwise, prepend...
13668         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13669           cp $export_symbols $output_objdir/$soname.def;
13670         else
13671           echo EXPORTS > $output_objdir/$soname.def;
13672           cat $export_symbols >> $output_objdir/$soname.def;
13673         fi~
13674         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13675       else
13676         ld_shlibs=no
13677       fi
13678       ;;
13679
13680     netbsd*)
13681       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13682         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13683         wlarc=
13684       else
13685         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13686         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13687       fi
13688       ;;
13689
13690     solaris* | sysv5*)
13691       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13692         ld_shlibs_F77=no
13693         cat <<EOF 1>&2
13694
13695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13696 *** create shared libraries on Solaris systems.  Therefore, libtool
13697 *** is disabling shared libraries support.  We urge you to upgrade GNU
13698 *** binutils to release 2.9.1 or newer.  Another option is to modify
13699 *** your PATH or compiler configuration so that the native linker is
13700 *** used, and then restart.
13701
13702 EOF
13703       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13704         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13705         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13706       else
13707         ld_shlibs_F77=no
13708       fi
13709       ;;
13710
13711     sunos4*)
13712       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13713       wlarc=
13714       hardcode_direct_F77=yes
13715       hardcode_shlibpath_var_F77=no
13716       ;;
13717
13718   linux*)
13719     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13720         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13721         archive_cmds_F77="$tmp_archive_cmds"
13722       supports_anon_versioning=no
13723       case `$LD -v 2>/dev/null` in
13724         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13725         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13726         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13727         *\ 2.11.*) ;; # other 2.11 versions
13728         *) supports_anon_versioning=yes ;;
13729       esac
13730       if test $supports_anon_versioning = yes; then
13731         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13733 $echo "local: *; };" >> $output_objdir/$libname.ver~
13734         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13735       else
13736         archive_expsym_cmds_F77="$tmp_archive_cmds"
13737       fi
13738     else
13739       ld_shlibs_F77=no
13740     fi
13741     ;;
13742
13743     *)
13744       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13745         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13746         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13747       else
13748         ld_shlibs_F77=no
13749       fi
13750       ;;
13751     esac
13752
13753     if test "$ld_shlibs_F77" = yes; then
13754       runpath_var=LD_RUN_PATH
13755       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13756       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13757       # ancient GNU ld didn't support --whole-archive et. al.
13758       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13759         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13760       else
13761         whole_archive_flag_spec_F77=
13762       fi
13763     fi
13764   else
13765     # PORTME fill in a description of your system's linker (not GNU ld)
13766     case $host_os in
13767     aix3*)
13768       allow_undefined_flag_F77=unsupported
13769       always_export_symbols_F77=yes
13770       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'
13771       # Note: this linker hardcodes the directories in LIBPATH if there
13772       # are no directories specified by -L.
13773       hardcode_minus_L_F77=yes
13774       if test "$GCC" = yes && test -z "$link_static_flag"; then
13775         # Neither direct hardcoding nor static linking is supported with a
13776         # broken collect2.
13777         hardcode_direct_F77=unsupported
13778       fi
13779       ;;
13780
13781     aix4* | aix5*)
13782       if test "$host_cpu" = ia64; then
13783         # On IA64, the linker does run time linking by default, so we don't
13784         # have to do anything special.
13785         aix_use_runtimelinking=no
13786         exp_sym_flag='-Bexport'
13787         no_entry_flag=""
13788       else
13789         # If we're using GNU nm, then we don't want the "-C" option.
13790         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13791         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13792           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'
13793         else
13794           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'
13795         fi
13796         aix_use_runtimelinking=no
13797
13798         # Test if we are trying to use run time linking or normal
13799         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13800         # need to do runtime linking.
13801         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13802           for ld_flag in $LDFLAGS; do
13803           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13804             aix_use_runtimelinking=yes
13805             break
13806           fi
13807           done
13808         esac
13809
13810         exp_sym_flag='-bexport'
13811         no_entry_flag='-bnoentry'
13812       fi
13813
13814       # When large executables or shared objects are built, AIX ld can
13815       # have problems creating the table of contents.  If linking a library
13816       # or program results in "error TOC overflow" add -mminimal-toc to
13817       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13818       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13819
13820       archive_cmds_F77=''
13821       hardcode_direct_F77=yes
13822       hardcode_libdir_separator_F77=':'
13823       link_all_deplibs_F77=yes
13824
13825       if test "$GCC" = yes; then
13826         case $host_os in aix4.012|aix4.012.*)
13827         # We only want to do this on AIX 4.2 and lower, the check
13828         # below for broken collect2 doesn't work under 4.3+
13829           collect2name=`${CC} -print-prog-name=collect2`
13830           if test -f "$collect2name" && \
13831            strings "$collect2name" | grep resolve_lib_name >/dev/null
13832           then
13833           # We have reworked collect2
13834           hardcode_direct_F77=yes
13835           else
13836           # We have old collect2
13837           hardcode_direct_F77=unsupported
13838           # It fails to find uninstalled libraries when the uninstalled
13839           # path is not listed in the libpath.  Setting hardcode_minus_L
13840           # to unsupported forces relinking
13841           hardcode_minus_L_F77=yes
13842           hardcode_libdir_flag_spec_F77='-L$libdir'
13843           hardcode_libdir_separator_F77=
13844           fi
13845         esac
13846         shared_flag='-shared'
13847       else
13848         # not using gcc
13849         if test "$host_cpu" = ia64; then
13850         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13851         # chokes on -Wl,-G. The following line is correct:
13852           shared_flag='-G'
13853         else
13854         if test "$aix_use_runtimelinking" = yes; then
13855             shared_flag='${wl}-G'
13856           else
13857             shared_flag='${wl}-bM:SRE'
13858         fi
13859         fi
13860       fi
13861
13862       # It seems that -bexpall does not export symbols beginning with
13863       # underscore (_), so it is better to generate a list of symbols to export.
13864       always_export_symbols_F77=yes
13865       if test "$aix_use_runtimelinking" = yes; then
13866         # Warning - without using the other runtime loading flags (-brtl),
13867         # -berok will link without error, but may produce a broken library.
13868         allow_undefined_flag_F77='-berok'
13869        # Determine the default libpath from the value encoded in an empty executable.
13870        cat >conftest.$ac_ext <<_ACEOF
13871       program main
13872
13873       end
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877   (eval $ac_link) 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -z "$ac_f77_werror_flag"
13885                          || test ! -s conftest.err'
13886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887   (eval $ac_try) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; } &&
13891          { ac_try='test -s conftest$ac_exeext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897
13898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13899 }'`
13900 # Check for a 64-bit object if we didn't find anything.
13901 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; }
13902 }'`; fi
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 fi
13908 rm -f conftest.err conftest.$ac_objext \
13909       conftest$ac_exeext conftest.$ac_ext
13910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13911
13912        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13913         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13914        else
13915         if test "$host_cpu" = ia64; then
13916           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13917           allow_undefined_flag_F77="-z nodefs"
13918           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13919         else
13920          # Determine the default libpath from the value encoded in an empty executable.
13921          cat >conftest.$ac_ext <<_ACEOF
13922       program main
13923
13924       end
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928   (eval $ac_link) 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -z "$ac_f77_werror_flag"
13936                          || test ! -s conftest.err'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; } &&
13942          { ac_try='test -s conftest$ac_exeext'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948
13949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13950 }'`
13951 # Check for a 64-bit object if we didn't find anything.
13952 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; }
13953 }'`; fi
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 fi
13959 rm -f conftest.err conftest.$ac_objext \
13960       conftest$ac_exeext conftest.$ac_ext
13961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13962
13963          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13964           # Warning - without using the other run time loading flags,
13965           # -berok will link without error, but may produce a broken library.
13966           no_undefined_flag_F77=' ${wl}-bernotok'
13967           allow_undefined_flag_F77=' ${wl}-berok'
13968           # -bexpall does not export symbols beginning with underscore (_)
13969           always_export_symbols_F77=yes
13970           # Exported symbols can be pulled into shared objects from archives
13971           whole_archive_flag_spec_F77=' '
13972           archive_cmds_need_lc_F77=yes
13973           # This is similar to how AIX traditionally builds it's shared libraries.
13974           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13975         fi
13976       fi
13977       ;;
13978
13979     amigaos*)
13980       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)'
13981       hardcode_libdir_flag_spec_F77='-L$libdir'
13982       hardcode_minus_L_F77=yes
13983       # see comment about different semantics on the GNU ld section
13984       ld_shlibs_F77=no
13985       ;;
13986
13987     bsdi4*)
13988       export_dynamic_flag_spec_F77=-rdynamic
13989       ;;
13990
13991     cygwin* | mingw* | pw32*)
13992       # When not using gcc, we currently assume that we are using
13993       # Microsoft Visual C++.
13994       # hardcode_libdir_flag_spec is actually meaningless, as there is
13995       # no search path for DLLs.
13996       hardcode_libdir_flag_spec_F77=' '
13997       allow_undefined_flag_F77=unsupported
13998       # Tell ltmain to make .lib files, not .a files.
13999       libext=lib
14000       # Tell ltmain to make .dll files, not .so files.
14001       shrext_cmds=".dll"
14002       # FIXME: Setting linknames here is a bad hack.
14003       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14004       # The linker will automatically build a .lib file if we build a DLL.
14005       old_archive_From_new_cmds_F77='true'
14006       # FIXME: Should let the user specify the lib program.
14007       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14008       fix_srcfile_path='`cygpath -w "$srcfile"`'
14009       enable_shared_with_static_runtimes_F77=yes
14010       ;;
14011
14012     darwin* | rhapsody*)
14013     if test "$GXX" = yes ; then
14014       archive_cmds_need_lc_F77=no
14015       case "$host_os" in
14016       rhapsody* | darwin1.[012])
14017         allow_undefined_flag_F77='-undefined suppress'
14018         ;;
14019       *) # Darwin 1.3 on
14020       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14021         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14022       else
14023         case ${MACOSX_DEPLOYMENT_TARGET} in
14024           10.[012])
14025             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14026             ;;
14027           10.*)
14028             allow_undefined_flag_F77='-undefined dynamic_lookup'
14029             ;;
14030         esac
14031       fi
14032         ;;
14033       esac
14034         lt_int_apple_cc_single_mod=no
14035         output_verbose_link_cmd='echo'
14036         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14037           lt_int_apple_cc_single_mod=yes
14038         fi
14039         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14040           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14041         else
14042         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14043       fi
14044       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14045       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14046         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14047           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14048         else
14049           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14050         fi
14051           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}'
14052       hardcode_direct_F77=no
14053       hardcode_automatic_F77=yes
14054       hardcode_shlibpath_var_F77=unsupported
14055       whole_archive_flag_spec_F77='-all_load $convenience'
14056       link_all_deplibs_F77=yes
14057     else
14058       ld_shlibs_F77=no
14059     fi
14060       ;;
14061
14062     dgux*)
14063       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14064       hardcode_libdir_flag_spec_F77='-L$libdir'
14065       hardcode_shlibpath_var_F77=no
14066       ;;
14067
14068     freebsd1*)
14069       ld_shlibs_F77=no
14070       ;;
14071
14072     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14073     # support.  Future versions do this automatically, but an explicit c++rt0.o
14074     # does not break anything, and helps significantly (at the cost of a little
14075     # extra space).
14076     freebsd2.2*)
14077       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14078       hardcode_libdir_flag_spec_F77='-R$libdir'
14079       hardcode_direct_F77=yes
14080       hardcode_shlibpath_var_F77=no
14081       ;;
14082
14083     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14084     freebsd2*)
14085       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14086       hardcode_direct_F77=yes
14087       hardcode_minus_L_F77=yes
14088       hardcode_shlibpath_var_F77=no
14089       ;;
14090
14091     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14092     freebsd* | kfreebsd*-gnu)
14093       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14094       hardcode_libdir_flag_spec_F77='-R$libdir'
14095       hardcode_direct_F77=yes
14096       hardcode_shlibpath_var_F77=no
14097       ;;
14098
14099     hpux9*)
14100       if test "$GCC" = yes; then
14101         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'
14102       else
14103         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'
14104       fi
14105       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14106       hardcode_libdir_separator_F77=:
14107       hardcode_direct_F77=yes
14108
14109       # hardcode_minus_L: Not really in the search PATH,
14110       # but as the default location of the library.
14111       hardcode_minus_L_F77=yes
14112       export_dynamic_flag_spec_F77='${wl}-E'
14113       ;;
14114
14115     hpux10* | hpux11*)
14116       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14117         case "$host_cpu" in
14118         hppa*64*|ia64*)
14119           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14120           ;;
14121         *)
14122           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14123           ;;
14124         esac
14125       else
14126         case "$host_cpu" in
14127         hppa*64*|ia64*)
14128           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14129           ;;
14130         *)
14131           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14132           ;;
14133         esac
14134       fi
14135       if test "$with_gnu_ld" = no; then
14136         case "$host_cpu" in
14137         hppa*64*)
14138           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14139           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14140           hardcode_libdir_separator_F77=:
14141           hardcode_direct_F77=no
14142           hardcode_shlibpath_var_F77=no
14143           ;;
14144         ia64*)
14145           hardcode_libdir_flag_spec_F77='-L$libdir'
14146           hardcode_direct_F77=no
14147           hardcode_shlibpath_var_F77=no
14148
14149           # hardcode_minus_L: Not really in the search PATH,
14150           # but as the default location of the library.
14151           hardcode_minus_L_F77=yes
14152           ;;
14153         *)
14154           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14155           hardcode_libdir_separator_F77=:
14156           hardcode_direct_F77=yes
14157           export_dynamic_flag_spec_F77='${wl}-E'
14158
14159           # hardcode_minus_L: Not really in the search PATH,
14160           # but as the default location of the library.
14161           hardcode_minus_L_F77=yes
14162           ;;
14163         esac
14164       fi
14165       ;;
14166
14167     irix5* | irix6* | nonstopux*)
14168       if test "$GCC" = yes; then
14169         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'
14170       else
14171         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'
14172         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14173       fi
14174       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175       hardcode_libdir_separator_F77=:
14176       link_all_deplibs_F77=yes
14177       ;;
14178
14179     netbsd*)
14180       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14181         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14182       else
14183         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14184       fi
14185       hardcode_libdir_flag_spec_F77='-R$libdir'
14186       hardcode_direct_F77=yes
14187       hardcode_shlibpath_var_F77=no
14188       ;;
14189
14190     newsos6)
14191       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14192       hardcode_direct_F77=yes
14193       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14194       hardcode_libdir_separator_F77=:
14195       hardcode_shlibpath_var_F77=no
14196       ;;
14197
14198     openbsd*)
14199       hardcode_direct_F77=yes
14200       hardcode_shlibpath_var_F77=no
14201       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14202         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14203         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14204         export_dynamic_flag_spec_F77='${wl}-E'
14205       else
14206        case $host_os in
14207          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14208            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14209            hardcode_libdir_flag_spec_F77='-R$libdir'
14210            ;;
14211          *)
14212            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14213            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14214            ;;
14215        esac
14216       fi
14217       ;;
14218
14219     os2*)
14220       hardcode_libdir_flag_spec_F77='-L$libdir'
14221       hardcode_minus_L_F77=yes
14222       allow_undefined_flag_F77=unsupported
14223       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'
14224       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14225       ;;
14226
14227     osf3*)
14228       if test "$GCC" = yes; then
14229         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14230         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'
14231       else
14232         allow_undefined_flag_F77=' -expect_unresolved \*'
14233         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'
14234       fi
14235       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14236       hardcode_libdir_separator_F77=:
14237       ;;
14238
14239     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14240       if test "$GCC" = yes; then
14241         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14242         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'
14243         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14244       else
14245         allow_undefined_flag_F77=' -expect_unresolved \*'
14246         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'
14247         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~
14248         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14249
14250         # Both c and cxx compiler support -rpath directly
14251         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14252       fi
14253       hardcode_libdir_separator_F77=:
14254       ;;
14255
14256     sco3.2v5*)
14257       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258       hardcode_shlibpath_var_F77=no
14259       export_dynamic_flag_spec_F77='${wl}-Bexport'
14260       runpath_var=LD_RUN_PATH
14261       hardcode_runpath_var=yes
14262       ;;
14263
14264     solaris*)
14265       no_undefined_flag_F77=' -z text'
14266       if test "$GCC" = yes; then
14267         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14269           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14270       else
14271         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14273         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14274       fi
14275       hardcode_libdir_flag_spec_F77='-R$libdir'
14276       hardcode_shlibpath_var_F77=no
14277       case $host_os in
14278       solaris2.[0-5] | solaris2.[0-5].*) ;;
14279       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14280         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14281       esac
14282       link_all_deplibs_F77=yes
14283       ;;
14284
14285     sunos4*)
14286       if test "x$host_vendor" = xsequent; then
14287         # Use $CC to link under sequent, because it throws in some extra .o
14288         # files that make .init and .fini sections work.
14289         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14290       else
14291         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14292       fi
14293       hardcode_libdir_flag_spec_F77='-L$libdir'
14294       hardcode_direct_F77=yes
14295       hardcode_minus_L_F77=yes
14296       hardcode_shlibpath_var_F77=no
14297       ;;
14298
14299     sysv4)
14300       case $host_vendor in
14301         sni)
14302           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14303           hardcode_direct_F77=yes # is this really true???
14304         ;;
14305         siemens)
14306           ## LD is ld it makes a PLAMLIB
14307           ## CC just makes a GrossModule.
14308           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14309           reload_cmds_F77='$CC -r -o $output$reload_objs'
14310           hardcode_direct_F77=no
14311         ;;
14312         motorola)
14313           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14314           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14315         ;;
14316       esac
14317       runpath_var='LD_RUN_PATH'
14318       hardcode_shlibpath_var_F77=no
14319       ;;
14320
14321     sysv4.3*)
14322       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323       hardcode_shlibpath_var_F77=no
14324       export_dynamic_flag_spec_F77='-Bexport'
14325       ;;
14326
14327     sysv4*MP*)
14328       if test -d /usr/nec; then
14329         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330         hardcode_shlibpath_var_F77=no
14331         runpath_var=LD_RUN_PATH
14332         hardcode_runpath_var=yes
14333         ld_shlibs_F77=yes
14334       fi
14335       ;;
14336
14337     sysv4.2uw2*)
14338       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14339       hardcode_direct_F77=yes
14340       hardcode_minus_L_F77=no
14341       hardcode_shlibpath_var_F77=no
14342       hardcode_runpath_var=yes
14343       runpath_var=LD_RUN_PATH
14344       ;;
14345
14346    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14347       no_undefined_flag_F77='${wl}-z ${wl}text'
14348       if test "$GCC" = yes; then
14349         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350       else
14351         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14352       fi
14353       runpath_var='LD_RUN_PATH'
14354       hardcode_shlibpath_var_F77=no
14355       ;;
14356
14357     sysv5*)
14358       no_undefined_flag_F77=' -z text'
14359       # $CC -shared without GNU ld will not create a library from C++
14360       # object files and a static libstdc++, better avoid it by now
14361       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14363                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14364       hardcode_libdir_flag_spec_F77=
14365       hardcode_shlibpath_var_F77=no
14366       runpath_var='LD_RUN_PATH'
14367       ;;
14368
14369     uts4*)
14370       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371       hardcode_libdir_flag_spec_F77='-L$libdir'
14372       hardcode_shlibpath_var_F77=no
14373       ;;
14374
14375     *)
14376       ld_shlibs_F77=no
14377       ;;
14378     esac
14379   fi
14380
14381 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14382 echo "${ECHO_T}$ld_shlibs_F77" >&6
14383 test "$ld_shlibs_F77" = no && can_build_shared=no
14384
14385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14386 if test "$GCC" = yes; then
14387   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14388 fi
14389
14390 #
14391 # Do we need to explicitly link libc?
14392 #
14393 case "x$archive_cmds_need_lc_F77" in
14394 x|xyes)
14395   # Assume -lc should be added
14396   archive_cmds_need_lc_F77=yes
14397
14398   if test "$enable_shared" = yes && test "$GCC" = yes; then
14399     case $archive_cmds_F77 in
14400     *'~'*)
14401       # FIXME: we may have to deal with multi-command sequences.
14402       ;;
14403     '$CC '*)
14404       # Test whether the compiler implicitly links with -lc since on some
14405       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14406       # to ld, don't add -lc before -lgcc.
14407       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14408 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14409       $rm conftest*
14410       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14411
14412       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413   (eval $ac_compile) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } 2>conftest.err; then
14417         soname=conftest
14418         lib=conftest
14419         libobjs=conftest.$ac_objext
14420         deplibs=
14421         wl=$lt_prog_compiler_wl_F77
14422         compiler_flags=-v
14423         linker_flags=-v
14424         verstring=
14425         output_objdir=.
14426         libname=conftest
14427         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14428         allow_undefined_flag_F77=
14429         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14430   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }
14434         then
14435           archive_cmds_need_lc_F77=no
14436         else
14437           archive_cmds_need_lc_F77=yes
14438         fi
14439         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14440       else
14441         cat conftest.err 1>&5
14442       fi
14443       $rm conftest*
14444       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14445 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14446       ;;
14447     esac
14448   fi
14449   ;;
14450 esac
14451
14452 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14453 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14454 library_names_spec=
14455 libname_spec='lib$name'
14456 soname_spec=
14457 shrext_cmds=".so"
14458 postinstall_cmds=
14459 postuninstall_cmds=
14460 finish_cmds=
14461 finish_eval=
14462 shlibpath_var=
14463 shlibpath_overrides_runpath=unknown
14464 version_type=none
14465 dynamic_linker="$host_os ld.so"
14466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14467 if test "$GCC" = yes; then
14468   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14469   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14470     # if the path contains ";" then we assume it to be the separator
14471     # otherwise default to the standard path separator (i.e. ":") - it is
14472     # assumed that no part of a normal pathname contains ";" but that should
14473     # okay in the real world where ";" in dirpaths is itself problematic.
14474     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14475   else
14476     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14477   fi
14478 else
14479   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14480 fi
14481 need_lib_prefix=unknown
14482 hardcode_into_libs=no
14483
14484 # when you set need_version to no, make sure it does not cause -set_version
14485 # flags to be left without arguments
14486 need_version=unknown
14487
14488 case $host_os in
14489 aix3*)
14490   version_type=linux
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14492   shlibpath_var=LIBPATH
14493
14494   # AIX 3 has no versioning support, so we append a major version to the name.
14495   soname_spec='${libname}${release}${shared_ext}$major'
14496   ;;
14497
14498 aix4* | aix5*)
14499   version_type=linux
14500   need_lib_prefix=no
14501   need_version=no
14502   hardcode_into_libs=yes
14503   if test "$host_cpu" = ia64; then
14504     # AIX 5 supports IA64
14505     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14506     shlibpath_var=LD_LIBRARY_PATH
14507   else
14508     # With GCC up to 2.95.x, collect2 would create an import file
14509     # for dependence libraries.  The import file would start with
14510     # the line `#! .'.  This would cause the generated library to
14511     # depend on `.', always an invalid library.  This was fixed in
14512     # development snapshots of GCC prior to 3.0.
14513     case $host_os in
14514       aix4 | aix4.[01] | aix4.[01].*)
14515       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14516            echo ' yes '
14517            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14518         :
14519       else
14520         can_build_shared=no
14521       fi
14522       ;;
14523     esac
14524     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14525     # soname into executable. Probably we can add versioning support to
14526     # collect2, so additional links can be useful in future.
14527     if test "$aix_use_runtimelinking" = yes; then
14528       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14529       # instead of lib<name>.a to let people know that these are not
14530       # typical AIX shared libraries.
14531       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532     else
14533       # We preserve .a as extension for shared libraries through AIX4.2
14534       # and later when we are not doing run time linking.
14535       library_names_spec='${libname}${release}.a $libname.a'
14536       soname_spec='${libname}${release}${shared_ext}$major'
14537     fi
14538     shlibpath_var=LIBPATH
14539   fi
14540   ;;
14541
14542 amigaos*)
14543   library_names_spec='$libname.ixlibrary $libname.a'
14544   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14545   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'
14546   ;;
14547
14548 beos*)
14549   library_names_spec='${libname}${shared_ext}'
14550   dynamic_linker="$host_os ld.so"
14551   shlibpath_var=LIBRARY_PATH
14552   ;;
14553
14554 bsdi4*)
14555   version_type=linux
14556   need_version=no
14557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558   soname_spec='${libname}${release}${shared_ext}$major'
14559   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14560   shlibpath_var=LD_LIBRARY_PATH
14561   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14562   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14563   # the default ld.so.conf also contains /usr/contrib/lib and
14564   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14565   # libtool to hard-code these into programs
14566   ;;
14567
14568 cygwin* | mingw* | pw32*)
14569   version_type=windows
14570   shrext_cmds=".dll"
14571   need_version=no
14572   need_lib_prefix=no
14573
14574   case $GCC,$host_os in
14575   yes,cygwin* | yes,mingw* | yes,pw32*)
14576     library_names_spec='$libname.dll.a'
14577     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14578     postinstall_cmds='base_file=`basename \${file}`~
14579       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14580       dldir=$destdir/`dirname \$dlpath`~
14581       test -d \$dldir || mkdir -p \$dldir~
14582       $install_prog $dir/$dlname \$dldir/$dlname'
14583     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14584       dlpath=$dir/\$dldll~
14585        $rm \$dlpath'
14586     shlibpath_overrides_runpath=yes
14587
14588     case $host_os in
14589     cygwin*)
14590       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14591       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14592       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14593       ;;
14594     mingw*)
14595       # MinGW DLLs use traditional 'lib' prefix
14596       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14598       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14599         # It is most probably a Windows format PATH printed by
14600         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14601         # path with ; separators, and with drive letters. We can handle the
14602         # drive letters (cygwin fileutils understands them), so leave them,
14603         # especially as we might pass files found there to a mingw objdump,
14604         # which wouldn't understand a cygwinified path. Ahh.
14605         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14606       else
14607         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14608       fi
14609       ;;
14610     pw32*)
14611       # pw32 DLLs use 'pw' prefix rather than 'lib'
14612       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14613       ;;
14614     esac
14615     ;;
14616
14617   *)
14618     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14619     ;;
14620   esac
14621   dynamic_linker='Win32 ld.exe'
14622   # FIXME: first we should search . and the directory the executable is in
14623   shlibpath_var=PATH
14624   ;;
14625
14626 darwin* | rhapsody*)
14627   dynamic_linker="$host_os dyld"
14628   version_type=darwin
14629   need_lib_prefix=no
14630   need_version=no
14631   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14632   soname_spec='${libname}${release}${major}$shared_ext'
14633   shlibpath_overrides_runpath=yes
14634   shlibpath_var=DYLD_LIBRARY_PATH
14635   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14636   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14637   if test "$GCC" = yes; then
14638     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"`
14639   else
14640     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14641   fi
14642   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14643   ;;
14644
14645 dgux*)
14646   version_type=linux
14647   need_lib_prefix=no
14648   need_version=no
14649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14650   soname_spec='${libname}${release}${shared_ext}$major'
14651   shlibpath_var=LD_LIBRARY_PATH
14652   ;;
14653
14654 freebsd1*)
14655   dynamic_linker=no
14656   ;;
14657
14658 kfreebsd*-gnu)
14659   version_type=linux
14660   need_lib_prefix=no
14661   need_version=no
14662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14663   soname_spec='${libname}${release}${shared_ext}$major'
14664   shlibpath_var=LD_LIBRARY_PATH
14665   shlibpath_overrides_runpath=no
14666   hardcode_into_libs=yes
14667   dynamic_linker='GNU ld.so'
14668   ;;
14669
14670 freebsd*)
14671   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14672   version_type=freebsd-$objformat
14673   case $version_type in
14674     freebsd-elf*)
14675       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14676       need_version=no
14677       need_lib_prefix=no
14678       ;;
14679     freebsd-*)
14680       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14681       need_version=yes
14682       ;;
14683   esac
14684   shlibpath_var=LD_LIBRARY_PATH
14685   case $host_os in
14686   freebsd2*)
14687     shlibpath_overrides_runpath=yes
14688     ;;
14689   freebsd3.01* | freebsdelf3.01*)
14690     shlibpath_overrides_runpath=yes
14691     hardcode_into_libs=yes
14692     ;;
14693   *) # from 3.2 on
14694     shlibpath_overrides_runpath=no
14695     hardcode_into_libs=yes
14696     ;;
14697   esac
14698   ;;
14699
14700 gnu*)
14701   version_type=linux
14702   need_lib_prefix=no
14703   need_version=no
14704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14705   soname_spec='${libname}${release}${shared_ext}$major'
14706   shlibpath_var=LD_LIBRARY_PATH
14707   hardcode_into_libs=yes
14708   ;;
14709
14710 hpux9* | hpux10* | hpux11*)
14711   # Give a soname corresponding to the major version so that dld.sl refuses to
14712   # link against other versions.
14713   version_type=sunos
14714   need_lib_prefix=no
14715   need_version=no
14716   case "$host_cpu" in
14717   ia64*)
14718     shrext_cmds='.so'
14719     hardcode_into_libs=yes
14720     dynamic_linker="$host_os dld.so"
14721     shlibpath_var=LD_LIBRARY_PATH
14722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724     soname_spec='${libname}${release}${shared_ext}$major'
14725     if test "X$HPUX_IA64_MODE" = X32; then
14726       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14727     else
14728       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14729     fi
14730     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14731     ;;
14732    hppa*64*)
14733      shrext_cmds='.sl'
14734      hardcode_into_libs=yes
14735      dynamic_linker="$host_os dld.sl"
14736      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14737      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739      soname_spec='${libname}${release}${shared_ext}$major'
14740      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14741      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14742      ;;
14743    *)
14744     shrext_cmds='.sl'
14745     dynamic_linker="$host_os dld.sl"
14746     shlibpath_var=SHLIB_PATH
14747     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749     soname_spec='${libname}${release}${shared_ext}$major'
14750     ;;
14751   esac
14752   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14753   postinstall_cmds='chmod 555 $lib'
14754   ;;
14755
14756 irix5* | irix6* | nonstopux*)
14757   case $host_os in
14758     nonstopux*) version_type=nonstopux ;;
14759     *)
14760         if test "$lt_cv_prog_gnu_ld" = yes; then
14761                 version_type=linux
14762         else
14763                 version_type=irix
14764         fi ;;
14765   esac
14766   need_lib_prefix=no
14767   need_version=no
14768   soname_spec='${libname}${release}${shared_ext}$major'
14769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14770   case $host_os in
14771   irix5* | nonstopux*)
14772     libsuff= shlibsuff=
14773     ;;
14774   *)
14775     case $LD in # libtool.m4 will add one of these switches to LD
14776     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14777       libsuff= shlibsuff= libmagic=32-bit;;
14778     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14779       libsuff=32 shlibsuff=N32 libmagic=N32;;
14780     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14781       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14782     *) libsuff= shlibsuff= libmagic=never-match;;
14783     esac
14784     ;;
14785   esac
14786   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14787   shlibpath_overrides_runpath=no
14788   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14789   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14790   hardcode_into_libs=yes
14791   ;;
14792
14793 # No shared lib support for Linux oldld, aout, or coff.
14794 linux*oldld* | linux*aout* | linux*coff*)
14795   dynamic_linker=no
14796   ;;
14797
14798 # This must be Linux ELF.
14799 linux*)
14800   version_type=linux
14801   need_lib_prefix=no
14802   need_version=no
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804   soname_spec='${libname}${release}${shared_ext}$major'
14805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14806   shlibpath_var=LD_LIBRARY_PATH
14807   shlibpath_overrides_runpath=no
14808   # This implies no fast_install, which is unacceptable.
14809   # Some rework will be needed to allow for fast_install
14810   # before this can be enabled.
14811   hardcode_into_libs=yes
14812
14813   # find out which ABI we are using
14814   libsuff=
14815   case "$host_cpu" in
14816   x86_64*|s390x*|powerpc64*)
14817     echo '#line 14817 "configure"' > conftest.$ac_ext
14818     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819   (eval $ac_compile) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; then
14823       case `/usr/bin/file conftest.$ac_objext` in
14824       *64-bit*)
14825         libsuff=64
14826         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14827         ;;
14828       esac
14829     fi
14830     rm -rf conftest*
14831     ;;
14832   esac
14833
14834   # Append ld.so.conf contents to the search path
14835   if test -f /etc/ld.so.conf; then
14836     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14837     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14838   fi
14839
14840   # We used to test for /lib/ld.so.1 and disable shared libraries on
14841   # powerpc, because MkLinux only supported shared libraries with the
14842   # GNU dynamic linker.  Since this was broken with cross compilers,
14843   # most powerpc-linux boxes support dynamic linking these days and
14844   # people can always --disable-shared, the test was removed, and we
14845   # assume the GNU/Linux dynamic linker is in use.
14846   dynamic_linker='GNU/Linux ld.so'
14847   ;;
14848
14849 knetbsd*-gnu)
14850   version_type=linux
14851   need_lib_prefix=no
14852   need_version=no
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854   soname_spec='${libname}${release}${shared_ext}$major'
14855   shlibpath_var=LD_LIBRARY_PATH
14856   shlibpath_overrides_runpath=no
14857   hardcode_into_libs=yes
14858   dynamic_linker='GNU ld.so'
14859   ;;
14860
14861 netbsd*)
14862   version_type=sunos
14863   need_lib_prefix=no
14864   need_version=no
14865   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14867     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14868     dynamic_linker='NetBSD (a.out) ld.so'
14869   else
14870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14871     soname_spec='${libname}${release}${shared_ext}$major'
14872     dynamic_linker='NetBSD ld.elf_so'
14873   fi
14874   shlibpath_var=LD_LIBRARY_PATH
14875   shlibpath_overrides_runpath=yes
14876   hardcode_into_libs=yes
14877   ;;
14878
14879 newsos6)
14880   version_type=linux
14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882   shlibpath_var=LD_LIBRARY_PATH
14883   shlibpath_overrides_runpath=yes
14884   ;;
14885
14886 nto-qnx*)
14887   version_type=linux
14888   need_lib_prefix=no
14889   need_version=no
14890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14891   soname_spec='${libname}${release}${shared_ext}$major'
14892   shlibpath_var=LD_LIBRARY_PATH
14893   shlibpath_overrides_runpath=yes
14894   ;;
14895
14896 openbsd*)
14897   version_type=sunos
14898   need_lib_prefix=no
14899   need_version=yes
14900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14902   shlibpath_var=LD_LIBRARY_PATH
14903   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14904     case $host_os in
14905       openbsd2.[89] | openbsd2.[89].*)
14906         shlibpath_overrides_runpath=no
14907         ;;
14908       *)
14909         shlibpath_overrides_runpath=yes
14910         ;;
14911       esac
14912   else
14913     shlibpath_overrides_runpath=yes
14914   fi
14915   ;;
14916
14917 os2*)
14918   libname_spec='$name'
14919   shrext_cmds=".dll"
14920   need_lib_prefix=no
14921   library_names_spec='$libname${shared_ext} $libname.a'
14922   dynamic_linker='OS/2 ld.exe'
14923   shlibpath_var=LIBPATH
14924   ;;
14925
14926 osf3* | osf4* | osf5*)
14927   version_type=osf
14928   need_lib_prefix=no
14929   need_version=no
14930   soname_spec='${libname}${release}${shared_ext}$major'
14931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932   shlibpath_var=LD_LIBRARY_PATH
14933   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14934   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14935   ;;
14936
14937 sco3.2v5*)
14938   version_type=osf
14939   soname_spec='${libname}${release}${shared_ext}$major'
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941   shlibpath_var=LD_LIBRARY_PATH
14942   ;;
14943
14944 solaris*)
14945   version_type=linux
14946   need_lib_prefix=no
14947   need_version=no
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   shlibpath_overrides_runpath=yes
14952   hardcode_into_libs=yes
14953   # ldd complains unless libraries are executable
14954   postinstall_cmds='chmod +x $lib'
14955   ;;
14956
14957 sunos4*)
14958   version_type=sunos
14959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14960   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14961   shlibpath_var=LD_LIBRARY_PATH
14962   shlibpath_overrides_runpath=yes
14963   if test "$with_gnu_ld" = yes; then
14964     need_lib_prefix=no
14965   fi
14966   need_version=yes
14967   ;;
14968
14969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14970   version_type=linux
14971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972   soname_spec='${libname}${release}${shared_ext}$major'
14973   shlibpath_var=LD_LIBRARY_PATH
14974   case $host_vendor in
14975     sni)
14976       shlibpath_overrides_runpath=no
14977       need_lib_prefix=no
14978       export_dynamic_flag_spec='${wl}-Blargedynsym'
14979       runpath_var=LD_RUN_PATH
14980       ;;
14981     siemens)
14982       need_lib_prefix=no
14983       ;;
14984     motorola)
14985       need_lib_prefix=no
14986       need_version=no
14987       shlibpath_overrides_runpath=no
14988       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14989       ;;
14990   esac
14991   ;;
14992
14993 sysv4*MP*)
14994   if test -d /usr/nec ;then
14995     version_type=linux
14996     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14997     soname_spec='$libname${shared_ext}.$major'
14998     shlibpath_var=LD_LIBRARY_PATH
14999   fi
15000   ;;
15001
15002 uts4*)
15003   version_type=linux
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   ;;
15008
15009 *)
15010   dynamic_linker=no
15011   ;;
15012 esac
15013 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15014 echo "${ECHO_T}$dynamic_linker" >&6
15015 test "$dynamic_linker" = no && can_build_shared=no
15016
15017 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15018 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15019 hardcode_action_F77=
15020 if test -n "$hardcode_libdir_flag_spec_F77" || \
15021    test -n "$runpath_var F77" || \
15022    test "X$hardcode_automatic_F77"="Xyes" ; then
15023
15024   # We can hardcode non-existant directories.
15025   if test "$hardcode_direct_F77" != no &&
15026      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15027      # have to relink, otherwise we might link with an installed library
15028      # when we should be linking with a yet-to-be-installed one
15029      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15030      test "$hardcode_minus_L_F77" != no; then
15031     # Linking always hardcodes the temporary library directory.
15032     hardcode_action_F77=relink
15033   else
15034     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15035     hardcode_action_F77=immediate
15036   fi
15037 else
15038   # We cannot hardcode anything, or else we can only hardcode existing
15039   # directories.
15040   hardcode_action_F77=unsupported
15041 fi
15042 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15043 echo "${ECHO_T}$hardcode_action_F77" >&6
15044
15045 if test "$hardcode_action_F77" = relink; then
15046   # Fast installation is not supported
15047   enable_fast_install=no
15048 elif test "$shlibpath_overrides_runpath" = yes ||
15049      test "$enable_shared" = no; then
15050   # Fast installation is not necessary
15051   enable_fast_install=needless
15052 fi
15053
15054 striplib=
15055 old_striplib=
15056 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15057 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15058 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15059   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15060   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15061   echo "$as_me:$LINENO: result: yes" >&5
15062 echo "${ECHO_T}yes" >&6
15063 else
15064 # FIXME - insert some real tests, host_os isn't really good enough
15065   case $host_os in
15066    darwin*)
15067        if test -n "$STRIP" ; then
15068          striplib="$STRIP -x"
15069          echo "$as_me:$LINENO: result: yes" >&5
15070 echo "${ECHO_T}yes" >&6
15071        else
15072   echo "$as_me:$LINENO: result: no" >&5
15073 echo "${ECHO_T}no" >&6
15074 fi
15075        ;;
15076    *)
15077   echo "$as_me:$LINENO: result: no" >&5
15078 echo "${ECHO_T}no" >&6
15079     ;;
15080   esac
15081 fi
15082
15083
15084
15085 # The else clause should only fire when bootstrapping the
15086 # libtool distribution, otherwise you forgot to ship ltmain.sh
15087 # with your package, and you will get complaints that there are
15088 # no rules to generate ltmain.sh.
15089 if test -f "$ltmain"; then
15090   # See if we are running on zsh, and set the options which allow our commands through
15091   # without removal of \ escapes.
15092   if test -n "${ZSH_VERSION+set}" ; then
15093     setopt NO_GLOB_SUBST
15094   fi
15095   # Now quote all the things that may contain metacharacters while being
15096   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15097   # variables and quote the copies for generation of the libtool script.
15098   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15099     SED SHELL STRIP \
15100     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15101     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15102     deplibs_check_method reload_flag reload_cmds need_locks \
15103     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15104     lt_cv_sys_global_symbol_to_c_name_address \
15105     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15106     old_postinstall_cmds old_postuninstall_cmds \
15107     compiler_F77 \
15108     CC_F77 \
15109     LD_F77 \
15110     lt_prog_compiler_wl_F77 \
15111     lt_prog_compiler_pic_F77 \
15112     lt_prog_compiler_static_F77 \
15113     lt_prog_compiler_no_builtin_flag_F77 \
15114     export_dynamic_flag_spec_F77 \
15115     thread_safe_flag_spec_F77 \
15116     whole_archive_flag_spec_F77 \
15117     enable_shared_with_static_runtimes_F77 \
15118     old_archive_cmds_F77 \
15119     old_archive_from_new_cmds_F77 \
15120     predep_objects_F77 \
15121     postdep_objects_F77 \
15122     predeps_F77 \
15123     postdeps_F77 \
15124     compiler_lib_search_path_F77 \
15125     archive_cmds_F77 \
15126     archive_expsym_cmds_F77 \
15127     postinstall_cmds_F77 \
15128     postuninstall_cmds_F77 \
15129     old_archive_from_expsyms_cmds_F77 \
15130     allow_undefined_flag_F77 \
15131     no_undefined_flag_F77 \
15132     export_symbols_cmds_F77 \
15133     hardcode_libdir_flag_spec_F77 \
15134     hardcode_libdir_flag_spec_ld_F77 \
15135     hardcode_libdir_separator_F77 \
15136     hardcode_automatic_F77 \
15137     module_cmds_F77 \
15138     module_expsym_cmds_F77 \
15139     lt_cv_prog_compiler_c_o_F77 \
15140     exclude_expsyms_F77 \
15141     include_expsyms_F77; do
15142
15143     case $var in
15144     old_archive_cmds_F77 | \
15145     old_archive_from_new_cmds_F77 | \
15146     archive_cmds_F77 | \
15147     archive_expsym_cmds_F77 | \
15148     module_cmds_F77 | \
15149     module_expsym_cmds_F77 | \
15150     old_archive_from_expsyms_cmds_F77 | \
15151     export_symbols_cmds_F77 | \
15152     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15153     postinstall_cmds | postuninstall_cmds | \
15154     old_postinstall_cmds | old_postuninstall_cmds | \
15155     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15156       # Double-quote double-evaled strings.
15157       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15158       ;;
15159     *)
15160       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15161       ;;
15162     esac
15163   done
15164
15165   case $lt_echo in
15166   *'\$0 --fallback-echo"')
15167     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15168     ;;
15169   esac
15170
15171 cfgfile="$ofile"
15172
15173   cat <<__EOF__ >> "$cfgfile"
15174 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15175
15176 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15177
15178 # Shell to use when invoking shell scripts.
15179 SHELL=$lt_SHELL
15180
15181 # Whether or not to build shared libraries.
15182 build_libtool_libs=$enable_shared
15183
15184 # Whether or not to build static libraries.
15185 build_old_libs=$enable_static
15186
15187 # Whether or not to add -lc for building shared libraries.
15188 build_libtool_need_lc=$archive_cmds_need_lc_F77
15189
15190 # Whether or not to disallow shared libs when runtime libs are static
15191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15192
15193 # Whether or not to optimize for fast installation.
15194 fast_install=$enable_fast_install
15195
15196 # The host system.
15197 host_alias=$host_alias
15198 host=$host
15199
15200 # An echo program that does not interpret backslashes.
15201 echo=$lt_echo
15202
15203 # The archiver.
15204 AR=$lt_AR
15205 AR_FLAGS=$lt_AR_FLAGS
15206
15207 # A C compiler.
15208 LTCC=$lt_LTCC
15209
15210 # A language-specific compiler.
15211 CC=$lt_compiler_F77
15212
15213 # Is the compiler the GNU C compiler?
15214 with_gcc=$GCC_F77
15215
15216 # An ERE matcher.
15217 EGREP=$lt_EGREP
15218
15219 # The linker used to build libraries.
15220 LD=$lt_LD_F77
15221
15222 # Whether we need hard or soft links.
15223 LN_S=$lt_LN_S
15224
15225 # A BSD-compatible nm program.
15226 NM=$lt_NM
15227
15228 # A symbol stripping program
15229 STRIP=$lt_STRIP
15230
15231 # Used to examine libraries when file_magic_cmd begins "file"
15232 MAGIC_CMD=$MAGIC_CMD
15233
15234 # Used on cygwin: DLL creation program.
15235 DLLTOOL="$DLLTOOL"
15236
15237 # Used on cygwin: object dumper.
15238 OBJDUMP="$OBJDUMP"
15239
15240 # Used on cygwin: assembler.
15241 AS="$AS"
15242
15243 # The name of the directory that contains temporary libtool files.
15244 objdir=$objdir
15245
15246 # How to create reloadable object files.
15247 reload_flag=$lt_reload_flag
15248 reload_cmds=$lt_reload_cmds
15249
15250 # How to pass a linker flag through the compiler.
15251 wl=$lt_lt_prog_compiler_wl_F77
15252
15253 # Object file suffix (normally "o").
15254 objext="$ac_objext"
15255
15256 # Old archive suffix (normally "a").
15257 libext="$libext"
15258
15259 # Shared library suffix (normally ".so").
15260 shrext_cmds='$shrext_cmds'
15261
15262 # Executable file suffix (normally "").
15263 exeext="$exeext"
15264
15265 # Additional compiler flags for building library objects.
15266 pic_flag=$lt_lt_prog_compiler_pic_F77
15267 pic_mode=$pic_mode
15268
15269 # What is the maximum length of a command?
15270 max_cmd_len=$lt_cv_sys_max_cmd_len
15271
15272 # Does compiler simultaneously support -c and -o options?
15273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15274
15275 # Must we lock files when doing compilation ?
15276 need_locks=$lt_need_locks
15277
15278 # Do we need the lib prefix for modules?
15279 need_lib_prefix=$need_lib_prefix
15280
15281 # Do we need a version for libraries?
15282 need_version=$need_version
15283
15284 # Whether dlopen is supported.
15285 dlopen_support=$enable_dlopen
15286
15287 # Whether dlopen of programs is supported.
15288 dlopen_self=$enable_dlopen_self
15289
15290 # Whether dlopen of statically linked programs is supported.
15291 dlopen_self_static=$enable_dlopen_self_static
15292
15293 # Compiler flag to prevent dynamic linking.
15294 link_static_flag=$lt_lt_prog_compiler_static_F77
15295
15296 # Compiler flag to turn off builtin functions.
15297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15298
15299 # Compiler flag to allow reflexive dlopens.
15300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15301
15302 # Compiler flag to generate shared objects directly from archives.
15303 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15304
15305 # Compiler flag to generate thread-safe objects.
15306 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15307
15308 # Library versioning type.
15309 version_type=$version_type
15310
15311 # Format of library name prefix.
15312 libname_spec=$lt_libname_spec
15313
15314 # List of archive names.  First name is the real one, the rest are links.
15315 # The last name is the one that the linker finds with -lNAME.
15316 library_names_spec=$lt_library_names_spec
15317
15318 # The coded name of the library, if different from the real name.
15319 soname_spec=$lt_soname_spec
15320
15321 # Commands used to build and install an old-style archive.
15322 RANLIB=$lt_RANLIB
15323 old_archive_cmds=$lt_old_archive_cmds_F77
15324 old_postinstall_cmds=$lt_old_postinstall_cmds
15325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15326
15327 # Create an old-style archive from a shared archive.
15328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15329
15330 # Create a temporary old-style archive to link instead of a shared archive.
15331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15332
15333 # Commands used to build and install a shared archive.
15334 archive_cmds=$lt_archive_cmds_F77
15335 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15336 postinstall_cmds=$lt_postinstall_cmds
15337 postuninstall_cmds=$lt_postuninstall_cmds
15338
15339 # Commands used to build a loadable module (assumed same as above if empty)
15340 module_cmds=$lt_module_cmds_F77
15341 module_expsym_cmds=$lt_module_expsym_cmds_F77
15342
15343 # Commands to strip libraries.
15344 old_striplib=$lt_old_striplib
15345 striplib=$lt_striplib
15346
15347 # Dependencies to place before the objects being linked to create a
15348 # shared library.
15349 predep_objects=$lt_predep_objects_F77
15350
15351 # Dependencies to place after the objects being linked to create a
15352 # shared library.
15353 postdep_objects=$lt_postdep_objects_F77
15354
15355 # Dependencies to place before the objects being linked to create a
15356 # shared library.
15357 predeps=$lt_predeps_F77
15358
15359 # Dependencies to place after the objects being linked to create a
15360 # shared library.
15361 postdeps=$lt_postdeps_F77
15362
15363 # The library search path used internally by the compiler when linking
15364 # a shared library.
15365 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15366
15367 # Method to check whether dependent libraries are shared objects.
15368 deplibs_check_method=$lt_deplibs_check_method
15369
15370 # Command to use when deplibs_check_method == file_magic.
15371 file_magic_cmd=$lt_file_magic_cmd
15372
15373 # Flag that allows shared libraries with undefined symbols to be built.
15374 allow_undefined_flag=$lt_allow_undefined_flag_F77
15375
15376 # Flag that forces no undefined symbols.
15377 no_undefined_flag=$lt_no_undefined_flag_F77
15378
15379 # Commands used to finish a libtool library installation in a directory.
15380 finish_cmds=$lt_finish_cmds
15381
15382 # Same as above, but a single script fragment to be evaled but not shown.
15383 finish_eval=$lt_finish_eval
15384
15385 # Take the output of nm and produce a listing of raw symbols and C names.
15386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15387
15388 # Transform the output of nm in a proper C declaration
15389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15390
15391 # Transform the output of nm in a C name address pair
15392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15393
15394 # This is the shared library runtime path variable.
15395 runpath_var=$runpath_var
15396
15397 # This is the shared library path variable.
15398 shlibpath_var=$shlibpath_var
15399
15400 # Is shlibpath searched before the hard-coded library search path?
15401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15402
15403 # How to hardcode a shared library path into an executable.
15404 hardcode_action=$hardcode_action_F77
15405
15406 # Whether we should hardcode library paths into libraries.
15407 hardcode_into_libs=$hardcode_into_libs
15408
15409 # Flag to hardcode \$libdir into a binary during linking.
15410 # This must work even if \$libdir does not exist.
15411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15412
15413 # If ld is used when linking, flag to hardcode \$libdir into
15414 # a binary during linking. This must work even if \$libdir does
15415 # not exist.
15416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15417
15418 # Whether we need a single -rpath flag with a separated argument.
15419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15420
15421 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15422 # resulting binary.
15423 hardcode_direct=$hardcode_direct_F77
15424
15425 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_minus_L=$hardcode_minus_L_F77
15428
15429 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15430 # the resulting binary.
15431 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15432
15433 # Set to yes if building a shared library automatically hardcodes DIR into the library
15434 # and all subsequent libraries and executables linked against it.
15435 hardcode_automatic=$hardcode_automatic_F77
15436
15437 # Variables whose values should be saved in libtool wrapper scripts and
15438 # restored at relink time.
15439 variables_saved_for_relink="$variables_saved_for_relink"
15440
15441 # Whether libtool must link a program against all its dependency libraries.
15442 link_all_deplibs=$link_all_deplibs_F77
15443
15444 # Compile-time system search path for libraries
15445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15446
15447 # Run-time system search path for libraries
15448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15449
15450 # Fix the shell variable \$srcfile for the compiler.
15451 fix_srcfile_path="$fix_srcfile_path_F77"
15452
15453 # Set to yes if exported symbols are required.
15454 always_export_symbols=$always_export_symbols_F77
15455
15456 # The commands to list exported symbols.
15457 export_symbols_cmds=$lt_export_symbols_cmds_F77
15458
15459 # The commands to extract the exported symbol list from a shared archive.
15460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15461
15462 # Symbols that should not be listed in the preloaded symbols.
15463 exclude_expsyms=$lt_exclude_expsyms_F77
15464
15465 # Symbols that must always be exported.
15466 include_expsyms=$lt_include_expsyms_F77
15467
15468 # ### END LIBTOOL TAG CONFIG: $tagname
15469
15470 __EOF__
15471
15472
15473 else
15474   # If there is no Makefile yet, we rely on a make rule to execute
15475   # `config.status --recheck' to rerun these tests and create the
15476   # libtool script then.
15477   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15478   if test -f "$ltmain_in"; then
15479     test -f Makefile && make "$ltmain"
15480   fi
15481 fi
15482
15483
15484 ac_ext=c
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489
15490 CC="$lt_save_CC"
15491
15492         else
15493           tagname=""
15494         fi
15495         ;;
15496
15497       GCJ)
15498         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15499
15500
15501
15502 # Source file extension for Java test sources.
15503 ac_ext=java
15504
15505 # Object file extension for compiled Java test sources.
15506 objext=o
15507 objext_GCJ=$objext
15508
15509 # Code to be used in simple compile tests
15510 lt_simple_compile_test_code="class foo {}\n"
15511
15512 # Code to be used in simple link tests
15513 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15514
15515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15516
15517 # If no C compiler was specified, use CC.
15518 LTCC=${LTCC-"$CC"}
15519
15520 # Allow CC to be a program name with arguments.
15521 compiler=$CC
15522
15523
15524 # Allow CC to be a program name with arguments.
15525 lt_save_CC="$CC"
15526 CC=${GCJ-"gcj"}
15527 compiler=$CC
15528 compiler_GCJ=$CC
15529
15530 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15531 archive_cmds_need_lc_GCJ=no
15532
15533
15534 lt_prog_compiler_no_builtin_flag_GCJ=
15535
15536 if test "$GCC" = yes; then
15537   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15538
15539
15540 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15541 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   lt_cv_prog_compiler_rtti_exceptions=no
15546   ac_outfile=conftest.$ac_objext
15547    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15548    lt_compiler_flag="-fno-rtti -fno-exceptions"
15549    # Insert the option either (1) after the last *FLAGS variable, or
15550    # (2) before a word containing "conftest.", or (3) at the end.
15551    # Note that $ac_compile itself does not contain backslashes and begins
15552    # with a dollar sign (not a hyphen), so the echo should work correctly.
15553    # The option is referenced via a variable to avoid confusing sed.
15554    lt_compile=`echo "$ac_compile" | $SED \
15555    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15557    -e 's:$: $lt_compiler_flag:'`
15558    (eval echo "\"\$as_me:15558: $lt_compile\"" >&5)
15559    (eval "$lt_compile" 2>conftest.err)
15560    ac_status=$?
15561    cat conftest.err >&5
15562    echo "$as_me:15562: \$? = $ac_status" >&5
15563    if (exit $ac_status) && test -s "$ac_outfile"; then
15564      # The compiler can only warn and ignore the option if not recognized
15565      # So say no if there are warnings
15566      if test ! -s conftest.err; then
15567        lt_cv_prog_compiler_rtti_exceptions=yes
15568      fi
15569    fi
15570    $rm conftest*
15571
15572 fi
15573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15575
15576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15577     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15578 else
15579     :
15580 fi
15581
15582 fi
15583
15584 lt_prog_compiler_wl_GCJ=
15585 lt_prog_compiler_pic_GCJ=
15586 lt_prog_compiler_static_GCJ=
15587
15588 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15590
15591   if test "$GCC" = yes; then
15592     lt_prog_compiler_wl_GCJ='-Wl,'
15593     lt_prog_compiler_static_GCJ='-static'
15594
15595     case $host_os in
15596       aix*)
15597       # All AIX code is PIC.
15598       if test "$host_cpu" = ia64; then
15599         # AIX 5 now supports IA64 processor
15600         lt_prog_compiler_static_GCJ='-Bstatic'
15601       fi
15602       ;;
15603
15604     amigaos*)
15605       # FIXME: we need at least 68020 code to build shared libraries, but
15606       # adding the `-m68020' flag to GCC prevents building anything better,
15607       # like `-m68040'.
15608       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15609       ;;
15610
15611     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15612       # PIC is the default for these OSes.
15613       ;;
15614
15615     mingw* | pw32* | os2*)
15616       # This hack is so that the source file can tell whether it is being
15617       # built for inclusion in a dll (and should export symbols for example).
15618       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15619       ;;
15620
15621     darwin* | rhapsody*)
15622       # PIC is the default on this platform
15623       # Common symbols not allowed in MH_DYLIB files
15624       lt_prog_compiler_pic_GCJ='-fno-common'
15625       ;;
15626
15627     msdosdjgpp*)
15628       # Just because we use GCC doesn't mean we suddenly get shared libraries
15629       # on systems that don't support them.
15630       lt_prog_compiler_can_build_shared_GCJ=no
15631       enable_shared=no
15632       ;;
15633
15634     sysv4*MP*)
15635       if test -d /usr/nec; then
15636         lt_prog_compiler_pic_GCJ=-Kconform_pic
15637       fi
15638       ;;
15639
15640     hpux*)
15641       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15642       # not for PA HP-UX.
15643       case "$host_cpu" in
15644       hppa*64*|ia64*)
15645         # +Z the default
15646         ;;
15647       *)
15648         lt_prog_compiler_pic_GCJ='-fPIC'
15649         ;;
15650       esac
15651       ;;
15652
15653     *)
15654       lt_prog_compiler_pic_GCJ='-fPIC'
15655       ;;
15656     esac
15657   else
15658     # PORTME Check for flag to pass linker flags through the system compiler.
15659     case $host_os in
15660     aix*)
15661       lt_prog_compiler_wl_GCJ='-Wl,'
15662       if test "$host_cpu" = ia64; then
15663         # AIX 5 now supports IA64 processor
15664         lt_prog_compiler_static_GCJ='-Bstatic'
15665       else
15666         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15667       fi
15668       ;;
15669
15670     mingw* | pw32* | os2*)
15671       # This hack is so that the source file can tell whether it is being
15672       # built for inclusion in a dll (and should export symbols for example).
15673       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15674       ;;
15675
15676     hpux9* | hpux10* | hpux11*)
15677       lt_prog_compiler_wl_GCJ='-Wl,'
15678       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15679       # not for PA HP-UX.
15680       case "$host_cpu" in
15681       hppa*64*|ia64*)
15682         # +Z the default
15683         ;;
15684       *)
15685         lt_prog_compiler_pic_GCJ='+Z'
15686         ;;
15687       esac
15688       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15689       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15690       ;;
15691
15692     irix5* | irix6* | nonstopux*)
15693       lt_prog_compiler_wl_GCJ='-Wl,'
15694       # PIC (with -KPIC) is the default.
15695       lt_prog_compiler_static_GCJ='-non_shared'
15696       ;;
15697
15698     newsos6)
15699       lt_prog_compiler_pic_GCJ='-KPIC'
15700       lt_prog_compiler_static_GCJ='-Bstatic'
15701       ;;
15702
15703     linux*)
15704       case $CC in
15705       icc* | ecc*)
15706         lt_prog_compiler_wl_GCJ='-Wl,'
15707         lt_prog_compiler_pic_GCJ='-KPIC'
15708         lt_prog_compiler_static_GCJ='-static'
15709         ;;
15710       ccc*)
15711         lt_prog_compiler_wl_GCJ='-Wl,'
15712         # All Alpha code is PIC.
15713         lt_prog_compiler_static_GCJ='-non_shared'
15714         ;;
15715       esac
15716       ;;
15717
15718     osf3* | osf4* | osf5*)
15719       lt_prog_compiler_wl_GCJ='-Wl,'
15720       # All OSF/1 code is PIC.
15721       lt_prog_compiler_static_GCJ='-non_shared'
15722       ;;
15723
15724     sco3.2v5*)
15725       lt_prog_compiler_pic_GCJ='-Kpic'
15726       lt_prog_compiler_static_GCJ='-dn'
15727       ;;
15728
15729     solaris*)
15730       lt_prog_compiler_wl_GCJ='-Wl,'
15731       lt_prog_compiler_pic_GCJ='-KPIC'
15732       lt_prog_compiler_static_GCJ='-Bstatic'
15733       ;;
15734
15735     sunos4*)
15736       lt_prog_compiler_wl_GCJ='-Qoption ld '
15737       lt_prog_compiler_pic_GCJ='-PIC'
15738       lt_prog_compiler_static_GCJ='-Bstatic'
15739       ;;
15740
15741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15742       lt_prog_compiler_wl_GCJ='-Wl,'
15743       lt_prog_compiler_pic_GCJ='-KPIC'
15744       lt_prog_compiler_static_GCJ='-Bstatic'
15745       ;;
15746
15747     sysv4*MP*)
15748       if test -d /usr/nec ;then
15749         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15750         lt_prog_compiler_static_GCJ='-Bstatic'
15751       fi
15752       ;;
15753
15754     uts4*)
15755       lt_prog_compiler_pic_GCJ='-pic'
15756       lt_prog_compiler_static_GCJ='-Bstatic'
15757       ;;
15758
15759     *)
15760       lt_prog_compiler_can_build_shared_GCJ=no
15761       ;;
15762     esac
15763   fi
15764
15765 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15766 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15767
15768 #
15769 # Check to make sure the PIC flag actually works.
15770 #
15771 if test -n "$lt_prog_compiler_pic_GCJ"; then
15772
15773 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15775 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778   lt_prog_compiler_pic_works_GCJ=no
15779   ac_outfile=conftest.$ac_objext
15780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15781    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15782    # Insert the option either (1) after the last *FLAGS variable, or
15783    # (2) before a word containing "conftest.", or (3) at the end.
15784    # Note that $ac_compile itself does not contain backslashes and begins
15785    # with a dollar sign (not a hyphen), so the echo should work correctly.
15786    # The option is referenced via a variable to avoid confusing sed.
15787    lt_compile=`echo "$ac_compile" | $SED \
15788    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15790    -e 's:$: $lt_compiler_flag:'`
15791    (eval echo "\"\$as_me:15791: $lt_compile\"" >&5)
15792    (eval "$lt_compile" 2>conftest.err)
15793    ac_status=$?
15794    cat conftest.err >&5
15795    echo "$as_me:15795: \$? = $ac_status" >&5
15796    if (exit $ac_status) && test -s "$ac_outfile"; then
15797      # The compiler can only warn and ignore the option if not recognized
15798      # So say no if there are warnings
15799      if test ! -s conftest.err; then
15800        lt_prog_compiler_pic_works_GCJ=yes
15801      fi
15802    fi
15803    $rm conftest*
15804
15805 fi
15806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15807 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15808
15809 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15810     case $lt_prog_compiler_pic_GCJ in
15811      "" | " "*) ;;
15812      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15813      esac
15814 else
15815     lt_prog_compiler_pic_GCJ=
15816      lt_prog_compiler_can_build_shared_GCJ=no
15817 fi
15818
15819 fi
15820 case "$host_os" in
15821   # For platforms which do not support PIC, -DPIC is meaningless:
15822   *djgpp*)
15823     lt_prog_compiler_pic_GCJ=
15824     ;;
15825   *)
15826     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15827     ;;
15828 esac
15829
15830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15832 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15833   echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15835   lt_cv_prog_compiler_c_o_GCJ=no
15836    $rm -r conftest 2>/dev/null
15837    mkdir conftest
15838    cd conftest
15839    mkdir out
15840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15841
15842    lt_compiler_flag="-o out/conftest2.$ac_objext"
15843    # Insert the option either (1) after the last *FLAGS variable, or
15844    # (2) before a word containing "conftest.", or (3) at the end.
15845    # Note that $ac_compile itself does not contain backslashes and begins
15846    # with a dollar sign (not a hyphen), so the echo should work correctly.
15847    lt_compile=`echo "$ac_compile" | $SED \
15848    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15850    -e 's:$: $lt_compiler_flag:'`
15851    (eval echo "\"\$as_me:15851: $lt_compile\"" >&5)
15852    (eval "$lt_compile" 2>out/conftest.err)
15853    ac_status=$?
15854    cat out/conftest.err >&5
15855    echo "$as_me:15855: \$? = $ac_status" >&5
15856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15857    then
15858      # The compiler can only warn and ignore the option if not recognized
15859      # So say no if there are warnings
15860      if test ! -s out/conftest.err; then
15861        lt_cv_prog_compiler_c_o_GCJ=yes
15862      fi
15863    fi
15864    chmod u+w .
15865    $rm conftest*
15866    # SGI C++ compiler will create directory out/ii_files/ for
15867    # template instantiation
15868    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15869    $rm out/* && rmdir out
15870    cd ..
15871    rmdir conftest
15872    $rm conftest*
15873
15874 fi
15875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15876 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15877
15878
15879 hard_links="nottested"
15880 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15881   # do not overwrite the value of need_locks provided by the user
15882   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15883 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15884   hard_links=yes
15885   $rm conftest*
15886   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15887   touch conftest.a
15888   ln conftest.a conftest.b 2>&5 || hard_links=no
15889   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15890   echo "$as_me:$LINENO: result: $hard_links" >&5
15891 echo "${ECHO_T}$hard_links" >&6
15892   if test "$hard_links" = no; then
15893     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15894 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15895     need_locks=warn
15896   fi
15897 else
15898   need_locks=no
15899 fi
15900
15901 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15902 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15903
15904   runpath_var=
15905   allow_undefined_flag_GCJ=
15906   enable_shared_with_static_runtimes_GCJ=no
15907   archive_cmds_GCJ=
15908   archive_expsym_cmds_GCJ=
15909   old_archive_From_new_cmds_GCJ=
15910   old_archive_from_expsyms_cmds_GCJ=
15911   export_dynamic_flag_spec_GCJ=
15912   whole_archive_flag_spec_GCJ=
15913   thread_safe_flag_spec_GCJ=
15914   hardcode_libdir_flag_spec_GCJ=
15915   hardcode_libdir_flag_spec_ld_GCJ=
15916   hardcode_libdir_separator_GCJ=
15917   hardcode_direct_GCJ=no
15918   hardcode_minus_L_GCJ=no
15919   hardcode_shlibpath_var_GCJ=unsupported
15920   link_all_deplibs_GCJ=unknown
15921   hardcode_automatic_GCJ=no
15922   module_cmds_GCJ=
15923   module_expsym_cmds_GCJ=
15924   always_export_symbols_GCJ=no
15925   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15926   # include_expsyms should be a list of space-separated symbols to be *always*
15927   # included in the symbol list
15928   include_expsyms_GCJ=
15929   # exclude_expsyms can be an extended regexp of symbols to exclude
15930   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15931   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15932   # as well as any symbol that contains `d'.
15933   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15934   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15935   # platforms (ab)use it in PIC code, but their linkers get confused if
15936   # the symbol is explicitly referenced.  Since portable code cannot
15937   # rely on this symbol name, it's probably fine to never include it in
15938   # preloaded symbol tables.
15939   extract_expsyms_cmds=
15940
15941   case $host_os in
15942   cygwin* | mingw* | pw32*)
15943     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15944     # When not using gcc, we currently assume that we are using
15945     # Microsoft Visual C++.
15946     if test "$GCC" != yes; then
15947       with_gnu_ld=no
15948     fi
15949     ;;
15950   openbsd*)
15951     with_gnu_ld=no
15952     ;;
15953   esac
15954
15955   ld_shlibs_GCJ=yes
15956   if test "$with_gnu_ld" = yes; then
15957     # If archive_cmds runs LD, not CC, wlarc should be empty
15958     wlarc='${wl}'
15959
15960     # See if GNU ld supports shared libraries.
15961     case $host_os in
15962     aix3* | aix4* | aix5*)
15963       # On AIX/PPC, the GNU linker is very broken
15964       if test "$host_cpu" != ia64; then
15965         ld_shlibs_GCJ=no
15966         cat <<EOF 1>&2
15967
15968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15969 *** to be unable to reliably create shared libraries on AIX.
15970 *** Therefore, libtool is disabling shared libraries support.  If you
15971 *** really care for shared libraries, you may want to modify your PATH
15972 *** so that a non-GNU linker is found, and then restart.
15973
15974 EOF
15975       fi
15976       ;;
15977
15978     amigaos*)
15979       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)'
15980       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981       hardcode_minus_L_GCJ=yes
15982
15983       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15984       # that the semantics of dynamic libraries on AmigaOS, at least up
15985       # to version 4, is to share data among multiple programs linked
15986       # with the same dynamic library.  Since this doesn't match the
15987       # behavior of shared libraries on other platforms, we can't use
15988       # them.
15989       ld_shlibs_GCJ=no
15990       ;;
15991
15992     beos*)
15993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15994         allow_undefined_flag_GCJ=unsupported
15995         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15996         # support --undefined.  This deserves some investigation.  FIXME
15997         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15998       else
15999         ld_shlibs_GCJ=no
16000       fi
16001       ;;
16002
16003     cygwin* | mingw* | pw32*)
16004       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16005       # as there is no search path for DLLs.
16006       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16007       allow_undefined_flag_GCJ=unsupported
16008       always_export_symbols_GCJ=no
16009       enable_shared_with_static_runtimes_GCJ=yes
16010       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16011
16012       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16013         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16014         # If the export-symbols file already is a .def file (1st line
16015         # is EXPORTS), use it as is; otherwise, prepend...
16016         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16017           cp $export_symbols $output_objdir/$soname.def;
16018         else
16019           echo EXPORTS > $output_objdir/$soname.def;
16020           cat $export_symbols >> $output_objdir/$soname.def;
16021         fi~
16022         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16023       else
16024         ld_shlibs=no
16025       fi
16026       ;;
16027
16028     netbsd*)
16029       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16030         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16031         wlarc=
16032       else
16033         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16035       fi
16036       ;;
16037
16038     solaris* | sysv5*)
16039       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16040         ld_shlibs_GCJ=no
16041         cat <<EOF 1>&2
16042
16043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16044 *** create shared libraries on Solaris systems.  Therefore, libtool
16045 *** is disabling shared libraries support.  We urge you to upgrade GNU
16046 *** binutils to release 2.9.1 or newer.  Another option is to modify
16047 *** your PATH or compiler configuration so that the native linker is
16048 *** used, and then restart.
16049
16050 EOF
16051       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16052         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16054       else
16055         ld_shlibs_GCJ=no
16056       fi
16057       ;;
16058
16059     sunos4*)
16060       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16061       wlarc=
16062       hardcode_direct_GCJ=yes
16063       hardcode_shlibpath_var_GCJ=no
16064       ;;
16065
16066   linux*)
16067     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16068         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069         archive_cmds_GCJ="$tmp_archive_cmds"
16070       supports_anon_versioning=no
16071       case `$LD -v 2>/dev/null` in
16072         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16073         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16074         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16075         *\ 2.11.*) ;; # other 2.11 versions
16076         *) supports_anon_versioning=yes ;;
16077       esac
16078       if test $supports_anon_versioning = yes; then
16079         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16081 $echo "local: *; };" >> $output_objdir/$libname.ver~
16082         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16083       else
16084         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16085       fi
16086     else
16087       ld_shlibs_GCJ=no
16088     fi
16089     ;;
16090
16091     *)
16092       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16093         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16095       else
16096         ld_shlibs_GCJ=no
16097       fi
16098       ;;
16099     esac
16100
16101     if test "$ld_shlibs_GCJ" = yes; then
16102       runpath_var=LD_RUN_PATH
16103       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16104       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16105       # ancient GNU ld didn't support --whole-archive et. al.
16106       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16107         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16108       else
16109         whole_archive_flag_spec_GCJ=
16110       fi
16111     fi
16112   else
16113     # PORTME fill in a description of your system's linker (not GNU ld)
16114     case $host_os in
16115     aix3*)
16116       allow_undefined_flag_GCJ=unsupported
16117       always_export_symbols_GCJ=yes
16118       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'
16119       # Note: this linker hardcodes the directories in LIBPATH if there
16120       # are no directories specified by -L.
16121       hardcode_minus_L_GCJ=yes
16122       if test "$GCC" = yes && test -z "$link_static_flag"; then
16123         # Neither direct hardcoding nor static linking is supported with a
16124         # broken collect2.
16125         hardcode_direct_GCJ=unsupported
16126       fi
16127       ;;
16128
16129     aix4* | aix5*)
16130       if test "$host_cpu" = ia64; then
16131         # On IA64, the linker does run time linking by default, so we don't
16132         # have to do anything special.
16133         aix_use_runtimelinking=no
16134         exp_sym_flag='-Bexport'
16135         no_entry_flag=""
16136       else
16137         # If we're using GNU nm, then we don't want the "-C" option.
16138         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16139         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16140           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'
16141         else
16142           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'
16143         fi
16144         aix_use_runtimelinking=no
16145
16146         # Test if we are trying to use run time linking or normal
16147         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16148         # need to do runtime linking.
16149         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16150           for ld_flag in $LDFLAGS; do
16151           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16152             aix_use_runtimelinking=yes
16153             break
16154           fi
16155           done
16156         esac
16157
16158         exp_sym_flag='-bexport'
16159         no_entry_flag='-bnoentry'
16160       fi
16161
16162       # When large executables or shared objects are built, AIX ld can
16163       # have problems creating the table of contents.  If linking a library
16164       # or program results in "error TOC overflow" add -mminimal-toc to
16165       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16166       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16167
16168       archive_cmds_GCJ=''
16169       hardcode_direct_GCJ=yes
16170       hardcode_libdir_separator_GCJ=':'
16171       link_all_deplibs_GCJ=yes
16172
16173       if test "$GCC" = yes; then
16174         case $host_os in aix4.012|aix4.012.*)
16175         # We only want to do this on AIX 4.2 and lower, the check
16176         # below for broken collect2 doesn't work under 4.3+
16177           collect2name=`${CC} -print-prog-name=collect2`
16178           if test -f "$collect2name" && \
16179            strings "$collect2name" | grep resolve_lib_name >/dev/null
16180           then
16181           # We have reworked collect2
16182           hardcode_direct_GCJ=yes
16183           else
16184           # We have old collect2
16185           hardcode_direct_GCJ=unsupported
16186           # It fails to find uninstalled libraries when the uninstalled
16187           # path is not listed in the libpath.  Setting hardcode_minus_L
16188           # to unsupported forces relinking
16189           hardcode_minus_L_GCJ=yes
16190           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16191           hardcode_libdir_separator_GCJ=
16192           fi
16193         esac
16194         shared_flag='-shared'
16195       else
16196         # not using gcc
16197         if test "$host_cpu" = ia64; then
16198         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16199         # chokes on -Wl,-G. The following line is correct:
16200           shared_flag='-G'
16201         else
16202         if test "$aix_use_runtimelinking" = yes; then
16203             shared_flag='${wl}-G'
16204           else
16205             shared_flag='${wl}-bM:SRE'
16206         fi
16207         fi
16208       fi
16209
16210       # It seems that -bexpall does not export symbols beginning with
16211       # underscore (_), so it is better to generate a list of symbols to export.
16212       always_export_symbols_GCJ=yes
16213       if test "$aix_use_runtimelinking" = yes; then
16214         # Warning - without using the other runtime loading flags (-brtl),
16215         # -berok will link without error, but may produce a broken library.
16216         allow_undefined_flag_GCJ='-berok'
16217        # Determine the default libpath from the value encoded in an empty executable.
16218        cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224
16225 int
16226 main ()
16227 {
16228
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16235   (eval $ac_link) 2>conftest.er1
16236   ac_status=$?
16237   grep -v '^ *+' conftest.er1 >conftest.err
16238   rm -f conftest.er1
16239   cat conftest.err >&5
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } &&
16242          { ac_try='test -z "$ac_c_werror_flag"
16243                          || test ! -s conftest.err'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; } &&
16249          { ac_try='test -s conftest$ac_exeext'
16250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251   (eval $ac_try) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }; }; then
16255
16256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16257 }'`
16258 # Check for a 64-bit object if we didn't find anything.
16259 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; }
16260 }'`; fi
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 fi
16266 rm -f conftest.err conftest.$ac_objext \
16267       conftest$ac_exeext conftest.$ac_ext
16268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16269
16270        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16271         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16272        else
16273         if test "$host_cpu" = ia64; then
16274           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16275           allow_undefined_flag_GCJ="-z nodefs"
16276           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16277         else
16278          # Determine the default libpath from the value encoded in an empty executable.
16279          cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285
16286 int
16287 main ()
16288 {
16289
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16296   (eval $ac_link) 2>conftest.er1
16297   ac_status=$?
16298   grep -v '^ *+' conftest.er1 >conftest.err
16299   rm -f conftest.er1
16300   cat conftest.err >&5
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -z "$ac_c_werror_flag"
16304                          || test ! -s conftest.err'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; } &&
16310          { ac_try='test -s conftest$ac_exeext'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316
16317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16318 }'`
16319 # Check for a 64-bit object if we didn't find anything.
16320 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; }
16321 }'`; fi
16322 else
16323   echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326 fi
16327 rm -f conftest.err conftest.$ac_objext \
16328       conftest$ac_exeext conftest.$ac_ext
16329 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16330
16331          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16332           # Warning - without using the other run time loading flags,
16333           # -berok will link without error, but may produce a broken library.
16334           no_undefined_flag_GCJ=' ${wl}-bernotok'
16335           allow_undefined_flag_GCJ=' ${wl}-berok'
16336           # -bexpall does not export symbols beginning with underscore (_)
16337           always_export_symbols_GCJ=yes
16338           # Exported symbols can be pulled into shared objects from archives
16339           whole_archive_flag_spec_GCJ=' '
16340           archive_cmds_need_lc_GCJ=yes
16341           # This is similar to how AIX traditionally builds it's shared libraries.
16342           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16343         fi
16344       fi
16345       ;;
16346
16347     amigaos*)
16348       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)'
16349       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16350       hardcode_minus_L_GCJ=yes
16351       # see comment about different semantics on the GNU ld section
16352       ld_shlibs_GCJ=no
16353       ;;
16354
16355     bsdi4*)
16356       export_dynamic_flag_spec_GCJ=-rdynamic
16357       ;;
16358
16359     cygwin* | mingw* | pw32*)
16360       # When not using gcc, we currently assume that we are using
16361       # Microsoft Visual C++.
16362       # hardcode_libdir_flag_spec is actually meaningless, as there is
16363       # no search path for DLLs.
16364       hardcode_libdir_flag_spec_GCJ=' '
16365       allow_undefined_flag_GCJ=unsupported
16366       # Tell ltmain to make .lib files, not .a files.
16367       libext=lib
16368       # Tell ltmain to make .dll files, not .so files.
16369       shrext_cmds=".dll"
16370       # FIXME: Setting linknames here is a bad hack.
16371       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16372       # The linker will automatically build a .lib file if we build a DLL.
16373       old_archive_From_new_cmds_GCJ='true'
16374       # FIXME: Should let the user specify the lib program.
16375       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16376       fix_srcfile_path='`cygpath -w "$srcfile"`'
16377       enable_shared_with_static_runtimes_GCJ=yes
16378       ;;
16379
16380     darwin* | rhapsody*)
16381     if test "$GXX" = yes ; then
16382       archive_cmds_need_lc_GCJ=no
16383       case "$host_os" in
16384       rhapsody* | darwin1.[012])
16385         allow_undefined_flag_GCJ='-undefined suppress'
16386         ;;
16387       *) # Darwin 1.3 on
16388       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16389         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16390       else
16391         case ${MACOSX_DEPLOYMENT_TARGET} in
16392           10.[012])
16393             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16394             ;;
16395           10.*)
16396             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16397             ;;
16398         esac
16399       fi
16400         ;;
16401       esac
16402         lt_int_apple_cc_single_mod=no
16403         output_verbose_link_cmd='echo'
16404         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16405           lt_int_apple_cc_single_mod=yes
16406         fi
16407         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16408           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16409         else
16410         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16411       fi
16412       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16413       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16414         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16415           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16416         else
16417           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16418         fi
16419           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}'
16420       hardcode_direct_GCJ=no
16421       hardcode_automatic_GCJ=yes
16422       hardcode_shlibpath_var_GCJ=unsupported
16423       whole_archive_flag_spec_GCJ='-all_load $convenience'
16424       link_all_deplibs_GCJ=yes
16425     else
16426       ld_shlibs_GCJ=no
16427     fi
16428       ;;
16429
16430     dgux*)
16431       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16432       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16433       hardcode_shlibpath_var_GCJ=no
16434       ;;
16435
16436     freebsd1*)
16437       ld_shlibs_GCJ=no
16438       ;;
16439
16440     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16441     # support.  Future versions do this automatically, but an explicit c++rt0.o
16442     # does not break anything, and helps significantly (at the cost of a little
16443     # extra space).
16444     freebsd2.2*)
16445       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16446       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16447       hardcode_direct_GCJ=yes
16448       hardcode_shlibpath_var_GCJ=no
16449       ;;
16450
16451     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16452     freebsd2*)
16453       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16454       hardcode_direct_GCJ=yes
16455       hardcode_minus_L_GCJ=yes
16456       hardcode_shlibpath_var_GCJ=no
16457       ;;
16458
16459     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16460     freebsd* | kfreebsd*-gnu)
16461       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16462       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16463       hardcode_direct_GCJ=yes
16464       hardcode_shlibpath_var_GCJ=no
16465       ;;
16466
16467     hpux9*)
16468       if test "$GCC" = yes; then
16469         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'
16470       else
16471         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'
16472       fi
16473       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16474       hardcode_libdir_separator_GCJ=:
16475       hardcode_direct_GCJ=yes
16476
16477       # hardcode_minus_L: Not really in the search PATH,
16478       # but as the default location of the library.
16479       hardcode_minus_L_GCJ=yes
16480       export_dynamic_flag_spec_GCJ='${wl}-E'
16481       ;;
16482
16483     hpux10* | hpux11*)
16484       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16485         case "$host_cpu" in
16486         hppa*64*|ia64*)
16487           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488           ;;
16489         *)
16490           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16491           ;;
16492         esac
16493       else
16494         case "$host_cpu" in
16495         hppa*64*|ia64*)
16496           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16497           ;;
16498         *)
16499           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16500           ;;
16501         esac
16502       fi
16503       if test "$with_gnu_ld" = no; then
16504         case "$host_cpu" in
16505         hppa*64*)
16506           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16507           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16508           hardcode_libdir_separator_GCJ=:
16509           hardcode_direct_GCJ=no
16510           hardcode_shlibpath_var_GCJ=no
16511           ;;
16512         ia64*)
16513           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16514           hardcode_direct_GCJ=no
16515           hardcode_shlibpath_var_GCJ=no
16516
16517           # hardcode_minus_L: Not really in the search PATH,
16518           # but as the default location of the library.
16519           hardcode_minus_L_GCJ=yes
16520           ;;
16521         *)
16522           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16523           hardcode_libdir_separator_GCJ=:
16524           hardcode_direct_GCJ=yes
16525           export_dynamic_flag_spec_GCJ='${wl}-E'
16526
16527           # hardcode_minus_L: Not really in the search PATH,
16528           # but as the default location of the library.
16529           hardcode_minus_L_GCJ=yes
16530           ;;
16531         esac
16532       fi
16533       ;;
16534
16535     irix5* | irix6* | nonstopux*)
16536       if test "$GCC" = yes; then
16537         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'
16538       else
16539         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'
16540         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16541       fi
16542       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16543       hardcode_libdir_separator_GCJ=:
16544       link_all_deplibs_GCJ=yes
16545       ;;
16546
16547     netbsd*)
16548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16550       else
16551         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16552       fi
16553       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16554       hardcode_direct_GCJ=yes
16555       hardcode_shlibpath_var_GCJ=no
16556       ;;
16557
16558     newsos6)
16559       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560       hardcode_direct_GCJ=yes
16561       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16562       hardcode_libdir_separator_GCJ=:
16563       hardcode_shlibpath_var_GCJ=no
16564       ;;
16565
16566     openbsd*)
16567       hardcode_direct_GCJ=yes
16568       hardcode_shlibpath_var_GCJ=no
16569       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16570         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16571         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16572         export_dynamic_flag_spec_GCJ='${wl}-E'
16573       else
16574        case $host_os in
16575          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16576            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16577            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16578            ;;
16579          *)
16580            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16581            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16582            ;;
16583        esac
16584       fi
16585       ;;
16586
16587     os2*)
16588       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16589       hardcode_minus_L_GCJ=yes
16590       allow_undefined_flag_GCJ=unsupported
16591       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'
16592       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16593       ;;
16594
16595     osf3*)
16596       if test "$GCC" = yes; then
16597         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16598         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'
16599       else
16600         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16601         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'
16602       fi
16603       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16604       hardcode_libdir_separator_GCJ=:
16605       ;;
16606
16607     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16608       if test "$GCC" = yes; then
16609         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16610         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'
16611         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16612       else
16613         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16614         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'
16615         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~
16616         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16617
16618         # Both c and cxx compiler support -rpath directly
16619         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16620       fi
16621       hardcode_libdir_separator_GCJ=:
16622       ;;
16623
16624     sco3.2v5*)
16625       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626       hardcode_shlibpath_var_GCJ=no
16627       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16628       runpath_var=LD_RUN_PATH
16629       hardcode_runpath_var=yes
16630       ;;
16631
16632     solaris*)
16633       no_undefined_flag_GCJ=' -z text'
16634       if test "$GCC" = yes; then
16635         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16636         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16637           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16638       else
16639         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16641         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16642       fi
16643       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16644       hardcode_shlibpath_var_GCJ=no
16645       case $host_os in
16646       solaris2.[0-5] | solaris2.[0-5].*) ;;
16647       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16648         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16649       esac
16650       link_all_deplibs_GCJ=yes
16651       ;;
16652
16653     sunos4*)
16654       if test "x$host_vendor" = xsequent; then
16655         # Use $CC to link under sequent, because it throws in some extra .o
16656         # files that make .init and .fini sections work.
16657         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16658       else
16659         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16660       fi
16661       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16662       hardcode_direct_GCJ=yes
16663       hardcode_minus_L_GCJ=yes
16664       hardcode_shlibpath_var_GCJ=no
16665       ;;
16666
16667     sysv4)
16668       case $host_vendor in
16669         sni)
16670           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671           hardcode_direct_GCJ=yes # is this really true???
16672         ;;
16673         siemens)
16674           ## LD is ld it makes a PLAMLIB
16675           ## CC just makes a GrossModule.
16676           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16677           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16678           hardcode_direct_GCJ=no
16679         ;;
16680         motorola)
16681           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16683         ;;
16684       esac
16685       runpath_var='LD_RUN_PATH'
16686       hardcode_shlibpath_var_GCJ=no
16687       ;;
16688
16689     sysv4.3*)
16690       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16691       hardcode_shlibpath_var_GCJ=no
16692       export_dynamic_flag_spec_GCJ='-Bexport'
16693       ;;
16694
16695     sysv4*MP*)
16696       if test -d /usr/nec; then
16697         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698         hardcode_shlibpath_var_GCJ=no
16699         runpath_var=LD_RUN_PATH
16700         hardcode_runpath_var=yes
16701         ld_shlibs_GCJ=yes
16702       fi
16703       ;;
16704
16705     sysv4.2uw2*)
16706       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16707       hardcode_direct_GCJ=yes
16708       hardcode_minus_L_GCJ=no
16709       hardcode_shlibpath_var_GCJ=no
16710       hardcode_runpath_var=yes
16711       runpath_var=LD_RUN_PATH
16712       ;;
16713
16714    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16715       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16716       if test "$GCC" = yes; then
16717         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16718       else
16719         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16720       fi
16721       runpath_var='LD_RUN_PATH'
16722       hardcode_shlibpath_var_GCJ=no
16723       ;;
16724
16725     sysv5*)
16726       no_undefined_flag_GCJ=' -z text'
16727       # $CC -shared without GNU ld will not create a library from C++
16728       # object files and a static libstdc++, better avoid it by now
16729       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16731                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16732       hardcode_libdir_flag_spec_GCJ=
16733       hardcode_shlibpath_var_GCJ=no
16734       runpath_var='LD_RUN_PATH'
16735       ;;
16736
16737     uts4*)
16738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16740       hardcode_shlibpath_var_GCJ=no
16741       ;;
16742
16743     *)
16744       ld_shlibs_GCJ=no
16745       ;;
16746     esac
16747   fi
16748
16749 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16750 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16751 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16752
16753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16754 if test "$GCC" = yes; then
16755   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16756 fi
16757
16758 #
16759 # Do we need to explicitly link libc?
16760 #
16761 case "x$archive_cmds_need_lc_GCJ" in
16762 x|xyes)
16763   # Assume -lc should be added
16764   archive_cmds_need_lc_GCJ=yes
16765
16766   if test "$enable_shared" = yes && test "$GCC" = yes; then
16767     case $archive_cmds_GCJ in
16768     *'~'*)
16769       # FIXME: we may have to deal with multi-command sequences.
16770       ;;
16771     '$CC '*)
16772       # Test whether the compiler implicitly links with -lc since on some
16773       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16774       # to ld, don't add -lc before -lgcc.
16775       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16776 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16777       $rm conftest*
16778       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16779
16780       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781   (eval $ac_compile) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } 2>conftest.err; then
16785         soname=conftest
16786         lib=conftest
16787         libobjs=conftest.$ac_objext
16788         deplibs=
16789         wl=$lt_prog_compiler_wl_GCJ
16790         compiler_flags=-v
16791         linker_flags=-v
16792         verstring=
16793         output_objdir=.
16794         libname=conftest
16795         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16796         allow_undefined_flag_GCJ=
16797         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16798   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); }
16802         then
16803           archive_cmds_need_lc_GCJ=no
16804         else
16805           archive_cmds_need_lc_GCJ=yes
16806         fi
16807         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16808       else
16809         cat conftest.err 1>&5
16810       fi
16811       $rm conftest*
16812       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16813 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16814       ;;
16815     esac
16816   fi
16817   ;;
16818 esac
16819
16820 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16821 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16822 library_names_spec=
16823 libname_spec='lib$name'
16824 soname_spec=
16825 shrext_cmds=".so"
16826 postinstall_cmds=
16827 postuninstall_cmds=
16828 finish_cmds=
16829 finish_eval=
16830 shlibpath_var=
16831 shlibpath_overrides_runpath=unknown
16832 version_type=none
16833 dynamic_linker="$host_os ld.so"
16834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16835 if test "$GCC" = yes; then
16836   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16837   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16838     # if the path contains ";" then we assume it to be the separator
16839     # otherwise default to the standard path separator (i.e. ":") - it is
16840     # assumed that no part of a normal pathname contains ";" but that should
16841     # okay in the real world where ";" in dirpaths is itself problematic.
16842     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16843   else
16844     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16845   fi
16846 else
16847   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16848 fi
16849 need_lib_prefix=unknown
16850 hardcode_into_libs=no
16851
16852 # when you set need_version to no, make sure it does not cause -set_version
16853 # flags to be left without arguments
16854 need_version=unknown
16855
16856 case $host_os in
16857 aix3*)
16858   version_type=linux
16859   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16860   shlibpath_var=LIBPATH
16861
16862   # AIX 3 has no versioning support, so we append a major version to the name.
16863   soname_spec='${libname}${release}${shared_ext}$major'
16864   ;;
16865
16866 aix4* | aix5*)
16867   version_type=linux
16868   need_lib_prefix=no
16869   need_version=no
16870   hardcode_into_libs=yes
16871   if test "$host_cpu" = ia64; then
16872     # AIX 5 supports IA64
16873     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16874     shlibpath_var=LD_LIBRARY_PATH
16875   else
16876     # With GCC up to 2.95.x, collect2 would create an import file
16877     # for dependence libraries.  The import file would start with
16878     # the line `#! .'.  This would cause the generated library to
16879     # depend on `.', always an invalid library.  This was fixed in
16880     # development snapshots of GCC prior to 3.0.
16881     case $host_os in
16882       aix4 | aix4.[01] | aix4.[01].*)
16883       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16884            echo ' yes '
16885            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16886         :
16887       else
16888         can_build_shared=no
16889       fi
16890       ;;
16891     esac
16892     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16893     # soname into executable. Probably we can add versioning support to
16894     # collect2, so additional links can be useful in future.
16895     if test "$aix_use_runtimelinking" = yes; then
16896       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16897       # instead of lib<name>.a to let people know that these are not
16898       # typical AIX shared libraries.
16899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16900     else
16901       # We preserve .a as extension for shared libraries through AIX4.2
16902       # and later when we are not doing run time linking.
16903       library_names_spec='${libname}${release}.a $libname.a'
16904       soname_spec='${libname}${release}${shared_ext}$major'
16905     fi
16906     shlibpath_var=LIBPATH
16907   fi
16908   ;;
16909
16910 amigaos*)
16911   library_names_spec='$libname.ixlibrary $libname.a'
16912   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16913   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'
16914   ;;
16915
16916 beos*)
16917   library_names_spec='${libname}${shared_ext}'
16918   dynamic_linker="$host_os ld.so"
16919   shlibpath_var=LIBRARY_PATH
16920   ;;
16921
16922 bsdi4*)
16923   version_type=linux
16924   need_version=no
16925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926   soname_spec='${libname}${release}${shared_ext}$major'
16927   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16928   shlibpath_var=LD_LIBRARY_PATH
16929   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16930   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16931   # the default ld.so.conf also contains /usr/contrib/lib and
16932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16933   # libtool to hard-code these into programs
16934   ;;
16935
16936 cygwin* | mingw* | pw32*)
16937   version_type=windows
16938   shrext_cmds=".dll"
16939   need_version=no
16940   need_lib_prefix=no
16941
16942   case $GCC,$host_os in
16943   yes,cygwin* | yes,mingw* | yes,pw32*)
16944     library_names_spec='$libname.dll.a'
16945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16946     postinstall_cmds='base_file=`basename \${file}`~
16947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16948       dldir=$destdir/`dirname \$dlpath`~
16949       test -d \$dldir || mkdir -p \$dldir~
16950       $install_prog $dir/$dlname \$dldir/$dlname'
16951     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16952       dlpath=$dir/\$dldll~
16953        $rm \$dlpath'
16954     shlibpath_overrides_runpath=yes
16955
16956     case $host_os in
16957     cygwin*)
16958       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16959       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16960       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16961       ;;
16962     mingw*)
16963       # MinGW DLLs use traditional 'lib' prefix
16964       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16965       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16966       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16967         # It is most probably a Windows format PATH printed by
16968         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16969         # path with ; separators, and with drive letters. We can handle the
16970         # drive letters (cygwin fileutils understands them), so leave them,
16971         # especially as we might pass files found there to a mingw objdump,
16972         # which wouldn't understand a cygwinified path. Ahh.
16973         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16974       else
16975         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16976       fi
16977       ;;
16978     pw32*)
16979       # pw32 DLLs use 'pw' prefix rather than 'lib'
16980       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16981       ;;
16982     esac
16983     ;;
16984
16985   *)
16986     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16987     ;;
16988   esac
16989   dynamic_linker='Win32 ld.exe'
16990   # FIXME: first we should search . and the directory the executable is in
16991   shlibpath_var=PATH
16992   ;;
16993
16994 darwin* | rhapsody*)
16995   dynamic_linker="$host_os dyld"
16996   version_type=darwin
16997   need_lib_prefix=no
16998   need_version=no
16999   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17000   soname_spec='${libname}${release}${major}$shared_ext'
17001   shlibpath_overrides_runpath=yes
17002   shlibpath_var=DYLD_LIBRARY_PATH
17003   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17004   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17005   if test "$GCC" = yes; then
17006     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"`
17007   else
17008     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17009   fi
17010   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17011   ;;
17012
17013 dgux*)
17014   version_type=linux
17015   need_lib_prefix=no
17016   need_version=no
17017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17018   soname_spec='${libname}${release}${shared_ext}$major'
17019   shlibpath_var=LD_LIBRARY_PATH
17020   ;;
17021
17022 freebsd1*)
17023   dynamic_linker=no
17024   ;;
17025
17026 kfreebsd*-gnu)
17027   version_type=linux
17028   need_lib_prefix=no
17029   need_version=no
17030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17031   soname_spec='${libname}${release}${shared_ext}$major'
17032   shlibpath_var=LD_LIBRARY_PATH
17033   shlibpath_overrides_runpath=no
17034   hardcode_into_libs=yes
17035   dynamic_linker='GNU ld.so'
17036   ;;
17037
17038 freebsd*)
17039   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17040   version_type=freebsd-$objformat
17041   case $version_type in
17042     freebsd-elf*)
17043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17044       need_version=no
17045       need_lib_prefix=no
17046       ;;
17047     freebsd-*)
17048       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17049       need_version=yes
17050       ;;
17051   esac
17052   shlibpath_var=LD_LIBRARY_PATH
17053   case $host_os in
17054   freebsd2*)
17055     shlibpath_overrides_runpath=yes
17056     ;;
17057   freebsd3.01* | freebsdelf3.01*)
17058     shlibpath_overrides_runpath=yes
17059     hardcode_into_libs=yes
17060     ;;
17061   *) # from 3.2 on
17062     shlibpath_overrides_runpath=no
17063     hardcode_into_libs=yes
17064     ;;
17065   esac
17066   ;;
17067
17068 gnu*)
17069   version_type=linux
17070   need_lib_prefix=no
17071   need_version=no
17072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17073   soname_spec='${libname}${release}${shared_ext}$major'
17074   shlibpath_var=LD_LIBRARY_PATH
17075   hardcode_into_libs=yes
17076   ;;
17077
17078 hpux9* | hpux10* | hpux11*)
17079   # Give a soname corresponding to the major version so that dld.sl refuses to
17080   # link against other versions.
17081   version_type=sunos
17082   need_lib_prefix=no
17083   need_version=no
17084   case "$host_cpu" in
17085   ia64*)
17086     shrext_cmds='.so'
17087     hardcode_into_libs=yes
17088     dynamic_linker="$host_os dld.so"
17089     shlibpath_var=LD_LIBRARY_PATH
17090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092     soname_spec='${libname}${release}${shared_ext}$major'
17093     if test "X$HPUX_IA64_MODE" = X32; then
17094       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17095     else
17096       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17097     fi
17098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17099     ;;
17100    hppa*64*)
17101      shrext_cmds='.sl'
17102      hardcode_into_libs=yes
17103      dynamic_linker="$host_os dld.sl"
17104      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17105      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107      soname_spec='${libname}${release}${shared_ext}$major'
17108      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17109      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17110      ;;
17111    *)
17112     shrext_cmds='.sl'
17113     dynamic_linker="$host_os dld.sl"
17114     shlibpath_var=SHLIB_PATH
17115     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117     soname_spec='${libname}${release}${shared_ext}$major'
17118     ;;
17119   esac
17120   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17121   postinstall_cmds='chmod 555 $lib'
17122   ;;
17123
17124 irix5* | irix6* | nonstopux*)
17125   case $host_os in
17126     nonstopux*) version_type=nonstopux ;;
17127     *)
17128         if test "$lt_cv_prog_gnu_ld" = yes; then
17129                 version_type=linux
17130         else
17131                 version_type=irix
17132         fi ;;
17133   esac
17134   need_lib_prefix=no
17135   need_version=no
17136   soname_spec='${libname}${release}${shared_ext}$major'
17137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17138   case $host_os in
17139   irix5* | nonstopux*)
17140     libsuff= shlibsuff=
17141     ;;
17142   *)
17143     case $LD in # libtool.m4 will add one of these switches to LD
17144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17145       libsuff= shlibsuff= libmagic=32-bit;;
17146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17147       libsuff=32 shlibsuff=N32 libmagic=N32;;
17148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17150     *) libsuff= shlibsuff= libmagic=never-match;;
17151     esac
17152     ;;
17153   esac
17154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17155   shlibpath_overrides_runpath=no
17156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17158   hardcode_into_libs=yes
17159   ;;
17160
17161 # No shared lib support for Linux oldld, aout, or coff.
17162 linux*oldld* | linux*aout* | linux*coff*)
17163   dynamic_linker=no
17164   ;;
17165
17166 # This must be Linux ELF.
17167 linux*)
17168   version_type=linux
17169   need_lib_prefix=no
17170   need_version=no
17171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172   soname_spec='${libname}${release}${shared_ext}$major'
17173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17174   shlibpath_var=LD_LIBRARY_PATH
17175   shlibpath_overrides_runpath=no
17176   # This implies no fast_install, which is unacceptable.
17177   # Some rework will be needed to allow for fast_install
17178   # before this can be enabled.
17179   hardcode_into_libs=yes
17180
17181   # find out which ABI we are using
17182   libsuff=
17183   case "$host_cpu" in
17184   x86_64*|s390x*|powerpc64*)
17185     echo '#line 17185 "configure"' > conftest.$ac_ext
17186     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17187   (eval $ac_compile) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; then
17191       case `/usr/bin/file conftest.$ac_objext` in
17192       *64-bit*)
17193         libsuff=64
17194         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17195         ;;
17196       esac
17197     fi
17198     rm -rf conftest*
17199     ;;
17200   esac
17201
17202   # Append ld.so.conf contents to the search path
17203   if test -f /etc/ld.so.conf; then
17204     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17205     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17206   fi
17207
17208   # We used to test for /lib/ld.so.1 and disable shared libraries on
17209   # powerpc, because MkLinux only supported shared libraries with the
17210   # GNU dynamic linker.  Since this was broken with cross compilers,
17211   # most powerpc-linux boxes support dynamic linking these days and
17212   # people can always --disable-shared, the test was removed, and we
17213   # assume the GNU/Linux dynamic linker is in use.
17214   dynamic_linker='GNU/Linux ld.so'
17215   ;;
17216
17217 knetbsd*-gnu)
17218   version_type=linux
17219   need_lib_prefix=no
17220   need_version=no
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17222   soname_spec='${libname}${release}${shared_ext}$major'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   shlibpath_overrides_runpath=no
17225   hardcode_into_libs=yes
17226   dynamic_linker='GNU ld.so'
17227   ;;
17228
17229 netbsd*)
17230   version_type=sunos
17231   need_lib_prefix=no
17232   need_version=no
17233   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17235     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17236     dynamic_linker='NetBSD (a.out) ld.so'
17237   else
17238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17239     soname_spec='${libname}${release}${shared_ext}$major'
17240     dynamic_linker='NetBSD ld.elf_so'
17241   fi
17242   shlibpath_var=LD_LIBRARY_PATH
17243   shlibpath_overrides_runpath=yes
17244   hardcode_into_libs=yes
17245   ;;
17246
17247 newsos6)
17248   version_type=linux
17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   shlibpath_overrides_runpath=yes
17252   ;;
17253
17254 nto-qnx*)
17255   version_type=linux
17256   need_lib_prefix=no
17257   need_version=no
17258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17259   soname_spec='${libname}${release}${shared_ext}$major'
17260   shlibpath_var=LD_LIBRARY_PATH
17261   shlibpath_overrides_runpath=yes
17262   ;;
17263
17264 openbsd*)
17265   version_type=sunos
17266   need_lib_prefix=no
17267   need_version=yes
17268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17272     case $host_os in
17273       openbsd2.[89] | openbsd2.[89].*)
17274         shlibpath_overrides_runpath=no
17275         ;;
17276       *)
17277         shlibpath_overrides_runpath=yes
17278         ;;
17279       esac
17280   else
17281     shlibpath_overrides_runpath=yes
17282   fi
17283   ;;
17284
17285 os2*)
17286   libname_spec='$name'
17287   shrext_cmds=".dll"
17288   need_lib_prefix=no
17289   library_names_spec='$libname${shared_ext} $libname.a'
17290   dynamic_linker='OS/2 ld.exe'
17291   shlibpath_var=LIBPATH
17292   ;;
17293
17294 osf3* | osf4* | osf5*)
17295   version_type=osf
17296   need_lib_prefix=no
17297   need_version=no
17298   soname_spec='${libname}${release}${shared_ext}$major'
17299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300   shlibpath_var=LD_LIBRARY_PATH
17301   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17302   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17303   ;;
17304
17305 sco3.2v5*)
17306   version_type=osf
17307   soname_spec='${libname}${release}${shared_ext}$major'
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309   shlibpath_var=LD_LIBRARY_PATH
17310   ;;
17311
17312 solaris*)
17313   version_type=linux
17314   need_lib_prefix=no
17315   need_version=no
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317   soname_spec='${libname}${release}${shared_ext}$major'
17318   shlibpath_var=LD_LIBRARY_PATH
17319   shlibpath_overrides_runpath=yes
17320   hardcode_into_libs=yes
17321   # ldd complains unless libraries are executable
17322   postinstall_cmds='chmod +x $lib'
17323   ;;
17324
17325 sunos4*)
17326   version_type=sunos
17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17329   shlibpath_var=LD_LIBRARY_PATH
17330   shlibpath_overrides_runpath=yes
17331   if test "$with_gnu_ld" = yes; then
17332     need_lib_prefix=no
17333   fi
17334   need_version=yes
17335   ;;
17336
17337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17338   version_type=linux
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340   soname_spec='${libname}${release}${shared_ext}$major'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   case $host_vendor in
17343     sni)
17344       shlibpath_overrides_runpath=no
17345       need_lib_prefix=no
17346       export_dynamic_flag_spec='${wl}-Blargedynsym'
17347       runpath_var=LD_RUN_PATH
17348       ;;
17349     siemens)
17350       need_lib_prefix=no
17351       ;;
17352     motorola)
17353       need_lib_prefix=no
17354       need_version=no
17355       shlibpath_overrides_runpath=no
17356       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17357       ;;
17358   esac
17359   ;;
17360
17361 sysv4*MP*)
17362   if test -d /usr/nec ;then
17363     version_type=linux
17364     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17365     soname_spec='$libname${shared_ext}.$major'
17366     shlibpath_var=LD_LIBRARY_PATH
17367   fi
17368   ;;
17369
17370 uts4*)
17371   version_type=linux
17372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373   soname_spec='${libname}${release}${shared_ext}$major'
17374   shlibpath_var=LD_LIBRARY_PATH
17375   ;;
17376
17377 *)
17378   dynamic_linker=no
17379   ;;
17380 esac
17381 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17382 echo "${ECHO_T}$dynamic_linker" >&6
17383 test "$dynamic_linker" = no && can_build_shared=no
17384
17385 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17386 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17387 hardcode_action_GCJ=
17388 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17389    test -n "$runpath_var GCJ" || \
17390    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17391
17392   # We can hardcode non-existant directories.
17393   if test "$hardcode_direct_GCJ" != no &&
17394      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17395      # have to relink, otherwise we might link with an installed library
17396      # when we should be linking with a yet-to-be-installed one
17397      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17398      test "$hardcode_minus_L_GCJ" != no; then
17399     # Linking always hardcodes the temporary library directory.
17400     hardcode_action_GCJ=relink
17401   else
17402     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17403     hardcode_action_GCJ=immediate
17404   fi
17405 else
17406   # We cannot hardcode anything, or else we can only hardcode existing
17407   # directories.
17408   hardcode_action_GCJ=unsupported
17409 fi
17410 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17411 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17412
17413 if test "$hardcode_action_GCJ" = relink; then
17414   # Fast installation is not supported
17415   enable_fast_install=no
17416 elif test "$shlibpath_overrides_runpath" = yes ||
17417      test "$enable_shared" = no; then
17418   # Fast installation is not necessary
17419   enable_fast_install=needless
17420 fi
17421
17422 striplib=
17423 old_striplib=
17424 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17425 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17426 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17427   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17428   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17429   echo "$as_me:$LINENO: result: yes" >&5
17430 echo "${ECHO_T}yes" >&6
17431 else
17432 # FIXME - insert some real tests, host_os isn't really good enough
17433   case $host_os in
17434    darwin*)
17435        if test -n "$STRIP" ; then
17436          striplib="$STRIP -x"
17437          echo "$as_me:$LINENO: result: yes" >&5
17438 echo "${ECHO_T}yes" >&6
17439        else
17440   echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6
17442 fi
17443        ;;
17444    *)
17445   echo "$as_me:$LINENO: result: no" >&5
17446 echo "${ECHO_T}no" >&6
17447     ;;
17448   esac
17449 fi
17450
17451 if test "x$enable_dlopen" != xyes; then
17452   enable_dlopen=unknown
17453   enable_dlopen_self=unknown
17454   enable_dlopen_self_static=unknown
17455 else
17456   lt_cv_dlopen=no
17457   lt_cv_dlopen_libs=
17458
17459   case $host_os in
17460   beos*)
17461     lt_cv_dlopen="load_add_on"
17462     lt_cv_dlopen_libs=
17463     lt_cv_dlopen_self=yes
17464     ;;
17465
17466   mingw* | pw32*)
17467     lt_cv_dlopen="LoadLibrary"
17468     lt_cv_dlopen_libs=
17469    ;;
17470
17471   cygwin*)
17472     lt_cv_dlopen="dlopen"
17473     lt_cv_dlopen_libs=
17474    ;;
17475
17476   darwin*)
17477   # if libdl is installed we need to link against it
17478     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17481   echo $ECHO_N "(cached) $ECHO_C" >&6
17482 else
17483   ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-ldl  $LIBS"
17485 cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h.  */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h.  */
17491
17492 /* Override any gcc2 internal prototype to avoid an error.  */
17493 #ifdef __cplusplus
17494 extern "C"
17495 #endif
17496 /* We use char because int might match the return type of a gcc2
17497    builtin and then its argument prototype would still apply.  */
17498 char dlopen ();
17499 int
17500 main ()
17501 {
17502 dlopen ();
17503   ;
17504   return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509   (eval $ac_link) 2>conftest.er1
17510   ac_status=$?
17511   grep -v '^ *+' conftest.er1 >conftest.err
17512   rm -f conftest.er1
17513   cat conftest.err >&5
17514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); } &&
17516          { ac_try='test -z "$ac_c_werror_flag"
17517                          || test ! -s conftest.err'
17518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519   (eval $ac_try) 2>&5
17520   ac_status=$?
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); }; } &&
17523          { ac_try='test -s conftest$ac_exeext'
17524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525   (eval $ac_try) 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); }; }; then
17529   ac_cv_lib_dl_dlopen=yes
17530 else
17531   echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534 ac_cv_lib_dl_dlopen=no
17535 fi
17536 rm -f conftest.err conftest.$ac_objext \
17537       conftest$ac_exeext conftest.$ac_ext
17538 LIBS=$ac_check_lib_save_LIBS
17539 fi
17540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17542 if test $ac_cv_lib_dl_dlopen = yes; then
17543   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17544 else
17545
17546     lt_cv_dlopen="dyld"
17547     lt_cv_dlopen_libs=
17548     lt_cv_dlopen_self=yes
17549
17550 fi
17551
17552    ;;
17553
17554   *)
17555     echo "$as_me:$LINENO: checking for shl_load" >&5
17556 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17557 if test "${ac_cv_func_shl_load+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17568 #define shl_load innocuous_shl_load
17569
17570 /* System header to define __stub macros and hopefully few prototypes,
17571     which can conflict with char shl_load (); below.
17572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573     <limits.h> exists even on freestanding compilers.  */
17574
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17580
17581 #undef shl_load
17582
17583 /* Override any gcc2 internal prototype to avoid an error.  */
17584 #ifdef __cplusplus
17585 extern "C"
17586 {
17587 #endif
17588 /* We use char because int might match the return type of a gcc2
17589    builtin and then its argument prototype would still apply.  */
17590 char shl_load ();
17591 /* The GNU C library defines this for functions which it implements
17592     to always fail with ENOSYS.  Some functions are actually named
17593     something starting with __ and the normal name is an alias.  */
17594 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17595 choke me
17596 #else
17597 char (*f) () = shl_load;
17598 #endif
17599 #ifdef __cplusplus
17600 }
17601 #endif
17602
17603 int
17604 main ()
17605 {
17606 return f != shl_load;
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613   (eval $ac_link) 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } &&
17620          { ac_try='test -z "$ac_c_werror_flag"
17621                          || test ! -s conftest.err'
17622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623   (eval $ac_try) 2>&5
17624   ac_status=$?
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); }; } &&
17627          { ac_try='test -s conftest$ac_exeext'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; }; then
17633   ac_cv_func_shl_load=yes
17634 else
17635   echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 ac_cv_func_shl_load=no
17639 fi
17640 rm -f conftest.err conftest.$ac_objext \
17641       conftest$ac_exeext conftest.$ac_ext
17642 fi
17643 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17644 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17645 if test $ac_cv_func_shl_load = yes; then
17646   lt_cv_dlopen="shl_load"
17647 else
17648   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17649 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17650 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653   ac_check_lib_save_LIBS=$LIBS
17654 LIBS="-ldld  $LIBS"
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661
17662 /* Override any gcc2 internal prototype to avoid an error.  */
17663 #ifdef __cplusplus
17664 extern "C"
17665 #endif
17666 /* We use char because int might match the return type of a gcc2
17667    builtin and then its argument prototype would still apply.  */
17668 char shl_load ();
17669 int
17670 main ()
17671 {
17672 shl_load ();
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679   (eval $ac_link) 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } &&
17686          { ac_try='test -z "$ac_c_werror_flag"
17687                          || test ! -s conftest.err'
17688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689   (eval $ac_try) 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; } &&
17693          { ac_try='test -s conftest$ac_exeext'
17694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695   (eval $ac_try) 2>&5
17696   ac_status=$?
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; }; then
17699   ac_cv_lib_dld_shl_load=yes
17700 else
17701   echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704 ac_cv_lib_dld_shl_load=no
17705 fi
17706 rm -f conftest.err conftest.$ac_objext \
17707       conftest$ac_exeext conftest.$ac_ext
17708 LIBS=$ac_check_lib_save_LIBS
17709 fi
17710 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17711 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17712 if test $ac_cv_lib_dld_shl_load = yes; then
17713   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17714 else
17715   echo "$as_me:$LINENO: checking for dlopen" >&5
17716 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17717 if test "${ac_cv_func_dlopen+set}" = set; then
17718   echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720   cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17728 #define dlopen innocuous_dlopen
17729
17730 /* System header to define __stub macros and hopefully few prototypes,
17731     which can conflict with char dlopen (); below.
17732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733     <limits.h> exists even on freestanding compilers.  */
17734
17735 #ifdef __STDC__
17736 # include <limits.h>
17737 #else
17738 # include <assert.h>
17739 #endif
17740
17741 #undef dlopen
17742
17743 /* Override any gcc2 internal prototype to avoid an error.  */
17744 #ifdef __cplusplus
17745 extern "C"
17746 {
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749    builtin and then its argument prototype would still apply.  */
17750 char dlopen ();
17751 /* The GNU C library defines this for functions which it implements
17752     to always fail with ENOSYS.  Some functions are actually named
17753     something starting with __ and the normal name is an alias.  */
17754 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17755 choke me
17756 #else
17757 char (*f) () = dlopen;
17758 #endif
17759 #ifdef __cplusplus
17760 }
17761 #endif
17762
17763 int
17764 main ()
17765 {
17766 return f != dlopen;
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773   (eval $ac_link) 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } &&
17780          { ac_try='test -z "$ac_c_werror_flag"
17781                          || test ! -s conftest.err'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; } &&
17787          { ac_try='test -s conftest$ac_exeext'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   ac_cv_func_dlopen=yes
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 ac_cv_func_dlopen=no
17799 fi
17800 rm -f conftest.err conftest.$ac_objext \
17801       conftest$ac_exeext conftest.$ac_ext
17802 fi
17803 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17804 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17805 if test $ac_cv_func_dlopen = yes; then
17806   lt_cv_dlopen="dlopen"
17807 else
17808   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17809 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-ldl  $LIBS"
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h.  */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h.  */
17821
17822 /* Override any gcc2 internal prototype to avoid an error.  */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 /* We use char because int might match the return type of a gcc2
17827    builtin and then its argument prototype would still apply.  */
17828 char dlopen ();
17829 int
17830 main ()
17831 {
17832 dlopen ();
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839   (eval $ac_link) 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_c_werror_flag"
17847                          || test ! -s conftest.err'
17848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849   (eval $ac_try) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; } &&
17853          { ac_try='test -s conftest$ac_exeext'
17854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855   (eval $ac_try) 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; }; then
17859   ac_cv_lib_dl_dlopen=yes
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 ac_cv_lib_dl_dlopen=no
17865 fi
17866 rm -f conftest.err conftest.$ac_objext \
17867       conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17869 fi
17870 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17871 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17872 if test $ac_cv_lib_dl_dlopen = yes; then
17873   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17874 else
17875   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17876 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17877 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   ac_check_lib_save_LIBS=$LIBS
17881 LIBS="-lsvld  $LIBS"
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888
17889 /* Override any gcc2 internal prototype to avoid an error.  */
17890 #ifdef __cplusplus
17891 extern "C"
17892 #endif
17893 /* We use char because int might match the return type of a gcc2
17894    builtin and then its argument prototype would still apply.  */
17895 char dlopen ();
17896 int
17897 main ()
17898 {
17899 dlopen ();
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906   (eval $ac_link) 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } &&
17913          { ac_try='test -z "$ac_c_werror_flag"
17914                          || test ! -s conftest.err'
17915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916   (eval $ac_try) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; } &&
17920          { ac_try='test -s conftest$ac_exeext'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   ac_cv_lib_svld_dlopen=yes
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ac_cv_lib_svld_dlopen=no
17932 fi
17933 rm -f conftest.err conftest.$ac_objext \
17934       conftest$ac_exeext conftest.$ac_ext
17935 LIBS=$ac_check_lib_save_LIBS
17936 fi
17937 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17938 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17939 if test $ac_cv_lib_svld_dlopen = yes; then
17940   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17941 else
17942   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17943 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17944 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947   ac_check_lib_save_LIBS=$LIBS
17948 LIBS="-ldld  $LIBS"
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955
17956 /* Override any gcc2 internal prototype to avoid an error.  */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 /* We use char because int might match the return type of a gcc2
17961    builtin and then its argument prototype would still apply.  */
17962 char dld_link ();
17963 int
17964 main ()
17965 {
17966 dld_link ();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973   (eval $ac_link) 2>conftest.er1
17974   ac_status=$?
17975   grep -v '^ *+' conftest.er1 >conftest.err
17976   rm -f conftest.er1
17977   cat conftest.err >&5
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } &&
17980          { ac_try='test -z "$ac_c_werror_flag"
17981                          || test ! -s conftest.err'
17982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983   (eval $ac_try) 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; } &&
17987          { ac_try='test -s conftest$ac_exeext'
17988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989   (eval $ac_try) 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; }; then
17993   ac_cv_lib_dld_dld_link=yes
17994 else
17995   echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998 ac_cv_lib_dld_dld_link=no
17999 fi
18000 rm -f conftest.err conftest.$ac_objext \
18001       conftest$ac_exeext conftest.$ac_ext
18002 LIBS=$ac_check_lib_save_LIBS
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18005 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18006 if test $ac_cv_lib_dld_dld_link = yes; then
18007   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18008 fi
18009
18010
18011 fi
18012
18013
18014 fi
18015
18016
18017 fi
18018
18019
18020 fi
18021
18022
18023 fi
18024
18025     ;;
18026   esac
18027
18028   if test "x$lt_cv_dlopen" != xno; then
18029     enable_dlopen=yes
18030   else
18031     enable_dlopen=no
18032   fi
18033
18034   case $lt_cv_dlopen in
18035   dlopen)
18036     save_CPPFLAGS="$CPPFLAGS"
18037     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18038
18039     save_LDFLAGS="$LDFLAGS"
18040     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18041
18042     save_LIBS="$LIBS"
18043     LIBS="$lt_cv_dlopen_libs $LIBS"
18044
18045     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18046 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18047 if test "${lt_cv_dlopen_self+set}" = set; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050           if test "$cross_compiling" = yes; then :
18051   lt_cv_dlopen_self=cross
18052 else
18053   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18054   lt_status=$lt_dlunknown
18055   cat > conftest.$ac_ext <<EOF
18056 #line 18056 "configure"
18057 #include "confdefs.h"
18058
18059 #if HAVE_DLFCN_H
18060 #include <dlfcn.h>
18061 #endif
18062
18063 #include <stdio.h>
18064
18065 #ifdef RTLD_GLOBAL
18066 #  define LT_DLGLOBAL           RTLD_GLOBAL
18067 #else
18068 #  ifdef DL_GLOBAL
18069 #    define LT_DLGLOBAL         DL_GLOBAL
18070 #  else
18071 #    define LT_DLGLOBAL         0
18072 #  endif
18073 #endif
18074
18075 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18076    find out it does not work in some platform. */
18077 #ifndef LT_DLLAZY_OR_NOW
18078 #  ifdef RTLD_LAZY
18079 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18080 #  else
18081 #    ifdef DL_LAZY
18082 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18083 #    else
18084 #      ifdef RTLD_NOW
18085 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18086 #      else
18087 #        ifdef DL_NOW
18088 #          define LT_DLLAZY_OR_NOW      DL_NOW
18089 #        else
18090 #          define LT_DLLAZY_OR_NOW      0
18091 #        endif
18092 #      endif
18093 #    endif
18094 #  endif
18095 #endif
18096
18097 #ifdef __cplusplus
18098 extern "C" void exit (int);
18099 #endif
18100
18101 void fnord() { int i=42;}
18102 int main ()
18103 {
18104   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18105   int status = $lt_dlunknown;
18106
18107   if (self)
18108     {
18109       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18110       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18111       /* dlclose (self); */
18112     }
18113
18114     exit (status);
18115 }
18116 EOF
18117   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118   (eval $ac_link) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18122     (./conftest; exit; ) 2>/dev/null
18123     lt_status=$?
18124     case x$lt_status in
18125       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18126       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18127       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18128     esac
18129   else :
18130     # compilation failed
18131     lt_cv_dlopen_self=no
18132   fi
18133 fi
18134 rm -fr conftest*
18135
18136
18137 fi
18138 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18139 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18140
18141     if test "x$lt_cv_dlopen_self" = xyes; then
18142       LDFLAGS="$LDFLAGS $link_static_flag"
18143       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18144 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18145 if test "${lt_cv_dlopen_self_static+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148           if test "$cross_compiling" = yes; then :
18149   lt_cv_dlopen_self_static=cross
18150 else
18151   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18152   lt_status=$lt_dlunknown
18153   cat > conftest.$ac_ext <<EOF
18154 #line 18154 "configure"
18155 #include "confdefs.h"
18156
18157 #if HAVE_DLFCN_H
18158 #include <dlfcn.h>
18159 #endif
18160
18161 #include <stdio.h>
18162
18163 #ifdef RTLD_GLOBAL
18164 #  define LT_DLGLOBAL           RTLD_GLOBAL
18165 #else
18166 #  ifdef DL_GLOBAL
18167 #    define LT_DLGLOBAL         DL_GLOBAL
18168 #  else
18169 #    define LT_DLGLOBAL         0
18170 #  endif
18171 #endif
18172
18173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18174    find out it does not work in some platform. */
18175 #ifndef LT_DLLAZY_OR_NOW
18176 #  ifdef RTLD_LAZY
18177 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18178 #  else
18179 #    ifdef DL_LAZY
18180 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18181 #    else
18182 #      ifdef RTLD_NOW
18183 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18184 #      else
18185 #        ifdef DL_NOW
18186 #          define LT_DLLAZY_OR_NOW      DL_NOW
18187 #        else
18188 #          define LT_DLLAZY_OR_NOW      0
18189 #        endif
18190 #      endif
18191 #    endif
18192 #  endif
18193 #endif
18194
18195 #ifdef __cplusplus
18196 extern "C" void exit (int);
18197 #endif
18198
18199 void fnord() { int i=42;}
18200 int main ()
18201 {
18202   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18203   int status = $lt_dlunknown;
18204
18205   if (self)
18206     {
18207       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18208       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18209       /* dlclose (self); */
18210     }
18211
18212     exit (status);
18213 }
18214 EOF
18215   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216   (eval $ac_link) 2>&5
18217   ac_status=$?
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18220     (./conftest; exit; ) 2>/dev/null
18221     lt_status=$?
18222     case x$lt_status in
18223       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18224       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18225       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18226     esac
18227   else :
18228     # compilation failed
18229     lt_cv_dlopen_self_static=no
18230   fi
18231 fi
18232 rm -fr conftest*
18233
18234
18235 fi
18236 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18237 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18238     fi
18239
18240     CPPFLAGS="$save_CPPFLAGS"
18241     LDFLAGS="$save_LDFLAGS"
18242     LIBS="$save_LIBS"
18243     ;;
18244   esac
18245
18246   case $lt_cv_dlopen_self in
18247   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18248   *) enable_dlopen_self=unknown ;;
18249   esac
18250
18251   case $lt_cv_dlopen_self_static in
18252   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18253   *) enable_dlopen_self_static=unknown ;;
18254   esac
18255 fi
18256
18257
18258 # The else clause should only fire when bootstrapping the
18259 # libtool distribution, otherwise you forgot to ship ltmain.sh
18260 # with your package, and you will get complaints that there are
18261 # no rules to generate ltmain.sh.
18262 if test -f "$ltmain"; then
18263   # See if we are running on zsh, and set the options which allow our commands through
18264   # without removal of \ escapes.
18265   if test -n "${ZSH_VERSION+set}" ; then
18266     setopt NO_GLOB_SUBST
18267   fi
18268   # Now quote all the things that may contain metacharacters while being
18269   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18270   # variables and quote the copies for generation of the libtool script.
18271   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18272     SED SHELL STRIP \
18273     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18274     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18275     deplibs_check_method reload_flag reload_cmds need_locks \
18276     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18277     lt_cv_sys_global_symbol_to_c_name_address \
18278     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18279     old_postinstall_cmds old_postuninstall_cmds \
18280     compiler_GCJ \
18281     CC_GCJ \
18282     LD_GCJ \
18283     lt_prog_compiler_wl_GCJ \
18284     lt_prog_compiler_pic_GCJ \
18285     lt_prog_compiler_static_GCJ \
18286     lt_prog_compiler_no_builtin_flag_GCJ \
18287     export_dynamic_flag_spec_GCJ \
18288     thread_safe_flag_spec_GCJ \
18289     whole_archive_flag_spec_GCJ \
18290     enable_shared_with_static_runtimes_GCJ \
18291     old_archive_cmds_GCJ \
18292     old_archive_from_new_cmds_GCJ \
18293     predep_objects_GCJ \
18294     postdep_objects_GCJ \
18295     predeps_GCJ \
18296     postdeps_GCJ \
18297     compiler_lib_search_path_GCJ \
18298     archive_cmds_GCJ \
18299     archive_expsym_cmds_GCJ \
18300     postinstall_cmds_GCJ \
18301     postuninstall_cmds_GCJ \
18302     old_archive_from_expsyms_cmds_GCJ \
18303     allow_undefined_flag_GCJ \
18304     no_undefined_flag_GCJ \
18305     export_symbols_cmds_GCJ \
18306     hardcode_libdir_flag_spec_GCJ \
18307     hardcode_libdir_flag_spec_ld_GCJ \
18308     hardcode_libdir_separator_GCJ \
18309     hardcode_automatic_GCJ \
18310     module_cmds_GCJ \
18311     module_expsym_cmds_GCJ \
18312     lt_cv_prog_compiler_c_o_GCJ \
18313     exclude_expsyms_GCJ \
18314     include_expsyms_GCJ; do
18315
18316     case $var in
18317     old_archive_cmds_GCJ | \
18318     old_archive_from_new_cmds_GCJ | \
18319     archive_cmds_GCJ | \
18320     archive_expsym_cmds_GCJ | \
18321     module_cmds_GCJ | \
18322     module_expsym_cmds_GCJ | \
18323     old_archive_from_expsyms_cmds_GCJ | \
18324     export_symbols_cmds_GCJ | \
18325     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18326     postinstall_cmds | postuninstall_cmds | \
18327     old_postinstall_cmds | old_postuninstall_cmds | \
18328     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18329       # Double-quote double-evaled strings.
18330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18331       ;;
18332     *)
18333       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18334       ;;
18335     esac
18336   done
18337
18338   case $lt_echo in
18339   *'\$0 --fallback-echo"')
18340     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18341     ;;
18342   esac
18343
18344 cfgfile="$ofile"
18345
18346   cat <<__EOF__ >> "$cfgfile"
18347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18348
18349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18350
18351 # Shell to use when invoking shell scripts.
18352 SHELL=$lt_SHELL
18353
18354 # Whether or not to build shared libraries.
18355 build_libtool_libs=$enable_shared
18356
18357 # Whether or not to build static libraries.
18358 build_old_libs=$enable_static
18359
18360 # Whether or not to add -lc for building shared libraries.
18361 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18362
18363 # Whether or not to disallow shared libs when runtime libs are static
18364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18365
18366 # Whether or not to optimize for fast installation.
18367 fast_install=$enable_fast_install
18368
18369 # The host system.
18370 host_alias=$host_alias
18371 host=$host
18372
18373 # An echo program that does not interpret backslashes.
18374 echo=$lt_echo
18375
18376 # The archiver.
18377 AR=$lt_AR
18378 AR_FLAGS=$lt_AR_FLAGS
18379
18380 # A C compiler.
18381 LTCC=$lt_LTCC
18382
18383 # A language-specific compiler.
18384 CC=$lt_compiler_GCJ
18385
18386 # Is the compiler the GNU C compiler?
18387 with_gcc=$GCC_GCJ
18388
18389 # An ERE matcher.
18390 EGREP=$lt_EGREP
18391
18392 # The linker used to build libraries.
18393 LD=$lt_LD_GCJ
18394
18395 # Whether we need hard or soft links.
18396 LN_S=$lt_LN_S
18397
18398 # A BSD-compatible nm program.
18399 NM=$lt_NM
18400
18401 # A symbol stripping program
18402 STRIP=$lt_STRIP
18403
18404 # Used to examine libraries when file_magic_cmd begins "file"
18405 MAGIC_CMD=$MAGIC_CMD
18406
18407 # Used on cygwin: DLL creation program.
18408 DLLTOOL="$DLLTOOL"
18409
18410 # Used on cygwin: object dumper.
18411 OBJDUMP="$OBJDUMP"
18412
18413 # Used on cygwin: assembler.
18414 AS="$AS"
18415
18416 # The name of the directory that contains temporary libtool files.
18417 objdir=$objdir
18418
18419 # How to create reloadable object files.
18420 reload_flag=$lt_reload_flag
18421 reload_cmds=$lt_reload_cmds
18422
18423 # How to pass a linker flag through the compiler.
18424 wl=$lt_lt_prog_compiler_wl_GCJ
18425
18426 # Object file suffix (normally "o").
18427 objext="$ac_objext"
18428
18429 # Old archive suffix (normally "a").
18430 libext="$libext"
18431
18432 # Shared library suffix (normally ".so").
18433 shrext_cmds='$shrext_cmds'
18434
18435 # Executable file suffix (normally "").
18436 exeext="$exeext"
18437
18438 # Additional compiler flags for building library objects.
18439 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18440 pic_mode=$pic_mode
18441
18442 # What is the maximum length of a command?
18443 max_cmd_len=$lt_cv_sys_max_cmd_len
18444
18445 # Does compiler simultaneously support -c and -o options?
18446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18447
18448 # Must we lock files when doing compilation ?
18449 need_locks=$lt_need_locks
18450
18451 # Do we need the lib prefix for modules?
18452 need_lib_prefix=$need_lib_prefix
18453
18454 # Do we need a version for libraries?
18455 need_version=$need_version
18456
18457 # Whether dlopen is supported.
18458 dlopen_support=$enable_dlopen
18459
18460 # Whether dlopen of programs is supported.
18461 dlopen_self=$enable_dlopen_self
18462
18463 # Whether dlopen of statically linked programs is supported.
18464 dlopen_self_static=$enable_dlopen_self_static
18465
18466 # Compiler flag to prevent dynamic linking.
18467 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18468
18469 # Compiler flag to turn off builtin functions.
18470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18471
18472 # Compiler flag to allow reflexive dlopens.
18473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18474
18475 # Compiler flag to generate shared objects directly from archives.
18476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18477
18478 # Compiler flag to generate thread-safe objects.
18479 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18480
18481 # Library versioning type.
18482 version_type=$version_type
18483
18484 # Format of library name prefix.
18485 libname_spec=$lt_libname_spec
18486
18487 # List of archive names.  First name is the real one, the rest are links.
18488 # The last name is the one that the linker finds with -lNAME.
18489 library_names_spec=$lt_library_names_spec
18490
18491 # The coded name of the library, if different from the real name.
18492 soname_spec=$lt_soname_spec
18493
18494 # Commands used to build and install an old-style archive.
18495 RANLIB=$lt_RANLIB
18496 old_archive_cmds=$lt_old_archive_cmds_GCJ
18497 old_postinstall_cmds=$lt_old_postinstall_cmds
18498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18499
18500 # Create an old-style archive from a shared archive.
18501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18502
18503 # Create a temporary old-style archive to link instead of a shared archive.
18504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18505
18506 # Commands used to build and install a shared archive.
18507 archive_cmds=$lt_archive_cmds_GCJ
18508 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18509 postinstall_cmds=$lt_postinstall_cmds
18510 postuninstall_cmds=$lt_postuninstall_cmds
18511
18512 # Commands used to build a loadable module (assumed same as above if empty)
18513 module_cmds=$lt_module_cmds_GCJ
18514 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18515
18516 # Commands to strip libraries.
18517 old_striplib=$lt_old_striplib
18518 striplib=$lt_striplib
18519
18520 # Dependencies to place before the objects being linked to create a
18521 # shared library.
18522 predep_objects=$lt_predep_objects_GCJ
18523
18524 # Dependencies to place after the objects being linked to create a
18525 # shared library.
18526 postdep_objects=$lt_postdep_objects_GCJ
18527
18528 # Dependencies to place before the objects being linked to create a
18529 # shared library.
18530 predeps=$lt_predeps_GCJ
18531
18532 # Dependencies to place after the objects being linked to create a
18533 # shared library.
18534 postdeps=$lt_postdeps_GCJ
18535
18536 # The library search path used internally by the compiler when linking
18537 # a shared library.
18538 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18539
18540 # Method to check whether dependent libraries are shared objects.
18541 deplibs_check_method=$lt_deplibs_check_method
18542
18543 # Command to use when deplibs_check_method == file_magic.
18544 file_magic_cmd=$lt_file_magic_cmd
18545
18546 # Flag that allows shared libraries with undefined symbols to be built.
18547 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18548
18549 # Flag that forces no undefined symbols.
18550 no_undefined_flag=$lt_no_undefined_flag_GCJ
18551
18552 # Commands used to finish a libtool library installation in a directory.
18553 finish_cmds=$lt_finish_cmds
18554
18555 # Same as above, but a single script fragment to be evaled but not shown.
18556 finish_eval=$lt_finish_eval
18557
18558 # Take the output of nm and produce a listing of raw symbols and C names.
18559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18560
18561 # Transform the output of nm in a proper C declaration
18562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18563
18564 # Transform the output of nm in a C name address pair
18565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18566
18567 # This is the shared library runtime path variable.
18568 runpath_var=$runpath_var
18569
18570 # This is the shared library path variable.
18571 shlibpath_var=$shlibpath_var
18572
18573 # Is shlibpath searched before the hard-coded library search path?
18574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18575
18576 # How to hardcode a shared library path into an executable.
18577 hardcode_action=$hardcode_action_GCJ
18578
18579 # Whether we should hardcode library paths into libraries.
18580 hardcode_into_libs=$hardcode_into_libs
18581
18582 # Flag to hardcode \$libdir into a binary during linking.
18583 # This must work even if \$libdir does not exist.
18584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18585
18586 # If ld is used when linking, flag to hardcode \$libdir into
18587 # a binary during linking. This must work even if \$libdir does
18588 # not exist.
18589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18590
18591 # Whether we need a single -rpath flag with a separated argument.
18592 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18593
18594 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18595 # resulting binary.
18596 hardcode_direct=$hardcode_direct_GCJ
18597
18598 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18599 # resulting binary.
18600 hardcode_minus_L=$hardcode_minus_L_GCJ
18601
18602 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18603 # the resulting binary.
18604 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18605
18606 # Set to yes if building a shared library automatically hardcodes DIR into the library
18607 # and all subsequent libraries and executables linked against it.
18608 hardcode_automatic=$hardcode_automatic_GCJ
18609
18610 # Variables whose values should be saved in libtool wrapper scripts and
18611 # restored at relink time.
18612 variables_saved_for_relink="$variables_saved_for_relink"
18613
18614 # Whether libtool must link a program against all its dependency libraries.
18615 link_all_deplibs=$link_all_deplibs_GCJ
18616
18617 # Compile-time system search path for libraries
18618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18619
18620 # Run-time system search path for libraries
18621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18622
18623 # Fix the shell variable \$srcfile for the compiler.
18624 fix_srcfile_path="$fix_srcfile_path_GCJ"
18625
18626 # Set to yes if exported symbols are required.
18627 always_export_symbols=$always_export_symbols_GCJ
18628
18629 # The commands to list exported symbols.
18630 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18631
18632 # The commands to extract the exported symbol list from a shared archive.
18633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18634
18635 # Symbols that should not be listed in the preloaded symbols.
18636 exclude_expsyms=$lt_exclude_expsyms_GCJ
18637
18638 # Symbols that must always be exported.
18639 include_expsyms=$lt_include_expsyms_GCJ
18640
18641 # ### END LIBTOOL TAG CONFIG: $tagname
18642
18643 __EOF__
18644
18645
18646 else
18647   # If there is no Makefile yet, we rely on a make rule to execute
18648   # `config.status --recheck' to rerun these tests and create the
18649   # libtool script then.
18650   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18651   if test -f "$ltmain_in"; then
18652     test -f Makefile && make "$ltmain"
18653   fi
18654 fi
18655
18656
18657 ac_ext=c
18658 ac_cpp='$CPP $CPPFLAGS'
18659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18662
18663 CC="$lt_save_CC"
18664
18665         else
18666           tagname=""
18667         fi
18668         ;;
18669
18670       RC)
18671
18672
18673
18674 # Source file extension for RC test sources.
18675 ac_ext=rc
18676
18677 # Object file extension for compiled RC test sources.
18678 objext=o
18679 objext_RC=$objext
18680
18681 # Code to be used in simple compile tests
18682 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18683
18684 # Code to be used in simple link tests
18685 lt_simple_link_test_code="$lt_simple_compile_test_code"
18686
18687 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18688
18689 # If no C compiler was specified, use CC.
18690 LTCC=${LTCC-"$CC"}
18691
18692 # Allow CC to be a program name with arguments.
18693 compiler=$CC
18694
18695
18696 # Allow CC to be a program name with arguments.
18697 lt_save_CC="$CC"
18698 CC=${RC-"windres"}
18699 compiler=$CC
18700 compiler_RC=$CC
18701 lt_cv_prog_compiler_c_o_RC=yes
18702
18703 # The else clause should only fire when bootstrapping the
18704 # libtool distribution, otherwise you forgot to ship ltmain.sh
18705 # with your package, and you will get complaints that there are
18706 # no rules to generate ltmain.sh.
18707 if test -f "$ltmain"; then
18708   # See if we are running on zsh, and set the options which allow our commands through
18709   # without removal of \ escapes.
18710   if test -n "${ZSH_VERSION+set}" ; then
18711     setopt NO_GLOB_SUBST
18712   fi
18713   # Now quote all the things that may contain metacharacters while being
18714   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18715   # variables and quote the copies for generation of the libtool script.
18716   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18717     SED SHELL STRIP \
18718     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18719     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18720     deplibs_check_method reload_flag reload_cmds need_locks \
18721     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18722     lt_cv_sys_global_symbol_to_c_name_address \
18723     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18724     old_postinstall_cmds old_postuninstall_cmds \
18725     compiler_RC \
18726     CC_RC \
18727     LD_RC \
18728     lt_prog_compiler_wl_RC \
18729     lt_prog_compiler_pic_RC \
18730     lt_prog_compiler_static_RC \
18731     lt_prog_compiler_no_builtin_flag_RC \
18732     export_dynamic_flag_spec_RC \
18733     thread_safe_flag_spec_RC \
18734     whole_archive_flag_spec_RC \
18735     enable_shared_with_static_runtimes_RC \
18736     old_archive_cmds_RC \
18737     old_archive_from_new_cmds_RC \
18738     predep_objects_RC \
18739     postdep_objects_RC \
18740     predeps_RC \
18741     postdeps_RC \
18742     compiler_lib_search_path_RC \
18743     archive_cmds_RC \
18744     archive_expsym_cmds_RC \
18745     postinstall_cmds_RC \
18746     postuninstall_cmds_RC \
18747     old_archive_from_expsyms_cmds_RC \
18748     allow_undefined_flag_RC \
18749     no_undefined_flag_RC \
18750     export_symbols_cmds_RC \
18751     hardcode_libdir_flag_spec_RC \
18752     hardcode_libdir_flag_spec_ld_RC \
18753     hardcode_libdir_separator_RC \
18754     hardcode_automatic_RC \
18755     module_cmds_RC \
18756     module_expsym_cmds_RC \
18757     lt_cv_prog_compiler_c_o_RC \
18758     exclude_expsyms_RC \
18759     include_expsyms_RC; do
18760
18761     case $var in
18762     old_archive_cmds_RC | \
18763     old_archive_from_new_cmds_RC | \
18764     archive_cmds_RC | \
18765     archive_expsym_cmds_RC | \
18766     module_cmds_RC | \
18767     module_expsym_cmds_RC | \
18768     old_archive_from_expsyms_cmds_RC | \
18769     export_symbols_cmds_RC | \
18770     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18771     postinstall_cmds | postuninstall_cmds | \
18772     old_postinstall_cmds | old_postuninstall_cmds | \
18773     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18774       # Double-quote double-evaled strings.
18775       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18776       ;;
18777     *)
18778       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18779       ;;
18780     esac
18781   done
18782
18783   case $lt_echo in
18784   *'\$0 --fallback-echo"')
18785     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18786     ;;
18787   esac
18788
18789 cfgfile="$ofile"
18790
18791   cat <<__EOF__ >> "$cfgfile"
18792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18793
18794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18795
18796 # Shell to use when invoking shell scripts.
18797 SHELL=$lt_SHELL
18798
18799 # Whether or not to build shared libraries.
18800 build_libtool_libs=$enable_shared
18801
18802 # Whether or not to build static libraries.
18803 build_old_libs=$enable_static
18804
18805 # Whether or not to add -lc for building shared libraries.
18806 build_libtool_need_lc=$archive_cmds_need_lc_RC
18807
18808 # Whether or not to disallow shared libs when runtime libs are static
18809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18810
18811 # Whether or not to optimize for fast installation.
18812 fast_install=$enable_fast_install
18813
18814 # The host system.
18815 host_alias=$host_alias
18816 host=$host
18817
18818 # An echo program that does not interpret backslashes.
18819 echo=$lt_echo
18820
18821 # The archiver.
18822 AR=$lt_AR
18823 AR_FLAGS=$lt_AR_FLAGS
18824
18825 # A C compiler.
18826 LTCC=$lt_LTCC
18827
18828 # A language-specific compiler.
18829 CC=$lt_compiler_RC
18830
18831 # Is the compiler the GNU C compiler?
18832 with_gcc=$GCC_RC
18833
18834 # An ERE matcher.
18835 EGREP=$lt_EGREP
18836
18837 # The linker used to build libraries.
18838 LD=$lt_LD_RC
18839
18840 # Whether we need hard or soft links.
18841 LN_S=$lt_LN_S
18842
18843 # A BSD-compatible nm program.
18844 NM=$lt_NM
18845
18846 # A symbol stripping program
18847 STRIP=$lt_STRIP
18848
18849 # Used to examine libraries when file_magic_cmd begins "file"
18850 MAGIC_CMD=$MAGIC_CMD
18851
18852 # Used on cygwin: DLL creation program.
18853 DLLTOOL="$DLLTOOL"
18854
18855 # Used on cygwin: object dumper.
18856 OBJDUMP="$OBJDUMP"
18857
18858 # Used on cygwin: assembler.
18859 AS="$AS"
18860
18861 # The name of the directory that contains temporary libtool files.
18862 objdir=$objdir
18863
18864 # How to create reloadable object files.
18865 reload_flag=$lt_reload_flag
18866 reload_cmds=$lt_reload_cmds
18867
18868 # How to pass a linker flag through the compiler.
18869 wl=$lt_lt_prog_compiler_wl_RC
18870
18871 # Object file suffix (normally "o").
18872 objext="$ac_objext"
18873
18874 # Old archive suffix (normally "a").
18875 libext="$libext"
18876
18877 # Shared library suffix (normally ".so").
18878 shrext_cmds='$shrext_cmds'
18879
18880 # Executable file suffix (normally "").
18881 exeext="$exeext"
18882
18883 # Additional compiler flags for building library objects.
18884 pic_flag=$lt_lt_prog_compiler_pic_RC
18885 pic_mode=$pic_mode
18886
18887 # What is the maximum length of a command?
18888 max_cmd_len=$lt_cv_sys_max_cmd_len
18889
18890 # Does compiler simultaneously support -c and -o options?
18891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18892
18893 # Must we lock files when doing compilation ?
18894 need_locks=$lt_need_locks
18895
18896 # Do we need the lib prefix for modules?
18897 need_lib_prefix=$need_lib_prefix
18898
18899 # Do we need a version for libraries?
18900 need_version=$need_version
18901
18902 # Whether dlopen is supported.
18903 dlopen_support=$enable_dlopen
18904
18905 # Whether dlopen of programs is supported.
18906 dlopen_self=$enable_dlopen_self
18907
18908 # Whether dlopen of statically linked programs is supported.
18909 dlopen_self_static=$enable_dlopen_self_static
18910
18911 # Compiler flag to prevent dynamic linking.
18912 link_static_flag=$lt_lt_prog_compiler_static_RC
18913
18914 # Compiler flag to turn off builtin functions.
18915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18916
18917 # Compiler flag to allow reflexive dlopens.
18918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18919
18920 # Compiler flag to generate shared objects directly from archives.
18921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18922
18923 # Compiler flag to generate thread-safe objects.
18924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18925
18926 # Library versioning type.
18927 version_type=$version_type
18928
18929 # Format of library name prefix.
18930 libname_spec=$lt_libname_spec
18931
18932 # List of archive names.  First name is the real one, the rest are links.
18933 # The last name is the one that the linker finds with -lNAME.
18934 library_names_spec=$lt_library_names_spec
18935
18936 # The coded name of the library, if different from the real name.
18937 soname_spec=$lt_soname_spec
18938
18939 # Commands used to build and install an old-style archive.
18940 RANLIB=$lt_RANLIB
18941 old_archive_cmds=$lt_old_archive_cmds_RC
18942 old_postinstall_cmds=$lt_old_postinstall_cmds
18943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18944
18945 # Create an old-style archive from a shared archive.
18946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18947
18948 # Create a temporary old-style archive to link instead of a shared archive.
18949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18950
18951 # Commands used to build and install a shared archive.
18952 archive_cmds=$lt_archive_cmds_RC
18953 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18954 postinstall_cmds=$lt_postinstall_cmds
18955 postuninstall_cmds=$lt_postuninstall_cmds
18956
18957 # Commands used to build a loadable module (assumed same as above if empty)
18958 module_cmds=$lt_module_cmds_RC
18959 module_expsym_cmds=$lt_module_expsym_cmds_RC
18960
18961 # Commands to strip libraries.
18962 old_striplib=$lt_old_striplib
18963 striplib=$lt_striplib
18964
18965 # Dependencies to place before the objects being linked to create a
18966 # shared library.
18967 predep_objects=$lt_predep_objects_RC
18968
18969 # Dependencies to place after the objects being linked to create a
18970 # shared library.
18971 postdep_objects=$lt_postdep_objects_RC
18972
18973 # Dependencies to place before the objects being linked to create a
18974 # shared library.
18975 predeps=$lt_predeps_RC
18976
18977 # Dependencies to place after the objects being linked to create a
18978 # shared library.
18979 postdeps=$lt_postdeps_RC
18980
18981 # The library search path used internally by the compiler when linking
18982 # a shared library.
18983 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18984
18985 # Method to check whether dependent libraries are shared objects.
18986 deplibs_check_method=$lt_deplibs_check_method
18987
18988 # Command to use when deplibs_check_method == file_magic.
18989 file_magic_cmd=$lt_file_magic_cmd
18990
18991 # Flag that allows shared libraries with undefined symbols to be built.
18992 allow_undefined_flag=$lt_allow_undefined_flag_RC
18993
18994 # Flag that forces no undefined symbols.
18995 no_undefined_flag=$lt_no_undefined_flag_RC
18996
18997 # Commands used to finish a libtool library installation in a directory.
18998 finish_cmds=$lt_finish_cmds
18999
19000 # Same as above, but a single script fragment to be evaled but not shown.
19001 finish_eval=$lt_finish_eval
19002
19003 # Take the output of nm and produce a listing of raw symbols and C names.
19004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19005
19006 # Transform the output of nm in a proper C declaration
19007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19008
19009 # Transform the output of nm in a C name address pair
19010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19011
19012 # This is the shared library runtime path variable.
19013 runpath_var=$runpath_var
19014
19015 # This is the shared library path variable.
19016 shlibpath_var=$shlibpath_var
19017
19018 # Is shlibpath searched before the hard-coded library search path?
19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19020
19021 # How to hardcode a shared library path into an executable.
19022 hardcode_action=$hardcode_action_RC
19023
19024 # Whether we should hardcode library paths into libraries.
19025 hardcode_into_libs=$hardcode_into_libs
19026
19027 # Flag to hardcode \$libdir into a binary during linking.
19028 # This must work even if \$libdir does not exist.
19029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19030
19031 # If ld is used when linking, flag to hardcode \$libdir into
19032 # a binary during linking. This must work even if \$libdir does
19033 # not exist.
19034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19035
19036 # Whether we need a single -rpath flag with a separated argument.
19037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19038
19039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19040 # resulting binary.
19041 hardcode_direct=$hardcode_direct_RC
19042
19043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19044 # resulting binary.
19045 hardcode_minus_L=$hardcode_minus_L_RC
19046
19047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19048 # the resulting binary.
19049 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19050
19051 # Set to yes if building a shared library automatically hardcodes DIR into the library
19052 # and all subsequent libraries and executables linked against it.
19053 hardcode_automatic=$hardcode_automatic_RC
19054
19055 # Variables whose values should be saved in libtool wrapper scripts and
19056 # restored at relink time.
19057 variables_saved_for_relink="$variables_saved_for_relink"
19058
19059 # Whether libtool must link a program against all its dependency libraries.
19060 link_all_deplibs=$link_all_deplibs_RC
19061
19062 # Compile-time system search path for libraries
19063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19064
19065 # Run-time system search path for libraries
19066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19067
19068 # Fix the shell variable \$srcfile for the compiler.
19069 fix_srcfile_path="$fix_srcfile_path_RC"
19070
19071 # Set to yes if exported symbols are required.
19072 always_export_symbols=$always_export_symbols_RC
19073
19074 # The commands to list exported symbols.
19075 export_symbols_cmds=$lt_export_symbols_cmds_RC
19076
19077 # The commands to extract the exported symbol list from a shared archive.
19078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19079
19080 # Symbols that should not be listed in the preloaded symbols.
19081 exclude_expsyms=$lt_exclude_expsyms_RC
19082
19083 # Symbols that must always be exported.
19084 include_expsyms=$lt_include_expsyms_RC
19085
19086 # ### END LIBTOOL TAG CONFIG: $tagname
19087
19088 __EOF__
19089
19090
19091 else
19092   # If there is no Makefile yet, we rely on a make rule to execute
19093   # `config.status --recheck' to rerun these tests and create the
19094   # libtool script then.
19095   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19096   if test -f "$ltmain_in"; then
19097     test -f Makefile && make "$ltmain"
19098   fi
19099 fi
19100
19101
19102 ac_ext=c
19103 ac_cpp='$CPP $CPPFLAGS'
19104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108 CC="$lt_save_CC"
19109
19110         ;;
19111
19112       *)
19113         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19114 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19115    { (exit 1); exit 1; }; }
19116         ;;
19117       esac
19118
19119       # Append the new tag name to the list of available tags.
19120       if test -n "$tagname" ; then
19121       available_tags="$available_tags $tagname"
19122     fi
19123     fi
19124   done
19125   IFS="$lt_save_ifs"
19126
19127   # Now substitute the updated list of available tags.
19128   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19129     mv "${ofile}T" "$ofile"
19130     chmod +x "$ofile"
19131   else
19132     rm -f "${ofile}T"
19133     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19134 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19135    { (exit 1); exit 1; }; }
19136   fi
19137 fi
19138
19139
19140
19141 # This can be used to rebuild libtool when needed
19142 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19143
19144 # Always use our own libtool.
19145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19146
19147 # Prevent multiple expansion
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168 # Check whether --enable-largefile or --disable-largefile was given.
19169 if test "${enable_largefile+set}" = set; then
19170   enableval="$enable_largefile"
19171
19172 fi;
19173 if test "$enable_largefile" != no; then
19174
19175   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19176 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19177 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   ac_cv_sys_largefile_CC=no
19181      if test "$GCC" != yes; then
19182        ac_save_CC=$CC
19183        while :; do
19184          # IRIX 6.2 and later do not support large files by default,
19185          # so use the C compiler's -n32 option if that helps.
19186          cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h.  */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h.  */
19192 #include <sys/types.h>
19193  /* Check that off_t can represent 2**63 - 1 correctly.
19194     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19195     since some C++ compilers masquerading as C compilers
19196     incorrectly reject 9223372036854775807.  */
19197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19198   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19199                        && LARGE_OFF_T % 2147483647 == 1)
19200                       ? 1 : -1];
19201 int
19202 main ()
19203 {
19204
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209          rm -f conftest.$ac_objext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211   (eval $ac_compile) 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } &&
19218          { ac_try='test -z "$ac_c_werror_flag"
19219                          || test ! -s conftest.err'
19220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221   (eval $ac_try) 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; } &&
19225          { ac_try='test -s conftest.$ac_objext'
19226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227   (eval $ac_try) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; }; then
19231   break
19232 else
19233   echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236 fi
19237 rm -f conftest.err conftest.$ac_objext
19238          CC="$CC -n32"
19239          rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241   (eval $ac_compile) 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -z "$ac_c_werror_flag"
19249                          || test ! -s conftest.err'
19250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251   (eval $ac_try) 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; } &&
19255          { ac_try='test -s conftest.$ac_objext'
19256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257   (eval $ac_try) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; }; then
19261   ac_cv_sys_largefile_CC=' -n32'; break
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 fi
19267 rm -f conftest.err conftest.$ac_objext
19268          break
19269        done
19270        CC=$ac_save_CC
19271        rm -f conftest.$ac_ext
19272     fi
19273 fi
19274 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19275 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19276   if test "$ac_cv_sys_largefile_CC" != no; then
19277     CC=$CC$ac_cv_sys_largefile_CC
19278   fi
19279
19280   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19281 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19282 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19283   echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285   while :; do
19286   ac_cv_sys_file_offset_bits=no
19287   cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h.  */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h.  */
19293 #include <sys/types.h>
19294  /* Check that off_t can represent 2**63 - 1 correctly.
19295     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19296     since some C++ compilers masquerading as C compilers
19297     incorrectly reject 9223372036854775807.  */
19298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19299   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19300                        && LARGE_OFF_T % 2147483647 == 1)
19301                       ? 1 : -1];
19302 int
19303 main ()
19304 {
19305
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312   (eval $ac_compile) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest.$ac_objext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   break
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 fi
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19339   cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345 #define _FILE_OFFSET_BITS 64
19346 #include <sys/types.h>
19347  /* Check that off_t can represent 2**63 - 1 correctly.
19348     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19349     since some C++ compilers masquerading as C compilers
19350     incorrectly reject 9223372036854775807.  */
19351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19352   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19353                        && LARGE_OFF_T % 2147483647 == 1)
19354                       ? 1 : -1];
19355 int
19356 main ()
19357 {
19358
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365   (eval $ac_compile) 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_c_werror_flag"
19373                          || test ! -s conftest.err'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; } &&
19379          { ac_try='test -s conftest.$ac_objext'
19380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381   (eval $ac_try) 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; }; then
19385   ac_cv_sys_file_offset_bits=64; break
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 fi
19391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19392   break
19393 done
19394 fi
19395 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19396 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19397 if test "$ac_cv_sys_file_offset_bits" != no; then
19398
19399 cat >>confdefs.h <<_ACEOF
19400 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19401 _ACEOF
19402
19403 fi
19404 rm -f conftest*
19405   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19406 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19407 if test "${ac_cv_sys_large_files+set}" = set; then
19408   echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410   while :; do
19411   ac_cv_sys_large_files=no
19412   cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h.  */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h.  */
19418 #include <sys/types.h>
19419  /* Check that off_t can represent 2**63 - 1 correctly.
19420     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19421     since some C++ compilers masquerading as C compilers
19422     incorrectly reject 9223372036854775807.  */
19423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19424   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19425                        && LARGE_OFF_T % 2147483647 == 1)
19426                       ? 1 : -1];
19427 int
19428 main ()
19429 {
19430
19431   ;
19432   return 0;
19433 }
19434 _ACEOF
19435 rm -f conftest.$ac_objext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19437   (eval $ac_compile) 2>conftest.er1
19438   ac_status=$?
19439   grep -v '^ *+' conftest.er1 >conftest.err
19440   rm -f conftest.er1
19441   cat conftest.err >&5
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); } &&
19444          { ac_try='test -z "$ac_c_werror_flag"
19445                          || test ! -s conftest.err'
19446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447   (eval $ac_try) 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; } &&
19451          { ac_try='test -s conftest.$ac_objext'
19452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453   (eval $ac_try) 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; }; then
19457   break
19458 else
19459   echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 fi
19463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19464   cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 #define _LARGE_FILES 1
19471 #include <sys/types.h>
19472  /* Check that off_t can represent 2**63 - 1 correctly.
19473     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19474     since some C++ compilers masquerading as C compilers
19475     incorrectly reject 9223372036854775807.  */
19476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19477   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19478                        && LARGE_OFF_T % 2147483647 == 1)
19479                       ? 1 : -1];
19480 int
19481 main ()
19482 {
19483
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19490   (eval $ac_compile) 2>conftest.er1
19491   ac_status=$?
19492   grep -v '^ *+' conftest.er1 >conftest.err
19493   rm -f conftest.er1
19494   cat conftest.err >&5
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } &&
19497          { ac_try='test -z "$ac_c_werror_flag"
19498                          || test ! -s conftest.err'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; } &&
19504          { ac_try='test -s conftest.$ac_objext'
19505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506   (eval $ac_try) 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510   ac_cv_sys_large_files=1; break
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 fi
19516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19517   break
19518 done
19519 fi
19520 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19521 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19522 if test "$ac_cv_sys_large_files" != no; then
19523
19524 cat >>confdefs.h <<_ACEOF
19525 #define _LARGE_FILES $ac_cv_sys_large_files
19526 _ACEOF
19527
19528 fi
19529 rm -f conftest*
19530 fi
19531
19532
19533 CFLAGS="-DHAS_snprintf -DHAS_snprintf"
19534 if test "$ac_cv_c_compiler_gnu" = yes; then
19535     CFLAGS="-DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
19536 fi
19537 export CFLAGS
19538
19539
19540
19541 for ac_header in unistd.h errno.h
19542 do
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545   echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 fi
19550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19552 else
19553   # Is the header compilable?
19554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562 $ac_includes_default
19563 #include <$ac_header>
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567   (eval $ac_compile) 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } &&
19574          { ac_try='test -z "$ac_c_werror_flag"
19575                          || test ! -s conftest.err'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; } &&
19581          { ac_try='test -s conftest.$ac_objext'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; }; then
19587   ac_header_compiler=yes
19588 else
19589   echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 ac_header_compiler=no
19593 fi
19594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19596 echo "${ECHO_T}$ac_header_compiler" >&6
19597
19598 # Is the header present?
19599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #include <$ac_header>
19608 _ACEOF
19609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } >/dev/null; then
19617   if test -s conftest.err; then
19618     ac_cpp_err=$ac_c_preproc_warn_flag
19619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19620   else
19621     ac_cpp_err=
19622   fi
19623 else
19624   ac_cpp_err=yes
19625 fi
19626 if test -z "$ac_cpp_err"; then
19627   ac_header_preproc=yes
19628 else
19629   echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632   ac_header_preproc=no
19633 fi
19634 rm -f conftest.err conftest.$ac_ext
19635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19636 echo "${ECHO_T}$ac_header_preproc" >&6
19637
19638 # So?  What about this header?
19639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19640   yes:no: )
19641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19645     ac_header_preproc=yes
19646     ;;
19647   no:yes:* )
19648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19660     (
19661       cat <<\_ASBOX
19662 ## ---------------------------------- ##
19663 ## Report this to rpm-list@redhat.com ##
19664 ## ---------------------------------- ##
19665 _ASBOX
19666     ) |
19667       sed "s/^/$as_me: WARNING:     /" >&2
19668     ;;
19669 esac
19670 echo "$as_me:$LINENO: checking for $ac_header" >&5
19671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   eval "$as_ac_Header=\$ac_header_preproc"
19676 fi
19677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19679
19680 fi
19681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19682   cat >>confdefs.h <<_ACEOF
19683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19684 _ACEOF
19685
19686 fi
19687
19688 done
19689
19690
19691 echo "$as_me:$LINENO: checking if mmap is available" >&5
19692 echo $ECHO_N "checking if mmap is available... $ECHO_C" >&6
19693 cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699
19700 #include <sys/types.h>
19701 #include <sys/mman.h>
19702 #include <sys/stat.h>
19703 int
19704 main ()
19705 {
19706
19707 caddr_t hello() {
19708   return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
19709 }
19710
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717   (eval $ac_compile) 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } &&
19724          { ac_try='test -z "$ac_c_werror_flag"
19725                          || test ! -s conftest.err'
19726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727   (eval $ac_try) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; } &&
19731          { ac_try='test -s conftest.$ac_objext'
19732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733   (eval $ac_try) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   echo "$as_me:$LINENO: result: yes" >&5
19738 echo "${ECHO_T}yes" >&6
19739    CFLAGS="-DUSE_MMAP $CFLAGS"
19740 else
19741   echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 echo "$as_me:$LINENO: result: no" >&5
19745 echo "${ECHO_T}no" >&6
19746
19747 fi
19748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19749
19750                     ac_config_files="$ac_config_files Doxyfile Makefile"
19751           ac_config_commands="$ac_config_commands default"
19752 cat >confcache <<\_ACEOF
19753 # This file is a shell script that caches the results of configure
19754 # tests run on this system so they can be shared between configure
19755 # scripts and configure runs, see configure's option --config-cache.
19756 # It is not useful on other systems.  If it contains results you don't
19757 # want to keep, you may remove or edit it.
19758 #
19759 # config.status only pays attention to the cache file if you give it
19760 # the --recheck option to rerun configure.
19761 #
19762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19764 # following values.
19765
19766 _ACEOF
19767
19768 # The following way of writing the cache mishandles newlines in values,
19769 # but we know of no workaround that is simple, portable, and efficient.
19770 # So, don't put newlines in cache variables' values.
19771 # Ultrix sh set writes to stderr and can't be redirected directly,
19772 # and sets the high bit in the cache file unless we assign to the vars.
19773 {
19774   (set) 2>&1 |
19775     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19776     *ac_space=\ *)
19777       # `set' does not quote correctly, so add quotes (double-quote
19778       # substitution turns \\\\ into \\, and sed turns \\ into \).
19779       sed -n \
19780         "s/'/'\\\\''/g;
19781           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19782       ;;
19783     *)
19784       # `set' quotes correctly as required by POSIX, so do not add quotes.
19785       sed -n \
19786         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19787       ;;
19788     esac;
19789 } |
19790   sed '
19791      t clear
19792      : clear
19793      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19794      t end
19795      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19796      : end' >>confcache
19797 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19798   if test -w $cache_file; then
19799     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19800     cat confcache >$cache_file
19801   else
19802     echo "not updating unwritable cache $cache_file"
19803   fi
19804 fi
19805 rm -f confcache
19806
19807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19808 # Let make expand exec_prefix.
19809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19810
19811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19813 # trailing colons and then remove the whole line if VPATH becomes empty
19814 # (actually we leave an empty line to preserve line numbers).
19815 if test "x$srcdir" = x.; then
19816   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19817 s/:*\$(srcdir):*/:/;
19818 s/:*\${srcdir}:*/:/;
19819 s/:*@srcdir@:*/:/;
19820 s/^\([^=]*=[     ]*\):*/\1/;
19821 s/:*$//;
19822 s/^[^=]*=[       ]*$//;
19823 }'
19824 fi
19825
19826 DEFS=-DHAVE_CONFIG_H
19827
19828 ac_libobjs=
19829 ac_ltlibobjs=
19830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19831   # 1. Remove the extension, and $U if already installed.
19832   ac_i=`echo "$ac_i" |
19833          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19834   # 2. Add them.
19835   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19836   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19837 done
19838 LIBOBJS=$ac_libobjs
19839
19840 LTLIBOBJS=$ac_ltlibobjs
19841
19842
19843 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19844   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19845 Usually this means the macro was only invoked conditionally." >&5
19846 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19847 Usually this means the macro was only invoked conditionally." >&2;}
19848    { (exit 1); exit 1; }; }
19849 fi
19850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19851   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19852 Usually this means the macro was only invoked conditionally." >&5
19853 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19854 Usually this means the macro was only invoked conditionally." >&2;}
19855    { (exit 1); exit 1; }; }
19856 fi
19857 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19858   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19859 Usually this means the macro was only invoked conditionally." >&5
19860 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19861 Usually this means the macro was only invoked conditionally." >&2;}
19862    { (exit 1); exit 1; }; }
19863 fi
19864
19865 : ${CONFIG_STATUS=./config.status}
19866 ac_clean_files_save=$ac_clean_files
19867 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19868 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19869 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19870 cat >$CONFIG_STATUS <<_ACEOF
19871 #! $SHELL
19872 # Generated by $as_me.
19873 # Run this file to recreate the current configuration.
19874 # Compiler output produced by configure, useful for debugging
19875 # configure, is in config.log if it exists.
19876
19877 debug=false
19878 ac_cs_recheck=false
19879 ac_cs_silent=false
19880 SHELL=\${CONFIG_SHELL-$SHELL}
19881 _ACEOF
19882
19883 cat >>$CONFIG_STATUS <<\_ACEOF
19884 ## --------------------- ##
19885 ## M4sh Initialization.  ##
19886 ## --------------------- ##
19887
19888 # Be Bourne compatible
19889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19890   emulate sh
19891   NULLCMD=:
19892   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19893   # is contrary to our usage.  Disable this feature.
19894   alias -g '${1+"$@"}'='"$@"'
19895 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19896   set -o posix
19897 fi
19898 DUALCASE=1; export DUALCASE # for MKS sh
19899
19900 # Support unset when possible.
19901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19902   as_unset=unset
19903 else
19904   as_unset=false
19905 fi
19906
19907
19908 # Work around bugs in pre-3.0 UWIN ksh.
19909 $as_unset ENV MAIL MAILPATH
19910 PS1='$ '
19911 PS2='> '
19912 PS4='+ '
19913
19914 # NLS nuisances.
19915 for as_var in \
19916   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19917   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19918   LC_TELEPHONE LC_TIME
19919 do
19920   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19921     eval $as_var=C; export $as_var
19922   else
19923     $as_unset $as_var
19924   fi
19925 done
19926
19927 # Required to use basename.
19928 if expr a : '\(a\)' >/dev/null 2>&1; then
19929   as_expr=expr
19930 else
19931   as_expr=false
19932 fi
19933
19934 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19935   as_basename=basename
19936 else
19937   as_basename=false
19938 fi
19939
19940
19941 # Name of the executable.
19942 as_me=`$as_basename "$0" ||
19943 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19944          X"$0" : 'X\(//\)$' \| \
19945          X"$0" : 'X\(/\)$' \| \
19946          .     : '\(.\)' 2>/dev/null ||
19947 echo X/"$0" |
19948     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19949           /^X\/\(\/\/\)$/{ s//\1/; q; }
19950           /^X\/\(\/\).*/{ s//\1/; q; }
19951           s/.*/./; q'`
19952
19953
19954 # PATH needs CR, and LINENO needs CR and PATH.
19955 # Avoid depending upon Character Ranges.
19956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19959 as_cr_digits='0123456789'
19960 as_cr_alnum=$as_cr_Letters$as_cr_digits
19961
19962 # The user is always right.
19963 if test "${PATH_SEPARATOR+set}" != set; then
19964   echo "#! /bin/sh" >conf$$.sh
19965   echo  "exit 0"   >>conf$$.sh
19966   chmod +x conf$$.sh
19967   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19968     PATH_SEPARATOR=';'
19969   else
19970     PATH_SEPARATOR=:
19971   fi
19972   rm -f conf$$.sh
19973 fi
19974
19975
19976   as_lineno_1=$LINENO
19977   as_lineno_2=$LINENO
19978   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19979   test "x$as_lineno_1" != "x$as_lineno_2" &&
19980   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19981   # Find who we are.  Look in the path if we contain no path at all
19982   # relative or not.
19983   case $0 in
19984     *[\\/]* ) as_myself=$0 ;;
19985     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19986 for as_dir in $PATH
19987 do
19988   IFS=$as_save_IFS
19989   test -z "$as_dir" && as_dir=.
19990   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19991 done
19992
19993        ;;
19994   esac
19995   # We did not find ourselves, most probably we were run as `sh COMMAND'
19996   # in which case we are not to be found in the path.
19997   if test "x$as_myself" = x; then
19998     as_myself=$0
19999   fi
20000   if test ! -f "$as_myself"; then
20001     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20002 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20003    { (exit 1); exit 1; }; }
20004   fi
20005   case $CONFIG_SHELL in
20006   '')
20007     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20009 do
20010   IFS=$as_save_IFS
20011   test -z "$as_dir" && as_dir=.
20012   for as_base in sh bash ksh sh5; do
20013          case $as_dir in
20014          /*)
20015            if ("$as_dir/$as_base" -c '
20016   as_lineno_1=$LINENO
20017   as_lineno_2=$LINENO
20018   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20019   test "x$as_lineno_1" != "x$as_lineno_2" &&
20020   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20021              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20022              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20023              CONFIG_SHELL=$as_dir/$as_base
20024              export CONFIG_SHELL
20025              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20026            fi;;
20027          esac
20028        done
20029 done
20030 ;;
20031   esac
20032
20033   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20034   # uniformly replaced by the line number.  The first 'sed' inserts a
20035   # line-number line before each line; the second 'sed' does the real
20036   # work.  The second script uses 'N' to pair each line-number line
20037   # with the numbered line, and appends trailing '-' during
20038   # substitution so that $LINENO is not a special case at line end.
20039   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20040   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20041   sed '=' <$as_myself |
20042     sed '
20043       N
20044       s,$,-,
20045       : loop
20046       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20047       t loop
20048       s,-$,,
20049       s,^['$as_cr_digits']*\n,,
20050     ' >$as_me.lineno &&
20051   chmod +x $as_me.lineno ||
20052     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20053 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20054    { (exit 1); exit 1; }; }
20055
20056   # Don't try to exec as it changes $[0], causing all sort of problems
20057   # (the dirname of $[0] is not the place where we might find the
20058   # original and so on.  Autoconf is especially sensible to this).
20059   . ./$as_me.lineno
20060   # Exit status is that of the last command.
20061   exit
20062 }
20063
20064
20065 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20066   *c*,-n*) ECHO_N= ECHO_C='
20067 ' ECHO_T='      ' ;;
20068   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20069   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20070 esac
20071
20072 if expr a : '\(a\)' >/dev/null 2>&1; then
20073   as_expr=expr
20074 else
20075   as_expr=false
20076 fi
20077
20078 rm -f conf$$ conf$$.exe conf$$.file
20079 echo >conf$$.file
20080 if ln -s conf$$.file conf$$ 2>/dev/null; then
20081   # We could just check for DJGPP; but this test a) works b) is more generic
20082   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20083   if test -f conf$$.exe; then
20084     # Don't use ln at all; we don't have any links
20085     as_ln_s='cp -p'
20086   else
20087     as_ln_s='ln -s'
20088   fi
20089 elif ln conf$$.file conf$$ 2>/dev/null; then
20090   as_ln_s=ln
20091 else
20092   as_ln_s='cp -p'
20093 fi
20094 rm -f conf$$ conf$$.exe conf$$.file
20095
20096 if mkdir -p . 2>/dev/null; then
20097   as_mkdir_p=:
20098 else
20099   test -d ./-p && rmdir ./-p
20100   as_mkdir_p=false
20101 fi
20102
20103 as_executable_p="test -f"
20104
20105 # Sed expression to map a string onto a valid CPP name.
20106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20107
20108 # Sed expression to map a string onto a valid variable name.
20109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20110
20111
20112 # IFS
20113 # We need space, tab and new line, in precisely that order.
20114 as_nl='
20115 '
20116 IFS="   $as_nl"
20117
20118 # CDPATH.
20119 $as_unset CDPATH
20120
20121 exec 6>&1
20122
20123 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20124 # report actual input values of CONFIG_FILES etc. instead of their
20125 # values after options handling.  Logging --version etc. is OK.
20126 exec 5>>config.log
20127 {
20128   echo
20129   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20130 ## Running $as_me. ##
20131 _ASBOX
20132 } >&5
20133 cat >&5 <<_CSEOF
20134
20135 This file was extended by zlib $as_me 1.2.1.1, which was
20136 generated by GNU Autoconf 2.59.  Invocation command line was
20137
20138   CONFIG_FILES    = $CONFIG_FILES
20139   CONFIG_HEADERS  = $CONFIG_HEADERS
20140   CONFIG_LINKS    = $CONFIG_LINKS
20141   CONFIG_COMMANDS = $CONFIG_COMMANDS
20142   $ $0 $@
20143
20144 _CSEOF
20145 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20146 echo >&5
20147 _ACEOF
20148
20149 # Files that config.status was made for.
20150 if test -n "$ac_config_files"; then
20151   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20152 fi
20153
20154 if test -n "$ac_config_headers"; then
20155   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20156 fi
20157
20158 if test -n "$ac_config_links"; then
20159   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20160 fi
20161
20162 if test -n "$ac_config_commands"; then
20163   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20164 fi
20165
20166 cat >>$CONFIG_STATUS <<\_ACEOF
20167
20168 ac_cs_usage="\
20169 \`$as_me' instantiates files from templates according to the
20170 current configuration.
20171
20172 Usage: $0 [OPTIONS] [FILE]...
20173
20174   -h, --help       print this help, then exit
20175   -V, --version    print version number, then exit
20176   -q, --quiet      do not print progress messages
20177   -d, --debug      don't remove temporary files
20178       --recheck    update $as_me by reconfiguring in the same conditions
20179   --file=FILE[:TEMPLATE]
20180                    instantiate the configuration file FILE
20181   --header=FILE[:TEMPLATE]
20182                    instantiate the configuration header FILE
20183
20184 Configuration files:
20185 $config_files
20186
20187 Configuration headers:
20188 $config_headers
20189
20190 Configuration commands:
20191 $config_commands
20192
20193 Report bugs to <bug-autoconf@gnu.org>."
20194 _ACEOF
20195
20196 cat >>$CONFIG_STATUS <<_ACEOF
20197 ac_cs_version="\\
20198 zlib config.status 1.2.1.1
20199 configured by $0, generated by GNU Autoconf 2.59,
20200   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20201
20202 Copyright (C) 2003 Free Software Foundation, Inc.
20203 This config.status script is free software; the Free Software Foundation
20204 gives unlimited permission to copy, distribute and modify it."
20205 srcdir=$srcdir
20206 INSTALL="$INSTALL"
20207 _ACEOF
20208
20209 cat >>$CONFIG_STATUS <<\_ACEOF
20210 # If no file are specified by the user, then we need to provide default
20211 # value.  By we need to know if files were specified by the user.
20212 ac_need_defaults=:
20213 while test $# != 0
20214 do
20215   case $1 in
20216   --*=*)
20217     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20218     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20219     ac_shift=:
20220     ;;
20221   -*)
20222     ac_option=$1
20223     ac_optarg=$2
20224     ac_shift=shift
20225     ;;
20226   *) # This is not an option, so the user has probably given explicit
20227      # arguments.
20228      ac_option=$1
20229      ac_need_defaults=false;;
20230   esac
20231
20232   case $ac_option in
20233   # Handling of the options.
20234 _ACEOF
20235 cat >>$CONFIG_STATUS <<\_ACEOF
20236   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20237     ac_cs_recheck=: ;;
20238   --version | --vers* | -V )
20239     echo "$ac_cs_version"; exit 0 ;;
20240   --he | --h)
20241     # Conflict between --help and --header
20242     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20243 Try \`$0 --help' for more information." >&5
20244 echo "$as_me: error: ambiguous option: $1
20245 Try \`$0 --help' for more information." >&2;}
20246    { (exit 1); exit 1; }; };;
20247   --help | --hel | -h )
20248     echo "$ac_cs_usage"; exit 0 ;;
20249   --debug | --d* | -d )
20250     debug=: ;;
20251   --file | --fil | --fi | --f )
20252     $ac_shift
20253     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20254     ac_need_defaults=false;;
20255   --header | --heade | --head | --hea )
20256     $ac_shift
20257     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20258     ac_need_defaults=false;;
20259   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20260   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20261     ac_cs_silent=: ;;
20262
20263   # This is an error.
20264   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20265 Try \`$0 --help' for more information." >&5
20266 echo "$as_me: error: unrecognized option: $1
20267 Try \`$0 --help' for more information." >&2;}
20268    { (exit 1); exit 1; }; } ;;
20269
20270   *) ac_config_targets="$ac_config_targets $1" ;;
20271
20272   esac
20273   shift
20274 done
20275
20276 ac_configure_extra_args=
20277
20278 if $ac_cs_silent; then
20279   exec 6>/dev/null
20280   ac_configure_extra_args="$ac_configure_extra_args --silent"
20281 fi
20282
20283 _ACEOF
20284 cat >>$CONFIG_STATUS <<_ACEOF
20285 if \$ac_cs_recheck; then
20286   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20287   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20288 fi
20289
20290 _ACEOF
20291
20292 cat >>$CONFIG_STATUS <<_ACEOF
20293 #
20294 # INIT-COMMANDS section.
20295 #
20296
20297 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20298
20299 _ACEOF
20300
20301
20302
20303 cat >>$CONFIG_STATUS <<\_ACEOF
20304 for ac_config_target in $ac_config_targets
20305 do
20306   case "$ac_config_target" in
20307   # Handling of arguments.
20308   "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20309   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20310   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20311   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20312   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20313   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20315    { (exit 1); exit 1; }; };;
20316   esac
20317 done
20318
20319 # If the user did not use the arguments to specify the items to instantiate,
20320 # then the envvar interface is used.  Set only those that are not.
20321 # We use the long form for the default assignment because of an extremely
20322 # bizarre bug on SunOS 4.1.3.
20323 if $ac_need_defaults; then
20324   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20325   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20326   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20327 fi
20328
20329 # Have a temporary directory for convenience.  Make it in the build tree
20330 # simply because there is no reason to put it here, and in addition,
20331 # creating and moving files from /tmp can sometimes cause problems.
20332 # Create a temporary directory, and hook for its removal unless debugging.
20333 $debug ||
20334 {
20335   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20336   trap '{ (exit 1); exit 1; }' 1 2 13 15
20337 }
20338
20339 # Create a (secure) tmp directory for tmp files.
20340
20341 {
20342   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20343   test -n "$tmp" && test -d "$tmp"
20344 }  ||
20345 {
20346   tmp=./confstat$$-$RANDOM
20347   (umask 077 && mkdir $tmp)
20348 } ||
20349 {
20350    echo "$me: cannot create a temporary directory in ." >&2
20351    { (exit 1); exit 1; }
20352 }
20353
20354 _ACEOF
20355
20356 cat >>$CONFIG_STATUS <<_ACEOF
20357
20358 #
20359 # CONFIG_FILES section.
20360 #
20361
20362 # No need to generate the scripts if there are no CONFIG_FILES.
20363 # This happens for instance when ./config.status config.h
20364 if test -n "\$CONFIG_FILES"; then
20365   # Protect against being on the right side of a sed subst in config.status.
20366   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20367    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20368 s,@SHELL@,$SHELL,;t t
20369 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20370 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20371 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20372 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20373 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20374 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20375 s,@exec_prefix@,$exec_prefix,;t t
20376 s,@prefix@,$prefix,;t t
20377 s,@program_transform_name@,$program_transform_name,;t t
20378 s,@bindir@,$bindir,;t t
20379 s,@sbindir@,$sbindir,;t t
20380 s,@libexecdir@,$libexecdir,;t t
20381 s,@datadir@,$datadir,;t t
20382 s,@sysconfdir@,$sysconfdir,;t t
20383 s,@sharedstatedir@,$sharedstatedir,;t t
20384 s,@localstatedir@,$localstatedir,;t t
20385 s,@libdir@,$libdir,;t t
20386 s,@includedir@,$includedir,;t t
20387 s,@oldincludedir@,$oldincludedir,;t t
20388 s,@infodir@,$infodir,;t t
20389 s,@mandir@,$mandir,;t t
20390 s,@build_alias@,$build_alias,;t t
20391 s,@host_alias@,$host_alias,;t t
20392 s,@target_alias@,$target_alias,;t t
20393 s,@DEFS@,$DEFS,;t t
20394 s,@ECHO_C@,$ECHO_C,;t t
20395 s,@ECHO_N@,$ECHO_N,;t t
20396 s,@ECHO_T@,$ECHO_T,;t t
20397 s,@LIBS@,$LIBS,;t t
20398 s,@build@,$build,;t t
20399 s,@build_cpu@,$build_cpu,;t t
20400 s,@build_vendor@,$build_vendor,;t t
20401 s,@build_os@,$build_os,;t t
20402 s,@host@,$host,;t t
20403 s,@host_cpu@,$host_cpu,;t t
20404 s,@host_vendor@,$host_vendor,;t t
20405 s,@host_os@,$host_os,;t t
20406 s,@target@,$target,;t t
20407 s,@target_cpu@,$target_cpu,;t t
20408 s,@target_vendor@,$target_vendor,;t t
20409 s,@target_os@,$target_os,;t t
20410 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20411 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20412 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20413 s,@CYGPATH_W@,$CYGPATH_W,;t t
20414 s,@PACKAGE@,$PACKAGE,;t t
20415 s,@VERSION@,$VERSION,;t t
20416 s,@ACLOCAL@,$ACLOCAL,;t t
20417 s,@AUTOCONF@,$AUTOCONF,;t t
20418 s,@AUTOMAKE@,$AUTOMAKE,;t t
20419 s,@AUTOHEADER@,$AUTOHEADER,;t t
20420 s,@MAKEINFO@,$MAKEINFO,;t t
20421 s,@install_sh@,$install_sh,;t t
20422 s,@STRIP@,$STRIP,;t t
20423 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20424 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20425 s,@mkdir_p@,$mkdir_p,;t t
20426 s,@AWK@,$AWK,;t t
20427 s,@SET_MAKE@,$SET_MAKE,;t t
20428 s,@am__leading_dot@,$am__leading_dot,;t t
20429 s,@AMTAR@,$AMTAR,;t t
20430 s,@am__tar@,$am__tar,;t t
20431 s,@am__untar@,$am__untar,;t t
20432 s,@CC@,$CC,;t t
20433 s,@CFLAGS@,$CFLAGS,;t t
20434 s,@LDFLAGS@,$LDFLAGS,;t t
20435 s,@CPPFLAGS@,$CPPFLAGS,;t t
20436 s,@ac_ct_CC@,$ac_ct_CC,;t t
20437 s,@EXEEXT@,$EXEEXT,;t t
20438 s,@OBJEXT@,$OBJEXT,;t t
20439 s,@DEPDIR@,$DEPDIR,;t t
20440 s,@am__include@,$am__include,;t t
20441 s,@am__quote@,$am__quote,;t t
20442 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20443 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20444 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20445 s,@CCDEPMODE@,$CCDEPMODE,;t t
20446 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20447 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20448 s,@EGREP@,$EGREP,;t t
20449 s,@LN_S@,$LN_S,;t t
20450 s,@ECHO@,$ECHO,;t t
20451 s,@AR@,$AR,;t t
20452 s,@ac_ct_AR@,$ac_ct_AR,;t t
20453 s,@RANLIB@,$RANLIB,;t t
20454 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20455 s,@CPP@,$CPP,;t t
20456 s,@CXX@,$CXX,;t t
20457 s,@CXXFLAGS@,$CXXFLAGS,;t t
20458 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20459 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20460 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20461 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20462 s,@CXXCPP@,$CXXCPP,;t t
20463 s,@F77@,$F77,;t t
20464 s,@FFLAGS@,$FFLAGS,;t t
20465 s,@ac_ct_F77@,$ac_ct_F77,;t t
20466 s,@LIBTOOL@,$LIBTOOL,;t t
20467 s,@LIBOBJS@,$LIBOBJS,;t t
20468 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20469 CEOF
20470
20471 _ACEOF
20472
20473   cat >>$CONFIG_STATUS <<\_ACEOF
20474   # Split the substitutions into bite-sized pieces for seds with
20475   # small command number limits, like on Digital OSF/1 and HP-UX.
20476   ac_max_sed_lines=48
20477   ac_sed_frag=1 # Number of current file.
20478   ac_beg=1 # First line for current file.
20479   ac_end=$ac_max_sed_lines # Line after last line for current file.
20480   ac_more_lines=:
20481   ac_sed_cmds=
20482   while $ac_more_lines; do
20483     if test $ac_beg -gt 1; then
20484       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20485     else
20486       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20487     fi
20488     if test ! -s $tmp/subs.frag; then
20489       ac_more_lines=false
20490     else
20491       # The purpose of the label and of the branching condition is to
20492       # speed up the sed processing (if there are no `@' at all, there
20493       # is no need to browse any of the substitutions).
20494       # These are the two extra sed commands mentioned above.
20495       (echo ':t
20496   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20497       if test -z "$ac_sed_cmds"; then
20498         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20499       else
20500         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20501       fi
20502       ac_sed_frag=`expr $ac_sed_frag + 1`
20503       ac_beg=$ac_end
20504       ac_end=`expr $ac_end + $ac_max_sed_lines`
20505     fi
20506   done
20507   if test -z "$ac_sed_cmds"; then
20508     ac_sed_cmds=cat
20509   fi
20510 fi # test -n "$CONFIG_FILES"
20511
20512 _ACEOF
20513 cat >>$CONFIG_STATUS <<\_ACEOF
20514 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20515   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20516   case $ac_file in
20517   - | *:- | *:-:* ) # input from stdin
20518         cat >$tmp/stdin
20519         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20520         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20521   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20522         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20523   * )   ac_file_in=$ac_file.in ;;
20524   esac
20525
20526   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20527   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20529          X"$ac_file" : 'X\(//\)[^/]' \| \
20530          X"$ac_file" : 'X\(//\)$' \| \
20531          X"$ac_file" : 'X\(/\)' \| \
20532          .     : '\(.\)' 2>/dev/null ||
20533 echo X"$ac_file" |
20534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20536           /^X\(\/\/\)$/{ s//\1/; q; }
20537           /^X\(\/\).*/{ s//\1/; q; }
20538           s/.*/./; q'`
20539   { if $as_mkdir_p; then
20540     mkdir -p "$ac_dir"
20541   else
20542     as_dir="$ac_dir"
20543     as_dirs=
20544     while test ! -d "$as_dir"; do
20545       as_dirs="$as_dir $as_dirs"
20546       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548          X"$as_dir" : 'X\(//\)[^/]' \| \
20549          X"$as_dir" : 'X\(//\)$' \| \
20550          X"$as_dir" : 'X\(/\)' \| \
20551          .     : '\(.\)' 2>/dev/null ||
20552 echo X"$as_dir" |
20553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20554           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20555           /^X\(\/\/\)$/{ s//\1/; q; }
20556           /^X\(\/\).*/{ s//\1/; q; }
20557           s/.*/./; q'`
20558     done
20559     test ! -n "$as_dirs" || mkdir $as_dirs
20560   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20562    { (exit 1); exit 1; }; }; }
20563
20564   ac_builddir=.
20565
20566 if test "$ac_dir" != .; then
20567   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20568   # A "../" for each directory in $ac_dir_suffix.
20569   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20570 else
20571   ac_dir_suffix= ac_top_builddir=
20572 fi
20573
20574 case $srcdir in
20575   .)  # No --srcdir option.  We are building in place.
20576     ac_srcdir=.
20577     if test -z "$ac_top_builddir"; then
20578        ac_top_srcdir=.
20579     else
20580        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20581     fi ;;
20582   [\\/]* | ?:[\\/]* )  # Absolute path.
20583     ac_srcdir=$srcdir$ac_dir_suffix;
20584     ac_top_srcdir=$srcdir ;;
20585   *) # Relative path.
20586     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20587     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20588 esac
20589
20590 # Do not use `cd foo && pwd` to compute absolute paths, because
20591 # the directories may not exist.
20592 case `pwd` in
20593 .) ac_abs_builddir="$ac_dir";;
20594 *)
20595   case "$ac_dir" in
20596   .) ac_abs_builddir=`pwd`;;
20597   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20598   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20599   esac;;
20600 esac
20601 case $ac_abs_builddir in
20602 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20603 *)
20604   case ${ac_top_builddir}. in
20605   .) ac_abs_top_builddir=$ac_abs_builddir;;
20606   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20607   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20608   esac;;
20609 esac
20610 case $ac_abs_builddir in
20611 .) ac_abs_srcdir=$ac_srcdir;;
20612 *)
20613   case $ac_srcdir in
20614   .) ac_abs_srcdir=$ac_abs_builddir;;
20615   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20616   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20617   esac;;
20618 esac
20619 case $ac_abs_builddir in
20620 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20621 *)
20622   case $ac_top_srcdir in
20623   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20624   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20625   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20626   esac;;
20627 esac
20628
20629
20630   case $INSTALL in
20631   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20632   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20633   esac
20634
20635   if test x"$ac_file" != x-; then
20636     { echo "$as_me:$LINENO: creating $ac_file" >&5
20637 echo "$as_me: creating $ac_file" >&6;}
20638     rm -f "$ac_file"
20639   fi
20640   # Let's still pretend it is `configure' which instantiates (i.e., don't
20641   # use $as_me), people would be surprised to read:
20642   #    /* config.h.  Generated by config.status.  */
20643   if test x"$ac_file" = x-; then
20644     configure_input=
20645   else
20646     configure_input="$ac_file.  "
20647   fi
20648   configure_input=$configure_input"Generated from `echo $ac_file_in |
20649                                      sed 's,.*/,,'` by configure."
20650
20651   # First look for the input files in the build tree, otherwise in the
20652   # src tree.
20653   ac_file_inputs=`IFS=:
20654     for f in $ac_file_in; do
20655       case $f in
20656       -) echo $tmp/stdin ;;
20657       [\\/$]*)
20658          # Absolute (can't be DOS-style, as IFS=:)
20659          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20660 echo "$as_me: error: cannot find input file: $f" >&2;}
20661    { (exit 1); exit 1; }; }
20662          echo "$f";;
20663       *) # Relative
20664          if test -f "$f"; then
20665            # Build tree
20666            echo "$f"
20667          elif test -f "$srcdir/$f"; then
20668            # Source tree
20669            echo "$srcdir/$f"
20670          else
20671            # /dev/null tree
20672            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20673 echo "$as_me: error: cannot find input file: $f" >&2;}
20674    { (exit 1); exit 1; }; }
20675          fi;;
20676       esac
20677     done` || { (exit 1); exit 1; }
20678 _ACEOF
20679 cat >>$CONFIG_STATUS <<_ACEOF
20680   sed "$ac_vpsub
20681 $extrasub
20682 _ACEOF
20683 cat >>$CONFIG_STATUS <<\_ACEOF
20684 :t
20685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20686 s,@configure_input@,$configure_input,;t t
20687 s,@srcdir@,$ac_srcdir,;t t
20688 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20689 s,@top_srcdir@,$ac_top_srcdir,;t t
20690 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20691 s,@builddir@,$ac_builddir,;t t
20692 s,@abs_builddir@,$ac_abs_builddir,;t t
20693 s,@top_builddir@,$ac_top_builddir,;t t
20694 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20695 s,@INSTALL@,$ac_INSTALL,;t t
20696 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20697   rm -f $tmp/stdin
20698   if test x"$ac_file" != x-; then
20699     mv $tmp/out $ac_file
20700   else
20701     cat $tmp/out
20702     rm -f $tmp/out
20703   fi
20704
20705 done
20706 _ACEOF
20707 cat >>$CONFIG_STATUS <<\_ACEOF
20708
20709 #
20710 # CONFIG_HEADER section.
20711 #
20712
20713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20715 #
20716 # ac_d sets the value in "#define NAME VALUE" lines.
20717 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20718 ac_dB='[         ].*$,\1#\2'
20719 ac_dC=' '
20720 ac_dD=',;t'
20721 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20722 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20723 ac_uB='$,\1#\2define\3'
20724 ac_uC=' '
20725 ac_uD=',;t'
20726
20727 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20728   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20729   case $ac_file in
20730   - | *:- | *:-:* ) # input from stdin
20731         cat >$tmp/stdin
20732         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20734   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20735         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20736   * )   ac_file_in=$ac_file.in ;;
20737   esac
20738
20739   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20740 echo "$as_me: creating $ac_file" >&6;}
20741
20742   # First look for the input files in the build tree, otherwise in the
20743   # src tree.
20744   ac_file_inputs=`IFS=:
20745     for f in $ac_file_in; do
20746       case $f in
20747       -) echo $tmp/stdin ;;
20748       [\\/$]*)
20749          # Absolute (can't be DOS-style, as IFS=:)
20750          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20751 echo "$as_me: error: cannot find input file: $f" >&2;}
20752    { (exit 1); exit 1; }; }
20753          # Do quote $f, to prevent DOS paths from being IFS'd.
20754          echo "$f";;
20755       *) # Relative
20756          if test -f "$f"; then
20757            # Build tree
20758            echo "$f"
20759          elif test -f "$srcdir/$f"; then
20760            # Source tree
20761            echo "$srcdir/$f"
20762          else
20763            # /dev/null tree
20764            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20765 echo "$as_me: error: cannot find input file: $f" >&2;}
20766    { (exit 1); exit 1; }; }
20767          fi;;
20768       esac
20769     done` || { (exit 1); exit 1; }
20770   # Remove the trailing spaces.
20771   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20772
20773 _ACEOF
20774
20775 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20776 # `conftest.undefs', that substitutes the proper values into
20777 # config.h.in to produce config.h.  The first handles `#define'
20778 # templates, and the second `#undef' templates.
20779 # And first: Protect against being on the right side of a sed subst in
20780 # config.status.  Protect against being in an unquoted here document
20781 # in config.status.
20782 rm -f conftest.defines conftest.undefs
20783 # Using a here document instead of a string reduces the quoting nightmare.
20784 # Putting comments in sed scripts is not portable.
20785 #
20786 # `end' is used to avoid that the second main sed command (meant for
20787 # 0-ary CPP macros) applies to n-ary macro definitions.
20788 # See the Autoconf documentation for `clear'.
20789 cat >confdef2sed.sed <<\_ACEOF
20790 s/[\\&,]/\\&/g
20791 s,[\\$`],\\&,g
20792 t clear
20793 : clear
20794 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20795 t end
20796 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20797 : end
20798 _ACEOF
20799 # If some macros were called several times there might be several times
20800 # the same #defines, which is useless.  Nevertheless, we may not want to
20801 # sort them, since we want the *last* AC-DEFINE to be honored.
20802 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20803 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20804 rm -f confdef2sed.sed
20805
20806 # This sed command replaces #undef with comments.  This is necessary, for
20807 # example, in the case of _POSIX_SOURCE, which is predefined and required
20808 # on some systems where configure will not decide to define it.
20809 cat >>conftest.undefs <<\_ACEOF
20810 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20811 _ACEOF
20812
20813 # Break up conftest.defines because some shells have a limit on the size
20814 # of here documents, and old seds have small limits too (100 cmds).
20815 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20816 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20817 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20818 echo '  :' >>$CONFIG_STATUS
20819 rm -f conftest.tail
20820 while grep . conftest.defines >/dev/null
20821 do
20822   # Write a limited-size here document to $tmp/defines.sed.
20823   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20824   # Speed up: don't consider the non `#define' lines.
20825   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20826   # Work around the forget-to-reset-the-flag bug.
20827   echo 't clr' >>$CONFIG_STATUS
20828   echo ': clr' >>$CONFIG_STATUS
20829   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20830   echo 'CEOF
20831   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20832   rm -f $tmp/in
20833   mv $tmp/out $tmp/in
20834 ' >>$CONFIG_STATUS
20835   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20836   rm -f conftest.defines
20837   mv conftest.tail conftest.defines
20838 done
20839 rm -f conftest.defines
20840 echo '  fi # grep' >>$CONFIG_STATUS
20841 echo >>$CONFIG_STATUS
20842
20843 # Break up conftest.undefs because some shells have a limit on the size
20844 # of here documents, and old seds have small limits too (100 cmds).
20845 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20846 rm -f conftest.tail
20847 while grep . conftest.undefs >/dev/null
20848 do
20849   # Write a limited-size here document to $tmp/undefs.sed.
20850   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20851   # Speed up: don't consider the non `#undef'
20852   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20853   # Work around the forget-to-reset-the-flag bug.
20854   echo 't clr' >>$CONFIG_STATUS
20855   echo ': clr' >>$CONFIG_STATUS
20856   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20857   echo 'CEOF
20858   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20859   rm -f $tmp/in
20860   mv $tmp/out $tmp/in
20861 ' >>$CONFIG_STATUS
20862   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20863   rm -f conftest.undefs
20864   mv conftest.tail conftest.undefs
20865 done
20866 rm -f conftest.undefs
20867
20868 cat >>$CONFIG_STATUS <<\_ACEOF
20869   # Let's still pretend it is `configure' which instantiates (i.e., don't
20870   # use $as_me), people would be surprised to read:
20871   #    /* config.h.  Generated by config.status.  */
20872   if test x"$ac_file" = x-; then
20873     echo "/* Generated by configure.  */" >$tmp/config.h
20874   else
20875     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20876   fi
20877   cat $tmp/in >>$tmp/config.h
20878   rm -f $tmp/in
20879   if test x"$ac_file" != x-; then
20880     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20881       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20882 echo "$as_me: $ac_file is unchanged" >&6;}
20883     else
20884       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20886          X"$ac_file" : 'X\(//\)[^/]' \| \
20887          X"$ac_file" : 'X\(//\)$' \| \
20888          X"$ac_file" : 'X\(/\)' \| \
20889          .     : '\(.\)' 2>/dev/null ||
20890 echo X"$ac_file" |
20891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20893           /^X\(\/\/\)$/{ s//\1/; q; }
20894           /^X\(\/\).*/{ s//\1/; q; }
20895           s/.*/./; q'`
20896       { if $as_mkdir_p; then
20897     mkdir -p "$ac_dir"
20898   else
20899     as_dir="$ac_dir"
20900     as_dirs=
20901     while test ! -d "$as_dir"; do
20902       as_dirs="$as_dir $as_dirs"
20903       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905          X"$as_dir" : 'X\(//\)[^/]' \| \
20906          X"$as_dir" : 'X\(//\)$' \| \
20907          X"$as_dir" : 'X\(/\)' \| \
20908          .     : '\(.\)' 2>/dev/null ||
20909 echo X"$as_dir" |
20910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20911           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20912           /^X\(\/\/\)$/{ s//\1/; q; }
20913           /^X\(\/\).*/{ s//\1/; q; }
20914           s/.*/./; q'`
20915     done
20916     test ! -n "$as_dirs" || mkdir $as_dirs
20917   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20919    { (exit 1); exit 1; }; }; }
20920
20921       rm -f $ac_file
20922       mv $tmp/config.h $ac_file
20923     fi
20924   else
20925     cat $tmp/config.h
20926     rm -f $tmp/config.h
20927   fi
20928 # Compute $ac_file's index in $config_headers.
20929 _am_stamp_count=1
20930 for _am_header in $config_headers :; do
20931   case $_am_header in
20932     $ac_file | $ac_file:* )
20933       break ;;
20934     * )
20935       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20936   esac
20937 done
20938 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20939 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940          X$ac_file : 'X\(//\)[^/]' \| \
20941          X$ac_file : 'X\(//\)$' \| \
20942          X$ac_file : 'X\(/\)' \| \
20943          .     : '\(.\)' 2>/dev/null ||
20944 echo X$ac_file |
20945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20946           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20947           /^X\(\/\/\)$/{ s//\1/; q; }
20948           /^X\(\/\).*/{ s//\1/; q; }
20949           s/.*/./; q'`/stamp-h$_am_stamp_count
20950 done
20951 _ACEOF
20952 cat >>$CONFIG_STATUS <<\_ACEOF
20953
20954 #
20955 # CONFIG_COMMANDS section.
20956 #
20957 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20958   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20959   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20960   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20961 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962          X"$ac_dest" : 'X\(//\)[^/]' \| \
20963          X"$ac_dest" : 'X\(//\)$' \| \
20964          X"$ac_dest" : 'X\(/\)' \| \
20965          .     : '\(.\)' 2>/dev/null ||
20966 echo X"$ac_dest" |
20967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20969           /^X\(\/\/\)$/{ s//\1/; q; }
20970           /^X\(\/\).*/{ s//\1/; q; }
20971           s/.*/./; q'`
20972   { if $as_mkdir_p; then
20973     mkdir -p "$ac_dir"
20974   else
20975     as_dir="$ac_dir"
20976     as_dirs=
20977     while test ! -d "$as_dir"; do
20978       as_dirs="$as_dir $as_dirs"
20979       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981          X"$as_dir" : 'X\(//\)[^/]' \| \
20982          X"$as_dir" : 'X\(//\)$' \| \
20983          X"$as_dir" : 'X\(/\)' \| \
20984          .     : '\(.\)' 2>/dev/null ||
20985 echo X"$as_dir" |
20986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988           /^X\(\/\/\)$/{ s//\1/; q; }
20989           /^X\(\/\).*/{ s//\1/; q; }
20990           s/.*/./; q'`
20991     done
20992     test ! -n "$as_dirs" || mkdir $as_dirs
20993   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20995    { (exit 1); exit 1; }; }; }
20996
20997   ac_builddir=.
20998
20999 if test "$ac_dir" != .; then
21000   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21001   # A "../" for each directory in $ac_dir_suffix.
21002   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21003 else
21004   ac_dir_suffix= ac_top_builddir=
21005 fi
21006
21007 case $srcdir in
21008   .)  # No --srcdir option.  We are building in place.
21009     ac_srcdir=.
21010     if test -z "$ac_top_builddir"; then
21011        ac_top_srcdir=.
21012     else
21013        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21014     fi ;;
21015   [\\/]* | ?:[\\/]* )  # Absolute path.
21016     ac_srcdir=$srcdir$ac_dir_suffix;
21017     ac_top_srcdir=$srcdir ;;
21018   *) # Relative path.
21019     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21020     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21021 esac
21022
21023 # Do not use `cd foo && pwd` to compute absolute paths, because
21024 # the directories may not exist.
21025 case `pwd` in
21026 .) ac_abs_builddir="$ac_dir";;
21027 *)
21028   case "$ac_dir" in
21029   .) ac_abs_builddir=`pwd`;;
21030   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21031   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21032   esac;;
21033 esac
21034 case $ac_abs_builddir in
21035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21036 *)
21037   case ${ac_top_builddir}. in
21038   .) ac_abs_top_builddir=$ac_abs_builddir;;
21039   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21040   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21041   esac;;
21042 esac
21043 case $ac_abs_builddir in
21044 .) ac_abs_srcdir=$ac_srcdir;;
21045 *)
21046   case $ac_srcdir in
21047   .) ac_abs_srcdir=$ac_abs_builddir;;
21048   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21049   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21050   esac;;
21051 esac
21052 case $ac_abs_builddir in
21053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21054 *)
21055   case $ac_top_srcdir in
21056   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21057   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21058   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21059   esac;;
21060 esac
21061
21062
21063   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21064 echo "$as_me: executing $ac_dest commands" >&6;}
21065   case $ac_dest in
21066     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21067   # Strip MF so we end up with the name of the file.
21068   mf=`echo "$mf" | sed -e 's/:.*$//'`
21069   # Check whether this is an Automake generated Makefile or not.
21070   # We used to match only the files named `Makefile.in', but
21071   # some people rename them; so instead we look at the file content.
21072   # Grep'ing the first line is not enough: some people post-process
21073   # each Makefile.in and add a new line on top of each file to say so.
21074   # So let's grep whole file.
21075   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21076     dirpart=`(dirname "$mf") 2>/dev/null ||
21077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078          X"$mf" : 'X\(//\)[^/]' \| \
21079          X"$mf" : 'X\(//\)$' \| \
21080          X"$mf" : 'X\(/\)' \| \
21081          .     : '\(.\)' 2>/dev/null ||
21082 echo X"$mf" |
21083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21085           /^X\(\/\/\)$/{ s//\1/; q; }
21086           /^X\(\/\).*/{ s//\1/; q; }
21087           s/.*/./; q'`
21088   else
21089     continue
21090   fi
21091   # Extract the definition of DEPDIR, am__include, and am__quote
21092   # from the Makefile without running `make'.
21093   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21094   test -z "$DEPDIR" && continue
21095   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21096   test -z "am__include" && continue
21097   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21098   # When using ansi2knr, U may be empty or an underscore; expand it
21099   U=`sed -n 's/^U = //p' < "$mf"`
21100   # Find all dependency output files, they are included files with
21101   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21102   # simplest approach to changing $(DEPDIR) to its actual value in the
21103   # expansion.
21104   for file in `sed -n "
21105     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21106        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21107     # Make sure the directory exists.
21108     test -f "$dirpart/$file" && continue
21109     fdir=`(dirname "$file") 2>/dev/null ||
21110 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21111          X"$file" : 'X\(//\)[^/]' \| \
21112          X"$file" : 'X\(//\)$' \| \
21113          X"$file" : 'X\(/\)' \| \
21114          .     : '\(.\)' 2>/dev/null ||
21115 echo X"$file" |
21116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21118           /^X\(\/\/\)$/{ s//\1/; q; }
21119           /^X\(\/\).*/{ s//\1/; q; }
21120           s/.*/./; q'`
21121     { if $as_mkdir_p; then
21122     mkdir -p $dirpart/$fdir
21123   else
21124     as_dir=$dirpart/$fdir
21125     as_dirs=
21126     while test ! -d "$as_dir"; do
21127       as_dirs="$as_dir $as_dirs"
21128       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130          X"$as_dir" : 'X\(//\)[^/]' \| \
21131          X"$as_dir" : 'X\(//\)$' \| \
21132          X"$as_dir" : 'X\(/\)' \| \
21133          .     : '\(.\)' 2>/dev/null ||
21134 echo X"$as_dir" |
21135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21137           /^X\(\/\/\)$/{ s//\1/; q; }
21138           /^X\(\/\).*/{ s//\1/; q; }
21139           s/.*/./; q'`
21140     done
21141     test ! -n "$as_dirs" || mkdir $as_dirs
21142   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21143 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21144    { (exit 1); exit 1; }; }; }
21145
21146     # echo "creating $dirpart/$file"
21147     echo '# dummy' > "$dirpart/$file"
21148   done
21149 done
21150  ;;
21151     default )   echo timestamp > stamp-h.in
21152  ;;
21153   esac
21154 done
21155 _ACEOF
21156
21157 cat >>$CONFIG_STATUS <<\_ACEOF
21158
21159 { (exit 0); exit 0; }
21160 _ACEOF
21161 chmod +x $CONFIG_STATUS
21162 ac_clean_files=$ac_clean_files_save
21163
21164
21165 # configure is writing to config.log, and then calls config.status.
21166 # config.status does its own redirection, appending to config.log.
21167 # Unfortunately, on DOS this fails, as config.log is still kept open
21168 # by configure, so config.status won't be able to write to it; its
21169 # output is simply discarded.  So we exec the FD to /dev/null,
21170 # effectively closing config.log, so it can be properly (re)opened and
21171 # appended to by config.status.  When coming back to configure, we
21172 # need to make the FD available again.
21173 if test "$no_create" != yes; then
21174   ac_cs_success=:
21175   ac_config_status_args=
21176   test "$silent" = yes &&
21177     ac_config_status_args="$ac_config_status_args --quiet"
21178   exec 5>/dev/null
21179   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21180   exec 5>>config.log
21181   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21182   # would make configure fail if this is the last instruction.
21183   $ac_cs_success || { (exit 1); exit 1; }
21184 fi
21185