]> granicus.if.org Git - zfs/blob - configure
Build system cleanup
[zfs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 #  include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 #  include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 #  include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 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 SPL_META_NAME SPL_META_VERSION SPL_META_RELEASE SPL_META_ALIAS SPL_META_DATA SPL_META_AUTHOR SPL_META_LT_CURRENT SPL_META_LT_REVISION SPL_META_LT_AGE 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 SED 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 LINUX LINUX_OBJ LINUX_VERSION KERNELMAKE_PARAMS KERNELCPPFLAGS KERNELCFLAGS LIBOBJS LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518   # Accept the important Cygnus configure options, so we can diagnose typos.
519
520   case $ac_option in
521
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
526
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
531
532   -cache-file | --cache-file | --cache-fil | --cache-fi \
533   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534     ac_prev=cache_file ;;
535   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537     cache_file=$ac_optarg ;;
538
539   --config-cache | -C)
540     cache_file=config.cache ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir=$ac_optarg ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     eval "enable_$ac_feature=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     case $ac_option in
565       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_$ac_feature='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix=$ac_optarg ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he | -h)
584     ac_init_help=long ;;
585   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586     ac_init_help=recursive ;;
587   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588     ac_init_help=short ;;
589
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
594
595   -includedir | --includedir | --includedi | --included | --include \
596   | --includ | --inclu | --incl | --inc)
597     ac_prev=includedir ;;
598   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599   | --includ=* | --inclu=* | --incl=* | --inc=*)
600     includedir=$ac_optarg ;;
601
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
606
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
611
612   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613   | --libexe | --libex | --libe)
614     ac_prev=libexecdir ;;
615   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616   | --libexe=* | --libex=* | --libe=*)
617     libexecdir=$ac_optarg ;;
618
619   -localstatedir | --localstatedir | --localstatedi | --localstated \
620   | --localstate | --localstat | --localsta | --localst \
621   | --locals | --local | --loca | --loc | --lo)
622     ac_prev=localstatedir ;;
623   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626     localstatedir=$ac_optarg ;;
627
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
632
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
636
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
640
641   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643     no_recursion=yes ;;
644
645   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647   | --oldin | --oldi | --old | --ol | --o)
648     ac_prev=oldincludedir ;;
649   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652     oldincludedir=$ac_optarg ;;
653
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
658
659   -program-prefix | --program-prefix | --program-prefi | --program-pref \
660   | --program-pre | --program-pr | --program-p)
661     ac_prev=program_prefix ;;
662   -program-prefix=* | --program-prefix=* | --program-prefi=* \
663   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664     program_prefix=$ac_optarg ;;
665
666   -program-suffix | --program-suffix | --program-suffi | --program-suff \
667   | --program-suf | --program-su | --program-s)
668     ac_prev=program_suffix ;;
669   -program-suffix=* | --program-suffix=* | --program-suffi=* \
670   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671     program_suffix=$ac_optarg ;;
672
673   -program-transform-name | --program-transform-name \
674   | --program-transform-nam | --program-transform-na \
675   | --program-transform-n | --program-transform- \
676   | --program-transform | --program-transfor \
677   | --program-transfo | --program-transf \
678   | --program-trans | --program-tran \
679   | --progr-tra | --program-tr | --program-t)
680     ac_prev=program_transform_name ;;
681   -program-transform-name=* | --program-transform-name=* \
682   | --program-transform-nam=* | --program-transform-na=* \
683   | --program-transform-n=* | --program-transform-=* \
684   | --program-transform=* | --program-transfor=* \
685   | --program-transfo=* | --program-transf=* \
686   | --program-trans=* | --program-tran=* \
687   | --progr-tra=* | --program-tr=* | --program-t=*)
688     program_transform_name=$ac_optarg ;;
689
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
693
694   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695     ac_prev=sbindir ;;
696   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697   | --sbi=* | --sb=*)
698     sbindir=$ac_optarg ;;
699
700   -sharedstatedir | --sharedstatedir | --sharedstatedi \
701   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702   | --sharedst | --shareds | --shared | --share | --shar \
703   | --sha | --sh)
704     ac_prev=sharedstatedir ;;
705   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708   | --sha=* | --sh=*)
709     sharedstatedir=$ac_optarg ;;
710
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
715
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
720
721   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722   | --syscon | --sysco | --sysc | --sys | --sy)
723     ac_prev=sysconfdir ;;
724   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726     sysconfdir=$ac_optarg ;;
727
728   -target | --target | --targe | --targ | --tar | --ta | --t)
729     ac_prev=target_alias ;;
730   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731     target_alias=$ac_optarg ;;
732
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
735
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
738
739   -with-* | --with-*)
740     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741     # Reject names that are not valid shell variable names.
742     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743       { echo "$as_me: error: invalid package name: $ac_package" >&2
744    { (exit 1); exit 1; }; }
745     ac_package=`echo $ac_package| sed 's/-/_/g'`
746     case $ac_option in
747       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748       *) ac_optarg=yes ;;
749     esac
750     eval "with_$ac_package='$ac_optarg'" ;;
751
752   -without-* | --without-*)
753     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package | sed 's/-/_/g'`
759     eval "with_$ac_package=no" ;;
760
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
764
765   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766   | --x-incl | --x-inc | --x-in | --x-i)
767     ac_prev=x_includes ;;
768   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770     x_includes=$ac_optarg ;;
771
772   -x-libraries | --x-libraries | --x-librarie | --x-librari \
773   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774     ac_prev=x_libraries ;;
775   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777     x_libraries=$ac_optarg ;;
778
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
783
784   *=*)
785     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786     # Reject names that are not valid shell variable names.
787     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789    { (exit 1); exit 1; }; }
790     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791     eval "$ac_envvar='$ac_optarg'"
792     export $ac_envvar ;;
793
794   *)
795     # FIXME: should be removed in autoconf 3.0.
796     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800     ;;
801
802   esac
803 done
804
805 if test -n "$ac_prev"; then
806   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807   { echo "$as_me: error: missing argument to $ac_option" >&2
808    { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824               localstatedir libdir includedir oldincludedir infodir mandir
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843   if test "x$build_alias" = x; then
844     cross_compiling=maybe
845     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846     If a cross compiler is detected then cross compile mode will be used." >&2
847   elif test "x$build_alias" != "x$host_alias"; then
848     cross_compiling=yes
849   fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860   ac_srcdir_defaulted=yes
861   # Try the directory containing this script, then its parent.
862   ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864          X"$0" : 'X\(//\)[^/]' \| \
865          X"$0" : 'X\(//\)$' \| \
866          X"$0" : 'X\(/\)' \| \
867          .     : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871           /^X\(\/\/\)$/{ s//\1/; q; }
872           /^X\(\/\).*/{ s//\1/; q; }
873           s/.*/./; q'`
874   srcdir=$ac_confdir
875   if test ! -r $srcdir/$ac_unique_file; then
876     srcdir=..
877   fi
878 else
879   ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882   if test "$ac_srcdir_defaulted" = yes; then
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884    { (exit 1); exit 1; }; }
885   else
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887    { (exit 1); exit 1; }; }
888   fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892    { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if test "$ac_init_help" = "long"; then
951   # Omit some internal or obsolete options to make the list less imposing.
952   # This message is too long to be a string in the A/UX 3.1 sh.
953   cat <<_ACEOF
954 \`configure' configures this package to adapt to many kinds of systems.
955
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
964   -h, --help              display this help and exit
965       --help=short        display options specific to this package
966       --help=recursive    display the short help of all the included packages
967   -V, --version           display version information and exit
968   -q, --quiet, --silent   do not print \`checking...' messages
969       --cache-file=FILE   cache test results in FILE [disabled]
970   -C, --config-cache      alias for \`--cache-file=config.cache'
971   -n, --no-create         do not create output files
972       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974 _ACEOF
975
976   cat <<_ACEOF
977 Installation directories:
978   --prefix=PREFIX         install architecture-independent files in PREFIX
979                           [$ac_default_prefix]
980   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981                           [PREFIX]
982
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine tuning of the installation directories:
991   --bindir=DIR           user executables [EPREFIX/bin]
992   --sbindir=DIR          system admin executables [EPREFIX/sbin]
993   --libexecdir=DIR       program executables [EPREFIX/libexec]
994   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998   --libdir=DIR           object code libraries [EPREFIX/lib]
999   --includedir=DIR       C header files [PREFIX/include]
1000   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001   --infodir=DIR          info documentation [PREFIX/info]
1002   --mandir=DIR           man documentation [PREFIX/man]
1003 _ACEOF
1004
1005   cat <<\_ACEOF
1006
1007 Program names:
1008   --program-prefix=PREFIX            prepend PREFIX to installed program names
1009   --program-suffix=SUFFIX            append SUFFIX to installed program names
1010   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --disable-dependency-tracking  speeds up one-time build
1029   --enable-dependency-tracking   do not reject slow dependency extractors
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037   --enable-debug          Enable generic debug support (default off)
1038   --enable-debug-kmem     Enable kmem debug support (default off)
1039   --enable-debug-mutex    Enable mutex debug support (default off)
1040   --enable-debug-kstat    Enable kstat debug support (default off)
1041   --enable-debug-callb    Enable callb debug support (default off)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-linux=PATH       Path to kernel source
1052   --with-linux-obj=PATH   Path to kernel build objects
1053
1054 Some influential environment variables:
1055   CC          C compiler command
1056   CFLAGS      C compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CPP         C preprocessor
1062   CXX         C++ compiler command
1063   CXXFLAGS    C++ compiler flags
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075   # If there are subdirs, report their specific --help.
1076   ac_popdir=`pwd`
1077   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078     test -d $ac_dir || continue
1079     ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083   # A "../" for each directory in $ac_dir_suffix.
1084   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086   ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090   .)  # No --srcdir option.  We are building in place.
1091     ac_srcdir=.
1092     if test -z "$ac_top_builddir"; then
1093        ac_top_srcdir=.
1094     else
1095        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096     fi ;;
1097   [\\/]* | ?:[\\/]* )  # Absolute path.
1098     ac_srcdir=$srcdir$ac_dir_suffix;
1099     ac_top_srcdir=$srcdir ;;
1100   *) # Relative path.
1101     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110   case "$ac_dir" in
1111   .) ac_abs_builddir=`pwd`;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114   esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119   case ${ac_top_builddir}. in
1120   .) ac_abs_top_builddir=$ac_abs_builddir;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128   case $ac_srcdir in
1129   .) ac_abs_srcdir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137   case $ac_top_srcdir in
1138   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141   esac;;
1142 esac
1143
1144     cd $ac_dir
1145     # Check for guested configure; otherwise get Cygnus style configure.
1146     if test -f $ac_srcdir/configure.gnu; then
1147       echo
1148       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1149     elif test -f $ac_srcdir/configure; then
1150       echo
1151       $SHELL $ac_srcdir/configure  --help=recursive
1152     elif test -f $ac_srcdir/configure.ac ||
1153            test -f $ac_srcdir/configure.in; then
1154       echo
1155       $ac_configure --help
1156     else
1157       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158     fi
1159     cd $ac_popdir
1160   done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165   cat <<\_ACEOF
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 $as_me, 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 ac_ext=c
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
1513
1514
1515
1516
1517         echo "$as_me:$LINENO: checking metadata" >&5
1518 echo $ECHO_N "checking metadata... $ECHO_C" >&6
1519
1520         META="$srcdir/META"
1521         _spl_ac_meta_got_file=no
1522         if test -f "$META"; then
1523                 _spl_ac_meta_got_file=yes
1524
1525                 SPL_META_NAME=`perl -n\
1526                 -e "BEGIN { \\$key=shift @ARGV; }"\
1527                 -e "next unless s/^\s*\\$key[:=]//i;"\
1528                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1529                 -e "s/^\s+//;"\
1530                 -e "s/\s+$//;"\
1531                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1532                 -e "\\$val=\\$_;"\
1533                 -e "END { print \\$val if defined \\$val; }"\
1534                 '(?:NAME|PROJECT|PACKAGE)' $META`;
1535                 if test -n "$SPL_META_NAME"; then
1536
1537 cat >>confdefs.h <<_ACEOF
1538 #define SPL_META_NAME "$SPL_META_NAME"
1539 _ACEOF
1540
1541
1542                 fi
1543
1544                 SPL_META_VERSION=`perl -n\
1545                 -e "BEGIN { \\$key=shift @ARGV; }"\
1546                 -e "next unless s/^\s*\\$key[:=]//i;"\
1547                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1548                 -e "s/^\s+//;"\
1549                 -e "s/\s+$//;"\
1550                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1551                 -e "\\$val=\\$_;"\
1552                 -e "END { print \\$val if defined \\$val; }"\
1553                 'VERSION' $META`;
1554                 if test -n "$SPL_META_VERSION"; then
1555
1556 cat >>confdefs.h <<_ACEOF
1557 #define SPL_META_VERSION "$SPL_META_VERSION"
1558 _ACEOF
1559
1560
1561                 fi
1562
1563                 SPL_META_RELEASE=`perl -n\
1564                 -e "BEGIN { \\$key=shift @ARGV; }"\
1565                 -e "next unless s/^\s*\\$key[:=]//i;"\
1566                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1567                 -e "s/^\s+//;"\
1568                 -e "s/\s+$//;"\
1569                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1570                 -e "\\$val=\\$_;"\
1571                 -e "END { print \\$val if defined \\$val; }"\
1572                 'RELEASE' $META`;
1573                 if test -n "$SPL_META_RELEASE"; then
1574
1575 cat >>confdefs.h <<_ACEOF
1576 #define SPL_META_RELEASE "$SPL_META_RELEASE"
1577 _ACEOF
1578
1579
1580                 fi
1581
1582                 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
1583                                 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
1584                                 test -n "$SPL_META_RELEASE" &&
1585                                         SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
1586
1587 cat >>confdefs.h <<_ACEOF
1588 #define SPL_META_ALIAS "$SPL_META_ALIAS"
1589 _ACEOF
1590
1591
1592                 fi
1593
1594                 SPL_META_DATA=`perl -n\
1595                 -e "BEGIN { \\$key=shift @ARGV; }"\
1596                 -e "next unless s/^\s*\\$key[:=]//i;"\
1597                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1598                 -e "s/^\s+//;"\
1599                 -e "s/\s+$//;"\
1600                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1601                 -e "\\$val=\\$_;"\
1602                 -e "END { print \\$val if defined \\$val; }"\
1603                 'DATE' $META`;
1604                 if test -n "$SPL_META_DATA"; then
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define SPL_META_DATA "$SPL_META_DATA"
1608 _ACEOF
1609
1610
1611                 fi
1612
1613                 SPL_META_AUTHOR=`perl -n\
1614                 -e "BEGIN { \\$key=shift @ARGV; }"\
1615                 -e "next unless s/^\s*\\$key[:=]//i;"\
1616                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1617                 -e "s/^\s+//;"\
1618                 -e "s/\s+$//;"\
1619                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1620                 -e "\\$val=\\$_;"\
1621                 -e "END { print \\$val if defined \\$val; }"\
1622                 'AUTHOR' $META`;
1623                 if test -n "$SPL_META_AUTHOR"; then
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
1627 _ACEOF
1628
1629
1630                 fi
1631
1632
1633                 SPL_META_LT_CURRENT=`perl -n\
1634                 -e "BEGIN { \\$key=shift @ARGV; }"\
1635                 -e "next unless s/^\s*\\$key[:=]//i;"\
1636                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1637                 -e "s/^\s+//;"\
1638                 -e "s/\s+$//;"\
1639                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1640                 -e "\\$val=\\$_;"\
1641                 -e "END { print \\$val if defined \\$val; }"\
1642                 'LT_CURRENT' $META`;
1643                 SPL_META_LT_REVISION=`perl -n\
1644                 -e "BEGIN { \\$key=shift @ARGV; }"\
1645                 -e "next unless s/^\s*\\$key[:=]//i;"\
1646                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1647                 -e "s/^\s+//;"\
1648                 -e "s/\s+$//;"\
1649                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1650                 -e "\\$val=\\$_;"\
1651                 -e "END { print \\$val if defined \\$val; }"\
1652                 'LT_REVISION' $META`;
1653                 SPL_META_LT_AGE=`perl -n\
1654                 -e "BEGIN { \\$key=shift @ARGV; }"\
1655                 -e "next unless s/^\s*\\$key[:=]//i;"\
1656                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1657                 -e "s/^\s+//;"\
1658                 -e "s/\s+$//;"\
1659                 -e "s/^(['\"])(.*)\1/\\$2/;"\
1660                 -e "\\$val=\\$_;"\
1661                 -e "END { print \\$val if defined \\$val; }"\
1662                 'LT_AGE' $META`;
1663                 if test -n "$SPL_META_LT_CURRENT" \
1664                                  -o -n "$SPL_META_LT_REVISION" \
1665                                  -o -n "$SPL_META_LT_AGE"; then
1666                         test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1667                         test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1668                         test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
1677 _ACEOF
1678
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
1682 _ACEOF
1683
1684
1685
1686
1687                 fi
1688         fi
1689
1690         echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1691 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1692
1693
1694 ac_aux_dir=
1695 for ac_dir in config $srcdir/config; do
1696   if test -f $ac_dir/install-sh; then
1697     ac_aux_dir=$ac_dir
1698     ac_install_sh="$ac_aux_dir/install-sh -c"
1699     break
1700   elif test -f $ac_dir/install.sh; then
1701     ac_aux_dir=$ac_dir
1702     ac_install_sh="$ac_aux_dir/install.sh -c"
1703     break
1704   elif test -f $ac_dir/shtool; then
1705     ac_aux_dir=$ac_dir
1706     ac_install_sh="$ac_aux_dir/shtool install -c"
1707     break
1708   fi
1709 done
1710 if test -z "$ac_aux_dir"; then
1711   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1712 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1713    { (exit 1); exit 1; }; }
1714 fi
1715 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1716 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1717 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1718
1719 # Make sure we can run config.sub.
1720 $ac_config_sub sun4 >/dev/null 2>&1 ||
1721   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723    { (exit 1); exit 1; }; }
1724
1725 echo "$as_me:$LINENO: checking build system type" >&5
1726 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727 if test "${ac_cv_build+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   ac_cv_build_alias=$build_alias
1731 test -z "$ac_cv_build_alias" &&
1732   ac_cv_build_alias=`$ac_config_guess`
1733 test -z "$ac_cv_build_alias" &&
1734   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736    { (exit 1); exit 1; }; }
1737 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740    { (exit 1); exit 1; }; }
1741
1742 fi
1743 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744 echo "${ECHO_T}$ac_cv_build" >&6
1745 build=$ac_cv_build
1746 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749
1750
1751 echo "$as_me:$LINENO: checking host system type" >&5
1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753 if test "${ac_cv_host+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   ac_cv_host_alias=$host_alias
1757 test -z "$ac_cv_host_alias" &&
1758   ac_cv_host_alias=$ac_cv_build_alias
1759 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762    { (exit 1); exit 1; }; }
1763
1764 fi
1765 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6
1767 host=$ac_cv_host
1768 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771
1772
1773 echo "$as_me:$LINENO: checking target system type" >&5
1774 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1775 if test "${ac_cv_target+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   ac_cv_target_alias=$target_alias
1779 test "x$ac_cv_target_alias" = "x" &&
1780   ac_cv_target_alias=$ac_cv_host_alias
1781 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1782   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1783 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1784    { (exit 1); exit 1; }; }
1785
1786 fi
1787 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1788 echo "${ECHO_T}$ac_cv_target" >&6
1789 target=$ac_cv_target
1790 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1791 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1792 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793
1794
1795 # The aliases save the names the user supplied, while $host etc.
1796 # will get canonicalized.
1797 test -n "$target_alias" &&
1798   test "$program_prefix$program_suffix$program_transform_name" = \
1799     NONENONEs,x,x, &&
1800   program_prefix=${target_alias}-
1801 am__api_version="1.9"
1802 # Find a good install program.  We prefer a C program (faster),
1803 # so one script is as good as another.  But avoid the broken or
1804 # incompatible versions:
1805 # SysV /etc/install, /usr/sbin/install
1806 # SunOS /usr/etc/install
1807 # IRIX /sbin/install
1808 # AIX /bin/install
1809 # AmigaOS /C/install, which installs bootblocks on floppy discs
1810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1813 # OS/2's system install, which has a completely different semantic
1814 # ./install, which can be erroneously created by make from ./install.sh.
1815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1817 if test -z "$INSTALL"; then
1818 if test "${ac_cv_path_install+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824   IFS=$as_save_IFS
1825   test -z "$as_dir" && as_dir=.
1826   # Account for people who put trailing slashes in PATH elements.
1827 case $as_dir/ in
1828   ./ | .// | /cC/* | \
1829   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1830   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1831   /usr/ucb/* ) ;;
1832   *)
1833     # OSF1 and SCO ODT 3.0 have their own names for install.
1834     # Don't use installbsd from OSF since it installs stuff as root
1835     # by default.
1836     for ac_prog in ginstall scoinst install; do
1837       for ac_exec_ext in '' $ac_executable_extensions; do
1838         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1839           if test $ac_prog = install &&
1840             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841             # AIX install.  It has an incompatible calling convention.
1842             :
1843           elif test $ac_prog = install &&
1844             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1845             # program-specific install script used by HP pwplus--don't use.
1846             :
1847           else
1848             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1849             break 3
1850           fi
1851         fi
1852       done
1853     done
1854     ;;
1855 esac
1856 done
1857
1858
1859 fi
1860   if test "${ac_cv_path_install+set}" = set; then
1861     INSTALL=$ac_cv_path_install
1862   else
1863     # As a last resort, use the slow shell script.  We don't cache a
1864     # path for INSTALL within a source directory, because that will
1865     # break other packages using the cache if that directory is
1866     # removed, or if the path is relative.
1867     INSTALL=$ac_install_sh
1868   fi
1869 fi
1870 echo "$as_me:$LINENO: result: $INSTALL" >&5
1871 echo "${ECHO_T}$INSTALL" >&6
1872
1873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1874 # It thinks the first close brace ends the variable substitution.
1875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1876
1877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1878
1879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1880
1881 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1882 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1883 # Just in case
1884 sleep 1
1885 echo timestamp > conftest.file
1886 # Do `set' in a subshell so we don't clobber the current shell's
1887 # arguments.  Must try -L first in case configure is actually a
1888 # symlink; some systems play weird games with the mod time of symlinks
1889 # (eg FreeBSD returns the mod time of the symlink's containing
1890 # directory).
1891 if (
1892    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1893    if test "$*" = "X"; then
1894       # -L didn't work.
1895       set X `ls -t $srcdir/configure conftest.file`
1896    fi
1897    rm -f conftest.file
1898    if test "$*" != "X $srcdir/configure conftest.file" \
1899       && test "$*" != "X conftest.file $srcdir/configure"; then
1900
1901       # If neither matched, then we have a broken ls.  This can happen
1902       # if, for instance, CONFIG_SHELL is bash and it inherits a
1903       # broken ls alias from the environment.  This has actually
1904       # happened.  Such a system could not be considered "sane".
1905       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1906 alias in your environment" >&5
1907 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1908 alias in your environment" >&2;}
1909    { (exit 1); exit 1; }; }
1910    fi
1911
1912    test "$2" = conftest.file
1913    )
1914 then
1915    # Ok.
1916    :
1917 else
1918    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1919 Check your system clock" >&5
1920 echo "$as_me: error: newly created file is older than distributed files!
1921 Check your system clock" >&2;}
1922    { (exit 1); exit 1; }; }
1923 fi
1924 echo "$as_me:$LINENO: result: yes" >&5
1925 echo "${ECHO_T}yes" >&6
1926 test "$program_prefix" != NONE &&
1927   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1928 # Use a double $ so make ignores it.
1929 test "$program_suffix" != NONE &&
1930   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1931 # Double any \ or $.  echo might interpret backslashes.
1932 # By default was `s,x,x', remove it if useless.
1933 cat <<\_ACEOF >conftest.sed
1934 s/[\\$]/&&/g;s/;s,x,x,$//
1935 _ACEOF
1936 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1937 rm conftest.sed
1938
1939 # expand $ac_aux_dir to an absolute path
1940 am_aux_dir=`cd $ac_aux_dir && pwd`
1941
1942 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1943 # Use eval to expand $SHELL
1944 if eval "$MISSING --run true"; then
1945   am_missing_run="$MISSING --run "
1946 else
1947   am_missing_run=
1948   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1949 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1950 fi
1951
1952 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1953   # We used to keeping the `.' as first argument, in order to
1954   # allow $(mkdir_p) to be used without argument.  As in
1955   #   $(mkdir_p) $(somedir)
1956   # where $(somedir) is conditionally defined.  However this is wrong
1957   # for two reasons:
1958   #  1. if the package is installed by a user who cannot write `.'
1959   #     make install will fail,
1960   #  2. the above comment should most certainly read
1961   #     $(mkdir_p) $(DESTDIR)$(somedir)
1962   #     so it does not work when $(somedir) is undefined and
1963   #     $(DESTDIR) is not.
1964   #  To support the latter case, we have to write
1965   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1966   #  so the `.' trick is pointless.
1967   mkdir_p='mkdir -p --'
1968 else
1969   # On NextStep and OpenStep, the `mkdir' command does not
1970   # recognize any option.  It will interpret all options as
1971   # directories to create, and then abort because `.' already
1972   # exists.
1973   for d in ./-p ./--version;
1974   do
1975     test -d $d && rmdir $d
1976   done
1977   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1978   if test -f "$ac_aux_dir/mkinstalldirs"; then
1979     mkdir_p='$(mkinstalldirs)'
1980   else
1981     mkdir_p='$(install_sh) -d'
1982   fi
1983 fi
1984
1985 for ac_prog in gawk mawk nawk awk
1986 do
1987   # Extract the first word of "$ac_prog", so it can be a program name with args.
1988 set dummy $ac_prog; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_AWK+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   if test -n "$AWK"; then
1995   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004     ac_cv_prog_AWK="$ac_prog"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010
2011 fi
2012 fi
2013 AWK=$ac_cv_prog_AWK
2014 if test -n "$AWK"; then
2015   echo "$as_me:$LINENO: result: $AWK" >&5
2016 echo "${ECHO_T}$AWK" >&6
2017 else
2018   echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2020 fi
2021
2022   test -n "$AWK" && break
2023 done
2024
2025 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2026 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2027 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2028 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.make <<\_ACEOF
2032 all:
2033         @echo 'ac_maketemp="$(MAKE)"'
2034 _ACEOF
2035 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2036 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2037 if test -n "$ac_maketemp"; then
2038   eval ac_cv_prog_make_${ac_make}_set=yes
2039 else
2040   eval ac_cv_prog_make_${ac_make}_set=no
2041 fi
2042 rm -f conftest.make
2043 fi
2044 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2045   echo "$as_me:$LINENO: result: yes" >&5
2046 echo "${ECHO_T}yes" >&6
2047   SET_MAKE=
2048 else
2049   echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2051   SET_MAKE="MAKE=${MAKE-make}"
2052 fi
2053
2054 rm -rf .tst 2>/dev/null
2055 mkdir .tst 2>/dev/null
2056 if test -d .tst; then
2057   am__leading_dot=.
2058 else
2059   am__leading_dot=_
2060 fi
2061 rmdir .tst 2>/dev/null
2062
2063 # test to see if srcdir already configured
2064 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2065    test -f $srcdir/config.status; then
2066   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2067 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 # test whether we have cygpath
2072 if test -z "$CYGPATH_W"; then
2073   if (cygpath --version) >/dev/null 2>/dev/null; then
2074     CYGPATH_W='cygpath -w'
2075   else
2076     CYGPATH_W=echo
2077   fi
2078 fi
2079
2080
2081 # Define the identity of the package.
2082  PACKAGE=$SPL_META_NAME
2083  VERSION=$SPL_META_VERSION
2084
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE "$PACKAGE"
2088 _ACEOF
2089
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define VERSION "$VERSION"
2093 _ACEOF
2094
2095 # Some tools Automake needs.
2096
2097 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2098
2099
2100 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2101
2102
2103 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2104
2105
2106 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2107
2108
2109 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2110
2111 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2112
2113 # Installed binaries are usually stripped using `strip' when the user
2114 # run `make install-strip'.  However `strip' might not be the right
2115 # tool to use in cross-compilation environments, therefore Automake
2116 # will honor the `STRIP' environment variable to overrule this program.
2117 if test "$cross_compiling" != no; then
2118   if test -n "$ac_tool_prefix"; then
2119   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}strip; ac_word=$2
2121 echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123 if test "${ac_cv_prog_STRIP+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   if test -n "$STRIP"; then
2127   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132   IFS=$as_save_IFS
2133   test -z "$as_dir" && as_dir=.
2134   for ac_exec_ext in '' $ac_executable_extensions; do
2135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138     break 2
2139   fi
2140 done
2141 done
2142
2143 fi
2144 fi
2145 STRIP=$ac_cv_prog_STRIP
2146 if test -n "$STRIP"; then
2147   echo "$as_me:$LINENO: result: $STRIP" >&5
2148 echo "${ECHO_T}$STRIP" >&6
2149 else
2150   echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6
2152 fi
2153
2154 fi
2155 if test -z "$ac_cv_prog_STRIP"; then
2156   ac_ct_STRIP=$STRIP
2157   # Extract the first word of "strip", so it can be a program name with args.
2158 set dummy strip; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   if test -n "$ac_ct_STRIP"; then
2165   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172   for ac_exec_ext in '' $ac_executable_extensions; do
2173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174     ac_cv_prog_ac_ct_STRIP="strip"
2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179 done
2180
2181   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2182 fi
2183 fi
2184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2185 if test -n "$ac_ct_STRIP"; then
2186   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2187 echo "${ECHO_T}$ac_ct_STRIP" >&6
2188 else
2189   echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2191 fi
2192
2193   STRIP=$ac_ct_STRIP
2194 else
2195   STRIP="$ac_cv_prog_STRIP"
2196 fi
2197
2198 fi
2199 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2200
2201 # We need awk for the "check" target.  The system "awk" is bad on
2202 # some platforms.
2203 # Always define AMTAR for backward compatibility.
2204
2205 AMTAR=${AMTAR-"${am_missing_run}tar"}
2206
2207 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2208
2209
2210
2211
2212
2213           ac_config_headers="$ac_config_headers spl_config.h"
2214
2215 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2216 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2217     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2218 if test "${enable_maintainer_mode+set}" = set; then
2219   enableval="$enable_maintainer_mode"
2220   USE_MAINTAINER_MODE=$enableval
2221 else
2222   USE_MAINTAINER_MODE=no
2223 fi;
2224   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2225 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2226
2227
2228 if test $USE_MAINTAINER_MODE = yes; then
2229   MAINTAINER_MODE_TRUE=
2230   MAINTAINER_MODE_FALSE='#'
2231 else
2232   MAINTAINER_MODE_TRUE='#'
2233   MAINTAINER_MODE_FALSE=
2234 fi
2235
2236   MAINT=$MAINTAINER_MODE_TRUE
2237
2238
2239
2240 # Find a good install program.  We prefer a C program (faster),
2241 # so one script is as good as another.  But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2246 # AIX /bin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2255 if test -z "$INSTALL"; then
2256 if test "${ac_cv_path_install+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   # Account for people who put trailing slashes in PATH elements.
2265 case $as_dir/ in
2266   ./ | .// | /cC/* | \
2267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2269   /usr/ucb/* ) ;;
2270   *)
2271     # OSF1 and SCO ODT 3.0 have their own names for install.
2272     # Don't use installbsd from OSF since it installs stuff as root
2273     # by default.
2274     for ac_prog in ginstall scoinst install; do
2275       for ac_exec_ext in '' $ac_executable_extensions; do
2276         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2277           if test $ac_prog = install &&
2278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279             # AIX install.  It has an incompatible calling convention.
2280             :
2281           elif test $ac_prog = install &&
2282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283             # program-specific install script used by HP pwplus--don't use.
2284             :
2285           else
2286             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287             break 3
2288           fi
2289         fi
2290       done
2291     done
2292     ;;
2293 esac
2294 done
2295
2296
2297 fi
2298   if test "${ac_cv_path_install+set}" = set; then
2299     INSTALL=$ac_cv_path_install
2300   else
2301     # As a last resort, use the slow shell script.  We don't cache a
2302     # path for INSTALL within a source directory, because that will
2303     # break other packages using the cache if that directory is
2304     # removed, or if the path is relative.
2305     INSTALL=$ac_install_sh
2306   fi
2307 fi
2308 echo "$as_me:$LINENO: result: $INSTALL" >&5
2309 echo "${ECHO_T}$INSTALL" >&6
2310
2311 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2312 # It thinks the first close brace ends the variable substitution.
2313 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2314
2315 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2316
2317 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 if test -n "$ac_tool_prefix"; then
2325   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_CC+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$CC"; then
2333   ac_cv_prog_CC="$CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348
2349 fi
2350 fi
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353   echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2355 else
2356   echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360 fi
2361 if test -z "$ac_cv_prog_CC"; then
2362   ac_ct_CC=$CC
2363   # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$ac_ct_CC"; then
2371   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_ac_ct_CC="gcc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6
2393 else
2394   echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398   CC=$ac_ct_CC
2399 else
2400   CC="$ac_cv_prog_CC"
2401 fi
2402
2403 if test -z "$CC"; then
2404   if test -n "$ac_tool_prefix"; then
2405   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}cc; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   if test -n "$CC"; then
2413   ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422     ac_cv_prog_CC="${ac_tool_prefix}cc"
2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428
2429 fi
2430 fi
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433   echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6
2435 else
2436   echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440 fi
2441 if test -z "$ac_cv_prog_CC"; then
2442   ac_ct_CC=$CC
2443   # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$ac_ct_CC"; then
2451   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   for ac_exec_ext in '' $ac_executable_extensions; do
2459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460     ac_cv_prog_ac_ct_CC="cc"
2461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465 done
2466
2467 fi
2468 fi
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472 echo "${ECHO_T}$ac_ct_CC" >&6
2473 else
2474   echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2476 fi
2477
2478   CC=$ac_ct_CC
2479 else
2480   CC="$ac_cv_prog_CC"
2481 fi
2482
2483 fi
2484 if test -z "$CC"; then
2485   # Extract the first word of "cc", so it can be a program name with args.
2486 set dummy cc; ac_word=$2
2487 echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$CC"; then
2493   ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495   ac_prog_rejected=no
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501   for ac_exec_ext in '' $ac_executable_extensions; do
2502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504        ac_prog_rejected=yes
2505        continue
2506      fi
2507     ac_cv_prog_CC="cc"
2508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512 done
2513
2514 if test $ac_prog_rejected = yes; then
2515   # We found a bogon in the path, so make sure we never use it.
2516   set dummy $ac_cv_prog_CC
2517   shift
2518   if test $# != 0; then
2519     # We chose a different compiler from the bogus one.
2520     # However, it has the same basename, so the bogon will be chosen
2521     # first if we set CC to just the basename; use the full file name.
2522     shift
2523     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524   fi
2525 fi
2526 fi
2527 fi
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530   echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6
2532 else
2533   echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6
2535 fi
2536
2537 fi
2538 if test -z "$CC"; then
2539   if test -n "$ac_tool_prefix"; then
2540   for ac_prog in cl
2541   do
2542     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$CC"; then
2550   ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570   echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577     test -n "$CC" && break
2578   done
2579 fi
2580 if test -z "$CC"; then
2581   ac_ct_CC=$CC
2582   for ac_prog in cl
2583 do
2584   # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$ac_ct_CC"; then
2592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601     ac_cv_prog_ac_ct_CC="$ac_prog"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607
2608 fi
2609 fi
2610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2611 if test -n "$ac_ct_CC"; then
2612   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2613 echo "${ECHO_T}$ac_ct_CC" >&6
2614 else
2615   echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2617 fi
2618
2619   test -n "$ac_ct_CC" && break
2620 done
2621
2622   CC=$ac_ct_CC
2623 fi
2624
2625 fi
2626
2627
2628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629 See \`config.log' for more details." >&5
2630 echo "$as_me: error: no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details." >&2;}
2632    { (exit 1); exit 1; }; }
2633
2634 # Provide some information about the compiler.
2635 echo "$as_me:$LINENO:" \
2636      "checking for C compiler version" >&5
2637 ac_compiler=`set X $ac_compile; echo $2`
2638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2639   (eval $ac_compiler --version </dev/null >&5) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }
2643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2644   (eval $ac_compiler -v </dev/null >&5) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }
2648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2649   (eval $ac_compiler -V </dev/null >&5) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }
2653
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660
2661 int
2662 main ()
2663 {
2664
2665   ;
2666   return 0;
2667 }
2668 _ACEOF
2669 ac_clean_files_save=$ac_clean_files
2670 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2671 # Try to create an executable without -o first, disregard a.out.
2672 # It will help us diagnose broken compilers, and finding out an intuition
2673 # of exeext.
2674 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2675 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2676 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2677 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2678   (eval $ac_link_default) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; then
2682   # Find the output, starting from the most likely.  This scheme is
2683 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2684 # resort.
2685
2686 # Be careful to initialize this variable, since it used to be cached.
2687 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2688 ac_cv_exeext=
2689 # b.out is created by i960 compilers.
2690 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2691 do
2692   test -f "$ac_file" || continue
2693   case $ac_file in
2694     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2695         ;;
2696     conftest.$ac_ext )
2697         # This is the source file.
2698         ;;
2699     [ab].out )
2700         # We found the default executable, but exeext='' is most
2701         # certainly right.
2702         break;;
2703     *.* )
2704         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705         # FIXME: I believe we export ac_cv_exeext for Libtool,
2706         # but it would be cool to find out if it's true.  Does anybody
2707         # maintain Libtool? --akim.
2708         export ac_cv_exeext
2709         break;;
2710     * )
2711         break;;
2712   esac
2713 done
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: C compiler cannot create executables
2721 See \`config.log' for more details." >&2;}
2722    { (exit 77); exit 77; }; }
2723 fi
2724
2725 ac_exeext=$ac_cv_exeext
2726 echo "$as_me:$LINENO: result: $ac_file" >&5
2727 echo "${ECHO_T}$ac_file" >&6
2728
2729 # Check the compiler produces executables we can run.  If not, either
2730 # the compiler is broken, or we cross compile.
2731 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736   if { ac_try='./$ac_file'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742     cross_compiling=no
2743   else
2744     if test "$cross_compiling" = maybe; then
2745         cross_compiling=yes
2746     else
2747         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2748 If you meant to cross compile, use \`--host'.
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: cannot run C compiled programs.
2751 If you meant to cross compile, use \`--host'.
2752 See \`config.log' for more details." >&2;}
2753    { (exit 1); exit 1; }; }
2754     fi
2755   fi
2756 fi
2757 echo "$as_me:$LINENO: result: yes" >&5
2758 echo "${ECHO_T}yes" >&6
2759
2760 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2761 ac_clean_files=$ac_clean_files_save
2762 # Check the compiler produces executables we can run.  If not, either
2763 # the compiler is broken, or we cross compile.
2764 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2765 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2766 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2767 echo "${ECHO_T}$cross_compiling" >&6
2768
2769 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2770 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2772   (eval $ac_link) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; then
2776   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2778 # work properly (i.e., refer to `conftest.exe'), while it won't with
2779 # `rm'.
2780 for ac_file in conftest.exe conftest conftest.*; do
2781   test -f "$ac_file" || continue
2782   case $ac_file in
2783     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2784     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785           export ac_cv_exeext
2786           break;;
2787     * ) break;;
2788   esac
2789 done
2790 else
2791   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2794 See \`config.log' for more details." >&2;}
2795    { (exit 1); exit 1; }; }
2796 fi
2797
2798 rm -f conftest$ac_cv_exeext
2799 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2800 echo "${ECHO_T}$ac_cv_exeext" >&6
2801
2802 rm -f conftest.$ac_ext
2803 EXEEXT=$ac_cv_exeext
2804 ac_exeext=$EXEEXT
2805 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2806 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2807 if test "${ac_cv_objext+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816
2817 int
2818 main ()
2819 {
2820
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.o conftest.obj
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827   (eval $ac_compile) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; then
2831   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2832   case $ac_file in
2833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2834     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2835        break;;
2836   esac
2837 done
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2845 See \`config.log' for more details." >&2;}
2846    { (exit 1); exit 1; }; }
2847 fi
2848
2849 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2852 echo "${ECHO_T}$ac_cv_objext" >&6
2853 OBJEXT=$ac_cv_objext
2854 ac_objext=$OBJEXT
2855 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866
2867 int
2868 main ()
2869 {
2870 #ifndef __GNUC__
2871        choke me
2872 #endif
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   ac_compiler_gnu=yes
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 ac_compiler_gnu=no
2906 fi
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2909
2910 fi
2911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2916 CFLAGS="-g"
2917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2919 if test "${ac_cv_prog_cc_g+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928
2929 int
2930 main ()
2931 {
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939   (eval $ac_compile) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -z "$ac_c_werror_flag"
2947                          || test ! -s conftest.err'
2948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   ac_cv_prog_cc_g=yes
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 ac_cv_prog_cc_g=no
2965 fi
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 fi
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2970 if test "$ac_test_CFLAGS" = set; then
2971   CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973   if test "$GCC" = yes; then
2974     CFLAGS="-g -O2"
2975   else
2976     CFLAGS="-g"
2977   fi
2978 else
2979   if test "$GCC" = yes; then
2980     CFLAGS="-O2"
2981   else
2982     CFLAGS=
2983   fi
2984 fi
2985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2987 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   ac_cv_prog_cc_stdc=no
2991 ac_save_CC=$CC
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998 #include <stdarg.h>
2999 #include <stdio.h>
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3003 struct buf { int x; };
3004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005 static char *e (p, i)
3006      char **p;
3007      int i;
3008 {
3009   return p[i];
3010 }
3011 static char *f (char * (*g) (char **, int), char **p, ...)
3012 {
3013   char *s;
3014   va_list v;
3015   va_start (v,p);
3016   s = g (p, va_arg (v,int));
3017   va_end (v);
3018   return s;
3019 }
3020
3021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3022    function prototypes and stuff, but not '\xHH' hex character constants.
3023    These don't provoke an error unfortunately, instead are silently treated
3024    as 'x'.  The following induces an error, until -std1 is added to get
3025    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3026    array size at least.  It's necessary to write '\x00'==0 to get something
3027    that's true only with -std1.  */
3028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029
3030 int test (int i, double x);
3031 struct s1 {int (*f) (int a);};
3032 struct s2 {int (*f) (double a);};
3033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034 int argc;
3035 char **argv;
3036 int
3037 main ()
3038 {
3039 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 # Don't try gcc -ansi; that turns off useful extensions and
3045 # breaks some systems' header files.
3046 # AIX                   -qlanglvl=ansi
3047 # Ultrix and OSF/1      -std1
3048 # HP-UX 10.20 and later -Ae
3049 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3050 # SVR4                  -Xc -D__EXTENSIONS__
3051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3052 do
3053   CC="$ac_save_CC $ac_arg"
3054   rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056   (eval $ac_compile) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -z "$ac_c_werror_flag"
3064                          || test ! -s conftest.err'
3065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066   (eval $ac_try) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_prog_cc_stdc=$ac_arg
3077 break
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.err conftest.$ac_objext
3084 done
3085 rm -f conftest.$ac_ext conftest.$ac_objext
3086 CC=$ac_save_CC
3087
3088 fi
3089
3090 case "x$ac_cv_prog_cc_stdc" in
3091   x|xno)
3092     echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6 ;;
3094   *)
3095     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097     CC="$CC $ac_cv_prog_cc_stdc" ;;
3098 esac
3099
3100 # Some people use a C++ compiler to compile C.  Since we use `exit',
3101 # in C++ we need to declare it.  In case someone uses the same compiler
3102 # for both compiling C and C++ we need to have the C++ compiler decide
3103 # the declaration of exit, since it's the most demanding environment.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #ifndef __cplusplus
3106   choke me
3107 #endif
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111   (eval $ac_compile) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -z "$ac_c_werror_flag"
3119                          || test ! -s conftest.err'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127   (eval $ac_try) 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   for ac_declaration in \
3132    '' \
3133    'extern "C" void std::exit (int) throw (); using std::exit;' \
3134    'extern "C" void std::exit (int); using std::exit;' \
3135    'extern "C" void exit (int) throw ();' \
3136    'extern "C" void exit (int);' \
3137    'void exit (int);'
3138 do
3139   cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 $ac_declaration
3146 #include <stdlib.h>
3147 int
3148 main ()
3149 {
3150 exit (42);
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157   (eval $ac_compile) 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_c_werror_flag"
3165                          || test ! -s conftest.err'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; } &&
3171          { ac_try='test -s conftest.$ac_objext'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   :
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 continue
3183 fi
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 $ac_declaration
3192 int
3193 main ()
3194 {
3195 exit (42);
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202   (eval $ac_compile) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } &&
3209          { ac_try='test -z "$ac_c_werror_flag"
3210                          || test ! -s conftest.err'
3211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212   (eval $ac_try) 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }; } &&
3216          { ac_try='test -s conftest.$ac_objext'
3217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218   (eval $ac_try) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; }; then
3222   break
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 fi
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 done
3230 rm -f conftest*
3231 if test -n "$ac_declaration"; then
3232   echo '#ifdef __cplusplus' >>confdefs.h
3233   echo $ac_declaration      >>confdefs.h
3234   echo '#endif'             >>confdefs.h
3235 fi
3236
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 fi
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 DEPDIR="${am__leading_dot}deps"
3249
3250           ac_config_commands="$ac_config_commands depfiles"
3251
3252
3253 am_make=${MAKE-make}
3254 cat > confinc << 'END'
3255 am__doit:
3256         @echo done
3257 .PHONY: am__doit
3258 END
3259 # If we don't find an include directive, just comment out the code.
3260 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3261 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3262 am__include="#"
3263 am__quote=
3264 _am_result=none
3265 # First try GNU make style include.
3266 echo "include confinc" > confmf
3267 # We grep out `Entering directory' and `Leaving directory'
3268 # messages which can occur if `w' ends up in MAKEFLAGS.
3269 # In particular we don't look at `^make:' because GNU make might
3270 # be invoked under some other name (usually "gmake"), in which
3271 # case it prints its new name instead of `make'.
3272 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3273    am__include=include
3274    am__quote=
3275    _am_result=GNU
3276 fi
3277 # Now try BSD make style include.
3278 if test "$am__include" = "#"; then
3279    echo '.include "confinc"' > confmf
3280    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3281       am__include=.include
3282       am__quote="\""
3283       _am_result=BSD
3284    fi
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: result: $_am_result" >&5
3289 echo "${ECHO_T}$_am_result" >&6
3290 rm -f confinc confmf
3291
3292 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3293 if test "${enable_dependency_tracking+set}" = set; then
3294   enableval="$enable_dependency_tracking"
3295
3296 fi;
3297 if test "x$enable_dependency_tracking" != xno; then
3298   am_depcomp="$ac_aux_dir/depcomp"
3299   AMDEPBACKSLASH='\'
3300 fi
3301
3302
3303 if test "x$enable_dependency_tracking" != xno; then
3304   AMDEP_TRUE=
3305   AMDEP_FALSE='#'
3306 else
3307   AMDEP_TRUE='#'
3308   AMDEP_FALSE=
3309 fi
3310
3311
3312
3313
3314 depcc="$CC"   am_compiler_list=
3315
3316 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322   # We make a subdir and do the tests there.  Otherwise we can end up
3323   # making bogus files that we don't know about and never remove.  For
3324   # instance it was reported that on HP-UX the gcc test will end up
3325   # making a dummy file named `D' -- because `-MD' means `put the output
3326   # in D'.
3327   mkdir conftest.dir
3328   # Copy depcomp to subdir because otherwise we won't find it if we're
3329   # using a relative directory.
3330   cp "$am_depcomp" conftest.dir
3331   cd conftest.dir
3332   # We will build objects and dependencies in a subdirectory because
3333   # it helps to detect inapplicable dependency modes.  For instance
3334   # both Tru64's cc and ICC support -MD to output dependencies as a
3335   # side effect of compilation, but ICC will put the dependencies in
3336   # the current directory while Tru64 will put them in the object
3337   # directory.
3338   mkdir sub
3339
3340   am_cv_CC_dependencies_compiler_type=none
3341   if test "$am_compiler_list" = ""; then
3342      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3343   fi
3344   for depmode in $am_compiler_list; do
3345     # Setup a source with many dependencies, because some compilers
3346     # like to wrap large dependency lists on column 80 (with \), and
3347     # we should not choose a depcomp mode which is confused by this.
3348     #
3349     # We need to recreate these files for each test, as the compiler may
3350     # overwrite some of them when testing with obscure command lines.
3351     # This happens at least with the AIX C compiler.
3352     : > sub/conftest.c
3353     for i in 1 2 3 4 5 6; do
3354       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3356       # Solaris 8's {/usr,}/bin/sh.
3357       touch sub/conftst$i.h
3358     done
3359     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3360
3361     case $depmode in
3362     nosideeffect)
3363       # after this tag, mechanisms are not by side-effect, so they'll
3364       # only be used when explicitly requested
3365       if test "x$enable_dependency_tracking" = xyes; then
3366         continue
3367       else
3368         break
3369       fi
3370       ;;
3371     none) break ;;
3372     esac
3373     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3374     # mode.  It turns out that the SunPro C++ compiler does not properly
3375     # handle `-M -o', and we need to detect this.
3376     if depmode=$depmode \
3377        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3378        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3379        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3380          >/dev/null 2>conftest.err &&
3381        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3382        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3383        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3384       # icc doesn't choke on unknown options, it will just issue warnings
3385       # or remarks (even with -Werror).  So we grep stderr for any message
3386       # that says an option was ignored or not supported.
3387       # When given -MP, icc 7.0 and 7.1 complain thusly:
3388       #   icc: Command line warning: ignoring option '-M'; no argument required
3389       # The diagnosis changed in icc 8.0:
3390       #   icc: Command line remark: option '-MP' not supported
3391       if (grep 'ignoring option' conftest.err ||
3392           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3393         am_cv_CC_dependencies_compiler_type=$depmode
3394         break
3395       fi
3396     fi
3397   done
3398
3399   cd ..
3400   rm -rf conftest.dir
3401 else
3402   am_cv_CC_dependencies_compiler_type=none
3403 fi
3404
3405 fi
3406 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3407 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3408 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3409
3410
3411
3412 if
3413   test "x$enable_dependency_tracking" != xno \
3414   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3415   am__fastdepCC_TRUE=
3416   am__fastdepCC_FALSE='#'
3417 else
3418   am__fastdepCC_TRUE='#'
3419   am__fastdepCC_FALSE=
3420 fi
3421
3422
3423 # Check whether --enable-shared or --disable-shared was given.
3424 if test "${enable_shared+set}" = set; then
3425   enableval="$enable_shared"
3426   p=${PACKAGE-default}
3427     case $enableval in
3428     yes) enable_shared=yes ;;
3429     no) enable_shared=no ;;
3430     *)
3431       enable_shared=no
3432       # Look at the argument we got.  We use all the common list separators.
3433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434       for pkg in $enableval; do
3435         IFS="$lt_save_ifs"
3436         if test "X$pkg" = "X$p"; then
3437           enable_shared=yes
3438         fi
3439       done
3440       IFS="$lt_save_ifs"
3441       ;;
3442     esac
3443 else
3444   enable_shared=yes
3445 fi;
3446
3447 # Check whether --enable-static or --disable-static was given.
3448 if test "${enable_static+set}" = set; then
3449   enableval="$enable_static"
3450   p=${PACKAGE-default}
3451     case $enableval in
3452     yes) enable_static=yes ;;
3453     no) enable_static=no ;;
3454     *)
3455      enable_static=no
3456       # Look at the argument we got.  We use all the common list separators.
3457       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458       for pkg in $enableval; do
3459         IFS="$lt_save_ifs"
3460         if test "X$pkg" = "X$p"; then
3461           enable_static=yes
3462         fi
3463       done
3464       IFS="$lt_save_ifs"
3465       ;;
3466     esac
3467 else
3468   enable_static=yes
3469 fi;
3470
3471 # Check whether --enable-fast-install or --disable-fast-install was given.
3472 if test "${enable_fast_install+set}" = set; then
3473   enableval="$enable_fast_install"
3474   p=${PACKAGE-default}
3475     case $enableval in
3476     yes) enable_fast_install=yes ;;
3477     no) enable_fast_install=no ;;
3478     *)
3479       enable_fast_install=no
3480       # Look at the argument we got.  We use all the common list separators.
3481       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482       for pkg in $enableval; do
3483         IFS="$lt_save_ifs"
3484         if test "X$pkg" = "X$p"; then
3485           enable_fast_install=yes
3486         fi
3487       done
3488       IFS="$lt_save_ifs"
3489       ;;
3490     esac
3491 else
3492   enable_fast_install=yes
3493 fi;
3494
3495 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3497 if test "${lt_cv_path_SED+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   # Loop through the user's path and test for sed and gsed.
3501 # Then use that list of sed's as ones to test for truncation.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505   IFS=$as_save_IFS
3506   test -z "$as_dir" && as_dir=.
3507   for lt_ac_prog in sed gsed; do
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3510         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3511       fi
3512     done
3513   done
3514 done
3515 IFS=$as_save_IFS
3516 lt_ac_max=0
3517 lt_ac_count=0
3518 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3519 # along with /bin/sed that truncates output.
3520 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3521   test ! -f $lt_ac_sed && continue
3522   cat /dev/null > conftest.in
3523   lt_ac_count=0
3524   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3525   # Check for GNU sed and select it if it is found.
3526   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3527     lt_cv_path_SED=$lt_ac_sed
3528     break
3529   fi
3530   while true; do
3531     cat conftest.in conftest.in >conftest.tmp
3532     mv conftest.tmp conftest.in
3533     cp conftest.in conftest.nl
3534     echo >>conftest.nl
3535     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3536     cmp -s conftest.out conftest.nl || break
3537     # 10000 chars as input seems more than enough
3538     test $lt_ac_count -gt 10 && break
3539     lt_ac_count=`expr $lt_ac_count + 1`
3540     if test $lt_ac_count -gt $lt_ac_max; then
3541       lt_ac_max=$lt_ac_count
3542       lt_cv_path_SED=$lt_ac_sed
3543     fi
3544   done
3545 done
3546
3547 fi
3548
3549 SED=$lt_cv_path_SED
3550
3551 echo "$as_me:$LINENO: result: $SED" >&5
3552 echo "${ECHO_T}$SED" >&6
3553
3554 echo "$as_me:$LINENO: checking for egrep" >&5
3555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3556 if test "${ac_cv_prog_egrep+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3560     then ac_cv_prog_egrep='grep -E'
3561     else ac_cv_prog_egrep='egrep'
3562     fi
3563 fi
3564 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3565 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3566  EGREP=$ac_cv_prog_egrep
3567
3568
3569
3570 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3571 if test "${with_gnu_ld+set}" = set; then
3572   withval="$with_gnu_ld"
3573   test "$withval" = no || with_gnu_ld=yes
3574 else
3575   with_gnu_ld=no
3576 fi;
3577 ac_prog=ld
3578 if test "$GCC" = yes; then
3579   # Check if gcc -print-prog-name=ld gives a path.
3580   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3581 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3582   case $host in
3583   *-*-mingw*)
3584     # gcc leaves a trailing carriage return which upsets mingw
3585     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3586   *)
3587     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3588   esac
3589   case $ac_prog in
3590     # Accept absolute paths.
3591     [\\/]* | ?:[\\/]*)
3592       re_direlt='/[^/][^/]*/\.\./'
3593       # Canonicalize the pathname of ld
3594       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3595       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3596         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3597       done
3598       test -z "$LD" && LD="$ac_prog"
3599       ;;
3600   "")
3601     # If it fails, then pretend we aren't using GCC.
3602     ac_prog=ld
3603     ;;
3604   *)
3605     # If it is relative, then search for the first ld in PATH.
3606     with_gnu_ld=unknown
3607     ;;
3608   esac
3609 elif test "$with_gnu_ld" = yes; then
3610   echo "$as_me:$LINENO: checking for GNU ld" >&5
3611 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3612 else
3613   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3614 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3615 fi
3616 if test "${lt_cv_path_LD+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -z "$LD"; then
3620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621   for ac_dir in $PATH; do
3622     IFS="$lt_save_ifs"
3623     test -z "$ac_dir" && ac_dir=.
3624     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3625       lt_cv_path_LD="$ac_dir/$ac_prog"
3626       # Check to see if the program is GNU ld.  I'd rather use --version,
3627       # but apparently some variants of GNU ld only accept -v.
3628       # Break only if it was the GNU/non-GNU ld that we prefer.
3629       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3630       *GNU* | *'with BFD'*)
3631         test "$with_gnu_ld" != no && break
3632         ;;
3633       *)
3634         test "$with_gnu_ld" != yes && break
3635         ;;
3636       esac
3637     fi
3638   done
3639   IFS="$lt_save_ifs"
3640 else
3641   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3642 fi
3643 fi
3644
3645 LD="$lt_cv_path_LD"
3646 if test -n "$LD"; then
3647   echo "$as_me:$LINENO: result: $LD" >&5
3648 echo "${ECHO_T}$LD" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3654 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3655    { (exit 1); exit 1; }; }
3656 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3657 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3658 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3662 case `$LD -v 2>&1 </dev/null` in
3663 *GNU* | *'with BFD'*)
3664   lt_cv_prog_gnu_ld=yes
3665   ;;
3666 *)
3667   lt_cv_prog_gnu_ld=no
3668   ;;
3669 esac
3670 fi
3671 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3672 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3673 with_gnu_ld=$lt_cv_prog_gnu_ld
3674
3675
3676 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3677 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3678 if test "${lt_cv_ld_reload_flag+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   lt_cv_ld_reload_flag='-r'
3682 fi
3683 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3684 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3685 reload_flag=$lt_cv_ld_reload_flag
3686 case $reload_flag in
3687 "" | " "*) ;;
3688 *) reload_flag=" $reload_flag" ;;
3689 esac
3690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3691 case $host_os in
3692   darwin*)
3693     if test "$GCC" = yes; then
3694       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3695     else
3696       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3697     fi
3698     ;;
3699 esac
3700
3701 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3702 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3703 if test "${lt_cv_path_NM+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   if test -n "$NM"; then
3707   # Let the user override the test.
3708   lt_cv_path_NM="$NM"
3709 else
3710   lt_nm_to_check="${ac_tool_prefix}nm"
3711   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3712     lt_nm_to_check="$lt_nm_to_check nm"
3713   fi
3714   for lt_tmp_nm in $lt_nm_to_check; do
3715     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3716     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3717       IFS="$lt_save_ifs"
3718       test -z "$ac_dir" && ac_dir=.
3719       tmp_nm="$ac_dir/$lt_tmp_nm"
3720       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3721         # Check to see if the nm accepts a BSD-compat flag.
3722         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3723         #   nm: unknown option "B" ignored
3724         # Tru64's nm complains that /dev/null is an invalid object file
3725         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3726         */dev/null* | *'Invalid file or object type'*)
3727           lt_cv_path_NM="$tmp_nm -B"
3728           break
3729           ;;
3730         *)
3731           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3732           */dev/null*)
3733             lt_cv_path_NM="$tmp_nm -p"
3734             break
3735             ;;
3736           *)
3737             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3738             continue # so that we can try to find one that supports BSD flags
3739             ;;
3740           esac
3741           ;;
3742         esac
3743       fi
3744     done
3745     IFS="$lt_save_ifs"
3746   done
3747   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3748 fi
3749 fi
3750 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3751 echo "${ECHO_T}$lt_cv_path_NM" >&6
3752 NM="$lt_cv_path_NM"
3753
3754 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3756 LN_S=$as_ln_s
3757 if test "$LN_S" = "ln -s"; then
3758   echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6
3760 else
3761   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3762 echo "${ECHO_T}no, using $LN_S" >&6
3763 fi
3764
3765 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3766 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3767 if test "${lt_cv_deplibs_check_method+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   lt_cv_file_magic_cmd='$MAGIC_CMD'
3771 lt_cv_file_magic_test_file=
3772 lt_cv_deplibs_check_method='unknown'
3773 # Need to set the preceding variable on all platforms that support
3774 # interlibrary dependencies.
3775 # 'none' -- dependencies not supported.
3776 # `unknown' -- same as none, but documents that we really don't know.
3777 # 'pass_all' -- all dependencies passed with no checks.
3778 # 'test_compile' -- check by making test program.
3779 # 'file_magic [[regex]]' -- check by looking for files in library path
3780 # which responds to the $file_magic_cmd with a given extended regex.
3781 # If you have `file' or equivalent on your system and you're not sure
3782 # whether `pass_all' will *always* work, you probably want this one.
3783
3784 case $host_os in
3785 aix4* | aix5*)
3786   lt_cv_deplibs_check_method=pass_all
3787   ;;
3788
3789 beos*)
3790   lt_cv_deplibs_check_method=pass_all
3791   ;;
3792
3793 bsdi[45]*)
3794   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3795   lt_cv_file_magic_cmd='/usr/bin/file -L'
3796   lt_cv_file_magic_test_file=/shlib/libc.so
3797   ;;
3798
3799 cygwin*)
3800   # func_win32_libid is a shell function defined in ltmain.sh
3801   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3802   lt_cv_file_magic_cmd='func_win32_libid'
3803   ;;
3804
3805 mingw* | pw32*)
3806   # Base MSYS/MinGW do not provide the 'file' command needed by
3807   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3808   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3809   lt_cv_file_magic_cmd='$OBJDUMP -f'
3810   ;;
3811
3812 darwin* | rhapsody*)
3813   lt_cv_deplibs_check_method=pass_all
3814   ;;
3815
3816 freebsd* | kfreebsd*-gnu | dragonfly*)
3817   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3818     case $host_cpu in
3819     i*86 )
3820       # Not sure whether the presence of OpenBSD here was a mistake.
3821       # Let's accept both of them until this is cleared up.
3822       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3823       lt_cv_file_magic_cmd=/usr/bin/file
3824       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3825       ;;
3826     esac
3827   else
3828     lt_cv_deplibs_check_method=pass_all
3829   fi
3830   ;;
3831
3832 gnu*)
3833   lt_cv_deplibs_check_method=pass_all
3834   ;;
3835
3836 hpux10.20* | hpux11*)
3837   lt_cv_file_magic_cmd=/usr/bin/file
3838   case $host_cpu in
3839   ia64*)
3840     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3841     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842     ;;
3843   hppa*64*)
3844     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]'
3845     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3846     ;;
3847   *)
3848     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3849     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3850     ;;
3851   esac
3852   ;;
3853
3854 interix3*)
3855   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3856   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3857   ;;
3858
3859 irix5* | irix6* | nonstopux*)
3860   case $LD in
3861   *-32|*"-32 ") libmagic=32-bit;;
3862   *-n32|*"-n32 ") libmagic=N32;;
3863   *-64|*"-64 ") libmagic=64-bit;;
3864   *) libmagic=never-match;;
3865   esac
3866   lt_cv_deplibs_check_method=pass_all
3867   ;;
3868
3869 # This must be Linux ELF.
3870 linux*)
3871   lt_cv_deplibs_check_method=pass_all
3872   ;;
3873
3874 netbsd*)
3875   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3876     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3877   else
3878     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3879   fi
3880   ;;
3881
3882 newos6*)
3883   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3884   lt_cv_file_magic_cmd=/usr/bin/file
3885   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3886   ;;
3887
3888 nto-qnx*)
3889   lt_cv_deplibs_check_method=unknown
3890   ;;
3891
3892 openbsd*)
3893   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3894     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3895   else
3896     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3897   fi
3898   ;;
3899
3900 osf3* | osf4* | osf5*)
3901   lt_cv_deplibs_check_method=pass_all
3902   ;;
3903
3904 solaris*)
3905   lt_cv_deplibs_check_method=pass_all
3906   ;;
3907
3908 sysv4 | sysv4.3*)
3909   case $host_vendor in
3910   motorola)
3911     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]'
3912     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913     ;;
3914   ncr)
3915     lt_cv_deplibs_check_method=pass_all
3916     ;;
3917   sequent)
3918     lt_cv_file_magic_cmd='/bin/file'
3919     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920     ;;
3921   sni)
3922     lt_cv_file_magic_cmd='/bin/file'
3923     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924     lt_cv_file_magic_test_file=/lib/libc.so
3925     ;;
3926   siemens)
3927     lt_cv_deplibs_check_method=pass_all
3928     ;;
3929   pc)
3930     lt_cv_deplibs_check_method=pass_all
3931     ;;
3932   esac
3933   ;;
3934
3935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936   lt_cv_deplibs_check_method=pass_all
3937   ;;
3938 esac
3939
3940 fi
3941 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3943 file_magic_cmd=$lt_cv_file_magic_cmd
3944 deplibs_check_method=$lt_cv_deplibs_check_method
3945 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3946
3947
3948
3949
3950 # If no C compiler was specified, use CC.
3951 LTCC=${LTCC-"$CC"}
3952
3953 # If no C compiler flags were specified, use CFLAGS.
3954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3955
3956 # Allow CC to be a program name with arguments.
3957 compiler=$CC
3958
3959
3960 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3961 if test "${enable_libtool_lock+set}" = set; then
3962   enableval="$enable_libtool_lock"
3963
3964 fi;
3965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3966
3967 # Some flags need to be propagated to the compiler or linker for good
3968 # libtool support.
3969 case $host in
3970 ia64-*-hpux*)
3971   # Find out which ABI we are using.
3972   echo 'int i;' > conftest.$ac_ext
3973   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974   (eval $ac_compile) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; then
3978     case `/usr/bin/file conftest.$ac_objext` in
3979     *ELF-32*)
3980       HPUX_IA64_MODE="32"
3981       ;;
3982     *ELF-64*)
3983       HPUX_IA64_MODE="64"
3984       ;;
3985     esac
3986   fi
3987   rm -rf conftest*
3988   ;;
3989 *-*-irix6*)
3990   # Find out which ABI we are using.
3991   echo '#line 3991 "configure"' > conftest.$ac_ext
3992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993   (eval $ac_compile) 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; then
3997    if test "$lt_cv_prog_gnu_ld" = yes; then
3998     case `/usr/bin/file conftest.$ac_objext` in
3999     *32-bit*)
4000       LD="${LD-ld} -melf32bsmip"
4001       ;;
4002     *N32*)
4003       LD="${LD-ld} -melf32bmipn32"
4004       ;;
4005     *64-bit*)
4006       LD="${LD-ld} -melf64bmip"
4007       ;;
4008     esac
4009    else
4010     case `/usr/bin/file conftest.$ac_objext` in
4011     *32-bit*)
4012       LD="${LD-ld} -32"
4013       ;;
4014     *N32*)
4015       LD="${LD-ld} -n32"
4016       ;;
4017     *64-bit*)
4018       LD="${LD-ld} -64"
4019       ;;
4020     esac
4021    fi
4022   fi
4023   rm -rf conftest*
4024   ;;
4025
4026 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4027   # Find out which ABI we are using.
4028   echo 'int i;' > conftest.$ac_ext
4029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030   (eval $ac_compile) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; then
4034     case `/usr/bin/file conftest.o` in
4035     *32-bit*)
4036       case $host in
4037         x86_64-*linux*)
4038           LD="${LD-ld} -m elf_i386"
4039           ;;
4040         ppc64-*linux*|powerpc64-*linux*)
4041           LD="${LD-ld} -m elf32ppclinux"
4042           ;;
4043         s390x-*linux*)
4044           LD="${LD-ld} -m elf_s390"
4045           ;;
4046         sparc64-*linux*)
4047           LD="${LD-ld} -m elf32_sparc"
4048           ;;
4049       esac
4050       ;;
4051     *64-bit*)
4052       case $host in
4053         x86_64-*linux*)
4054           LD="${LD-ld} -m elf_x86_64"
4055           ;;
4056         ppc*-*linux*|powerpc*-*linux*)
4057           LD="${LD-ld} -m elf64ppc"
4058           ;;
4059         s390*-*linux*)
4060           LD="${LD-ld} -m elf64_s390"
4061           ;;
4062         sparc*-*linux*)
4063           LD="${LD-ld} -m elf64_sparc"
4064           ;;
4065       esac
4066       ;;
4067     esac
4068   fi
4069   rm -rf conftest*
4070   ;;
4071
4072 *-*-sco3.2v5*)
4073   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4074   SAVE_CFLAGS="$CFLAGS"
4075   CFLAGS="$CFLAGS -belf"
4076   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4078 if test "${lt_cv_cc_needs_belf+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087      cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104   (eval $ac_link) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_c_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest$ac_exeext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   lt_cv_cc_needs_belf=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 lt_cv_cc_needs_belf=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext \
4132       conftest$ac_exeext conftest.$ac_ext
4133      ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139 fi
4140 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4141 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4142   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4143     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4144     CFLAGS="$SAVE_CFLAGS"
4145   fi
4146   ;;
4147 sparc*-*solaris*)
4148   # Find out which ABI we are using.
4149   echo 'int i;' > conftest.$ac_ext
4150   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151   (eval $ac_compile) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; then
4155     case `/usr/bin/file conftest.o` in
4156     *64-bit*)
4157       case $lt_cv_prog_gnu_ld in
4158       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4159       *)    LD="${LD-ld} -64" ;;
4160       esac
4161       ;;
4162     esac
4163   fi
4164   rm -rf conftest*
4165   ;;
4166
4167
4168 esac
4169
4170 need_locks="$enable_libtool_lock"
4171
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4180 # On Suns, sometimes $CPP names a directory.
4181 if test -n "$CPP" && test -d "$CPP"; then
4182   CPP=
4183 fi
4184 if test -z "$CPP"; then
4185   if test "${ac_cv_prog_CPP+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188       # Double quotes because CPP needs to be expanded
4189     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190     do
4191       ac_preproc_ok=false
4192 for ac_c_preproc_warn_flag in '' yes
4193 do
4194   # Use a header file that comes with gcc, so configuring glibc
4195   # with a fresh cross-compiler works.
4196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197   # <limits.h> exists even on freestanding compilers.
4198   # On the NeXT, cc -E runs the code through the compiler's parser,
4199   # not just through cpp. "Syntax error" is here to catch this case.
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 #ifdef __STDC__
4207 # include <limits.h>
4208 #else
4209 # include <assert.h>
4210 #endif
4211                      Syntax error
4212 _ACEOF
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } >/dev/null; then
4221   if test -s conftest.err; then
4222     ac_cpp_err=$ac_c_preproc_warn_flag
4223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224   else
4225     ac_cpp_err=
4226   fi
4227 else
4228   ac_cpp_err=yes
4229 fi
4230 if test -z "$ac_cpp_err"; then
4231   :
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236   # Broken: fails on valid input.
4237 continue
4238 fi
4239 rm -f conftest.err conftest.$ac_ext
4240
4241   # OK, works on sane cases.  Now check whether non-existent headers
4242   # can be detected and how.
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 #include <ac_nonexistent.h>
4250 _ACEOF
4251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
4256   cat conftest.err >&5
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } >/dev/null; then
4259   if test -s conftest.err; then
4260     ac_cpp_err=$ac_c_preproc_warn_flag
4261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4262   else
4263     ac_cpp_err=
4264   fi
4265 else
4266   ac_cpp_err=yes
4267 fi
4268 if test -z "$ac_cpp_err"; then
4269   # Broken: success on invalid input.
4270 continue
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275   # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279 rm -f conftest.err conftest.$ac_ext
4280
4281 done
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then
4285   break
4286 fi
4287
4288     done
4289     ac_cv_prog_CPP=$CPP
4290
4291 fi
4292   CPP=$ac_cv_prog_CPP
4293 else
4294   ac_cv_prog_CPP=$CPP
4295 fi
4296 echo "$as_me:$LINENO: result: $CPP" >&5
4297 echo "${ECHO_T}$CPP" >&6
4298 ac_preproc_ok=false
4299 for ac_c_preproc_warn_flag in '' yes
4300 do
4301   # Use a header file that comes with gcc, so configuring glibc
4302   # with a fresh cross-compiler works.
4303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304   # <limits.h> exists even on freestanding compilers.
4305   # On the NeXT, cc -E runs the code through the compiler's parser,
4306   # not just through cpp. "Syntax error" is here to catch this case.
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 #ifdef __STDC__
4314 # include <limits.h>
4315 #else
4316 # include <assert.h>
4317 #endif
4318                      Syntax error
4319 _ACEOF
4320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322   ac_status=$?
4323   grep -v '^ *+' conftest.er1 >conftest.err
4324   rm -f conftest.er1
4325   cat conftest.err >&5
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } >/dev/null; then
4328   if test -s conftest.err; then
4329     ac_cpp_err=$ac_c_preproc_warn_flag
4330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4331   else
4332     ac_cpp_err=
4333   fi
4334 else
4335   ac_cpp_err=yes
4336 fi
4337 if test -z "$ac_cpp_err"; then
4338   :
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343   # Broken: fails on valid input.
4344 continue
4345 fi
4346 rm -f conftest.err conftest.$ac_ext
4347
4348   # OK, works on sane cases.  Now check whether non-existent headers
4349   # can be detected and how.
4350   cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 #include <ac_nonexistent.h>
4357 _ACEOF
4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } >/dev/null; then
4366   if test -s conftest.err; then
4367     ac_cpp_err=$ac_c_preproc_warn_flag
4368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4369   else
4370     ac_cpp_err=
4371   fi
4372 else
4373   ac_cpp_err=yes
4374 fi
4375 if test -z "$ac_cpp_err"; then
4376   # Broken: success on invalid input.
4377 continue
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382   # Passes both tests.
4383 ac_preproc_ok=:
4384 break
4385 fi
4386 rm -f conftest.err conftest.$ac_ext
4387
4388 done
4389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390 rm -f conftest.err conftest.$ac_ext
4391 if $ac_preproc_ok; then
4392   :
4393 else
4394   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&5
4396 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4397 See \`config.log' for more details." >&2;}
4398    { (exit 1); exit 1; }; }
4399 fi
4400
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407
4408 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4409 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4410 if test "${ac_cv_header_stdc+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419 #include <stdlib.h>
4420 #include <stdarg.h>
4421 #include <string.h>
4422 #include <float.h>
4423
4424 int
4425 main ()
4426 {
4427
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.$ac_objext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434   (eval $ac_compile) 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
4438   cat conftest.err >&5
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -z "$ac_c_werror_flag"
4442                          || test ! -s conftest.err'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; } &&
4448          { ac_try='test -s conftest.$ac_objext'
4449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450   (eval $ac_try) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; }; then
4454   ac_cv_header_stdc=yes
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 ac_cv_header_stdc=no
4460 fi
4461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
4463 if test $ac_cv_header_stdc = yes; then
4464   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465   cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #include <string.h>
4472
4473 _ACEOF
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475   $EGREP "memchr" >/dev/null 2>&1; then
4476   :
4477 else
4478   ac_cv_header_stdc=no
4479 fi
4480 rm -f conftest*
4481
4482 fi
4483
4484 if test $ac_cv_header_stdc = yes; then
4485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486   cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492 #include <stdlib.h>
4493
4494 _ACEOF
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496   $EGREP "free" >/dev/null 2>&1; then
4497   :
4498 else
4499   ac_cv_header_stdc=no
4500 fi
4501 rm -f conftest*
4502
4503 fi
4504
4505 if test $ac_cv_header_stdc = yes; then
4506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507   if test "$cross_compiling" = yes; then
4508   :
4509 else
4510   cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 #include <ctype.h>
4517 #if ((' ' & 0x0FF) == 0x020)
4518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520 #else
4521 # define ISLOWER(c) \
4522                    (('a' <= (c) && (c) <= 'i') \
4523                      || ('j' <= (c) && (c) <= 'r') \
4524                      || ('s' <= (c) && (c) <= 'z'))
4525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4526 #endif
4527
4528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4529 int
4530 main ()
4531 {
4532   int i;
4533   for (i = 0; i < 256; i++)
4534     if (XOR (islower (i), ISLOWER (i))
4535         || toupper (i) != TOUPPER (i))
4536       exit(2);
4537   exit (0);
4538 }
4539 _ACEOF
4540 rm -f conftest$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542   (eval $ac_link) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; }; then
4551   :
4552 else
4553   echo "$as_me: program exited with status $ac_status" >&5
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 ( exit $ac_status )
4558 ac_cv_header_stdc=no
4559 fi
4560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 fi
4563 fi
4564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4566 if test $ac_cv_header_stdc = yes; then
4567
4568 cat >>confdefs.h <<\_ACEOF
4569 #define STDC_HEADERS 1
4570 _ACEOF
4571
4572 fi
4573
4574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4585                   inttypes.h stdint.h unistd.h
4586 do
4587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593   cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599 $ac_includes_default
4600
4601 #include <$ac_header>
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605   (eval $ac_compile) 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } &&
4612          { ac_try='test -z "$ac_c_werror_flag"
4613                          || test ! -s conftest.err'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; } &&
4619          { ac_try='test -s conftest.$ac_objext'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   eval "$as_ac_Header=yes"
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 eval "$as_ac_Header=no"
4631 fi
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4637   cat >>confdefs.h <<_ACEOF
4638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4639 _ACEOF
4640
4641 fi
4642
4643 done
4644
4645
4646
4647 for ac_header in dlfcn.h
4648 do
4649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4651   echo "$as_me:$LINENO: checking for $ac_header" >&5
4652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 fi
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4658 else
4659   # Is the header compilable?
4660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668 $ac_includes_default
4669 #include <$ac_header>
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673   (eval $ac_compile) 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -z "$ac_c_werror_flag"
4681                          || test ! -s conftest.err'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; } &&
4687          { ac_try='test -s conftest.$ac_objext'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; }; then
4693   ac_header_compiler=yes
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_header_compiler=no
4699 fi
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702 echo "${ECHO_T}$ac_header_compiler" >&6
4703
4704 # Is the header present?
4705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713 #include <$ac_header>
4714 _ACEOF
4715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717   ac_status=$?
4718   grep -v '^ *+' conftest.er1 >conftest.err
4719   rm -f conftest.er1
4720   cat conftest.err >&5
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } >/dev/null; then
4723   if test -s conftest.err; then
4724     ac_cpp_err=$ac_c_preproc_warn_flag
4725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4726   else
4727     ac_cpp_err=
4728   fi
4729 else
4730   ac_cpp_err=yes
4731 fi
4732 if test -z "$ac_cpp_err"; then
4733   ac_header_preproc=yes
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738   ac_header_preproc=no
4739 fi
4740 rm -f conftest.err conftest.$ac_ext
4741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742 echo "${ECHO_T}$ac_header_preproc" >&6
4743
4744 # So?  What about this header?
4745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746   yes:no: )
4747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4751     ac_header_preproc=yes
4752     ;;
4753   no:yes:* )
4754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4766     (
4767       cat <<\_ASBOX
4768 ## ------------------------------------------ ##
4769 ## Report this to the AC_PACKAGE_NAME lists.  ##
4770 ## ------------------------------------------ ##
4771 _ASBOX
4772     ) |
4773       sed "s/^/$as_me: WARNING:     /" >&2
4774     ;;
4775 esac
4776 echo "$as_me:$LINENO: checking for $ac_header" >&5
4777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4779   echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781   eval "$as_ac_Header=\$ac_header_preproc"
4782 fi
4783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785
4786 fi
4787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788   cat >>confdefs.h <<_ACEOF
4789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 _ACEOF
4791
4792 fi
4793
4794 done
4795
4796 ac_ext=cc
4797 ac_cpp='$CXXCPP $CPPFLAGS'
4798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801 if test -n "$ac_tool_prefix"; then
4802   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4803   do
4804     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806 echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808 if test "${ac_cv_prog_CXX+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   if test -n "$CXX"; then
4812   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827
4828 fi
4829 fi
4830 CXX=$ac_cv_prog_CXX
4831 if test -n "$CXX"; then
4832   echo "$as_me:$LINENO: result: $CXX" >&5
4833 echo "${ECHO_T}$CXX" >&6
4834 else
4835   echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837 fi
4838
4839     test -n "$CXX" && break
4840   done
4841 fi
4842 if test -z "$CXX"; then
4843   ac_ct_CXX=$CXX
4844   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4845 do
4846   # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test -n "$ac_ct_CXX"; then
4854   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_ac_ct_CXX="$ac_prog"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869
4870 fi
4871 fi
4872 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873 if test -n "$ac_ct_CXX"; then
4874   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4875 echo "${ECHO_T}$ac_ct_CXX" >&6
4876 else
4877   echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4879 fi
4880
4881   test -n "$ac_ct_CXX" && break
4882 done
4883 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4884
4885   CXX=$ac_ct_CXX
4886 fi
4887
4888
4889 # Provide some information about the compiler.
4890 echo "$as_me:$LINENO:" \
4891      "checking for C++ compiler version" >&5
4892 ac_compiler=`set X $ac_compile; echo $2`
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4894   (eval $ac_compiler --version </dev/null >&5) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }
4898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4899   (eval $ac_compiler -v </dev/null >&5) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }
4903 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4904   (eval $ac_compiler -V </dev/null >&5) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); }
4908
4909 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4910 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4911 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920
4921 int
4922 main ()
4923 {
4924 #ifndef __GNUC__
4925        choke me
4926 #endif
4927
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_cxx_werror_flag"
4942                          || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   ac_compiler_gnu=yes
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 ac_compiler_gnu=no
4960 fi
4961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4963
4964 fi
4965 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4966 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4967 GXX=`test $ac_compiler_gnu = yes && echo yes`
4968 ac_test_CXXFLAGS=${CXXFLAGS+set}
4969 ac_save_CXXFLAGS=$CXXFLAGS
4970 CXXFLAGS="-g"
4971 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4972 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4973 if test "${ac_cv_prog_cxx_g+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982
4983 int
4984 main ()
4985 {
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>conftest.er1
4994   ac_status=$?
4995   grep -v '^ *+' conftest.er1 >conftest.err
4996   rm -f conftest.er1
4997   cat conftest.err >&5
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); } &&
5000          { ac_try='test -z "$ac_cxx_werror_flag"
5001                          || test ! -s conftest.err'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; } &&
5007          { ac_try='test -s conftest.$ac_objext'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; }; then
5013   ac_cv_prog_cxx_g=yes
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 ac_cv_prog_cxx_g=no
5019 fi
5020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5023 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5024 if test "$ac_test_CXXFLAGS" = set; then
5025   CXXFLAGS=$ac_save_CXXFLAGS
5026 elif test $ac_cv_prog_cxx_g = yes; then
5027   if test "$GXX" = yes; then
5028     CXXFLAGS="-g -O2"
5029   else
5030     CXXFLAGS="-g"
5031   fi
5032 else
5033   if test "$GXX" = yes; then
5034     CXXFLAGS="-O2"
5035   else
5036     CXXFLAGS=
5037   fi
5038 fi
5039 for ac_declaration in \
5040    '' \
5041    'extern "C" void std::exit (int) throw (); using std::exit;' \
5042    'extern "C" void std::exit (int); using std::exit;' \
5043    'extern "C" void exit (int) throw ();' \
5044    'extern "C" void exit (int);' \
5045    'void exit (int);'
5046 do
5047   cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h.  */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h.  */
5053 $ac_declaration
5054 #include <stdlib.h>
5055 int
5056 main ()
5057 {
5058 exit (42);
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065   (eval $ac_compile) 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } &&
5072          { ac_try='test -z "$ac_cxx_werror_flag"
5073                          || test ! -s conftest.err'
5074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075   (eval $ac_try) 2>&5
5076   ac_status=$?
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); }; } &&
5079          { ac_try='test -s conftest.$ac_objext'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; }; then
5085   :
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 continue
5091 fi
5092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 $ac_declaration
5100 int
5101 main ()
5102 {
5103 exit (42);
5104   ;
5105   return 0;
5106 }
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110   (eval $ac_compile) 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -z "$ac_cxx_werror_flag"
5118                          || test ! -s conftest.err'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; } &&
5124          { ac_try='test -s conftest.$ac_objext'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   break
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 fi
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137 done
5138 rm -f conftest*
5139 if test -n "$ac_declaration"; then
5140   echo '#ifdef __cplusplus' >>confdefs.h
5141   echo $ac_declaration      >>confdefs.h
5142   echo '#endif'             >>confdefs.h
5143 fi
5144
5145 ac_ext=cc
5146 ac_cpp='$CXXCPP $CPPFLAGS'
5147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150
5151 depcc="$CXX"  am_compiler_list=
5152
5153 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5154 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5155 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5159   # We make a subdir and do the tests there.  Otherwise we can end up
5160   # making bogus files that we don't know about and never remove.  For
5161   # instance it was reported that on HP-UX the gcc test will end up
5162   # making a dummy file named `D' -- because `-MD' means `put the output
5163   # in D'.
5164   mkdir conftest.dir
5165   # Copy depcomp to subdir because otherwise we won't find it if we're
5166   # using a relative directory.
5167   cp "$am_depcomp" conftest.dir
5168   cd conftest.dir
5169   # We will build objects and dependencies in a subdirectory because
5170   # it helps to detect inapplicable dependency modes.  For instance
5171   # both Tru64's cc and ICC support -MD to output dependencies as a
5172   # side effect of compilation, but ICC will put the dependencies in
5173   # the current directory while Tru64 will put them in the object
5174   # directory.
5175   mkdir sub
5176
5177   am_cv_CXX_dependencies_compiler_type=none
5178   if test "$am_compiler_list" = ""; then
5179      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180   fi
5181   for depmode in $am_compiler_list; do
5182     # Setup a source with many dependencies, because some compilers
5183     # like to wrap large dependency lists on column 80 (with \), and
5184     # we should not choose a depcomp mode which is confused by this.
5185     #
5186     # We need to recreate these files for each test, as the compiler may
5187     # overwrite some of them when testing with obscure command lines.
5188     # This happens at least with the AIX C compiler.
5189     : > sub/conftest.c
5190     for i in 1 2 3 4 5 6; do
5191       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5193       # Solaris 8's {/usr,}/bin/sh.
5194       touch sub/conftst$i.h
5195     done
5196     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5197
5198     case $depmode in
5199     nosideeffect)
5200       # after this tag, mechanisms are not by side-effect, so they'll
5201       # only be used when explicitly requested
5202       if test "x$enable_dependency_tracking" = xyes; then
5203         continue
5204       else
5205         break
5206       fi
5207       ;;
5208     none) break ;;
5209     esac
5210     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211     # mode.  It turns out that the SunPro C++ compiler does not properly
5212     # handle `-M -o', and we need to detect this.
5213     if depmode=$depmode \
5214        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5215        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5217          >/dev/null 2>conftest.err &&
5218        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5219        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5220        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5221       # icc doesn't choke on unknown options, it will just issue warnings
5222       # or remarks (even with -Werror).  So we grep stderr for any message
5223       # that says an option was ignored or not supported.
5224       # When given -MP, icc 7.0 and 7.1 complain thusly:
5225       #   icc: Command line warning: ignoring option '-M'; no argument required
5226       # The diagnosis changed in icc 8.0:
5227       #   icc: Command line remark: option '-MP' not supported
5228       if (grep 'ignoring option' conftest.err ||
5229           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5230         am_cv_CXX_dependencies_compiler_type=$depmode
5231         break
5232       fi
5233     fi
5234   done
5235
5236   cd ..
5237   rm -rf conftest.dir
5238 else
5239   am_cv_CXX_dependencies_compiler_type=none
5240 fi
5241
5242 fi
5243 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5244 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5245 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5246
5247
5248
5249 if
5250   test "x$enable_dependency_tracking" != xno \
5251   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5252   am__fastdepCXX_TRUE=
5253   am__fastdepCXX_FALSE='#'
5254 else
5255   am__fastdepCXX_TRUE='#'
5256   am__fastdepCXX_FALSE=
5257 fi
5258
5259
5260
5261
5262 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5263     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5264     (test "X$CXX" != "Xg++"))) ; then
5265   ac_ext=cc
5266 ac_cpp='$CXXCPP $CPPFLAGS'
5267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5271 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5272 if test -z "$CXXCPP"; then
5273   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276       # Double quotes because CXXCPP needs to be expanded
5277     for CXXCPP in "$CXX -E" "/lib/cpp"
5278     do
5279       ac_preproc_ok=false
5280 for ac_cxx_preproc_warn_flag in '' yes
5281 do
5282   # Use a header file that comes with gcc, so configuring glibc
5283   # with a fresh cross-compiler works.
5284   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285   # <limits.h> exists even on freestanding compilers.
5286   # On the NeXT, cc -E runs the code through the compiler's parser,
5287   # not just through cpp. "Syntax error" is here to catch this case.
5288   cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294 #ifdef __STDC__
5295 # include <limits.h>
5296 #else
5297 # include <assert.h>
5298 #endif
5299                      Syntax error
5300 _ACEOF
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } >/dev/null; then
5309   if test -s conftest.err; then
5310     ac_cpp_err=$ac_cxx_preproc_warn_flag
5311     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5312   else
5313     ac_cpp_err=
5314   fi
5315 else
5316   ac_cpp_err=yes
5317 fi
5318 if test -z "$ac_cpp_err"; then
5319   :
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324   # Broken: fails on valid input.
5325 continue
5326 fi
5327 rm -f conftest.err conftest.$ac_ext
5328
5329   # OK, works on sane cases.  Now check whether non-existent headers
5330   # can be detected and how.
5331   cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 #include <ac_nonexistent.h>
5338 _ACEOF
5339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } >/dev/null; then
5347   if test -s conftest.err; then
5348     ac_cpp_err=$ac_cxx_preproc_warn_flag
5349     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5350   else
5351     ac_cpp_err=
5352   fi
5353 else
5354   ac_cpp_err=yes
5355 fi
5356 if test -z "$ac_cpp_err"; then
5357   # Broken: success on invalid input.
5358 continue
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363   # Passes both tests.
5364 ac_preproc_ok=:
5365 break
5366 fi
5367 rm -f conftest.err conftest.$ac_ext
5368
5369 done
5370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5371 rm -f conftest.err conftest.$ac_ext
5372 if $ac_preproc_ok; then
5373   break
5374 fi
5375
5376     done
5377     ac_cv_prog_CXXCPP=$CXXCPP
5378
5379 fi
5380   CXXCPP=$ac_cv_prog_CXXCPP
5381 else
5382   ac_cv_prog_CXXCPP=$CXXCPP
5383 fi
5384 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5385 echo "${ECHO_T}$CXXCPP" >&6
5386 ac_preproc_ok=false
5387 for ac_cxx_preproc_warn_flag in '' yes
5388 do
5389   # Use a header file that comes with gcc, so configuring glibc
5390   # with a fresh cross-compiler works.
5391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392   # <limits.h> exists even on freestanding compilers.
5393   # On the NeXT, cc -E runs the code through the compiler's parser,
5394   # not just through cpp. "Syntax error" is here to catch this case.
5395   cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 #ifdef __STDC__
5402 # include <limits.h>
5403 #else
5404 # include <assert.h>
5405 #endif
5406                      Syntax error
5407 _ACEOF
5408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5410   ac_status=$?
5411   grep -v '^ *+' conftest.er1 >conftest.err
5412   rm -f conftest.er1
5413   cat conftest.err >&5
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } >/dev/null; then
5416   if test -s conftest.err; then
5417     ac_cpp_err=$ac_cxx_preproc_warn_flag
5418     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5419   else
5420     ac_cpp_err=
5421   fi
5422 else
5423   ac_cpp_err=yes
5424 fi
5425 if test -z "$ac_cpp_err"; then
5426   :
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431   # Broken: fails on valid input.
5432 continue
5433 fi
5434 rm -f conftest.err conftest.$ac_ext
5435
5436   # OK, works on sane cases.  Now check whether non-existent headers
5437   # can be detected and how.
5438   cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #include <ac_nonexistent.h>
5445 _ACEOF
5446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } >/dev/null; then
5454   if test -s conftest.err; then
5455     ac_cpp_err=$ac_cxx_preproc_warn_flag
5456     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5457   else
5458     ac_cpp_err=
5459   fi
5460 else
5461   ac_cpp_err=yes
5462 fi
5463 if test -z "$ac_cpp_err"; then
5464   # Broken: success on invalid input.
5465 continue
5466 else
5467   echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470   # Passes both tests.
5471 ac_preproc_ok=:
5472 break
5473 fi
5474 rm -f conftest.err conftest.$ac_ext
5475
5476 done
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then
5480   :
5481 else
5482   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5485 See \`config.log' for more details." >&2;}
5486    { (exit 1); exit 1; }; }
5487 fi
5488
5489 ac_ext=cc
5490 ac_cpp='$CXXCPP $CPPFLAGS'
5491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5494
5495 fi
5496
5497
5498 ac_ext=f
5499 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5500 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5502 if test -n "$ac_tool_prefix"; then
5503   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5504   do
5505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_prog_F77+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   if test -n "$F77"; then
5513   ac_cv_prog_F77="$F77" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520   for ac_exec_ext in '' $ac_executable_extensions; do
5521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527 done
5528
5529 fi
5530 fi
5531 F77=$ac_cv_prog_F77
5532 if test -n "$F77"; then
5533   echo "$as_me:$LINENO: result: $F77" >&5
5534 echo "${ECHO_T}$F77" >&6
5535 else
5536   echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5538 fi
5539
5540     test -n "$F77" && break
5541   done
5542 fi
5543 if test -z "$F77"; then
5544   ac_ct_F77=$F77
5545   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5546 do
5547   # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   if test -n "$ac_ct_F77"; then
5555   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_prog_ac_ct_F77="$ac_prog"
5565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570
5571 fi
5572 fi
5573 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5574 if test -n "$ac_ct_F77"; then
5575   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5576 echo "${ECHO_T}$ac_ct_F77" >&6
5577 else
5578   echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5580 fi
5581
5582   test -n "$ac_ct_F77" && break
5583 done
5584
5585   F77=$ac_ct_F77
5586 fi
5587
5588
5589 # Provide some information about the compiler.
5590 echo "$as_me:5590:" \
5591      "checking for Fortran 77 compiler version" >&5
5592 ac_compiler=`set X $ac_compile; echo $2`
5593 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5594   (eval $ac_compiler --version </dev/null >&5) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }
5598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5599   (eval $ac_compiler -v </dev/null >&5) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }
5603 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5604   (eval $ac_compiler -V </dev/null >&5) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }
5608 rm -f a.out
5609
5610 # If we don't use `.F' as extension, the preprocessor is not run on the
5611 # input file.  (Note that this only needs to work for GNU compilers.)
5612 ac_save_ext=$ac_ext
5613 ac_ext=F
5614 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5615 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5616 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   cat >conftest.$ac_ext <<_ACEOF
5620       program main
5621 #ifndef __GNUC__
5622        choke me
5623 #endif
5624
5625       end
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629   (eval $ac_compile) 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } &&
5636          { ac_try='test -z "$ac_f77_werror_flag"
5637                          || test ! -s conftest.err'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; } &&
5643          { ac_try='test -s conftest.$ac_objext'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; }; then
5649   ac_compiler_gnu=yes
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 ac_compiler_gnu=no
5655 fi
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5658
5659 fi
5660 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5661 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5662 ac_ext=$ac_save_ext
5663 ac_test_FFLAGS=${FFLAGS+set}
5664 ac_save_FFLAGS=$FFLAGS
5665 FFLAGS=
5666 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5667 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5668 if test "${ac_cv_prog_f77_g+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   FFLAGS=-g
5672 cat >conftest.$ac_ext <<_ACEOF
5673       program main
5674
5675       end
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679   (eval $ac_compile) 2>conftest.er1
5680   ac_status=$?
5681   grep -v '^ *+' conftest.er1 >conftest.err
5682   rm -f conftest.er1
5683   cat conftest.err >&5
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -z "$ac_f77_werror_flag"
5687                          || test ! -s conftest.err'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; } &&
5693          { ac_try='test -s conftest.$ac_objext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_prog_f77_g=yes
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 ac_cv_prog_f77_g=no
5705 fi
5706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707
5708 fi
5709 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5710 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5711 if test "$ac_test_FFLAGS" = set; then
5712   FFLAGS=$ac_save_FFLAGS
5713 elif test $ac_cv_prog_f77_g = yes; then
5714   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5715     FFLAGS="-g -O2"
5716   else
5717     FFLAGS="-g"
5718   fi
5719 else
5720   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5721     FFLAGS="-O2"
5722   else
5723     FFLAGS=
5724   fi
5725 fi
5726
5727 G77=`test $ac_compiler_gnu = yes && echo yes`
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734
5735
5736 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5737
5738 # find the maximum length of command line arguments
5739 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5740 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5741 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744     i=0
5745   teststring="ABCD"
5746
5747   case $build_os in
5748   msdosdjgpp*)
5749     # On DJGPP, this test can blow up pretty badly due to problems in libc
5750     # (any single argument exceeding 2000 bytes causes a buffer overrun
5751     # during glob expansion).  Even if it were fixed, the result of this
5752     # check would be larger than it should be.
5753     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5754     ;;
5755
5756   gnu*)
5757     # Under GNU Hurd, this test is not required because there is
5758     # no limit to the length of command line arguments.
5759     # Libtool will interpret -1 as no limit whatsoever
5760     lt_cv_sys_max_cmd_len=-1;
5761     ;;
5762
5763   cygwin* | mingw*)
5764     # On Win9x/ME, this test blows up -- it succeeds, but takes
5765     # about 5 minutes as the teststring grows exponentially.
5766     # Worse, since 9x/ME are not pre-emptively multitasking,
5767     # you end up with a "frozen" computer, even though with patience
5768     # the test eventually succeeds (with a max line length of 256k).
5769     # Instead, let's just punt: use the minimum linelength reported by
5770     # all of the supported platforms: 8192 (on NT/2K/XP).
5771     lt_cv_sys_max_cmd_len=8192;
5772     ;;
5773
5774   amigaos*)
5775     # On AmigaOS with pdksh, this test takes hours, literally.
5776     # So we just punt and use a minimum line length of 8192.
5777     lt_cv_sys_max_cmd_len=8192;
5778     ;;
5779
5780   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5781     # This has been around since 386BSD, at least.  Likely further.
5782     if test -x /sbin/sysctl; then
5783       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5784     elif test -x /usr/sbin/sysctl; then
5785       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5786     else
5787       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5788     fi
5789     # And add a safety zone
5790     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5791     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5792     ;;
5793
5794   interix*)
5795     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5796     lt_cv_sys_max_cmd_len=196608
5797     ;;
5798
5799   osf*)
5800     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5801     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5802     # nice to cause kernel panics so lets avoid the loop below.
5803     # First set a reasonable default.
5804     lt_cv_sys_max_cmd_len=16384
5805     #
5806     if test -x /sbin/sysconfig; then
5807       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5808         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5809       esac
5810     fi
5811     ;;
5812   sco3.2v5*)
5813     lt_cv_sys_max_cmd_len=102400
5814     ;;
5815   sysv5* | sco5v6* | sysv4.2uw2*)
5816     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5817     if test -n "$kargmax"; then
5818       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5819     else
5820       lt_cv_sys_max_cmd_len=32768
5821     fi
5822     ;;
5823   *)
5824     # If test is not a shell built-in, we'll probably end up computing a
5825     # maximum length that is only half of the actual maximum length, but
5826     # we can't tell.
5827     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5829                = "XX$teststring") >/dev/null 2>&1 &&
5830             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5831             lt_cv_sys_max_cmd_len=$new_result &&
5832             test $i != 17 # 1/2 MB should be enough
5833     do
5834       i=`expr $i + 1`
5835       teststring=$teststring$teststring
5836     done
5837     teststring=
5838     # Add a significant safety factor because C++ compilers can tack on massive
5839     # amounts of additional arguments before passing them to the linker.
5840     # It appears as though 1/2 is a usable value.
5841     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5842     ;;
5843   esac
5844
5845 fi
5846
5847 if test -n $lt_cv_sys_max_cmd_len ; then
5848   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5849 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5850 else
5851   echo "$as_me:$LINENO: result: none" >&5
5852 echo "${ECHO_T}none" >&6
5853 fi
5854
5855
5856
5857
5858 # Check for command to grab the raw symbol name followed by C symbol from nm.
5859 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5860 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5861 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864
5865 # These are sane defaults that work on at least a few old systems.
5866 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5867
5868 # Character class describing NM global symbol codes.
5869 symcode='[BCDEGRST]'
5870
5871 # Regexp to match symbols that can be accessed directly from C.
5872 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5873
5874 # Transform an extracted symbol line into a proper C declaration
5875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5876
5877 # Transform an extracted symbol line into symbol name and symbol address
5878 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'"
5879
5880 # Define system-specific variables.
5881 case $host_os in
5882 aix*)
5883   symcode='[BCDT]'
5884   ;;
5885 cygwin* | mingw* | pw32*)
5886   symcode='[ABCDGISTW]'
5887   ;;
5888 hpux*) # Its linker distinguishes data from code symbols
5889   if test "$host_cpu" = ia64; then
5890     symcode='[ABCDEGRST]'
5891   fi
5892   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893   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'"
5894   ;;
5895 linux*)
5896   if test "$host_cpu" = ia64; then
5897     symcode='[ABCDGIRSTW]'
5898     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5899     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'"
5900   fi
5901   ;;
5902 irix* | nonstopux*)
5903   symcode='[BCDEGRST]'
5904   ;;
5905 osf*)
5906   symcode='[BCDEGQRST]'
5907   ;;
5908 solaris*)
5909   symcode='[BDRT]'
5910   ;;
5911 sco3.2v5*)
5912   symcode='[DT]'
5913   ;;
5914 sysv4.2uw2*)
5915   symcode='[DT]'
5916   ;;
5917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918   symcode='[ABDT]'
5919   ;;
5920 sysv4)
5921   symcode='[DFNSTU]'
5922   ;;
5923 esac
5924
5925 # Handle CRLF in mingw tool chain
5926 opt_cr=
5927 case $build_os in
5928 mingw*)
5929   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5930   ;;
5931 esac
5932
5933 # If we're using GNU nm, then use its standard symbol codes.
5934 case `$NM -V 2>&1` in
5935 *GNU* | *'with BFD'*)
5936   symcode='[ABCDGIRSTW]' ;;
5937 esac
5938
5939 # Try without a prefix undercore, then with it.
5940 for ac_symprfx in "" "_"; do
5941
5942   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5943   symxfrm="\\1 $ac_symprfx\\2 \\2"
5944
5945   # Write the raw and C identifiers.
5946   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5947
5948   # Check to see that the pipe works correctly.
5949   pipe_works=no
5950
5951   rm -f conftest*
5952   cat > conftest.$ac_ext <<EOF
5953 #ifdef __cplusplus
5954 extern "C" {
5955 #endif
5956 char nm_test_var;
5957 void nm_test_func(){}
5958 #ifdef __cplusplus
5959 }
5960 #endif
5961 int main(){nm_test_var='a';nm_test_func();return(0);}
5962 EOF
5963
5964   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965   (eval $ac_compile) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; then
5969     # Now try to grab the symbols.
5970     nlist=conftest.nm
5971     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5972   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } && test -s "$nlist"; then
5976       # Try sorting and uniquifying the output.
5977       if sort "$nlist" | uniq > "$nlist"T; then
5978         mv -f "$nlist"T "$nlist"
5979       else
5980         rm -f "$nlist"T
5981       fi
5982
5983       # Make sure that we snagged all the symbols we need.
5984       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5985         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5986           cat <<EOF > conftest.$ac_ext
5987 #ifdef __cplusplus
5988 extern "C" {
5989 #endif
5990
5991 EOF
5992           # Now generate the symbol file.
5993           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5994
5995           cat <<EOF >> conftest.$ac_ext
5996 #if defined (__STDC__) && __STDC__
5997 # define lt_ptr_t void *
5998 #else
5999 # define lt_ptr_t char *
6000 # define const
6001 #endif
6002
6003 /* The mapping between symbol names and symbols. */
6004 const struct {
6005   const char *name;
6006   lt_ptr_t address;
6007 }
6008 lt_preloaded_symbols[] =
6009 {
6010 EOF
6011           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6012           cat <<\EOF >> conftest.$ac_ext
6013   {0, (lt_ptr_t) 0}
6014 };
6015
6016 #ifdef __cplusplus
6017 }
6018 #endif
6019 EOF
6020           # Now try linking the two files.
6021           mv conftest.$ac_objext conftstm.$ac_objext
6022           lt_save_LIBS="$LIBS"
6023           lt_save_CFLAGS="$CFLAGS"
6024           LIBS="conftstm.$ac_objext"
6025           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6026           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027   (eval $ac_link) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6031             pipe_works=yes
6032           fi
6033           LIBS="$lt_save_LIBS"
6034           CFLAGS="$lt_save_CFLAGS"
6035         else
6036           echo "cannot find nm_test_func in $nlist" >&5
6037         fi
6038       else
6039         echo "cannot find nm_test_var in $nlist" >&5
6040       fi
6041     else
6042       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6043     fi
6044   else
6045     echo "$progname: failed program was:" >&5
6046     cat conftest.$ac_ext >&5
6047   fi
6048   rm -f conftest* conftst*
6049
6050   # Do not use the global_symbol_pipe unless it works.
6051   if test "$pipe_works" = yes; then
6052     break
6053   else
6054     lt_cv_sys_global_symbol_pipe=
6055   fi
6056 done
6057
6058 fi
6059
6060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6061   lt_cv_sys_global_symbol_to_cdecl=
6062 fi
6063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6064   echo "$as_me:$LINENO: result: failed" >&5
6065 echo "${ECHO_T}failed" >&6
6066 else
6067   echo "$as_me:$LINENO: result: ok" >&5
6068 echo "${ECHO_T}ok" >&6
6069 fi
6070
6071 echo "$as_me:$LINENO: checking for objdir" >&5
6072 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6073 if test "${lt_cv_objdir+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   rm -f .libs 2>/dev/null
6077 mkdir .libs 2>/dev/null
6078 if test -d .libs; then
6079   lt_cv_objdir=.libs
6080 else
6081   # MS-DOS does not allow filenames that begin with a dot.
6082   lt_cv_objdir=_libs
6083 fi
6084 rmdir .libs 2>/dev/null
6085 fi
6086 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6087 echo "${ECHO_T}$lt_cv_objdir" >&6
6088 objdir=$lt_cv_objdir
6089
6090
6091
6092
6093
6094 case $host_os in
6095 aix3*)
6096   # AIX sometimes has problems with the GCC collect2 program.  For some
6097   # reason, if we set the COLLECT_NAMES environment variable, the problems
6098   # vanish in a puff of smoke.
6099   if test "X${COLLECT_NAMES+set}" != Xset; then
6100     COLLECT_NAMES=
6101     export COLLECT_NAMES
6102   fi
6103   ;;
6104 esac
6105
6106 # Sed substitution that helps us do robust quoting.  It backslashifies
6107 # metacharacters that are still active within double-quoted strings.
6108 Xsed='sed -e 1s/^X//'
6109 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6110
6111 # Same as above, but do not quote variable references.
6112 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6113
6114 # Sed substitution to delay expansion of an escaped shell variable in a
6115 # double_quote_subst'ed string.
6116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6117
6118 # Sed substitution to avoid accidental globbing in evaled expressions
6119 no_glob_subst='s/\*/\\\*/g'
6120
6121 # Constants:
6122 rm="rm -f"
6123
6124 # Global variables:
6125 default_ofile=libtool
6126 can_build_shared=yes
6127
6128 # All known linkers require a `.a' archive for static linking (except MSVC,
6129 # which needs '.lib').
6130 libext=a
6131 ltmain="$ac_aux_dir/ltmain.sh"
6132 ofile="$default_ofile"
6133 with_gnu_ld="$lt_cv_prog_gnu_ld"
6134
6135 if test -n "$ac_tool_prefix"; then
6136   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ar; ac_word=$2
6138 echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140 if test "${ac_cv_prog_AR+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   if test -n "$AR"; then
6144   ac_cv_prog_AR="$AR" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_prog_AR="${ac_tool_prefix}ar"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159
6160 fi
6161 fi
6162 AR=$ac_cv_prog_AR
6163 if test -n "$AR"; then
6164   echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6
6166 else
6167   echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6169 fi
6170
6171 fi
6172 if test -z "$ac_cv_prog_AR"; then
6173   ac_ct_AR=$AR
6174   # Extract the first word of "ar", so it can be a program name with args.
6175 set dummy ar; ac_word=$2
6176 echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   if test -n "$ac_ct_AR"; then
6182   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191     ac_cv_prog_ac_ct_AR="ar"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197
6198   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6199 fi
6200 fi
6201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202 if test -n "$ac_ct_AR"; then
6203   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204 echo "${ECHO_T}$ac_ct_AR" >&6
6205 else
6206   echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6208 fi
6209
6210   AR=$ac_ct_AR
6211 else
6212   AR="$ac_cv_prog_AR"
6213 fi
6214
6215 if test -n "$ac_tool_prefix"; then
6216   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6218 echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220 if test "${ac_cv_prog_RANLIB+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   if test -n "$RANLIB"; then
6224   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239
6240 fi
6241 fi
6242 RANLIB=$ac_cv_prog_RANLIB
6243 if test -n "$RANLIB"; then
6244   echo "$as_me:$LINENO: result: $RANLIB" >&5
6245 echo "${ECHO_T}$RANLIB" >&6
6246 else
6247   echo "$as_me:$LINENO: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6249 fi
6250
6251 fi
6252 if test -z "$ac_cv_prog_RANLIB"; then
6253   ac_ct_RANLIB=$RANLIB
6254   # Extract the first word of "ranlib", so it can be a program name with args.
6255 set dummy ranlib; ac_word=$2
6256 echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   if test -n "$ac_ct_RANLIB"; then
6262   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269   for ac_exec_ext in '' $ac_executable_extensions; do
6270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271     ac_cv_prog_ac_ct_RANLIB="ranlib"
6272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276 done
6277
6278   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6279 fi
6280 fi
6281 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6282 if test -n "$ac_ct_RANLIB"; then
6283   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6284 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6285 else
6286   echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6288 fi
6289
6290   RANLIB=$ac_ct_RANLIB
6291 else
6292   RANLIB="$ac_cv_prog_RANLIB"
6293 fi
6294
6295 if test -n "$ac_tool_prefix"; then
6296   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}strip; ac_word=$2
6298 echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300 if test "${ac_cv_prog_STRIP+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   if test -n "$STRIP"; then
6304   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311   for ac_exec_ext in '' $ac_executable_extensions; do
6312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315     break 2
6316   fi
6317 done
6318 done
6319
6320 fi
6321 fi
6322 STRIP=$ac_cv_prog_STRIP
6323 if test -n "$STRIP"; then
6324   echo "$as_me:$LINENO: result: $STRIP" >&5
6325 echo "${ECHO_T}$STRIP" >&6
6326 else
6327   echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6329 fi
6330
6331 fi
6332 if test -z "$ac_cv_prog_STRIP"; then
6333   ac_ct_STRIP=$STRIP
6334   # Extract the first word of "strip", so it can be a program name with args.
6335 set dummy strip; ac_word=$2
6336 echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6339   echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341   if test -n "$ac_ct_STRIP"; then
6342   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347   IFS=$as_save_IFS
6348   test -z "$as_dir" && as_dir=.
6349   for ac_exec_ext in '' $ac_executable_extensions; do
6350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351     ac_cv_prog_ac_ct_STRIP="strip"
6352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353     break 2
6354   fi
6355 done
6356 done
6357
6358   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6359 fi
6360 fi
6361 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6362 if test -n "$ac_ct_STRIP"; then
6363   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6364 echo "${ECHO_T}$ac_ct_STRIP" >&6
6365 else
6366   echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6
6368 fi
6369
6370   STRIP=$ac_ct_STRIP
6371 else
6372   STRIP="$ac_cv_prog_STRIP"
6373 fi
6374
6375
6376 old_CC="$CC"
6377 old_CFLAGS="$CFLAGS"
6378
6379 # Set sane defaults for various variables
6380 test -z "$AR" && AR=ar
6381 test -z "$AR_FLAGS" && AR_FLAGS=cru
6382 test -z "$AS" && AS=as
6383 test -z "$CC" && CC=cc
6384 test -z "$LTCC" && LTCC=$CC
6385 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6386 test -z "$DLLTOOL" && DLLTOOL=dlltool
6387 test -z "$LD" && LD=ld
6388 test -z "$LN_S" && LN_S="ln -s"
6389 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6390 test -z "$NM" && NM=nm
6391 test -z "$SED" && SED=sed
6392 test -z "$OBJDUMP" && OBJDUMP=objdump
6393 test -z "$RANLIB" && RANLIB=:
6394 test -z "$STRIP" && STRIP=:
6395 test -z "$ac_objext" && ac_objext=o
6396
6397 # Determine commands to create old-style static archives.
6398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6399 old_postinstall_cmds='chmod 644 $oldlib'
6400 old_postuninstall_cmds=
6401
6402 if test -n "$RANLIB"; then
6403   case $host_os in
6404   openbsd*)
6405     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6406     ;;
6407   *)
6408     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6409     ;;
6410   esac
6411   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6412 fi
6413
6414 for cc_temp in $compiler""; do
6415   case $cc_temp in
6416     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6417     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6418     \-*) ;;
6419     *) break;;
6420   esac
6421 done
6422 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6423
6424
6425 # Only perform the check for file, if the check method requires it
6426 case $deplibs_check_method in
6427 file_magic*)
6428   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6429     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6430 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   case $MAGIC_CMD in
6435 [\\/*] |  ?:[\\/]*)
6436   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437   ;;
6438 *)
6439   lt_save_MAGIC_CMD="$MAGIC_CMD"
6440   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6441   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6442   for ac_dir in $ac_dummy; do
6443     IFS="$lt_save_ifs"
6444     test -z "$ac_dir" && ac_dir=.
6445     if test -f $ac_dir/${ac_tool_prefix}file; then
6446       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6447       if test -n "$file_magic_test_file"; then
6448         case $deplibs_check_method in
6449         "file_magic "*)
6450           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6451           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6452           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6453             $EGREP "$file_magic_regex" > /dev/null; then
6454             :
6455           else
6456             cat <<EOF 1>&2
6457
6458 *** Warning: the command libtool uses to detect shared libraries,
6459 *** $file_magic_cmd, produces output that libtool cannot recognize.
6460 *** The result is that libtool may fail to recognize shared libraries
6461 *** as such.  This will affect the creation of libtool libraries that
6462 *** depend on shared libraries, but programs linked with such libtool
6463 *** libraries will work regardless of this problem.  Nevertheless, you
6464 *** may want to report the problem to your system manager and/or to
6465 *** bug-libtool@gnu.org
6466
6467 EOF
6468           fi ;;
6469         esac
6470       fi
6471       break
6472     fi
6473   done
6474   IFS="$lt_save_ifs"
6475   MAGIC_CMD="$lt_save_MAGIC_CMD"
6476   ;;
6477 esac
6478 fi
6479
6480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481 if test -n "$MAGIC_CMD"; then
6482   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6483 echo "${ECHO_T}$MAGIC_CMD" >&6
6484 else
6485   echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6487 fi
6488
6489 if test -z "$lt_cv_path_MAGIC_CMD"; then
6490   if test -n "$ac_tool_prefix"; then
6491     echo "$as_me:$LINENO: checking for file" >&5
6492 echo $ECHO_N "checking for file... $ECHO_C" >&6
6493 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   case $MAGIC_CMD in
6497 [\\/*] |  ?:[\\/]*)
6498   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6499   ;;
6500 *)
6501   lt_save_MAGIC_CMD="$MAGIC_CMD"
6502   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6504   for ac_dir in $ac_dummy; do
6505     IFS="$lt_save_ifs"
6506     test -z "$ac_dir" && ac_dir=.
6507     if test -f $ac_dir/file; then
6508       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6509       if test -n "$file_magic_test_file"; then
6510         case $deplibs_check_method in
6511         "file_magic "*)
6512           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6513           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6515             $EGREP "$file_magic_regex" > /dev/null; then
6516             :
6517           else
6518             cat <<EOF 1>&2
6519
6520 *** Warning: the command libtool uses to detect shared libraries,
6521 *** $file_magic_cmd, produces output that libtool cannot recognize.
6522 *** The result is that libtool may fail to recognize shared libraries
6523 *** as such.  This will affect the creation of libtool libraries that
6524 *** depend on shared libraries, but programs linked with such libtool
6525 *** libraries will work regardless of this problem.  Nevertheless, you
6526 *** may want to report the problem to your system manager and/or to
6527 *** bug-libtool@gnu.org
6528
6529 EOF
6530           fi ;;
6531         esac
6532       fi
6533       break
6534     fi
6535   done
6536   IFS="$lt_save_ifs"
6537   MAGIC_CMD="$lt_save_MAGIC_CMD"
6538   ;;
6539 esac
6540 fi
6541
6542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543 if test -n "$MAGIC_CMD"; then
6544   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6545 echo "${ECHO_T}$MAGIC_CMD" >&6
6546 else
6547   echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6
6549 fi
6550
6551   else
6552     MAGIC_CMD=:
6553   fi
6554 fi
6555
6556   fi
6557   ;;
6558 esac
6559
6560 enable_dlopen=no
6561 enable_win32_dll=no
6562
6563 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6564 if test "${enable_libtool_lock+set}" = set; then
6565   enableval="$enable_libtool_lock"
6566
6567 fi;
6568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6569
6570
6571 # Check whether --with-pic or --without-pic was given.
6572 if test "${with_pic+set}" = set; then
6573   withval="$with_pic"
6574   pic_mode="$withval"
6575 else
6576   pic_mode=default
6577 fi;
6578 test -z "$pic_mode" && pic_mode=default
6579
6580 # Use C for the default configuration in the libtool script
6581 tagname=
6582 lt_save_CC="$CC"
6583 ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589
6590 # Source file extension for C test sources.
6591 ac_ext=c
6592
6593 # Object file extension for compiled C test sources.
6594 objext=o
6595 objext=$objext
6596
6597 # Code to be used in simple compile tests
6598 lt_simple_compile_test_code="int some_variable = 0;\n"
6599
6600 # Code to be used in simple link tests
6601 lt_simple_link_test_code='int main(){return(0);}\n'
6602
6603
6604 # If no C compiler was specified, use CC.
6605 LTCC=${LTCC-"$CC"}
6606
6607 # If no C compiler flags were specified, use CFLAGS.
6608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609
6610 # Allow CC to be a program name with arguments.
6611 compiler=$CC
6612
6613
6614 # save warnings/boilerplate of simple test code
6615 ac_outfile=conftest.$ac_objext
6616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6618 _lt_compiler_boilerplate=`cat conftest.err`
6619 $rm conftest*
6620
6621 ac_outfile=conftest.$ac_objext
6622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6624 _lt_linker_boilerplate=`cat conftest.err`
6625 $rm conftest*
6626
6627
6628
6629 lt_prog_compiler_no_builtin_flag=
6630
6631 if test "$GCC" = yes; then
6632   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6633
6634
6635 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6636 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6637 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   lt_cv_prog_compiler_rtti_exceptions=no
6641   ac_outfile=conftest.$ac_objext
6642    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6643    lt_compiler_flag="-fno-rtti -fno-exceptions"
6644    # Insert the option either (1) after the last *FLAGS variable, or
6645    # (2) before a word containing "conftest.", or (3) at the end.
6646    # Note that $ac_compile itself does not contain backslashes and begins
6647    # with a dollar sign (not a hyphen), so the echo should work correctly.
6648    # The option is referenced via a variable to avoid confusing sed.
6649    lt_compile=`echo "$ac_compile" | $SED \
6650    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6652    -e 's:$: $lt_compiler_flag:'`
6653    (eval echo "\"\$as_me:6653: $lt_compile\"" >&5)
6654    (eval "$lt_compile" 2>conftest.err)
6655    ac_status=$?
6656    cat conftest.err >&5
6657    echo "$as_me:6657: \$? = $ac_status" >&5
6658    if (exit $ac_status) && test -s "$ac_outfile"; then
6659      # The compiler can only warn and ignore the option if not recognized
6660      # So say no if there are warnings other than the usual output.
6661      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6662      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6663      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6664        lt_cv_prog_compiler_rtti_exceptions=yes
6665      fi
6666    fi
6667    $rm conftest*
6668
6669 fi
6670 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6671 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6672
6673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6674     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6675 else
6676     :
6677 fi
6678
6679 fi
6680
6681 lt_prog_compiler_wl=
6682 lt_prog_compiler_pic=
6683 lt_prog_compiler_static=
6684
6685 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6686 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6687
6688   if test "$GCC" = yes; then
6689     lt_prog_compiler_wl='-Wl,'
6690     lt_prog_compiler_static='-static'
6691
6692     case $host_os in
6693       aix*)
6694       # All AIX code is PIC.
6695       if test "$host_cpu" = ia64; then
6696         # AIX 5 now supports IA64 processor
6697         lt_prog_compiler_static='-Bstatic'
6698       fi
6699       ;;
6700
6701     amigaos*)
6702       # FIXME: we need at least 68020 code to build shared libraries, but
6703       # adding the `-m68020' flag to GCC prevents building anything better,
6704       # like `-m68040'.
6705       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6706       ;;
6707
6708     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6709       # PIC is the default for these OSes.
6710       ;;
6711
6712     mingw* | pw32* | os2*)
6713       # This hack is so that the source file can tell whether it is being
6714       # built for inclusion in a dll (and should export symbols for example).
6715       lt_prog_compiler_pic='-DDLL_EXPORT'
6716       ;;
6717
6718     darwin* | rhapsody*)
6719       # PIC is the default on this platform
6720       # Common symbols not allowed in MH_DYLIB files
6721       lt_prog_compiler_pic='-fno-common'
6722       ;;
6723
6724     interix3*)
6725       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6726       # Instead, we relocate shared libraries at runtime.
6727       ;;
6728
6729     msdosdjgpp*)
6730       # Just because we use GCC doesn't mean we suddenly get shared libraries
6731       # on systems that don't support them.
6732       lt_prog_compiler_can_build_shared=no
6733       enable_shared=no
6734       ;;
6735
6736     sysv4*MP*)
6737       if test -d /usr/nec; then
6738         lt_prog_compiler_pic=-Kconform_pic
6739       fi
6740       ;;
6741
6742     hpux*)
6743       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6744       # not for PA HP-UX.
6745       case $host_cpu in
6746       hppa*64*|ia64*)
6747         # +Z the default
6748         ;;
6749       *)
6750         lt_prog_compiler_pic='-fPIC'
6751         ;;
6752       esac
6753       ;;
6754
6755     *)
6756       lt_prog_compiler_pic='-fPIC'
6757       ;;
6758     esac
6759   else
6760     # PORTME Check for flag to pass linker flags through the system compiler.
6761     case $host_os in
6762     aix*)
6763       lt_prog_compiler_wl='-Wl,'
6764       if test "$host_cpu" = ia64; then
6765         # AIX 5 now supports IA64 processor
6766         lt_prog_compiler_static='-Bstatic'
6767       else
6768         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6769       fi
6770       ;;
6771       darwin*)
6772         # PIC is the default on this platform
6773         # Common symbols not allowed in MH_DYLIB files
6774        case $cc_basename in
6775          xlc*)
6776          lt_prog_compiler_pic='-qnocommon'
6777          lt_prog_compiler_wl='-Wl,'
6778          ;;
6779        esac
6780        ;;
6781
6782     mingw* | pw32* | os2*)
6783       # This hack is so that the source file can tell whether it is being
6784       # built for inclusion in a dll (and should export symbols for example).
6785       lt_prog_compiler_pic='-DDLL_EXPORT'
6786       ;;
6787
6788     hpux9* | hpux10* | hpux11*)
6789       lt_prog_compiler_wl='-Wl,'
6790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6791       # not for PA HP-UX.
6792       case $host_cpu in
6793       hppa*64*|ia64*)
6794         # +Z the default
6795         ;;
6796       *)
6797         lt_prog_compiler_pic='+Z'
6798         ;;
6799       esac
6800       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6801       lt_prog_compiler_static='${wl}-a ${wl}archive'
6802       ;;
6803
6804     irix5* | irix6* | nonstopux*)
6805       lt_prog_compiler_wl='-Wl,'
6806       # PIC (with -KPIC) is the default.
6807       lt_prog_compiler_static='-non_shared'
6808       ;;
6809
6810     newsos6)
6811       lt_prog_compiler_pic='-KPIC'
6812       lt_prog_compiler_static='-Bstatic'
6813       ;;
6814
6815     linux*)
6816       case $cc_basename in
6817       icc* | ecc*)
6818         lt_prog_compiler_wl='-Wl,'
6819         lt_prog_compiler_pic='-KPIC'
6820         lt_prog_compiler_static='-static'
6821         ;;
6822       pgcc* | pgf77* | pgf90* | pgf95*)
6823         # Portland Group compilers (*not* the Pentium gcc compiler,
6824         # which looks to be a dead project)
6825         lt_prog_compiler_wl='-Wl,'
6826         lt_prog_compiler_pic='-fpic'
6827         lt_prog_compiler_static='-Bstatic'
6828         ;;
6829       ccc*)
6830         lt_prog_compiler_wl='-Wl,'
6831         # All Alpha code is PIC.
6832         lt_prog_compiler_static='-non_shared'
6833         ;;
6834       esac
6835       ;;
6836
6837     osf3* | osf4* | osf5*)
6838       lt_prog_compiler_wl='-Wl,'
6839       # All OSF/1 code is PIC.
6840       lt_prog_compiler_static='-non_shared'
6841       ;;
6842
6843     solaris*)
6844       lt_prog_compiler_pic='-KPIC'
6845       lt_prog_compiler_static='-Bstatic'
6846       case $cc_basename in
6847       f77* | f90* | f95*)
6848         lt_prog_compiler_wl='-Qoption ld ';;
6849       *)
6850         lt_prog_compiler_wl='-Wl,';;
6851       esac
6852       ;;
6853
6854     sunos4*)
6855       lt_prog_compiler_wl='-Qoption ld '
6856       lt_prog_compiler_pic='-PIC'
6857       lt_prog_compiler_static='-Bstatic'
6858       ;;
6859
6860     sysv4 | sysv4.2uw2* | sysv4.3*)
6861       lt_prog_compiler_wl='-Wl,'
6862       lt_prog_compiler_pic='-KPIC'
6863       lt_prog_compiler_static='-Bstatic'
6864       ;;
6865
6866     sysv4*MP*)
6867       if test -d /usr/nec ;then
6868         lt_prog_compiler_pic='-Kconform_pic'
6869         lt_prog_compiler_static='-Bstatic'
6870       fi
6871       ;;
6872
6873     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6874       lt_prog_compiler_wl='-Wl,'
6875       lt_prog_compiler_pic='-KPIC'
6876       lt_prog_compiler_static='-Bstatic'
6877       ;;
6878
6879     unicos*)
6880       lt_prog_compiler_wl='-Wl,'
6881       lt_prog_compiler_can_build_shared=no
6882       ;;
6883
6884     uts4*)
6885       lt_prog_compiler_pic='-pic'
6886       lt_prog_compiler_static='-Bstatic'
6887       ;;
6888
6889     *)
6890       lt_prog_compiler_can_build_shared=no
6891       ;;
6892     esac
6893   fi
6894
6895 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6896 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6897
6898 #
6899 # Check to make sure the PIC flag actually works.
6900 #
6901 if test -n "$lt_prog_compiler_pic"; then
6902
6903 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6904 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6905 if test "${lt_prog_compiler_pic_works+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   lt_prog_compiler_pic_works=no
6909   ac_outfile=conftest.$ac_objext
6910    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6911    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6912    # Insert the option either (1) after the last *FLAGS variable, or
6913    # (2) before a word containing "conftest.", or (3) at the end.
6914    # Note that $ac_compile itself does not contain backslashes and begins
6915    # with a dollar sign (not a hyphen), so the echo should work correctly.
6916    # The option is referenced via a variable to avoid confusing sed.
6917    lt_compile=`echo "$ac_compile" | $SED \
6918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6920    -e 's:$: $lt_compiler_flag:'`
6921    (eval echo "\"\$as_me:6921: $lt_compile\"" >&5)
6922    (eval "$lt_compile" 2>conftest.err)
6923    ac_status=$?
6924    cat conftest.err >&5
6925    echo "$as_me:6925: \$? = $ac_status" >&5
6926    if (exit $ac_status) && test -s "$ac_outfile"; then
6927      # The compiler can only warn and ignore the option if not recognized
6928      # So say no if there are warnings other than the usual output.
6929      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6930      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6931      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6932        lt_prog_compiler_pic_works=yes
6933      fi
6934    fi
6935    $rm conftest*
6936
6937 fi
6938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6939 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6940
6941 if test x"$lt_prog_compiler_pic_works" = xyes; then
6942     case $lt_prog_compiler_pic in
6943      "" | " "*) ;;
6944      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6945      esac
6946 else
6947     lt_prog_compiler_pic=
6948      lt_prog_compiler_can_build_shared=no
6949 fi
6950
6951 fi
6952 case $host_os in
6953   # For platforms which do not support PIC, -DPIC is meaningless:
6954   *djgpp*)
6955     lt_prog_compiler_pic=
6956     ;;
6957   *)
6958     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6959     ;;
6960 esac
6961
6962 #
6963 # Check to make sure the static flag actually works.
6964 #
6965 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6966 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6967 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6968 if test "${lt_prog_compiler_static_works+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   lt_prog_compiler_static_works=no
6972    save_LDFLAGS="$LDFLAGS"
6973    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6974    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6975    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6976      # The linker can only warn and ignore the option if not recognized
6977      # So say no if there are warnings
6978      if test -s conftest.err; then
6979        # Append any errors to the config.log.
6980        cat conftest.err 1>&5
6981        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6982        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6983        if diff conftest.exp conftest.er2 >/dev/null; then
6984          lt_prog_compiler_static_works=yes
6985        fi
6986      else
6987        lt_prog_compiler_static_works=yes
6988      fi
6989    fi
6990    $rm conftest*
6991    LDFLAGS="$save_LDFLAGS"
6992
6993 fi
6994 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6995 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6996
6997 if test x"$lt_prog_compiler_static_works" = xyes; then
6998     :
6999 else
7000     lt_prog_compiler_static=
7001 fi
7002
7003
7004 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7005 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7006 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   lt_cv_prog_compiler_c_o=no
7010    $rm -r conftest 2>/dev/null
7011    mkdir conftest
7012    cd conftest
7013    mkdir out
7014    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7015
7016    lt_compiler_flag="-o out/conftest2.$ac_objext"
7017    # Insert the option either (1) after the last *FLAGS variable, or
7018    # (2) before a word containing "conftest.", or (3) at the end.
7019    # Note that $ac_compile itself does not contain backslashes and begins
7020    # with a dollar sign (not a hyphen), so the echo should work correctly.
7021    lt_compile=`echo "$ac_compile" | $SED \
7022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7024    -e 's:$: $lt_compiler_flag:'`
7025    (eval echo "\"\$as_me:7025: $lt_compile\"" >&5)
7026    (eval "$lt_compile" 2>out/conftest.err)
7027    ac_status=$?
7028    cat out/conftest.err >&5
7029    echo "$as_me:7029: \$? = $ac_status" >&5
7030    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7031    then
7032      # The compiler can only warn and ignore the option if not recognized
7033      # So say no if there are warnings
7034      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7035      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7036      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7037        lt_cv_prog_compiler_c_o=yes
7038      fi
7039    fi
7040    chmod u+w . 2>&5
7041    $rm conftest*
7042    # SGI C++ compiler will create directory out/ii_files/ for
7043    # template instantiation
7044    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7045    $rm out/* && rmdir out
7046    cd ..
7047    rmdir conftest
7048    $rm conftest*
7049
7050 fi
7051 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7052 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7053
7054
7055 hard_links="nottested"
7056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7057   # do not overwrite the value of need_locks provided by the user
7058   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7059 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7060   hard_links=yes
7061   $rm conftest*
7062   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7063   touch conftest.a
7064   ln conftest.a conftest.b 2>&5 || hard_links=no
7065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7066   echo "$as_me:$LINENO: result: $hard_links" >&5
7067 echo "${ECHO_T}$hard_links" >&6
7068   if test "$hard_links" = no; then
7069     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7070 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7071     need_locks=warn
7072   fi
7073 else
7074   need_locks=no
7075 fi
7076
7077 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7079
7080   runpath_var=
7081   allow_undefined_flag=
7082   enable_shared_with_static_runtimes=no
7083   archive_cmds=
7084   archive_expsym_cmds=
7085   old_archive_From_new_cmds=
7086   old_archive_from_expsyms_cmds=
7087   export_dynamic_flag_spec=
7088   whole_archive_flag_spec=
7089   thread_safe_flag_spec=
7090   hardcode_libdir_flag_spec=
7091   hardcode_libdir_flag_spec_ld=
7092   hardcode_libdir_separator=
7093   hardcode_direct=no
7094   hardcode_minus_L=no
7095   hardcode_shlibpath_var=unsupported
7096   link_all_deplibs=unknown
7097   hardcode_automatic=no
7098   module_cmds=
7099   module_expsym_cmds=
7100   always_export_symbols=no
7101   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7102   # include_expsyms should be a list of space-separated symbols to be *always*
7103   # included in the symbol list
7104   include_expsyms=
7105   # exclude_expsyms can be an extended regexp of symbols to exclude
7106   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7107   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7108   # as well as any symbol that contains `d'.
7109   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7110   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7111   # platforms (ab)use it in PIC code, but their linkers get confused if
7112   # the symbol is explicitly referenced.  Since portable code cannot
7113   # rely on this symbol name, it's probably fine to never include it in
7114   # preloaded symbol tables.
7115   extract_expsyms_cmds=
7116   # Just being paranoid about ensuring that cc_basename is set.
7117   for cc_temp in $compiler""; do
7118   case $cc_temp in
7119     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7120     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7121     \-*) ;;
7122     *) break;;
7123   esac
7124 done
7125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7126
7127   case $host_os in
7128   cygwin* | mingw* | pw32*)
7129     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7130     # When not using gcc, we currently assume that we are using
7131     # Microsoft Visual C++.
7132     if test "$GCC" != yes; then
7133       with_gnu_ld=no
7134     fi
7135     ;;
7136   interix*)
7137     # we just hope/assume this is gcc and not c89 (= MSVC++)
7138     with_gnu_ld=yes
7139     ;;
7140   openbsd*)
7141     with_gnu_ld=no
7142     ;;
7143   esac
7144
7145   ld_shlibs=yes
7146   if test "$with_gnu_ld" = yes; then
7147     # If archive_cmds runs LD, not CC, wlarc should be empty
7148     wlarc='${wl}'
7149
7150     # Set some defaults for GNU ld with shared library support. These
7151     # are reset later if shared libraries are not supported. Putting them
7152     # here allows them to be overridden if necessary.
7153     runpath_var=LD_RUN_PATH
7154     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7155     export_dynamic_flag_spec='${wl}--export-dynamic'
7156     # ancient GNU ld didn't support --whole-archive et. al.
7157     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7158         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7159       else
7160         whole_archive_flag_spec=
7161     fi
7162     supports_anon_versioning=no
7163     case `$LD -v 2>/dev/null` in
7164       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7165       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7166       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7167       *\ 2.11.*) ;; # other 2.11 versions
7168       *) supports_anon_versioning=yes ;;
7169     esac
7170
7171     # See if GNU ld supports shared libraries.
7172     case $host_os in
7173     aix3* | aix4* | aix5*)
7174       # On AIX/PPC, the GNU linker is very broken
7175       if test "$host_cpu" != ia64; then
7176         ld_shlibs=no
7177         cat <<EOF 1>&2
7178
7179 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7180 *** to be unable to reliably create shared libraries on AIX.
7181 *** Therefore, libtool is disabling shared libraries support.  If you
7182 *** really care for shared libraries, you may want to modify your PATH
7183 *** so that a non-GNU linker is found, and then restart.
7184
7185 EOF
7186       fi
7187       ;;
7188
7189     amigaos*)
7190       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)'
7191       hardcode_libdir_flag_spec='-L$libdir'
7192       hardcode_minus_L=yes
7193
7194       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7195       # that the semantics of dynamic libraries on AmigaOS, at least up
7196       # to version 4, is to share data among multiple programs linked
7197       # with the same dynamic library.  Since this doesn't match the
7198       # behavior of shared libraries on other platforms, we can't use
7199       # them.
7200       ld_shlibs=no
7201       ;;
7202
7203     beos*)
7204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7205         allow_undefined_flag=unsupported
7206         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7207         # support --undefined.  This deserves some investigation.  FIXME
7208         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7209       else
7210         ld_shlibs=no
7211       fi
7212       ;;
7213
7214     cygwin* | mingw* | pw32*)
7215       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7216       # as there is no search path for DLLs.
7217       hardcode_libdir_flag_spec='-L$libdir'
7218       allow_undefined_flag=unsupported
7219       always_export_symbols=no
7220       enable_shared_with_static_runtimes=yes
7221       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7222
7223       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7224         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225         # If the export-symbols file already is a .def file (1st line
7226         # is EXPORTS), use it as is; otherwise, prepend...
7227         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7228           cp $export_symbols $output_objdir/$soname.def;
7229         else
7230           echo EXPORTS > $output_objdir/$soname.def;
7231           cat $export_symbols >> $output_objdir/$soname.def;
7232         fi~
7233         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7234       else
7235         ld_shlibs=no
7236       fi
7237       ;;
7238
7239     interix3*)
7240       hardcode_direct=no
7241       hardcode_shlibpath_var=no
7242       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7243       export_dynamic_flag_spec='${wl}-E'
7244       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7245       # Instead, shared libraries are loaded at an image base (0x10000000 by
7246       # default) and relocated if they conflict, which is a slow very memory
7247       # consuming and fragmenting process.  To avoid this, we pick a random,
7248       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7249       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7250       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7251       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7252       ;;
7253
7254     linux*)
7255       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7256         tmp_addflag=
7257         case $cc_basename,$host_cpu in
7258         pgcc*)                          # Portland Group C compiler
7259           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7260           tmp_addflag=' $pic_flag'
7261           ;;
7262         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7263           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7264           tmp_addflag=' $pic_flag -Mnomain' ;;
7265         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7266           tmp_addflag=' -i_dynamic' ;;
7267         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7268           tmp_addflag=' -i_dynamic -nofor_main' ;;
7269         ifc* | ifort*)                  # Intel Fortran compiler
7270           tmp_addflag=' -nofor_main' ;;
7271         esac
7272         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7273
7274         if test $supports_anon_versioning = yes; then
7275           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7276   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7277   $echo "local: *; };" >> $output_objdir/$libname.ver~
7278           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7279         fi
7280       else
7281         ld_shlibs=no
7282       fi
7283       ;;
7284
7285     netbsd*)
7286       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7287         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7288         wlarc=
7289       else
7290         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7291         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7292       fi
7293       ;;
7294
7295     solaris*)
7296       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7297         ld_shlibs=no
7298         cat <<EOF 1>&2
7299
7300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7301 *** create shared libraries on Solaris systems.  Therefore, libtool
7302 *** is disabling shared libraries support.  We urge you to upgrade GNU
7303 *** binutils to release 2.9.1 or newer.  Another option is to modify
7304 *** your PATH or compiler configuration so that the native linker is
7305 *** used, and then restart.
7306
7307 EOF
7308       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7309         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7310         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7311       else
7312         ld_shlibs=no
7313       fi
7314       ;;
7315
7316     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7317       case `$LD -v 2>&1` in
7318         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7319         ld_shlibs=no
7320         cat <<_LT_EOF 1>&2
7321
7322 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7323 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7324 *** is disabling shared libraries support.  We urge you to upgrade GNU
7325 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7326 *** your PATH or compiler configuration so that the native linker is
7327 *** used, and then restart.
7328
7329 _LT_EOF
7330         ;;
7331         *)
7332           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7333             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7334             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7335             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7336           else
7337             ld_shlibs=no
7338           fi
7339         ;;
7340       esac
7341       ;;
7342
7343     sunos4*)
7344       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7345       wlarc=
7346       hardcode_direct=yes
7347       hardcode_shlibpath_var=no
7348       ;;
7349
7350     *)
7351       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7352         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7353         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7354       else
7355         ld_shlibs=no
7356       fi
7357       ;;
7358     esac
7359
7360     if test "$ld_shlibs" = no; then
7361       runpath_var=
7362       hardcode_libdir_flag_spec=
7363       export_dynamic_flag_spec=
7364       whole_archive_flag_spec=
7365     fi
7366   else
7367     # PORTME fill in a description of your system's linker (not GNU ld)
7368     case $host_os in
7369     aix3*)
7370       allow_undefined_flag=unsupported
7371       always_export_symbols=yes
7372       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'
7373       # Note: this linker hardcodes the directories in LIBPATH if there
7374       # are no directories specified by -L.
7375       hardcode_minus_L=yes
7376       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7377         # Neither direct hardcoding nor static linking is supported with a
7378         # broken collect2.
7379         hardcode_direct=unsupported
7380       fi
7381       ;;
7382
7383     aix4* | aix5*)
7384       if test "$host_cpu" = ia64; then
7385         # On IA64, the linker does run time linking by default, so we don't
7386         # have to do anything special.
7387         aix_use_runtimelinking=no
7388         exp_sym_flag='-Bexport'
7389         no_entry_flag=""
7390       else
7391         # If we're using GNU nm, then we don't want the "-C" option.
7392         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7393         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7394           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'
7395         else
7396           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'
7397         fi
7398         aix_use_runtimelinking=no
7399
7400         # Test if we are trying to use run time linking or normal
7401         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7402         # need to do runtime linking.
7403         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7404           for ld_flag in $LDFLAGS; do
7405           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7406             aix_use_runtimelinking=yes
7407             break
7408           fi
7409           done
7410           ;;
7411         esac
7412
7413         exp_sym_flag='-bexport'
7414         no_entry_flag='-bnoentry'
7415       fi
7416
7417       # When large executables or shared objects are built, AIX ld can
7418       # have problems creating the table of contents.  If linking a library
7419       # or program results in "error TOC overflow" add -mminimal-toc to
7420       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7421       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7422
7423       archive_cmds=''
7424       hardcode_direct=yes
7425       hardcode_libdir_separator=':'
7426       link_all_deplibs=yes
7427
7428       if test "$GCC" = yes; then
7429         case $host_os in aix4.[012]|aix4.[012].*)
7430         # We only want to do this on AIX 4.2 and lower, the check
7431         # below for broken collect2 doesn't work under 4.3+
7432           collect2name=`${CC} -print-prog-name=collect2`
7433           if test -f "$collect2name" && \
7434            strings "$collect2name" | grep resolve_lib_name >/dev/null
7435           then
7436           # We have reworked collect2
7437           hardcode_direct=yes
7438           else
7439           # We have old collect2
7440           hardcode_direct=unsupported
7441           # It fails to find uninstalled libraries when the uninstalled
7442           # path is not listed in the libpath.  Setting hardcode_minus_L
7443           # to unsupported forces relinking
7444           hardcode_minus_L=yes
7445           hardcode_libdir_flag_spec='-L$libdir'
7446           hardcode_libdir_separator=
7447           fi
7448           ;;
7449         esac
7450         shared_flag='-shared'
7451         if test "$aix_use_runtimelinking" = yes; then
7452           shared_flag="$shared_flag "'${wl}-G'
7453         fi
7454       else
7455         # not using gcc
7456         if test "$host_cpu" = ia64; then
7457         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7458         # chokes on -Wl,-G. The following line is correct:
7459           shared_flag='-G'
7460         else
7461           if test "$aix_use_runtimelinking" = yes; then
7462             shared_flag='${wl}-G'
7463           else
7464             shared_flag='${wl}-bM:SRE'
7465           fi
7466         fi
7467       fi
7468
7469       # It seems that -bexpall does not export symbols beginning with
7470       # underscore (_), so it is better to generate a list of symbols to export.
7471       always_export_symbols=yes
7472       if test "$aix_use_runtimelinking" = yes; then
7473         # Warning - without using the other runtime loading flags (-brtl),
7474         # -berok will link without error, but may produce a broken library.
7475         allow_undefined_flag='-berok'
7476        # Determine the default libpath from the value encoded in an empty executable.
7477        cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h.  */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h.  */
7483
7484 int
7485 main ()
7486 {
7487
7488   ;
7489   return 0;
7490 }
7491 _ACEOF
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494   (eval $ac_link) 2>conftest.er1
7495   ac_status=$?
7496   grep -v '^ *+' conftest.er1 >conftest.err
7497   rm -f conftest.er1
7498   cat conftest.err >&5
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -z "$ac_c_werror_flag"
7502                          || test ! -s conftest.err'
7503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504   (eval $ac_try) 2>&5
7505   ac_status=$?
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); }; } &&
7508          { ac_try='test -s conftest$ac_exeext'
7509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510   (eval $ac_try) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; }; then
7514
7515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7516 }'`
7517 # Check for a 64-bit object if we didn't find anything.
7518 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; }
7519 }'`; fi
7520 else
7521   echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 fi
7525 rm -f conftest.err conftest.$ac_objext \
7526       conftest$ac_exeext conftest.$ac_ext
7527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7528
7529        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7530         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7531        else
7532         if test "$host_cpu" = ia64; then
7533           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7534           allow_undefined_flag="-z nodefs"
7535           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7536         else
7537          # Determine the default libpath from the value encoded in an empty executable.
7538          cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h.  */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h.  */
7544
7545 int
7546 main ()
7547 {
7548
7549   ;
7550   return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555   (eval $ac_link) 2>conftest.er1
7556   ac_status=$?
7557   grep -v '^ *+' conftest.er1 >conftest.err
7558   rm -f conftest.er1
7559   cat conftest.err >&5
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } &&
7562          { ac_try='test -z "$ac_c_werror_flag"
7563                          || test ! -s conftest.err'
7564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565   (eval $ac_try) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; } &&
7569          { ac_try='test -s conftest$ac_exeext'
7570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571   (eval $ac_try) 2>&5
7572   ac_status=$?
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); }; }; then
7575
7576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7577 }'`
7578 # Check for a 64-bit object if we didn't find anything.
7579 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; }
7580 }'`; fi
7581 else
7582   echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585 fi
7586 rm -f conftest.err conftest.$ac_objext \
7587       conftest$ac_exeext conftest.$ac_ext
7588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7589
7590          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7591           # Warning - without using the other run time loading flags,
7592           # -berok will link without error, but may produce a broken library.
7593           no_undefined_flag=' ${wl}-bernotok'
7594           allow_undefined_flag=' ${wl}-berok'
7595           # Exported symbols can be pulled into shared objects from archives
7596           whole_archive_flag_spec='$convenience'
7597           archive_cmds_need_lc=yes
7598           # This is similar to how AIX traditionally builds its shared libraries.
7599           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7600         fi
7601       fi
7602       ;;
7603
7604     amigaos*)
7605       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)'
7606       hardcode_libdir_flag_spec='-L$libdir'
7607       hardcode_minus_L=yes
7608       # see comment about different semantics on the GNU ld section
7609       ld_shlibs=no
7610       ;;
7611
7612     bsdi[45]*)
7613       export_dynamic_flag_spec=-rdynamic
7614       ;;
7615
7616     cygwin* | mingw* | pw32*)
7617       # When not using gcc, we currently assume that we are using
7618       # Microsoft Visual C++.
7619       # hardcode_libdir_flag_spec is actually meaningless, as there is
7620       # no search path for DLLs.
7621       hardcode_libdir_flag_spec=' '
7622       allow_undefined_flag=unsupported
7623       # Tell ltmain to make .lib files, not .a files.
7624       libext=lib
7625       # Tell ltmain to make .dll files, not .so files.
7626       shrext_cmds=".dll"
7627       # FIXME: Setting linknames here is a bad hack.
7628       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7629       # The linker will automatically build a .lib file if we build a DLL.
7630       old_archive_From_new_cmds='true'
7631       # FIXME: Should let the user specify the lib program.
7632       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7633       fix_srcfile_path='`cygpath -w "$srcfile"`'
7634       enable_shared_with_static_runtimes=yes
7635       ;;
7636
7637     darwin* | rhapsody*)
7638       case $host_os in
7639         rhapsody* | darwin1.[012])
7640          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7641          ;;
7642        *) # Darwin 1.3 on
7643          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7644            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7645          else
7646            case ${MACOSX_DEPLOYMENT_TARGET} in
7647              10.[012])
7648                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7649                ;;
7650              10.*)
7651                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7652                ;;
7653            esac
7654          fi
7655          ;;
7656       esac
7657       archive_cmds_need_lc=no
7658       hardcode_direct=no
7659       hardcode_automatic=yes
7660       hardcode_shlibpath_var=unsupported
7661       whole_archive_flag_spec=''
7662       link_all_deplibs=yes
7663     if test "$GCC" = yes ; then
7664         output_verbose_link_cmd='echo'
7665         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7666       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7667       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7668       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}'
7669       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}'
7670     else
7671       case $cc_basename in
7672         xlc*)
7673          output_verbose_link_cmd='echo'
7674          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7675          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7676           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7677          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7678           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}'
7679           ;;
7680        *)
7681          ld_shlibs=no
7682           ;;
7683       esac
7684     fi
7685       ;;
7686
7687     dgux*)
7688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689       hardcode_libdir_flag_spec='-L$libdir'
7690       hardcode_shlibpath_var=no
7691       ;;
7692
7693     freebsd1*)
7694       ld_shlibs=no
7695       ;;
7696
7697     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7698     # support.  Future versions do this automatically, but an explicit c++rt0.o
7699     # does not break anything, and helps significantly (at the cost of a little
7700     # extra space).
7701     freebsd2.2*)
7702       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7703       hardcode_libdir_flag_spec='-R$libdir'
7704       hardcode_direct=yes
7705       hardcode_shlibpath_var=no
7706       ;;
7707
7708     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7709     freebsd2*)
7710       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7711       hardcode_direct=yes
7712       hardcode_minus_L=yes
7713       hardcode_shlibpath_var=no
7714       ;;
7715
7716     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7717     freebsd* | kfreebsd*-gnu | dragonfly*)
7718       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7719       hardcode_libdir_flag_spec='-R$libdir'
7720       hardcode_direct=yes
7721       hardcode_shlibpath_var=no
7722       ;;
7723
7724     hpux9*)
7725       if test "$GCC" = yes; then
7726         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'
7727       else
7728         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'
7729       fi
7730       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7731       hardcode_libdir_separator=:
7732       hardcode_direct=yes
7733
7734       # hardcode_minus_L: Not really in the search PATH,
7735       # but as the default location of the library.
7736       hardcode_minus_L=yes
7737       export_dynamic_flag_spec='${wl}-E'
7738       ;;
7739
7740     hpux10*)
7741       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7742         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7743       else
7744         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7745       fi
7746       if test "$with_gnu_ld" = no; then
7747         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7748         hardcode_libdir_separator=:
7749
7750         hardcode_direct=yes
7751         export_dynamic_flag_spec='${wl}-E'
7752
7753         # hardcode_minus_L: Not really in the search PATH,
7754         # but as the default location of the library.
7755         hardcode_minus_L=yes
7756       fi
7757       ;;
7758
7759     hpux11*)
7760       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7761         case $host_cpu in
7762         hppa*64*)
7763           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7764           ;;
7765         ia64*)
7766           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7767           ;;
7768         *)
7769           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7770           ;;
7771         esac
7772       else
7773         case $host_cpu in
7774         hppa*64*)
7775           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7776           ;;
7777         ia64*)
7778           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7779           ;;
7780         *)
7781           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7782           ;;
7783         esac
7784       fi
7785       if test "$with_gnu_ld" = no; then
7786         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7787         hardcode_libdir_separator=:
7788
7789         case $host_cpu in
7790         hppa*64*|ia64*)
7791           hardcode_libdir_flag_spec_ld='+b $libdir'
7792           hardcode_direct=no
7793           hardcode_shlibpath_var=no
7794           ;;
7795         *)
7796           hardcode_direct=yes
7797           export_dynamic_flag_spec='${wl}-E'
7798
7799           # hardcode_minus_L: Not really in the search PATH,
7800           # but as the default location of the library.
7801           hardcode_minus_L=yes
7802           ;;
7803         esac
7804       fi
7805       ;;
7806
7807     irix5* | irix6* | nonstopux*)
7808       if test "$GCC" = yes; then
7809         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'
7810       else
7811         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'
7812         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7813       fi
7814       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7815       hardcode_libdir_separator=:
7816       link_all_deplibs=yes
7817       ;;
7818
7819     netbsd*)
7820       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7821         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7822       else
7823         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7824       fi
7825       hardcode_libdir_flag_spec='-R$libdir'
7826       hardcode_direct=yes
7827       hardcode_shlibpath_var=no
7828       ;;
7829
7830     newsos6)
7831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832       hardcode_direct=yes
7833       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7834       hardcode_libdir_separator=:
7835       hardcode_shlibpath_var=no
7836       ;;
7837
7838     openbsd*)
7839       hardcode_direct=yes
7840       hardcode_shlibpath_var=no
7841       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7842         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7843         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7844         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845         export_dynamic_flag_spec='${wl}-E'
7846       else
7847        case $host_os in
7848          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7849            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850            hardcode_libdir_flag_spec='-R$libdir'
7851            ;;
7852          *)
7853            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7854            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7855            ;;
7856        esac
7857       fi
7858       ;;
7859
7860     os2*)
7861       hardcode_libdir_flag_spec='-L$libdir'
7862       hardcode_minus_L=yes
7863       allow_undefined_flag=unsupported
7864       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'
7865       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7866       ;;
7867
7868     osf3*)
7869       if test "$GCC" = yes; then
7870         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7871         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'
7872       else
7873         allow_undefined_flag=' -expect_unresolved \*'
7874         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'
7875       fi
7876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7877       hardcode_libdir_separator=:
7878       ;;
7879
7880     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7881       if test "$GCC" = yes; then
7882         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7883         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'
7884         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7885       else
7886         allow_undefined_flag=' -expect_unresolved \*'
7887         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'
7888         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7889         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7890
7891         # Both c and cxx compiler support -rpath directly
7892         hardcode_libdir_flag_spec='-rpath $libdir'
7893       fi
7894       hardcode_libdir_separator=:
7895       ;;
7896
7897     solaris*)
7898       no_undefined_flag=' -z text'
7899       if test "$GCC" = yes; then
7900         wlarc='${wl}'
7901         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7903           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7904       else
7905         wlarc=''
7906         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7908         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7909       fi
7910       hardcode_libdir_flag_spec='-R$libdir'
7911       hardcode_shlibpath_var=no
7912       case $host_os in
7913       solaris2.[0-5] | solaris2.[0-5].*) ;;
7914       *)
7915         # The compiler driver will combine linker options so we
7916         # cannot just pass the convience library names through
7917         # without $wl, iff we do not link with $LD.
7918         # Luckily, gcc supports the same syntax we need for Sun Studio.
7919         # Supported since Solaris 2.6 (maybe 2.5.1?)
7920         case $wlarc in
7921         '')
7922           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7923         *)
7924           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7925         esac ;;
7926       esac
7927       link_all_deplibs=yes
7928       ;;
7929
7930     sunos4*)
7931       if test "x$host_vendor" = xsequent; then
7932         # Use $CC to link under sequent, because it throws in some extra .o
7933         # files that make .init and .fini sections work.
7934         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7935       else
7936         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7937       fi
7938       hardcode_libdir_flag_spec='-L$libdir'
7939       hardcode_direct=yes
7940       hardcode_minus_L=yes
7941       hardcode_shlibpath_var=no
7942       ;;
7943
7944     sysv4)
7945       case $host_vendor in
7946         sni)
7947           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948           hardcode_direct=yes # is this really true???
7949         ;;
7950         siemens)
7951           ## LD is ld it makes a PLAMLIB
7952           ## CC just makes a GrossModule.
7953           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7954           reload_cmds='$CC -r -o $output$reload_objs'
7955           hardcode_direct=no
7956         ;;
7957         motorola)
7958           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7960         ;;
7961       esac
7962       runpath_var='LD_RUN_PATH'
7963       hardcode_shlibpath_var=no
7964       ;;
7965
7966     sysv4.3*)
7967       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7968       hardcode_shlibpath_var=no
7969       export_dynamic_flag_spec='-Bexport'
7970       ;;
7971
7972     sysv4*MP*)
7973       if test -d /usr/nec; then
7974         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975         hardcode_shlibpath_var=no
7976         runpath_var=LD_RUN_PATH
7977         hardcode_runpath_var=yes
7978         ld_shlibs=yes
7979       fi
7980       ;;
7981
7982     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7983       no_undefined_flag='${wl}-z,text'
7984       archive_cmds_need_lc=no
7985       hardcode_shlibpath_var=no
7986       runpath_var='LD_RUN_PATH'
7987
7988       if test "$GCC" = yes; then
7989         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7990         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7991       else
7992         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7993         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7994       fi
7995       ;;
7996
7997     sysv5* | sco3.2v5* | sco5v6*)
7998       # Note: We can NOT use -z defs as we might desire, because we do not
7999       # link with -lc, and that would cause any symbols used from libc to
8000       # always be unresolved, which means just about no library would
8001       # ever link correctly.  If we're not using GNU ld we use -z text
8002       # though, which does catch some bad symbols but isn't as heavy-handed
8003       # as -z defs.
8004       no_undefined_flag='${wl}-z,text'
8005       allow_undefined_flag='${wl}-z,nodefs'
8006       archive_cmds_need_lc=no
8007       hardcode_shlibpath_var=no
8008       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8009       hardcode_libdir_separator=':'
8010       link_all_deplibs=yes
8011       export_dynamic_flag_spec='${wl}-Bexport'
8012       runpath_var='LD_RUN_PATH'
8013
8014       if test "$GCC" = yes; then
8015         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017       else
8018         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8020       fi
8021       ;;
8022
8023     uts4*)
8024       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025       hardcode_libdir_flag_spec='-L$libdir'
8026       hardcode_shlibpath_var=no
8027       ;;
8028
8029     *)
8030       ld_shlibs=no
8031       ;;
8032     esac
8033   fi
8034
8035 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8036 echo "${ECHO_T}$ld_shlibs" >&6
8037 test "$ld_shlibs" = no && can_build_shared=no
8038
8039 #
8040 # Do we need to explicitly link libc?
8041 #
8042 case "x$archive_cmds_need_lc" in
8043 x|xyes)
8044   # Assume -lc should be added
8045   archive_cmds_need_lc=yes
8046
8047   if test "$enable_shared" = yes && test "$GCC" = yes; then
8048     case $archive_cmds in
8049     *'~'*)
8050       # FIXME: we may have to deal with multi-command sequences.
8051       ;;
8052     '$CC '*)
8053       # Test whether the compiler implicitly links with -lc since on some
8054       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8055       # to ld, don't add -lc before -lgcc.
8056       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8057 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8058       $rm conftest*
8059       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8060
8061       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062   (eval $ac_compile) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } 2>conftest.err; then
8066         soname=conftest
8067         lib=conftest
8068         libobjs=conftest.$ac_objext
8069         deplibs=
8070         wl=$lt_prog_compiler_wl
8071         pic_flag=$lt_prog_compiler_pic
8072         compiler_flags=-v
8073         linker_flags=-v
8074         verstring=
8075         output_objdir=.
8076         libname=conftest
8077         lt_save_allow_undefined_flag=$allow_undefined_flag
8078         allow_undefined_flag=
8079         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8080   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }
8084         then
8085           archive_cmds_need_lc=no
8086         else
8087           archive_cmds_need_lc=yes
8088         fi
8089         allow_undefined_flag=$lt_save_allow_undefined_flag
8090       else
8091         cat conftest.err 1>&5
8092       fi
8093       $rm conftest*
8094       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8095 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8096       ;;
8097     esac
8098   fi
8099   ;;
8100 esac
8101
8102 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8103 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8104 library_names_spec=
8105 libname_spec='lib$name'
8106 soname_spec=
8107 shrext_cmds=".so"
8108 postinstall_cmds=
8109 postuninstall_cmds=
8110 finish_cmds=
8111 finish_eval=
8112 shlibpath_var=
8113 shlibpath_overrides_runpath=unknown
8114 version_type=none
8115 dynamic_linker="$host_os ld.so"
8116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8117 if test "$GCC" = yes; then
8118   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8119   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8120     # if the path contains ";" then we assume it to be the separator
8121     # otherwise default to the standard path separator (i.e. ":") - it is
8122     # assumed that no part of a normal pathname contains ";" but that should
8123     # okay in the real world where ";" in dirpaths is itself problematic.
8124     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8125   else
8126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8127   fi
8128 else
8129   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8130 fi
8131 need_lib_prefix=unknown
8132 hardcode_into_libs=no
8133
8134 # when you set need_version to no, make sure it does not cause -set_version
8135 # flags to be left without arguments
8136 need_version=unknown
8137
8138 case $host_os in
8139 aix3*)
8140   version_type=linux
8141   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8142   shlibpath_var=LIBPATH
8143
8144   # AIX 3 has no versioning support, so we append a major version to the name.
8145   soname_spec='${libname}${release}${shared_ext}$major'
8146   ;;
8147
8148 aix4* | aix5*)
8149   version_type=linux
8150   need_lib_prefix=no
8151   need_version=no
8152   hardcode_into_libs=yes
8153   if test "$host_cpu" = ia64; then
8154     # AIX 5 supports IA64
8155     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8156     shlibpath_var=LD_LIBRARY_PATH
8157   else
8158     # With GCC up to 2.95.x, collect2 would create an import file
8159     # for dependence libraries.  The import file would start with
8160     # the line `#! .'.  This would cause the generated library to
8161     # depend on `.', always an invalid library.  This was fixed in
8162     # development snapshots of GCC prior to 3.0.
8163     case $host_os in
8164       aix4 | aix4.[01] | aix4.[01].*)
8165       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8166            echo ' yes '
8167            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8168         :
8169       else
8170         can_build_shared=no
8171       fi
8172       ;;
8173     esac
8174     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8175     # soname into executable. Probably we can add versioning support to
8176     # collect2, so additional links can be useful in future.
8177     if test "$aix_use_runtimelinking" = yes; then
8178       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8179       # instead of lib<name>.a to let people know that these are not
8180       # typical AIX shared libraries.
8181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182     else
8183       # We preserve .a as extension for shared libraries through AIX4.2
8184       # and later when we are not doing run time linking.
8185       library_names_spec='${libname}${release}.a $libname.a'
8186       soname_spec='${libname}${release}${shared_ext}$major'
8187     fi
8188     shlibpath_var=LIBPATH
8189   fi
8190   ;;
8191
8192 amigaos*)
8193   library_names_spec='$libname.ixlibrary $libname.a'
8194   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8195   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'
8196   ;;
8197
8198 beos*)
8199   library_names_spec='${libname}${shared_ext}'
8200   dynamic_linker="$host_os ld.so"
8201   shlibpath_var=LIBRARY_PATH
8202   ;;
8203
8204 bsdi[45]*)
8205   version_type=linux
8206   need_version=no
8207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8208   soname_spec='${libname}${release}${shared_ext}$major'
8209   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8210   shlibpath_var=LD_LIBRARY_PATH
8211   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8212   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8213   # the default ld.so.conf also contains /usr/contrib/lib and
8214   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8215   # libtool to hard-code these into programs
8216   ;;
8217
8218 cygwin* | mingw* | pw32*)
8219   version_type=windows
8220   shrext_cmds=".dll"
8221   need_version=no
8222   need_lib_prefix=no
8223
8224   case $GCC,$host_os in
8225   yes,cygwin* | yes,mingw* | yes,pw32*)
8226     library_names_spec='$libname.dll.a'
8227     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8228     postinstall_cmds='base_file=`basename \${file}`~
8229       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8230       dldir=$destdir/`dirname \$dlpath`~
8231       test -d \$dldir || mkdir -p \$dldir~
8232       $install_prog $dir/$dlname \$dldir/$dlname~
8233       chmod a+x \$dldir/$dlname'
8234     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8235       dlpath=$dir/\$dldll~
8236        $rm \$dlpath'
8237     shlibpath_overrides_runpath=yes
8238
8239     case $host_os in
8240     cygwin*)
8241       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8242       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8243       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8244       ;;
8245     mingw*)
8246       # MinGW DLLs use traditional 'lib' prefix
8247       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8249       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8250         # It is most probably a Windows format PATH printed by
8251         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8252         # path with ; separators, and with drive letters. We can handle the
8253         # drive letters (cygwin fileutils understands them), so leave them,
8254         # especially as we might pass files found there to a mingw objdump,
8255         # which wouldn't understand a cygwinified path. Ahh.
8256         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8257       else
8258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8259       fi
8260       ;;
8261     pw32*)
8262       # pw32 DLLs use 'pw' prefix rather than 'lib'
8263       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8264       ;;
8265     esac
8266     ;;
8267
8268   *)
8269     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8270     ;;
8271   esac
8272   dynamic_linker='Win32 ld.exe'
8273   # FIXME: first we should search . and the directory the executable is in
8274   shlibpath_var=PATH
8275   ;;
8276
8277 darwin* | rhapsody*)
8278   dynamic_linker="$host_os dyld"
8279   version_type=darwin
8280   need_lib_prefix=no
8281   need_version=no
8282   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8283   soname_spec='${libname}${release}${major}$shared_ext'
8284   shlibpath_overrides_runpath=yes
8285   shlibpath_var=DYLD_LIBRARY_PATH
8286   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8287   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8288   if test "$GCC" = yes; then
8289     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"`
8290   else
8291     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8292   fi
8293   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8294   ;;
8295
8296 dgux*)
8297   version_type=linux
8298   need_lib_prefix=no
8299   need_version=no
8300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8301   soname_spec='${libname}${release}${shared_ext}$major'
8302   shlibpath_var=LD_LIBRARY_PATH
8303   ;;
8304
8305 freebsd1*)
8306   dynamic_linker=no
8307   ;;
8308
8309 kfreebsd*-gnu)
8310   version_type=linux
8311   need_lib_prefix=no
8312   need_version=no
8313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8314   soname_spec='${libname}${release}${shared_ext}$major'
8315   shlibpath_var=LD_LIBRARY_PATH
8316   shlibpath_overrides_runpath=no
8317   hardcode_into_libs=yes
8318   dynamic_linker='GNU ld.so'
8319   ;;
8320
8321 freebsd* | dragonfly*)
8322   # DragonFly does not have aout.  When/if they implement a new
8323   # versioning mechanism, adjust this.
8324   if test -x /usr/bin/objformat; then
8325     objformat=`/usr/bin/objformat`
8326   else
8327     case $host_os in
8328     freebsd[123]*) objformat=aout ;;
8329     *) objformat=elf ;;
8330     esac
8331   fi
8332   version_type=freebsd-$objformat
8333   case $version_type in
8334     freebsd-elf*)
8335       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8336       need_version=no
8337       need_lib_prefix=no
8338       ;;
8339     freebsd-*)
8340       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8341       need_version=yes
8342       ;;
8343   esac
8344   shlibpath_var=LD_LIBRARY_PATH
8345   case $host_os in
8346   freebsd2*)
8347     shlibpath_overrides_runpath=yes
8348     ;;
8349   freebsd3.[01]* | freebsdelf3.[01]*)
8350     shlibpath_overrides_runpath=yes
8351     hardcode_into_libs=yes
8352     ;;
8353   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8354   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8355     shlibpath_overrides_runpath=no
8356     hardcode_into_libs=yes
8357     ;;
8358   freebsd*) # from 4.6 on
8359     shlibpath_overrides_runpath=yes
8360     hardcode_into_libs=yes
8361     ;;
8362   esac
8363   ;;
8364
8365 gnu*)
8366   version_type=linux
8367   need_lib_prefix=no
8368   need_version=no
8369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8370   soname_spec='${libname}${release}${shared_ext}$major'
8371   shlibpath_var=LD_LIBRARY_PATH
8372   hardcode_into_libs=yes
8373   ;;
8374
8375 hpux9* | hpux10* | hpux11*)
8376   # Give a soname corresponding to the major version so that dld.sl refuses to
8377   # link against other versions.
8378   version_type=sunos
8379   need_lib_prefix=no
8380   need_version=no
8381   case $host_cpu in
8382   ia64*)
8383     shrext_cmds='.so'
8384     hardcode_into_libs=yes
8385     dynamic_linker="$host_os dld.so"
8386     shlibpath_var=LD_LIBRARY_PATH
8387     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389     soname_spec='${libname}${release}${shared_ext}$major'
8390     if test "X$HPUX_IA64_MODE" = X32; then
8391       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8392     else
8393       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8394     fi
8395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8396     ;;
8397    hppa*64*)
8398      shrext_cmds='.sl'
8399      hardcode_into_libs=yes
8400      dynamic_linker="$host_os dld.sl"
8401      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8402      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8403      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404      soname_spec='${libname}${release}${shared_ext}$major'
8405      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8406      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8407      ;;
8408    *)
8409     shrext_cmds='.sl'
8410     dynamic_linker="$host_os dld.sl"
8411     shlibpath_var=SHLIB_PATH
8412     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414     soname_spec='${libname}${release}${shared_ext}$major'
8415     ;;
8416   esac
8417   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8418   postinstall_cmds='chmod 555 $lib'
8419   ;;
8420
8421 interix3*)
8422   version_type=linux
8423   need_lib_prefix=no
8424   need_version=no
8425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8426   soname_spec='${libname}${release}${shared_ext}$major'
8427   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8428   shlibpath_var=LD_LIBRARY_PATH
8429   shlibpath_overrides_runpath=no
8430   hardcode_into_libs=yes
8431   ;;
8432
8433 irix5* | irix6* | nonstopux*)
8434   case $host_os in
8435     nonstopux*) version_type=nonstopux ;;
8436     *)
8437         if test "$lt_cv_prog_gnu_ld" = yes; then
8438                 version_type=linux
8439         else
8440                 version_type=irix
8441         fi ;;
8442   esac
8443   need_lib_prefix=no
8444   need_version=no
8445   soname_spec='${libname}${release}${shared_ext}$major'
8446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8447   case $host_os in
8448   irix5* | nonstopux*)
8449     libsuff= shlibsuff=
8450     ;;
8451   *)
8452     case $LD in # libtool.m4 will add one of these switches to LD
8453     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8454       libsuff= shlibsuff= libmagic=32-bit;;
8455     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8456       libsuff=32 shlibsuff=N32 libmagic=N32;;
8457     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8458       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8459     *) libsuff= shlibsuff= libmagic=never-match;;
8460     esac
8461     ;;
8462   esac
8463   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8464   shlibpath_overrides_runpath=no
8465   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8466   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8467   hardcode_into_libs=yes
8468   ;;
8469
8470 # No shared lib support for Linux oldld, aout, or coff.
8471 linux*oldld* | linux*aout* | linux*coff*)
8472   dynamic_linker=no
8473   ;;
8474
8475 # This must be Linux ELF.
8476 linux*)
8477   version_type=linux
8478   need_lib_prefix=no
8479   need_version=no
8480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481   soname_spec='${libname}${release}${shared_ext}$major'
8482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8483   shlibpath_var=LD_LIBRARY_PATH
8484   shlibpath_overrides_runpath=no
8485   # This implies no fast_install, which is unacceptable.
8486   # Some rework will be needed to allow for fast_install
8487   # before this can be enabled.
8488   hardcode_into_libs=yes
8489
8490   # find out which ABI we are using
8491   libsuff=
8492   case "$host_cpu" in
8493   x86_64*|s390x*|powerpc64*)
8494     echo '#line 8494 "configure"' > conftest.$ac_ext
8495     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; then
8500       case `/usr/bin/file conftest.$ac_objext` in
8501       *64-bit*)
8502         libsuff=64
8503         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8504         ;;
8505       esac
8506     fi
8507     rm -rf conftest*
8508     ;;
8509   esac
8510
8511   # Append ld.so.conf contents to the search path
8512   if test -f /etc/ld.so.conf; then
8513     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8514     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8515   fi
8516
8517   # We used to test for /lib/ld.so.1 and disable shared libraries on
8518   # powerpc, because MkLinux only supported shared libraries with the
8519   # GNU dynamic linker.  Since this was broken with cross compilers,
8520   # most powerpc-linux boxes support dynamic linking these days and
8521   # people can always --disable-shared, the test was removed, and we
8522   # assume the GNU/Linux dynamic linker is in use.
8523   dynamic_linker='GNU/Linux ld.so'
8524   ;;
8525
8526 knetbsd*-gnu)
8527   version_type=linux
8528   need_lib_prefix=no
8529   need_version=no
8530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8531   soname_spec='${libname}${release}${shared_ext}$major'
8532   shlibpath_var=LD_LIBRARY_PATH
8533   shlibpath_overrides_runpath=no
8534   hardcode_into_libs=yes
8535   dynamic_linker='GNU ld.so'
8536   ;;
8537
8538 netbsd*)
8539   version_type=sunos
8540   need_lib_prefix=no
8541   need_version=no
8542   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8544     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8545     dynamic_linker='NetBSD (a.out) ld.so'
8546   else
8547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8548     soname_spec='${libname}${release}${shared_ext}$major'
8549     dynamic_linker='NetBSD ld.elf_so'
8550   fi
8551   shlibpath_var=LD_LIBRARY_PATH
8552   shlibpath_overrides_runpath=yes
8553   hardcode_into_libs=yes
8554   ;;
8555
8556 newsos6)
8557   version_type=linux
8558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559   shlibpath_var=LD_LIBRARY_PATH
8560   shlibpath_overrides_runpath=yes
8561   ;;
8562
8563 nto-qnx*)
8564   version_type=linux
8565   need_lib_prefix=no
8566   need_version=no
8567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568   soname_spec='${libname}${release}${shared_ext}$major'
8569   shlibpath_var=LD_LIBRARY_PATH
8570   shlibpath_overrides_runpath=yes
8571   ;;
8572
8573 openbsd*)
8574   version_type=sunos
8575   sys_lib_dlsearch_path_spec="/usr/lib"
8576   need_lib_prefix=no
8577   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8578   case $host_os in
8579     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8580     *)                         need_version=no  ;;
8581   esac
8582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8584   shlibpath_var=LD_LIBRARY_PATH
8585   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8586     case $host_os in
8587       openbsd2.[89] | openbsd2.[89].*)
8588         shlibpath_overrides_runpath=no
8589         ;;
8590       *)
8591         shlibpath_overrides_runpath=yes
8592         ;;
8593       esac
8594   else
8595     shlibpath_overrides_runpath=yes
8596   fi
8597   ;;
8598
8599 os2*)
8600   libname_spec='$name'
8601   shrext_cmds=".dll"
8602   need_lib_prefix=no
8603   library_names_spec='$libname${shared_ext} $libname.a'
8604   dynamic_linker='OS/2 ld.exe'
8605   shlibpath_var=LIBPATH
8606   ;;
8607
8608 osf3* | osf4* | osf5*)
8609   version_type=osf
8610   need_lib_prefix=no
8611   need_version=no
8612   soname_spec='${libname}${release}${shared_ext}$major'
8613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614   shlibpath_var=LD_LIBRARY_PATH
8615   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8616   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8617   ;;
8618
8619 solaris*)
8620   version_type=linux
8621   need_lib_prefix=no
8622   need_version=no
8623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624   soname_spec='${libname}${release}${shared_ext}$major'
8625   shlibpath_var=LD_LIBRARY_PATH
8626   shlibpath_overrides_runpath=yes
8627   hardcode_into_libs=yes
8628   # ldd complains unless libraries are executable
8629   postinstall_cmds='chmod +x $lib'
8630   ;;
8631
8632 sunos4*)
8633   version_type=sunos
8634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8635   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8636   shlibpath_var=LD_LIBRARY_PATH
8637   shlibpath_overrides_runpath=yes
8638   if test "$with_gnu_ld" = yes; then
8639     need_lib_prefix=no
8640   fi
8641   need_version=yes
8642   ;;
8643
8644 sysv4 | sysv4.3*)
8645   version_type=linux
8646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647   soname_spec='${libname}${release}${shared_ext}$major'
8648   shlibpath_var=LD_LIBRARY_PATH
8649   case $host_vendor in
8650     sni)
8651       shlibpath_overrides_runpath=no
8652       need_lib_prefix=no
8653       export_dynamic_flag_spec='${wl}-Blargedynsym'
8654       runpath_var=LD_RUN_PATH
8655       ;;
8656     siemens)
8657       need_lib_prefix=no
8658       ;;
8659     motorola)
8660       need_lib_prefix=no
8661       need_version=no
8662       shlibpath_overrides_runpath=no
8663       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8664       ;;
8665   esac
8666   ;;
8667
8668 sysv4*MP*)
8669   if test -d /usr/nec ;then
8670     version_type=linux
8671     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8672     soname_spec='$libname${shared_ext}.$major'
8673     shlibpath_var=LD_LIBRARY_PATH
8674   fi
8675   ;;
8676
8677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8678   version_type=freebsd-elf
8679   need_lib_prefix=no
8680   need_version=no
8681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8682   soname_spec='${libname}${release}${shared_ext}$major'
8683   shlibpath_var=LD_LIBRARY_PATH
8684   hardcode_into_libs=yes
8685   if test "$with_gnu_ld" = yes; then
8686     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8687     shlibpath_overrides_runpath=no
8688   else
8689     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8690     shlibpath_overrides_runpath=yes
8691     case $host_os in
8692       sco3.2v5*)
8693         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8694         ;;
8695     esac
8696   fi
8697   sys_lib_dlsearch_path_spec='/usr/lib'
8698   ;;
8699
8700 uts4*)
8701   version_type=linux
8702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703   soname_spec='${libname}${release}${shared_ext}$major'
8704   shlibpath_var=LD_LIBRARY_PATH
8705   ;;
8706
8707 *)
8708   dynamic_linker=no
8709   ;;
8710 esac
8711 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8712 echo "${ECHO_T}$dynamic_linker" >&6
8713 test "$dynamic_linker" = no && can_build_shared=no
8714
8715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8716 if test "$GCC" = yes; then
8717   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8718 fi
8719
8720 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8722 hardcode_action=
8723 if test -n "$hardcode_libdir_flag_spec" || \
8724    test -n "$runpath_var" || \
8725    test "X$hardcode_automatic" = "Xyes" ; then
8726
8727   # We can hardcode non-existant directories.
8728   if test "$hardcode_direct" != no &&
8729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8730      # have to relink, otherwise we might link with an installed library
8731      # when we should be linking with a yet-to-be-installed one
8732      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8733      test "$hardcode_minus_L" != no; then
8734     # Linking always hardcodes the temporary library directory.
8735     hardcode_action=relink
8736   else
8737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8738     hardcode_action=immediate
8739   fi
8740 else
8741   # We cannot hardcode anything, or else we can only hardcode existing
8742   # directories.
8743   hardcode_action=unsupported
8744 fi
8745 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8746 echo "${ECHO_T}$hardcode_action" >&6
8747
8748 if test "$hardcode_action" = relink; then
8749   # Fast installation is not supported
8750   enable_fast_install=no
8751 elif test "$shlibpath_overrides_runpath" = yes ||
8752      test "$enable_shared" = no; then
8753   # Fast installation is not necessary
8754   enable_fast_install=needless
8755 fi
8756
8757 striplib=
8758 old_striplib=
8759 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8762   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8763   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8764   echo "$as_me:$LINENO: result: yes" >&5
8765 echo "${ECHO_T}yes" >&6
8766 else
8767 # FIXME - insert some real tests, host_os isn't really good enough
8768   case $host_os in
8769    darwin*)
8770        if test -n "$STRIP" ; then
8771          striplib="$STRIP -x"
8772          echo "$as_me:$LINENO: result: yes" >&5
8773 echo "${ECHO_T}yes" >&6
8774        else
8775   echo "$as_me:$LINENO: result: no" >&5
8776 echo "${ECHO_T}no" >&6
8777 fi
8778        ;;
8779    *)
8780   echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6
8782     ;;
8783   esac
8784 fi
8785
8786 if test "x$enable_dlopen" != xyes; then
8787   enable_dlopen=unknown
8788   enable_dlopen_self=unknown
8789   enable_dlopen_self_static=unknown
8790 else
8791   lt_cv_dlopen=no
8792   lt_cv_dlopen_libs=
8793
8794   case $host_os in
8795   beos*)
8796     lt_cv_dlopen="load_add_on"
8797     lt_cv_dlopen_libs=
8798     lt_cv_dlopen_self=yes
8799     ;;
8800
8801   mingw* | pw32*)
8802     lt_cv_dlopen="LoadLibrary"
8803     lt_cv_dlopen_libs=
8804    ;;
8805
8806   cygwin*)
8807     lt_cv_dlopen="dlopen"
8808     lt_cv_dlopen_libs=
8809    ;;
8810
8811   darwin*)
8812   # if libdl is installed we need to link against it
8813     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818   ac_check_lib_save_LIBS=$LIBS
8819 LIBS="-ldl  $LIBS"
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826
8827 /* Override any gcc2 internal prototype to avoid an error.  */
8828 #ifdef __cplusplus
8829 extern "C"
8830 #endif
8831 /* We use char because int might match the return type of a gcc2
8832    builtin and then its argument prototype would still apply.  */
8833 char dlopen ();
8834 int
8835 main ()
8836 {
8837 dlopen ();
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844   (eval $ac_link) 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -z "$ac_c_werror_flag"
8852                          || test ! -s conftest.err'
8853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854   (eval $ac_try) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); }; } &&
8858          { ac_try='test -s conftest$ac_exeext'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; }; then
8864   ac_cv_lib_dl_dlopen=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_lib_dl_dlopen=no
8870 fi
8871 rm -f conftest.err conftest.$ac_objext \
8872       conftest$ac_exeext conftest.$ac_ext
8873 LIBS=$ac_check_lib_save_LIBS
8874 fi
8875 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8876 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8877 if test $ac_cv_lib_dl_dlopen = yes; then
8878   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8879 else
8880
8881     lt_cv_dlopen="dyld"
8882     lt_cv_dlopen_libs=
8883     lt_cv_dlopen_self=yes
8884
8885 fi
8886
8887    ;;
8888
8889   *)
8890     echo "$as_me:$LINENO: checking for shl_load" >&5
8891 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8892 if test "${ac_cv_func_shl_load+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h.  */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h.  */
8901 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8903 #define shl_load innocuous_shl_load
8904
8905 /* System header to define __stub macros and hopefully few prototypes,
8906     which can conflict with char shl_load (); below.
8907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908     <limits.h> exists even on freestanding compilers.  */
8909
8910 #ifdef __STDC__
8911 # include <limits.h>
8912 #else
8913 # include <assert.h>
8914 #endif
8915
8916 #undef shl_load
8917
8918 /* Override any gcc2 internal prototype to avoid an error.  */
8919 #ifdef __cplusplus
8920 extern "C"
8921 {
8922 #endif
8923 /* We use char because int might match the return type of a gcc2
8924    builtin and then its argument prototype would still apply.  */
8925 char shl_load ();
8926 /* The GNU C library defines this for functions which it implements
8927     to always fail with ENOSYS.  Some functions are actually named
8928     something starting with __ and the normal name is an alias.  */
8929 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8930 choke me
8931 #else
8932 char (*f) () = shl_load;
8933 #endif
8934 #ifdef __cplusplus
8935 }
8936 #endif
8937
8938 int
8939 main ()
8940 {
8941 return f != shl_load;
8942   ;
8943   return 0;
8944 }
8945 _ACEOF
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948   (eval $ac_link) 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } &&
8955          { ac_try='test -z "$ac_c_werror_flag"
8956                          || test ! -s conftest.err'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; } &&
8962          { ac_try='test -s conftest$ac_exeext'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_cv_func_shl_load=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973 ac_cv_func_shl_load=no
8974 fi
8975 rm -f conftest.err conftest.$ac_objext \
8976       conftest$ac_exeext conftest.$ac_ext
8977 fi
8978 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8979 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8980 if test $ac_cv_func_shl_load = yes; then
8981   lt_cv_dlopen="shl_load"
8982 else
8983   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8984 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   ac_check_lib_save_LIBS=$LIBS
8989 LIBS="-ldld  $LIBS"
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996
8997 /* Override any gcc2 internal prototype to avoid an error.  */
8998 #ifdef __cplusplus
8999 extern "C"
9000 #endif
9001 /* We use char because int might match the return type of a gcc2
9002    builtin and then its argument prototype would still apply.  */
9003 char shl_load ();
9004 int
9005 main ()
9006 {
9007 shl_load ();
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014   (eval $ac_link) 2>conftest.er1
9015   ac_status=$?
9016   grep -v '^ *+' conftest.er1 >conftest.err
9017   rm -f conftest.er1
9018   cat conftest.err >&5
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } &&
9021          { ac_try='test -z "$ac_c_werror_flag"
9022                          || test ! -s conftest.err'
9023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024   (eval $ac_try) 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); }; } &&
9028          { ac_try='test -s conftest$ac_exeext'
9029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030   (eval $ac_try) 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); }; }; then
9034   ac_cv_lib_dld_shl_load=yes
9035 else
9036   echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039 ac_cv_lib_dld_shl_load=no
9040 fi
9041 rm -f conftest.err conftest.$ac_objext \
9042       conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9044 fi
9045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9046 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9047 if test $ac_cv_lib_dld_shl_load = yes; then
9048   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9049 else
9050   echo "$as_me:$LINENO: checking for dlopen" >&5
9051 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9052 if test "${ac_cv_func_dlopen+set}" = set; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055   cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h.  */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h.  */
9061 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9063 #define dlopen innocuous_dlopen
9064
9065 /* System header to define __stub macros and hopefully few prototypes,
9066     which can conflict with char dlopen (); below.
9067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9068     <limits.h> exists even on freestanding compilers.  */
9069
9070 #ifdef __STDC__
9071 # include <limits.h>
9072 #else
9073 # include <assert.h>
9074 #endif
9075
9076 #undef dlopen
9077
9078 /* Override any gcc2 internal prototype to avoid an error.  */
9079 #ifdef __cplusplus
9080 extern "C"
9081 {
9082 #endif
9083 /* We use char because int might match the return type of a gcc2
9084    builtin and then its argument prototype would still apply.  */
9085 char dlopen ();
9086 /* The GNU C library defines this for functions which it implements
9087     to always fail with ENOSYS.  Some functions are actually named
9088     something starting with __ and the normal name is an alias.  */
9089 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9090 choke me
9091 #else
9092 char (*f) () = dlopen;
9093 #endif
9094 #ifdef __cplusplus
9095 }
9096 #endif
9097
9098 int
9099 main ()
9100 {
9101 return f != dlopen;
9102   ;
9103   return 0;
9104 }
9105 _ACEOF
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108   (eval $ac_link) 2>conftest.er1
9109   ac_status=$?
9110   grep -v '^ *+' conftest.er1 >conftest.err
9111   rm -f conftest.er1
9112   cat conftest.err >&5
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } &&
9115          { ac_try='test -z "$ac_c_werror_flag"
9116                          || test ! -s conftest.err'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; } &&
9122          { ac_try='test -s conftest$ac_exeext'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; }; then
9128   ac_cv_func_dlopen=yes
9129 else
9130   echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133 ac_cv_func_dlopen=no
9134 fi
9135 rm -f conftest.err conftest.$ac_objext \
9136       conftest$ac_exeext conftest.$ac_ext
9137 fi
9138 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9140 if test $ac_cv_func_dlopen = yes; then
9141   lt_cv_dlopen="dlopen"
9142 else
9143   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9146   echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148   ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-ldl  $LIBS"
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156
9157 /* Override any gcc2 internal prototype to avoid an error.  */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 /* We use char because int might match the return type of a gcc2
9162    builtin and then its argument prototype would still apply.  */
9163 char dlopen ();
9164 int
9165 main ()
9166 {
9167 dlopen ();
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174   (eval $ac_link) 2>conftest.er1
9175   ac_status=$?
9176   grep -v '^ *+' conftest.er1 >conftest.err
9177   rm -f conftest.er1
9178   cat conftest.err >&5
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); } &&
9181          { ac_try='test -z "$ac_c_werror_flag"
9182                          || test ! -s conftest.err'
9183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184   (eval $ac_try) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); }; } &&
9188          { ac_try='test -s conftest$ac_exeext'
9189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190   (eval $ac_try) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; }; then
9194   ac_cv_lib_dl_dlopen=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 ac_cv_lib_dl_dlopen=no
9200 fi
9201 rm -f conftest.err conftest.$ac_objext \
9202       conftest$ac_exeext conftest.$ac_ext
9203 LIBS=$ac_check_lib_save_LIBS
9204 fi
9205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9207 if test $ac_cv_lib_dl_dlopen = yes; then
9208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9209 else
9210   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9211 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   ac_check_lib_save_LIBS=$LIBS
9216 LIBS="-lsvld  $LIBS"
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223
9224 /* Override any gcc2 internal prototype to avoid an error.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229    builtin and then its argument prototype would still apply.  */
9230 char dlopen ();
9231 int
9232 main ()
9233 {
9234 dlopen ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_c_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_lib_svld_dlopen=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_svld_dlopen=no
9267 fi
9268 rm -f conftest.err conftest.$ac_objext \
9269       conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9271 fi
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9273 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9274 if test $ac_cv_lib_svld_dlopen = yes; then
9275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9276 else
9277   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9278 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9279 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-ldld  $LIBS"
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h.  */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h.  */
9290
9291 /* Override any gcc2 internal prototype to avoid an error.  */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296    builtin and then its argument prototype would still apply.  */
9297 char dld_link ();
9298 int
9299 main ()
9300 {
9301 dld_link ();
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308   (eval $ac_link) 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } &&
9315          { ac_try='test -z "$ac_c_werror_flag"
9316                          || test ! -s conftest.err'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; } &&
9322          { ac_try='test -s conftest$ac_exeext'
9323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324   (eval $ac_try) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); }; }; then
9328   ac_cv_lib_dld_dld_link=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333 ac_cv_lib_dld_dld_link=no
9334 fi
9335 rm -f conftest.err conftest.$ac_objext \
9336       conftest$ac_exeext conftest.$ac_ext
9337 LIBS=$ac_check_lib_save_LIBS
9338 fi
9339 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9340 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9341 if test $ac_cv_lib_dld_dld_link = yes; then
9342   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9343 fi
9344
9345
9346 fi
9347
9348
9349 fi
9350
9351
9352 fi
9353
9354
9355 fi
9356
9357
9358 fi
9359
9360     ;;
9361   esac
9362
9363   if test "x$lt_cv_dlopen" != xno; then
9364     enable_dlopen=yes
9365   else
9366     enable_dlopen=no
9367   fi
9368
9369   case $lt_cv_dlopen in
9370   dlopen)
9371     save_CPPFLAGS="$CPPFLAGS"
9372     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9373
9374     save_LDFLAGS="$LDFLAGS"
9375     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9376
9377     save_LIBS="$LIBS"
9378     LIBS="$lt_cv_dlopen_libs $LIBS"
9379
9380     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9381 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9382 if test "${lt_cv_dlopen_self+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385           if test "$cross_compiling" = yes; then :
9386   lt_cv_dlopen_self=cross
9387 else
9388   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9389   lt_status=$lt_dlunknown
9390   cat > conftest.$ac_ext <<EOF
9391 #line 9391 "configure"
9392 #include "confdefs.h"
9393
9394 #if HAVE_DLFCN_H
9395 #include <dlfcn.h>
9396 #endif
9397
9398 #include <stdio.h>
9399
9400 #ifdef RTLD_GLOBAL
9401 #  define LT_DLGLOBAL           RTLD_GLOBAL
9402 #else
9403 #  ifdef DL_GLOBAL
9404 #    define LT_DLGLOBAL         DL_GLOBAL
9405 #  else
9406 #    define LT_DLGLOBAL         0
9407 #  endif
9408 #endif
9409
9410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9411    find out it does not work in some platform. */
9412 #ifndef LT_DLLAZY_OR_NOW
9413 #  ifdef RTLD_LAZY
9414 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9415 #  else
9416 #    ifdef DL_LAZY
9417 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9418 #    else
9419 #      ifdef RTLD_NOW
9420 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9421 #      else
9422 #        ifdef DL_NOW
9423 #          define LT_DLLAZY_OR_NOW      DL_NOW
9424 #        else
9425 #          define LT_DLLAZY_OR_NOW      0
9426 #        endif
9427 #      endif
9428 #    endif
9429 #  endif
9430 #endif
9431
9432 #ifdef __cplusplus
9433 extern "C" void exit (int);
9434 #endif
9435
9436 void fnord() { int i=42;}
9437 int main ()
9438 {
9439   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9440   int status = $lt_dlunknown;
9441
9442   if (self)
9443     {
9444       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9445       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9446       /* dlclose (self); */
9447     }
9448   else
9449     puts (dlerror ());
9450
9451     exit (status);
9452 }
9453 EOF
9454   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455   (eval $ac_link) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9459     (./conftest; exit; ) >&5 2>/dev/null
9460     lt_status=$?
9461     case x$lt_status in
9462       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9463       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9464       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9465     esac
9466   else :
9467     # compilation failed
9468     lt_cv_dlopen_self=no
9469   fi
9470 fi
9471 rm -fr conftest*
9472
9473
9474 fi
9475 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9476 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9477
9478     if test "x$lt_cv_dlopen_self" = xyes; then
9479       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9480       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9481 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9482 if test "${lt_cv_dlopen_self_static+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485           if test "$cross_compiling" = yes; then :
9486   lt_cv_dlopen_self_static=cross
9487 else
9488   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9489   lt_status=$lt_dlunknown
9490   cat > conftest.$ac_ext <<EOF
9491 #line 9491 "configure"
9492 #include "confdefs.h"
9493
9494 #if HAVE_DLFCN_H
9495 #include <dlfcn.h>
9496 #endif
9497
9498 #include <stdio.h>
9499
9500 #ifdef RTLD_GLOBAL
9501 #  define LT_DLGLOBAL           RTLD_GLOBAL
9502 #else
9503 #  ifdef DL_GLOBAL
9504 #    define LT_DLGLOBAL         DL_GLOBAL
9505 #  else
9506 #    define LT_DLGLOBAL         0
9507 #  endif
9508 #endif
9509
9510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9511    find out it does not work in some platform. */
9512 #ifndef LT_DLLAZY_OR_NOW
9513 #  ifdef RTLD_LAZY
9514 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9515 #  else
9516 #    ifdef DL_LAZY
9517 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9518 #    else
9519 #      ifdef RTLD_NOW
9520 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9521 #      else
9522 #        ifdef DL_NOW
9523 #          define LT_DLLAZY_OR_NOW      DL_NOW
9524 #        else
9525 #          define LT_DLLAZY_OR_NOW      0
9526 #        endif
9527 #      endif
9528 #    endif
9529 #  endif
9530 #endif
9531
9532 #ifdef __cplusplus
9533 extern "C" void exit (int);
9534 #endif
9535
9536 void fnord() { int i=42;}
9537 int main ()
9538 {
9539   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9540   int status = $lt_dlunknown;
9541
9542   if (self)
9543     {
9544       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9545       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9546       /* dlclose (self); */
9547     }
9548   else
9549     puts (dlerror ());
9550
9551     exit (status);
9552 }
9553 EOF
9554   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555   (eval $ac_link) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9559     (./conftest; exit; ) >&5 2>/dev/null
9560     lt_status=$?
9561     case x$lt_status in
9562       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9563       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9564       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9565     esac
9566   else :
9567     # compilation failed
9568     lt_cv_dlopen_self_static=no
9569   fi
9570 fi
9571 rm -fr conftest*
9572
9573
9574 fi
9575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9576 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9577     fi
9578
9579     CPPFLAGS="$save_CPPFLAGS"
9580     LDFLAGS="$save_LDFLAGS"
9581     LIBS="$save_LIBS"
9582     ;;
9583   esac
9584
9585   case $lt_cv_dlopen_self in
9586   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9587   *) enable_dlopen_self=unknown ;;
9588   esac
9589
9590   case $lt_cv_dlopen_self_static in
9591   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9592   *) enable_dlopen_self_static=unknown ;;
9593   esac
9594 fi
9595
9596
9597 # Report which library types will actually be built
9598 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9599 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9600 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9601 echo "${ECHO_T}$can_build_shared" >&6
9602
9603 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9604 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9605 test "$can_build_shared" = "no" && enable_shared=no
9606
9607 # On AIX, shared libraries and static libraries use the same namespace, and
9608 # are all built from PIC.
9609 case $host_os in
9610 aix3*)
9611   test "$enable_shared" = yes && enable_static=no
9612   if test -n "$RANLIB"; then
9613     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9614     postinstall_cmds='$RANLIB $lib'
9615   fi
9616   ;;
9617
9618 aix4* | aix5*)
9619   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9620     test "$enable_shared" = yes && enable_static=no
9621   fi
9622     ;;
9623 esac
9624 echo "$as_me:$LINENO: result: $enable_shared" >&5
9625 echo "${ECHO_T}$enable_shared" >&6
9626
9627 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9628 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9629 # Make sure either enable_shared or enable_static is yes.
9630 test "$enable_shared" = yes || enable_static=yes
9631 echo "$as_me:$LINENO: result: $enable_static" >&5
9632 echo "${ECHO_T}$enable_static" >&6
9633
9634 # The else clause should only fire when bootstrapping the
9635 # libtool distribution, otherwise you forgot to ship ltmain.sh
9636 # with your package, and you will get complaints that there are
9637 # no rules to generate ltmain.sh.
9638 if test -f "$ltmain"; then
9639   # See if we are running on zsh, and set the options which allow our commands through
9640   # without removal of \ escapes.
9641   if test -n "${ZSH_VERSION+set}" ; then
9642     setopt NO_GLOB_SUBST
9643   fi
9644   # Now quote all the things that may contain metacharacters while being
9645   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9646   # variables and quote the copies for generation of the libtool script.
9647   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9648     SED SHELL STRIP \
9649     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9650     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9651     deplibs_check_method reload_flag reload_cmds need_locks \
9652     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9653     lt_cv_sys_global_symbol_to_c_name_address \
9654     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9655     old_postinstall_cmds old_postuninstall_cmds \
9656     compiler \
9657     CC \
9658     LD \
9659     lt_prog_compiler_wl \
9660     lt_prog_compiler_pic \
9661     lt_prog_compiler_static \
9662     lt_prog_compiler_no_builtin_flag \
9663     export_dynamic_flag_spec \
9664     thread_safe_flag_spec \
9665     whole_archive_flag_spec \
9666     enable_shared_with_static_runtimes \
9667     old_archive_cmds \
9668     old_archive_from_new_cmds \
9669     predep_objects \
9670     postdep_objects \
9671     predeps \
9672     postdeps \
9673     compiler_lib_search_path \
9674     archive_cmds \
9675     archive_expsym_cmds \
9676     postinstall_cmds \
9677     postuninstall_cmds \
9678     old_archive_from_expsyms_cmds \
9679     allow_undefined_flag \
9680     no_undefined_flag \
9681     export_symbols_cmds \
9682     hardcode_libdir_flag_spec \
9683     hardcode_libdir_flag_spec_ld \
9684     hardcode_libdir_separator \
9685     hardcode_automatic \
9686     module_cmds \
9687     module_expsym_cmds \
9688     lt_cv_prog_compiler_c_o \
9689     exclude_expsyms \
9690     include_expsyms; do
9691
9692     case $var in
9693     old_archive_cmds | \
9694     old_archive_from_new_cmds | \
9695     archive_cmds | \
9696     archive_expsym_cmds | \
9697     module_cmds | \
9698     module_expsym_cmds | \
9699     old_archive_from_expsyms_cmds | \
9700     export_symbols_cmds | \
9701     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9702     postinstall_cmds | postuninstall_cmds | \
9703     old_postinstall_cmds | old_postuninstall_cmds | \
9704     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9705       # Double-quote double-evaled strings.
9706       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9707       ;;
9708     *)
9709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9710       ;;
9711     esac
9712   done
9713
9714   case $lt_echo in
9715   *'\$0 --fallback-echo"')
9716     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9717     ;;
9718   esac
9719
9720 cfgfile="${ofile}T"
9721   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9722   $rm -f "$cfgfile"
9723   { echo "$as_me:$LINENO: creating $ofile" >&5
9724 echo "$as_me: creating $ofile" >&6;}
9725
9726   cat <<__EOF__ >> "$cfgfile"
9727 #! $SHELL
9728
9729 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9730 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9732 #
9733 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9734 # Free Software Foundation, Inc.
9735 #
9736 # This file is part of GNU Libtool:
9737 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9738 #
9739 # This program is free software; you can redistribute it and/or modify
9740 # it under the terms of the GNU General Public License as published by
9741 # the Free Software Foundation; either version 2 of the License, or
9742 # (at your option) any later version.
9743 #
9744 # This program is distributed in the hope that it will be useful, but
9745 # WITHOUT ANY WARRANTY; without even the implied warranty of
9746 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9747 # General Public License for more details.
9748 #
9749 # You should have received a copy of the GNU General Public License
9750 # along with this program; if not, write to the Free Software
9751 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9752 #
9753 # As a special exception to the GNU General Public License, if you
9754 # distribute this file as part of a program that contains a
9755 # configuration script generated by Autoconf, you may include it under
9756 # the same distribution terms that you use for the rest of that program.
9757
9758 # A sed program that does not truncate output.
9759 SED=$lt_SED
9760
9761 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9762 Xsed="$SED -e 1s/^X//"
9763
9764 # The HP-UX ksh and POSIX shell print the target directory to stdout
9765 # if CDPATH is set.
9766 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9767
9768 # The names of the tagged configurations supported by this script.
9769 available_tags=
9770
9771 # ### BEGIN LIBTOOL CONFIG
9772
9773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9774
9775 # Shell to use when invoking shell scripts.
9776 SHELL=$lt_SHELL
9777
9778 # Whether or not to build shared libraries.
9779 build_libtool_libs=$enable_shared
9780
9781 # Whether or not to build static libraries.
9782 build_old_libs=$enable_static
9783
9784 # Whether or not to add -lc for building shared libraries.
9785 build_libtool_need_lc=$archive_cmds_need_lc
9786
9787 # Whether or not to disallow shared libs when runtime libs are static
9788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9789
9790 # Whether or not to optimize for fast installation.
9791 fast_install=$enable_fast_install
9792
9793 # The host system.
9794 host_alias=$host_alias
9795 host=$host
9796 host_os=$host_os
9797
9798 # The build system.
9799 build_alias=$build_alias
9800 build=$build
9801 build_os=$build_os
9802
9803 # An echo program that does not interpret backslashes.
9804 echo=$lt_echo
9805
9806 # The archiver.
9807 AR=$lt_AR
9808 AR_FLAGS=$lt_AR_FLAGS
9809
9810 # A C compiler.
9811 LTCC=$lt_LTCC
9812
9813 # LTCC compiler flags.
9814 LTCFLAGS=$lt_LTCFLAGS
9815
9816 # A language-specific compiler.
9817 CC=$lt_compiler
9818
9819 # Is the compiler the GNU C compiler?
9820 with_gcc=$GCC
9821
9822 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9823 gcc_ver=\`gcc -dumpversion\`
9824
9825 # An ERE matcher.
9826 EGREP=$lt_EGREP
9827
9828 # The linker used to build libraries.
9829 LD=$lt_LD
9830
9831 # Whether we need hard or soft links.
9832 LN_S=$lt_LN_S
9833
9834 # A BSD-compatible nm program.
9835 NM=$lt_NM
9836
9837 # A symbol stripping program
9838 STRIP=$lt_STRIP
9839
9840 # Used to examine libraries when file_magic_cmd begins "file"
9841 MAGIC_CMD=$MAGIC_CMD
9842
9843 # Used on cygwin: DLL creation program.
9844 DLLTOOL="$DLLTOOL"
9845
9846 # Used on cygwin: object dumper.
9847 OBJDUMP="$OBJDUMP"
9848
9849 # Used on cygwin: assembler.
9850 AS="$AS"
9851
9852 # The name of the directory that contains temporary libtool files.
9853 objdir=$objdir
9854
9855 # How to create reloadable object files.
9856 reload_flag=$lt_reload_flag
9857 reload_cmds=$lt_reload_cmds
9858
9859 # How to pass a linker flag through the compiler.
9860 wl=$lt_lt_prog_compiler_wl
9861
9862 # Object file suffix (normally "o").
9863 objext="$ac_objext"
9864
9865 # Old archive suffix (normally "a").
9866 libext="$libext"
9867
9868 # Shared library suffix (normally ".so").
9869 shrext_cmds='$shrext_cmds'
9870
9871 # Executable file suffix (normally "").
9872 exeext="$exeext"
9873
9874 # Additional compiler flags for building library objects.
9875 pic_flag=$lt_lt_prog_compiler_pic
9876 pic_mode=$pic_mode
9877
9878 # What is the maximum length of a command?
9879 max_cmd_len=$lt_cv_sys_max_cmd_len
9880
9881 # Does compiler simultaneously support -c and -o options?
9882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9883
9884 # Must we lock files when doing compilation?
9885 need_locks=$lt_need_locks
9886
9887 # Do we need the lib prefix for modules?
9888 need_lib_prefix=$need_lib_prefix
9889
9890 # Do we need a version for libraries?
9891 need_version=$need_version
9892
9893 # Whether dlopen is supported.
9894 dlopen_support=$enable_dlopen
9895
9896 # Whether dlopen of programs is supported.
9897 dlopen_self=$enable_dlopen_self
9898
9899 # Whether dlopen of statically linked programs is supported.
9900 dlopen_self_static=$enable_dlopen_self_static
9901
9902 # Compiler flag to prevent dynamic linking.
9903 link_static_flag=$lt_lt_prog_compiler_static
9904
9905 # Compiler flag to turn off builtin functions.
9906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9907
9908 # Compiler flag to allow reflexive dlopens.
9909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9910
9911 # Compiler flag to generate shared objects directly from archives.
9912 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9913
9914 # Compiler flag to generate thread-safe objects.
9915 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9916
9917 # Library versioning type.
9918 version_type=$version_type
9919
9920 # Format of library name prefix.
9921 libname_spec=$lt_libname_spec
9922
9923 # List of archive names.  First name is the real one, the rest are links.
9924 # The last name is the one that the linker finds with -lNAME.
9925 library_names_spec=$lt_library_names_spec
9926
9927 # The coded name of the library, if different from the real name.
9928 soname_spec=$lt_soname_spec
9929
9930 # Commands used to build and install an old-style archive.
9931 RANLIB=$lt_RANLIB
9932 old_archive_cmds=$lt_old_archive_cmds
9933 old_postinstall_cmds=$lt_old_postinstall_cmds
9934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9935
9936 # Create an old-style archive from a shared archive.
9937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9938
9939 # Create a temporary old-style archive to link instead of a shared archive.
9940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9941
9942 # Commands used to build and install a shared archive.
9943 archive_cmds=$lt_archive_cmds
9944 archive_expsym_cmds=$lt_archive_expsym_cmds
9945 postinstall_cmds=$lt_postinstall_cmds
9946 postuninstall_cmds=$lt_postuninstall_cmds
9947
9948 # Commands used to build a loadable module (assumed same as above if empty)
9949 module_cmds=$lt_module_cmds
9950 module_expsym_cmds=$lt_module_expsym_cmds
9951
9952 # Commands to strip libraries.
9953 old_striplib=$lt_old_striplib
9954 striplib=$lt_striplib
9955
9956 # Dependencies to place before the objects being linked to create a
9957 # shared library.
9958 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9959
9960 # Dependencies to place after the objects being linked to create a
9961 # shared library.
9962 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9963
9964 # Dependencies to place before the objects being linked to create a
9965 # shared library.
9966 predeps=$lt_predeps
9967
9968 # Dependencies to place after the objects being linked to create a
9969 # shared library.
9970 postdeps=$lt_postdeps
9971
9972 # The library search path used internally by the compiler when linking
9973 # a shared library.
9974 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9975
9976 # Method to check whether dependent libraries are shared objects.
9977 deplibs_check_method=$lt_deplibs_check_method
9978
9979 # Command to use when deplibs_check_method == file_magic.
9980 file_magic_cmd=$lt_file_magic_cmd
9981
9982 # Flag that allows shared libraries with undefined symbols to be built.
9983 allow_undefined_flag=$lt_allow_undefined_flag
9984
9985 # Flag that forces no undefined symbols.
9986 no_undefined_flag=$lt_no_undefined_flag
9987
9988 # Commands used to finish a libtool library installation in a directory.
9989 finish_cmds=$lt_finish_cmds
9990
9991 # Same as above, but a single script fragment to be evaled but not shown.
9992 finish_eval=$lt_finish_eval
9993
9994 # Take the output of nm and produce a listing of raw symbols and C names.
9995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9996
9997 # Transform the output of nm in a proper C declaration
9998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9999
10000 # Transform the output of nm in a C name address pair
10001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10002
10003 # This is the shared library runtime path variable.
10004 runpath_var=$runpath_var
10005
10006 # This is the shared library path variable.
10007 shlibpath_var=$shlibpath_var
10008
10009 # Is shlibpath searched before the hard-coded library search path?
10010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10011
10012 # How to hardcode a shared library path into an executable.
10013 hardcode_action=$hardcode_action
10014
10015 # Whether we should hardcode library paths into libraries.
10016 hardcode_into_libs=$hardcode_into_libs
10017
10018 # Flag to hardcode \$libdir into a binary during linking.
10019 # This must work even if \$libdir does not exist.
10020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10021
10022 # If ld is used when linking, flag to hardcode \$libdir into
10023 # a binary during linking. This must work even if \$libdir does
10024 # not exist.
10025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10026
10027 # Whether we need a single -rpath flag with a separated argument.
10028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10029
10030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031 # resulting binary.
10032 hardcode_direct=$hardcode_direct
10033
10034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035 # resulting binary.
10036 hardcode_minus_L=$hardcode_minus_L
10037
10038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039 # the resulting binary.
10040 hardcode_shlibpath_var=$hardcode_shlibpath_var
10041
10042 # Set to yes if building a shared library automatically hardcodes DIR into the library
10043 # and all subsequent libraries and executables linked against it.
10044 hardcode_automatic=$hardcode_automatic
10045
10046 # Variables whose values should be saved in libtool wrapper scripts and
10047 # restored at relink time.
10048 variables_saved_for_relink="$variables_saved_for_relink"
10049
10050 # Whether libtool must link a program against all its dependency libraries.
10051 link_all_deplibs=$link_all_deplibs
10052
10053 # Compile-time system search path for libraries
10054 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10055
10056 # Run-time system search path for libraries
10057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10058
10059 # Fix the shell variable \$srcfile for the compiler.
10060 fix_srcfile_path="$fix_srcfile_path"
10061
10062 # Set to yes if exported symbols are required.
10063 always_export_symbols=$always_export_symbols
10064
10065 # The commands to list exported symbols.
10066 export_symbols_cmds=$lt_export_symbols_cmds
10067
10068 # The commands to extract the exported symbol list from a shared archive.
10069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10070
10071 # Symbols that should not be listed in the preloaded symbols.
10072 exclude_expsyms=$lt_exclude_expsyms
10073
10074 # Symbols that must always be exported.
10075 include_expsyms=$lt_include_expsyms
10076
10077 # ### END LIBTOOL CONFIG
10078
10079 __EOF__
10080
10081
10082   case $host_os in
10083   aix3*)
10084     cat <<\EOF >> "$cfgfile"
10085
10086 # AIX sometimes has problems with the GCC collect2 program.  For some
10087 # reason, if we set the COLLECT_NAMES environment variable, the problems
10088 # vanish in a puff of smoke.
10089 if test "X${COLLECT_NAMES+set}" != Xset; then
10090   COLLECT_NAMES=
10091   export COLLECT_NAMES
10092 fi
10093 EOF
10094     ;;
10095   esac
10096
10097   # We use sed instead of cat because bash on DJGPP gets confused if
10098   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10099   # text mode, it properly converts lines to CR/LF.  This bash problem
10100   # is reportedly fixed, but why not run on old versions too?
10101   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10102
10103   mv -f "$cfgfile" "$ofile" || \
10104     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10105   chmod +x "$ofile"
10106
10107 else
10108   # If there is no Makefile yet, we rely on a make rule to execute
10109   # `config.status --recheck' to rerun these tests and create the
10110   # libtool script then.
10111   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112   if test -f "$ltmain_in"; then
10113     test -f Makefile && make "$ltmain"
10114   fi
10115 fi
10116
10117
10118 ac_ext=c
10119 ac_cpp='$CPP $CPPFLAGS'
10120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10123
10124 CC="$lt_save_CC"
10125
10126
10127 # Check whether --with-tags or --without-tags was given.
10128 if test "${with_tags+set}" = set; then
10129   withval="$with_tags"
10130   tagnames="$withval"
10131 fi;
10132
10133 if test -f "$ltmain" && test -n "$tagnames"; then
10134   if test ! -f "${ofile}"; then
10135     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10137   fi
10138
10139   if test -z "$LTCC"; then
10140     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141     if test -z "$LTCC"; then
10142       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10144     else
10145       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10147     fi
10148   fi
10149   if test -z "$LTCFLAGS"; then
10150     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10151   fi
10152
10153   # Extract list of available tagged configurations in $ofile.
10154   # Note that this assumes the entire list is on one line.
10155   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10156
10157   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10158   for tagname in $tagnames; do
10159     IFS="$lt_save_ifs"
10160     # Check whether tagname contains only valid characters
10161     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10162     "") ;;
10163     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10164 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10165    { (exit 1); exit 1; }; }
10166         ;;
10167     esac
10168
10169     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10170     then
10171       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10172 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10173    { (exit 1); exit 1; }; }
10174     fi
10175
10176     # Update the list of available tags.
10177     if test -n "$tagname"; then
10178       echo appending configuration tag \"$tagname\" to $ofile
10179
10180       case $tagname in
10181       CXX)
10182         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10183             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10184             (test "X$CXX" != "Xg++"))) ; then
10185           ac_ext=cc
10186 ac_cpp='$CXXCPP $CPPFLAGS'
10187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10190
10191
10192
10193
10194 archive_cmds_need_lc_CXX=no
10195 allow_undefined_flag_CXX=
10196 always_export_symbols_CXX=no
10197 archive_expsym_cmds_CXX=
10198 export_dynamic_flag_spec_CXX=
10199 hardcode_direct_CXX=no
10200 hardcode_libdir_flag_spec_CXX=
10201 hardcode_libdir_flag_spec_ld_CXX=
10202 hardcode_libdir_separator_CXX=
10203 hardcode_minus_L_CXX=no
10204 hardcode_shlibpath_var_CXX=unsupported
10205 hardcode_automatic_CXX=no
10206 module_cmds_CXX=
10207 module_expsym_cmds_CXX=
10208 link_all_deplibs_CXX=unknown
10209 old_archive_cmds_CXX=$old_archive_cmds
10210 no_undefined_flag_CXX=
10211 whole_archive_flag_spec_CXX=
10212 enable_shared_with_static_runtimes_CXX=no
10213
10214 # Dependencies to place before and after the object being linked:
10215 predep_objects_CXX=
10216 postdep_objects_CXX=
10217 predeps_CXX=
10218 postdeps_CXX=
10219 compiler_lib_search_path_CXX=
10220
10221 # Source file extension for C++ test sources.
10222 ac_ext=cpp
10223
10224 # Object file extension for compiled C++ test sources.
10225 objext=o
10226 objext_CXX=$objext
10227
10228 # Code to be used in simple compile tests
10229 lt_simple_compile_test_code="int some_variable = 0;\n"
10230
10231 # Code to be used in simple link tests
10232 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10233
10234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10235
10236 # If no C compiler was specified, use CC.
10237 LTCC=${LTCC-"$CC"}
10238
10239 # If no C compiler flags were specified, use CFLAGS.
10240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10241
10242 # Allow CC to be a program name with arguments.
10243 compiler=$CC
10244
10245
10246 # save warnings/boilerplate of simple test code
10247 ac_outfile=conftest.$ac_objext
10248 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10250 _lt_compiler_boilerplate=`cat conftest.err`
10251 $rm conftest*
10252
10253 ac_outfile=conftest.$ac_objext
10254 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10256 _lt_linker_boilerplate=`cat conftest.err`
10257 $rm conftest*
10258
10259
10260 # Allow CC to be a program name with arguments.
10261 lt_save_CC=$CC
10262 lt_save_LD=$LD
10263 lt_save_GCC=$GCC
10264 GCC=$GXX
10265 lt_save_with_gnu_ld=$with_gnu_ld
10266 lt_save_path_LD=$lt_cv_path_LD
10267 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10268   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10269 else
10270   $as_unset lt_cv_prog_gnu_ld
10271 fi
10272 if test -n "${lt_cv_path_LDCXX+set}"; then
10273   lt_cv_path_LD=$lt_cv_path_LDCXX
10274 else
10275   $as_unset lt_cv_path_LD
10276 fi
10277 test -z "${LDCXX+set}" || LD=$LDCXX
10278 CC=${CXX-"c++"}
10279 compiler=$CC
10280 compiler_CXX=$CC
10281 for cc_temp in $compiler""; do
10282   case $cc_temp in
10283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10285     \-*) ;;
10286     *) break;;
10287   esac
10288 done
10289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10290
10291
10292 # We don't want -fno-exception wen compiling C++ code, so set the
10293 # no_builtin_flag separately
10294 if test "$GXX" = yes; then
10295   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10296 else
10297   lt_prog_compiler_no_builtin_flag_CXX=
10298 fi
10299
10300 if test "$GXX" = yes; then
10301   # Set up default GNU C++ configuration
10302
10303
10304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10305 if test "${with_gnu_ld+set}" = set; then
10306   withval="$with_gnu_ld"
10307   test "$withval" = no || with_gnu_ld=yes
10308 else
10309   with_gnu_ld=no
10310 fi;
10311 ac_prog=ld
10312 if test "$GCC" = yes; then
10313   # Check if gcc -print-prog-name=ld gives a path.
10314   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10315 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10316   case $host in
10317   *-*-mingw*)
10318     # gcc leaves a trailing carriage return which upsets mingw
10319     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10320   *)
10321     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10322   esac
10323   case $ac_prog in
10324     # Accept absolute paths.
10325     [\\/]* | ?:[\\/]*)
10326       re_direlt='/[^/][^/]*/\.\./'
10327       # Canonicalize the pathname of ld
10328       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10329       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10330         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10331       done
10332       test -z "$LD" && LD="$ac_prog"
10333       ;;
10334   "")
10335     # If it fails, then pretend we aren't using GCC.
10336     ac_prog=ld
10337     ;;
10338   *)
10339     # If it is relative, then search for the first ld in PATH.
10340     with_gnu_ld=unknown
10341     ;;
10342   esac
10343 elif test "$with_gnu_ld" = yes; then
10344   echo "$as_me:$LINENO: checking for GNU ld" >&5
10345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10346 else
10347   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10349 fi
10350 if test "${lt_cv_path_LD+set}" = set; then
10351   echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353   if test -z "$LD"; then
10354   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10355   for ac_dir in $PATH; do
10356     IFS="$lt_save_ifs"
10357     test -z "$ac_dir" && ac_dir=.
10358     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10359       lt_cv_path_LD="$ac_dir/$ac_prog"
10360       # Check to see if the program is GNU ld.  I'd rather use --version,
10361       # but apparently some variants of GNU ld only accept -v.
10362       # Break only if it was the GNU/non-GNU ld that we prefer.
10363       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10364       *GNU* | *'with BFD'*)
10365         test "$with_gnu_ld" != no && break
10366         ;;
10367       *)
10368         test "$with_gnu_ld" != yes && break
10369         ;;
10370       esac
10371     fi
10372   done
10373   IFS="$lt_save_ifs"
10374 else
10375   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10376 fi
10377 fi
10378
10379 LD="$lt_cv_path_LD"
10380 if test -n "$LD"; then
10381   echo "$as_me:$LINENO: result: $LD" >&5
10382 echo "${ECHO_T}$LD" >&6
10383 else
10384   echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10386 fi
10387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10389    { (exit 1); exit 1; }; }
10390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10396 case `$LD -v 2>&1 </dev/null` in
10397 *GNU* | *'with BFD'*)
10398   lt_cv_prog_gnu_ld=yes
10399   ;;
10400 *)
10401   lt_cv_prog_gnu_ld=no
10402   ;;
10403 esac
10404 fi
10405 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10406 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10407 with_gnu_ld=$lt_cv_prog_gnu_ld
10408
10409
10410
10411   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10412   # archiving commands below assume that GNU ld is being used.
10413   if test "$with_gnu_ld" = yes; then
10414     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415     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'
10416
10417     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10418     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10419
10420     # If archive_cmds runs LD, not CC, wlarc should be empty
10421     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10422     #     investigate it a little bit more. (MM)
10423     wlarc='${wl}'
10424
10425     # ancient GNU ld didn't support --whole-archive et. al.
10426     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10427         grep 'no-whole-archive' > /dev/null; then
10428       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10429     else
10430       whole_archive_flag_spec_CXX=
10431     fi
10432   else
10433     with_gnu_ld=no
10434     wlarc=
10435
10436     # A generic and very simple default shared library creation
10437     # command for GNU C++ for the case where it uses the native
10438     # linker, instead of GNU ld.  If possible, this setting should
10439     # overridden to take advantage of the native linker features on
10440     # the platform it is being used on.
10441     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10442   fi
10443
10444   # Commands to make compiler produce verbose output that lists
10445   # what "hidden" libraries, object files and flags are used when
10446   # linking a shared library.
10447   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10448
10449 else
10450   GXX=no
10451   with_gnu_ld=no
10452   wlarc=
10453 fi
10454
10455 # PORTME: fill in a description of your system's C++ link characteristics
10456 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10458 ld_shlibs_CXX=yes
10459 case $host_os in
10460   aix3*)
10461     # FIXME: insert proper C++ library support
10462     ld_shlibs_CXX=no
10463     ;;
10464   aix4* | aix5*)
10465     if test "$host_cpu" = ia64; then
10466       # On IA64, the linker does run time linking by default, so we don't
10467       # have to do anything special.
10468       aix_use_runtimelinking=no
10469       exp_sym_flag='-Bexport'
10470       no_entry_flag=""
10471     else
10472       aix_use_runtimelinking=no
10473
10474       # Test if we are trying to use run time linking or normal
10475       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10476       # need to do runtime linking.
10477       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10478         for ld_flag in $LDFLAGS; do
10479           case $ld_flag in
10480           *-brtl*)
10481             aix_use_runtimelinking=yes
10482             break
10483             ;;
10484           esac
10485         done
10486         ;;
10487       esac
10488
10489       exp_sym_flag='-bexport'
10490       no_entry_flag='-bnoentry'
10491     fi
10492
10493     # When large executables or shared objects are built, AIX ld can
10494     # have problems creating the table of contents.  If linking a library
10495     # or program results in "error TOC overflow" add -mminimal-toc to
10496     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10497     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10498
10499     archive_cmds_CXX=''
10500     hardcode_direct_CXX=yes
10501     hardcode_libdir_separator_CXX=':'
10502     link_all_deplibs_CXX=yes
10503
10504     if test "$GXX" = yes; then
10505       case $host_os in aix4.[012]|aix4.[012].*)
10506       # We only want to do this on AIX 4.2 and lower, the check
10507       # below for broken collect2 doesn't work under 4.3+
10508         collect2name=`${CC} -print-prog-name=collect2`
10509         if test -f "$collect2name" && \
10510            strings "$collect2name" | grep resolve_lib_name >/dev/null
10511         then
10512           # We have reworked collect2
10513           hardcode_direct_CXX=yes
10514         else
10515           # We have old collect2
10516           hardcode_direct_CXX=unsupported
10517           # It fails to find uninstalled libraries when the uninstalled
10518           # path is not listed in the libpath.  Setting hardcode_minus_L
10519           # to unsupported forces relinking
10520           hardcode_minus_L_CXX=yes
10521           hardcode_libdir_flag_spec_CXX='-L$libdir'
10522           hardcode_libdir_separator_CXX=
10523         fi
10524         ;;
10525       esac
10526       shared_flag='-shared'
10527       if test "$aix_use_runtimelinking" = yes; then
10528         shared_flag="$shared_flag "'${wl}-G'
10529       fi
10530     else
10531       # not using gcc
10532       if test "$host_cpu" = ia64; then
10533         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10534         # chokes on -Wl,-G. The following line is correct:
10535         shared_flag='-G'
10536       else
10537         if test "$aix_use_runtimelinking" = yes; then
10538           shared_flag='${wl}-G'
10539         else
10540           shared_flag='${wl}-bM:SRE'
10541         fi
10542       fi
10543     fi
10544
10545     # It seems that -bexpall does not export symbols beginning with
10546     # underscore (_), so it is better to generate a list of symbols to export.
10547     always_export_symbols_CXX=yes
10548     if test "$aix_use_runtimelinking" = yes; then
10549       # Warning - without using the other runtime loading flags (-brtl),
10550       # -berok will link without error, but may produce a broken library.
10551       allow_undefined_flag_CXX='-berok'
10552       # Determine the default libpath from the value encoded in an empty executable.
10553       cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559
10560 int
10561 main ()
10562 {
10563
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570   (eval $ac_link) 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } &&
10577          { ac_try='test -z "$ac_cxx_werror_flag"
10578                          || test ! -s conftest.err'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; } &&
10584          { ac_try='test -s conftest$ac_exeext'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }; then
10590
10591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10592 }'`
10593 # Check for a 64-bit object if we didn't find anything.
10594 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; }
10595 }'`; fi
10596 else
10597   echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10599
10600 fi
10601 rm -f conftest.err conftest.$ac_objext \
10602       conftest$ac_exeext conftest.$ac_ext
10603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10604
10605       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10606
10607       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10608      else
10609       if test "$host_cpu" = ia64; then
10610         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10611         allow_undefined_flag_CXX="-z nodefs"
10612         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10613       else
10614         # Determine the default libpath from the value encoded in an empty executable.
10615         cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h.  */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h.  */
10621
10622 int
10623 main ()
10624 {
10625
10626   ;
10627   return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632   (eval $ac_link) 2>conftest.er1
10633   ac_status=$?
10634   grep -v '^ *+' conftest.er1 >conftest.err
10635   rm -f conftest.er1
10636   cat conftest.err >&5
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -z "$ac_cxx_werror_flag"
10640                          || test ! -s conftest.err'
10641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642   (eval $ac_try) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }; } &&
10646          { ac_try='test -s conftest$ac_exeext'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; }; then
10652
10653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10654 }'`
10655 # Check for a 64-bit object if we didn't find anything.
10656 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; }
10657 }'`; fi
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662 fi
10663 rm -f conftest.err conftest.$ac_objext \
10664       conftest$ac_exeext conftest.$ac_ext
10665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10666
10667         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10668         # Warning - without using the other run time loading flags,
10669         # -berok will link without error, but may produce a broken library.
10670         no_undefined_flag_CXX=' ${wl}-bernotok'
10671         allow_undefined_flag_CXX=' ${wl}-berok'
10672         # Exported symbols can be pulled into shared objects from archives
10673         whole_archive_flag_spec_CXX='$convenience'
10674         archive_cmds_need_lc_CXX=yes
10675         # This is similar to how AIX traditionally builds its shared libraries.
10676         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10677       fi
10678     fi
10679     ;;
10680
10681   beos*)
10682     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10683       allow_undefined_flag_CXX=unsupported
10684       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10685       # support --undefined.  This deserves some investigation.  FIXME
10686       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687     else
10688       ld_shlibs_CXX=no
10689     fi
10690     ;;
10691
10692   chorus*)
10693     case $cc_basename in
10694       *)
10695         # FIXME: insert proper C++ library support
10696         ld_shlibs_CXX=no
10697         ;;
10698     esac
10699     ;;
10700
10701   cygwin* | mingw* | pw32*)
10702     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10703     # as there is no search path for DLLs.
10704     hardcode_libdir_flag_spec_CXX='-L$libdir'
10705     allow_undefined_flag_CXX=unsupported
10706     always_export_symbols_CXX=no
10707     enable_shared_with_static_runtimes_CXX=yes
10708
10709     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10710       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10711       # If the export-symbols file already is a .def file (1st line
10712       # is EXPORTS), use it as is; otherwise, prepend...
10713       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10714         cp $export_symbols $output_objdir/$soname.def;
10715       else
10716         echo EXPORTS > $output_objdir/$soname.def;
10717         cat $export_symbols >> $output_objdir/$soname.def;
10718       fi~
10719       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10720     else
10721       ld_shlibs_CXX=no
10722     fi
10723   ;;
10724       darwin* | rhapsody*)
10725         case $host_os in
10726         rhapsody* | darwin1.[012])
10727          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10728          ;;
10729        *) # Darwin 1.3 on
10730          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10731            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10732          else
10733            case ${MACOSX_DEPLOYMENT_TARGET} in
10734              10.[012])
10735                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10736                ;;
10737              10.*)
10738                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10739                ;;
10740            esac
10741          fi
10742          ;;
10743         esac
10744       archive_cmds_need_lc_CXX=no
10745       hardcode_direct_CXX=no
10746       hardcode_automatic_CXX=yes
10747       hardcode_shlibpath_var_CXX=unsupported
10748       whole_archive_flag_spec_CXX=''
10749       link_all_deplibs_CXX=yes
10750
10751     if test "$GXX" = yes ; then
10752       lt_int_apple_cc_single_mod=no
10753       output_verbose_link_cmd='echo'
10754       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10755        lt_int_apple_cc_single_mod=yes
10756       fi
10757       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10758        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10759       else
10760           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10761         fi
10762         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10763         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10764           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10765             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}'
10766           else
10767             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10768           fi
10769             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}'
10770       else
10771       case $cc_basename in
10772         xlc*)
10773          output_verbose_link_cmd='echo'
10774           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10775           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10776           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10777           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10778           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}'
10779           ;;
10780        *)
10781          ld_shlibs_CXX=no
10782           ;;
10783       esac
10784       fi
10785         ;;
10786
10787   dgux*)
10788     case $cc_basename in
10789       ec++*)
10790         # FIXME: insert proper C++ library support
10791         ld_shlibs_CXX=no
10792         ;;
10793       ghcx*)
10794         # Green Hills C++ Compiler
10795         # FIXME: insert proper C++ library support
10796         ld_shlibs_CXX=no
10797         ;;
10798       *)
10799         # FIXME: insert proper C++ library support
10800         ld_shlibs_CXX=no
10801         ;;
10802     esac
10803     ;;
10804   freebsd[12]*)
10805     # C++ shared libraries reported to be fairly broken before switch to ELF
10806     ld_shlibs_CXX=no
10807     ;;
10808   freebsd-elf*)
10809     archive_cmds_need_lc_CXX=no
10810     ;;
10811   freebsd* | kfreebsd*-gnu | dragonfly*)
10812     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10813     # conventions
10814     ld_shlibs_CXX=yes
10815     ;;
10816   gnu*)
10817     ;;
10818   hpux9*)
10819     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10820     hardcode_libdir_separator_CXX=:
10821     export_dynamic_flag_spec_CXX='${wl}-E'
10822     hardcode_direct_CXX=yes
10823     hardcode_minus_L_CXX=yes # Not in the search PATH,
10824                                 # but as the default
10825                                 # location of the library.
10826
10827     case $cc_basename in
10828     CC*)
10829       # FIXME: insert proper C++ library support
10830       ld_shlibs_CXX=no
10831       ;;
10832     aCC*)
10833       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'
10834       # Commands to make compiler produce verbose output that lists
10835       # what "hidden" libraries, object files and flags are used when
10836       # linking a shared library.
10837       #
10838       # There doesn't appear to be a way to prevent this compiler from
10839       # explicitly linking system object files so we need to strip them
10840       # from the output so that they don't get included in the library
10841       # dependencies.
10842       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'
10843       ;;
10844     *)
10845       if test "$GXX" = yes; then
10846         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'
10847       else
10848         # FIXME: insert proper C++ library support
10849         ld_shlibs_CXX=no
10850       fi
10851       ;;
10852     esac
10853     ;;
10854   hpux10*|hpux11*)
10855     if test $with_gnu_ld = no; then
10856       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10857       hardcode_libdir_separator_CXX=:
10858
10859       case $host_cpu in
10860       hppa*64*|ia64*)
10861         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10862         ;;
10863       *)
10864         export_dynamic_flag_spec_CXX='${wl}-E'
10865         ;;
10866       esac
10867     fi
10868     case $host_cpu in
10869     hppa*64*|ia64*)
10870       hardcode_direct_CXX=no
10871       hardcode_shlibpath_var_CXX=no
10872       ;;
10873     *)
10874       hardcode_direct_CXX=yes
10875       hardcode_minus_L_CXX=yes # Not in the search PATH,
10876                                               # but as the default
10877                                               # location of the library.
10878       ;;
10879     esac
10880
10881     case $cc_basename in
10882       CC*)
10883         # FIXME: insert proper C++ library support
10884         ld_shlibs_CXX=no
10885         ;;
10886       aCC*)
10887         case $host_cpu in
10888         hppa*64*)
10889           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10890           ;;
10891         ia64*)
10892           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10893           ;;
10894         *)
10895           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10896           ;;
10897         esac
10898         # Commands to make compiler produce verbose output that lists
10899         # what "hidden" libraries, object files and flags are used when
10900         # linking a shared library.
10901         #
10902         # There doesn't appear to be a way to prevent this compiler from
10903         # explicitly linking system object files so we need to strip them
10904         # from the output so that they don't get included in the library
10905         # dependencies.
10906         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'
10907         ;;
10908       *)
10909         if test "$GXX" = yes; then
10910           if test $with_gnu_ld = no; then
10911             case $host_cpu in
10912             hppa*64*)
10913               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10914               ;;
10915             ia64*)
10916               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10917               ;;
10918             *)
10919               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'
10920               ;;
10921             esac
10922           fi
10923         else
10924           # FIXME: insert proper C++ library support
10925           ld_shlibs_CXX=no
10926         fi
10927         ;;
10928     esac
10929     ;;
10930   interix3*)
10931     hardcode_direct_CXX=no
10932     hardcode_shlibpath_var_CXX=no
10933     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10934     export_dynamic_flag_spec_CXX='${wl}-E'
10935     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10936     # Instead, shared libraries are loaded at an image base (0x10000000 by
10937     # default) and relocated if they conflict, which is a slow very memory
10938     # consuming and fragmenting process.  To avoid this, we pick a random,
10939     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10940     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10941     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10942     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10943     ;;
10944   irix5* | irix6*)
10945     case $cc_basename in
10946       CC*)
10947         # SGI C++
10948         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10949
10950         # Archives containing C++ object files must be created using
10951         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10952         # necessary to make sure instantiated templates are included
10953         # in the archive.
10954         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10955         ;;
10956       *)
10957         if test "$GXX" = yes; then
10958           if test "$with_gnu_ld" = no; then
10959             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10960           else
10961             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'
10962           fi
10963         fi
10964         link_all_deplibs_CXX=yes
10965         ;;
10966     esac
10967     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10968     hardcode_libdir_separator_CXX=:
10969     ;;
10970   linux*)
10971     case $cc_basename in
10972       KCC*)
10973         # Kuck and Associates, Inc. (KAI) C++ Compiler
10974
10975         # KCC will only create a shared library if the output file
10976         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10977         # to its proper name (with version) after linking.
10978         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'
10979         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'
10980         # Commands to make compiler produce verbose output that lists
10981         # what "hidden" libraries, object files and flags are used when
10982         # linking a shared library.
10983         #
10984         # There doesn't appear to be a way to prevent this compiler from
10985         # explicitly linking system object files so we need to strip them
10986         # from the output so that they don't get included in the library
10987         # dependencies.
10988         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'
10989
10990         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10991         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10992
10993         # Archives containing C++ object files must be created using
10994         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10995         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10996         ;;
10997       icpc*)
10998         # Intel C++
10999         with_gnu_ld=yes
11000         # version 8.0 and above of icpc choke on multiply defined symbols
11001         # if we add $predep_objects and $postdep_objects, however 7.1 and
11002         # earlier do not add the objects themselves.
11003         case `$CC -V 2>&1` in
11004         *"Version 7."*)
11005           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006           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'
11007           ;;
11008         *)  # Version 8.0 or newer
11009           tmp_idyn=
11010           case $host_cpu in
11011             ia64*) tmp_idyn=' -i_dynamic';;
11012           esac
11013           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11014           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11015           ;;
11016         esac
11017         archive_cmds_need_lc_CXX=no
11018         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11020         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11021         ;;
11022       pgCC*)
11023         # Portland Group C++ compiler
11024         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11025         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11026
11027         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11029         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11030         ;;
11031       cxx*)
11032         # Compaq C++
11033         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034         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'
11035
11036         runpath_var=LD_RUN_PATH
11037         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11038         hardcode_libdir_separator_CXX=:
11039
11040         # Commands to make compiler produce verbose output that lists
11041         # what "hidden" libraries, object files and flags are used when
11042         # linking a shared library.
11043         #
11044         # There doesn't appear to be a way to prevent this compiler from
11045         # explicitly linking system object files so we need to strip them
11046         # from the output so that they don't get included in the library
11047         # dependencies.
11048         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'
11049         ;;
11050     esac
11051     ;;
11052   lynxos*)
11053     # FIXME: insert proper C++ library support
11054     ld_shlibs_CXX=no
11055     ;;
11056   m88k*)
11057     # FIXME: insert proper C++ library support
11058     ld_shlibs_CXX=no
11059     ;;
11060   mvs*)
11061     case $cc_basename in
11062       cxx*)
11063         # FIXME: insert proper C++ library support
11064         ld_shlibs_CXX=no
11065         ;;
11066       *)
11067         # FIXME: insert proper C++ library support
11068         ld_shlibs_CXX=no
11069         ;;
11070     esac
11071     ;;
11072   netbsd*)
11073     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11075       wlarc=
11076       hardcode_libdir_flag_spec_CXX='-R$libdir'
11077       hardcode_direct_CXX=yes
11078       hardcode_shlibpath_var_CXX=no
11079     fi
11080     # Workaround some broken pre-1.5 toolchains
11081     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11082     ;;
11083   openbsd2*)
11084     # C++ shared libraries are fairly broken
11085     ld_shlibs_CXX=no
11086     ;;
11087   openbsd*)
11088     hardcode_direct_CXX=yes
11089     hardcode_shlibpath_var_CXX=no
11090     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11091     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11092     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11093       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11094       export_dynamic_flag_spec_CXX='${wl}-E'
11095       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11096     fi
11097     output_verbose_link_cmd='echo'
11098     ;;
11099   osf3*)
11100     case $cc_basename in
11101       KCC*)
11102         # Kuck and Associates, Inc. (KAI) C++ Compiler
11103
11104         # KCC will only create a shared library if the output file
11105         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11106         # to its proper name (with version) after linking.
11107         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'
11108
11109         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11110         hardcode_libdir_separator_CXX=:
11111
11112         # Archives containing C++ object files must be created using
11113         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11114         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11115
11116         ;;
11117       RCC*)
11118         # Rational C++ 2.4.1
11119         # FIXME: insert proper C++ library support
11120         ld_shlibs_CXX=no
11121         ;;
11122       cxx*)
11123         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11124         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11125
11126         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11127         hardcode_libdir_separator_CXX=:
11128
11129         # Commands to make compiler produce verbose output that lists
11130         # what "hidden" libraries, object files and flags are used when
11131         # linking a shared library.
11132         #
11133         # There doesn't appear to be a way to prevent this compiler from
11134         # explicitly linking system object files so we need to strip them
11135         # from the output so that they don't get included in the library
11136         # dependencies.
11137         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'
11138         ;;
11139       *)
11140         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11141           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11142           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11143
11144           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11145           hardcode_libdir_separator_CXX=:
11146
11147           # Commands to make compiler produce verbose output that lists
11148           # what "hidden" libraries, object files and flags are used when
11149           # linking a shared library.
11150           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11151
11152         else
11153           # FIXME: insert proper C++ library support
11154           ld_shlibs_CXX=no
11155         fi
11156         ;;
11157     esac
11158     ;;
11159   osf4* | osf5*)
11160     case $cc_basename in
11161       KCC*)
11162         # Kuck and Associates, Inc. (KAI) C++ Compiler
11163
11164         # KCC will only create a shared library if the output file
11165         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11166         # to its proper name (with version) after linking.
11167         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'
11168
11169         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11170         hardcode_libdir_separator_CXX=:
11171
11172         # Archives containing C++ object files must be created using
11173         # the KAI C++ compiler.
11174         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11175         ;;
11176       RCC*)
11177         # Rational C++ 2.4.1
11178         # FIXME: insert proper C++ library support
11179         ld_shlibs_CXX=no
11180         ;;
11181       cxx*)
11182         allow_undefined_flag_CXX=' -expect_unresolved \*'
11183         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11184         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11185           echo "-hidden">> $lib.exp~
11186           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11187           $rm $lib.exp'
11188
11189         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11190         hardcode_libdir_separator_CXX=:
11191
11192         # Commands to make compiler produce verbose output that lists
11193         # what "hidden" libraries, object files and flags are used when
11194         # linking a shared library.
11195         #
11196         # There doesn't appear to be a way to prevent this compiler from
11197         # explicitly linking system object files so we need to strip them
11198         # from the output so that they don't get included in the library
11199         # dependencies.
11200         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'
11201         ;;
11202       *)
11203         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11204           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11205          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11206
11207           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11208           hardcode_libdir_separator_CXX=:
11209
11210           # Commands to make compiler produce verbose output that lists
11211           # what "hidden" libraries, object files and flags are used when
11212           # linking a shared library.
11213           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11214
11215         else
11216           # FIXME: insert proper C++ library support
11217           ld_shlibs_CXX=no
11218         fi
11219         ;;
11220     esac
11221     ;;
11222   psos*)
11223     # FIXME: insert proper C++ library support
11224     ld_shlibs_CXX=no
11225     ;;
11226   sunos4*)
11227     case $cc_basename in
11228       CC*)
11229         # Sun C++ 4.x
11230         # FIXME: insert proper C++ library support
11231         ld_shlibs_CXX=no
11232         ;;
11233       lcc*)
11234         # Lucid
11235         # FIXME: insert proper C++ library support
11236         ld_shlibs_CXX=no
11237         ;;
11238       *)
11239         # FIXME: insert proper C++ library support
11240         ld_shlibs_CXX=no
11241         ;;
11242     esac
11243     ;;
11244   solaris*)
11245     case $cc_basename in
11246       CC*)
11247         # Sun C++ 4.2, 5.x and Centerline C++
11248         archive_cmds_need_lc_CXX=yes
11249         no_undefined_flag_CXX=' -zdefs'
11250         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11251         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11252         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11253
11254         hardcode_libdir_flag_spec_CXX='-R$libdir'
11255         hardcode_shlibpath_var_CXX=no
11256         case $host_os in
11257           solaris2.[0-5] | solaris2.[0-5].*) ;;
11258           *)
11259             # The C++ compiler is used as linker so we must use $wl
11260             # flag to pass the commands to the underlying system
11261             # linker. We must also pass each convience library through
11262             # to the system linker between allextract/defaultextract.
11263             # The C++ compiler will combine linker options so we
11264             # cannot just pass the convience library names through
11265             # without $wl.
11266             # Supported since Solaris 2.6 (maybe 2.5.1?)
11267             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11268             ;;
11269         esac
11270         link_all_deplibs_CXX=yes
11271
11272         output_verbose_link_cmd='echo'
11273
11274         # Archives containing C++ object files must be created using
11275         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11276         # necessary to make sure instantiated templates are included
11277         # in the archive.
11278         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11279         ;;
11280       gcx*)
11281         # Green Hills C++ Compiler
11282         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11283
11284         # The C++ compiler must be used to create the archive.
11285         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11286         ;;
11287       *)
11288         # GNU C++ compiler with Solaris linker
11289         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11290           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11291           if $CC --version | grep -v '^2\.7' > /dev/null; then
11292             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11293             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11294                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11295
11296             # Commands to make compiler produce verbose output that lists
11297             # what "hidden" libraries, object files and flags are used when
11298             # linking a shared library.
11299             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11300           else
11301             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11302             # platform.
11303             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11304             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11305                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11306
11307             # Commands to make compiler produce verbose output that lists
11308             # what "hidden" libraries, object files and flags are used when
11309             # linking a shared library.
11310             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11311           fi
11312
11313           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11314         fi
11315         ;;
11316     esac
11317     ;;
11318   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11319     no_undefined_flag_CXX='${wl}-z,text'
11320     archive_cmds_need_lc_CXX=no
11321     hardcode_shlibpath_var_CXX=no
11322     runpath_var='LD_RUN_PATH'
11323
11324     case $cc_basename in
11325       CC*)
11326         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328         ;;
11329       *)
11330         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332         ;;
11333     esac
11334     ;;
11335   sysv5* | sco3.2v5* | sco5v6*)
11336     # Note: We can NOT use -z defs as we might desire, because we do not
11337     # link with -lc, and that would cause any symbols used from libc to
11338     # always be unresolved, which means just about no library would
11339     # ever link correctly.  If we're not using GNU ld we use -z text
11340     # though, which does catch some bad symbols but isn't as heavy-handed
11341     # as -z defs.
11342     # For security reasons, it is highly recommended that you always
11343     # use absolute paths for naming shared libraries, and exclude the
11344     # DT_RUNPATH tag from executables and libraries.  But doing so
11345     # requires that you compile everything twice, which is a pain.
11346     # So that behaviour is only enabled if SCOABSPATH is set to a
11347     # non-empty value in the environment.  Most likely only useful for
11348     # creating official distributions of packages.
11349     # This is a hack until libtool officially supports absolute path
11350     # names for shared libraries.
11351     no_undefined_flag_CXX='${wl}-z,text'
11352     allow_undefined_flag_CXX='${wl}-z,nodefs'
11353     archive_cmds_need_lc_CXX=no
11354     hardcode_shlibpath_var_CXX=no
11355     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11356     hardcode_libdir_separator_CXX=':'
11357     link_all_deplibs_CXX=yes
11358     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11359     runpath_var='LD_RUN_PATH'
11360
11361     case $cc_basename in
11362       CC*)
11363         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11364         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11365         ;;
11366       *)
11367         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11368         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11369         ;;
11370     esac
11371     ;;
11372   tandem*)
11373     case $cc_basename in
11374       NCC*)
11375         # NonStop-UX NCC 3.20
11376         # FIXME: insert proper C++ library support
11377         ld_shlibs_CXX=no
11378         ;;
11379       *)
11380         # FIXME: insert proper C++ library support
11381         ld_shlibs_CXX=no
11382         ;;
11383     esac
11384     ;;
11385   vxworks*)
11386     # FIXME: insert proper C++ library support
11387     ld_shlibs_CXX=no
11388     ;;
11389   *)
11390     # FIXME: insert proper C++ library support
11391     ld_shlibs_CXX=no
11392     ;;
11393 esac
11394 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11395 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11396 test "$ld_shlibs_CXX" = no && can_build_shared=no
11397
11398 GCC_CXX="$GXX"
11399 LD_CXX="$LD"
11400
11401
11402 cat > conftest.$ac_ext <<EOF
11403 class Foo
11404 {
11405 public:
11406   Foo (void) { a = 0; }
11407 private:
11408   int a;
11409 };
11410 EOF
11411
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413   (eval $ac_compile) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; then
11417   # Parse the compiler output and extract the necessary
11418   # objects, libraries and library flags.
11419
11420   # Sentinel used to keep track of whether or not we are before
11421   # the conftest object file.
11422   pre_test_object_deps_done=no
11423
11424   # The `*' in the case matches for architectures that use `case' in
11425   # $output_verbose_cmd can trigger glob expansion during the loop
11426   # eval without this substitution.
11427   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11428
11429   for p in `eval $output_verbose_link_cmd`; do
11430     case $p in
11431
11432     -L* | -R* | -l*)
11433        # Some compilers place space between "-{L,R}" and the path.
11434        # Remove the space.
11435        if test $p = "-L" \
11436           || test $p = "-R"; then
11437          prev=$p
11438          continue
11439        else
11440          prev=
11441        fi
11442
11443        if test "$pre_test_object_deps_done" = no; then
11444          case $p in
11445          -L* | -R*)
11446            # Internal compiler library paths should come after those
11447            # provided the user.  The postdeps already come after the
11448            # user supplied libs so there is no need to process them.
11449            if test -z "$compiler_lib_search_path_CXX"; then
11450              compiler_lib_search_path_CXX="${prev}${p}"
11451            else
11452              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11453            fi
11454            ;;
11455          # The "-l" case would never come before the object being
11456          # linked, so don't bother handling this case.
11457          esac
11458        else
11459          if test -z "$postdeps_CXX"; then
11460            postdeps_CXX="${prev}${p}"
11461          else
11462            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11463          fi
11464        fi
11465        ;;
11466
11467     *.$objext)
11468        # This assumes that the test object file only shows up
11469        # once in the compiler output.
11470        if test "$p" = "conftest.$objext"; then
11471          pre_test_object_deps_done=yes
11472          continue
11473        fi
11474
11475        if test "$pre_test_object_deps_done" = no; then
11476          if test -z "$predep_objects_CXX"; then
11477            predep_objects_CXX="$p"
11478          else
11479            predep_objects_CXX="$predep_objects_CXX $p"
11480          fi
11481        else
11482          if test -z "$postdep_objects_CXX"; then
11483            postdep_objects_CXX="$p"
11484          else
11485            postdep_objects_CXX="$postdep_objects_CXX $p"
11486          fi
11487        fi
11488        ;;
11489
11490     *) ;; # Ignore the rest.
11491
11492     esac
11493   done
11494
11495   # Clean up.
11496   rm -f a.out a.exe
11497 else
11498   echo "libtool.m4: error: problem compiling CXX test program"
11499 fi
11500
11501 $rm -f confest.$objext
11502
11503 # PORTME: override above test on systems where it is broken
11504 case $host_os in
11505 interix3*)
11506   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11507   # hack all around it, let's just trust "g++" to DTRT.
11508   predep_objects_CXX=
11509   postdep_objects_CXX=
11510   postdeps_CXX=
11511   ;;
11512
11513 solaris*)
11514   case $cc_basename in
11515   CC*)
11516     # Adding this requires a known-good setup of shared libraries for
11517     # Sun compiler versions before 5.6, else PIC objects from an old
11518     # archive will be linked into the output, leading to subtle bugs.
11519     postdeps_CXX='-lCstd -lCrun'
11520     ;;
11521   esac
11522   ;;
11523 esac
11524
11525
11526 case " $postdeps_CXX " in
11527 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11528 esac
11529
11530 lt_prog_compiler_wl_CXX=
11531 lt_prog_compiler_pic_CXX=
11532 lt_prog_compiler_static_CXX=
11533
11534 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11536
11537   # C++ specific cases for pic, static, wl, etc.
11538   if test "$GXX" = yes; then
11539     lt_prog_compiler_wl_CXX='-Wl,'
11540     lt_prog_compiler_static_CXX='-static'
11541
11542     case $host_os in
11543     aix*)
11544       # All AIX code is PIC.
11545       if test "$host_cpu" = ia64; then
11546         # AIX 5 now supports IA64 processor
11547         lt_prog_compiler_static_CXX='-Bstatic'
11548       fi
11549       ;;
11550     amigaos*)
11551       # FIXME: we need at least 68020 code to build shared libraries, but
11552       # adding the `-m68020' flag to GCC prevents building anything better,
11553       # like `-m68040'.
11554       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11555       ;;
11556     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11557       # PIC is the default for these OSes.
11558       ;;
11559     mingw* | os2* | pw32*)
11560       # This hack is so that the source file can tell whether it is being
11561       # built for inclusion in a dll (and should export symbols for example).
11562       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11563       ;;
11564     darwin* | rhapsody*)
11565       # PIC is the default on this platform
11566       # Common symbols not allowed in MH_DYLIB files
11567       lt_prog_compiler_pic_CXX='-fno-common'
11568       ;;
11569     *djgpp*)
11570       # DJGPP does not support shared libraries at all
11571       lt_prog_compiler_pic_CXX=
11572       ;;
11573     interix3*)
11574       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11575       # Instead, we relocate shared libraries at runtime.
11576       ;;
11577     sysv4*MP*)
11578       if test -d /usr/nec; then
11579         lt_prog_compiler_pic_CXX=-Kconform_pic
11580       fi
11581       ;;
11582     hpux*)
11583       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11584       # not for PA HP-UX.
11585       case $host_cpu in
11586       hppa*64*|ia64*)
11587         ;;
11588       *)
11589         lt_prog_compiler_pic_CXX='-fPIC'
11590         ;;
11591       esac
11592       ;;
11593     *)
11594       lt_prog_compiler_pic_CXX='-fPIC'
11595       ;;
11596     esac
11597   else
11598     case $host_os in
11599       aix4* | aix5*)
11600         # All AIX code is PIC.
11601         if test "$host_cpu" = ia64; then
11602           # AIX 5 now supports IA64 processor
11603           lt_prog_compiler_static_CXX='-Bstatic'
11604         else
11605           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11606         fi
11607         ;;
11608       chorus*)
11609         case $cc_basename in
11610         cxch68*)
11611           # Green Hills C++ Compiler
11612           # _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"
11613           ;;
11614         esac
11615         ;;
11616        darwin*)
11617          # PIC is the default on this platform
11618          # Common symbols not allowed in MH_DYLIB files
11619          case $cc_basename in
11620            xlc*)
11621            lt_prog_compiler_pic_CXX='-qnocommon'
11622            lt_prog_compiler_wl_CXX='-Wl,'
11623            ;;
11624          esac
11625        ;;
11626       dgux*)
11627         case $cc_basename in
11628           ec++*)
11629             lt_prog_compiler_pic_CXX='-KPIC'
11630             ;;
11631           ghcx*)
11632             # Green Hills C++ Compiler
11633             lt_prog_compiler_pic_CXX='-pic'
11634             ;;
11635           *)
11636             ;;
11637         esac
11638         ;;
11639       freebsd* | kfreebsd*-gnu | dragonfly*)
11640         # FreeBSD uses GNU C++
11641         ;;
11642       hpux9* | hpux10* | hpux11*)
11643         case $cc_basename in
11644           CC*)
11645             lt_prog_compiler_wl_CXX='-Wl,'
11646             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11647             if test "$host_cpu" != ia64; then
11648               lt_prog_compiler_pic_CXX='+Z'
11649             fi
11650             ;;
11651           aCC*)
11652             lt_prog_compiler_wl_CXX='-Wl,'
11653             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11654             case $host_cpu in
11655             hppa*64*|ia64*)
11656               # +Z the default
11657               ;;
11658             *)
11659               lt_prog_compiler_pic_CXX='+Z'
11660               ;;
11661             esac
11662             ;;
11663           *)
11664             ;;
11665         esac
11666         ;;
11667       interix*)
11668         # This is c89, which is MS Visual C++ (no shared libs)
11669         # Anyone wants to do a port?
11670         ;;
11671       irix5* | irix6* | nonstopux*)
11672         case $cc_basename in
11673           CC*)
11674             lt_prog_compiler_wl_CXX='-Wl,'
11675             lt_prog_compiler_static_CXX='-non_shared'
11676             # CC pic flag -KPIC is the default.
11677             ;;
11678           *)
11679             ;;
11680         esac
11681         ;;
11682       linux*)
11683         case $cc_basename in
11684           KCC*)
11685             # KAI C++ Compiler
11686             lt_prog_compiler_wl_CXX='--backend -Wl,'
11687             lt_prog_compiler_pic_CXX='-fPIC'
11688             ;;
11689           icpc* | ecpc*)
11690             # Intel C++
11691             lt_prog_compiler_wl_CXX='-Wl,'
11692             lt_prog_compiler_pic_CXX='-KPIC'
11693             lt_prog_compiler_static_CXX='-static'
11694             ;;
11695           pgCC*)
11696             # Portland Group C++ compiler.
11697             lt_prog_compiler_wl_CXX='-Wl,'
11698             lt_prog_compiler_pic_CXX='-fpic'
11699             lt_prog_compiler_static_CXX='-Bstatic'
11700             ;;
11701           cxx*)
11702             # Compaq C++
11703             # Make sure the PIC flag is empty.  It appears that all Alpha
11704             # Linux and Compaq Tru64 Unix objects are PIC.
11705             lt_prog_compiler_pic_CXX=
11706             lt_prog_compiler_static_CXX='-non_shared'
11707             ;;
11708           *)
11709             ;;
11710         esac
11711         ;;
11712       lynxos*)
11713         ;;
11714       m88k*)
11715         ;;
11716       mvs*)
11717         case $cc_basename in
11718           cxx*)
11719             lt_prog_compiler_pic_CXX='-W c,exportall'
11720             ;;
11721           *)
11722             ;;
11723         esac
11724         ;;
11725       netbsd*)
11726         ;;
11727       osf3* | osf4* | osf5*)
11728         case $cc_basename in
11729           KCC*)
11730             lt_prog_compiler_wl_CXX='--backend -Wl,'
11731             ;;
11732           RCC*)
11733             # Rational C++ 2.4.1
11734             lt_prog_compiler_pic_CXX='-pic'
11735             ;;
11736           cxx*)
11737             # Digital/Compaq C++
11738             lt_prog_compiler_wl_CXX='-Wl,'
11739             # Make sure the PIC flag is empty.  It appears that all Alpha
11740             # Linux and Compaq Tru64 Unix objects are PIC.
11741             lt_prog_compiler_pic_CXX=
11742             lt_prog_compiler_static_CXX='-non_shared'
11743             ;;
11744           *)
11745             ;;
11746         esac
11747         ;;
11748       psos*)
11749         ;;
11750       solaris*)
11751         case $cc_basename in
11752           CC*)
11753             # Sun C++ 4.2, 5.x and Centerline C++
11754             lt_prog_compiler_pic_CXX='-KPIC'
11755             lt_prog_compiler_static_CXX='-Bstatic'
11756             lt_prog_compiler_wl_CXX='-Qoption ld '
11757             ;;
11758           gcx*)
11759             # Green Hills C++ Compiler
11760             lt_prog_compiler_pic_CXX='-PIC'
11761             ;;
11762           *)
11763             ;;
11764         esac
11765         ;;
11766       sunos4*)
11767         case $cc_basename in
11768           CC*)
11769             # Sun C++ 4.x
11770             lt_prog_compiler_pic_CXX='-pic'
11771             lt_prog_compiler_static_CXX='-Bstatic'
11772             ;;
11773           lcc*)
11774             # Lucid
11775             lt_prog_compiler_pic_CXX='-pic'
11776             ;;
11777           *)
11778             ;;
11779         esac
11780         ;;
11781       tandem*)
11782         case $cc_basename in
11783           NCC*)
11784             # NonStop-UX NCC 3.20
11785             lt_prog_compiler_pic_CXX='-KPIC'
11786             ;;
11787           *)
11788             ;;
11789         esac
11790         ;;
11791       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11792         case $cc_basename in
11793           CC*)
11794             lt_prog_compiler_wl_CXX='-Wl,'
11795             lt_prog_compiler_pic_CXX='-KPIC'
11796             lt_prog_compiler_static_CXX='-Bstatic'
11797             ;;
11798         esac
11799         ;;
11800       vxworks*)
11801         ;;
11802       *)
11803         lt_prog_compiler_can_build_shared_CXX=no
11804         ;;
11805     esac
11806   fi
11807
11808 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11809 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11810
11811 #
11812 # Check to make sure the PIC flag actually works.
11813 #
11814 if test -n "$lt_prog_compiler_pic_CXX"; then
11815
11816 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11818 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   lt_prog_compiler_pic_works_CXX=no
11822   ac_outfile=conftest.$ac_objext
11823    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11824    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11825    # Insert the option either (1) after the last *FLAGS variable, or
11826    # (2) before a word containing "conftest.", or (3) at the end.
11827    # Note that $ac_compile itself does not contain backslashes and begins
11828    # with a dollar sign (not a hyphen), so the echo should work correctly.
11829    # The option is referenced via a variable to avoid confusing sed.
11830    lt_compile=`echo "$ac_compile" | $SED \
11831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11833    -e 's:$: $lt_compiler_flag:'`
11834    (eval echo "\"\$as_me:11834: $lt_compile\"" >&5)
11835    (eval "$lt_compile" 2>conftest.err)
11836    ac_status=$?
11837    cat conftest.err >&5
11838    echo "$as_me:11838: \$? = $ac_status" >&5
11839    if (exit $ac_status) && test -s "$ac_outfile"; then
11840      # The compiler can only warn and ignore the option if not recognized
11841      # So say no if there are warnings other than the usual output.
11842      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11843      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11844      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11845        lt_prog_compiler_pic_works_CXX=yes
11846      fi
11847    fi
11848    $rm conftest*
11849
11850 fi
11851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11852 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11853
11854 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11855     case $lt_prog_compiler_pic_CXX in
11856      "" | " "*) ;;
11857      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11858      esac
11859 else
11860     lt_prog_compiler_pic_CXX=
11861      lt_prog_compiler_can_build_shared_CXX=no
11862 fi
11863
11864 fi
11865 case $host_os in
11866   # For platforms which do not support PIC, -DPIC is meaningless:
11867   *djgpp*)
11868     lt_prog_compiler_pic_CXX=
11869     ;;
11870   *)
11871     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11872     ;;
11873 esac
11874
11875 #
11876 # Check to make sure the static flag actually works.
11877 #
11878 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11879 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11880 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11881 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   lt_prog_compiler_static_works_CXX=no
11885    save_LDFLAGS="$LDFLAGS"
11886    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11887    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11888    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11889      # The linker can only warn and ignore the option if not recognized
11890      # So say no if there are warnings
11891      if test -s conftest.err; then
11892        # Append any errors to the config.log.
11893        cat conftest.err 1>&5
11894        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11895        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11896        if diff conftest.exp conftest.er2 >/dev/null; then
11897          lt_prog_compiler_static_works_CXX=yes
11898        fi
11899      else
11900        lt_prog_compiler_static_works_CXX=yes
11901      fi
11902    fi
11903    $rm conftest*
11904    LDFLAGS="$save_LDFLAGS"
11905
11906 fi
11907 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11908 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11909
11910 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11911     :
11912 else
11913     lt_prog_compiler_static_CXX=
11914 fi
11915
11916
11917 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11919 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   lt_cv_prog_compiler_c_o_CXX=no
11923    $rm -r conftest 2>/dev/null
11924    mkdir conftest
11925    cd conftest
11926    mkdir out
11927    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11928
11929    lt_compiler_flag="-o out/conftest2.$ac_objext"
11930    # Insert the option either (1) after the last *FLAGS variable, or
11931    # (2) before a word containing "conftest.", or (3) at the end.
11932    # Note that $ac_compile itself does not contain backslashes and begins
11933    # with a dollar sign (not a hyphen), so the echo should work correctly.
11934    lt_compile=`echo "$ac_compile" | $SED \
11935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11937    -e 's:$: $lt_compiler_flag:'`
11938    (eval echo "\"\$as_me:11938: $lt_compile\"" >&5)
11939    (eval "$lt_compile" 2>out/conftest.err)
11940    ac_status=$?
11941    cat out/conftest.err >&5
11942    echo "$as_me:11942: \$? = $ac_status" >&5
11943    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11944    then
11945      # The compiler can only warn and ignore the option if not recognized
11946      # So say no if there are warnings
11947      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11948      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11949      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11950        lt_cv_prog_compiler_c_o_CXX=yes
11951      fi
11952    fi
11953    chmod u+w . 2>&5
11954    $rm conftest*
11955    # SGI C++ compiler will create directory out/ii_files/ for
11956    # template instantiation
11957    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11958    $rm out/* && rmdir out
11959    cd ..
11960    rmdir conftest
11961    $rm conftest*
11962
11963 fi
11964 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11966
11967
11968 hard_links="nottested"
11969 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11970   # do not overwrite the value of need_locks provided by the user
11971   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11973   hard_links=yes
11974   $rm conftest*
11975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11976   touch conftest.a
11977   ln conftest.a conftest.b 2>&5 || hard_links=no
11978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11979   echo "$as_me:$LINENO: result: $hard_links" >&5
11980 echo "${ECHO_T}$hard_links" >&6
11981   if test "$hard_links" = no; then
11982     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11984     need_locks=warn
11985   fi
11986 else
11987   need_locks=no
11988 fi
11989
11990 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11992
11993   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11994   case $host_os in
11995   aix4* | aix5*)
11996     # If we're using GNU nm, then we don't want the "-C" option.
11997     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11998     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11999       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'
12000     else
12001       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'
12002     fi
12003     ;;
12004   pw32*)
12005     export_symbols_cmds_CXX="$ltdll_cmds"
12006   ;;
12007   cygwin* | mingw*)
12008     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12009   ;;
12010   *)
12011     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12012   ;;
12013   esac
12014
12015 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12016 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12017 test "$ld_shlibs_CXX" = no && can_build_shared=no
12018
12019 #
12020 # Do we need to explicitly link libc?
12021 #
12022 case "x$archive_cmds_need_lc_CXX" in
12023 x|xyes)
12024   # Assume -lc should be added
12025   archive_cmds_need_lc_CXX=yes
12026
12027   if test "$enable_shared" = yes && test "$GCC" = yes; then
12028     case $archive_cmds_CXX in
12029     *'~'*)
12030       # FIXME: we may have to deal with multi-command sequences.
12031       ;;
12032     '$CC '*)
12033       # Test whether the compiler implicitly links with -lc since on some
12034       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12035       # to ld, don't add -lc before -lgcc.
12036       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12037 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12038       $rm conftest*
12039       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12040
12041       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042   (eval $ac_compile) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } 2>conftest.err; then
12046         soname=conftest
12047         lib=conftest
12048         libobjs=conftest.$ac_objext
12049         deplibs=
12050         wl=$lt_prog_compiler_wl_CXX
12051         pic_flag=$lt_prog_compiler_pic_CXX
12052         compiler_flags=-v
12053         linker_flags=-v
12054         verstring=
12055         output_objdir=.
12056         libname=conftest
12057         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12058         allow_undefined_flag_CXX=
12059         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12060   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }
12064         then
12065           archive_cmds_need_lc_CXX=no
12066         else
12067           archive_cmds_need_lc_CXX=yes
12068         fi
12069         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12070       else
12071         cat conftest.err 1>&5
12072       fi
12073       $rm conftest*
12074       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12075 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12076       ;;
12077     esac
12078   fi
12079   ;;
12080 esac
12081
12082 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12083 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12084 library_names_spec=
12085 libname_spec='lib$name'
12086 soname_spec=
12087 shrext_cmds=".so"
12088 postinstall_cmds=
12089 postuninstall_cmds=
12090 finish_cmds=
12091 finish_eval=
12092 shlibpath_var=
12093 shlibpath_overrides_runpath=unknown
12094 version_type=none
12095 dynamic_linker="$host_os ld.so"
12096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12097 if test "$GCC" = yes; then
12098   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12099   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12100     # if the path contains ";" then we assume it to be the separator
12101     # otherwise default to the standard path separator (i.e. ":") - it is
12102     # assumed that no part of a normal pathname contains ";" but that should
12103     # okay in the real world where ";" in dirpaths is itself problematic.
12104     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12105   else
12106     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12107   fi
12108 else
12109   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12110 fi
12111 need_lib_prefix=unknown
12112 hardcode_into_libs=no
12113
12114 # when you set need_version to no, make sure it does not cause -set_version
12115 # flags to be left without arguments
12116 need_version=unknown
12117
12118 case $host_os in
12119 aix3*)
12120   version_type=linux
12121   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12122   shlibpath_var=LIBPATH
12123
12124   # AIX 3 has no versioning support, so we append a major version to the name.
12125   soname_spec='${libname}${release}${shared_ext}$major'
12126   ;;
12127
12128 aix4* | aix5*)
12129   version_type=linux
12130   need_lib_prefix=no
12131   need_version=no
12132   hardcode_into_libs=yes
12133   if test "$host_cpu" = ia64; then
12134     # AIX 5 supports IA64
12135     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12136     shlibpath_var=LD_LIBRARY_PATH
12137   else
12138     # With GCC up to 2.95.x, collect2 would create an import file
12139     # for dependence libraries.  The import file would start with
12140     # the line `#! .'.  This would cause the generated library to
12141     # depend on `.', always an invalid library.  This was fixed in
12142     # development snapshots of GCC prior to 3.0.
12143     case $host_os in
12144       aix4 | aix4.[01] | aix4.[01].*)
12145       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12146            echo ' yes '
12147            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12148         :
12149       else
12150         can_build_shared=no
12151       fi
12152       ;;
12153     esac
12154     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12155     # soname into executable. Probably we can add versioning support to
12156     # collect2, so additional links can be useful in future.
12157     if test "$aix_use_runtimelinking" = yes; then
12158       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12159       # instead of lib<name>.a to let people know that these are not
12160       # typical AIX shared libraries.
12161       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162     else
12163       # We preserve .a as extension for shared libraries through AIX4.2
12164       # and later when we are not doing run time linking.
12165       library_names_spec='${libname}${release}.a $libname.a'
12166       soname_spec='${libname}${release}${shared_ext}$major'
12167     fi
12168     shlibpath_var=LIBPATH
12169   fi
12170   ;;
12171
12172 amigaos*)
12173   library_names_spec='$libname.ixlibrary $libname.a'
12174   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12175   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'
12176   ;;
12177
12178 beos*)
12179   library_names_spec='${libname}${shared_ext}'
12180   dynamic_linker="$host_os ld.so"
12181   shlibpath_var=LIBRARY_PATH
12182   ;;
12183
12184 bsdi[45]*)
12185   version_type=linux
12186   need_version=no
12187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188   soname_spec='${libname}${release}${shared_ext}$major'
12189   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12190   shlibpath_var=LD_LIBRARY_PATH
12191   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12192   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12193   # the default ld.so.conf also contains /usr/contrib/lib and
12194   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12195   # libtool to hard-code these into programs
12196   ;;
12197
12198 cygwin* | mingw* | pw32*)
12199   version_type=windows
12200   shrext_cmds=".dll"
12201   need_version=no
12202   need_lib_prefix=no
12203
12204   case $GCC,$host_os in
12205   yes,cygwin* | yes,mingw* | yes,pw32*)
12206     library_names_spec='$libname.dll.a'
12207     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12208     postinstall_cmds='base_file=`basename \${file}`~
12209       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12210       dldir=$destdir/`dirname \$dlpath`~
12211       test -d \$dldir || mkdir -p \$dldir~
12212       $install_prog $dir/$dlname \$dldir/$dlname~
12213       chmod a+x \$dldir/$dlname'
12214     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12215       dlpath=$dir/\$dldll~
12216        $rm \$dlpath'
12217     shlibpath_overrides_runpath=yes
12218
12219     case $host_os in
12220     cygwin*)
12221       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12222       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12223       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12224       ;;
12225     mingw*)
12226       # MinGW DLLs use traditional 'lib' prefix
12227       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12228       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12229       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12230         # It is most probably a Windows format PATH printed by
12231         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12232         # path with ; separators, and with drive letters. We can handle the
12233         # drive letters (cygwin fileutils understands them), so leave them,
12234         # especially as we might pass files found there to a mingw objdump,
12235         # which wouldn't understand a cygwinified path. Ahh.
12236         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12237       else
12238         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12239       fi
12240       ;;
12241     pw32*)
12242       # pw32 DLLs use 'pw' prefix rather than 'lib'
12243       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12244       ;;
12245     esac
12246     ;;
12247
12248   *)
12249     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12250     ;;
12251   esac
12252   dynamic_linker='Win32 ld.exe'
12253   # FIXME: first we should search . and the directory the executable is in
12254   shlibpath_var=PATH
12255   ;;
12256
12257 darwin* | rhapsody*)
12258   dynamic_linker="$host_os dyld"
12259   version_type=darwin
12260   need_lib_prefix=no
12261   need_version=no
12262   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12263   soname_spec='${libname}${release}${major}$shared_ext'
12264   shlibpath_overrides_runpath=yes
12265   shlibpath_var=DYLD_LIBRARY_PATH
12266   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12267   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12268   if test "$GCC" = yes; then
12269     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"`
12270   else
12271     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12272   fi
12273   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12274   ;;
12275
12276 dgux*)
12277   version_type=linux
12278   need_lib_prefix=no
12279   need_version=no
12280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12281   soname_spec='${libname}${release}${shared_ext}$major'
12282   shlibpath_var=LD_LIBRARY_PATH
12283   ;;
12284
12285 freebsd1*)
12286   dynamic_linker=no
12287   ;;
12288
12289 kfreebsd*-gnu)
12290   version_type=linux
12291   need_lib_prefix=no
12292   need_version=no
12293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294   soname_spec='${libname}${release}${shared_ext}$major'
12295   shlibpath_var=LD_LIBRARY_PATH
12296   shlibpath_overrides_runpath=no
12297   hardcode_into_libs=yes
12298   dynamic_linker='GNU ld.so'
12299   ;;
12300
12301 freebsd* | dragonfly*)
12302   # DragonFly does not have aout.  When/if they implement a new
12303   # versioning mechanism, adjust this.
12304   if test -x /usr/bin/objformat; then
12305     objformat=`/usr/bin/objformat`
12306   else
12307     case $host_os in
12308     freebsd[123]*) objformat=aout ;;
12309     *) objformat=elf ;;
12310     esac
12311   fi
12312   version_type=freebsd-$objformat
12313   case $version_type in
12314     freebsd-elf*)
12315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12316       need_version=no
12317       need_lib_prefix=no
12318       ;;
12319     freebsd-*)
12320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12321       need_version=yes
12322       ;;
12323   esac
12324   shlibpath_var=LD_LIBRARY_PATH
12325   case $host_os in
12326   freebsd2*)
12327     shlibpath_overrides_runpath=yes
12328     ;;
12329   freebsd3.[01]* | freebsdelf3.[01]*)
12330     shlibpath_overrides_runpath=yes
12331     hardcode_into_libs=yes
12332     ;;
12333   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12334   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12335     shlibpath_overrides_runpath=no
12336     hardcode_into_libs=yes
12337     ;;
12338   freebsd*) # from 4.6 on
12339     shlibpath_overrides_runpath=yes
12340     hardcode_into_libs=yes
12341     ;;
12342   esac
12343   ;;
12344
12345 gnu*)
12346   version_type=linux
12347   need_lib_prefix=no
12348   need_version=no
12349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12350   soname_spec='${libname}${release}${shared_ext}$major'
12351   shlibpath_var=LD_LIBRARY_PATH
12352   hardcode_into_libs=yes
12353   ;;
12354
12355 hpux9* | hpux10* | hpux11*)
12356   # Give a soname corresponding to the major version so that dld.sl refuses to
12357   # link against other versions.
12358   version_type=sunos
12359   need_lib_prefix=no
12360   need_version=no
12361   case $host_cpu in
12362   ia64*)
12363     shrext_cmds='.so'
12364     hardcode_into_libs=yes
12365     dynamic_linker="$host_os dld.so"
12366     shlibpath_var=LD_LIBRARY_PATH
12367     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12369     soname_spec='${libname}${release}${shared_ext}$major'
12370     if test "X$HPUX_IA64_MODE" = X32; then
12371       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12372     else
12373       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12374     fi
12375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12376     ;;
12377    hppa*64*)
12378      shrext_cmds='.sl'
12379      hardcode_into_libs=yes
12380      dynamic_linker="$host_os dld.sl"
12381      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12382      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384      soname_spec='${libname}${release}${shared_ext}$major'
12385      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12386      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12387      ;;
12388    *)
12389     shrext_cmds='.sl'
12390     dynamic_linker="$host_os dld.sl"
12391     shlibpath_var=SHLIB_PATH
12392     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394     soname_spec='${libname}${release}${shared_ext}$major'
12395     ;;
12396   esac
12397   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12398   postinstall_cmds='chmod 555 $lib'
12399   ;;
12400
12401 interix3*)
12402   version_type=linux
12403   need_lib_prefix=no
12404   need_version=no
12405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12406   soname_spec='${libname}${release}${shared_ext}$major'
12407   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12408   shlibpath_var=LD_LIBRARY_PATH
12409   shlibpath_overrides_runpath=no
12410   hardcode_into_libs=yes
12411   ;;
12412
12413 irix5* | irix6* | nonstopux*)
12414   case $host_os in
12415     nonstopux*) version_type=nonstopux ;;
12416     *)
12417         if test "$lt_cv_prog_gnu_ld" = yes; then
12418                 version_type=linux
12419         else
12420                 version_type=irix
12421         fi ;;
12422   esac
12423   need_lib_prefix=no
12424   need_version=no
12425   soname_spec='${libname}${release}${shared_ext}$major'
12426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12427   case $host_os in
12428   irix5* | nonstopux*)
12429     libsuff= shlibsuff=
12430     ;;
12431   *)
12432     case $LD in # libtool.m4 will add one of these switches to LD
12433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12434       libsuff= shlibsuff= libmagic=32-bit;;
12435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12436       libsuff=32 shlibsuff=N32 libmagic=N32;;
12437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12439     *) libsuff= shlibsuff= libmagic=never-match;;
12440     esac
12441     ;;
12442   esac
12443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12444   shlibpath_overrides_runpath=no
12445   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12446   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12447   hardcode_into_libs=yes
12448   ;;
12449
12450 # No shared lib support for Linux oldld, aout, or coff.
12451 linux*oldld* | linux*aout* | linux*coff*)
12452   dynamic_linker=no
12453   ;;
12454
12455 # This must be Linux ELF.
12456 linux*)
12457   version_type=linux
12458   need_lib_prefix=no
12459   need_version=no
12460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461   soname_spec='${libname}${release}${shared_ext}$major'
12462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12463   shlibpath_var=LD_LIBRARY_PATH
12464   shlibpath_overrides_runpath=no
12465   # This implies no fast_install, which is unacceptable.
12466   # Some rework will be needed to allow for fast_install
12467   # before this can be enabled.
12468   hardcode_into_libs=yes
12469
12470   # find out which ABI we are using
12471   libsuff=
12472   case "$host_cpu" in
12473   x86_64*|s390x*|powerpc64*)
12474     echo '#line 12474 "configure"' > conftest.$ac_ext
12475     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; then
12480       case `/usr/bin/file conftest.$ac_objext` in
12481       *64-bit*)
12482         libsuff=64
12483         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12484         ;;
12485       esac
12486     fi
12487     rm -rf conftest*
12488     ;;
12489   esac
12490
12491   # Append ld.so.conf contents to the search path
12492   if test -f /etc/ld.so.conf; then
12493     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12494     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12495   fi
12496
12497   # We used to test for /lib/ld.so.1 and disable shared libraries on
12498   # powerpc, because MkLinux only supported shared libraries with the
12499   # GNU dynamic linker.  Since this was broken with cross compilers,
12500   # most powerpc-linux boxes support dynamic linking these days and
12501   # people can always --disable-shared, the test was removed, and we
12502   # assume the GNU/Linux dynamic linker is in use.
12503   dynamic_linker='GNU/Linux ld.so'
12504   ;;
12505
12506 knetbsd*-gnu)
12507   version_type=linux
12508   need_lib_prefix=no
12509   need_version=no
12510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12511   soname_spec='${libname}${release}${shared_ext}$major'
12512   shlibpath_var=LD_LIBRARY_PATH
12513   shlibpath_overrides_runpath=no
12514   hardcode_into_libs=yes
12515   dynamic_linker='GNU ld.so'
12516   ;;
12517
12518 netbsd*)
12519   version_type=sunos
12520   need_lib_prefix=no
12521   need_version=no
12522   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525     dynamic_linker='NetBSD (a.out) ld.so'
12526   else
12527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12528     soname_spec='${libname}${release}${shared_ext}$major'
12529     dynamic_linker='NetBSD ld.elf_so'
12530   fi
12531   shlibpath_var=LD_LIBRARY_PATH
12532   shlibpath_overrides_runpath=yes
12533   hardcode_into_libs=yes
12534   ;;
12535
12536 newsos6)
12537   version_type=linux
12538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539   shlibpath_var=LD_LIBRARY_PATH
12540   shlibpath_overrides_runpath=yes
12541   ;;
12542
12543 nto-qnx*)
12544   version_type=linux
12545   need_lib_prefix=no
12546   need_version=no
12547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12548   soname_spec='${libname}${release}${shared_ext}$major'
12549   shlibpath_var=LD_LIBRARY_PATH
12550   shlibpath_overrides_runpath=yes
12551   ;;
12552
12553 openbsd*)
12554   version_type=sunos
12555   sys_lib_dlsearch_path_spec="/usr/lib"
12556   need_lib_prefix=no
12557   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12558   case $host_os in
12559     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12560     *)                         need_version=no  ;;
12561   esac
12562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12563   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12564   shlibpath_var=LD_LIBRARY_PATH
12565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12566     case $host_os in
12567       openbsd2.[89] | openbsd2.[89].*)
12568         shlibpath_overrides_runpath=no
12569         ;;
12570       *)
12571         shlibpath_overrides_runpath=yes
12572         ;;
12573       esac
12574   else
12575     shlibpath_overrides_runpath=yes
12576   fi
12577   ;;
12578
12579 os2*)
12580   libname_spec='$name'
12581   shrext_cmds=".dll"
12582   need_lib_prefix=no
12583   library_names_spec='$libname${shared_ext} $libname.a'
12584   dynamic_linker='OS/2 ld.exe'
12585   shlibpath_var=LIBPATH
12586   ;;
12587
12588 osf3* | osf4* | osf5*)
12589   version_type=osf
12590   need_lib_prefix=no
12591   need_version=no
12592   soname_spec='${libname}${release}${shared_ext}$major'
12593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594   shlibpath_var=LD_LIBRARY_PATH
12595   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12596   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12597   ;;
12598
12599 solaris*)
12600   version_type=linux
12601   need_lib_prefix=no
12602   need_version=no
12603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604   soname_spec='${libname}${release}${shared_ext}$major'
12605   shlibpath_var=LD_LIBRARY_PATH
12606   shlibpath_overrides_runpath=yes
12607   hardcode_into_libs=yes
12608   # ldd complains unless libraries are executable
12609   postinstall_cmds='chmod +x $lib'
12610   ;;
12611
12612 sunos4*)
12613   version_type=sunos
12614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12616   shlibpath_var=LD_LIBRARY_PATH
12617   shlibpath_overrides_runpath=yes
12618   if test "$with_gnu_ld" = yes; then
12619     need_lib_prefix=no
12620   fi
12621   need_version=yes
12622   ;;
12623
12624 sysv4 | sysv4.3*)
12625   version_type=linux
12626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627   soname_spec='${libname}${release}${shared_ext}$major'
12628   shlibpath_var=LD_LIBRARY_PATH
12629   case $host_vendor in
12630     sni)
12631       shlibpath_overrides_runpath=no
12632       need_lib_prefix=no
12633       export_dynamic_flag_spec='${wl}-Blargedynsym'
12634       runpath_var=LD_RUN_PATH
12635       ;;
12636     siemens)
12637       need_lib_prefix=no
12638       ;;
12639     motorola)
12640       need_lib_prefix=no
12641       need_version=no
12642       shlibpath_overrides_runpath=no
12643       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12644       ;;
12645   esac
12646   ;;
12647
12648 sysv4*MP*)
12649   if test -d /usr/nec ;then
12650     version_type=linux
12651     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12652     soname_spec='$libname${shared_ext}.$major'
12653     shlibpath_var=LD_LIBRARY_PATH
12654   fi
12655   ;;
12656
12657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658   version_type=freebsd-elf
12659   need_lib_prefix=no
12660   need_version=no
12661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12662   soname_spec='${libname}${release}${shared_ext}$major'
12663   shlibpath_var=LD_LIBRARY_PATH
12664   hardcode_into_libs=yes
12665   if test "$with_gnu_ld" = yes; then
12666     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12667     shlibpath_overrides_runpath=no
12668   else
12669     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12670     shlibpath_overrides_runpath=yes
12671     case $host_os in
12672       sco3.2v5*)
12673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12674         ;;
12675     esac
12676   fi
12677   sys_lib_dlsearch_path_spec='/usr/lib'
12678   ;;
12679
12680 uts4*)
12681   version_type=linux
12682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683   soname_spec='${libname}${release}${shared_ext}$major'
12684   shlibpath_var=LD_LIBRARY_PATH
12685   ;;
12686
12687 *)
12688   dynamic_linker=no
12689   ;;
12690 esac
12691 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12692 echo "${ECHO_T}$dynamic_linker" >&6
12693 test "$dynamic_linker" = no && can_build_shared=no
12694
12695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12696 if test "$GCC" = yes; then
12697   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12698 fi
12699
12700 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12702 hardcode_action_CXX=
12703 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12704    test -n "$runpath_var_CXX" || \
12705    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12706
12707   # We can hardcode non-existant directories.
12708   if test "$hardcode_direct_CXX" != no &&
12709      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12710      # have to relink, otherwise we might link with an installed library
12711      # when we should be linking with a yet-to-be-installed one
12712      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12713      test "$hardcode_minus_L_CXX" != no; then
12714     # Linking always hardcodes the temporary library directory.
12715     hardcode_action_CXX=relink
12716   else
12717     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12718     hardcode_action_CXX=immediate
12719   fi
12720 else
12721   # We cannot hardcode anything, or else we can only hardcode existing
12722   # directories.
12723   hardcode_action_CXX=unsupported
12724 fi
12725 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12726 echo "${ECHO_T}$hardcode_action_CXX" >&6
12727
12728 if test "$hardcode_action_CXX" = relink; then
12729   # Fast installation is not supported
12730   enable_fast_install=no
12731 elif test "$shlibpath_overrides_runpath" = yes ||
12732      test "$enable_shared" = no; then
12733   # Fast installation is not necessary
12734   enable_fast_install=needless
12735 fi
12736
12737
12738 # The else clause should only fire when bootstrapping the
12739 # libtool distribution, otherwise you forgot to ship ltmain.sh
12740 # with your package, and you will get complaints that there are
12741 # no rules to generate ltmain.sh.
12742 if test -f "$ltmain"; then
12743   # See if we are running on zsh, and set the options which allow our commands through
12744   # without removal of \ escapes.
12745   if test -n "${ZSH_VERSION+set}" ; then
12746     setopt NO_GLOB_SUBST
12747   fi
12748   # Now quote all the things that may contain metacharacters while being
12749   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12750   # variables and quote the copies for generation of the libtool script.
12751   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12752     SED SHELL STRIP \
12753     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12754     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12755     deplibs_check_method reload_flag reload_cmds need_locks \
12756     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12757     lt_cv_sys_global_symbol_to_c_name_address \
12758     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12759     old_postinstall_cmds old_postuninstall_cmds \
12760     compiler_CXX \
12761     CC_CXX \
12762     LD_CXX \
12763     lt_prog_compiler_wl_CXX \
12764     lt_prog_compiler_pic_CXX \
12765     lt_prog_compiler_static_CXX \
12766     lt_prog_compiler_no_builtin_flag_CXX \
12767     export_dynamic_flag_spec_CXX \
12768     thread_safe_flag_spec_CXX \
12769     whole_archive_flag_spec_CXX \
12770     enable_shared_with_static_runtimes_CXX \
12771     old_archive_cmds_CXX \
12772     old_archive_from_new_cmds_CXX \
12773     predep_objects_CXX \
12774     postdep_objects_CXX \
12775     predeps_CXX \
12776     postdeps_CXX \
12777     compiler_lib_search_path_CXX \
12778     archive_cmds_CXX \
12779     archive_expsym_cmds_CXX \
12780     postinstall_cmds_CXX \
12781     postuninstall_cmds_CXX \
12782     old_archive_from_expsyms_cmds_CXX \
12783     allow_undefined_flag_CXX \
12784     no_undefined_flag_CXX \
12785     export_symbols_cmds_CXX \
12786     hardcode_libdir_flag_spec_CXX \
12787     hardcode_libdir_flag_spec_ld_CXX \
12788     hardcode_libdir_separator_CXX \
12789     hardcode_automatic_CXX \
12790     module_cmds_CXX \
12791     module_expsym_cmds_CXX \
12792     lt_cv_prog_compiler_c_o_CXX \
12793     exclude_expsyms_CXX \
12794     include_expsyms_CXX; do
12795
12796     case $var in
12797     old_archive_cmds_CXX | \
12798     old_archive_from_new_cmds_CXX | \
12799     archive_cmds_CXX | \
12800     archive_expsym_cmds_CXX | \
12801     module_cmds_CXX | \
12802     module_expsym_cmds_CXX | \
12803     old_archive_from_expsyms_cmds_CXX | \
12804     export_symbols_cmds_CXX | \
12805     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12806     postinstall_cmds | postuninstall_cmds | \
12807     old_postinstall_cmds | old_postuninstall_cmds | \
12808     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12809       # Double-quote double-evaled strings.
12810       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12811       ;;
12812     *)
12813       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12814       ;;
12815     esac
12816   done
12817
12818   case $lt_echo in
12819   *'\$0 --fallback-echo"')
12820     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12821     ;;
12822   esac
12823
12824 cfgfile="$ofile"
12825
12826   cat <<__EOF__ >> "$cfgfile"
12827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12828
12829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12830
12831 # Shell to use when invoking shell scripts.
12832 SHELL=$lt_SHELL
12833
12834 # Whether or not to build shared libraries.
12835 build_libtool_libs=$enable_shared
12836
12837 # Whether or not to build static libraries.
12838 build_old_libs=$enable_static
12839
12840 # Whether or not to add -lc for building shared libraries.
12841 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12842
12843 # Whether or not to disallow shared libs when runtime libs are static
12844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12845
12846 # Whether or not to optimize for fast installation.
12847 fast_install=$enable_fast_install
12848
12849 # The host system.
12850 host_alias=$host_alias
12851 host=$host
12852 host_os=$host_os
12853
12854 # The build system.
12855 build_alias=$build_alias
12856 build=$build
12857 build_os=$build_os
12858
12859 # An echo program that does not interpret backslashes.
12860 echo=$lt_echo
12861
12862 # The archiver.
12863 AR=$lt_AR
12864 AR_FLAGS=$lt_AR_FLAGS
12865
12866 # A C compiler.
12867 LTCC=$lt_LTCC
12868
12869 # LTCC compiler flags.
12870 LTCFLAGS=$lt_LTCFLAGS
12871
12872 # A language-specific compiler.
12873 CC=$lt_compiler_CXX
12874
12875 # Is the compiler the GNU C compiler?
12876 with_gcc=$GCC_CXX
12877
12878 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12879 gcc_ver=\`gcc -dumpversion\`
12880
12881 # An ERE matcher.
12882 EGREP=$lt_EGREP
12883
12884 # The linker used to build libraries.
12885 LD=$lt_LD_CXX
12886
12887 # Whether we need hard or soft links.
12888 LN_S=$lt_LN_S
12889
12890 # A BSD-compatible nm program.
12891 NM=$lt_NM
12892
12893 # A symbol stripping program
12894 STRIP=$lt_STRIP
12895
12896 # Used to examine libraries when file_magic_cmd begins "file"
12897 MAGIC_CMD=$MAGIC_CMD
12898
12899 # Used on cygwin: DLL creation program.
12900 DLLTOOL="$DLLTOOL"
12901
12902 # Used on cygwin: object dumper.
12903 OBJDUMP="$OBJDUMP"
12904
12905 # Used on cygwin: assembler.
12906 AS="$AS"
12907
12908 # The name of the directory that contains temporary libtool files.
12909 objdir=$objdir
12910
12911 # How to create reloadable object files.
12912 reload_flag=$lt_reload_flag
12913 reload_cmds=$lt_reload_cmds
12914
12915 # How to pass a linker flag through the compiler.
12916 wl=$lt_lt_prog_compiler_wl_CXX
12917
12918 # Object file suffix (normally "o").
12919 objext="$ac_objext"
12920
12921 # Old archive suffix (normally "a").
12922 libext="$libext"
12923
12924 # Shared library suffix (normally ".so").
12925 shrext_cmds='$shrext_cmds'
12926
12927 # Executable file suffix (normally "").
12928 exeext="$exeext"
12929
12930 # Additional compiler flags for building library objects.
12931 pic_flag=$lt_lt_prog_compiler_pic_CXX
12932 pic_mode=$pic_mode
12933
12934 # What is the maximum length of a command?
12935 max_cmd_len=$lt_cv_sys_max_cmd_len
12936
12937 # Does compiler simultaneously support -c and -o options?
12938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12939
12940 # Must we lock files when doing compilation?
12941 need_locks=$lt_need_locks
12942
12943 # Do we need the lib prefix for modules?
12944 need_lib_prefix=$need_lib_prefix
12945
12946 # Do we need a version for libraries?
12947 need_version=$need_version
12948
12949 # Whether dlopen is supported.
12950 dlopen_support=$enable_dlopen
12951
12952 # Whether dlopen of programs is supported.
12953 dlopen_self=$enable_dlopen_self
12954
12955 # Whether dlopen of statically linked programs is supported.
12956 dlopen_self_static=$enable_dlopen_self_static
12957
12958 # Compiler flag to prevent dynamic linking.
12959 link_static_flag=$lt_lt_prog_compiler_static_CXX
12960
12961 # Compiler flag to turn off builtin functions.
12962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12963
12964 # Compiler flag to allow reflexive dlopens.
12965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12966
12967 # Compiler flag to generate shared objects directly from archives.
12968 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12969
12970 # Compiler flag to generate thread-safe objects.
12971 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12972
12973 # Library versioning type.
12974 version_type=$version_type
12975
12976 # Format of library name prefix.
12977 libname_spec=$lt_libname_spec
12978
12979 # List of archive names.  First name is the real one, the rest are links.
12980 # The last name is the one that the linker finds with -lNAME.
12981 library_names_spec=$lt_library_names_spec
12982
12983 # The coded name of the library, if different from the real name.
12984 soname_spec=$lt_soname_spec
12985
12986 # Commands used to build and install an old-style archive.
12987 RANLIB=$lt_RANLIB
12988 old_archive_cmds=$lt_old_archive_cmds_CXX
12989 old_postinstall_cmds=$lt_old_postinstall_cmds
12990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12991
12992 # Create an old-style archive from a shared archive.
12993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12994
12995 # Create a temporary old-style archive to link instead of a shared archive.
12996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12997
12998 # Commands used to build and install a shared archive.
12999 archive_cmds=$lt_archive_cmds_CXX
13000 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13001 postinstall_cmds=$lt_postinstall_cmds
13002 postuninstall_cmds=$lt_postuninstall_cmds
13003
13004 # Commands used to build a loadable module (assumed same as above if empty)
13005 module_cmds=$lt_module_cmds_CXX
13006 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13007
13008 # Commands to strip libraries.
13009 old_striplib=$lt_old_striplib
13010 striplib=$lt_striplib
13011
13012 # Dependencies to place before the objects being linked to create a
13013 # shared library.
13014 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13015
13016 # Dependencies to place after the objects being linked to create a
13017 # shared library.
13018 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13019
13020 # Dependencies to place before the objects being linked to create a
13021 # shared library.
13022 predeps=$lt_predeps_CXX
13023
13024 # Dependencies to place after the objects being linked to create a
13025 # shared library.
13026 postdeps=$lt_postdeps_CXX
13027
13028 # The library search path used internally by the compiler when linking
13029 # a shared library.
13030 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13031
13032 # Method to check whether dependent libraries are shared objects.
13033 deplibs_check_method=$lt_deplibs_check_method
13034
13035 # Command to use when deplibs_check_method == file_magic.
13036 file_magic_cmd=$lt_file_magic_cmd
13037
13038 # Flag that allows shared libraries with undefined symbols to be built.
13039 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13040
13041 # Flag that forces no undefined symbols.
13042 no_undefined_flag=$lt_no_undefined_flag_CXX
13043
13044 # Commands used to finish a libtool library installation in a directory.
13045 finish_cmds=$lt_finish_cmds
13046
13047 # Same as above, but a single script fragment to be evaled but not shown.
13048 finish_eval=$lt_finish_eval
13049
13050 # Take the output of nm and produce a listing of raw symbols and C names.
13051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13052
13053 # Transform the output of nm in a proper C declaration
13054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13055
13056 # Transform the output of nm in a C name address pair
13057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13058
13059 # This is the shared library runtime path variable.
13060 runpath_var=$runpath_var
13061
13062 # This is the shared library path variable.
13063 shlibpath_var=$shlibpath_var
13064
13065 # Is shlibpath searched before the hard-coded library search path?
13066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13067
13068 # How to hardcode a shared library path into an executable.
13069 hardcode_action=$hardcode_action_CXX
13070
13071 # Whether we should hardcode library paths into libraries.
13072 hardcode_into_libs=$hardcode_into_libs
13073
13074 # Flag to hardcode \$libdir into a binary during linking.
13075 # This must work even if \$libdir does not exist.
13076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13077
13078 # If ld is used when linking, flag to hardcode \$libdir into
13079 # a binary during linking. This must work even if \$libdir does
13080 # not exist.
13081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13082
13083 # Whether we need a single -rpath flag with a separated argument.
13084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13085
13086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087 # resulting binary.
13088 hardcode_direct=$hardcode_direct_CXX
13089
13090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091 # resulting binary.
13092 hardcode_minus_L=$hardcode_minus_L_CXX
13093
13094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095 # the resulting binary.
13096 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13097
13098 # Set to yes if building a shared library automatically hardcodes DIR into the library
13099 # and all subsequent libraries and executables linked against it.
13100 hardcode_automatic=$hardcode_automatic_CXX
13101
13102 # Variables whose values should be saved in libtool wrapper scripts and
13103 # restored at relink time.
13104 variables_saved_for_relink="$variables_saved_for_relink"
13105
13106 # Whether libtool must link a program against all its dependency libraries.
13107 link_all_deplibs=$link_all_deplibs_CXX
13108
13109 # Compile-time system search path for libraries
13110 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13111
13112 # Run-time system search path for libraries
13113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13114
13115 # Fix the shell variable \$srcfile for the compiler.
13116 fix_srcfile_path="$fix_srcfile_path_CXX"
13117
13118 # Set to yes if exported symbols are required.
13119 always_export_symbols=$always_export_symbols_CXX
13120
13121 # The commands to list exported symbols.
13122 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13123
13124 # The commands to extract the exported symbol list from a shared archive.
13125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13126
13127 # Symbols that should not be listed in the preloaded symbols.
13128 exclude_expsyms=$lt_exclude_expsyms_CXX
13129
13130 # Symbols that must always be exported.
13131 include_expsyms=$lt_include_expsyms_CXX
13132
13133 # ### END LIBTOOL TAG CONFIG: $tagname
13134
13135 __EOF__
13136
13137
13138 else
13139   # If there is no Makefile yet, we rely on a make rule to execute
13140   # `config.status --recheck' to rerun these tests and create the
13141   # libtool script then.
13142   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13143   if test -f "$ltmain_in"; then
13144     test -f Makefile && make "$ltmain"
13145   fi
13146 fi
13147
13148
13149 ac_ext=c
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13154
13155 CC=$lt_save_CC
13156 LDCXX=$LD
13157 LD=$lt_save_LD
13158 GCC=$lt_save_GCC
13159 with_gnu_ldcxx=$with_gnu_ld
13160 with_gnu_ld=$lt_save_with_gnu_ld
13161 lt_cv_path_LDCXX=$lt_cv_path_LD
13162 lt_cv_path_LD=$lt_save_path_LD
13163 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13164 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13165
13166         else
13167           tagname=""
13168         fi
13169         ;;
13170
13171       F77)
13172         if test -n "$F77" && test "X$F77" != "Xno"; then
13173
13174 ac_ext=f
13175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178
13179
13180 archive_cmds_need_lc_F77=no
13181 allow_undefined_flag_F77=
13182 always_export_symbols_F77=no
13183 archive_expsym_cmds_F77=
13184 export_dynamic_flag_spec_F77=
13185 hardcode_direct_F77=no
13186 hardcode_libdir_flag_spec_F77=
13187 hardcode_libdir_flag_spec_ld_F77=
13188 hardcode_libdir_separator_F77=
13189 hardcode_minus_L_F77=no
13190 hardcode_automatic_F77=no
13191 module_cmds_F77=
13192 module_expsym_cmds_F77=
13193 link_all_deplibs_F77=unknown
13194 old_archive_cmds_F77=$old_archive_cmds
13195 no_undefined_flag_F77=
13196 whole_archive_flag_spec_F77=
13197 enable_shared_with_static_runtimes_F77=no
13198
13199 # Source file extension for f77 test sources.
13200 ac_ext=f
13201
13202 # Object file extension for compiled f77 test sources.
13203 objext=o
13204 objext_F77=$objext
13205
13206 # Code to be used in simple compile tests
13207 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13208
13209 # Code to be used in simple link tests
13210 lt_simple_link_test_code="      program t\n      end\n"
13211
13212 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13213
13214 # If no C compiler was specified, use CC.
13215 LTCC=${LTCC-"$CC"}
13216
13217 # If no C compiler flags were specified, use CFLAGS.
13218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220 # Allow CC to be a program name with arguments.
13221 compiler=$CC
13222
13223
13224 # save warnings/boilerplate of simple test code
13225 ac_outfile=conftest.$ac_objext
13226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13228 _lt_compiler_boilerplate=`cat conftest.err`
13229 $rm conftest*
13230
13231 ac_outfile=conftest.$ac_objext
13232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234 _lt_linker_boilerplate=`cat conftest.err`
13235 $rm conftest*
13236
13237
13238 # Allow CC to be a program name with arguments.
13239 lt_save_CC="$CC"
13240 CC=${F77-"f77"}
13241 compiler=$CC
13242 compiler_F77=$CC
13243 for cc_temp in $compiler""; do
13244   case $cc_temp in
13245     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13246     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13247     \-*) ;;
13248     *) break;;
13249   esac
13250 done
13251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13252
13253
13254 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13255 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13256 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13257 echo "${ECHO_T}$can_build_shared" >&6
13258
13259 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13260 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13261 test "$can_build_shared" = "no" && enable_shared=no
13262
13263 # On AIX, shared libraries and static libraries use the same namespace, and
13264 # are all built from PIC.
13265 case $host_os in
13266 aix3*)
13267   test "$enable_shared" = yes && enable_static=no
13268   if test -n "$RANLIB"; then
13269     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13270     postinstall_cmds='$RANLIB $lib'
13271   fi
13272   ;;
13273 aix4* | aix5*)
13274   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13275     test "$enable_shared" = yes && enable_static=no
13276   fi
13277   ;;
13278 esac
13279 echo "$as_me:$LINENO: result: $enable_shared" >&5
13280 echo "${ECHO_T}$enable_shared" >&6
13281
13282 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13283 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13284 # Make sure either enable_shared or enable_static is yes.
13285 test "$enable_shared" = yes || enable_static=yes
13286 echo "$as_me:$LINENO: result: $enable_static" >&5
13287 echo "${ECHO_T}$enable_static" >&6
13288
13289 GCC_F77="$G77"
13290 LD_F77="$LD"
13291
13292 lt_prog_compiler_wl_F77=
13293 lt_prog_compiler_pic_F77=
13294 lt_prog_compiler_static_F77=
13295
13296 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13297 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13298
13299   if test "$GCC" = yes; then
13300     lt_prog_compiler_wl_F77='-Wl,'
13301     lt_prog_compiler_static_F77='-static'
13302
13303     case $host_os in
13304       aix*)
13305       # All AIX code is PIC.
13306       if test "$host_cpu" = ia64; then
13307         # AIX 5 now supports IA64 processor
13308         lt_prog_compiler_static_F77='-Bstatic'
13309       fi
13310       ;;
13311
13312     amigaos*)
13313       # FIXME: we need at least 68020 code to build shared libraries, but
13314       # adding the `-m68020' flag to GCC prevents building anything better,
13315       # like `-m68040'.
13316       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13317       ;;
13318
13319     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13320       # PIC is the default for these OSes.
13321       ;;
13322
13323     mingw* | pw32* | os2*)
13324       # This hack is so that the source file can tell whether it is being
13325       # built for inclusion in a dll (and should export symbols for example).
13326       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13327       ;;
13328
13329     darwin* | rhapsody*)
13330       # PIC is the default on this platform
13331       # Common symbols not allowed in MH_DYLIB files
13332       lt_prog_compiler_pic_F77='-fno-common'
13333       ;;
13334
13335     interix3*)
13336       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13337       # Instead, we relocate shared libraries at runtime.
13338       ;;
13339
13340     msdosdjgpp*)
13341       # Just because we use GCC doesn't mean we suddenly get shared libraries
13342       # on systems that don't support them.
13343       lt_prog_compiler_can_build_shared_F77=no
13344       enable_shared=no
13345       ;;
13346
13347     sysv4*MP*)
13348       if test -d /usr/nec; then
13349         lt_prog_compiler_pic_F77=-Kconform_pic
13350       fi
13351       ;;
13352
13353     hpux*)
13354       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355       # not for PA HP-UX.
13356       case $host_cpu in
13357       hppa*64*|ia64*)
13358         # +Z the default
13359         ;;
13360       *)
13361         lt_prog_compiler_pic_F77='-fPIC'
13362         ;;
13363       esac
13364       ;;
13365
13366     *)
13367       lt_prog_compiler_pic_F77='-fPIC'
13368       ;;
13369     esac
13370   else
13371     # PORTME Check for flag to pass linker flags through the system compiler.
13372     case $host_os in
13373     aix*)
13374       lt_prog_compiler_wl_F77='-Wl,'
13375       if test "$host_cpu" = ia64; then
13376         # AIX 5 now supports IA64 processor
13377         lt_prog_compiler_static_F77='-Bstatic'
13378       else
13379         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13380       fi
13381       ;;
13382       darwin*)
13383         # PIC is the default on this platform
13384         # Common symbols not allowed in MH_DYLIB files
13385        case $cc_basename in
13386          xlc*)
13387          lt_prog_compiler_pic_F77='-qnocommon'
13388          lt_prog_compiler_wl_F77='-Wl,'
13389          ;;
13390        esac
13391        ;;
13392
13393     mingw* | pw32* | os2*)
13394       # This hack is so that the source file can tell whether it is being
13395       # built for inclusion in a dll (and should export symbols for example).
13396       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13397       ;;
13398
13399     hpux9* | hpux10* | hpux11*)
13400       lt_prog_compiler_wl_F77='-Wl,'
13401       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13402       # not for PA HP-UX.
13403       case $host_cpu in
13404       hppa*64*|ia64*)
13405         # +Z the default
13406         ;;
13407       *)
13408         lt_prog_compiler_pic_F77='+Z'
13409         ;;
13410       esac
13411       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13412       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13413       ;;
13414
13415     irix5* | irix6* | nonstopux*)
13416       lt_prog_compiler_wl_F77='-Wl,'
13417       # PIC (with -KPIC) is the default.
13418       lt_prog_compiler_static_F77='-non_shared'
13419       ;;
13420
13421     newsos6)
13422       lt_prog_compiler_pic_F77='-KPIC'
13423       lt_prog_compiler_static_F77='-Bstatic'
13424       ;;
13425
13426     linux*)
13427       case $cc_basename in
13428       icc* | ecc*)
13429         lt_prog_compiler_wl_F77='-Wl,'
13430         lt_prog_compiler_pic_F77='-KPIC'
13431         lt_prog_compiler_static_F77='-static'
13432         ;;
13433       pgcc* | pgf77* | pgf90* | pgf95*)
13434         # Portland Group compilers (*not* the Pentium gcc compiler,
13435         # which looks to be a dead project)
13436         lt_prog_compiler_wl_F77='-Wl,'
13437         lt_prog_compiler_pic_F77='-fpic'
13438         lt_prog_compiler_static_F77='-Bstatic'
13439         ;;
13440       ccc*)
13441         lt_prog_compiler_wl_F77='-Wl,'
13442         # All Alpha code is PIC.
13443         lt_prog_compiler_static_F77='-non_shared'
13444         ;;
13445       esac
13446       ;;
13447
13448     osf3* | osf4* | osf5*)
13449       lt_prog_compiler_wl_F77='-Wl,'
13450       # All OSF/1 code is PIC.
13451       lt_prog_compiler_static_F77='-non_shared'
13452       ;;
13453
13454     solaris*)
13455       lt_prog_compiler_pic_F77='-KPIC'
13456       lt_prog_compiler_static_F77='-Bstatic'
13457       case $cc_basename in
13458       f77* | f90* | f95*)
13459         lt_prog_compiler_wl_F77='-Qoption ld ';;
13460       *)
13461         lt_prog_compiler_wl_F77='-Wl,';;
13462       esac
13463       ;;
13464
13465     sunos4*)
13466       lt_prog_compiler_wl_F77='-Qoption ld '
13467       lt_prog_compiler_pic_F77='-PIC'
13468       lt_prog_compiler_static_F77='-Bstatic'
13469       ;;
13470
13471     sysv4 | sysv4.2uw2* | sysv4.3*)
13472       lt_prog_compiler_wl_F77='-Wl,'
13473       lt_prog_compiler_pic_F77='-KPIC'
13474       lt_prog_compiler_static_F77='-Bstatic'
13475       ;;
13476
13477     sysv4*MP*)
13478       if test -d /usr/nec ;then
13479         lt_prog_compiler_pic_F77='-Kconform_pic'
13480         lt_prog_compiler_static_F77='-Bstatic'
13481       fi
13482       ;;
13483
13484     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13485       lt_prog_compiler_wl_F77='-Wl,'
13486       lt_prog_compiler_pic_F77='-KPIC'
13487       lt_prog_compiler_static_F77='-Bstatic'
13488       ;;
13489
13490     unicos*)
13491       lt_prog_compiler_wl_F77='-Wl,'
13492       lt_prog_compiler_can_build_shared_F77=no
13493       ;;
13494
13495     uts4*)
13496       lt_prog_compiler_pic_F77='-pic'
13497       lt_prog_compiler_static_F77='-Bstatic'
13498       ;;
13499
13500     *)
13501       lt_prog_compiler_can_build_shared_F77=no
13502       ;;
13503     esac
13504   fi
13505
13506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13507 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13508
13509 #
13510 # Check to make sure the PIC flag actually works.
13511 #
13512 if test -n "$lt_prog_compiler_pic_F77"; then
13513
13514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13516 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13517   echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519   lt_prog_compiler_pic_works_F77=no
13520   ac_outfile=conftest.$ac_objext
13521    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13522    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13523    # Insert the option either (1) after the last *FLAGS variable, or
13524    # (2) before a word containing "conftest.", or (3) at the end.
13525    # Note that $ac_compile itself does not contain backslashes and begins
13526    # with a dollar sign (not a hyphen), so the echo should work correctly.
13527    # The option is referenced via a variable to avoid confusing sed.
13528    lt_compile=`echo "$ac_compile" | $SED \
13529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13531    -e 's:$: $lt_compiler_flag:'`
13532    (eval echo "\"\$as_me:13532: $lt_compile\"" >&5)
13533    (eval "$lt_compile" 2>conftest.err)
13534    ac_status=$?
13535    cat conftest.err >&5
13536    echo "$as_me:13536: \$? = $ac_status" >&5
13537    if (exit $ac_status) && test -s "$ac_outfile"; then
13538      # The compiler can only warn and ignore the option if not recognized
13539      # So say no if there are warnings other than the usual output.
13540      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13541      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13542      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13543        lt_prog_compiler_pic_works_F77=yes
13544      fi
13545    fi
13546    $rm conftest*
13547
13548 fi
13549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13550 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13551
13552 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13553     case $lt_prog_compiler_pic_F77 in
13554      "" | " "*) ;;
13555      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13556      esac
13557 else
13558     lt_prog_compiler_pic_F77=
13559      lt_prog_compiler_can_build_shared_F77=no
13560 fi
13561
13562 fi
13563 case $host_os in
13564   # For platforms which do not support PIC, -DPIC is meaningless:
13565   *djgpp*)
13566     lt_prog_compiler_pic_F77=
13567     ;;
13568   *)
13569     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13570     ;;
13571 esac
13572
13573 #
13574 # Check to make sure the static flag actually works.
13575 #
13576 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13577 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13578 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13579 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   lt_prog_compiler_static_works_F77=no
13583    save_LDFLAGS="$LDFLAGS"
13584    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13585    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13586    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13587      # The linker can only warn and ignore the option if not recognized
13588      # So say no if there are warnings
13589      if test -s conftest.err; then
13590        # Append any errors to the config.log.
13591        cat conftest.err 1>&5
13592        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13593        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594        if diff conftest.exp conftest.er2 >/dev/null; then
13595          lt_prog_compiler_static_works_F77=yes
13596        fi
13597      else
13598        lt_prog_compiler_static_works_F77=yes
13599      fi
13600    fi
13601    $rm conftest*
13602    LDFLAGS="$save_LDFLAGS"
13603
13604 fi
13605 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13606 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13607
13608 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13609     :
13610 else
13611     lt_prog_compiler_static_F77=
13612 fi
13613
13614
13615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13617 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   lt_cv_prog_compiler_c_o_F77=no
13621    $rm -r conftest 2>/dev/null
13622    mkdir conftest
13623    cd conftest
13624    mkdir out
13625    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626
13627    lt_compiler_flag="-o out/conftest2.$ac_objext"
13628    # Insert the option either (1) after the last *FLAGS variable, or
13629    # (2) before a word containing "conftest.", or (3) at the end.
13630    # Note that $ac_compile itself does not contain backslashes and begins
13631    # with a dollar sign (not a hyphen), so the echo should work correctly.
13632    lt_compile=`echo "$ac_compile" | $SED \
13633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635    -e 's:$: $lt_compiler_flag:'`
13636    (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
13637    (eval "$lt_compile" 2>out/conftest.err)
13638    ac_status=$?
13639    cat out/conftest.err >&5
13640    echo "$as_me:13640: \$? = $ac_status" >&5
13641    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642    then
13643      # The compiler can only warn and ignore the option if not recognized
13644      # So say no if there are warnings
13645      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13646      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648        lt_cv_prog_compiler_c_o_F77=yes
13649      fi
13650    fi
13651    chmod u+w . 2>&5
13652    $rm conftest*
13653    # SGI C++ compiler will create directory out/ii_files/ for
13654    # template instantiation
13655    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13656    $rm out/* && rmdir out
13657    cd ..
13658    rmdir conftest
13659    $rm conftest*
13660
13661 fi
13662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13664
13665
13666 hard_links="nottested"
13667 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13668   # do not overwrite the value of need_locks provided by the user
13669   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13671   hard_links=yes
13672   $rm conftest*
13673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674   touch conftest.a
13675   ln conftest.a conftest.b 2>&5 || hard_links=no
13676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677   echo "$as_me:$LINENO: result: $hard_links" >&5
13678 echo "${ECHO_T}$hard_links" >&6
13679   if test "$hard_links" = no; then
13680     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13682     need_locks=warn
13683   fi
13684 else
13685   need_locks=no
13686 fi
13687
13688 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13690
13691   runpath_var=
13692   allow_undefined_flag_F77=
13693   enable_shared_with_static_runtimes_F77=no
13694   archive_cmds_F77=
13695   archive_expsym_cmds_F77=
13696   old_archive_From_new_cmds_F77=
13697   old_archive_from_expsyms_cmds_F77=
13698   export_dynamic_flag_spec_F77=
13699   whole_archive_flag_spec_F77=
13700   thread_safe_flag_spec_F77=
13701   hardcode_libdir_flag_spec_F77=
13702   hardcode_libdir_flag_spec_ld_F77=
13703   hardcode_libdir_separator_F77=
13704   hardcode_direct_F77=no
13705   hardcode_minus_L_F77=no
13706   hardcode_shlibpath_var_F77=unsupported
13707   link_all_deplibs_F77=unknown
13708   hardcode_automatic_F77=no
13709   module_cmds_F77=
13710   module_expsym_cmds_F77=
13711   always_export_symbols_F77=no
13712   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13713   # include_expsyms should be a list of space-separated symbols to be *always*
13714   # included in the symbol list
13715   include_expsyms_F77=
13716   # exclude_expsyms can be an extended regexp of symbols to exclude
13717   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13718   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13719   # as well as any symbol that contains `d'.
13720   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13721   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13722   # platforms (ab)use it in PIC code, but their linkers get confused if
13723   # the symbol is explicitly referenced.  Since portable code cannot
13724   # rely on this symbol name, it's probably fine to never include it in
13725   # preloaded symbol tables.
13726   extract_expsyms_cmds=
13727   # Just being paranoid about ensuring that cc_basename is set.
13728   for cc_temp in $compiler""; do
13729   case $cc_temp in
13730     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13731     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13732     \-*) ;;
13733     *) break;;
13734   esac
13735 done
13736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13737
13738   case $host_os in
13739   cygwin* | mingw* | pw32*)
13740     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13741     # When not using gcc, we currently assume that we are using
13742     # Microsoft Visual C++.
13743     if test "$GCC" != yes; then
13744       with_gnu_ld=no
13745     fi
13746     ;;
13747   interix*)
13748     # we just hope/assume this is gcc and not c89 (= MSVC++)
13749     with_gnu_ld=yes
13750     ;;
13751   openbsd*)
13752     with_gnu_ld=no
13753     ;;
13754   esac
13755
13756   ld_shlibs_F77=yes
13757   if test "$with_gnu_ld" = yes; then
13758     # If archive_cmds runs LD, not CC, wlarc should be empty
13759     wlarc='${wl}'
13760
13761     # Set some defaults for GNU ld with shared library support. These
13762     # are reset later if shared libraries are not supported. Putting them
13763     # here allows them to be overridden if necessary.
13764     runpath_var=LD_RUN_PATH
13765     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13766     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13767     # ancient GNU ld didn't support --whole-archive et. al.
13768     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13769         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13770       else
13771         whole_archive_flag_spec_F77=
13772     fi
13773     supports_anon_versioning=no
13774     case `$LD -v 2>/dev/null` in
13775       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13776       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13777       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13778       *\ 2.11.*) ;; # other 2.11 versions
13779       *) supports_anon_versioning=yes ;;
13780     esac
13781
13782     # See if GNU ld supports shared libraries.
13783     case $host_os in
13784     aix3* | aix4* | aix5*)
13785       # On AIX/PPC, the GNU linker is very broken
13786       if test "$host_cpu" != ia64; then
13787         ld_shlibs_F77=no
13788         cat <<EOF 1>&2
13789
13790 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13791 *** to be unable to reliably create shared libraries on AIX.
13792 *** Therefore, libtool is disabling shared libraries support.  If you
13793 *** really care for shared libraries, you may want to modify your PATH
13794 *** so that a non-GNU linker is found, and then restart.
13795
13796 EOF
13797       fi
13798       ;;
13799
13800     amigaos*)
13801       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)'
13802       hardcode_libdir_flag_spec_F77='-L$libdir'
13803       hardcode_minus_L_F77=yes
13804
13805       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13806       # that the semantics of dynamic libraries on AmigaOS, at least up
13807       # to version 4, is to share data among multiple programs linked
13808       # with the same dynamic library.  Since this doesn't match the
13809       # behavior of shared libraries on other platforms, we can't use
13810       # them.
13811       ld_shlibs_F77=no
13812       ;;
13813
13814     beos*)
13815       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816         allow_undefined_flag_F77=unsupported
13817         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13818         # support --undefined.  This deserves some investigation.  FIXME
13819         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820       else
13821         ld_shlibs_F77=no
13822       fi
13823       ;;
13824
13825     cygwin* | mingw* | pw32*)
13826       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13827       # as there is no search path for DLLs.
13828       hardcode_libdir_flag_spec_F77='-L$libdir'
13829       allow_undefined_flag_F77=unsupported
13830       always_export_symbols_F77=no
13831       enable_shared_with_static_runtimes_F77=yes
13832       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13833
13834       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13835         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13836         # If the export-symbols file already is a .def file (1st line
13837         # is EXPORTS), use it as is; otherwise, prepend...
13838         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13839           cp $export_symbols $output_objdir/$soname.def;
13840         else
13841           echo EXPORTS > $output_objdir/$soname.def;
13842           cat $export_symbols >> $output_objdir/$soname.def;
13843         fi~
13844         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13845       else
13846         ld_shlibs_F77=no
13847       fi
13848       ;;
13849
13850     interix3*)
13851       hardcode_direct_F77=no
13852       hardcode_shlibpath_var_F77=no
13853       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13854       export_dynamic_flag_spec_F77='${wl}-E'
13855       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13856       # Instead, shared libraries are loaded at an image base (0x10000000 by
13857       # default) and relocated if they conflict, which is a slow very memory
13858       # consuming and fragmenting process.  To avoid this, we pick a random,
13859       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13860       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13861       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13862       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13863       ;;
13864
13865     linux*)
13866       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13867         tmp_addflag=
13868         case $cc_basename,$host_cpu in
13869         pgcc*)                          # Portland Group C compiler
13870           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13871           tmp_addflag=' $pic_flag'
13872           ;;
13873         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13874           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13875           tmp_addflag=' $pic_flag -Mnomain' ;;
13876         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13877           tmp_addflag=' -i_dynamic' ;;
13878         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13879           tmp_addflag=' -i_dynamic -nofor_main' ;;
13880         ifc* | ifort*)                  # Intel Fortran compiler
13881           tmp_addflag=' -nofor_main' ;;
13882         esac
13883         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884
13885         if test $supports_anon_versioning = yes; then
13886           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13887   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13888   $echo "local: *; };" >> $output_objdir/$libname.ver~
13889           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13890         fi
13891       else
13892         ld_shlibs_F77=no
13893       fi
13894       ;;
13895
13896     netbsd*)
13897       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13899         wlarc=
13900       else
13901         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903       fi
13904       ;;
13905
13906     solaris*)
13907       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13908         ld_shlibs_F77=no
13909         cat <<EOF 1>&2
13910
13911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912 *** create shared libraries on Solaris systems.  Therefore, libtool
13913 *** is disabling shared libraries support.  We urge you to upgrade GNU
13914 *** binutils to release 2.9.1 or newer.  Another option is to modify
13915 *** your PATH or compiler configuration so that the native linker is
13916 *** used, and then restart.
13917
13918 EOF
13919       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922       else
13923         ld_shlibs_F77=no
13924       fi
13925       ;;
13926
13927     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13928       case `$LD -v 2>&1` in
13929         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13930         ld_shlibs_F77=no
13931         cat <<_LT_EOF 1>&2
13932
13933 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13934 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13935 *** is disabling shared libraries support.  We urge you to upgrade GNU
13936 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13937 *** your PATH or compiler configuration so that the native linker is
13938 *** used, and then restart.
13939
13940 _LT_EOF
13941         ;;
13942         *)
13943           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13944             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13945             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13946             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13947           else
13948             ld_shlibs_F77=no
13949           fi
13950         ;;
13951       esac
13952       ;;
13953
13954     sunos4*)
13955       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13956       wlarc=
13957       hardcode_direct_F77=yes
13958       hardcode_shlibpath_var_F77=no
13959       ;;
13960
13961     *)
13962       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13964         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13965       else
13966         ld_shlibs_F77=no
13967       fi
13968       ;;
13969     esac
13970
13971     if test "$ld_shlibs_F77" = no; then
13972       runpath_var=
13973       hardcode_libdir_flag_spec_F77=
13974       export_dynamic_flag_spec_F77=
13975       whole_archive_flag_spec_F77=
13976     fi
13977   else
13978     # PORTME fill in a description of your system's linker (not GNU ld)
13979     case $host_os in
13980     aix3*)
13981       allow_undefined_flag_F77=unsupported
13982       always_export_symbols_F77=yes
13983       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'
13984       # Note: this linker hardcodes the directories in LIBPATH if there
13985       # are no directories specified by -L.
13986       hardcode_minus_L_F77=yes
13987       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13988         # Neither direct hardcoding nor static linking is supported with a
13989         # broken collect2.
13990         hardcode_direct_F77=unsupported
13991       fi
13992       ;;
13993
13994     aix4* | aix5*)
13995       if test "$host_cpu" = ia64; then
13996         # On IA64, the linker does run time linking by default, so we don't
13997         # have to do anything special.
13998         aix_use_runtimelinking=no
13999         exp_sym_flag='-Bexport'
14000         no_entry_flag=""
14001       else
14002         # If we're using GNU nm, then we don't want the "-C" option.
14003         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14004         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14005           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'
14006         else
14007           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'
14008         fi
14009         aix_use_runtimelinking=no
14010
14011         # Test if we are trying to use run time linking or normal
14012         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14013         # need to do runtime linking.
14014         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14015           for ld_flag in $LDFLAGS; do
14016           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14017             aix_use_runtimelinking=yes
14018             break
14019           fi
14020           done
14021           ;;
14022         esac
14023
14024         exp_sym_flag='-bexport'
14025         no_entry_flag='-bnoentry'
14026       fi
14027
14028       # When large executables or shared objects are built, AIX ld can
14029       # have problems creating the table of contents.  If linking a library
14030       # or program results in "error TOC overflow" add -mminimal-toc to
14031       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14032       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14033
14034       archive_cmds_F77=''
14035       hardcode_direct_F77=yes
14036       hardcode_libdir_separator_F77=':'
14037       link_all_deplibs_F77=yes
14038
14039       if test "$GCC" = yes; then
14040         case $host_os in aix4.[012]|aix4.[012].*)
14041         # We only want to do this on AIX 4.2 and lower, the check
14042         # below for broken collect2 doesn't work under 4.3+
14043           collect2name=`${CC} -print-prog-name=collect2`
14044           if test -f "$collect2name" && \
14045            strings "$collect2name" | grep resolve_lib_name >/dev/null
14046           then
14047           # We have reworked collect2
14048           hardcode_direct_F77=yes
14049           else
14050           # We have old collect2
14051           hardcode_direct_F77=unsupported
14052           # It fails to find uninstalled libraries when the uninstalled
14053           # path is not listed in the libpath.  Setting hardcode_minus_L
14054           # to unsupported forces relinking
14055           hardcode_minus_L_F77=yes
14056           hardcode_libdir_flag_spec_F77='-L$libdir'
14057           hardcode_libdir_separator_F77=
14058           fi
14059           ;;
14060         esac
14061         shared_flag='-shared'
14062         if test "$aix_use_runtimelinking" = yes; then
14063           shared_flag="$shared_flag "'${wl}-G'
14064         fi
14065       else
14066         # not using gcc
14067         if test "$host_cpu" = ia64; then
14068         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14069         # chokes on -Wl,-G. The following line is correct:
14070           shared_flag='-G'
14071         else
14072           if test "$aix_use_runtimelinking" = yes; then
14073             shared_flag='${wl}-G'
14074           else
14075             shared_flag='${wl}-bM:SRE'
14076           fi
14077         fi
14078       fi
14079
14080       # It seems that -bexpall does not export symbols beginning with
14081       # underscore (_), so it is better to generate a list of symbols to export.
14082       always_export_symbols_F77=yes
14083       if test "$aix_use_runtimelinking" = yes; then
14084         # Warning - without using the other runtime loading flags (-brtl),
14085         # -berok will link without error, but may produce a broken library.
14086         allow_undefined_flag_F77='-berok'
14087        # Determine the default libpath from the value encoded in an empty executable.
14088        cat >conftest.$ac_ext <<_ACEOF
14089       program main
14090
14091       end
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095   (eval $ac_link) 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } &&
14102          { ac_try='test -z "$ac_f77_werror_flag"
14103                          || test ! -s conftest.err'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; } &&
14109          { ac_try='test -s conftest$ac_exeext'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }; then
14115
14116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14117 }'`
14118 # Check for a 64-bit object if we didn't find anything.
14119 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; }
14120 }'`; fi
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 fi
14126 rm -f conftest.err conftest.$ac_objext \
14127       conftest$ac_exeext conftest.$ac_ext
14128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14129
14130        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14131         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14132        else
14133         if test "$host_cpu" = ia64; then
14134           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14135           allow_undefined_flag_F77="-z nodefs"
14136           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14137         else
14138          # Determine the default libpath from the value encoded in an empty executable.
14139          cat >conftest.$ac_ext <<_ACEOF
14140       program main
14141
14142       end
14143 _ACEOF
14144 rm -f conftest.$ac_objext conftest$ac_exeext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14146   (eval $ac_link) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } &&
14153          { ac_try='test -z "$ac_f77_werror_flag"
14154                          || test ! -s conftest.err'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; } &&
14160          { ac_try='test -s conftest$ac_exeext'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }; then
14166
14167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14168 }'`
14169 # Check for a 64-bit object if we didn't find anything.
14170 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; }
14171 }'`; fi
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 fi
14177 rm -f conftest.err conftest.$ac_objext \
14178       conftest$ac_exeext conftest.$ac_ext
14179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14180
14181          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14182           # Warning - without using the other run time loading flags,
14183           # -berok will link without error, but may produce a broken library.
14184           no_undefined_flag_F77=' ${wl}-bernotok'
14185           allow_undefined_flag_F77=' ${wl}-berok'
14186           # Exported symbols can be pulled into shared objects from archives
14187           whole_archive_flag_spec_F77='$convenience'
14188           archive_cmds_need_lc_F77=yes
14189           # This is similar to how AIX traditionally builds its shared libraries.
14190           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14191         fi
14192       fi
14193       ;;
14194
14195     amigaos*)
14196       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)'
14197       hardcode_libdir_flag_spec_F77='-L$libdir'
14198       hardcode_minus_L_F77=yes
14199       # see comment about different semantics on the GNU ld section
14200       ld_shlibs_F77=no
14201       ;;
14202
14203     bsdi[45]*)
14204       export_dynamic_flag_spec_F77=-rdynamic
14205       ;;
14206
14207     cygwin* | mingw* | pw32*)
14208       # When not using gcc, we currently assume that we are using
14209       # Microsoft Visual C++.
14210       # hardcode_libdir_flag_spec is actually meaningless, as there is
14211       # no search path for DLLs.
14212       hardcode_libdir_flag_spec_F77=' '
14213       allow_undefined_flag_F77=unsupported
14214       # Tell ltmain to make .lib files, not .a files.
14215       libext=lib
14216       # Tell ltmain to make .dll files, not .so files.
14217       shrext_cmds=".dll"
14218       # FIXME: Setting linknames here is a bad hack.
14219       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14220       # The linker will automatically build a .lib file if we build a DLL.
14221       old_archive_From_new_cmds_F77='true'
14222       # FIXME: Should let the user specify the lib program.
14223       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14224       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14225       enable_shared_with_static_runtimes_F77=yes
14226       ;;
14227
14228     darwin* | rhapsody*)
14229       case $host_os in
14230         rhapsody* | darwin1.[012])
14231          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14232          ;;
14233        *) # Darwin 1.3 on
14234          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14235            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14236          else
14237            case ${MACOSX_DEPLOYMENT_TARGET} in
14238              10.[012])
14239                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14240                ;;
14241              10.*)
14242                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14243                ;;
14244            esac
14245          fi
14246          ;;
14247       esac
14248       archive_cmds_need_lc_F77=no
14249       hardcode_direct_F77=no
14250       hardcode_automatic_F77=yes
14251       hardcode_shlibpath_var_F77=unsupported
14252       whole_archive_flag_spec_F77=''
14253       link_all_deplibs_F77=yes
14254     if test "$GCC" = yes ; then
14255         output_verbose_link_cmd='echo'
14256         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14257       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14258       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14259       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14260       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}'
14261     else
14262       case $cc_basename in
14263         xlc*)
14264          output_verbose_link_cmd='echo'
14265          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14266          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14267           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14268          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14269           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}'
14270           ;;
14271        *)
14272          ld_shlibs_F77=no
14273           ;;
14274       esac
14275     fi
14276       ;;
14277
14278     dgux*)
14279       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280       hardcode_libdir_flag_spec_F77='-L$libdir'
14281       hardcode_shlibpath_var_F77=no
14282       ;;
14283
14284     freebsd1*)
14285       ld_shlibs_F77=no
14286       ;;
14287
14288     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14289     # support.  Future versions do this automatically, but an explicit c++rt0.o
14290     # does not break anything, and helps significantly (at the cost of a little
14291     # extra space).
14292     freebsd2.2*)
14293       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14294       hardcode_libdir_flag_spec_F77='-R$libdir'
14295       hardcode_direct_F77=yes
14296       hardcode_shlibpath_var_F77=no
14297       ;;
14298
14299     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14300     freebsd2*)
14301       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14302       hardcode_direct_F77=yes
14303       hardcode_minus_L_F77=yes
14304       hardcode_shlibpath_var_F77=no
14305       ;;
14306
14307     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14308     freebsd* | kfreebsd*-gnu | dragonfly*)
14309       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14310       hardcode_libdir_flag_spec_F77='-R$libdir'
14311       hardcode_direct_F77=yes
14312       hardcode_shlibpath_var_F77=no
14313       ;;
14314
14315     hpux9*)
14316       if test "$GCC" = yes; then
14317         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'
14318       else
14319         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'
14320       fi
14321       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14322       hardcode_libdir_separator_F77=:
14323       hardcode_direct_F77=yes
14324
14325       # hardcode_minus_L: Not really in the search PATH,
14326       # but as the default location of the library.
14327       hardcode_minus_L_F77=yes
14328       export_dynamic_flag_spec_F77='${wl}-E'
14329       ;;
14330
14331     hpux10*)
14332       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14333         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14334       else
14335         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14336       fi
14337       if test "$with_gnu_ld" = no; then
14338         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14339         hardcode_libdir_separator_F77=:
14340
14341         hardcode_direct_F77=yes
14342         export_dynamic_flag_spec_F77='${wl}-E'
14343
14344         # hardcode_minus_L: Not really in the search PATH,
14345         # but as the default location of the library.
14346         hardcode_minus_L_F77=yes
14347       fi
14348       ;;
14349
14350     hpux11*)
14351       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14352         case $host_cpu in
14353         hppa*64*)
14354           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14355           ;;
14356         ia64*)
14357           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14358           ;;
14359         *)
14360           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14361           ;;
14362         esac
14363       else
14364         case $host_cpu in
14365         hppa*64*)
14366           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14367           ;;
14368         ia64*)
14369           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14370           ;;
14371         *)
14372           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14373           ;;
14374         esac
14375       fi
14376       if test "$with_gnu_ld" = no; then
14377         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14378         hardcode_libdir_separator_F77=:
14379
14380         case $host_cpu in
14381         hppa*64*|ia64*)
14382           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383           hardcode_direct_F77=no
14384           hardcode_shlibpath_var_F77=no
14385           ;;
14386         *)
14387           hardcode_direct_F77=yes
14388           export_dynamic_flag_spec_F77='${wl}-E'
14389
14390           # hardcode_minus_L: Not really in the search PATH,
14391           # but as the default location of the library.
14392           hardcode_minus_L_F77=yes
14393           ;;
14394         esac
14395       fi
14396       ;;
14397
14398     irix5* | irix6* | nonstopux*)
14399       if test "$GCC" = yes; then
14400         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'
14401       else
14402         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'
14403         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14404       fi
14405       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406       hardcode_libdir_separator_F77=:
14407       link_all_deplibs_F77=yes
14408       ;;
14409
14410     netbsd*)
14411       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14413       else
14414         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14415       fi
14416       hardcode_libdir_flag_spec_F77='-R$libdir'
14417       hardcode_direct_F77=yes
14418       hardcode_shlibpath_var_F77=no
14419       ;;
14420
14421     newsos6)
14422       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423       hardcode_direct_F77=yes
14424       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14425       hardcode_libdir_separator_F77=:
14426       hardcode_shlibpath_var_F77=no
14427       ;;
14428
14429     openbsd*)
14430       hardcode_direct_F77=yes
14431       hardcode_shlibpath_var_F77=no
14432       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14433         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14434         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14435         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14436         export_dynamic_flag_spec_F77='${wl}-E'
14437       else
14438        case $host_os in
14439          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14440            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441            hardcode_libdir_flag_spec_F77='-R$libdir'
14442            ;;
14443          *)
14444            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14445            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446            ;;
14447        esac
14448       fi
14449       ;;
14450
14451     os2*)
14452       hardcode_libdir_flag_spec_F77='-L$libdir'
14453       hardcode_minus_L_F77=yes
14454       allow_undefined_flag_F77=unsupported
14455       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'
14456       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14457       ;;
14458
14459     osf3*)
14460       if test "$GCC" = yes; then
14461         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14462         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'
14463       else
14464         allow_undefined_flag_F77=' -expect_unresolved \*'
14465         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'
14466       fi
14467       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468       hardcode_libdir_separator_F77=:
14469       ;;
14470
14471     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14472       if test "$GCC" = yes; then
14473         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474         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'
14475         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14476       else
14477         allow_undefined_flag_F77=' -expect_unresolved \*'
14478         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'
14479         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~
14480         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14481
14482         # Both c and cxx compiler support -rpath directly
14483         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14484       fi
14485       hardcode_libdir_separator_F77=:
14486       ;;
14487
14488     solaris*)
14489       no_undefined_flag_F77=' -z text'
14490       if test "$GCC" = yes; then
14491         wlarc='${wl}'
14492         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14494           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495       else
14496         wlarc=''
14497         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14499         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14500       fi
14501       hardcode_libdir_flag_spec_F77='-R$libdir'
14502       hardcode_shlibpath_var_F77=no
14503       case $host_os in
14504       solaris2.[0-5] | solaris2.[0-5].*) ;;
14505       *)
14506         # The compiler driver will combine linker options so we
14507         # cannot just pass the convience library names through
14508         # without $wl, iff we do not link with $LD.
14509         # Luckily, gcc supports the same syntax we need for Sun Studio.
14510         # Supported since Solaris 2.6 (maybe 2.5.1?)
14511         case $wlarc in
14512         '')
14513           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14514         *)
14515           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14516         esac ;;
14517       esac
14518       link_all_deplibs_F77=yes
14519       ;;
14520
14521     sunos4*)
14522       if test "x$host_vendor" = xsequent; then
14523         # Use $CC to link under sequent, because it throws in some extra .o
14524         # files that make .init and .fini sections work.
14525         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14526       else
14527         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14528       fi
14529       hardcode_libdir_flag_spec_F77='-L$libdir'
14530       hardcode_direct_F77=yes
14531       hardcode_minus_L_F77=yes
14532       hardcode_shlibpath_var_F77=no
14533       ;;
14534
14535     sysv4)
14536       case $host_vendor in
14537         sni)
14538           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539           hardcode_direct_F77=yes # is this really true???
14540         ;;
14541         siemens)
14542           ## LD is ld it makes a PLAMLIB
14543           ## CC just makes a GrossModule.
14544           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14545           reload_cmds_F77='$CC -r -o $output$reload_objs'
14546           hardcode_direct_F77=no
14547         ;;
14548         motorola)
14549           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14551         ;;
14552       esac
14553       runpath_var='LD_RUN_PATH'
14554       hardcode_shlibpath_var_F77=no
14555       ;;
14556
14557     sysv4.3*)
14558       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559       hardcode_shlibpath_var_F77=no
14560       export_dynamic_flag_spec_F77='-Bexport'
14561       ;;
14562
14563     sysv4*MP*)
14564       if test -d /usr/nec; then
14565         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566         hardcode_shlibpath_var_F77=no
14567         runpath_var=LD_RUN_PATH
14568         hardcode_runpath_var=yes
14569         ld_shlibs_F77=yes
14570       fi
14571       ;;
14572
14573     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14574       no_undefined_flag_F77='${wl}-z,text'
14575       archive_cmds_need_lc_F77=no
14576       hardcode_shlibpath_var_F77=no
14577       runpath_var='LD_RUN_PATH'
14578
14579       if test "$GCC" = yes; then
14580         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582       else
14583         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585       fi
14586       ;;
14587
14588     sysv5* | sco3.2v5* | sco5v6*)
14589       # Note: We can NOT use -z defs as we might desire, because we do not
14590       # link with -lc, and that would cause any symbols used from libc to
14591       # always be unresolved, which means just about no library would
14592       # ever link correctly.  If we're not using GNU ld we use -z text
14593       # though, which does catch some bad symbols but isn't as heavy-handed
14594       # as -z defs.
14595       no_undefined_flag_F77='${wl}-z,text'
14596       allow_undefined_flag_F77='${wl}-z,nodefs'
14597       archive_cmds_need_lc_F77=no
14598       hardcode_shlibpath_var_F77=no
14599       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14600       hardcode_libdir_separator_F77=':'
14601       link_all_deplibs_F77=yes
14602       export_dynamic_flag_spec_F77='${wl}-Bexport'
14603       runpath_var='LD_RUN_PATH'
14604
14605       if test "$GCC" = yes; then
14606         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608       else
14609         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611       fi
14612       ;;
14613
14614     uts4*)
14615       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616       hardcode_libdir_flag_spec_F77='-L$libdir'
14617       hardcode_shlibpath_var_F77=no
14618       ;;
14619
14620     *)
14621       ld_shlibs_F77=no
14622       ;;
14623     esac
14624   fi
14625
14626 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14627 echo "${ECHO_T}$ld_shlibs_F77" >&6
14628 test "$ld_shlibs_F77" = no && can_build_shared=no
14629
14630 #
14631 # Do we need to explicitly link libc?
14632 #
14633 case "x$archive_cmds_need_lc_F77" in
14634 x|xyes)
14635   # Assume -lc should be added
14636   archive_cmds_need_lc_F77=yes
14637
14638   if test "$enable_shared" = yes && test "$GCC" = yes; then
14639     case $archive_cmds_F77 in
14640     *'~'*)
14641       # FIXME: we may have to deal with multi-command sequences.
14642       ;;
14643     '$CC '*)
14644       # Test whether the compiler implicitly links with -lc since on some
14645       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14646       # to ld, don't add -lc before -lgcc.
14647       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14648 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14649       $rm conftest*
14650       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14651
14652       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653   (eval $ac_compile) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } 2>conftest.err; then
14657         soname=conftest
14658         lib=conftest
14659         libobjs=conftest.$ac_objext
14660         deplibs=
14661         wl=$lt_prog_compiler_wl_F77
14662         pic_flag=$lt_prog_compiler_pic_F77
14663         compiler_flags=-v
14664         linker_flags=-v
14665         verstring=
14666         output_objdir=.
14667         libname=conftest
14668         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14669         allow_undefined_flag_F77=
14670         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14671   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }
14675         then
14676           archive_cmds_need_lc_F77=no
14677         else
14678           archive_cmds_need_lc_F77=yes
14679         fi
14680         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14681       else
14682         cat conftest.err 1>&5
14683       fi
14684       $rm conftest*
14685       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14686 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14687       ;;
14688     esac
14689   fi
14690   ;;
14691 esac
14692
14693 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14695 library_names_spec=
14696 libname_spec='lib$name'
14697 soname_spec=
14698 shrext_cmds=".so"
14699 postinstall_cmds=
14700 postuninstall_cmds=
14701 finish_cmds=
14702 finish_eval=
14703 shlibpath_var=
14704 shlibpath_overrides_runpath=unknown
14705 version_type=none
14706 dynamic_linker="$host_os ld.so"
14707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14708 if test "$GCC" = yes; then
14709   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14710   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14711     # if the path contains ";" then we assume it to be the separator
14712     # otherwise default to the standard path separator (i.e. ":") - it is
14713     # assumed that no part of a normal pathname contains ";" but that should
14714     # okay in the real world where ";" in dirpaths is itself problematic.
14715     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14716   else
14717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14718   fi
14719 else
14720   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14721 fi
14722 need_lib_prefix=unknown
14723 hardcode_into_libs=no
14724
14725 # when you set need_version to no, make sure it does not cause -set_version
14726 # flags to be left without arguments
14727 need_version=unknown
14728
14729 case $host_os in
14730 aix3*)
14731   version_type=linux
14732   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14733   shlibpath_var=LIBPATH
14734
14735   # AIX 3 has no versioning support, so we append a major version to the name.
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   ;;
14738
14739 aix4* | aix5*)
14740   version_type=linux
14741   need_lib_prefix=no
14742   need_version=no
14743   hardcode_into_libs=yes
14744   if test "$host_cpu" = ia64; then
14745     # AIX 5 supports IA64
14746     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14747     shlibpath_var=LD_LIBRARY_PATH
14748   else
14749     # With GCC up to 2.95.x, collect2 would create an import file
14750     # for dependence libraries.  The import file would start with
14751     # the line `#! .'.  This would cause the generated library to
14752     # depend on `.', always an invalid library.  This was fixed in
14753     # development snapshots of GCC prior to 3.0.
14754     case $host_os in
14755       aix4 | aix4.[01] | aix4.[01].*)
14756       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14757            echo ' yes '
14758            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14759         :
14760       else
14761         can_build_shared=no
14762       fi
14763       ;;
14764     esac
14765     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14766     # soname into executable. Probably we can add versioning support to
14767     # collect2, so additional links can be useful in future.
14768     if test "$aix_use_runtimelinking" = yes; then
14769       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14770       # instead of lib<name>.a to let people know that these are not
14771       # typical AIX shared libraries.
14772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773     else
14774       # We preserve .a as extension for shared libraries through AIX4.2
14775       # and later when we are not doing run time linking.
14776       library_names_spec='${libname}${release}.a $libname.a'
14777       soname_spec='${libname}${release}${shared_ext}$major'
14778     fi
14779     shlibpath_var=LIBPATH
14780   fi
14781   ;;
14782
14783 amigaos*)
14784   library_names_spec='$libname.ixlibrary $libname.a'
14785   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14786   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'
14787   ;;
14788
14789 beos*)
14790   library_names_spec='${libname}${shared_ext}'
14791   dynamic_linker="$host_os ld.so"
14792   shlibpath_var=LIBRARY_PATH
14793   ;;
14794
14795 bsdi[45]*)
14796   version_type=linux
14797   need_version=no
14798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799   soname_spec='${libname}${release}${shared_ext}$major'
14800   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14801   shlibpath_var=LD_LIBRARY_PATH
14802   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14803   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14804   # the default ld.so.conf also contains /usr/contrib/lib and
14805   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14806   # libtool to hard-code these into programs
14807   ;;
14808
14809 cygwin* | mingw* | pw32*)
14810   version_type=windows
14811   shrext_cmds=".dll"
14812   need_version=no
14813   need_lib_prefix=no
14814
14815   case $GCC,$host_os in
14816   yes,cygwin* | yes,mingw* | yes,pw32*)
14817     library_names_spec='$libname.dll.a'
14818     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14819     postinstall_cmds='base_file=`basename \${file}`~
14820       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14821       dldir=$destdir/`dirname \$dlpath`~
14822       test -d \$dldir || mkdir -p \$dldir~
14823       $install_prog $dir/$dlname \$dldir/$dlname~
14824       chmod a+x \$dldir/$dlname'
14825     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14826       dlpath=$dir/\$dldll~
14827        $rm \$dlpath'
14828     shlibpath_overrides_runpath=yes
14829
14830     case $host_os in
14831     cygwin*)
14832       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14833       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14835       ;;
14836     mingw*)
14837       # MinGW DLLs use traditional 'lib' prefix
14838       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14840       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14841         # It is most probably a Windows format PATH printed by
14842         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14843         # path with ; separators, and with drive letters. We can handle the
14844         # drive letters (cygwin fileutils understands them), so leave them,
14845         # especially as we might pass files found there to a mingw objdump,
14846         # which wouldn't understand a cygwinified path. Ahh.
14847         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14848       else
14849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14850       fi
14851       ;;
14852     pw32*)
14853       # pw32 DLLs use 'pw' prefix rather than 'lib'
14854       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14855       ;;
14856     esac
14857     ;;
14858
14859   *)
14860     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14861     ;;
14862   esac
14863   dynamic_linker='Win32 ld.exe'
14864   # FIXME: first we should search . and the directory the executable is in
14865   shlibpath_var=PATH
14866   ;;
14867
14868 darwin* | rhapsody*)
14869   dynamic_linker="$host_os dyld"
14870   version_type=darwin
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14874   soname_spec='${libname}${release}${major}$shared_ext'
14875   shlibpath_overrides_runpath=yes
14876   shlibpath_var=DYLD_LIBRARY_PATH
14877   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14878   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14879   if test "$GCC" = yes; then
14880     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"`
14881   else
14882     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14883   fi
14884   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14885   ;;
14886
14887 dgux*)
14888   version_type=linux
14889   need_lib_prefix=no
14890   need_version=no
14891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14892   soname_spec='${libname}${release}${shared_ext}$major'
14893   shlibpath_var=LD_LIBRARY_PATH
14894   ;;
14895
14896 freebsd1*)
14897   dynamic_linker=no
14898   ;;
14899
14900 kfreebsd*-gnu)
14901   version_type=linux
14902   need_lib_prefix=no
14903   need_version=no
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14905   soname_spec='${libname}${release}${shared_ext}$major'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   shlibpath_overrides_runpath=no
14908   hardcode_into_libs=yes
14909   dynamic_linker='GNU ld.so'
14910   ;;
14911
14912 freebsd* | dragonfly*)
14913   # DragonFly does not have aout.  When/if they implement a new
14914   # versioning mechanism, adjust this.
14915   if test -x /usr/bin/objformat; then
14916     objformat=`/usr/bin/objformat`
14917   else
14918     case $host_os in
14919     freebsd[123]*) objformat=aout ;;
14920     *) objformat=elf ;;
14921     esac
14922   fi
14923   version_type=freebsd-$objformat
14924   case $version_type in
14925     freebsd-elf*)
14926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14927       need_version=no
14928       need_lib_prefix=no
14929       ;;
14930     freebsd-*)
14931       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14932       need_version=yes
14933       ;;
14934   esac
14935   shlibpath_var=LD_LIBRARY_PATH
14936   case $host_os in
14937   freebsd2*)
14938     shlibpath_overrides_runpath=yes
14939     ;;
14940   freebsd3.[01]* | freebsdelf3.[01]*)
14941     shlibpath_overrides_runpath=yes
14942     hardcode_into_libs=yes
14943     ;;
14944   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14945   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14946     shlibpath_overrides_runpath=no
14947     hardcode_into_libs=yes
14948     ;;
14949   freebsd*) # from 4.6 on
14950     shlibpath_overrides_runpath=yes
14951     hardcode_into_libs=yes
14952     ;;
14953   esac
14954   ;;
14955
14956 gnu*)
14957   version_type=linux
14958   need_lib_prefix=no
14959   need_version=no
14960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14961   soname_spec='${libname}${release}${shared_ext}$major'
14962   shlibpath_var=LD_LIBRARY_PATH
14963   hardcode_into_libs=yes
14964   ;;
14965
14966 hpux9* | hpux10* | hpux11*)
14967   # Give a soname corresponding to the major version so that dld.sl refuses to
14968   # link against other versions.
14969   version_type=sunos
14970   need_lib_prefix=no
14971   need_version=no
14972   case $host_cpu in
14973   ia64*)
14974     shrext_cmds='.so'
14975     hardcode_into_libs=yes
14976     dynamic_linker="$host_os dld.so"
14977     shlibpath_var=LD_LIBRARY_PATH
14978     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980     soname_spec='${libname}${release}${shared_ext}$major'
14981     if test "X$HPUX_IA64_MODE" = X32; then
14982       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14983     else
14984       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14985     fi
14986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14987     ;;
14988    hppa*64*)
14989      shrext_cmds='.sl'
14990      hardcode_into_libs=yes
14991      dynamic_linker="$host_os dld.sl"
14992      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14993      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14994      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995      soname_spec='${libname}${release}${shared_ext}$major'
14996      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14997      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14998      ;;
14999    *)
15000     shrext_cmds='.sl'
15001     dynamic_linker="$host_os dld.sl"
15002     shlibpath_var=SHLIB_PATH
15003     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
15007   esac
15008   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15009   postinstall_cmds='chmod 555 $lib'
15010   ;;
15011
15012 interix3*)
15013   version_type=linux
15014   need_lib_prefix=no
15015   need_version=no
15016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15017   soname_spec='${libname}${release}${shared_ext}$major'
15018   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15019   shlibpath_var=LD_LIBRARY_PATH
15020   shlibpath_overrides_runpath=no
15021   hardcode_into_libs=yes
15022   ;;
15023
15024 irix5* | irix6* | nonstopux*)
15025   case $host_os in
15026     nonstopux*) version_type=nonstopux ;;
15027     *)
15028         if test "$lt_cv_prog_gnu_ld" = yes; then
15029                 version_type=linux
15030         else
15031                 version_type=irix
15032         fi ;;
15033   esac
15034   need_lib_prefix=no
15035   need_version=no
15036   soname_spec='${libname}${release}${shared_ext}$major'
15037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15038   case $host_os in
15039   irix5* | nonstopux*)
15040     libsuff= shlibsuff=
15041     ;;
15042   *)
15043     case $LD in # libtool.m4 will add one of these switches to LD
15044     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15045       libsuff= shlibsuff= libmagic=32-bit;;
15046     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15047       libsuff=32 shlibsuff=N32 libmagic=N32;;
15048     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15049       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15050     *) libsuff= shlibsuff= libmagic=never-match;;
15051     esac
15052     ;;
15053   esac
15054   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15055   shlibpath_overrides_runpath=no
15056   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15057   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15058   hardcode_into_libs=yes
15059   ;;
15060
15061 # No shared lib support for Linux oldld, aout, or coff.
15062 linux*oldld* | linux*aout* | linux*coff*)
15063   dynamic_linker=no
15064   ;;
15065
15066 # This must be Linux ELF.
15067 linux*)
15068   version_type=linux
15069   need_lib_prefix=no
15070   need_version=no
15071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072   soname_spec='${libname}${release}${shared_ext}$major'
15073   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15074   shlibpath_var=LD_LIBRARY_PATH
15075   shlibpath_overrides_runpath=no
15076   # This implies no fast_install, which is unacceptable.
15077   # Some rework will be needed to allow for fast_install
15078   # before this can be enabled.
15079   hardcode_into_libs=yes
15080
15081   # find out which ABI we are using
15082   libsuff=
15083   case "$host_cpu" in
15084   x86_64*|s390x*|powerpc64*)
15085     echo '#line 15085 "configure"' > conftest.$ac_ext
15086     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087   (eval $ac_compile) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; then
15091       case `/usr/bin/file conftest.$ac_objext` in
15092       *64-bit*)
15093         libsuff=64
15094         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15095         ;;
15096       esac
15097     fi
15098     rm -rf conftest*
15099     ;;
15100   esac
15101
15102   # Append ld.so.conf contents to the search path
15103   if test -f /etc/ld.so.conf; then
15104     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15105     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15106   fi
15107
15108   # We used to test for /lib/ld.so.1 and disable shared libraries on
15109   # powerpc, because MkLinux only supported shared libraries with the
15110   # GNU dynamic linker.  Since this was broken with cross compilers,
15111   # most powerpc-linux boxes support dynamic linking these days and
15112   # people can always --disable-shared, the test was removed, and we
15113   # assume the GNU/Linux dynamic linker is in use.
15114   dynamic_linker='GNU/Linux ld.so'
15115   ;;
15116
15117 knetbsd*-gnu)
15118   version_type=linux
15119   need_lib_prefix=no
15120   need_version=no
15121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122   soname_spec='${libname}${release}${shared_ext}$major'
15123   shlibpath_var=LD_LIBRARY_PATH
15124   shlibpath_overrides_runpath=no
15125   hardcode_into_libs=yes
15126   dynamic_linker='GNU ld.so'
15127   ;;
15128
15129 netbsd*)
15130   version_type=sunos
15131   need_lib_prefix=no
15132   need_version=no
15133   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15135     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15136     dynamic_linker='NetBSD (a.out) ld.so'
15137   else
15138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15139     soname_spec='${libname}${release}${shared_ext}$major'
15140     dynamic_linker='NetBSD ld.elf_so'
15141   fi
15142   shlibpath_var=LD_LIBRARY_PATH
15143   shlibpath_overrides_runpath=yes
15144   hardcode_into_libs=yes
15145   ;;
15146
15147 newsos6)
15148   version_type=linux
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150   shlibpath_var=LD_LIBRARY_PATH
15151   shlibpath_overrides_runpath=yes
15152   ;;
15153
15154 nto-qnx*)
15155   version_type=linux
15156   need_lib_prefix=no
15157   need_version=no
15158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159   soname_spec='${libname}${release}${shared_ext}$major'
15160   shlibpath_var=LD_LIBRARY_PATH
15161   shlibpath_overrides_runpath=yes
15162   ;;
15163
15164 openbsd*)
15165   version_type=sunos
15166   sys_lib_dlsearch_path_spec="/usr/lib"
15167   need_lib_prefix=no
15168   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15169   case $host_os in
15170     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15171     *)                         need_version=no  ;;
15172   esac
15173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15175   shlibpath_var=LD_LIBRARY_PATH
15176   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15177     case $host_os in
15178       openbsd2.[89] | openbsd2.[89].*)
15179         shlibpath_overrides_runpath=no
15180         ;;
15181       *)
15182         shlibpath_overrides_runpath=yes
15183         ;;
15184       esac
15185   else
15186     shlibpath_overrides_runpath=yes
15187   fi
15188   ;;
15189
15190 os2*)
15191   libname_spec='$name'
15192   shrext_cmds=".dll"
15193   need_lib_prefix=no
15194   library_names_spec='$libname${shared_ext} $libname.a'
15195   dynamic_linker='OS/2 ld.exe'
15196   shlibpath_var=LIBPATH
15197   ;;
15198
15199 osf3* | osf4* | osf5*)
15200   version_type=osf
15201   need_lib_prefix=no
15202   need_version=no
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15207   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15208   ;;
15209
15210 solaris*)
15211   version_type=linux
15212   need_lib_prefix=no
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   shlibpath_overrides_runpath=yes
15218   hardcode_into_libs=yes
15219   # ldd complains unless libraries are executable
15220   postinstall_cmds='chmod +x $lib'
15221   ;;
15222
15223 sunos4*)
15224   version_type=sunos
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   shlibpath_overrides_runpath=yes
15229   if test "$with_gnu_ld" = yes; then
15230     need_lib_prefix=no
15231   fi
15232   need_version=yes
15233   ;;
15234
15235 sysv4 | sysv4.3*)
15236   version_type=linux
15237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238   soname_spec='${libname}${release}${shared_ext}$major'
15239   shlibpath_var=LD_LIBRARY_PATH
15240   case $host_vendor in
15241     sni)
15242       shlibpath_overrides_runpath=no
15243       need_lib_prefix=no
15244       export_dynamic_flag_spec='${wl}-Blargedynsym'
15245       runpath_var=LD_RUN_PATH
15246       ;;
15247     siemens)
15248       need_lib_prefix=no
15249       ;;
15250     motorola)
15251       need_lib_prefix=no
15252       need_version=no
15253       shlibpath_overrides_runpath=no
15254       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15255       ;;
15256   esac
15257   ;;
15258
15259 sysv4*MP*)
15260   if test -d /usr/nec ;then
15261     version_type=linux
15262     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263     soname_spec='$libname${shared_ext}.$major'
15264     shlibpath_var=LD_LIBRARY_PATH
15265   fi
15266   ;;
15267
15268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269   version_type=freebsd-elf
15270   need_lib_prefix=no
15271   need_version=no
15272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273   soname_spec='${libname}${release}${shared_ext}$major'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   hardcode_into_libs=yes
15276   if test "$with_gnu_ld" = yes; then
15277     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15278     shlibpath_overrides_runpath=no
15279   else
15280     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281     shlibpath_overrides_runpath=yes
15282     case $host_os in
15283       sco3.2v5*)
15284         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15285         ;;
15286     esac
15287   fi
15288   sys_lib_dlsearch_path_spec='/usr/lib'
15289   ;;
15290
15291 uts4*)
15292   version_type=linux
15293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294   soname_spec='${libname}${release}${shared_ext}$major'
15295   shlibpath_var=LD_LIBRARY_PATH
15296   ;;
15297
15298 *)
15299   dynamic_linker=no
15300   ;;
15301 esac
15302 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15303 echo "${ECHO_T}$dynamic_linker" >&6
15304 test "$dynamic_linker" = no && can_build_shared=no
15305
15306 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15307 if test "$GCC" = yes; then
15308   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15309 fi
15310
15311 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15312 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15313 hardcode_action_F77=
15314 if test -n "$hardcode_libdir_flag_spec_F77" || \
15315    test -n "$runpath_var_F77" || \
15316    test "X$hardcode_automatic_F77" = "Xyes" ; then
15317
15318   # We can hardcode non-existant directories.
15319   if test "$hardcode_direct_F77" != no &&
15320      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321      # have to relink, otherwise we might link with an installed library
15322      # when we should be linking with a yet-to-be-installed one
15323      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15324      test "$hardcode_minus_L_F77" != no; then
15325     # Linking always hardcodes the temporary library directory.
15326     hardcode_action_F77=relink
15327   else
15328     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329     hardcode_action_F77=immediate
15330   fi
15331 else
15332   # We cannot hardcode anything, or else we can only hardcode existing
15333   # directories.
15334   hardcode_action_F77=unsupported
15335 fi
15336 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15337 echo "${ECHO_T}$hardcode_action_F77" >&6
15338
15339 if test "$hardcode_action_F77" = relink; then
15340   # Fast installation is not supported
15341   enable_fast_install=no
15342 elif test "$shlibpath_overrides_runpath" = yes ||
15343      test "$enable_shared" = no; then
15344   # Fast installation is not necessary
15345   enable_fast_install=needless
15346 fi
15347
15348
15349 # The else clause should only fire when bootstrapping the
15350 # libtool distribution, otherwise you forgot to ship ltmain.sh
15351 # with your package, and you will get complaints that there are
15352 # no rules to generate ltmain.sh.
15353 if test -f "$ltmain"; then
15354   # See if we are running on zsh, and set the options which allow our commands through
15355   # without removal of \ escapes.
15356   if test -n "${ZSH_VERSION+set}" ; then
15357     setopt NO_GLOB_SUBST
15358   fi
15359   # Now quote all the things that may contain metacharacters while being
15360   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15361   # variables and quote the copies for generation of the libtool script.
15362   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15363     SED SHELL STRIP \
15364     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15365     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15366     deplibs_check_method reload_flag reload_cmds need_locks \
15367     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15368     lt_cv_sys_global_symbol_to_c_name_address \
15369     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15370     old_postinstall_cmds old_postuninstall_cmds \
15371     compiler_F77 \
15372     CC_F77 \
15373     LD_F77 \
15374     lt_prog_compiler_wl_F77 \
15375     lt_prog_compiler_pic_F77 \
15376     lt_prog_compiler_static_F77 \
15377     lt_prog_compiler_no_builtin_flag_F77 \
15378     export_dynamic_flag_spec_F77 \
15379     thread_safe_flag_spec_F77 \
15380     whole_archive_flag_spec_F77 \
15381     enable_shared_with_static_runtimes_F77 \
15382     old_archive_cmds_F77 \
15383     old_archive_from_new_cmds_F77 \
15384     predep_objects_F77 \
15385     postdep_objects_F77 \
15386     predeps_F77 \
15387     postdeps_F77 \
15388     compiler_lib_search_path_F77 \
15389     archive_cmds_F77 \
15390     archive_expsym_cmds_F77 \
15391     postinstall_cmds_F77 \
15392     postuninstall_cmds_F77 \
15393     old_archive_from_expsyms_cmds_F77 \
15394     allow_undefined_flag_F77 \
15395     no_undefined_flag_F77 \
15396     export_symbols_cmds_F77 \
15397     hardcode_libdir_flag_spec_F77 \
15398     hardcode_libdir_flag_spec_ld_F77 \
15399     hardcode_libdir_separator_F77 \
15400     hardcode_automatic_F77 \
15401     module_cmds_F77 \
15402     module_expsym_cmds_F77 \
15403     lt_cv_prog_compiler_c_o_F77 \
15404     exclude_expsyms_F77 \
15405     include_expsyms_F77; do
15406
15407     case $var in
15408     old_archive_cmds_F77 | \
15409     old_archive_from_new_cmds_F77 | \
15410     archive_cmds_F77 | \
15411     archive_expsym_cmds_F77 | \
15412     module_cmds_F77 | \
15413     module_expsym_cmds_F77 | \
15414     old_archive_from_expsyms_cmds_F77 | \
15415     export_symbols_cmds_F77 | \
15416     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15417     postinstall_cmds | postuninstall_cmds | \
15418     old_postinstall_cmds | old_postuninstall_cmds | \
15419     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15420       # Double-quote double-evaled strings.
15421       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15422       ;;
15423     *)
15424       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15425       ;;
15426     esac
15427   done
15428
15429   case $lt_echo in
15430   *'\$0 --fallback-echo"')
15431     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15432     ;;
15433   esac
15434
15435 cfgfile="$ofile"
15436
15437   cat <<__EOF__ >> "$cfgfile"
15438 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15439
15440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15441
15442 # Shell to use when invoking shell scripts.
15443 SHELL=$lt_SHELL
15444
15445 # Whether or not to build shared libraries.
15446 build_libtool_libs=$enable_shared
15447
15448 # Whether or not to build static libraries.
15449 build_old_libs=$enable_static
15450
15451 # Whether or not to add -lc for building shared libraries.
15452 build_libtool_need_lc=$archive_cmds_need_lc_F77
15453
15454 # Whether or not to disallow shared libs when runtime libs are static
15455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15456
15457 # Whether or not to optimize for fast installation.
15458 fast_install=$enable_fast_install
15459
15460 # The host system.
15461 host_alias=$host_alias
15462 host=$host
15463 host_os=$host_os
15464
15465 # The build system.
15466 build_alias=$build_alias
15467 build=$build
15468 build_os=$build_os
15469
15470 # An echo program that does not interpret backslashes.
15471 echo=$lt_echo
15472
15473 # The archiver.
15474 AR=$lt_AR
15475 AR_FLAGS=$lt_AR_FLAGS
15476
15477 # A C compiler.
15478 LTCC=$lt_LTCC
15479
15480 # LTCC compiler flags.
15481 LTCFLAGS=$lt_LTCFLAGS
15482
15483 # A language-specific compiler.
15484 CC=$lt_compiler_F77
15485
15486 # Is the compiler the GNU C compiler?
15487 with_gcc=$GCC_F77
15488
15489 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15490 gcc_ver=\`gcc -dumpversion\`
15491
15492 # An ERE matcher.
15493 EGREP=$lt_EGREP
15494
15495 # The linker used to build libraries.
15496 LD=$lt_LD_F77
15497
15498 # Whether we need hard or soft links.
15499 LN_S=$lt_LN_S
15500
15501 # A BSD-compatible nm program.
15502 NM=$lt_NM
15503
15504 # A symbol stripping program
15505 STRIP=$lt_STRIP
15506
15507 # Used to examine libraries when file_magic_cmd begins "file"
15508 MAGIC_CMD=$MAGIC_CMD
15509
15510 # Used on cygwin: DLL creation program.
15511 DLLTOOL="$DLLTOOL"
15512
15513 # Used on cygwin: object dumper.
15514 OBJDUMP="$OBJDUMP"
15515
15516 # Used on cygwin: assembler.
15517 AS="$AS"
15518
15519 # The name of the directory that contains temporary libtool files.
15520 objdir=$objdir
15521
15522 # How to create reloadable object files.
15523 reload_flag=$lt_reload_flag
15524 reload_cmds=$lt_reload_cmds
15525
15526 # How to pass a linker flag through the compiler.
15527 wl=$lt_lt_prog_compiler_wl_F77
15528
15529 # Object file suffix (normally "o").
15530 objext="$ac_objext"
15531
15532 # Old archive suffix (normally "a").
15533 libext="$libext"
15534
15535 # Shared library suffix (normally ".so").
15536 shrext_cmds='$shrext_cmds'
15537
15538 # Executable file suffix (normally "").
15539 exeext="$exeext"
15540
15541 # Additional compiler flags for building library objects.
15542 pic_flag=$lt_lt_prog_compiler_pic_F77
15543 pic_mode=$pic_mode
15544
15545 # What is the maximum length of a command?
15546 max_cmd_len=$lt_cv_sys_max_cmd_len
15547
15548 # Does compiler simultaneously support -c and -o options?
15549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15550
15551 # Must we lock files when doing compilation?
15552 need_locks=$lt_need_locks
15553
15554 # Do we need the lib prefix for modules?
15555 need_lib_prefix=$need_lib_prefix
15556
15557 # Do we need a version for libraries?
15558 need_version=$need_version
15559
15560 # Whether dlopen is supported.
15561 dlopen_support=$enable_dlopen
15562
15563 # Whether dlopen of programs is supported.
15564 dlopen_self=$enable_dlopen_self
15565
15566 # Whether dlopen of statically linked programs is supported.
15567 dlopen_self_static=$enable_dlopen_self_static
15568
15569 # Compiler flag to prevent dynamic linking.
15570 link_static_flag=$lt_lt_prog_compiler_static_F77
15571
15572 # Compiler flag to turn off builtin functions.
15573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15574
15575 # Compiler flag to allow reflexive dlopens.
15576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15577
15578 # Compiler flag to generate shared objects directly from archives.
15579 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15580
15581 # Compiler flag to generate thread-safe objects.
15582 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15583
15584 # Library versioning type.
15585 version_type=$version_type
15586
15587 # Format of library name prefix.
15588 libname_spec=$lt_libname_spec
15589
15590 # List of archive names.  First name is the real one, the rest are links.
15591 # The last name is the one that the linker finds with -lNAME.
15592 library_names_spec=$lt_library_names_spec
15593
15594 # The coded name of the library, if different from the real name.
15595 soname_spec=$lt_soname_spec
15596
15597 # Commands used to build and install an old-style archive.
15598 RANLIB=$lt_RANLIB
15599 old_archive_cmds=$lt_old_archive_cmds_F77
15600 old_postinstall_cmds=$lt_old_postinstall_cmds
15601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15602
15603 # Create an old-style archive from a shared archive.
15604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15605
15606 # Create a temporary old-style archive to link instead of a shared archive.
15607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15608
15609 # Commands used to build and install a shared archive.
15610 archive_cmds=$lt_archive_cmds_F77
15611 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15612 postinstall_cmds=$lt_postinstall_cmds
15613 postuninstall_cmds=$lt_postuninstall_cmds
15614
15615 # Commands used to build a loadable module (assumed same as above if empty)
15616 module_cmds=$lt_module_cmds_F77
15617 module_expsym_cmds=$lt_module_expsym_cmds_F77
15618
15619 # Commands to strip libraries.
15620 old_striplib=$lt_old_striplib
15621 striplib=$lt_striplib
15622
15623 # Dependencies to place before the objects being linked to create a
15624 # shared library.
15625 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15626
15627 # Dependencies to place after the objects being linked to create a
15628 # shared library.
15629 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15630
15631 # Dependencies to place before the objects being linked to create a
15632 # shared library.
15633 predeps=$lt_predeps_F77
15634
15635 # Dependencies to place after the objects being linked to create a
15636 # shared library.
15637 postdeps=$lt_postdeps_F77
15638
15639 # The library search path used internally by the compiler when linking
15640 # a shared library.
15641 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15642
15643 # Method to check whether dependent libraries are shared objects.
15644 deplibs_check_method=$lt_deplibs_check_method
15645
15646 # Command to use when deplibs_check_method == file_magic.
15647 file_magic_cmd=$lt_file_magic_cmd
15648
15649 # Flag that allows shared libraries with undefined symbols to be built.
15650 allow_undefined_flag=$lt_allow_undefined_flag_F77
15651
15652 # Flag that forces no undefined symbols.
15653 no_undefined_flag=$lt_no_undefined_flag_F77
15654
15655 # Commands used to finish a libtool library installation in a directory.
15656 finish_cmds=$lt_finish_cmds
15657
15658 # Same as above, but a single script fragment to be evaled but not shown.
15659 finish_eval=$lt_finish_eval
15660
15661 # Take the output of nm and produce a listing of raw symbols and C names.
15662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15663
15664 # Transform the output of nm in a proper C declaration
15665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15666
15667 # Transform the output of nm in a C name address pair
15668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15669
15670 # This is the shared library runtime path variable.
15671 runpath_var=$runpath_var
15672
15673 # This is the shared library path variable.
15674 shlibpath_var=$shlibpath_var
15675
15676 # Is shlibpath searched before the hard-coded library search path?
15677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15678
15679 # How to hardcode a shared library path into an executable.
15680 hardcode_action=$hardcode_action_F77
15681
15682 # Whether we should hardcode library paths into libraries.
15683 hardcode_into_libs=$hardcode_into_libs
15684
15685 # Flag to hardcode \$libdir into a binary during linking.
15686 # This must work even if \$libdir does not exist.
15687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15688
15689 # If ld is used when linking, flag to hardcode \$libdir into
15690 # a binary during linking. This must work even if \$libdir does
15691 # not exist.
15692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15693
15694 # Whether we need a single -rpath flag with a separated argument.
15695 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15696
15697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15698 # resulting binary.
15699 hardcode_direct=$hardcode_direct_F77
15700
15701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15702 # resulting binary.
15703 hardcode_minus_L=$hardcode_minus_L_F77
15704
15705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15706 # the resulting binary.
15707 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15708
15709 # Set to yes if building a shared library automatically hardcodes DIR into the library
15710 # and all subsequent libraries and executables linked against it.
15711 hardcode_automatic=$hardcode_automatic_F77
15712
15713 # Variables whose values should be saved in libtool wrapper scripts and
15714 # restored at relink time.
15715 variables_saved_for_relink="$variables_saved_for_relink"
15716
15717 # Whether libtool must link a program against all its dependency libraries.
15718 link_all_deplibs=$link_all_deplibs_F77
15719
15720 # Compile-time system search path for libraries
15721 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15722
15723 # Run-time system search path for libraries
15724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15725
15726 # Fix the shell variable \$srcfile for the compiler.
15727 fix_srcfile_path="$fix_srcfile_path_F77"
15728
15729 # Set to yes if exported symbols are required.
15730 always_export_symbols=$always_export_symbols_F77
15731
15732 # The commands to list exported symbols.
15733 export_symbols_cmds=$lt_export_symbols_cmds_F77
15734
15735 # The commands to extract the exported symbol list from a shared archive.
15736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15737
15738 # Symbols that should not be listed in the preloaded symbols.
15739 exclude_expsyms=$lt_exclude_expsyms_F77
15740
15741 # Symbols that must always be exported.
15742 include_expsyms=$lt_include_expsyms_F77
15743
15744 # ### END LIBTOOL TAG CONFIG: $tagname
15745
15746 __EOF__
15747
15748
15749 else
15750   # If there is no Makefile yet, we rely on a make rule to execute
15751   # `config.status --recheck' to rerun these tests and create the
15752   # libtool script then.
15753   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15754   if test -f "$ltmain_in"; then
15755     test -f Makefile && make "$ltmain"
15756   fi
15757 fi
15758
15759
15760 ac_ext=c
15761 ac_cpp='$CPP $CPPFLAGS'
15762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15765
15766 CC="$lt_save_CC"
15767
15768         else
15769           tagname=""
15770         fi
15771         ;;
15772
15773       GCJ)
15774         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15775
15776
15777
15778 # Source file extension for Java test sources.
15779 ac_ext=java
15780
15781 # Object file extension for compiled Java test sources.
15782 objext=o
15783 objext_GCJ=$objext
15784
15785 # Code to be used in simple compile tests
15786 lt_simple_compile_test_code="class foo {}\n"
15787
15788 # Code to be used in simple link tests
15789 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15790
15791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15792
15793 # If no C compiler was specified, use CC.
15794 LTCC=${LTCC-"$CC"}
15795
15796 # If no C compiler flags were specified, use CFLAGS.
15797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15798
15799 # Allow CC to be a program name with arguments.
15800 compiler=$CC
15801
15802
15803 # save warnings/boilerplate of simple test code
15804 ac_outfile=conftest.$ac_objext
15805 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15807 _lt_compiler_boilerplate=`cat conftest.err`
15808 $rm conftest*
15809
15810 ac_outfile=conftest.$ac_objext
15811 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15813 _lt_linker_boilerplate=`cat conftest.err`
15814 $rm conftest*
15815
15816
15817 # Allow CC to be a program name with arguments.
15818 lt_save_CC="$CC"
15819 CC=${GCJ-"gcj"}
15820 compiler=$CC
15821 compiler_GCJ=$CC
15822 for cc_temp in $compiler""; do
15823   case $cc_temp in
15824     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15825     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15826     \-*) ;;
15827     *) break;;
15828   esac
15829 done
15830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15831
15832
15833 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15834 archive_cmds_need_lc_GCJ=no
15835
15836 old_archive_cmds_GCJ=$old_archive_cmds
15837
15838
15839 lt_prog_compiler_no_builtin_flag_GCJ=
15840
15841 if test "$GCC" = yes; then
15842   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15843
15844
15845 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15846 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15847 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15848   echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850   lt_cv_prog_compiler_rtti_exceptions=no
15851   ac_outfile=conftest.$ac_objext
15852    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853    lt_compiler_flag="-fno-rtti -fno-exceptions"
15854    # Insert the option either (1) after the last *FLAGS variable, or
15855    # (2) before a word containing "conftest.", or (3) at the end.
15856    # Note that $ac_compile itself does not contain backslashes and begins
15857    # with a dollar sign (not a hyphen), so the echo should work correctly.
15858    # The option is referenced via a variable to avoid confusing sed.
15859    lt_compile=`echo "$ac_compile" | $SED \
15860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15862    -e 's:$: $lt_compiler_flag:'`
15863    (eval echo "\"\$as_me:15863: $lt_compile\"" >&5)
15864    (eval "$lt_compile" 2>conftest.err)
15865    ac_status=$?
15866    cat conftest.err >&5
15867    echo "$as_me:15867: \$? = $ac_status" >&5
15868    if (exit $ac_status) && test -s "$ac_outfile"; then
15869      # The compiler can only warn and ignore the option if not recognized
15870      # So say no if there are warnings other than the usual output.
15871      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15872      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15873      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15874        lt_cv_prog_compiler_rtti_exceptions=yes
15875      fi
15876    fi
15877    $rm conftest*
15878
15879 fi
15880 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15881 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15882
15883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15884     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15885 else
15886     :
15887 fi
15888
15889 fi
15890
15891 lt_prog_compiler_wl_GCJ=
15892 lt_prog_compiler_pic_GCJ=
15893 lt_prog_compiler_static_GCJ=
15894
15895 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15897
15898   if test "$GCC" = yes; then
15899     lt_prog_compiler_wl_GCJ='-Wl,'
15900     lt_prog_compiler_static_GCJ='-static'
15901
15902     case $host_os in
15903       aix*)
15904       # All AIX code is PIC.
15905       if test "$host_cpu" = ia64; then
15906         # AIX 5 now supports IA64 processor
15907         lt_prog_compiler_static_GCJ='-Bstatic'
15908       fi
15909       ;;
15910
15911     amigaos*)
15912       # FIXME: we need at least 68020 code to build shared libraries, but
15913       # adding the `-m68020' flag to GCC prevents building anything better,
15914       # like `-m68040'.
15915       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15916       ;;
15917
15918     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15919       # PIC is the default for these OSes.
15920       ;;
15921
15922     mingw* | pw32* | os2*)
15923       # This hack is so that the source file can tell whether it is being
15924       # built for inclusion in a dll (and should export symbols for example).
15925       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15926       ;;
15927
15928     darwin* | rhapsody*)
15929       # PIC is the default on this platform
15930       # Common symbols not allowed in MH_DYLIB files
15931       lt_prog_compiler_pic_GCJ='-fno-common'
15932       ;;
15933
15934     interix3*)
15935       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15936       # Instead, we relocate shared libraries at runtime.
15937       ;;
15938
15939     msdosdjgpp*)
15940       # Just because we use GCC doesn't mean we suddenly get shared libraries
15941       # on systems that don't support them.
15942       lt_prog_compiler_can_build_shared_GCJ=no
15943       enable_shared=no
15944       ;;
15945
15946     sysv4*MP*)
15947       if test -d /usr/nec; then
15948         lt_prog_compiler_pic_GCJ=-Kconform_pic
15949       fi
15950       ;;
15951
15952     hpux*)
15953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954       # not for PA HP-UX.
15955       case $host_cpu in
15956       hppa*64*|ia64*)
15957         # +Z the default
15958         ;;
15959       *)
15960         lt_prog_compiler_pic_GCJ='-fPIC'
15961         ;;
15962       esac
15963       ;;
15964
15965     *)
15966       lt_prog_compiler_pic_GCJ='-fPIC'
15967       ;;
15968     esac
15969   else
15970     # PORTME Check for flag to pass linker flags through the system compiler.
15971     case $host_os in
15972     aix*)
15973       lt_prog_compiler_wl_GCJ='-Wl,'
15974       if test "$host_cpu" = ia64; then
15975         # AIX 5 now supports IA64 processor
15976         lt_prog_compiler_static_GCJ='-Bstatic'
15977       else
15978         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15979       fi
15980       ;;
15981       darwin*)
15982         # PIC is the default on this platform
15983         # Common symbols not allowed in MH_DYLIB files
15984        case $cc_basename in
15985          xlc*)
15986          lt_prog_compiler_pic_GCJ='-qnocommon'
15987          lt_prog_compiler_wl_GCJ='-Wl,'
15988          ;;
15989        esac
15990        ;;
15991
15992     mingw* | pw32* | os2*)
15993       # This hack is so that the source file can tell whether it is being
15994       # built for inclusion in a dll (and should export symbols for example).
15995       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15996       ;;
15997
15998     hpux9* | hpux10* | hpux11*)
15999       lt_prog_compiler_wl_GCJ='-Wl,'
16000       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16001       # not for PA HP-UX.
16002       case $host_cpu in
16003       hppa*64*|ia64*)
16004         # +Z the default
16005         ;;
16006       *)
16007         lt_prog_compiler_pic_GCJ='+Z'
16008         ;;
16009       esac
16010       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16011       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16012       ;;
16013
16014     irix5* | irix6* | nonstopux*)
16015       lt_prog_compiler_wl_GCJ='-Wl,'
16016       # PIC (with -KPIC) is the default.
16017       lt_prog_compiler_static_GCJ='-non_shared'
16018       ;;
16019
16020     newsos6)
16021       lt_prog_compiler_pic_GCJ='-KPIC'
16022       lt_prog_compiler_static_GCJ='-Bstatic'
16023       ;;
16024
16025     linux*)
16026       case $cc_basename in
16027       icc* | ecc*)
16028         lt_prog_compiler_wl_GCJ='-Wl,'
16029         lt_prog_compiler_pic_GCJ='-KPIC'
16030         lt_prog_compiler_static_GCJ='-static'
16031         ;;
16032       pgcc* | pgf77* | pgf90* | pgf95*)
16033         # Portland Group compilers (*not* the Pentium gcc compiler,
16034         # which looks to be a dead project)
16035         lt_prog_compiler_wl_GCJ='-Wl,'
16036         lt_prog_compiler_pic_GCJ='-fpic'
16037         lt_prog_compiler_static_GCJ='-Bstatic'
16038         ;;
16039       ccc*)
16040         lt_prog_compiler_wl_GCJ='-Wl,'
16041         # All Alpha code is PIC.
16042         lt_prog_compiler_static_GCJ='-non_shared'
16043         ;;
16044       esac
16045       ;;
16046
16047     osf3* | osf4* | osf5*)
16048       lt_prog_compiler_wl_GCJ='-Wl,'
16049       # All OSF/1 code is PIC.
16050       lt_prog_compiler_static_GCJ='-non_shared'
16051       ;;
16052
16053     solaris*)
16054       lt_prog_compiler_pic_GCJ='-KPIC'
16055       lt_prog_compiler_static_GCJ='-Bstatic'
16056       case $cc_basename in
16057       f77* | f90* | f95*)
16058         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16059       *)
16060         lt_prog_compiler_wl_GCJ='-Wl,';;
16061       esac
16062       ;;
16063
16064     sunos4*)
16065       lt_prog_compiler_wl_GCJ='-Qoption ld '
16066       lt_prog_compiler_pic_GCJ='-PIC'
16067       lt_prog_compiler_static_GCJ='-Bstatic'
16068       ;;
16069
16070     sysv4 | sysv4.2uw2* | sysv4.3*)
16071       lt_prog_compiler_wl_GCJ='-Wl,'
16072       lt_prog_compiler_pic_GCJ='-KPIC'
16073       lt_prog_compiler_static_GCJ='-Bstatic'
16074       ;;
16075
16076     sysv4*MP*)
16077       if test -d /usr/nec ;then
16078         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16079         lt_prog_compiler_static_GCJ='-Bstatic'
16080       fi
16081       ;;
16082
16083     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16084       lt_prog_compiler_wl_GCJ='-Wl,'
16085       lt_prog_compiler_pic_GCJ='-KPIC'
16086       lt_prog_compiler_static_GCJ='-Bstatic'
16087       ;;
16088
16089     unicos*)
16090       lt_prog_compiler_wl_GCJ='-Wl,'
16091       lt_prog_compiler_can_build_shared_GCJ=no
16092       ;;
16093
16094     uts4*)
16095       lt_prog_compiler_pic_GCJ='-pic'
16096       lt_prog_compiler_static_GCJ='-Bstatic'
16097       ;;
16098
16099     *)
16100       lt_prog_compiler_can_build_shared_GCJ=no
16101       ;;
16102     esac
16103   fi
16104
16105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16106 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16107
16108 #
16109 # Check to make sure the PIC flag actually works.
16110 #
16111 if test -n "$lt_prog_compiler_pic_GCJ"; then
16112
16113 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16115 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118   lt_prog_compiler_pic_works_GCJ=no
16119   ac_outfile=conftest.$ac_objext
16120    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16121    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16122    # Insert the option either (1) after the last *FLAGS variable, or
16123    # (2) before a word containing "conftest.", or (3) at the end.
16124    # Note that $ac_compile itself does not contain backslashes and begins
16125    # with a dollar sign (not a hyphen), so the echo should work correctly.
16126    # The option is referenced via a variable to avoid confusing sed.
16127    lt_compile=`echo "$ac_compile" | $SED \
16128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130    -e 's:$: $lt_compiler_flag:'`
16131    (eval echo "\"\$as_me:16131: $lt_compile\"" >&5)
16132    (eval "$lt_compile" 2>conftest.err)
16133    ac_status=$?
16134    cat conftest.err >&5
16135    echo "$as_me:16135: \$? = $ac_status" >&5
16136    if (exit $ac_status) && test -s "$ac_outfile"; then
16137      # The compiler can only warn and ignore the option if not recognized
16138      # So say no if there are warnings other than the usual output.
16139      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16140      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16141      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16142        lt_prog_compiler_pic_works_GCJ=yes
16143      fi
16144    fi
16145    $rm conftest*
16146
16147 fi
16148 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16149 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16150
16151 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16152     case $lt_prog_compiler_pic_GCJ in
16153      "" | " "*) ;;
16154      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16155      esac
16156 else
16157     lt_prog_compiler_pic_GCJ=
16158      lt_prog_compiler_can_build_shared_GCJ=no
16159 fi
16160
16161 fi
16162 case $host_os in
16163   # For platforms which do not support PIC, -DPIC is meaningless:
16164   *djgpp*)
16165     lt_prog_compiler_pic_GCJ=
16166     ;;
16167   *)
16168     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16169     ;;
16170 esac
16171
16172 #
16173 # Check to make sure the static flag actually works.
16174 #
16175 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16176 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16178 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181   lt_prog_compiler_static_works_GCJ=no
16182    save_LDFLAGS="$LDFLAGS"
16183    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16184    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16185    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16186      # The linker can only warn and ignore the option if not recognized
16187      # So say no if there are warnings
16188      if test -s conftest.err; then
16189        # Append any errors to the config.log.
16190        cat conftest.err 1>&5
16191        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16192        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16193        if diff conftest.exp conftest.er2 >/dev/null; then
16194          lt_prog_compiler_static_works_GCJ=yes
16195        fi
16196      else
16197        lt_prog_compiler_static_works_GCJ=yes
16198      fi
16199    fi
16200    $rm conftest*
16201    LDFLAGS="$save_LDFLAGS"
16202
16203 fi
16204 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16205 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16206
16207 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16208     :
16209 else
16210     lt_prog_compiler_static_GCJ=
16211 fi
16212
16213
16214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   lt_cv_prog_compiler_c_o_GCJ=no
16220    $rm -r conftest 2>/dev/null
16221    mkdir conftest
16222    cd conftest
16223    mkdir out
16224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16225
16226    lt_compiler_flag="-o out/conftest2.$ac_objext"
16227    # Insert the option either (1) after the last *FLAGS variable, or
16228    # (2) before a word containing "conftest.", or (3) at the end.
16229    # Note that $ac_compile itself does not contain backslashes and begins
16230    # with a dollar sign (not a hyphen), so the echo should work correctly.
16231    lt_compile=`echo "$ac_compile" | $SED \
16232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234    -e 's:$: $lt_compiler_flag:'`
16235    (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
16236    (eval "$lt_compile" 2>out/conftest.err)
16237    ac_status=$?
16238    cat out/conftest.err >&5
16239    echo "$as_me:16239: \$? = $ac_status" >&5
16240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16241    then
16242      # The compiler can only warn and ignore the option if not recognized
16243      # So say no if there are warnings
16244      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16247        lt_cv_prog_compiler_c_o_GCJ=yes
16248      fi
16249    fi
16250    chmod u+w . 2>&5
16251    $rm conftest*
16252    # SGI C++ compiler will create directory out/ii_files/ for
16253    # template instantiation
16254    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16255    $rm out/* && rmdir out
16256    cd ..
16257    rmdir conftest
16258    $rm conftest*
16259
16260 fi
16261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16263
16264
16265 hard_links="nottested"
16266 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16267   # do not overwrite the value of need_locks provided by the user
16268   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16270   hard_links=yes
16271   $rm conftest*
16272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16273   touch conftest.a
16274   ln conftest.a conftest.b 2>&5 || hard_links=no
16275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16276   echo "$as_me:$LINENO: result: $hard_links" >&5
16277 echo "${ECHO_T}$hard_links" >&6
16278   if test "$hard_links" = no; then
16279     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16281     need_locks=warn
16282   fi
16283 else
16284   need_locks=no
16285 fi
16286
16287 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16289
16290   runpath_var=
16291   allow_undefined_flag_GCJ=
16292   enable_shared_with_static_runtimes_GCJ=no
16293   archive_cmds_GCJ=
16294   archive_expsym_cmds_GCJ=
16295   old_archive_From_new_cmds_GCJ=
16296   old_archive_from_expsyms_cmds_GCJ=
16297   export_dynamic_flag_spec_GCJ=
16298   whole_archive_flag_spec_GCJ=
16299   thread_safe_flag_spec_GCJ=
16300   hardcode_libdir_flag_spec_GCJ=
16301   hardcode_libdir_flag_spec_ld_GCJ=
16302   hardcode_libdir_separator_GCJ=
16303   hardcode_direct_GCJ=no
16304   hardcode_minus_L_GCJ=no
16305   hardcode_shlibpath_var_GCJ=unsupported
16306   link_all_deplibs_GCJ=unknown
16307   hardcode_automatic_GCJ=no
16308   module_cmds_GCJ=
16309   module_expsym_cmds_GCJ=
16310   always_export_symbols_GCJ=no
16311   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16312   # include_expsyms should be a list of space-separated symbols to be *always*
16313   # included in the symbol list
16314   include_expsyms_GCJ=
16315   # exclude_expsyms can be an extended regexp of symbols to exclude
16316   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16317   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16318   # as well as any symbol that contains `d'.
16319   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16320   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16321   # platforms (ab)use it in PIC code, but their linkers get confused if
16322   # the symbol is explicitly referenced.  Since portable code cannot
16323   # rely on this symbol name, it's probably fine to never include it in
16324   # preloaded symbol tables.
16325   extract_expsyms_cmds=
16326   # Just being paranoid about ensuring that cc_basename is set.
16327   for cc_temp in $compiler""; do
16328   case $cc_temp in
16329     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16330     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16331     \-*) ;;
16332     *) break;;
16333   esac
16334 done
16335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16336
16337   case $host_os in
16338   cygwin* | mingw* | pw32*)
16339     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16340     # When not using gcc, we currently assume that we are using
16341     # Microsoft Visual C++.
16342     if test "$GCC" != yes; then
16343       with_gnu_ld=no
16344     fi
16345     ;;
16346   interix*)
16347     # we just hope/assume this is gcc and not c89 (= MSVC++)
16348     with_gnu_ld=yes
16349     ;;
16350   openbsd*)
16351     with_gnu_ld=no
16352     ;;
16353   esac
16354
16355   ld_shlibs_GCJ=yes
16356   if test "$with_gnu_ld" = yes; then
16357     # If archive_cmds runs LD, not CC, wlarc should be empty
16358     wlarc='${wl}'
16359
16360     # Set some defaults for GNU ld with shared library support. These
16361     # are reset later if shared libraries are not supported. Putting them
16362     # here allows them to be overridden if necessary.
16363     runpath_var=LD_RUN_PATH
16364     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16365     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16366     # ancient GNU ld didn't support --whole-archive et. al.
16367     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16368         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16369       else
16370         whole_archive_flag_spec_GCJ=
16371     fi
16372     supports_anon_versioning=no
16373     case `$LD -v 2>/dev/null` in
16374       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16375       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16376       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16377       *\ 2.11.*) ;; # other 2.11 versions
16378       *) supports_anon_versioning=yes ;;
16379     esac
16380
16381     # See if GNU ld supports shared libraries.
16382     case $host_os in
16383     aix3* | aix4* | aix5*)
16384       # On AIX/PPC, the GNU linker is very broken
16385       if test "$host_cpu" != ia64; then
16386         ld_shlibs_GCJ=no
16387         cat <<EOF 1>&2
16388
16389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16390 *** to be unable to reliably create shared libraries on AIX.
16391 *** Therefore, libtool is disabling shared libraries support.  If you
16392 *** really care for shared libraries, you may want to modify your PATH
16393 *** so that a non-GNU linker is found, and then restart.
16394
16395 EOF
16396       fi
16397       ;;
16398
16399     amigaos*)
16400       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)'
16401       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16402       hardcode_minus_L_GCJ=yes
16403
16404       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16405       # that the semantics of dynamic libraries on AmigaOS, at least up
16406       # to version 4, is to share data among multiple programs linked
16407       # with the same dynamic library.  Since this doesn't match the
16408       # behavior of shared libraries on other platforms, we can't use
16409       # them.
16410       ld_shlibs_GCJ=no
16411       ;;
16412
16413     beos*)
16414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415         allow_undefined_flag_GCJ=unsupported
16416         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16417         # support --undefined.  This deserves some investigation.  FIXME
16418         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419       else
16420         ld_shlibs_GCJ=no
16421       fi
16422       ;;
16423
16424     cygwin* | mingw* | pw32*)
16425       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16426       # as there is no search path for DLLs.
16427       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16428       allow_undefined_flag_GCJ=unsupported
16429       always_export_symbols_GCJ=no
16430       enable_shared_with_static_runtimes_GCJ=yes
16431       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16432
16433       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16434         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16435         # If the export-symbols file already is a .def file (1st line
16436         # is EXPORTS), use it as is; otherwise, prepend...
16437         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438           cp $export_symbols $output_objdir/$soname.def;
16439         else
16440           echo EXPORTS > $output_objdir/$soname.def;
16441           cat $export_symbols >> $output_objdir/$soname.def;
16442         fi~
16443         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16444       else
16445         ld_shlibs_GCJ=no
16446       fi
16447       ;;
16448
16449     interix3*)
16450       hardcode_direct_GCJ=no
16451       hardcode_shlibpath_var_GCJ=no
16452       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16453       export_dynamic_flag_spec_GCJ='${wl}-E'
16454       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16455       # Instead, shared libraries are loaded at an image base (0x10000000 by
16456       # default) and relocated if they conflict, which is a slow very memory
16457       # consuming and fragmenting process.  To avoid this, we pick a random,
16458       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16459       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16460       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16461       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16462       ;;
16463
16464     linux*)
16465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16466         tmp_addflag=
16467         case $cc_basename,$host_cpu in
16468         pgcc*)                          # Portland Group C compiler
16469           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16470           tmp_addflag=' $pic_flag'
16471           ;;
16472         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16473           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16474           tmp_addflag=' $pic_flag -Mnomain' ;;
16475         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16476           tmp_addflag=' -i_dynamic' ;;
16477         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16478           tmp_addflag=' -i_dynamic -nofor_main' ;;
16479         ifc* | ifort*)                  # Intel Fortran compiler
16480           tmp_addflag=' -nofor_main' ;;
16481         esac
16482         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16483
16484         if test $supports_anon_versioning = yes; then
16485           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16486   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16487   $echo "local: *; };" >> $output_objdir/$libname.ver~
16488           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16489         fi
16490       else
16491         ld_shlibs_GCJ=no
16492       fi
16493       ;;
16494
16495     netbsd*)
16496       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16498         wlarc=
16499       else
16500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16502       fi
16503       ;;
16504
16505     solaris*)
16506       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16507         ld_shlibs_GCJ=no
16508         cat <<EOF 1>&2
16509
16510 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16511 *** create shared libraries on Solaris systems.  Therefore, libtool
16512 *** is disabling shared libraries support.  We urge you to upgrade GNU
16513 *** binutils to release 2.9.1 or newer.  Another option is to modify
16514 *** your PATH or compiler configuration so that the native linker is
16515 *** used, and then restart.
16516
16517 EOF
16518       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16521       else
16522         ld_shlibs_GCJ=no
16523       fi
16524       ;;
16525
16526     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16527       case `$LD -v 2>&1` in
16528         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16529         ld_shlibs_GCJ=no
16530         cat <<_LT_EOF 1>&2
16531
16532 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16533 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16534 *** is disabling shared libraries support.  We urge you to upgrade GNU
16535 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16536 *** your PATH or compiler configuration so that the native linker is
16537 *** used, and then restart.
16538
16539 _LT_EOF
16540         ;;
16541         *)
16542           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16543             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16544             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16545             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16546           else
16547             ld_shlibs_GCJ=no
16548           fi
16549         ;;
16550       esac
16551       ;;
16552
16553     sunos4*)
16554       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16555       wlarc=
16556       hardcode_direct_GCJ=yes
16557       hardcode_shlibpath_var_GCJ=no
16558       ;;
16559
16560     *)
16561       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16562         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16564       else
16565         ld_shlibs_GCJ=no
16566       fi
16567       ;;
16568     esac
16569
16570     if test "$ld_shlibs_GCJ" = no; then
16571       runpath_var=
16572       hardcode_libdir_flag_spec_GCJ=
16573       export_dynamic_flag_spec_GCJ=
16574       whole_archive_flag_spec_GCJ=
16575     fi
16576   else
16577     # PORTME fill in a description of your system's linker (not GNU ld)
16578     case $host_os in
16579     aix3*)
16580       allow_undefined_flag_GCJ=unsupported
16581       always_export_symbols_GCJ=yes
16582       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'
16583       # Note: this linker hardcodes the directories in LIBPATH if there
16584       # are no directories specified by -L.
16585       hardcode_minus_L_GCJ=yes
16586       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16587         # Neither direct hardcoding nor static linking is supported with a
16588         # broken collect2.
16589         hardcode_direct_GCJ=unsupported
16590       fi
16591       ;;
16592
16593     aix4* | aix5*)
16594       if test "$host_cpu" = ia64; then
16595         # On IA64, the linker does run time linking by default, so we don't
16596         # have to do anything special.
16597         aix_use_runtimelinking=no
16598         exp_sym_flag='-Bexport'
16599         no_entry_flag=""
16600       else
16601         # If we're using GNU nm, then we don't want the "-C" option.
16602         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16603         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16604           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'
16605         else
16606           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'
16607         fi
16608         aix_use_runtimelinking=no
16609
16610         # Test if we are trying to use run time linking or normal
16611         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16612         # need to do runtime linking.
16613         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16614           for ld_flag in $LDFLAGS; do
16615           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16616             aix_use_runtimelinking=yes
16617             break
16618           fi
16619           done
16620           ;;
16621         esac
16622
16623         exp_sym_flag='-bexport'
16624         no_entry_flag='-bnoentry'
16625       fi
16626
16627       # When large executables or shared objects are built, AIX ld can
16628       # have problems creating the table of contents.  If linking a library
16629       # or program results in "error TOC overflow" add -mminimal-toc to
16630       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16631       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16632
16633       archive_cmds_GCJ=''
16634       hardcode_direct_GCJ=yes
16635       hardcode_libdir_separator_GCJ=':'
16636       link_all_deplibs_GCJ=yes
16637
16638       if test "$GCC" = yes; then
16639         case $host_os in aix4.[012]|aix4.[012].*)
16640         # We only want to do this on AIX 4.2 and lower, the check
16641         # below for broken collect2 doesn't work under 4.3+
16642           collect2name=`${CC} -print-prog-name=collect2`
16643           if test -f "$collect2name" && \
16644            strings "$collect2name" | grep resolve_lib_name >/dev/null
16645           then
16646           # We have reworked collect2
16647           hardcode_direct_GCJ=yes
16648           else
16649           # We have old collect2
16650           hardcode_direct_GCJ=unsupported
16651           # It fails to find uninstalled libraries when the uninstalled
16652           # path is not listed in the libpath.  Setting hardcode_minus_L
16653           # to unsupported forces relinking
16654           hardcode_minus_L_GCJ=yes
16655           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656           hardcode_libdir_separator_GCJ=
16657           fi
16658           ;;
16659         esac
16660         shared_flag='-shared'
16661         if test "$aix_use_runtimelinking" = yes; then
16662           shared_flag="$shared_flag "'${wl}-G'
16663         fi
16664       else
16665         # not using gcc
16666         if test "$host_cpu" = ia64; then
16667         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16668         # chokes on -Wl,-G. The following line is correct:
16669           shared_flag='-G'
16670         else
16671           if test "$aix_use_runtimelinking" = yes; then
16672             shared_flag='${wl}-G'
16673           else
16674             shared_flag='${wl}-bM:SRE'
16675           fi
16676         fi
16677       fi
16678
16679       # It seems that -bexpall does not export symbols beginning with
16680       # underscore (_), so it is better to generate a list of symbols to export.
16681       always_export_symbols_GCJ=yes
16682       if test "$aix_use_runtimelinking" = yes; then
16683         # Warning - without using the other runtime loading flags (-brtl),
16684         # -berok will link without error, but may produce a broken library.
16685         allow_undefined_flag_GCJ='-berok'
16686        # Determine the default libpath from the value encoded in an empty executable.
16687        cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693
16694 int
16695 main ()
16696 {
16697
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704   (eval $ac_link) 2>conftest.er1
16705   ac_status=$?
16706   grep -v '^ *+' conftest.er1 >conftest.err
16707   rm -f conftest.er1
16708   cat conftest.err >&5
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } &&
16711          { ac_try='test -z "$ac_c_werror_flag"
16712                          || test ! -s conftest.err'
16713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714   (eval $ac_try) 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); }; } &&
16718          { ac_try='test -s conftest$ac_exeext'
16719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720   (eval $ac_try) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724
16725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16726 }'`
16727 # Check for a 64-bit object if we didn't find anything.
16728 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; }
16729 }'`; fi
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 fi
16735 rm -f conftest.err conftest.$ac_objext \
16736       conftest$ac_exeext conftest.$ac_ext
16737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738
16739        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16740         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16741        else
16742         if test "$host_cpu" = ia64; then
16743           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16744           allow_undefined_flag_GCJ="-z nodefs"
16745           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16746         else
16747          # Determine the default libpath from the value encoded in an empty executable.
16748          cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754
16755 int
16756 main ()
16757 {
16758
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765   (eval $ac_link) 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag"
16773                          || test ! -s conftest.err'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; } &&
16779          { ac_try='test -s conftest$ac_exeext'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785
16786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16787 }'`
16788 # Check for a 64-bit object if we didn't find anything.
16789 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; }
16790 }'`; fi
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 fi
16796 rm -f conftest.err conftest.$ac_objext \
16797       conftest$ac_exeext conftest.$ac_ext
16798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16799
16800          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16801           # Warning - without using the other run time loading flags,
16802           # -berok will link without error, but may produce a broken library.
16803           no_undefined_flag_GCJ=' ${wl}-bernotok'
16804           allow_undefined_flag_GCJ=' ${wl}-berok'
16805           # Exported symbols can be pulled into shared objects from archives
16806           whole_archive_flag_spec_GCJ='$convenience'
16807           archive_cmds_need_lc_GCJ=yes
16808           # This is similar to how AIX traditionally builds its shared libraries.
16809           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16810         fi
16811       fi
16812       ;;
16813
16814     amigaos*)
16815       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)'
16816       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817       hardcode_minus_L_GCJ=yes
16818       # see comment about different semantics on the GNU ld section
16819       ld_shlibs_GCJ=no
16820       ;;
16821
16822     bsdi[45]*)
16823       export_dynamic_flag_spec_GCJ=-rdynamic
16824       ;;
16825
16826     cygwin* | mingw* | pw32*)
16827       # When not using gcc, we currently assume that we are using
16828       # Microsoft Visual C++.
16829       # hardcode_libdir_flag_spec is actually meaningless, as there is
16830       # no search path for DLLs.
16831       hardcode_libdir_flag_spec_GCJ=' '
16832       allow_undefined_flag_GCJ=unsupported
16833       # Tell ltmain to make .lib files, not .a files.
16834       libext=lib
16835       # Tell ltmain to make .dll files, not .so files.
16836       shrext_cmds=".dll"
16837       # FIXME: Setting linknames here is a bad hack.
16838       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16839       # The linker will automatically build a .lib file if we build a DLL.
16840       old_archive_From_new_cmds_GCJ='true'
16841       # FIXME: Should let the user specify the lib program.
16842       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16843       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16844       enable_shared_with_static_runtimes_GCJ=yes
16845       ;;
16846
16847     darwin* | rhapsody*)
16848       case $host_os in
16849         rhapsody* | darwin1.[012])
16850          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16851          ;;
16852        *) # Darwin 1.3 on
16853          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16854            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16855          else
16856            case ${MACOSX_DEPLOYMENT_TARGET} in
16857              10.[012])
16858                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16859                ;;
16860              10.*)
16861                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16862                ;;
16863            esac
16864          fi
16865          ;;
16866       esac
16867       archive_cmds_need_lc_GCJ=no
16868       hardcode_direct_GCJ=no
16869       hardcode_automatic_GCJ=yes
16870       hardcode_shlibpath_var_GCJ=unsupported
16871       whole_archive_flag_spec_GCJ=''
16872       link_all_deplibs_GCJ=yes
16873     if test "$GCC" = yes ; then
16874         output_verbose_link_cmd='echo'
16875         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16876       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16877       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16878       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16879       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}'
16880     else
16881       case $cc_basename in
16882         xlc*)
16883          output_verbose_link_cmd='echo'
16884          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16885          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16887          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16888           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}'
16889           ;;
16890        *)
16891          ld_shlibs_GCJ=no
16892           ;;
16893       esac
16894     fi
16895       ;;
16896
16897     dgux*)
16898       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16900       hardcode_shlibpath_var_GCJ=no
16901       ;;
16902
16903     freebsd1*)
16904       ld_shlibs_GCJ=no
16905       ;;
16906
16907     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16908     # support.  Future versions do this automatically, but an explicit c++rt0.o
16909     # does not break anything, and helps significantly (at the cost of a little
16910     # extra space).
16911     freebsd2.2*)
16912       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16913       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914       hardcode_direct_GCJ=yes
16915       hardcode_shlibpath_var_GCJ=no
16916       ;;
16917
16918     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16919     freebsd2*)
16920       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16921       hardcode_direct_GCJ=yes
16922       hardcode_minus_L_GCJ=yes
16923       hardcode_shlibpath_var_GCJ=no
16924       ;;
16925
16926     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16927     freebsd* | kfreebsd*-gnu | dragonfly*)
16928       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16929       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930       hardcode_direct_GCJ=yes
16931       hardcode_shlibpath_var_GCJ=no
16932       ;;
16933
16934     hpux9*)
16935       if test "$GCC" = yes; then
16936         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'
16937       else
16938         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'
16939       fi
16940       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16941       hardcode_libdir_separator_GCJ=:
16942       hardcode_direct_GCJ=yes
16943
16944       # hardcode_minus_L: Not really in the search PATH,
16945       # but as the default location of the library.
16946       hardcode_minus_L_GCJ=yes
16947       export_dynamic_flag_spec_GCJ='${wl}-E'
16948       ;;
16949
16950     hpux10*)
16951       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16952         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16953       else
16954         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16955       fi
16956       if test "$with_gnu_ld" = no; then
16957         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16958         hardcode_libdir_separator_GCJ=:
16959
16960         hardcode_direct_GCJ=yes
16961         export_dynamic_flag_spec_GCJ='${wl}-E'
16962
16963         # hardcode_minus_L: Not really in the search PATH,
16964         # but as the default location of the library.
16965         hardcode_minus_L_GCJ=yes
16966       fi
16967       ;;
16968
16969     hpux11*)
16970       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16971         case $host_cpu in
16972         hppa*64*)
16973           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974           ;;
16975         ia64*)
16976           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16977           ;;
16978         *)
16979           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16980           ;;
16981         esac
16982       else
16983         case $host_cpu in
16984         hppa*64*)
16985           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16986           ;;
16987         ia64*)
16988           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16989           ;;
16990         *)
16991           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992           ;;
16993         esac
16994       fi
16995       if test "$with_gnu_ld" = no; then
16996         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16997         hardcode_libdir_separator_GCJ=:
16998
16999         case $host_cpu in
17000         hppa*64*|ia64*)
17001           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17002           hardcode_direct_GCJ=no
17003           hardcode_shlibpath_var_GCJ=no
17004           ;;
17005         *)
17006           hardcode_direct_GCJ=yes
17007           export_dynamic_flag_spec_GCJ='${wl}-E'
17008
17009           # hardcode_minus_L: Not really in the search PATH,
17010           # but as the default location of the library.
17011           hardcode_minus_L_GCJ=yes
17012           ;;
17013         esac
17014       fi
17015       ;;
17016
17017     irix5* | irix6* | nonstopux*)
17018       if test "$GCC" = yes; then
17019         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'
17020       else
17021         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'
17022         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17023       fi
17024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17025       hardcode_libdir_separator_GCJ=:
17026       link_all_deplibs_GCJ=yes
17027       ;;
17028
17029     netbsd*)
17030       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17031         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17032       else
17033         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17034       fi
17035       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17036       hardcode_direct_GCJ=yes
17037       hardcode_shlibpath_var_GCJ=no
17038       ;;
17039
17040     newsos6)
17041       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17042       hardcode_direct_GCJ=yes
17043       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17044       hardcode_libdir_separator_GCJ=:
17045       hardcode_shlibpath_var_GCJ=no
17046       ;;
17047
17048     openbsd*)
17049       hardcode_direct_GCJ=yes
17050       hardcode_shlibpath_var_GCJ=no
17051       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17053         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17054         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17055         export_dynamic_flag_spec_GCJ='${wl}-E'
17056       else
17057        case $host_os in
17058          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17059            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17060            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17061            ;;
17062          *)
17063            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17064            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17065            ;;
17066        esac
17067       fi
17068       ;;
17069
17070     os2*)
17071       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17072       hardcode_minus_L_GCJ=yes
17073       allow_undefined_flag_GCJ=unsupported
17074       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'
17075       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17076       ;;
17077
17078     osf3*)
17079       if test "$GCC" = yes; then
17080         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17081         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'
17082       else
17083         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17084         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'
17085       fi
17086       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17087       hardcode_libdir_separator_GCJ=:
17088       ;;
17089
17090     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17091       if test "$GCC" = yes; then
17092         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17093         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'
17094         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095       else
17096         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17097         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'
17098         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~
17099         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17100
17101         # Both c and cxx compiler support -rpath directly
17102         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17103       fi
17104       hardcode_libdir_separator_GCJ=:
17105       ;;
17106
17107     solaris*)
17108       no_undefined_flag_GCJ=' -z text'
17109       if test "$GCC" = yes; then
17110         wlarc='${wl}'
17111         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17112         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17113           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17114       else
17115         wlarc=''
17116         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17118         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17119       fi
17120       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121       hardcode_shlibpath_var_GCJ=no
17122       case $host_os in
17123       solaris2.[0-5] | solaris2.[0-5].*) ;;
17124       *)
17125         # The compiler driver will combine linker options so we
17126         # cannot just pass the convience library names through
17127         # without $wl, iff we do not link with $LD.
17128         # Luckily, gcc supports the same syntax we need for Sun Studio.
17129         # Supported since Solaris 2.6 (maybe 2.5.1?)
17130         case $wlarc in
17131         '')
17132           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17133         *)
17134           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17135         esac ;;
17136       esac
17137       link_all_deplibs_GCJ=yes
17138       ;;
17139
17140     sunos4*)
17141       if test "x$host_vendor" = xsequent; then
17142         # Use $CC to link under sequent, because it throws in some extra .o
17143         # files that make .init and .fini sections work.
17144         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17145       else
17146         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17147       fi
17148       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149       hardcode_direct_GCJ=yes
17150       hardcode_minus_L_GCJ=yes
17151       hardcode_shlibpath_var_GCJ=no
17152       ;;
17153
17154     sysv4)
17155       case $host_vendor in
17156         sni)
17157           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17158           hardcode_direct_GCJ=yes # is this really true???
17159         ;;
17160         siemens)
17161           ## LD is ld it makes a PLAMLIB
17162           ## CC just makes a GrossModule.
17163           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17164           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17165           hardcode_direct_GCJ=no
17166         ;;
17167         motorola)
17168           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17170         ;;
17171       esac
17172       runpath_var='LD_RUN_PATH'
17173       hardcode_shlibpath_var_GCJ=no
17174       ;;
17175
17176     sysv4.3*)
17177       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178       hardcode_shlibpath_var_GCJ=no
17179       export_dynamic_flag_spec_GCJ='-Bexport'
17180       ;;
17181
17182     sysv4*MP*)
17183       if test -d /usr/nec; then
17184         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185         hardcode_shlibpath_var_GCJ=no
17186         runpath_var=LD_RUN_PATH
17187         hardcode_runpath_var=yes
17188         ld_shlibs_GCJ=yes
17189       fi
17190       ;;
17191
17192     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17193       no_undefined_flag_GCJ='${wl}-z,text'
17194       archive_cmds_need_lc_GCJ=no
17195       hardcode_shlibpath_var_GCJ=no
17196       runpath_var='LD_RUN_PATH'
17197
17198       if test "$GCC" = yes; then
17199         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201       else
17202         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17203         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17204       fi
17205       ;;
17206
17207     sysv5* | sco3.2v5* | sco5v6*)
17208       # Note: We can NOT use -z defs as we might desire, because we do not
17209       # link with -lc, and that would cause any symbols used from libc to
17210       # always be unresolved, which means just about no library would
17211       # ever link correctly.  If we're not using GNU ld we use -z text
17212       # though, which does catch some bad symbols but isn't as heavy-handed
17213       # as -z defs.
17214       no_undefined_flag_GCJ='${wl}-z,text'
17215       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17216       archive_cmds_need_lc_GCJ=no
17217       hardcode_shlibpath_var_GCJ=no
17218       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17219       hardcode_libdir_separator_GCJ=':'
17220       link_all_deplibs_GCJ=yes
17221       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17222       runpath_var='LD_RUN_PATH'
17223
17224       if test "$GCC" = yes; then
17225         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227       else
17228         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17229         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230       fi
17231       ;;
17232
17233     uts4*)
17234       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236       hardcode_shlibpath_var_GCJ=no
17237       ;;
17238
17239     *)
17240       ld_shlibs_GCJ=no
17241       ;;
17242     esac
17243   fi
17244
17245 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17246 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17247 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17248
17249 #
17250 # Do we need to explicitly link libc?
17251 #
17252 case "x$archive_cmds_need_lc_GCJ" in
17253 x|xyes)
17254   # Assume -lc should be added
17255   archive_cmds_need_lc_GCJ=yes
17256
17257   if test "$enable_shared" = yes && test "$GCC" = yes; then
17258     case $archive_cmds_GCJ in
17259     *'~'*)
17260       # FIXME: we may have to deal with multi-command sequences.
17261       ;;
17262     '$CC '*)
17263       # Test whether the compiler implicitly links with -lc since on some
17264       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17265       # to ld, don't add -lc before -lgcc.
17266       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17267 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17268       $rm conftest*
17269       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17270
17271       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272   (eval $ac_compile) 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } 2>conftest.err; then
17276         soname=conftest
17277         lib=conftest
17278         libobjs=conftest.$ac_objext
17279         deplibs=
17280         wl=$lt_prog_compiler_wl_GCJ
17281         pic_flag=$lt_prog_compiler_pic_GCJ
17282         compiler_flags=-v
17283         linker_flags=-v
17284         verstring=
17285         output_objdir=.
17286         libname=conftest
17287         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17288         allow_undefined_flag_GCJ=
17289         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17290   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }
17294         then
17295           archive_cmds_need_lc_GCJ=no
17296         else
17297           archive_cmds_need_lc_GCJ=yes
17298         fi
17299         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17300       else
17301         cat conftest.err 1>&5
17302       fi
17303       $rm conftest*
17304       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17305 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17306       ;;
17307     esac
17308   fi
17309   ;;
17310 esac
17311
17312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17314 library_names_spec=
17315 libname_spec='lib$name'
17316 soname_spec=
17317 shrext_cmds=".so"
17318 postinstall_cmds=
17319 postuninstall_cmds=
17320 finish_cmds=
17321 finish_eval=
17322 shlibpath_var=
17323 shlibpath_overrides_runpath=unknown
17324 version_type=none
17325 dynamic_linker="$host_os ld.so"
17326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17327 if test "$GCC" = yes; then
17328   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17329   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17330     # if the path contains ";" then we assume it to be the separator
17331     # otherwise default to the standard path separator (i.e. ":") - it is
17332     # assumed that no part of a normal pathname contains ";" but that should
17333     # okay in the real world where ";" in dirpaths is itself problematic.
17334     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17335   else
17336     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17337   fi
17338 else
17339   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17340 fi
17341 need_lib_prefix=unknown
17342 hardcode_into_libs=no
17343
17344 # when you set need_version to no, make sure it does not cause -set_version
17345 # flags to be left without arguments
17346 need_version=unknown
17347
17348 case $host_os in
17349 aix3*)
17350   version_type=linux
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17352   shlibpath_var=LIBPATH
17353
17354   # AIX 3 has no versioning support, so we append a major version to the name.
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   ;;
17357
17358 aix4* | aix5*)
17359   version_type=linux
17360   need_lib_prefix=no
17361   need_version=no
17362   hardcode_into_libs=yes
17363   if test "$host_cpu" = ia64; then
17364     # AIX 5 supports IA64
17365     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17366     shlibpath_var=LD_LIBRARY_PATH
17367   else
17368     # With GCC up to 2.95.x, collect2 would create an import file
17369     # for dependence libraries.  The import file would start with
17370     # the line `#! .'.  This would cause the generated library to
17371     # depend on `.', always an invalid library.  This was fixed in
17372     # development snapshots of GCC prior to 3.0.
17373     case $host_os in
17374       aix4 | aix4.[01] | aix4.[01].*)
17375       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17376            echo ' yes '
17377            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17378         :
17379       else
17380         can_build_shared=no
17381       fi
17382       ;;
17383     esac
17384     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17385     # soname into executable. Probably we can add versioning support to
17386     # collect2, so additional links can be useful in future.
17387     if test "$aix_use_runtimelinking" = yes; then
17388       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17389       # instead of lib<name>.a to let people know that these are not
17390       # typical AIX shared libraries.
17391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392     else
17393       # We preserve .a as extension for shared libraries through AIX4.2
17394       # and later when we are not doing run time linking.
17395       library_names_spec='${libname}${release}.a $libname.a'
17396       soname_spec='${libname}${release}${shared_ext}$major'
17397     fi
17398     shlibpath_var=LIBPATH
17399   fi
17400   ;;
17401
17402 amigaos*)
17403   library_names_spec='$libname.ixlibrary $libname.a'
17404   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17405   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'
17406   ;;
17407
17408 beos*)
17409   library_names_spec='${libname}${shared_ext}'
17410   dynamic_linker="$host_os ld.so"
17411   shlibpath_var=LIBRARY_PATH
17412   ;;
17413
17414 bsdi[45]*)
17415   version_type=linux
17416   need_version=no
17417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17420   shlibpath_var=LD_LIBRARY_PATH
17421   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17422   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17423   # the default ld.so.conf also contains /usr/contrib/lib and
17424   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17425   # libtool to hard-code these into programs
17426   ;;
17427
17428 cygwin* | mingw* | pw32*)
17429   version_type=windows
17430   shrext_cmds=".dll"
17431   need_version=no
17432   need_lib_prefix=no
17433
17434   case $GCC,$host_os in
17435   yes,cygwin* | yes,mingw* | yes,pw32*)
17436     library_names_spec='$libname.dll.a'
17437     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17438     postinstall_cmds='base_file=`basename \${file}`~
17439       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17440       dldir=$destdir/`dirname \$dlpath`~
17441       test -d \$dldir || mkdir -p \$dldir~
17442       $install_prog $dir/$dlname \$dldir/$dlname~
17443       chmod a+x \$dldir/$dlname'
17444     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17445       dlpath=$dir/\$dldll~
17446        $rm \$dlpath'
17447     shlibpath_overrides_runpath=yes
17448
17449     case $host_os in
17450     cygwin*)
17451       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17452       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17453       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17454       ;;
17455     mingw*)
17456       # MinGW DLLs use traditional 'lib' prefix
17457       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17458       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17459       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17460         # It is most probably a Windows format PATH printed by
17461         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17462         # path with ; separators, and with drive letters. We can handle the
17463         # drive letters (cygwin fileutils understands them), so leave them,
17464         # especially as we might pass files found there to a mingw objdump,
17465         # which wouldn't understand a cygwinified path. Ahh.
17466         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17467       else
17468         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17469       fi
17470       ;;
17471     pw32*)
17472       # pw32 DLLs use 'pw' prefix rather than 'lib'
17473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17474       ;;
17475     esac
17476     ;;
17477
17478   *)
17479     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17480     ;;
17481   esac
17482   dynamic_linker='Win32 ld.exe'
17483   # FIXME: first we should search . and the directory the executable is in
17484   shlibpath_var=PATH
17485   ;;
17486
17487 darwin* | rhapsody*)
17488   dynamic_linker="$host_os dyld"
17489   version_type=darwin
17490   need_lib_prefix=no
17491   need_version=no
17492   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17493   soname_spec='${libname}${release}${major}$shared_ext'
17494   shlibpath_overrides_runpath=yes
17495   shlibpath_var=DYLD_LIBRARY_PATH
17496   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17497   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17498   if test "$GCC" = yes; then
17499     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"`
17500   else
17501     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17502   fi
17503   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17504   ;;
17505
17506 dgux*)
17507   version_type=linux
17508   need_lib_prefix=no
17509   need_version=no
17510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17511   soname_spec='${libname}${release}${shared_ext}$major'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   ;;
17514
17515 freebsd1*)
17516   dynamic_linker=no
17517   ;;
17518
17519 kfreebsd*-gnu)
17520   version_type=linux
17521   need_lib_prefix=no
17522   need_version=no
17523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17524   soname_spec='${libname}${release}${shared_ext}$major'
17525   shlibpath_var=LD_LIBRARY_PATH
17526   shlibpath_overrides_runpath=no
17527   hardcode_into_libs=yes
17528   dynamic_linker='GNU ld.so'
17529   ;;
17530
17531 freebsd* | dragonfly*)
17532   # DragonFly does not have aout.  When/if they implement a new
17533   # versioning mechanism, adjust this.
17534   if test -x /usr/bin/objformat; then
17535     objformat=`/usr/bin/objformat`
17536   else
17537     case $host_os in
17538     freebsd[123]*) objformat=aout ;;
17539     *) objformat=elf ;;
17540     esac
17541   fi
17542   version_type=freebsd-$objformat
17543   case $version_type in
17544     freebsd-elf*)
17545       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17546       need_version=no
17547       need_lib_prefix=no
17548       ;;
17549     freebsd-*)
17550       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17551       need_version=yes
17552       ;;
17553   esac
17554   shlibpath_var=LD_LIBRARY_PATH
17555   case $host_os in
17556   freebsd2*)
17557     shlibpath_overrides_runpath=yes
17558     ;;
17559   freebsd3.[01]* | freebsdelf3.[01]*)
17560     shlibpath_overrides_runpath=yes
17561     hardcode_into_libs=yes
17562     ;;
17563   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17564   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17565     shlibpath_overrides_runpath=no
17566     hardcode_into_libs=yes
17567     ;;
17568   freebsd*) # from 4.6 on
17569     shlibpath_overrides_runpath=yes
17570     hardcode_into_libs=yes
17571     ;;
17572   esac
17573   ;;
17574
17575 gnu*)
17576   version_type=linux
17577   need_lib_prefix=no
17578   need_version=no
17579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17580   soname_spec='${libname}${release}${shared_ext}$major'
17581   shlibpath_var=LD_LIBRARY_PATH
17582   hardcode_into_libs=yes
17583   ;;
17584
17585 hpux9* | hpux10* | hpux11*)
17586   # Give a soname corresponding to the major version so that dld.sl refuses to
17587   # link against other versions.
17588   version_type=sunos
17589   need_lib_prefix=no
17590   need_version=no
17591   case $host_cpu in
17592   ia64*)
17593     shrext_cmds='.so'
17594     hardcode_into_libs=yes
17595     dynamic_linker="$host_os dld.so"
17596     shlibpath_var=LD_LIBRARY_PATH
17597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599     soname_spec='${libname}${release}${shared_ext}$major'
17600     if test "X$HPUX_IA64_MODE" = X32; then
17601       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17602     else
17603       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17604     fi
17605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17606     ;;
17607    hppa*64*)
17608      shrext_cmds='.sl'
17609      hardcode_into_libs=yes
17610      dynamic_linker="$host_os dld.sl"
17611      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17612      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614      soname_spec='${libname}${release}${shared_ext}$major'
17615      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17616      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17617      ;;
17618    *)
17619     shrext_cmds='.sl'
17620     dynamic_linker="$host_os dld.sl"
17621     shlibpath_var=SHLIB_PATH
17622     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624     soname_spec='${libname}${release}${shared_ext}$major'
17625     ;;
17626   esac
17627   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17628   postinstall_cmds='chmod 555 $lib'
17629   ;;
17630
17631 interix3*)
17632   version_type=linux
17633   need_lib_prefix=no
17634   need_version=no
17635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17636   soname_spec='${libname}${release}${shared_ext}$major'
17637   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17638   shlibpath_var=LD_LIBRARY_PATH
17639   shlibpath_overrides_runpath=no
17640   hardcode_into_libs=yes
17641   ;;
17642
17643 irix5* | irix6* | nonstopux*)
17644   case $host_os in
17645     nonstopux*) version_type=nonstopux ;;
17646     *)
17647         if test "$lt_cv_prog_gnu_ld" = yes; then
17648                 version_type=linux
17649         else
17650                 version_type=irix
17651         fi ;;
17652   esac
17653   need_lib_prefix=no
17654   need_version=no
17655   soname_spec='${libname}${release}${shared_ext}$major'
17656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17657   case $host_os in
17658   irix5* | nonstopux*)
17659     libsuff= shlibsuff=
17660     ;;
17661   *)
17662     case $LD in # libtool.m4 will add one of these switches to LD
17663     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17664       libsuff= shlibsuff= libmagic=32-bit;;
17665     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17666       libsuff=32 shlibsuff=N32 libmagic=N32;;
17667     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17668       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17669     *) libsuff= shlibsuff= libmagic=never-match;;
17670     esac
17671     ;;
17672   esac
17673   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17674   shlibpath_overrides_runpath=no
17675   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17676   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17677   hardcode_into_libs=yes
17678   ;;
17679
17680 # No shared lib support for Linux oldld, aout, or coff.
17681 linux*oldld* | linux*aout* | linux*coff*)
17682   dynamic_linker=no
17683   ;;
17684
17685 # This must be Linux ELF.
17686 linux*)
17687   version_type=linux
17688   need_lib_prefix=no
17689   need_version=no
17690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691   soname_spec='${libname}${release}${shared_ext}$major'
17692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   shlibpath_overrides_runpath=no
17695   # This implies no fast_install, which is unacceptable.
17696   # Some rework will be needed to allow for fast_install
17697   # before this can be enabled.
17698   hardcode_into_libs=yes
17699
17700   # find out which ABI we are using
17701   libsuff=
17702   case "$host_cpu" in
17703   x86_64*|s390x*|powerpc64*)
17704     echo '#line 17704 "configure"' > conftest.$ac_ext
17705     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706   (eval $ac_compile) 2>&5
17707   ac_status=$?
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); }; then
17710       case `/usr/bin/file conftest.$ac_objext` in
17711       *64-bit*)
17712         libsuff=64
17713         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17714         ;;
17715       esac
17716     fi
17717     rm -rf conftest*
17718     ;;
17719   esac
17720
17721   # Append ld.so.conf contents to the search path
17722   if test -f /etc/ld.so.conf; then
17723     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17724     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17725   fi
17726
17727   # We used to test for /lib/ld.so.1 and disable shared libraries on
17728   # powerpc, because MkLinux only supported shared libraries with the
17729   # GNU dynamic linker.  Since this was broken with cross compilers,
17730   # most powerpc-linux boxes support dynamic linking these days and
17731   # people can always --disable-shared, the test was removed, and we
17732   # assume the GNU/Linux dynamic linker is in use.
17733   dynamic_linker='GNU/Linux ld.so'
17734   ;;
17735
17736 knetbsd*-gnu)
17737   version_type=linux
17738   need_lib_prefix=no
17739   need_version=no
17740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17741   soname_spec='${libname}${release}${shared_ext}$major'
17742   shlibpath_var=LD_LIBRARY_PATH
17743   shlibpath_overrides_runpath=no
17744   hardcode_into_libs=yes
17745   dynamic_linker='GNU ld.so'
17746   ;;
17747
17748 netbsd*)
17749   version_type=sunos
17750   need_lib_prefix=no
17751   need_version=no
17752   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17754     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17755     dynamic_linker='NetBSD (a.out) ld.so'
17756   else
17757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17758     soname_spec='${libname}${release}${shared_ext}$major'
17759     dynamic_linker='NetBSD ld.elf_so'
17760   fi
17761   shlibpath_var=LD_LIBRARY_PATH
17762   shlibpath_overrides_runpath=yes
17763   hardcode_into_libs=yes
17764   ;;
17765
17766 newsos6)
17767   version_type=linux
17768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769   shlibpath_var=LD_LIBRARY_PATH
17770   shlibpath_overrides_runpath=yes
17771   ;;
17772
17773 nto-qnx*)
17774   version_type=linux
17775   need_lib_prefix=no
17776   need_version=no
17777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778   soname_spec='${libname}${release}${shared_ext}$major'
17779   shlibpath_var=LD_LIBRARY_PATH
17780   shlibpath_overrides_runpath=yes
17781   ;;
17782
17783 openbsd*)
17784   version_type=sunos
17785   sys_lib_dlsearch_path_spec="/usr/lib"
17786   need_lib_prefix=no
17787   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17788   case $host_os in
17789     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17790     *)                         need_version=no  ;;
17791   esac
17792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17793   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17794   shlibpath_var=LD_LIBRARY_PATH
17795   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17796     case $host_os in
17797       openbsd2.[89] | openbsd2.[89].*)
17798         shlibpath_overrides_runpath=no
17799         ;;
17800       *)
17801         shlibpath_overrides_runpath=yes
17802         ;;
17803       esac
17804   else
17805     shlibpath_overrides_runpath=yes
17806   fi
17807   ;;
17808
17809 os2*)
17810   libname_spec='$name'
17811   shrext_cmds=".dll"
17812   need_lib_prefix=no
17813   library_names_spec='$libname${shared_ext} $libname.a'
17814   dynamic_linker='OS/2 ld.exe'
17815   shlibpath_var=LIBPATH
17816   ;;
17817
17818 osf3* | osf4* | osf5*)
17819   version_type=osf
17820   need_lib_prefix=no
17821   need_version=no
17822   soname_spec='${libname}${release}${shared_ext}$major'
17823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824   shlibpath_var=LD_LIBRARY_PATH
17825   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17826   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17827   ;;
17828
17829 solaris*)
17830   version_type=linux
17831   need_lib_prefix=no
17832   need_version=no
17833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834   soname_spec='${libname}${release}${shared_ext}$major'
17835   shlibpath_var=LD_LIBRARY_PATH
17836   shlibpath_overrides_runpath=yes
17837   hardcode_into_libs=yes
17838   # ldd complains unless libraries are executable
17839   postinstall_cmds='chmod +x $lib'
17840   ;;
17841
17842 sunos4*)
17843   version_type=sunos
17844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17845   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17846   shlibpath_var=LD_LIBRARY_PATH
17847   shlibpath_overrides_runpath=yes
17848   if test "$with_gnu_ld" = yes; then
17849     need_lib_prefix=no
17850   fi
17851   need_version=yes
17852   ;;
17853
17854 sysv4 | sysv4.3*)
17855   version_type=linux
17856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857   soname_spec='${libname}${release}${shared_ext}$major'
17858   shlibpath_var=LD_LIBRARY_PATH
17859   case $host_vendor in
17860     sni)
17861       shlibpath_overrides_runpath=no
17862       need_lib_prefix=no
17863       export_dynamic_flag_spec='${wl}-Blargedynsym'
17864       runpath_var=LD_RUN_PATH
17865       ;;
17866     siemens)
17867       need_lib_prefix=no
17868       ;;
17869     motorola)
17870       need_lib_prefix=no
17871       need_version=no
17872       shlibpath_overrides_runpath=no
17873       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17874       ;;
17875   esac
17876   ;;
17877
17878 sysv4*MP*)
17879   if test -d /usr/nec ;then
17880     version_type=linux
17881     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17882     soname_spec='$libname${shared_ext}.$major'
17883     shlibpath_var=LD_LIBRARY_PATH
17884   fi
17885   ;;
17886
17887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17888   version_type=freebsd-elf
17889   need_lib_prefix=no
17890   need_version=no
17891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892   soname_spec='${libname}${release}${shared_ext}$major'
17893   shlibpath_var=LD_LIBRARY_PATH
17894   hardcode_into_libs=yes
17895   if test "$with_gnu_ld" = yes; then
17896     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17897     shlibpath_overrides_runpath=no
17898   else
17899     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17900     shlibpath_overrides_runpath=yes
17901     case $host_os in
17902       sco3.2v5*)
17903         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17904         ;;
17905     esac
17906   fi
17907   sys_lib_dlsearch_path_spec='/usr/lib'
17908   ;;
17909
17910 uts4*)
17911   version_type=linux
17912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913   soname_spec='${libname}${release}${shared_ext}$major'
17914   shlibpath_var=LD_LIBRARY_PATH
17915   ;;
17916
17917 *)
17918   dynamic_linker=no
17919   ;;
17920 esac
17921 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17922 echo "${ECHO_T}$dynamic_linker" >&6
17923 test "$dynamic_linker" = no && can_build_shared=no
17924
17925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17926 if test "$GCC" = yes; then
17927   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17928 fi
17929
17930 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17931 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17932 hardcode_action_GCJ=
17933 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17934    test -n "$runpath_var_GCJ" || \
17935    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17936
17937   # We can hardcode non-existant directories.
17938   if test "$hardcode_direct_GCJ" != no &&
17939      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17940      # have to relink, otherwise we might link with an installed library
17941      # when we should be linking with a yet-to-be-installed one
17942      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17943      test "$hardcode_minus_L_GCJ" != no; then
17944     # Linking always hardcodes the temporary library directory.
17945     hardcode_action_GCJ=relink
17946   else
17947     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17948     hardcode_action_GCJ=immediate
17949   fi
17950 else
17951   # We cannot hardcode anything, or else we can only hardcode existing
17952   # directories.
17953   hardcode_action_GCJ=unsupported
17954 fi
17955 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17956 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17957
17958 if test "$hardcode_action_GCJ" = relink; then
17959   # Fast installation is not supported
17960   enable_fast_install=no
17961 elif test "$shlibpath_overrides_runpath" = yes ||
17962      test "$enable_shared" = no; then
17963   # Fast installation is not necessary
17964   enable_fast_install=needless
17965 fi
17966
17967
17968 # The else clause should only fire when bootstrapping the
17969 # libtool distribution, otherwise you forgot to ship ltmain.sh
17970 # with your package, and you will get complaints that there are
17971 # no rules to generate ltmain.sh.
17972 if test -f "$ltmain"; then
17973   # See if we are running on zsh, and set the options which allow our commands through
17974   # without removal of \ escapes.
17975   if test -n "${ZSH_VERSION+set}" ; then
17976     setopt NO_GLOB_SUBST
17977   fi
17978   # Now quote all the things that may contain metacharacters while being
17979   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17980   # variables and quote the copies for generation of the libtool script.
17981   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17982     SED SHELL STRIP \
17983     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985     deplibs_check_method reload_flag reload_cmds need_locks \
17986     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987     lt_cv_sys_global_symbol_to_c_name_address \
17988     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17989     old_postinstall_cmds old_postuninstall_cmds \
17990     compiler_GCJ \
17991     CC_GCJ \
17992     LD_GCJ \
17993     lt_prog_compiler_wl_GCJ \
17994     lt_prog_compiler_pic_GCJ \
17995     lt_prog_compiler_static_GCJ \
17996     lt_prog_compiler_no_builtin_flag_GCJ \
17997     export_dynamic_flag_spec_GCJ \
17998     thread_safe_flag_spec_GCJ \
17999     whole_archive_flag_spec_GCJ \
18000     enable_shared_with_static_runtimes_GCJ \
18001     old_archive_cmds_GCJ \
18002     old_archive_from_new_cmds_GCJ \
18003     predep_objects_GCJ \
18004     postdep_objects_GCJ \
18005     predeps_GCJ \
18006     postdeps_GCJ \
18007     compiler_lib_search_path_GCJ \
18008     archive_cmds_GCJ \
18009     archive_expsym_cmds_GCJ \
18010     postinstall_cmds_GCJ \
18011     postuninstall_cmds_GCJ \
18012     old_archive_from_expsyms_cmds_GCJ \
18013     allow_undefined_flag_GCJ \
18014     no_undefined_flag_GCJ \
18015     export_symbols_cmds_GCJ \
18016     hardcode_libdir_flag_spec_GCJ \
18017     hardcode_libdir_flag_spec_ld_GCJ \
18018     hardcode_libdir_separator_GCJ \
18019     hardcode_automatic_GCJ \
18020     module_cmds_GCJ \
18021     module_expsym_cmds_GCJ \
18022     lt_cv_prog_compiler_c_o_GCJ \
18023     exclude_expsyms_GCJ \
18024     include_expsyms_GCJ; do
18025
18026     case $var in
18027     old_archive_cmds_GCJ | \
18028     old_archive_from_new_cmds_GCJ | \
18029     archive_cmds_GCJ | \
18030     archive_expsym_cmds_GCJ | \
18031     module_cmds_GCJ | \
18032     module_expsym_cmds_GCJ | \
18033     old_archive_from_expsyms_cmds_GCJ | \
18034     export_symbols_cmds_GCJ | \
18035     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18036     postinstall_cmds | postuninstall_cmds | \
18037     old_postinstall_cmds | old_postuninstall_cmds | \
18038     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18039       # Double-quote double-evaled strings.
18040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18041       ;;
18042     *)
18043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18044       ;;
18045     esac
18046   done
18047
18048   case $lt_echo in
18049   *'\$0 --fallback-echo"')
18050     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18051     ;;
18052   esac
18053
18054 cfgfile="$ofile"
18055
18056   cat <<__EOF__ >> "$cfgfile"
18057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18058
18059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18060
18061 # Shell to use when invoking shell scripts.
18062 SHELL=$lt_SHELL
18063
18064 # Whether or not to build shared libraries.
18065 build_libtool_libs=$enable_shared
18066
18067 # Whether or not to build static libraries.
18068 build_old_libs=$enable_static
18069
18070 # Whether or not to add -lc for building shared libraries.
18071 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18072
18073 # Whether or not to disallow shared libs when runtime libs are static
18074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18075
18076 # Whether or not to optimize for fast installation.
18077 fast_install=$enable_fast_install
18078
18079 # The host system.
18080 host_alias=$host_alias
18081 host=$host
18082 host_os=$host_os
18083
18084 # The build system.
18085 build_alias=$build_alias
18086 build=$build
18087 build_os=$build_os
18088
18089 # An echo program that does not interpret backslashes.
18090 echo=$lt_echo
18091
18092 # The archiver.
18093 AR=$lt_AR
18094 AR_FLAGS=$lt_AR_FLAGS
18095
18096 # A C compiler.
18097 LTCC=$lt_LTCC
18098
18099 # LTCC compiler flags.
18100 LTCFLAGS=$lt_LTCFLAGS
18101
18102 # A language-specific compiler.
18103 CC=$lt_compiler_GCJ
18104
18105 # Is the compiler the GNU C compiler?
18106 with_gcc=$GCC_GCJ
18107
18108 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18109 gcc_ver=\`gcc -dumpversion\`
18110
18111 # An ERE matcher.
18112 EGREP=$lt_EGREP
18113
18114 # The linker used to build libraries.
18115 LD=$lt_LD_GCJ
18116
18117 # Whether we need hard or soft links.
18118 LN_S=$lt_LN_S
18119
18120 # A BSD-compatible nm program.
18121 NM=$lt_NM
18122
18123 # A symbol stripping program
18124 STRIP=$lt_STRIP
18125
18126 # Used to examine libraries when file_magic_cmd begins "file"
18127 MAGIC_CMD=$MAGIC_CMD
18128
18129 # Used on cygwin: DLL creation program.
18130 DLLTOOL="$DLLTOOL"
18131
18132 # Used on cygwin: object dumper.
18133 OBJDUMP="$OBJDUMP"
18134
18135 # Used on cygwin: assembler.
18136 AS="$AS"
18137
18138 # The name of the directory that contains temporary libtool files.
18139 objdir=$objdir
18140
18141 # How to create reloadable object files.
18142 reload_flag=$lt_reload_flag
18143 reload_cmds=$lt_reload_cmds
18144
18145 # How to pass a linker flag through the compiler.
18146 wl=$lt_lt_prog_compiler_wl_GCJ
18147
18148 # Object file suffix (normally "o").
18149 objext="$ac_objext"
18150
18151 # Old archive suffix (normally "a").
18152 libext="$libext"
18153
18154 # Shared library suffix (normally ".so").
18155 shrext_cmds='$shrext_cmds'
18156
18157 # Executable file suffix (normally "").
18158 exeext="$exeext"
18159
18160 # Additional compiler flags for building library objects.
18161 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18162 pic_mode=$pic_mode
18163
18164 # What is the maximum length of a command?
18165 max_cmd_len=$lt_cv_sys_max_cmd_len
18166
18167 # Does compiler simultaneously support -c and -o options?
18168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18169
18170 # Must we lock files when doing compilation?
18171 need_locks=$lt_need_locks
18172
18173 # Do we need the lib prefix for modules?
18174 need_lib_prefix=$need_lib_prefix
18175
18176 # Do we need a version for libraries?
18177 need_version=$need_version
18178
18179 # Whether dlopen is supported.
18180 dlopen_support=$enable_dlopen
18181
18182 # Whether dlopen of programs is supported.
18183 dlopen_self=$enable_dlopen_self
18184
18185 # Whether dlopen of statically linked programs is supported.
18186 dlopen_self_static=$enable_dlopen_self_static
18187
18188 # Compiler flag to prevent dynamic linking.
18189 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18190
18191 # Compiler flag to turn off builtin functions.
18192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18193
18194 # Compiler flag to allow reflexive dlopens.
18195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18196
18197 # Compiler flag to generate shared objects directly from archives.
18198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18199
18200 # Compiler flag to generate thread-safe objects.
18201 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18202
18203 # Library versioning type.
18204 version_type=$version_type
18205
18206 # Format of library name prefix.
18207 libname_spec=$lt_libname_spec
18208
18209 # List of archive names.  First name is the real one, the rest are links.
18210 # The last name is the one that the linker finds with -lNAME.
18211 library_names_spec=$lt_library_names_spec
18212
18213 # The coded name of the library, if different from the real name.
18214 soname_spec=$lt_soname_spec
18215
18216 # Commands used to build and install an old-style archive.
18217 RANLIB=$lt_RANLIB
18218 old_archive_cmds=$lt_old_archive_cmds_GCJ
18219 old_postinstall_cmds=$lt_old_postinstall_cmds
18220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18221
18222 # Create an old-style archive from a shared archive.
18223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18224
18225 # Create a temporary old-style archive to link instead of a shared archive.
18226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18227
18228 # Commands used to build and install a shared archive.
18229 archive_cmds=$lt_archive_cmds_GCJ
18230 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18231 postinstall_cmds=$lt_postinstall_cmds
18232 postuninstall_cmds=$lt_postuninstall_cmds
18233
18234 # Commands used to build a loadable module (assumed same as above if empty)
18235 module_cmds=$lt_module_cmds_GCJ
18236 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18237
18238 # Commands to strip libraries.
18239 old_striplib=$lt_old_striplib
18240 striplib=$lt_striplib
18241
18242 # Dependencies to place before the objects being linked to create a
18243 # shared library.
18244 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18245
18246 # Dependencies to place after the objects being linked to create a
18247 # shared library.
18248 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18249
18250 # Dependencies to place before the objects being linked to create a
18251 # shared library.
18252 predeps=$lt_predeps_GCJ
18253
18254 # Dependencies to place after the objects being linked to create a
18255 # shared library.
18256 postdeps=$lt_postdeps_GCJ
18257
18258 # The library search path used internally by the compiler when linking
18259 # a shared library.
18260 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18261
18262 # Method to check whether dependent libraries are shared objects.
18263 deplibs_check_method=$lt_deplibs_check_method
18264
18265 # Command to use when deplibs_check_method == file_magic.
18266 file_magic_cmd=$lt_file_magic_cmd
18267
18268 # Flag that allows shared libraries with undefined symbols to be built.
18269 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18270
18271 # Flag that forces no undefined symbols.
18272 no_undefined_flag=$lt_no_undefined_flag_GCJ
18273
18274 # Commands used to finish a libtool library installation in a directory.
18275 finish_cmds=$lt_finish_cmds
18276
18277 # Same as above, but a single script fragment to be evaled but not shown.
18278 finish_eval=$lt_finish_eval
18279
18280 # Take the output of nm and produce a listing of raw symbols and C names.
18281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18282
18283 # Transform the output of nm in a proper C declaration
18284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18285
18286 # Transform the output of nm in a C name address pair
18287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18288
18289 # This is the shared library runtime path variable.
18290 runpath_var=$runpath_var
18291
18292 # This is the shared library path variable.
18293 shlibpath_var=$shlibpath_var
18294
18295 # Is shlibpath searched before the hard-coded library search path?
18296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18297
18298 # How to hardcode a shared library path into an executable.
18299 hardcode_action=$hardcode_action_GCJ
18300
18301 # Whether we should hardcode library paths into libraries.
18302 hardcode_into_libs=$hardcode_into_libs
18303
18304 # Flag to hardcode \$libdir into a binary during linking.
18305 # This must work even if \$libdir does not exist.
18306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18307
18308 # If ld is used when linking, flag to hardcode \$libdir into
18309 # a binary during linking. This must work even if \$libdir does
18310 # not exist.
18311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18312
18313 # Whether we need a single -rpath flag with a separated argument.
18314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18315
18316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18317 # resulting binary.
18318 hardcode_direct=$hardcode_direct_GCJ
18319
18320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18321 # resulting binary.
18322 hardcode_minus_L=$hardcode_minus_L_GCJ
18323
18324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18325 # the resulting binary.
18326 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18327
18328 # Set to yes if building a shared library automatically hardcodes DIR into the library
18329 # and all subsequent libraries and executables linked against it.
18330 hardcode_automatic=$hardcode_automatic_GCJ
18331
18332 # Variables whose values should be saved in libtool wrapper scripts and
18333 # restored at relink time.
18334 variables_saved_for_relink="$variables_saved_for_relink"
18335
18336 # Whether libtool must link a program against all its dependency libraries.
18337 link_all_deplibs=$link_all_deplibs_GCJ
18338
18339 # Compile-time system search path for libraries
18340 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18341
18342 # Run-time system search path for libraries
18343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18344
18345 # Fix the shell variable \$srcfile for the compiler.
18346 fix_srcfile_path="$fix_srcfile_path_GCJ"
18347
18348 # Set to yes if exported symbols are required.
18349 always_export_symbols=$always_export_symbols_GCJ
18350
18351 # The commands to list exported symbols.
18352 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18353
18354 # The commands to extract the exported symbol list from a shared archive.
18355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18356
18357 # Symbols that should not be listed in the preloaded symbols.
18358 exclude_expsyms=$lt_exclude_expsyms_GCJ
18359
18360 # Symbols that must always be exported.
18361 include_expsyms=$lt_include_expsyms_GCJ
18362
18363 # ### END LIBTOOL TAG CONFIG: $tagname
18364
18365 __EOF__
18366
18367
18368 else
18369   # If there is no Makefile yet, we rely on a make rule to execute
18370   # `config.status --recheck' to rerun these tests and create the
18371   # libtool script then.
18372   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18373   if test -f "$ltmain_in"; then
18374     test -f Makefile && make "$ltmain"
18375   fi
18376 fi
18377
18378
18379 ac_ext=c
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385 CC="$lt_save_CC"
18386
18387         else
18388           tagname=""
18389         fi
18390         ;;
18391
18392       RC)
18393
18394
18395
18396 # Source file extension for RC test sources.
18397 ac_ext=rc
18398
18399 # Object file extension for compiled RC test sources.
18400 objext=o
18401 objext_RC=$objext
18402
18403 # Code to be used in simple compile tests
18404 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18405
18406 # Code to be used in simple link tests
18407 lt_simple_link_test_code="$lt_simple_compile_test_code"
18408
18409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18410
18411 # If no C compiler was specified, use CC.
18412 LTCC=${LTCC-"$CC"}
18413
18414 # If no C compiler flags were specified, use CFLAGS.
18415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18416
18417 # Allow CC to be a program name with arguments.
18418 compiler=$CC
18419
18420
18421 # save warnings/boilerplate of simple test code
18422 ac_outfile=conftest.$ac_objext
18423 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18425 _lt_compiler_boilerplate=`cat conftest.err`
18426 $rm conftest*
18427
18428 ac_outfile=conftest.$ac_objext
18429 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18431 _lt_linker_boilerplate=`cat conftest.err`
18432 $rm conftest*
18433
18434
18435 # Allow CC to be a program name with arguments.
18436 lt_save_CC="$CC"
18437 CC=${RC-"windres"}
18438 compiler=$CC
18439 compiler_RC=$CC
18440 for cc_temp in $compiler""; do
18441   case $cc_temp in
18442     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18443     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18444     \-*) ;;
18445     *) break;;
18446   esac
18447 done
18448 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18449
18450 lt_cv_prog_compiler_c_o_RC=yes
18451
18452 # The else clause should only fire when bootstrapping the
18453 # libtool distribution, otherwise you forgot to ship ltmain.sh
18454 # with your package, and you will get complaints that there are
18455 # no rules to generate ltmain.sh.
18456 if test -f "$ltmain"; then
18457   # See if we are running on zsh, and set the options which allow our commands through
18458   # without removal of \ escapes.
18459   if test -n "${ZSH_VERSION+set}" ; then
18460     setopt NO_GLOB_SUBST
18461   fi
18462   # Now quote all the things that may contain metacharacters while being
18463   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18464   # variables and quote the copies for generation of the libtool script.
18465   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18466     SED SHELL STRIP \
18467     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18468     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18469     deplibs_check_method reload_flag reload_cmds need_locks \
18470     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18471     lt_cv_sys_global_symbol_to_c_name_address \
18472     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18473     old_postinstall_cmds old_postuninstall_cmds \
18474     compiler_RC \
18475     CC_RC \
18476     LD_RC \
18477     lt_prog_compiler_wl_RC \
18478     lt_prog_compiler_pic_RC \
18479     lt_prog_compiler_static_RC \
18480     lt_prog_compiler_no_builtin_flag_RC \
18481     export_dynamic_flag_spec_RC \
18482     thread_safe_flag_spec_RC \
18483     whole_archive_flag_spec_RC \
18484     enable_shared_with_static_runtimes_RC \
18485     old_archive_cmds_RC \
18486     old_archive_from_new_cmds_RC \
18487     predep_objects_RC \
18488     postdep_objects_RC \
18489     predeps_RC \
18490     postdeps_RC \
18491     compiler_lib_search_path_RC \
18492     archive_cmds_RC \
18493     archive_expsym_cmds_RC \
18494     postinstall_cmds_RC \
18495     postuninstall_cmds_RC \
18496     old_archive_from_expsyms_cmds_RC \
18497     allow_undefined_flag_RC \
18498     no_undefined_flag_RC \
18499     export_symbols_cmds_RC \
18500     hardcode_libdir_flag_spec_RC \
18501     hardcode_libdir_flag_spec_ld_RC \
18502     hardcode_libdir_separator_RC \
18503     hardcode_automatic_RC \
18504     module_cmds_RC \
18505     module_expsym_cmds_RC \
18506     lt_cv_prog_compiler_c_o_RC \
18507     exclude_expsyms_RC \
18508     include_expsyms_RC; do
18509
18510     case $var in
18511     old_archive_cmds_RC | \
18512     old_archive_from_new_cmds_RC | \
18513     archive_cmds_RC | \
18514     archive_expsym_cmds_RC | \
18515     module_cmds_RC | \
18516     module_expsym_cmds_RC | \
18517     old_archive_from_expsyms_cmds_RC | \
18518     export_symbols_cmds_RC | \
18519     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18520     postinstall_cmds | postuninstall_cmds | \
18521     old_postinstall_cmds | old_postuninstall_cmds | \
18522     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18523       # Double-quote double-evaled strings.
18524       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18525       ;;
18526     *)
18527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18528       ;;
18529     esac
18530   done
18531
18532   case $lt_echo in
18533   *'\$0 --fallback-echo"')
18534     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18535     ;;
18536   esac
18537
18538 cfgfile="$ofile"
18539
18540   cat <<__EOF__ >> "$cfgfile"
18541 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18542
18543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18544
18545 # Shell to use when invoking shell scripts.
18546 SHELL=$lt_SHELL
18547
18548 # Whether or not to build shared libraries.
18549 build_libtool_libs=$enable_shared
18550
18551 # Whether or not to build static libraries.
18552 build_old_libs=$enable_static
18553
18554 # Whether or not to add -lc for building shared libraries.
18555 build_libtool_need_lc=$archive_cmds_need_lc_RC
18556
18557 # Whether or not to disallow shared libs when runtime libs are static
18558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18559
18560 # Whether or not to optimize for fast installation.
18561 fast_install=$enable_fast_install
18562
18563 # The host system.
18564 host_alias=$host_alias
18565 host=$host
18566 host_os=$host_os
18567
18568 # The build system.
18569 build_alias=$build_alias
18570 build=$build
18571 build_os=$build_os
18572
18573 # An echo program that does not interpret backslashes.
18574 echo=$lt_echo
18575
18576 # The archiver.
18577 AR=$lt_AR
18578 AR_FLAGS=$lt_AR_FLAGS
18579
18580 # A C compiler.
18581 LTCC=$lt_LTCC
18582
18583 # LTCC compiler flags.
18584 LTCFLAGS=$lt_LTCFLAGS
18585
18586 # A language-specific compiler.
18587 CC=$lt_compiler_RC
18588
18589 # Is the compiler the GNU C compiler?
18590 with_gcc=$GCC_RC
18591
18592 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18593 gcc_ver=\`gcc -dumpversion\`
18594
18595 # An ERE matcher.
18596 EGREP=$lt_EGREP
18597
18598 # The linker used to build libraries.
18599 LD=$lt_LD_RC
18600
18601 # Whether we need hard or soft links.
18602 LN_S=$lt_LN_S
18603
18604 # A BSD-compatible nm program.
18605 NM=$lt_NM
18606
18607 # A symbol stripping program
18608 STRIP=$lt_STRIP
18609
18610 # Used to examine libraries when file_magic_cmd begins "file"
18611 MAGIC_CMD=$MAGIC_CMD
18612
18613 # Used on cygwin: DLL creation program.
18614 DLLTOOL="$DLLTOOL"
18615
18616 # Used on cygwin: object dumper.
18617 OBJDUMP="$OBJDUMP"
18618
18619 # Used on cygwin: assembler.
18620 AS="$AS"
18621
18622 # The name of the directory that contains temporary libtool files.
18623 objdir=$objdir
18624
18625 # How to create reloadable object files.
18626 reload_flag=$lt_reload_flag
18627 reload_cmds=$lt_reload_cmds
18628
18629 # How to pass a linker flag through the compiler.
18630 wl=$lt_lt_prog_compiler_wl_RC
18631
18632 # Object file suffix (normally "o").
18633 objext="$ac_objext"
18634
18635 # Old archive suffix (normally "a").
18636 libext="$libext"
18637
18638 # Shared library suffix (normally ".so").
18639 shrext_cmds='$shrext_cmds'
18640
18641 # Executable file suffix (normally "").
18642 exeext="$exeext"
18643
18644 # Additional compiler flags for building library objects.
18645 pic_flag=$lt_lt_prog_compiler_pic_RC
18646 pic_mode=$pic_mode
18647
18648 # What is the maximum length of a command?
18649 max_cmd_len=$lt_cv_sys_max_cmd_len
18650
18651 # Does compiler simultaneously support -c and -o options?
18652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18653
18654 # Must we lock files when doing compilation?
18655 need_locks=$lt_need_locks
18656
18657 # Do we need the lib prefix for modules?
18658 need_lib_prefix=$need_lib_prefix
18659
18660 # Do we need a version for libraries?
18661 need_version=$need_version
18662
18663 # Whether dlopen is supported.
18664 dlopen_support=$enable_dlopen
18665
18666 # Whether dlopen of programs is supported.
18667 dlopen_self=$enable_dlopen_self
18668
18669 # Whether dlopen of statically linked programs is supported.
18670 dlopen_self_static=$enable_dlopen_self_static
18671
18672 # Compiler flag to prevent dynamic linking.
18673 link_static_flag=$lt_lt_prog_compiler_static_RC
18674
18675 # Compiler flag to turn off builtin functions.
18676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18677
18678 # Compiler flag to allow reflexive dlopens.
18679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18680
18681 # Compiler flag to generate shared objects directly from archives.
18682 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18683
18684 # Compiler flag to generate thread-safe objects.
18685 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18686
18687 # Library versioning type.
18688 version_type=$version_type
18689
18690 # Format of library name prefix.
18691 libname_spec=$lt_libname_spec
18692
18693 # List of archive names.  First name is the real one, the rest are links.
18694 # The last name is the one that the linker finds with -lNAME.
18695 library_names_spec=$lt_library_names_spec
18696
18697 # The coded name of the library, if different from the real name.
18698 soname_spec=$lt_soname_spec
18699
18700 # Commands used to build and install an old-style archive.
18701 RANLIB=$lt_RANLIB
18702 old_archive_cmds=$lt_old_archive_cmds_RC
18703 old_postinstall_cmds=$lt_old_postinstall_cmds
18704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18705
18706 # Create an old-style archive from a shared archive.
18707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18708
18709 # Create a temporary old-style archive to link instead of a shared archive.
18710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18711
18712 # Commands used to build and install a shared archive.
18713 archive_cmds=$lt_archive_cmds_RC
18714 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18715 postinstall_cmds=$lt_postinstall_cmds
18716 postuninstall_cmds=$lt_postuninstall_cmds
18717
18718 # Commands used to build a loadable module (assumed same as above if empty)
18719 module_cmds=$lt_module_cmds_RC
18720 module_expsym_cmds=$lt_module_expsym_cmds_RC
18721
18722 # Commands to strip libraries.
18723 old_striplib=$lt_old_striplib
18724 striplib=$lt_striplib
18725
18726 # Dependencies to place before the objects being linked to create a
18727 # shared library.
18728 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18729
18730 # Dependencies to place after the objects being linked to create a
18731 # shared library.
18732 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18733
18734 # Dependencies to place before the objects being linked to create a
18735 # shared library.
18736 predeps=$lt_predeps_RC
18737
18738 # Dependencies to place after the objects being linked to create a
18739 # shared library.
18740 postdeps=$lt_postdeps_RC
18741
18742 # The library search path used internally by the compiler when linking
18743 # a shared library.
18744 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18745
18746 # Method to check whether dependent libraries are shared objects.
18747 deplibs_check_method=$lt_deplibs_check_method
18748
18749 # Command to use when deplibs_check_method == file_magic.
18750 file_magic_cmd=$lt_file_magic_cmd
18751
18752 # Flag that allows shared libraries with undefined symbols to be built.
18753 allow_undefined_flag=$lt_allow_undefined_flag_RC
18754
18755 # Flag that forces no undefined symbols.
18756 no_undefined_flag=$lt_no_undefined_flag_RC
18757
18758 # Commands used to finish a libtool library installation in a directory.
18759 finish_cmds=$lt_finish_cmds
18760
18761 # Same as above, but a single script fragment to be evaled but not shown.
18762 finish_eval=$lt_finish_eval
18763
18764 # Take the output of nm and produce a listing of raw symbols and C names.
18765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18766
18767 # Transform the output of nm in a proper C declaration
18768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18769
18770 # Transform the output of nm in a C name address pair
18771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18772
18773 # This is the shared library runtime path variable.
18774 runpath_var=$runpath_var
18775
18776 # This is the shared library path variable.
18777 shlibpath_var=$shlibpath_var
18778
18779 # Is shlibpath searched before the hard-coded library search path?
18780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18781
18782 # How to hardcode a shared library path into an executable.
18783 hardcode_action=$hardcode_action_RC
18784
18785 # Whether we should hardcode library paths into libraries.
18786 hardcode_into_libs=$hardcode_into_libs
18787
18788 # Flag to hardcode \$libdir into a binary during linking.
18789 # This must work even if \$libdir does not exist.
18790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18791
18792 # If ld is used when linking, flag to hardcode \$libdir into
18793 # a binary during linking. This must work even if \$libdir does
18794 # not exist.
18795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18796
18797 # Whether we need a single -rpath flag with a separated argument.
18798 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18799
18800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18801 # resulting binary.
18802 hardcode_direct=$hardcode_direct_RC
18803
18804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18805 # resulting binary.
18806 hardcode_minus_L=$hardcode_minus_L_RC
18807
18808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18809 # the resulting binary.
18810 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18811
18812 # Set to yes if building a shared library automatically hardcodes DIR into the library
18813 # and all subsequent libraries and executables linked against it.
18814 hardcode_automatic=$hardcode_automatic_RC
18815
18816 # Variables whose values should be saved in libtool wrapper scripts and
18817 # restored at relink time.
18818 variables_saved_for_relink="$variables_saved_for_relink"
18819
18820 # Whether libtool must link a program against all its dependency libraries.
18821 link_all_deplibs=$link_all_deplibs_RC
18822
18823 # Compile-time system search path for libraries
18824 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18825
18826 # Run-time system search path for libraries
18827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18828
18829 # Fix the shell variable \$srcfile for the compiler.
18830 fix_srcfile_path="$fix_srcfile_path_RC"
18831
18832 # Set to yes if exported symbols are required.
18833 always_export_symbols=$always_export_symbols_RC
18834
18835 # The commands to list exported symbols.
18836 export_symbols_cmds=$lt_export_symbols_cmds_RC
18837
18838 # The commands to extract the exported symbol list from a shared archive.
18839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18840
18841 # Symbols that should not be listed in the preloaded symbols.
18842 exclude_expsyms=$lt_exclude_expsyms_RC
18843
18844 # Symbols that must always be exported.
18845 include_expsyms=$lt_include_expsyms_RC
18846
18847 # ### END LIBTOOL TAG CONFIG: $tagname
18848
18849 __EOF__
18850
18851
18852 else
18853   # If there is no Makefile yet, we rely on a make rule to execute
18854   # `config.status --recheck' to rerun these tests and create the
18855   # libtool script then.
18856   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18857   if test -f "$ltmain_in"; then
18858     test -f Makefile && make "$ltmain"
18859   fi
18860 fi
18861
18862
18863 ac_ext=c
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868
18869 CC="$lt_save_CC"
18870
18871         ;;
18872
18873       *)
18874         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18875 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18876    { (exit 1); exit 1; }; }
18877         ;;
18878       esac
18879
18880       # Append the new tag name to the list of available tags.
18881       if test -n "$tagname" ; then
18882       available_tags="$available_tags $tagname"
18883     fi
18884     fi
18885   done
18886   IFS="$lt_save_ifs"
18887
18888   # Now substitute the updated list of available tags.
18889   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18890     mv "${ofile}T" "$ofile"
18891     chmod +x "$ofile"
18892   else
18893     rm -f "${ofile}T"
18894     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18895 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18896    { (exit 1); exit 1; }; }
18897   fi
18898 fi
18899
18900
18901
18902 # This can be used to rebuild libtool when needed
18903 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18904
18905 # Always use our own libtool.
18906 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18907
18908 # Prevent multiple expansion
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932 # Check whether --with-linux or --without-linux was given.
18933 if test "${with_linux+set}" = set; then
18934   withval="$with_linux"
18935   kernelsrc="$withval"; kernelbuild="$withval"
18936 fi;
18937
18938
18939 # Check whether --with-linux-obj or --without-linux-obj was given.
18940 if test "${with_linux_obj+set}" = set; then
18941   withval="$with_linux_obj"
18942   kernelbuild="$withval"
18943 fi;
18944
18945         echo "$as_me:$LINENO: checking kernel source directory" >&5
18946 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18947         if test -z "$kernelsrc"; then
18948                 kernelbuild=
18949                 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* 2>/dev/null | tail -1`
18950
18951                 if test -e ${sourcelink}; then
18952                         kernelsrc=`readlink -f ${sourcelink}`
18953                         kernelbuild=${kernelsrc}
18954                 else
18955                         echo "$as_me:$LINENO: result: Not found" >&5
18956 echo "${ECHO_T}Not found" >&6
18957                         { { echo "$as_me:$LINENO: error:
18958                         *** Please specify the location of the kernel source
18959                         *** with the '--with-linux=PATH' option" >&5
18960 echo "$as_me: error:
18961                         *** Please specify the location of the kernel source
18962                         *** with the '--with-linux=PATH' option" >&2;}
18963    { (exit 1); exit 1; }; }
18964                 fi
18965         else
18966                 if test "$kernelsrc" = "NONE"; then
18967                         kernsrcver=NONE
18968                 fi
18969         fi
18970
18971         echo "$as_me:$LINENO: result: $kernelsrc" >&5
18972 echo "${ECHO_T}$kernelsrc" >&6
18973         echo "$as_me:$LINENO: checking kernel build directory" >&5
18974 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18975         echo "$as_me:$LINENO: result: $kernelbuild" >&5
18976 echo "${ECHO_T}$kernelbuild" >&6
18977
18978         echo "$as_me:$LINENO: checking kernel source version" >&5
18979 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18980         if test -r $kernelbuild/include/linux/version.h &&
18981                 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
18982
18983                 kernsrcver=`(echo "#include <linux/version.h>";
18984                              echo "kernsrcver=UTS_RELEASE") |
18985                              cpp -I $kernelbuild/include |
18986                              grep "^kernsrcver=" | cut -d \" -f 2`
18987
18988         elif test -r $kernelbuild/include/linux/utsrelease.h &&
18989                 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
18990
18991                 kernsrcver=`(echo "#include <linux/utsrelease.h>";
18992                              echo "kernsrcver=UTS_RELEASE") |
18993                              cpp -I $kernelbuild/include |
18994                              grep "^kernsrcver=" | cut -d \" -f 2`
18995         fi
18996
18997         if test -z "$kernsrcver"; then
18998                 echo "$as_me:$LINENO: result: Not found" >&5
18999 echo "${ECHO_T}Not found" >&6
19000                 { { echo "$as_me:$LINENO: error:
19001                 *** Cannot determine the version of the linux kernel source.
19002                 *** Please prepare the kernel before running this script" >&5
19003 echo "$as_me: error:
19004                 *** Cannot determine the version of the linux kernel source.
19005                 *** Please prepare the kernel before running this script" >&2;}
19006    { (exit 1); exit 1; }; }
19007         fi
19008
19009         echo "$as_me:$LINENO: result: $kernsrcver" >&5
19010 echo "${ECHO_T}$kernsrcver" >&6
19011
19012         LINUX=${kernelsrc}
19013         LINUX_OBJ=${kernelbuild}
19014         LINUX_VERSION=${kernsrcver}
19015
19016         abs_srcdir=`readlink -f ${srcdir}`
19017         kerninclude="-I${abs_srcdir} -I${abs_srcdir}/include"
19018         kernwarn="-Wstrict-prototypes -Werror"
19019
19020         if test "${LINUX_OBJ}" != "${LINUX}"; then
19021                 kernobjs="O=$kernelbuild"
19022         fi
19023
19024         KERNELCFLAGS=
19025         KERNELCPPFLAGS="${kerninclude} ${kernwarn}"
19026         KERNELMAKE_PARAMS="${kernobjs}"
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036         echo "$as_me:$LINENO: checking license" >&5
19037 echo $ECHO_N "checking license... $ECHO_C" >&6
19038         echo "$as_me:$LINENO: result: GPL" >&5
19039 echo "${ECHO_T}GPL" >&6
19040         KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19041
19042
19043         echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19044 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19045         # Check whether --enable-debug or --disable-debug was given.
19046 if test "${enable_debug+set}" = set; then
19047   enableval="$enable_debug"
19048    case "$enableval" in
19049                         yes) spl_ac_debug=yes ;;
19050                         no)  spl_ac_debug=no  ;;
19051                         *) echo "$as_me:$LINENO: result: Error!" >&5
19052 echo "${ECHO_T}Error!" >&6
19053                         { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19054 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19055    { (exit 1); exit 1; }; } ;;
19056                 esac
19057
19058 fi;
19059         if test "$spl_ac_debug" = yes; then
19060                 echo "$as_me:$LINENO: result: yes" >&5
19061 echo "${ECHO_T}yes" >&6
19062                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19063         else
19064                 echo "$as_me:$LINENO: result: no" >&5
19065 echo "${ECHO_T}no" >&6
19066                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19067         fi
19068
19069
19070         echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19071 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19072         # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19073 if test "${enable_debug_kmem+set}" = set; then
19074   enableval="$enable_debug_kmem"
19075    case "$enableval" in
19076                         yes) spl_ac_debug_kmem=yes ;;
19077                         no)  spl_ac_debug_kmem=no  ;;
19078                         *) echo "$as_me:$LINENO: result: Error!" >&5
19079 echo "${ECHO_T}Error!" >&6
19080                         { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19081 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19082    { (exit 1); exit 1; }; } ;;
19083                 esac
19084
19085 fi;
19086         if test "$spl_ac_debug_kmem" = yes; then
19087                 echo "$as_me:$LINENO: result: yes" >&5
19088 echo "${ECHO_T}yes" >&6
19089
19090 cat >>confdefs.h <<\_ACEOF
19091 #define DEBUG_KMEM 1
19092 _ACEOF
19093
19094                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19095         else
19096                 echo "$as_me:$LINENO: result: no" >&5
19097 echo "${ECHO_T}no" >&6
19098         fi
19099
19100
19101         echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19102 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19103         # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19104 if test "${enable_debug_mutex+set}" = set; then
19105   enableval="$enable_debug_mutex"
19106    case "$enableval" in
19107                         yes) spl_ac_debug_mutex=yes ;;
19108                         no)  spl_ac_debug_mutex=no  ;;
19109                         *) echo "$as_me:$LINENO: result: Error!" >&5
19110 echo "${ECHO_T}Error!" >&6
19111                         { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19112 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19113    { (exit 1); exit 1; }; } ;;
19114                 esac
19115
19116 fi;
19117         if test "$spl_ac_debug_mutex" = yes; then
19118                 echo "$as_me:$LINENO: result: yes" >&5
19119 echo "${ECHO_T}yes" >&6
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define DEBUG_MUTEX 1
19123 _ACEOF
19124
19125                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19126         else
19127                 echo "$as_me:$LINENO: result: no" >&5
19128 echo "${ECHO_T}no" >&6
19129         fi
19130
19131
19132         echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19133 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19134         # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19135 if test "${enable_debug_kstat+set}" = set; then
19136   enableval="$enable_debug_kstat"
19137    case "$enableval" in
19138                         yes) spl_ac_debug_kstat=yes ;;
19139                         no)  spl_ac_debug_kstat=no  ;;
19140                         *) echo "$as_me:$LINENO: result: Error!" >&5
19141 echo "${ECHO_T}Error!" >&6
19142                         { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19143 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19144    { (exit 1); exit 1; }; } ;;
19145                 esac
19146
19147 fi;
19148         if test "$spl_ac_debug_kstat" = yes; then
19149                 echo "$as_me:$LINENO: result: yes" >&5
19150 echo "${ECHO_T}yes" >&6
19151
19152 cat >>confdefs.h <<\_ACEOF
19153 #define DEBUG_KSTAT 1
19154 _ACEOF
19155
19156                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19157         else
19158                 echo "$as_me:$LINENO: result: no" >&5
19159 echo "${ECHO_T}no" >&6
19160         fi
19161
19162
19163         echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19164 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19165         # Check whether --enable-debug-callb or --disable-debug-callb was given.
19166 if test "${enable_debug_callb+set}" = set; then
19167   enableval="$enable_debug_callb"
19168    case "$enableval" in
19169                         yes) spl_ac_debug_callb=yes ;;
19170                         no)  spl_ac_debug_callb=no  ;;
19171                         *) echo "$as_me:$LINENO: result: Error!" >&5
19172 echo "${ECHO_T}Error!" >&6
19173                         { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19174 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19175    { (exit 1); exit 1; }; } ;;
19176                 esac
19177
19178 fi;
19179         if test "$spl_ac_debug_callb" = yes; then
19180                 echo "$as_me:$LINENO: result: yes" >&5
19181 echo "${ECHO_T}yes" >&6
19182
19183 cat >>confdefs.h <<\_ACEOF
19184 #define DEBUG_CALLB 1
19185 _ACEOF
19186
19187                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19188         else
19189                 echo "$as_me:$LINENO: result: no" >&5
19190 echo "${ECHO_T}no" >&6
19191         fi
19192
19193 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19194 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19195
19196
19197 cat >conftest.c <<_ACEOF
19198 /* confdefs.h.  */
19199 _ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h.  */
19203
19204
19205                 #include <linux/types.h>
19206
19207 int
19208 main (void)
19209 {
19210
19211                 uintptr_t *ptr;
19212
19213   ;
19214   return 0;
19215 }
19216
19217 _ACEOF
19218
19219
19220         rm -Rf build && mkdir -p build
19221         echo "obj-m := conftest.o" >build/Makefile
19222         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; }; then
19233
19234                 echo "$as_me:$LINENO: result: yes" >&5
19235 echo "${ECHO_T}yes" >&6
19236
19237 cat >>confdefs.h <<\_ACEOF
19238 #define HAVE_UINTPTR_T 1
19239 _ACEOF
19240
19241
19242 else
19243   echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19245
19246                 echo "$as_me:$LINENO: result: no" >&5
19247 echo "${ECHO_T}no" >&6
19248
19249
19250
19251 fi
19252
19253         rm -Rf build
19254
19255
19256
19257 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19258 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19259
19260
19261 cat >conftest.c <<_ACEOF
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267
19268
19269                 #include <asm/atomic.h>
19270
19271 int
19272 main (void)
19273 {
19274
19275                 atomic64_t *ptr;
19276
19277   ;
19278   return 0;
19279 }
19280
19281 _ACEOF
19282
19283
19284         rm -Rf build && mkdir -p build
19285         echo "obj-m := conftest.o" >build/Makefile
19286         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288   (eval $ac_try) 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293   (eval $ac_try) 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; }; then
19297
19298                 echo "$as_me:$LINENO: result: yes" >&5
19299 echo "${ECHO_T}yes" >&6
19300
19301 cat >>confdefs.h <<\_ACEOF
19302 #define HAVE_ATOMIC64_T 1
19303 _ACEOF
19304
19305
19306 else
19307   echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310                 echo "$as_me:$LINENO: result: no" >&5
19311 echo "${ECHO_T}no" >&6
19312
19313
19314
19315 fi
19316
19317         rm -Rf build
19318
19319
19320
19321 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19322 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19323
19324
19325 cat >conftest.c <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331
19332
19333                 #include <linux/workqueue.h>
19334
19335 int
19336 main (void)
19337 {
19338
19339                 struct work_struct work;
19340                 INIT_WORK(&work, NULL, NULL);
19341
19342   ;
19343   return 0;
19344 }
19345
19346 _ACEOF
19347
19348
19349         rm -Rf build && mkdir -p build
19350         echo "obj-m := conftest.o" >build/Makefile
19351         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362
19363                 echo "$as_me:$LINENO: result: yes" >&5
19364 echo "${ECHO_T}yes" >&6
19365
19366 cat >>confdefs.h <<\_ACEOF
19367 #define HAVE_3ARGS_INIT_WORK 1
19368 _ACEOF
19369
19370
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375                 echo "$as_me:$LINENO: result: no" >&5
19376 echo "${ECHO_T}no" >&6
19377
19378
19379
19380 fi
19381
19382         rm -Rf build
19383
19384
19385
19386 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19387 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19388
19389
19390 cat >conftest.c <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396
19397
19398                 #include <linux/sysctl.h>
19399
19400 int
19401 main (void)
19402 {
19403
19404                 return register_sysctl_table(NULL,0);
19405
19406   ;
19407   return 0;
19408 }
19409
19410 _ACEOF
19411
19412
19413         rm -Rf build && mkdir -p build
19414         echo "obj-m := conftest.o" >build/Makefile
19415         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; }; then
19426
19427                 echo "$as_me:$LINENO: result: yes" >&5
19428 echo "${ECHO_T}yes" >&6
19429
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19432 _ACEOF
19433
19434
19435 else
19436   echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439                 echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6
19441
19442
19443
19444 fi
19445
19446         rm -Rf build
19447
19448
19449
19450
19451         echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19452 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19453
19454
19455 cat >conftest.c <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461
19462
19463                 #include <linux/mm.h>
19464
19465 int
19466 main (void)
19467 {
19468
19469                 return set_shrinker(DEFAULT_SEEKS, NULL);
19470
19471   ;
19472   return 0;
19473 }
19474
19475 _ACEOF
19476
19477
19478         rm -Rf build && mkdir -p build
19479         echo "obj-m := conftest.o" >build/Makefile
19480         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487   (eval $ac_try) 2>&5
19488   ac_status=$?
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); }; }; then
19491
19492                 echo "$as_me:$LINENO: result: yes" >&5
19493 echo "${ECHO_T}yes" >&6
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_SET_SHRINKER 1
19497 _ACEOF
19498
19499
19500 else
19501   echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504                 echo "$as_me:$LINENO: result: no" >&5
19505 echo "${ECHO_T}no" >&6
19506
19507
19508
19509 fi
19510
19511         rm -Rf build
19512
19513
19514
19515 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19516 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19517
19518
19519 cat >conftest.c <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525
19526
19527                 #include <linux/namei.h>
19528
19529 int
19530 main (void)
19531 {
19532
19533                 struct nameidata nd;
19534
19535                 nd.path.mnt = NULL;
19536                 nd.path.dentry = NULL;
19537
19538   ;
19539   return 0;
19540 }
19541
19542 _ACEOF
19543
19544
19545         rm -Rf build && mkdir -p build
19546         echo "obj-m := conftest.o" >build/Makefile
19547         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558
19559                 echo "$as_me:$LINENO: result: yes" >&5
19560 echo "${ECHO_T}yes" >&6
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_PATH_IN_NAMEIDATA 1
19564 _ACEOF
19565
19566
19567 else
19568   echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571                 echo "$as_me:$LINENO: result: no" >&5
19572 echo "${ECHO_T}no" >&6
19573
19574
19575
19576 fi
19577
19578         rm -Rf build
19579
19580
19581
19582
19583         echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19584 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19585         grep -q -E '[[:space:]]task_curr[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19586         rc=$?
19587         if test $rc -ne 0; then
19588                 export=0
19589                 for file in kernel/sched.c; do
19590                         grep -q -E "EXPORT_SYMBOL.*(task_curr)" "$LINUX_OBJ/$file" 2>/dev/null
19591                         rc=$?
19592                         if test $rc -eq 0; then
19593                                 export=1
19594                                 break;
19595                         fi
19596                 done
19597                 if test $export -eq 0; then
19598                         echo "$as_me:$LINENO: result: no" >&5
19599 echo "${ECHO_T}no" >&6
19600
19601                 else
19602                         echo "$as_me:$LINENO: result: yes" >&5
19603 echo "${ECHO_T}yes" >&6
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_TASK_CURR 1
19607 _ACEOF
19608
19609                 fi
19610         else
19611                 echo "$as_me:$LINENO: result: yes" >&5
19612 echo "${ECHO_T}yes" >&6
19613
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_TASK_CURR 1
19616 _ACEOF
19617
19618         fi
19619
19620
19621 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19622 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19623
19624
19625 cat >conftest.c <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631
19632
19633                 #include <linux/sysctl.h>
19634
19635 int
19636 main (void)
19637 {
19638
19639                 #ifndef CTL_UNNUMBERED
19640                 #error CTL_UNNUMBERED undefined
19641                 #endif
19642
19643   ;
19644   return 0;
19645 }
19646
19647 _ACEOF
19648
19649
19650         rm -Rf build && mkdir -p build
19651         echo "obj-m := conftest.o" >build/Makefile
19652         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663
19664                 echo "$as_me:$LINENO: result: yes" >&5
19665 echo "${ECHO_T}yes" >&6
19666
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE_CTL_UNNUMBERED 1
19669 _ACEOF
19670
19671
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676                 echo "$as_me:$LINENO: result: no" >&5
19677 echo "${ECHO_T}no" >&6
19678
19679
19680
19681 fi
19682
19683         rm -Rf build
19684
19685
19686
19687 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19688 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19689
19690
19691 cat >conftest.c <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697
19698
19699                 #include <linux/bitops.h>
19700
19701 int
19702 main (void)
19703 {
19704
19705                 return fls64(0);
19706
19707   ;
19708   return 0;
19709 }
19710
19711 _ACEOF
19712
19713
19714         rm -Rf build && mkdir -p build
19715         echo "obj-m := conftest.o" >build/Makefile
19716         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718   (eval $ac_try) 2>&5
19719   ac_status=$?
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723   (eval $ac_try) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; }; then
19727
19728                 echo "$as_me:$LINENO: result: yes" >&5
19729 echo "${ECHO_T}yes" >&6
19730
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE_FLS64 1
19733 _ACEOF
19734
19735
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740                 echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6
19742
19743
19744
19745 fi
19746
19747         rm -Rf build
19748
19749
19750
19751
19752         echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19753 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19754         grep -q -E '[[:space:]]device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19755         rc=$?
19756         if test $rc -ne 0; then
19757                 export=0
19758                 for file in drivers/base/core.c; do
19759                         grep -q -E "EXPORT_SYMBOL.*(device_create)" "$LINUX_OBJ/$file" 2>/dev/null
19760                         rc=$?
19761                         if test $rc -eq 0; then
19762                                 export=1
19763                                 break;
19764                         fi
19765                 done
19766                 if test $export -eq 0; then
19767                         echo "$as_me:$LINENO: result: no" >&5
19768 echo "${ECHO_T}no" >&6
19769
19770                 else
19771                         echo "$as_me:$LINENO: result: yes" >&5
19772 echo "${ECHO_T}yes" >&6
19773
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_DEVICE_CREATE 1
19776 _ACEOF
19777
19778                 fi
19779         else
19780                 echo "$as_me:$LINENO: result: yes" >&5
19781 echo "${ECHO_T}yes" >&6
19782
19783 cat >>confdefs.h <<\_ACEOF
19784 #define HAVE_DEVICE_CREATE 1
19785 _ACEOF
19786
19787         fi
19788
19789
19790
19791         echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19792 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19793         grep -q -E '[[:space:]]class_device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19794         rc=$?
19795         if test $rc -ne 0; then
19796                 export=0
19797                 for file in drivers/base/class.c; do
19798                         grep -q -E "EXPORT_SYMBOL.*(class_device_create)" "$LINUX_OBJ/$file" 2>/dev/null
19799                         rc=$?
19800                         if test $rc -eq 0; then
19801                                 export=1
19802                                 break;
19803                         fi
19804                 done
19805                 if test $export -eq 0; then
19806                         echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6
19808
19809                 else
19810                         echo "$as_me:$LINENO: result: yes" >&5
19811 echo "${ECHO_T}yes" >&6
19812
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE_CLASS_DEVICE_CREATE 1
19815 _ACEOF
19816
19817                 fi
19818         else
19819                 echo "$as_me:$LINENO: result: yes" >&5
19820 echo "${ECHO_T}yes" >&6
19821
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_CLASS_DEVICE_CREATE 1
19824 _ACEOF
19825
19826         fi
19827
19828
19829
19830         echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19831 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19832         grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19833         rc=$?
19834         if test $rc -ne 0; then
19835                 export=0
19836                 for file in kernel/time.c; do
19837                         grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" "$LINUX_OBJ/$file" 2>/dev/null
19838                         rc=$?
19839                         if test $rc -eq 0; then
19840                                 export=1
19841                                 break;
19842                         fi
19843                 done
19844                 if test $export -eq 0; then
19845                         echo "$as_me:$LINENO: result: no" >&5
19846 echo "${ECHO_T}no" >&6
19847
19848                 else
19849                         echo "$as_me:$LINENO: result: yes" >&5
19850 echo "${ECHO_T}yes" >&6
19851
19852 cat >>confdefs.h <<\_ACEOF
19853 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19854 _ACEOF
19855
19856                 fi
19857         else
19858                 echo "$as_me:$LINENO: result: yes" >&5
19859 echo "${ECHO_T}yes" >&6
19860
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19863 _ACEOF
19864
19865         fi
19866
19867
19868
19869         echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19870 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19871
19872
19873 cat >conftest.c <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879
19880
19881                 #include <linux/time.h>
19882                 void set_normalized_timespec(struct timespec *ts,
19883                                              time_t sec, long nsec) { }
19884
19885 int
19886 main (void)
19887 {
19888
19889   ;
19890   return 0;
19891 }
19892
19893 _ACEOF
19894
19895
19896         rm -Rf build && mkdir -p build
19897         echo "obj-m := conftest.o" >build/Makefile
19898         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900   (eval $ac_try) 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905   (eval $ac_try) 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; }; then
19909
19910                 echo "$as_me:$LINENO: result: no" >&5
19911 echo "${ECHO_T}no" >&6
19912
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917                 echo "$as_me:$LINENO: result: yes" >&5
19918 echo "${ECHO_T}yes" >&6
19919
19920 cat >>confdefs.h <<\_ACEOF
19921 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
19922 _ACEOF
19923
19924
19925
19926
19927 fi
19928
19929         rm -Rf build
19930
19931
19932
19933
19934         echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
19935 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
19936
19937
19938 cat >conftest.c <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944
19945
19946                 #include <linux/time.h>
19947
19948 int
19949 main (void)
19950 {
19951
19952                 struct timespec a, b, c = { 0 };
19953                 c = timespec_sub(a, b);
19954
19955   ;
19956   return 0;
19957 }
19958
19959 _ACEOF
19960
19961
19962         rm -Rf build && mkdir -p build
19963         echo "obj-m := conftest.o" >build/Makefile
19964         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966   (eval $ac_try) 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971   (eval $ac_try) 2>&5
19972   ac_status=$?
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); }; }; then
19975
19976                 echo "$as_me:$LINENO: result: yes" >&5
19977 echo "${ECHO_T}yes" >&6
19978
19979 cat >>confdefs.h <<\_ACEOF
19980 #define HAVE_TIMESPEC_SUB 1
19981 _ACEOF
19982
19983
19984 else
19985   echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988                 echo "$as_me:$LINENO: result: no" >&5
19989 echo "${ECHO_T}no" >&6
19990
19991
19992
19993 fi
19994
19995         rm -Rf build
19996
19997
19998
19999
20000         echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20001 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20002
20003
20004 cat >conftest.c <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010
20011
20012                 #include <linux/utsname.h>
20013
20014 int
20015 main (void)
20016 {
20017
20018                 struct new_utsname *a = init_utsname();
20019
20020   ;
20021   return 0;
20022 }
20023
20024 _ACEOF
20025
20026
20027         rm -Rf build && mkdir -p build
20028         echo "obj-m := conftest.o" >build/Makefile
20029         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031   (eval $ac_try) 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036   (eval $ac_try) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; }; then
20040
20041                 echo "$as_me:$LINENO: result: yes" >&5
20042 echo "${ECHO_T}yes" >&6
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_INIT_UTSNAME 1
20046 _ACEOF
20047
20048
20049 else
20050   echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053                 echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6
20055
20056
20057
20058 fi
20059
20060         rm -Rf build
20061
20062
20063
20064
20065         echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20066 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20067
20068
20069 cat >conftest.c <<_ACEOF
20070 /* confdefs.h.  */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h.  */
20075
20076
20077                 #include <linux/fdtable.h>
20078
20079 int
20080 main (void)
20081 {
20082
20083                 return 0;
20084
20085   ;
20086   return 0;
20087 }
20088
20089 _ACEOF
20090
20091
20092         rm -Rf build && mkdir -p build
20093         echo "obj-m := conftest.o" >build/Makefile
20094         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101   (eval $ac_try) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; }; then
20105
20106
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_FDTABLE_HEADER 1
20109 _ACEOF
20110
20111                 echo "$as_me:$LINENO: result: yes" >&5
20112 echo "${ECHO_T}yes" >&6
20113
20114
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119                 echo "$as_me:$LINENO: result: no" >&5
20120 echo "${ECHO_T}no" >&6
20121
20122
20123
20124
20125 fi
20126
20127         rm -Rf build
20128
20129
20130
20131
20132
20133         echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20134 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20135
20136
20137 cat >conftest.c <<_ACEOF
20138 /* confdefs.h.  */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h.  */
20143
20144
20145                 #include <linux/sched.h>
20146                 #include <linux/file.h>
20147                 #ifdef HAVE_FDTABLE_HEADER
20148                 #include <linux/fdtable.h>
20149                 #endif
20150
20151 int
20152 main (void)
20153 {
20154
20155                 struct files_struct *files = current->files;
20156                 struct fdtable *fdt = files_fdtable(files);
20157
20158   ;
20159   return 0;
20160 }
20161
20162 _ACEOF
20163
20164
20165         rm -Rf build && mkdir -p build
20166         echo "obj-m := conftest.o" >build/Makefile
20167         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169   (eval $ac_try) 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178
20179                 echo "$as_me:$LINENO: result: yes" >&5
20180 echo "${ECHO_T}yes" >&6
20181
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_FILES_FDTABLE 1
20184 _ACEOF
20185
20186
20187 else
20188   echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191                 echo "$as_me:$LINENO: result: no" >&5
20192 echo "${ECHO_T}no" >&6
20193
20194
20195
20196 fi
20197
20198         rm -Rf build
20199
20200
20201
20202
20203         echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20204 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20205
20206
20207 cat >conftest.c <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213
20214
20215                 #include <linux/uaccess.h>
20216
20217 int
20218 main (void)
20219 {
20220
20221                 return 0;
20222
20223   ;
20224   return 0;
20225 }
20226
20227 _ACEOF
20228
20229
20230         rm -Rf build && mkdir -p build
20231         echo "obj-m := conftest.o" >build/Makefile
20232         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243
20244
20245 cat >>confdefs.h <<\_ACEOF
20246 #define HAVE_UACCESS_HEADER 1
20247 _ACEOF
20248
20249                 echo "$as_me:$LINENO: result: yes" >&5
20250 echo "${ECHO_T}yes" >&6
20251
20252
20253 else
20254   echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257                 echo "$as_me:$LINENO: result: no" >&5
20258 echo "${ECHO_T}no" >&6
20259
20260
20261
20262
20263 fi
20264
20265         rm -Rf build
20266
20267
20268
20269
20270
20271         echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20272 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20273
20274
20275 cat >conftest.c <<_ACEOF
20276 /* confdefs.h.  */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h.  */
20281
20282
20283                 #include <linux/slab.h>
20284
20285 int
20286 main (void)
20287 {
20288
20289                 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20290
20291   ;
20292   return 0;
20293 }
20294
20295 _ACEOF
20296
20297
20298         rm -Rf build && mkdir -p build
20299         echo "obj-m := conftest.o" >build/Makefile
20300         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302   (eval $ac_try) 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; }; then
20311
20312                 echo "$as_me:$LINENO: result: yes" >&5
20313 echo "${ECHO_T}yes" >&6
20314
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_KMALLOC_NODE 1
20317 _ACEOF
20318
20319
20320 else
20321   echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324                 echo "$as_me:$LINENO: result: no" >&5
20325 echo "${ECHO_T}no" >&6
20326
20327
20328
20329 fi
20330
20331         rm -Rf build
20332
20333
20334
20335
20336         echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20337 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20338         grep -q -E '[[:space:]]monotonic_clock[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20339         rc=$?
20340         if test $rc -ne 0; then
20341                 export=0
20342                 for file in ; do
20343                         grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" "$LINUX_OBJ/$file" 2>/dev/null
20344                         rc=$?
20345                         if test $rc -eq 0; then
20346                                 export=1
20347                                 break;
20348                         fi
20349                 done
20350                 if test $export -eq 0; then
20351                         echo "$as_me:$LINENO: result: no" >&5
20352 echo "${ECHO_T}no" >&6
20353
20354                 else
20355                         echo "$as_me:$LINENO: result: yes" >&5
20356 echo "${ECHO_T}yes" >&6
20357
20358 cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_MONOTONIC_CLOCK 1
20360 _ACEOF
20361
20362                 fi
20363         else
20364                 echo "$as_me:$LINENO: result: yes" >&5
20365 echo "${ECHO_T}yes" >&6
20366
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_MONOTONIC_CLOCK 1
20369 _ACEOF
20370
20371         fi
20372
20373
20374
20375         echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20376 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20377
20378
20379 cat >conftest.c <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386
20387                 #include <linux/fs.h>
20388                 #include <linux/mutex.h>
20389
20390 int
20391 main (void)
20392 {
20393
20394                 struct inode i;
20395                 mutex_init(&i.i_mutex);
20396
20397   ;
20398   return 0;
20399 }
20400
20401 _ACEOF
20402
20403
20404         rm -Rf build && mkdir -p build
20405         echo "obj-m := conftest.o" >build/Makefile
20406         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417
20418                 echo "$as_me:$LINENO: result: yes" >&5
20419 echo "${ECHO_T}yes" >&6
20420
20421 cat >>confdefs.h <<\_ACEOF
20422 #define HAVE_INODE_I_MUTEX 1
20423 _ACEOF
20424
20425
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430                 echo "$as_me:$LINENO: result: no" >&5
20431 echo "${ECHO_T}no" >&6
20432
20433
20434
20435 fi
20436
20437         rm -Rf build
20438
20439
20440
20441
20442         echo "$as_me:$LINENO: checking whether div64_64() is available" >&5
20443 echo $ECHO_N "checking whether div64_64() is available... $ECHO_C" >&6
20444
20445
20446 cat >conftest.c <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452
20453
20454                 #include <asm/div64.h>
20455                 #include <linux/types.h>
20456
20457 int
20458 main (void)
20459 {
20460
20461                 uint64_t i = div64_64(1ULL, 1ULL);
20462
20463   ;
20464   return 0;
20465 }
20466
20467 _ACEOF
20468
20469
20470         rm -Rf build && mkdir -p build
20471         echo "obj-m := conftest.o" >build/Makefile
20472         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; }; then
20483
20484                 echo "$as_me:$LINENO: result: yes" >&5
20485 echo "${ECHO_T}yes" >&6
20486
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE_DIV64_64 1
20489 _ACEOF
20490
20491
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496                 echo "$as_me:$LINENO: result: no" >&5
20497 echo "${ECHO_T}no" >&6
20498
20499
20500
20501 fi
20502
20503         rm -Rf build
20504
20505
20506
20507
20508         echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20509 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20510
20511
20512 cat >conftest.c <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518
20519
20520                 #include <linux/smp.h>
20521
20522 int
20523 main (void)
20524 {
20525
20526                 on_each_cpu(NULL, NULL, 0);
20527
20528   ;
20529   return 0;
20530 }
20531
20532 _ACEOF
20533
20534
20535         rm -Rf build && mkdir -p build
20536         echo "obj-m := conftest.o" >build/Makefile
20537         if { ac_try='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539   (eval $ac_try) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544   (eval $ac_try) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; }; then
20548
20549                 echo "$as_me:$LINENO: result: yes" >&5
20550 echo "${ECHO_T}yes" >&6
20551
20552 cat >>confdefs.h <<\_ACEOF
20553 #define HAVE_3ARGS_ON_EACH_CPU 1
20554 _ACEOF
20555
20556
20557 else
20558   echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561                 echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6
20563
20564
20565
20566 fi
20567
20568         rm -Rf build
20569
20570
20571
20572
20573         echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20574 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20575         grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20576         rc=$?
20577         if test $rc -ne 0; then
20578                 export=0
20579                 for file in ; do
20580                         grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" "$LINUX_OBJ/$file" 2>/dev/null
20581                         rc=$?
20582                         if test $rc -eq 0; then
20583                                 export=1
20584                                 break;
20585                         fi
20586                 done
20587                 if test $export -eq 0; then
20588                         echo "$as_me:$LINENO: result: no" >&5
20589 echo "${ECHO_T}no" >&6
20590
20591                 else
20592                         echo "$as_me:$LINENO: result: yes" >&5
20593 echo "${ECHO_T}yes" >&6
20594
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20597 _ACEOF
20598
20599                 fi
20600         else
20601                 echo "$as_me:$LINENO: result: yes" >&5
20602 echo "${ECHO_T}yes" >&6
20603
20604 cat >>confdefs.h <<\_ACEOF
20605 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20606 _ACEOF
20607
20608         fi
20609
20610
20611
20612         echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20613 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20614         grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20615         rc=$?
20616         if test $rc -ne 0; then
20617                 export=0
20618                 for file in ; do
20619                         grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" "$LINUX_OBJ/$file" 2>/dev/null
20620                         rc=$?
20621                         if test $rc -eq 0; then
20622                                 export=1
20623                                 break;
20624                         fi
20625                 done
20626                 if test $export -eq 0; then
20627                         echo "$as_me:$LINENO: result: no" >&5
20628 echo "${ECHO_T}no" >&6
20629
20630                 else
20631                         echo "$as_me:$LINENO: result: yes" >&5
20632 echo "${ECHO_T}yes" >&6
20633
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_GET_VMALLOC_INFO 1
20636 _ACEOF
20637
20638                 fi
20639         else
20640                 echo "$as_me:$LINENO: result: yes" >&5
20641 echo "${ECHO_T}yes" >&6
20642
20643 cat >>confdefs.h <<\_ACEOF
20644 #define HAVE_GET_VMALLOC_INFO 1
20645 _ACEOF
20646
20647         fi
20648
20649
20650
20651         echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20652 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20653         grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20654         rc=$?
20655         if test $rc -ne 0; then
20656                 export=0
20657                 for file in ; do
20658                         grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
20659                         rc=$?
20660                         if test $rc -eq 0; then
20661                                 export=1
20662                                 break;
20663                         fi
20664                 done
20665                 if test $export -eq 0; then
20666                         echo "$as_me:$LINENO: result: no" >&5
20667 echo "${ECHO_T}no" >&6
20668
20669                 else
20670                         echo "$as_me:$LINENO: result: yes" >&5
20671 echo "${ECHO_T}yes" >&6
20672
20673 cat >>confdefs.h <<\_ACEOF
20674 #define HAVE_FIRST_ONLINE_PGDAT 1
20675 _ACEOF
20676
20677                 fi
20678         else
20679                 echo "$as_me:$LINENO: result: yes" >&5
20680 echo "${ECHO_T}yes" >&6
20681
20682 cat >>confdefs.h <<\_ACEOF
20683 #define HAVE_FIRST_ONLINE_PGDAT 1
20684 _ACEOF
20685
20686         fi
20687
20688
20689
20690         echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20691 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20692         grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20693         rc=$?
20694         if test $rc -ne 0; then
20695                 export=0
20696                 for file in ; do
20697                         grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
20698                         rc=$?
20699                         if test $rc -eq 0; then
20700                                 export=1
20701                                 break;
20702                         fi
20703                 done
20704                 if test $export -eq 0; then
20705                         echo "$as_me:$LINENO: result: no" >&5
20706 echo "${ECHO_T}no" >&6
20707
20708                 else
20709                         echo "$as_me:$LINENO: result: yes" >&5
20710 echo "${ECHO_T}yes" >&6
20711
20712 cat >>confdefs.h <<\_ACEOF
20713 #define HAVE_NEXT_ONLINE_PGDAT 1
20714 _ACEOF
20715
20716                 fi
20717         else
20718                 echo "$as_me:$LINENO: result: yes" >&5
20719 echo "${ECHO_T}yes" >&6
20720
20721 cat >>confdefs.h <<\_ACEOF
20722 #define HAVE_NEXT_ONLINE_PGDAT 1
20723 _ACEOF
20724
20725         fi
20726
20727
20728
20729         echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20730 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20731         grep -q -E '[[:space:]]next_zone[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20732         rc=$?
20733         if test $rc -ne 0; then
20734                 export=0
20735                 for file in ; do
20736                         grep -q -E "EXPORT_SYMBOL.*(next_zone)" "$LINUX_OBJ/$file" 2>/dev/null
20737                         rc=$?
20738                         if test $rc -eq 0; then
20739                                 export=1
20740                                 break;
20741                         fi
20742                 done
20743                 if test $export -eq 0; then
20744                         echo "$as_me:$LINENO: result: no" >&5
20745 echo "${ECHO_T}no" >&6
20746
20747                 else
20748                         echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6
20750
20751 cat >>confdefs.h <<\_ACEOF
20752 #define HAVE_NEXT_ZONE 1
20753 _ACEOF
20754
20755                 fi
20756         else
20757                 echo "$as_me:$LINENO: result: yes" >&5
20758 echo "${ECHO_T}yes" >&6
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_NEXT_ZONE 1
20762 _ACEOF
20763
20764         fi
20765
20766
20767
20768         echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
20769 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
20770         grep -q -E '[[:space:]]get_zone_counts[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20771         rc=$?
20772         if test $rc -ne 0; then
20773                 export=0
20774                 for file in ; do
20775                         grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" "$LINUX_OBJ/$file" 2>/dev/null
20776                         rc=$?
20777                         if test $rc -eq 0; then
20778                                 export=1
20779                                 break;
20780                         fi
20781                 done
20782                 if test $export -eq 0; then
20783                         echo "$as_me:$LINENO: result: no" >&5
20784 echo "${ECHO_T}no" >&6
20785
20786                 else
20787                         echo "$as_me:$LINENO: result: yes" >&5
20788 echo "${ECHO_T}yes" >&6
20789
20790 cat >>confdefs.h <<\_ACEOF
20791 #define HAVE_GET_ZONE_COUNTS 1
20792 _ACEOF
20793
20794                 fi
20795         else
20796                 echo "$as_me:$LINENO: result: yes" >&5
20797 echo "${ECHO_T}yes" >&6
20798
20799 cat >>confdefs.h <<\_ACEOF
20800 #define HAVE_GET_ZONE_COUNTS 1
20801 _ACEOF
20802
20803         fi
20804
20805
20806
20807                                                                                           ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec"
20808
20809
20810 cat >confcache <<\_ACEOF
20811 # This file is a shell script that caches the results of configure
20812 # tests run on this system so they can be shared between configure
20813 # scripts and configure runs, see configure's option --config-cache.
20814 # It is not useful on other systems.  If it contains results you don't
20815 # want to keep, you may remove or edit it.
20816 #
20817 # config.status only pays attention to the cache file if you give it
20818 # the --recheck option to rerun configure.
20819 #
20820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20822 # following values.
20823
20824 _ACEOF
20825
20826 # The following way of writing the cache mishandles newlines in values,
20827 # but we know of no workaround that is simple, portable, and efficient.
20828 # So, don't put newlines in cache variables' values.
20829 # Ultrix sh set writes to stderr and can't be redirected directly,
20830 # and sets the high bit in the cache file unless we assign to the vars.
20831 {
20832   (set) 2>&1 |
20833     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20834     *ac_space=\ *)
20835       # `set' does not quote correctly, so add quotes (double-quote
20836       # substitution turns \\\\ into \\, and sed turns \\ into \).
20837       sed -n \
20838         "s/'/'\\\\''/g;
20839           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20840       ;;
20841     *)
20842       # `set' quotes correctly as required by POSIX, so do not add quotes.
20843       sed -n \
20844         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20845       ;;
20846     esac;
20847 } |
20848   sed '
20849      t clear
20850      : clear
20851      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20852      t end
20853      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20854      : end' >>confcache
20855 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20856   if test -w $cache_file; then
20857     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20858     cat confcache >$cache_file
20859   else
20860     echo "not updating unwritable cache $cache_file"
20861   fi
20862 fi
20863 rm -f confcache
20864
20865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20866 # Let make expand exec_prefix.
20867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20868
20869 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20870 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20871 # trailing colons and then remove the whole line if VPATH becomes empty
20872 # (actually we leave an empty line to preserve line numbers).
20873 if test "x$srcdir" = x.; then
20874   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20875 s/:*\$(srcdir):*/:/;
20876 s/:*\${srcdir}:*/:/;
20877 s/:*@srcdir@:*/:/;
20878 s/^\([^=]*=[     ]*\):*/\1/;
20879 s/:*$//;
20880 s/^[^=]*=[       ]*$//;
20881 }'
20882 fi
20883
20884 DEFS=-DHAVE_CONFIG_H
20885
20886 ac_libobjs=
20887 ac_ltlibobjs=
20888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20889   # 1. Remove the extension, and $U if already installed.
20890   ac_i=`echo "$ac_i" |
20891          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20892   # 2. Add them.
20893   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20894   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20895 done
20896 LIBOBJS=$ac_libobjs
20897
20898 LTLIBOBJS=$ac_ltlibobjs
20899
20900
20901 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20902   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20903 Usually this means the macro was only invoked conditionally." >&5
20904 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20905 Usually this means the macro was only invoked conditionally." >&2;}
20906    { (exit 1); exit 1; }; }
20907 fi
20908 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20909   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20910 Usually this means the macro was only invoked conditionally." >&5
20911 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20912 Usually this means the macro was only invoked conditionally." >&2;}
20913    { (exit 1); exit 1; }; }
20914 fi
20915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20916   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20917 Usually this means the macro was only invoked conditionally." >&5
20918 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20919 Usually this means the macro was only invoked conditionally." >&2;}
20920    { (exit 1); exit 1; }; }
20921 fi
20922 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20923   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20924 Usually this means the macro was only invoked conditionally." >&5
20925 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20926 Usually this means the macro was only invoked conditionally." >&2;}
20927    { (exit 1); exit 1; }; }
20928 fi
20929
20930 : ${CONFIG_STATUS=./config.status}
20931 ac_clean_files_save=$ac_clean_files
20932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20933 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20934 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20935 cat >$CONFIG_STATUS <<_ACEOF
20936 #! $SHELL
20937 # Generated by $as_me.
20938 # Run this file to recreate the current configuration.
20939 # Compiler output produced by configure, useful for debugging
20940 # configure, is in config.log if it exists.
20941
20942 debug=false
20943 ac_cs_recheck=false
20944 ac_cs_silent=false
20945 SHELL=\${CONFIG_SHELL-$SHELL}
20946 _ACEOF
20947
20948 cat >>$CONFIG_STATUS <<\_ACEOF
20949 ## --------------------- ##
20950 ## M4sh Initialization.  ##
20951 ## --------------------- ##
20952
20953 # Be Bourne compatible
20954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20955   emulate sh
20956   NULLCMD=:
20957   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20958   # is contrary to our usage.  Disable this feature.
20959   alias -g '${1+"$@"}'='"$@"'
20960 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20961   set -o posix
20962 fi
20963 DUALCASE=1; export DUALCASE # for MKS sh
20964
20965 # Support unset when possible.
20966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20967   as_unset=unset
20968 else
20969   as_unset=false
20970 fi
20971
20972
20973 # Work around bugs in pre-3.0 UWIN ksh.
20974 $as_unset ENV MAIL MAILPATH
20975 PS1='$ '
20976 PS2='> '
20977 PS4='+ '
20978
20979 # NLS nuisances.
20980 for as_var in \
20981   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20982   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20983   LC_TELEPHONE LC_TIME
20984 do
20985   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20986     eval $as_var=C; export $as_var
20987   else
20988     $as_unset $as_var
20989   fi
20990 done
20991
20992 # Required to use basename.
20993 if expr a : '\(a\)' >/dev/null 2>&1; then
20994   as_expr=expr
20995 else
20996   as_expr=false
20997 fi
20998
20999 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21000   as_basename=basename
21001 else
21002   as_basename=false
21003 fi
21004
21005
21006 # Name of the executable.
21007 as_me=`$as_basename "$0" ||
21008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21009          X"$0" : 'X\(//\)$' \| \
21010          X"$0" : 'X\(/\)$' \| \
21011          .     : '\(.\)' 2>/dev/null ||
21012 echo X/"$0" |
21013     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21014           /^X\/\(\/\/\)$/{ s//\1/; q; }
21015           /^X\/\(\/\).*/{ s//\1/; q; }
21016           s/.*/./; q'`
21017
21018
21019 # PATH needs CR, and LINENO needs CR and PATH.
21020 # Avoid depending upon Character Ranges.
21021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21024 as_cr_digits='0123456789'
21025 as_cr_alnum=$as_cr_Letters$as_cr_digits
21026
21027 # The user is always right.
21028 if test "${PATH_SEPARATOR+set}" != set; then
21029   echo "#! /bin/sh" >conf$$.sh
21030   echo  "exit 0"   >>conf$$.sh
21031   chmod +x conf$$.sh
21032   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21033     PATH_SEPARATOR=';'
21034   else
21035     PATH_SEPARATOR=:
21036   fi
21037   rm -f conf$$.sh
21038 fi
21039
21040
21041   as_lineno_1=$LINENO
21042   as_lineno_2=$LINENO
21043   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21044   test "x$as_lineno_1" != "x$as_lineno_2" &&
21045   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21046   # Find who we are.  Look in the path if we contain no path at all
21047   # relative or not.
21048   case $0 in
21049     *[\\/]* ) as_myself=$0 ;;
21050     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21051 for as_dir in $PATH
21052 do
21053   IFS=$as_save_IFS
21054   test -z "$as_dir" && as_dir=.
21055   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21056 done
21057
21058        ;;
21059   esac
21060   # We did not find ourselves, most probably we were run as `sh COMMAND'
21061   # in which case we are not to be found in the path.
21062   if test "x$as_myself" = x; then
21063     as_myself=$0
21064   fi
21065   if test ! -f "$as_myself"; then
21066     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21067 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21068    { (exit 1); exit 1; }; }
21069   fi
21070   case $CONFIG_SHELL in
21071   '')
21072     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21073 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21074 do
21075   IFS=$as_save_IFS
21076   test -z "$as_dir" && as_dir=.
21077   for as_base in sh bash ksh sh5; do
21078          case $as_dir in
21079          /*)
21080            if ("$as_dir/$as_base" -c '
21081   as_lineno_1=$LINENO
21082   as_lineno_2=$LINENO
21083   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21084   test "x$as_lineno_1" != "x$as_lineno_2" &&
21085   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21086              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21087              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21088              CONFIG_SHELL=$as_dir/$as_base
21089              export CONFIG_SHELL
21090              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21091            fi;;
21092          esac
21093        done
21094 done
21095 ;;
21096   esac
21097
21098   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21099   # uniformly replaced by the line number.  The first 'sed' inserts a
21100   # line-number line before each line; the second 'sed' does the real
21101   # work.  The second script uses 'N' to pair each line-number line
21102   # with the numbered line, and appends trailing '-' during
21103   # substitution so that $LINENO is not a special case at line end.
21104   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21105   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21106   sed '=' <$as_myself |
21107     sed '
21108       N
21109       s,$,-,
21110       : loop
21111       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21112       t loop
21113       s,-$,,
21114       s,^['$as_cr_digits']*\n,,
21115     ' >$as_me.lineno &&
21116   chmod +x $as_me.lineno ||
21117     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21118 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21119    { (exit 1); exit 1; }; }
21120
21121   # Don't try to exec as it changes $[0], causing all sort of problems
21122   # (the dirname of $[0] is not the place where we might find the
21123   # original and so on.  Autoconf is especially sensible to this).
21124   . ./$as_me.lineno
21125   # Exit status is that of the last command.
21126   exit
21127 }
21128
21129
21130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21131   *c*,-n*) ECHO_N= ECHO_C='
21132 ' ECHO_T='      ' ;;
21133   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21134   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21135 esac
21136
21137 if expr a : '\(a\)' >/dev/null 2>&1; then
21138   as_expr=expr
21139 else
21140   as_expr=false
21141 fi
21142
21143 rm -f conf$$ conf$$.exe conf$$.file
21144 echo >conf$$.file
21145 if ln -s conf$$.file conf$$ 2>/dev/null; then
21146   # We could just check for DJGPP; but this test a) works b) is more generic
21147   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21148   if test -f conf$$.exe; then
21149     # Don't use ln at all; we don't have any links
21150     as_ln_s='cp -p'
21151   else
21152     as_ln_s='ln -s'
21153   fi
21154 elif ln conf$$.file conf$$ 2>/dev/null; then
21155   as_ln_s=ln
21156 else
21157   as_ln_s='cp -p'
21158 fi
21159 rm -f conf$$ conf$$.exe conf$$.file
21160
21161 if mkdir -p . 2>/dev/null; then
21162   as_mkdir_p=:
21163 else
21164   test -d ./-p && rmdir ./-p
21165   as_mkdir_p=false
21166 fi
21167
21168 as_executable_p="test -f"
21169
21170 # Sed expression to map a string onto a valid CPP name.
21171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21172
21173 # Sed expression to map a string onto a valid variable name.
21174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21175
21176
21177 # IFS
21178 # We need space, tab and new line, in precisely that order.
21179 as_nl='
21180 '
21181 IFS="   $as_nl"
21182
21183 # CDPATH.
21184 $as_unset CDPATH
21185
21186 exec 6>&1
21187
21188 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21189 # report actual input values of CONFIG_FILES etc. instead of their
21190 # values after options handling.  Logging --version etc. is OK.
21191 exec 5>>config.log
21192 {
21193   echo
21194   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21195 ## Running $as_me. ##
21196 _ASBOX
21197 } >&5
21198 cat >&5 <<_CSEOF
21199
21200 This file was extended by $as_me, which was
21201 generated by GNU Autoconf 2.59.  Invocation command line was
21202
21203   CONFIG_FILES    = $CONFIG_FILES
21204   CONFIG_HEADERS  = $CONFIG_HEADERS
21205   CONFIG_LINKS    = $CONFIG_LINKS
21206   CONFIG_COMMANDS = $CONFIG_COMMANDS
21207   $ $0 $@
21208
21209 _CSEOF
21210 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21211 echo >&5
21212 _ACEOF
21213
21214 # Files that config.status was made for.
21215 if test -n "$ac_config_files"; then
21216   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21217 fi
21218
21219 if test -n "$ac_config_headers"; then
21220   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21221 fi
21222
21223 if test -n "$ac_config_links"; then
21224   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21225 fi
21226
21227 if test -n "$ac_config_commands"; then
21228   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21229 fi
21230
21231 cat >>$CONFIG_STATUS <<\_ACEOF
21232
21233 ac_cs_usage="\
21234 \`$as_me' instantiates files from templates according to the
21235 current configuration.
21236
21237 Usage: $0 [OPTIONS] [FILE]...
21238
21239   -h, --help       print this help, then exit
21240   -V, --version    print version number, then exit
21241   -q, --quiet      do not print progress messages
21242   -d, --debug      don't remove temporary files
21243       --recheck    update $as_me by reconfiguring in the same conditions
21244   --file=FILE[:TEMPLATE]
21245                    instantiate the configuration file FILE
21246   --header=FILE[:TEMPLATE]
21247                    instantiate the configuration header FILE
21248
21249 Configuration files:
21250 $config_files
21251
21252 Configuration headers:
21253 $config_headers
21254
21255 Configuration commands:
21256 $config_commands
21257
21258 Report bugs to <bug-autoconf@gnu.org>."
21259 _ACEOF
21260
21261 cat >>$CONFIG_STATUS <<_ACEOF
21262 ac_cs_version="\\
21263 config.status
21264 configured by $0, generated by GNU Autoconf 2.59,
21265   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21266
21267 Copyright (C) 2003 Free Software Foundation, Inc.
21268 This config.status script is free software; the Free Software Foundation
21269 gives unlimited permission to copy, distribute and modify it."
21270 srcdir=$srcdir
21271 INSTALL="$INSTALL"
21272 _ACEOF
21273
21274 cat >>$CONFIG_STATUS <<\_ACEOF
21275 # If no file are specified by the user, then we need to provide default
21276 # value.  By we need to know if files were specified by the user.
21277 ac_need_defaults=:
21278 while test $# != 0
21279 do
21280   case $1 in
21281   --*=*)
21282     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21283     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21284     ac_shift=:
21285     ;;
21286   -*)
21287     ac_option=$1
21288     ac_optarg=$2
21289     ac_shift=shift
21290     ;;
21291   *) # This is not an option, so the user has probably given explicit
21292      # arguments.
21293      ac_option=$1
21294      ac_need_defaults=false;;
21295   esac
21296
21297   case $ac_option in
21298   # Handling of the options.
21299 _ACEOF
21300 cat >>$CONFIG_STATUS <<\_ACEOF
21301   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21302     ac_cs_recheck=: ;;
21303   --version | --vers* | -V )
21304     echo "$ac_cs_version"; exit 0 ;;
21305   --he | --h)
21306     # Conflict between --help and --header
21307     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21308 Try \`$0 --help' for more information." >&5
21309 echo "$as_me: error: ambiguous option: $1
21310 Try \`$0 --help' for more information." >&2;}
21311    { (exit 1); exit 1; }; };;
21312   --help | --hel | -h )
21313     echo "$ac_cs_usage"; exit 0 ;;
21314   --debug | --d* | -d )
21315     debug=: ;;
21316   --file | --fil | --fi | --f )
21317     $ac_shift
21318     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21319     ac_need_defaults=false;;
21320   --header | --heade | --head | --hea )
21321     $ac_shift
21322     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21323     ac_need_defaults=false;;
21324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21326     ac_cs_silent=: ;;
21327
21328   # This is an error.
21329   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21330 Try \`$0 --help' for more information." >&5
21331 echo "$as_me: error: unrecognized option: $1
21332 Try \`$0 --help' for more information." >&2;}
21333    { (exit 1); exit 1; }; } ;;
21334
21335   *) ac_config_targets="$ac_config_targets $1" ;;
21336
21337   esac
21338   shift
21339 done
21340
21341 ac_configure_extra_args=
21342
21343 if $ac_cs_silent; then
21344   exec 6>/dev/null
21345   ac_configure_extra_args="$ac_configure_extra_args --silent"
21346 fi
21347
21348 _ACEOF
21349 cat >>$CONFIG_STATUS <<_ACEOF
21350 if \$ac_cs_recheck; then
21351   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21352   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21353 fi
21354
21355 _ACEOF
21356
21357 cat >>$CONFIG_STATUS <<_ACEOF
21358 #
21359 # INIT-COMMANDS section.
21360 #
21361
21362 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21363
21364 _ACEOF
21365
21366
21367
21368 cat >>$CONFIG_STATUS <<\_ACEOF
21369 for ac_config_target in $ac_config_targets
21370 do
21371   case "$ac_config_target" in
21372   # Handling of arguments.
21373   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21374   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21375   "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21376   "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21377   "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21378   "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21379   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21380   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21381   "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21382   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21383   "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21384   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21385 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21386    { (exit 1); exit 1; }; };;
21387   esac
21388 done
21389
21390 # If the user did not use the arguments to specify the items to instantiate,
21391 # then the envvar interface is used.  Set only those that are not.
21392 # We use the long form for the default assignment because of an extremely
21393 # bizarre bug on SunOS 4.1.3.
21394 if $ac_need_defaults; then
21395   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21396   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21397   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21398 fi
21399
21400 # Have a temporary directory for convenience.  Make it in the build tree
21401 # simply because there is no reason to put it here, and in addition,
21402 # creating and moving files from /tmp can sometimes cause problems.
21403 # Create a temporary directory, and hook for its removal unless debugging.
21404 $debug ||
21405 {
21406   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21407   trap '{ (exit 1); exit 1; }' 1 2 13 15
21408 }
21409
21410 # Create a (secure) tmp directory for tmp files.
21411
21412 {
21413   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21414   test -n "$tmp" && test -d "$tmp"
21415 }  ||
21416 {
21417   tmp=./confstat$$-$RANDOM
21418   (umask 077 && mkdir $tmp)
21419 } ||
21420 {
21421    echo "$me: cannot create a temporary directory in ." >&2
21422    { (exit 1); exit 1; }
21423 }
21424
21425 _ACEOF
21426
21427 cat >>$CONFIG_STATUS <<_ACEOF
21428
21429 #
21430 # CONFIG_FILES section.
21431 #
21432
21433 # No need to generate the scripts if there are no CONFIG_FILES.
21434 # This happens for instance when ./config.status config.h
21435 if test -n "\$CONFIG_FILES"; then
21436   # Protect against being on the right side of a sed subst in config.status.
21437   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21438    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21439 s,@SHELL@,$SHELL,;t t
21440 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21441 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21442 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21443 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21444 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21445 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21446 s,@exec_prefix@,$exec_prefix,;t t
21447 s,@prefix@,$prefix,;t t
21448 s,@program_transform_name@,$program_transform_name,;t t
21449 s,@bindir@,$bindir,;t t
21450 s,@sbindir@,$sbindir,;t t
21451 s,@libexecdir@,$libexecdir,;t t
21452 s,@datadir@,$datadir,;t t
21453 s,@sysconfdir@,$sysconfdir,;t t
21454 s,@sharedstatedir@,$sharedstatedir,;t t
21455 s,@localstatedir@,$localstatedir,;t t
21456 s,@libdir@,$libdir,;t t
21457 s,@includedir@,$includedir,;t t
21458 s,@oldincludedir@,$oldincludedir,;t t
21459 s,@infodir@,$infodir,;t t
21460 s,@mandir@,$mandir,;t t
21461 s,@build_alias@,$build_alias,;t t
21462 s,@host_alias@,$host_alias,;t t
21463 s,@target_alias@,$target_alias,;t t
21464 s,@DEFS@,$DEFS,;t t
21465 s,@ECHO_C@,$ECHO_C,;t t
21466 s,@ECHO_N@,$ECHO_N,;t t
21467 s,@ECHO_T@,$ECHO_T,;t t
21468 s,@LIBS@,$LIBS,;t t
21469 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
21470 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
21471 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
21472 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
21473 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
21474 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
21475 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
21476 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
21477 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
21478 s,@build@,$build,;t t
21479 s,@build_cpu@,$build_cpu,;t t
21480 s,@build_vendor@,$build_vendor,;t t
21481 s,@build_os@,$build_os,;t t
21482 s,@host@,$host,;t t
21483 s,@host_cpu@,$host_cpu,;t t
21484 s,@host_vendor@,$host_vendor,;t t
21485 s,@host_os@,$host_os,;t t
21486 s,@target@,$target,;t t
21487 s,@target_cpu@,$target_cpu,;t t
21488 s,@target_vendor@,$target_vendor,;t t
21489 s,@target_os@,$target_os,;t t
21490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21493 s,@CYGPATH_W@,$CYGPATH_W,;t t
21494 s,@PACKAGE@,$PACKAGE,;t t
21495 s,@VERSION@,$VERSION,;t t
21496 s,@ACLOCAL@,$ACLOCAL,;t t
21497 s,@AUTOCONF@,$AUTOCONF,;t t
21498 s,@AUTOMAKE@,$AUTOMAKE,;t t
21499 s,@AUTOHEADER@,$AUTOHEADER,;t t
21500 s,@MAKEINFO@,$MAKEINFO,;t t
21501 s,@install_sh@,$install_sh,;t t
21502 s,@STRIP@,$STRIP,;t t
21503 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21504 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21505 s,@mkdir_p@,$mkdir_p,;t t
21506 s,@AWK@,$AWK,;t t
21507 s,@SET_MAKE@,$SET_MAKE,;t t
21508 s,@am__leading_dot@,$am__leading_dot,;t t
21509 s,@AMTAR@,$AMTAR,;t t
21510 s,@am__tar@,$am__tar,;t t
21511 s,@am__untar@,$am__untar,;t t
21512 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21513 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21514 s,@MAINT@,$MAINT,;t t
21515 s,@CC@,$CC,;t t
21516 s,@CFLAGS@,$CFLAGS,;t t
21517 s,@LDFLAGS@,$LDFLAGS,;t t
21518 s,@CPPFLAGS@,$CPPFLAGS,;t t
21519 s,@ac_ct_CC@,$ac_ct_CC,;t t
21520 s,@EXEEXT@,$EXEEXT,;t t
21521 s,@OBJEXT@,$OBJEXT,;t t
21522 s,@DEPDIR@,$DEPDIR,;t t
21523 s,@am__include@,$am__include,;t t
21524 s,@am__quote@,$am__quote,;t t
21525 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21526 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21527 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21528 s,@CCDEPMODE@,$CCDEPMODE,;t t
21529 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21530 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21531 s,@SED@,$SED,;t t
21532 s,@EGREP@,$EGREP,;t t
21533 s,@LN_S@,$LN_S,;t t
21534 s,@ECHO@,$ECHO,;t t
21535 s,@AR@,$AR,;t t
21536 s,@ac_ct_AR@,$ac_ct_AR,;t t
21537 s,@RANLIB@,$RANLIB,;t t
21538 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21539 s,@CPP@,$CPP,;t t
21540 s,@CXX@,$CXX,;t t
21541 s,@CXXFLAGS@,$CXXFLAGS,;t t
21542 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21543 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21544 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21545 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21546 s,@CXXCPP@,$CXXCPP,;t t
21547 s,@F77@,$F77,;t t
21548 s,@FFLAGS@,$FFLAGS,;t t
21549 s,@ac_ct_F77@,$ac_ct_F77,;t t
21550 s,@LIBTOOL@,$LIBTOOL,;t t
21551 s,@LINUX@,$LINUX,;t t
21552 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
21553 s,@LINUX_VERSION@,$LINUX_VERSION,;t t
21554 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
21555 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
21556 s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
21557 s,@LIBOBJS@,$LIBOBJS,;t t
21558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21559 CEOF
21560
21561 _ACEOF
21562
21563   cat >>$CONFIG_STATUS <<\_ACEOF
21564   # Split the substitutions into bite-sized pieces for seds with
21565   # small command number limits, like on Digital OSF/1 and HP-UX.
21566   ac_max_sed_lines=48
21567   ac_sed_frag=1 # Number of current file.
21568   ac_beg=1 # First line for current file.
21569   ac_end=$ac_max_sed_lines # Line after last line for current file.
21570   ac_more_lines=:
21571   ac_sed_cmds=
21572   while $ac_more_lines; do
21573     if test $ac_beg -gt 1; then
21574       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21575     else
21576       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21577     fi
21578     if test ! -s $tmp/subs.frag; then
21579       ac_more_lines=false
21580     else
21581       # The purpose of the label and of the branching condition is to
21582       # speed up the sed processing (if there are no `@' at all, there
21583       # is no need to browse any of the substitutions).
21584       # These are the two extra sed commands mentioned above.
21585       (echo ':t
21586   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21587       if test -z "$ac_sed_cmds"; then
21588         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21589       else
21590         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21591       fi
21592       ac_sed_frag=`expr $ac_sed_frag + 1`
21593       ac_beg=$ac_end
21594       ac_end=`expr $ac_end + $ac_max_sed_lines`
21595     fi
21596   done
21597   if test -z "$ac_sed_cmds"; then
21598     ac_sed_cmds=cat
21599   fi
21600 fi # test -n "$CONFIG_FILES"
21601
21602 _ACEOF
21603 cat >>$CONFIG_STATUS <<\_ACEOF
21604 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21605   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21606   case $ac_file in
21607   - | *:- | *:-:* ) # input from stdin
21608         cat >$tmp/stdin
21609         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21611   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21613   * )   ac_file_in=$ac_file.in ;;
21614   esac
21615
21616   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21617   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21619          X"$ac_file" : 'X\(//\)[^/]' \| \
21620          X"$ac_file" : 'X\(//\)$' \| \
21621          X"$ac_file" : 'X\(/\)' \| \
21622          .     : '\(.\)' 2>/dev/null ||
21623 echo X"$ac_file" |
21624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21626           /^X\(\/\/\)$/{ s//\1/; q; }
21627           /^X\(\/\).*/{ s//\1/; q; }
21628           s/.*/./; q'`
21629   { if $as_mkdir_p; then
21630     mkdir -p "$ac_dir"
21631   else
21632     as_dir="$ac_dir"
21633     as_dirs=
21634     while test ! -d "$as_dir"; do
21635       as_dirs="$as_dir $as_dirs"
21636       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21638          X"$as_dir" : 'X\(//\)[^/]' \| \
21639          X"$as_dir" : 'X\(//\)$' \| \
21640          X"$as_dir" : 'X\(/\)' \| \
21641          .     : '\(.\)' 2>/dev/null ||
21642 echo X"$as_dir" |
21643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21644           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21645           /^X\(\/\/\)$/{ s//\1/; q; }
21646           /^X\(\/\).*/{ s//\1/; q; }
21647           s/.*/./; q'`
21648     done
21649     test ! -n "$as_dirs" || mkdir $as_dirs
21650   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21652    { (exit 1); exit 1; }; }; }
21653
21654   ac_builddir=.
21655
21656 if test "$ac_dir" != .; then
21657   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21658   # A "../" for each directory in $ac_dir_suffix.
21659   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21660 else
21661   ac_dir_suffix= ac_top_builddir=
21662 fi
21663
21664 case $srcdir in
21665   .)  # No --srcdir option.  We are building in place.
21666     ac_srcdir=.
21667     if test -z "$ac_top_builddir"; then
21668        ac_top_srcdir=.
21669     else
21670        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21671     fi ;;
21672   [\\/]* | ?:[\\/]* )  # Absolute path.
21673     ac_srcdir=$srcdir$ac_dir_suffix;
21674     ac_top_srcdir=$srcdir ;;
21675   *) # Relative path.
21676     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21677     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21678 esac
21679
21680 # Do not use `cd foo && pwd` to compute absolute paths, because
21681 # the directories may not exist.
21682 case `pwd` in
21683 .) ac_abs_builddir="$ac_dir";;
21684 *)
21685   case "$ac_dir" in
21686   .) ac_abs_builddir=`pwd`;;
21687   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21688   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21689   esac;;
21690 esac
21691 case $ac_abs_builddir in
21692 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21693 *)
21694   case ${ac_top_builddir}. in
21695   .) ac_abs_top_builddir=$ac_abs_builddir;;
21696   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21697   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21698   esac;;
21699 esac
21700 case $ac_abs_builddir in
21701 .) ac_abs_srcdir=$ac_srcdir;;
21702 *)
21703   case $ac_srcdir in
21704   .) ac_abs_srcdir=$ac_abs_builddir;;
21705   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21706   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21707   esac;;
21708 esac
21709 case $ac_abs_builddir in
21710 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21711 *)
21712   case $ac_top_srcdir in
21713   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21714   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21715   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21716   esac;;
21717 esac
21718
21719
21720   case $INSTALL in
21721   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21722   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21723   esac
21724
21725   if test x"$ac_file" != x-; then
21726     { echo "$as_me:$LINENO: creating $ac_file" >&5
21727 echo "$as_me: creating $ac_file" >&6;}
21728     rm -f "$ac_file"
21729   fi
21730   # Let's still pretend it is `configure' which instantiates (i.e., don't
21731   # use $as_me), people would be surprised to read:
21732   #    /* config.h.  Generated by config.status.  */
21733   if test x"$ac_file" = x-; then
21734     configure_input=
21735   else
21736     configure_input="$ac_file.  "
21737   fi
21738   configure_input=$configure_input"Generated from `echo $ac_file_in |
21739                                      sed 's,.*/,,'` by configure."
21740
21741   # First look for the input files in the build tree, otherwise in the
21742   # src tree.
21743   ac_file_inputs=`IFS=:
21744     for f in $ac_file_in; do
21745       case $f in
21746       -) echo $tmp/stdin ;;
21747       [\\/$]*)
21748          # Absolute (can't be DOS-style, as IFS=:)
21749          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21750 echo "$as_me: error: cannot find input file: $f" >&2;}
21751    { (exit 1); exit 1; }; }
21752          echo "$f";;
21753       *) # Relative
21754          if test -f "$f"; then
21755            # Build tree
21756            echo "$f"
21757          elif test -f "$srcdir/$f"; then
21758            # Source tree
21759            echo "$srcdir/$f"
21760          else
21761            # /dev/null tree
21762            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21763 echo "$as_me: error: cannot find input file: $f" >&2;}
21764    { (exit 1); exit 1; }; }
21765          fi;;
21766       esac
21767     done` || { (exit 1); exit 1; }
21768 _ACEOF
21769 cat >>$CONFIG_STATUS <<_ACEOF
21770   sed "$ac_vpsub
21771 $extrasub
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<\_ACEOF
21774 :t
21775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21776 s,@configure_input@,$configure_input,;t t
21777 s,@srcdir@,$ac_srcdir,;t t
21778 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21779 s,@top_srcdir@,$ac_top_srcdir,;t t
21780 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21781 s,@builddir@,$ac_builddir,;t t
21782 s,@abs_builddir@,$ac_abs_builddir,;t t
21783 s,@top_builddir@,$ac_top_builddir,;t t
21784 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21785 s,@INSTALL@,$ac_INSTALL,;t t
21786 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21787   rm -f $tmp/stdin
21788   if test x"$ac_file" != x-; then
21789     mv $tmp/out $ac_file
21790   else
21791     cat $tmp/out
21792     rm -f $tmp/out
21793   fi
21794
21795 done
21796 _ACEOF
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798
21799 #
21800 # CONFIG_HEADER section.
21801 #
21802
21803 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21804 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21805 #
21806 # ac_d sets the value in "#define NAME VALUE" lines.
21807 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21808 ac_dB='[         ].*$,\1#\2'
21809 ac_dC=' '
21810 ac_dD=',;t'
21811 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21812 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21813 ac_uB='$,\1#\2define\3'
21814 ac_uC=' '
21815 ac_uD=',;t'
21816
21817 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21818   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21819   case $ac_file in
21820   - | *:- | *:-:* ) # input from stdin
21821         cat >$tmp/stdin
21822         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21823         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21824   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21825         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21826   * )   ac_file_in=$ac_file.in ;;
21827   esac
21828
21829   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21830 echo "$as_me: creating $ac_file" >&6;}
21831
21832   # First look for the input files in the build tree, otherwise in the
21833   # src tree.
21834   ac_file_inputs=`IFS=:
21835     for f in $ac_file_in; do
21836       case $f in
21837       -) echo $tmp/stdin ;;
21838       [\\/$]*)
21839          # Absolute (can't be DOS-style, as IFS=:)
21840          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21841 echo "$as_me: error: cannot find input file: $f" >&2;}
21842    { (exit 1); exit 1; }; }
21843          # Do quote $f, to prevent DOS paths from being IFS'd.
21844          echo "$f";;
21845       *) # Relative
21846          if test -f "$f"; then
21847            # Build tree
21848            echo "$f"
21849          elif test -f "$srcdir/$f"; then
21850            # Source tree
21851            echo "$srcdir/$f"
21852          else
21853            # /dev/null tree
21854            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21855 echo "$as_me: error: cannot find input file: $f" >&2;}
21856    { (exit 1); exit 1; }; }
21857          fi;;
21858       esac
21859     done` || { (exit 1); exit 1; }
21860   # Remove the trailing spaces.
21861   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21862
21863 _ACEOF
21864
21865 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21866 # `conftest.undefs', that substitutes the proper values into
21867 # config.h.in to produce config.h.  The first handles `#define'
21868 # templates, and the second `#undef' templates.
21869 # And first: Protect against being on the right side of a sed subst in
21870 # config.status.  Protect against being in an unquoted here document
21871 # in config.status.
21872 rm -f conftest.defines conftest.undefs
21873 # Using a here document instead of a string reduces the quoting nightmare.
21874 # Putting comments in sed scripts is not portable.
21875 #
21876 # `end' is used to avoid that the second main sed command (meant for
21877 # 0-ary CPP macros) applies to n-ary macro definitions.
21878 # See the Autoconf documentation for `clear'.
21879 cat >confdef2sed.sed <<\_ACEOF
21880 s/[\\&,]/\\&/g
21881 s,[\\$`],\\&,g
21882 t clear
21883 : clear
21884 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21885 t end
21886 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21887 : end
21888 _ACEOF
21889 # If some macros were called several times there might be several times
21890 # the same #defines, which is useless.  Nevertheless, we may not want to
21891 # sort them, since we want the *last* AC-DEFINE to be honored.
21892 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21893 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21894 rm -f confdef2sed.sed
21895
21896 # This sed command replaces #undef with comments.  This is necessary, for
21897 # example, in the case of _POSIX_SOURCE, which is predefined and required
21898 # on some systems where configure will not decide to define it.
21899 cat >>conftest.undefs <<\_ACEOF
21900 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21901 _ACEOF
21902
21903 # Break up conftest.defines because some shells have a limit on the size
21904 # of here documents, and old seds have small limits too (100 cmds).
21905 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21906 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21907 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21908 echo '  :' >>$CONFIG_STATUS
21909 rm -f conftest.tail
21910 while grep . conftest.defines >/dev/null
21911 do
21912   # Write a limited-size here document to $tmp/defines.sed.
21913   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21914   # Speed up: don't consider the non `#define' lines.
21915   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21916   # Work around the forget-to-reset-the-flag bug.
21917   echo 't clr' >>$CONFIG_STATUS
21918   echo ': clr' >>$CONFIG_STATUS
21919   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21920   echo 'CEOF
21921   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21922   rm -f $tmp/in
21923   mv $tmp/out $tmp/in
21924 ' >>$CONFIG_STATUS
21925   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21926   rm -f conftest.defines
21927   mv conftest.tail conftest.defines
21928 done
21929 rm -f conftest.defines
21930 echo '  fi # grep' >>$CONFIG_STATUS
21931 echo >>$CONFIG_STATUS
21932
21933 # Break up conftest.undefs because some shells have a limit on the size
21934 # of here documents, and old seds have small limits too (100 cmds).
21935 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21936 rm -f conftest.tail
21937 while grep . conftest.undefs >/dev/null
21938 do
21939   # Write a limited-size here document to $tmp/undefs.sed.
21940   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21941   # Speed up: don't consider the non `#undef'
21942   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21943   # Work around the forget-to-reset-the-flag bug.
21944   echo 't clr' >>$CONFIG_STATUS
21945   echo ': clr' >>$CONFIG_STATUS
21946   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21947   echo 'CEOF
21948   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21949   rm -f $tmp/in
21950   mv $tmp/out $tmp/in
21951 ' >>$CONFIG_STATUS
21952   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21953   rm -f conftest.undefs
21954   mv conftest.tail conftest.undefs
21955 done
21956 rm -f conftest.undefs
21957
21958 cat >>$CONFIG_STATUS <<\_ACEOF
21959   # Let's still pretend it is `configure' which instantiates (i.e., don't
21960   # use $as_me), people would be surprised to read:
21961   #    /* config.h.  Generated by config.status.  */
21962   if test x"$ac_file" = x-; then
21963     echo "/* Generated by configure.  */" >$tmp/config.h
21964   else
21965     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21966   fi
21967   cat $tmp/in >>$tmp/config.h
21968   rm -f $tmp/in
21969   if test x"$ac_file" != x-; then
21970     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21971       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21972 echo "$as_me: $ac_file is unchanged" >&6;}
21973     else
21974       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21976          X"$ac_file" : 'X\(//\)[^/]' \| \
21977          X"$ac_file" : 'X\(//\)$' \| \
21978          X"$ac_file" : 'X\(/\)' \| \
21979          .     : '\(.\)' 2>/dev/null ||
21980 echo X"$ac_file" |
21981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21983           /^X\(\/\/\)$/{ s//\1/; q; }
21984           /^X\(\/\).*/{ s//\1/; q; }
21985           s/.*/./; q'`
21986       { if $as_mkdir_p; then
21987     mkdir -p "$ac_dir"
21988   else
21989     as_dir="$ac_dir"
21990     as_dirs=
21991     while test ! -d "$as_dir"; do
21992       as_dirs="$as_dir $as_dirs"
21993       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21995          X"$as_dir" : 'X\(//\)[^/]' \| \
21996          X"$as_dir" : 'X\(//\)$' \| \
21997          X"$as_dir" : 'X\(/\)' \| \
21998          .     : '\(.\)' 2>/dev/null ||
21999 echo X"$as_dir" |
22000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22001           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22002           /^X\(\/\/\)$/{ s//\1/; q; }
22003           /^X\(\/\).*/{ s//\1/; q; }
22004           s/.*/./; q'`
22005     done
22006     test ! -n "$as_dirs" || mkdir $as_dirs
22007   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22008 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22009    { (exit 1); exit 1; }; }; }
22010
22011       rm -f $ac_file
22012       mv $tmp/config.h $ac_file
22013     fi
22014   else
22015     cat $tmp/config.h
22016     rm -f $tmp/config.h
22017   fi
22018 # Compute $ac_file's index in $config_headers.
22019 _am_stamp_count=1
22020 for _am_header in $config_headers :; do
22021   case $_am_header in
22022     $ac_file | $ac_file:* )
22023       break ;;
22024     * )
22025       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22026   esac
22027 done
22028 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22029 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22030          X$ac_file : 'X\(//\)[^/]' \| \
22031          X$ac_file : 'X\(//\)$' \| \
22032          X$ac_file : 'X\(/\)' \| \
22033          .     : '\(.\)' 2>/dev/null ||
22034 echo X$ac_file |
22035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22036           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22037           /^X\(\/\/\)$/{ s//\1/; q; }
22038           /^X\(\/\).*/{ s//\1/; q; }
22039           s/.*/./; q'`/stamp-h$_am_stamp_count
22040 done
22041 _ACEOF
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22043
22044 #
22045 # CONFIG_COMMANDS section.
22046 #
22047 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22048   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22049   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22050   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22051 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22052          X"$ac_dest" : 'X\(//\)[^/]' \| \
22053          X"$ac_dest" : 'X\(//\)$' \| \
22054          X"$ac_dest" : 'X\(/\)' \| \
22055          .     : '\(.\)' 2>/dev/null ||
22056 echo X"$ac_dest" |
22057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22059           /^X\(\/\/\)$/{ s//\1/; q; }
22060           /^X\(\/\).*/{ s//\1/; q; }
22061           s/.*/./; q'`
22062   { if $as_mkdir_p; then
22063     mkdir -p "$ac_dir"
22064   else
22065     as_dir="$ac_dir"
22066     as_dirs=
22067     while test ! -d "$as_dir"; do
22068       as_dirs="$as_dir $as_dirs"
22069       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071          X"$as_dir" : 'X\(//\)[^/]' \| \
22072          X"$as_dir" : 'X\(//\)$' \| \
22073          X"$as_dir" : 'X\(/\)' \| \
22074          .     : '\(.\)' 2>/dev/null ||
22075 echo X"$as_dir" |
22076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22078           /^X\(\/\/\)$/{ s//\1/; q; }
22079           /^X\(\/\).*/{ s//\1/; q; }
22080           s/.*/./; q'`
22081     done
22082     test ! -n "$as_dirs" || mkdir $as_dirs
22083   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22085    { (exit 1); exit 1; }; }; }
22086
22087   ac_builddir=.
22088
22089 if test "$ac_dir" != .; then
22090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22091   # A "../" for each directory in $ac_dir_suffix.
22092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22093 else
22094   ac_dir_suffix= ac_top_builddir=
22095 fi
22096
22097 case $srcdir in
22098   .)  # No --srcdir option.  We are building in place.
22099     ac_srcdir=.
22100     if test -z "$ac_top_builddir"; then
22101        ac_top_srcdir=.
22102     else
22103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22104     fi ;;
22105   [\\/]* | ?:[\\/]* )  # Absolute path.
22106     ac_srcdir=$srcdir$ac_dir_suffix;
22107     ac_top_srcdir=$srcdir ;;
22108   *) # Relative path.
22109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22111 esac
22112
22113 # Do not use `cd foo && pwd` to compute absolute paths, because
22114 # the directories may not exist.
22115 case `pwd` in
22116 .) ac_abs_builddir="$ac_dir";;
22117 *)
22118   case "$ac_dir" in
22119   .) ac_abs_builddir=`pwd`;;
22120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22122   esac;;
22123 esac
22124 case $ac_abs_builddir in
22125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22126 *)
22127   case ${ac_top_builddir}. in
22128   .) ac_abs_top_builddir=$ac_abs_builddir;;
22129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22131   esac;;
22132 esac
22133 case $ac_abs_builddir in
22134 .) ac_abs_srcdir=$ac_srcdir;;
22135 *)
22136   case $ac_srcdir in
22137   .) ac_abs_srcdir=$ac_abs_builddir;;
22138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22140   esac;;
22141 esac
22142 case $ac_abs_builddir in
22143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22144 *)
22145   case $ac_top_srcdir in
22146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22149   esac;;
22150 esac
22151
22152
22153   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22154 echo "$as_me: executing $ac_dest commands" >&6;}
22155   case $ac_dest in
22156     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22157   # Strip MF so we end up with the name of the file.
22158   mf=`echo "$mf" | sed -e 's/:.*$//'`
22159   # Check whether this is an Automake generated Makefile or not.
22160   # We used to match only the files named `Makefile.in', but
22161   # some people rename them; so instead we look at the file content.
22162   # Grep'ing the first line is not enough: some people post-process
22163   # each Makefile.in and add a new line on top of each file to say so.
22164   # So let's grep whole file.
22165   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22166     dirpart=`(dirname "$mf") 2>/dev/null ||
22167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22168          X"$mf" : 'X\(//\)[^/]' \| \
22169          X"$mf" : 'X\(//\)$' \| \
22170          X"$mf" : 'X\(/\)' \| \
22171          .     : '\(.\)' 2>/dev/null ||
22172 echo X"$mf" |
22173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22175           /^X\(\/\/\)$/{ s//\1/; q; }
22176           /^X\(\/\).*/{ s//\1/; q; }
22177           s/.*/./; q'`
22178   else
22179     continue
22180   fi
22181   # Extract the definition of DEPDIR, am__include, and am__quote
22182   # from the Makefile without running `make'.
22183   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22184   test -z "$DEPDIR" && continue
22185   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22186   test -z "am__include" && continue
22187   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22188   # When using ansi2knr, U may be empty or an underscore; expand it
22189   U=`sed -n 's/^U = //p' < "$mf"`
22190   # Find all dependency output files, they are included files with
22191   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22192   # simplest approach to changing $(DEPDIR) to its actual value in the
22193   # expansion.
22194   for file in `sed -n "
22195     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22196        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22197     # Make sure the directory exists.
22198     test -f "$dirpart/$file" && continue
22199     fdir=`(dirname "$file") 2>/dev/null ||
22200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201          X"$file" : 'X\(//\)[^/]' \| \
22202          X"$file" : 'X\(//\)$' \| \
22203          X"$file" : 'X\(/\)' \| \
22204          .     : '\(.\)' 2>/dev/null ||
22205 echo X"$file" |
22206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22208           /^X\(\/\/\)$/{ s//\1/; q; }
22209           /^X\(\/\).*/{ s//\1/; q; }
22210           s/.*/./; q'`
22211     { if $as_mkdir_p; then
22212     mkdir -p $dirpart/$fdir
22213   else
22214     as_dir=$dirpart/$fdir
22215     as_dirs=
22216     while test ! -d "$as_dir"; do
22217       as_dirs="$as_dir $as_dirs"
22218       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220          X"$as_dir" : 'X\(//\)[^/]' \| \
22221          X"$as_dir" : 'X\(//\)$' \| \
22222          X"$as_dir" : 'X\(/\)' \| \
22223          .     : '\(.\)' 2>/dev/null ||
22224 echo X"$as_dir" |
22225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22226           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22227           /^X\(\/\/\)$/{ s//\1/; q; }
22228           /^X\(\/\).*/{ s//\1/; q; }
22229           s/.*/./; q'`
22230     done
22231     test ! -n "$as_dirs" || mkdir $as_dirs
22232   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22233 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22234    { (exit 1); exit 1; }; }; }
22235
22236     # echo "creating $dirpart/$file"
22237     echo '# dummy' > "$dirpart/$file"
22238   done
22239 done
22240  ;;
22241   esac
22242 done
22243 _ACEOF
22244
22245 cat >>$CONFIG_STATUS <<\_ACEOF
22246
22247 { (exit 0); exit 0; }
22248 _ACEOF
22249 chmod +x $CONFIG_STATUS
22250 ac_clean_files=$ac_clean_files_save
22251
22252
22253 # configure is writing to config.log, and then calls config.status.
22254 # config.status does its own redirection, appending to config.log.
22255 # Unfortunately, on DOS this fails, as config.log is still kept open
22256 # by configure, so config.status won't be able to write to it; its
22257 # output is simply discarded.  So we exec the FD to /dev/null,
22258 # effectively closing config.log, so it can be properly (re)opened and
22259 # appended to by config.status.  When coming back to configure, we
22260 # need to make the FD available again.
22261 if test "$no_create" != yes; then
22262   ac_cs_success=:
22263   ac_config_status_args=
22264   test "$silent" = yes &&
22265     ac_config_status_args="$ac_config_status_args --quiet"
22266   exec 5>/dev/null
22267   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22268   exec 5>>config.log
22269   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22270   # would make configure fail if this is the last instruction.
22271   $ac_cs_success || { (exit 1); exit 1; }
22272 fi
22273