OSDN Git Service

2008-04-18 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/gcc-fork.git] / libjava / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of libltdl 1.2:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-maintainer-mode  enable make rules and dependencies not useful
1031                           (and sometimes confusing) to the casual installer
1032   --enable-multilib       build many library versions (default)
1033   --disable-dependency-tracking  speeds up one-time build
1034   --enable-dependency-tracking   do not reject slow dependency extractors
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=yes]
1037   --enable-static[=PKGS]
1038                           build static libraries [default=yes]
1039   --enable-fast-install[=PKGS]
1040                           optimize for fast installation [default=yes]
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --enable-ltdl-install   install libltdl
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052
1053 Some influential environment variables:
1054   CC          C compiler command
1055   CFLAGS      C compiler flags
1056   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057               nonstandard directory <lib dir>
1058   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059               headers in a nonstandard directory <include dir>
1060   CPP         C preprocessor
1061   CXX         C++ compiler command
1062   CXXFLAGS    C++ compiler flags
1063   CXXCPP      C++ preprocessor
1064   F77         Fortran 77 compiler command
1065   FFLAGS      Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 Report bugs to <bug-libtool@gnu.org>.
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 libltdl configure 1.2
1167 generated by GNU Autoconf 2.59
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173   exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by libltdl $as_me 1.2, which was
1181 generated by GNU Autoconf 2.59.  Invocation command line was
1182
1183   $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1200
1201 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1205 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214   IFS=$as_save_IFS
1215   test -z "$as_dir" && as_dir=.
1216   echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243   for ac_arg
1244   do
1245     case $ac_arg in
1246     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248     | -silent | --silent | --silen | --sile | --sil)
1249       continue ;;
1250     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252     esac
1253     case $ac_pass in
1254     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255     2)
1256       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257       if test $ac_must_keep_next = true; then
1258         ac_must_keep_next=false # Got value, back to normal.
1259       else
1260         case $ac_arg in
1261           *=* | --config-cache | -C | -disable-* | --disable-* \
1262           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264           | -with-* | --with-* | -without-* | --without-* | --x)
1265             case "$ac_configure_args0 " in
1266               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267             esac
1268             ;;
1269           -* ) ac_must_keep_next=true ;;
1270         esac
1271       fi
1272       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273       # Get rid of the leading space.
1274       ac_sep=" "
1275       ;;
1276     esac
1277   done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log.  We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288   # Save into config.log some information that might help in debugging.
1289   {
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297     echo
1298     # The following way of writing the cache mishandles newlines in values,
1299 {
1300   (set) 2>&1 |
1301     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302     *ac_space=\ *)
1303       sed -n \
1304         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306       ;;
1307     *)
1308       sed -n \
1309         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310       ;;
1311     esac;
1312 }
1313     echo
1314
1315     cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320     echo
1321     for ac_var in $ac_subst_vars
1322     do
1323       eval ac_val=$`echo $ac_var`
1324       echo "$ac_var='"'"'$ac_val'"'"'"
1325     done | sort
1326     echo
1327
1328     if test -n "$ac_subst_files"; then
1329       cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334       echo
1335       for ac_var in $ac_subst_files
1336       do
1337         eval ac_val=$`echo $ac_var`
1338         echo "$ac_var='"'"'$ac_val'"'"'"
1339       done | sort
1340       echo
1341     fi
1342
1343     if test -s confdefs.h; then
1344       cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349       echo
1350       sed "/^$/d" confdefs.h | sort
1351       echo
1352     fi
1353     test "$ac_signal" != 0 &&
1354       echo "$as_me: caught signal $ac_signal"
1355     echo "$as_me: exit $exit_status"
1356   } >&5
1357   rm -f core *.core &&
1358   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359     exit $exit_status
1360      ' 0
1361 for ac_signal in 1 2 13 15; do
1362   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401   if test "x$prefix" != xNONE; then
1402     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403   else
1404     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405   fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408   if test -r "$ac_site_file"; then
1409     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411     sed 's/^/| /' "$ac_site_file" >&5
1412     . "$ac_site_file"
1413   fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417   # Some versions of bash will fail to source /dev/null (special
1418   # files actually), so we avoid doing that.
1419   if test -f "$cache_file"; then
1420     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422     case $cache_file in
1423       [\\/]* | ?:[\\/]* ) . $cache_file;;
1424       *)                      . ./$cache_file;;
1425     esac
1426   fi
1427 else
1428   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430   >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439   eval ac_new_set=\$ac_env_${ac_var}_set
1440   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441   eval ac_new_val="\$ac_env_${ac_var}_value"
1442   case $ac_old_set,$ac_new_set in
1443     set,)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,set)
1448       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450       ac_cache_corrupted=: ;;
1451     ,);;
1452     *)
1453       if test "x$ac_old_val" != "x$ac_new_val"; then
1454         # differences in whitespace do not lead to failure.
1455         ac_old_val_w=`echo x $ac_old_val`
1456         ac_new_val_w=`echo x $ac_new_val`
1457         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1458           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460           ac_cache_corrupted=:
1461         else
1462           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1463 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1464           eval $ac_var=\$ac_old_val
1465         fi
1466         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1467 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1468         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1469 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1470       fi;;
1471   esac
1472   # Pass precious variables to config.status.
1473   if test "$ac_new_set" = set; then
1474     case $ac_new_val in
1475     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477     *) ac_arg=$ac_var=$ac_new_val ;;
1478     esac
1479     case " $ac_configure_args " in
1480       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482     esac
1483   fi
1484 done
1485 if $ac_cache_corrupted; then
1486   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 ac_ext=c
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 ## GCJ LOCAL: gcc tree uses maintainer mode.
1528 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1529 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1530     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1531 if test "${enable_maintainer_mode+set}" = set; then
1532   enableval="$enable_maintainer_mode"
1533   USE_MAINTAINER_MODE=$enableval
1534 else
1535   USE_MAINTAINER_MODE=no
1536 fi;
1537   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1538 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1539
1540
1541 if test $USE_MAINTAINER_MODE = yes; then
1542   MAINTAINER_MODE_TRUE=
1543   MAINTAINER_MODE_FALSE='#'
1544 else
1545   MAINTAINER_MODE_TRUE='#'
1546   MAINTAINER_MODE_FALSE=
1547 fi
1548
1549   MAINT=$MAINTAINER_MODE_TRUE
1550
1551
1552
1553 # Default to --enable-multilib
1554 # Check whether --enable-multilib or --disable-multilib was given.
1555 if test "${enable_multilib+set}" = set; then
1556   enableval="$enable_multilib"
1557   case "$enableval" in
1558   yes) multilib=yes ;;
1559   no)  multilib=no ;;
1560   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1561 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1562    { (exit 1); exit 1; }; } ;;
1563  esac
1564 else
1565   multilib=yes
1566 fi;
1567
1568 # We may get other options which we leave undocumented:
1569 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1570 # See config-ml.in if you want the gory details.
1571
1572 if test "$srcdir" = "."; then
1573   if test "$with_target_subdir" != "."; then
1574     multi_basedir="$srcdir/$with_multisrctop../../.."
1575   else
1576     multi_basedir="$srcdir/$with_multisrctop../.."
1577   fi
1578 else
1579   multi_basedir="$srcdir/../.."
1580 fi
1581
1582
1583 # Even if the default multilib is not a cross compilation,
1584 # it may be that some of the other multilibs are.
1585 if test $cross_compiling = no && test $multilib = yes \
1586    && test "x${with_multisubdir}" != x ; then
1587    cross_compiling=maybe
1588 fi
1589
1590           ac_config_commands="$ac_config_commands default-1"
1591
1592
1593 ## ------------------------------- ##
1594 ## Libltdl specific configuration. ##
1595 ## ------------------------------- ##
1596
1597 ac_aux_dir=
1598 for ac_dir in . $srcdir/.; do
1599   if test -f $ac_dir/install-sh; then
1600     ac_aux_dir=$ac_dir
1601     ac_install_sh="$ac_aux_dir/install-sh -c"
1602     break
1603   elif test -f $ac_dir/install.sh; then
1604     ac_aux_dir=$ac_dir
1605     ac_install_sh="$ac_aux_dir/install.sh -c"
1606     break
1607   elif test -f $ac_dir/shtool; then
1608     ac_aux_dir=$ac_dir
1609     ac_install_sh="$ac_aux_dir/shtool install -c"
1610     break
1611   fi
1612 done
1613 if test -z "$ac_aux_dir"; then
1614   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1615 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1616    { (exit 1); exit 1; }; }
1617 fi
1618 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1619 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1620 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1621
1622
1623 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1624   if test -f ${srcdir}/ltmain.sh; then
1625     # if libltdl is libtoolized, it is assumed to be stand-alone and
1626     # installed unless the command line overrides it (tested above)
1627     enable_ltdl_install=yes
1628   else
1629     { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1630 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1631     { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1632 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1633     { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1634 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1635    { (exit 1); exit 1; }; }
1636   fi
1637 fi
1638
1639
1640 ## ------------------------ ##
1641 ## Automake Initialisation. ##
1642 ## ------------------------ ##
1643 am__api_version="1.9"
1644 # Find a good install program.  We prefer a C program (faster),
1645 # so one script is as good as another.  But avoid the broken or
1646 # incompatible versions:
1647 # SysV /etc/install, /usr/sbin/install
1648 # SunOS /usr/etc/install
1649 # IRIX /sbin/install
1650 # AIX /bin/install
1651 # AmigaOS /C/install, which installs bootblocks on floppy discs
1652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1655 # OS/2's system install, which has a completely different semantic
1656 # ./install, which can be erroneously created by make from ./install.sh.
1657 # Reject install programs that cannot install multiple files.
1658 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1659 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1660 if test -z "$INSTALL"; then
1661 if test "${ac_cv_path_install+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   # Account for people who put trailing slashes in PATH elements.
1670 case $as_dir/ in
1671   ./ | .// | /cC/* | \
1672   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1673   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1674   /usr/ucb/* ) ;;
1675   *)
1676     # OSF1 and SCO ODT 3.0 have their own names for install.
1677     # Don't use installbsd from OSF since it installs stuff as root
1678     # by default.
1679     for ac_prog in ginstall scoinst install; do
1680       for ac_exec_ext in '' $ac_executable_extensions; do
1681         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1682           if test $ac_prog = install &&
1683             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684             # AIX install.  It has an incompatible calling convention.
1685             :
1686           elif test $ac_prog = install &&
1687             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688             # program-specific install script used by HP pwplus--don't use.
1689             :
1690           else
1691             rm -rf conftest.one conftest.two conftest.dir
1692             echo one > conftest.one
1693             echo two > conftest.two
1694             mkdir conftest.dir
1695             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1696               test -s conftest.one && test -s conftest.two &&
1697               test -s conftest.dir/conftest.one &&
1698               test -s conftest.dir/conftest.two
1699             then
1700               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701               break 3
1702             fi
1703           fi
1704         fi
1705       done
1706     done
1707     ;;
1708 esac
1709 done
1710
1711 rm -rf conftest.one conftest.two conftest.dir
1712
1713 fi
1714   if test "${ac_cv_path_install+set}" = set; then
1715     INSTALL=$ac_cv_path_install
1716   else
1717     # As a last resort, use the slow shell script.  Don't cache a
1718     # value for INSTALL within a source directory, because that will
1719     # break other packages using the cache if that directory is
1720     # removed, or if the value is a relative name.
1721     INSTALL=$ac_install_sh
1722   fi
1723 fi
1724 echo "$as_me:$LINENO: result: $INSTALL" >&5
1725 echo "${ECHO_T}$INSTALL" >&6
1726
1727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1728 # It thinks the first close brace ends the variable substitution.
1729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1730
1731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1732
1733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1734
1735 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1736 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1737 # Just in case
1738 sleep 1
1739 echo timestamp > conftest.file
1740 # Do `set' in a subshell so we don't clobber the current shell's
1741 # arguments.  Must try -L first in case configure is actually a
1742 # symlink; some systems play weird games with the mod time of symlinks
1743 # (eg FreeBSD returns the mod time of the symlink's containing
1744 # directory).
1745 if (
1746    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1747    if test "$*" = "X"; then
1748       # -L didn't work.
1749       set X `ls -t $srcdir/configure conftest.file`
1750    fi
1751    rm -f conftest.file
1752    if test "$*" != "X $srcdir/configure conftest.file" \
1753       && test "$*" != "X conftest.file $srcdir/configure"; then
1754
1755       # If neither matched, then we have a broken ls.  This can happen
1756       # if, for instance, CONFIG_SHELL is bash and it inherits a
1757       # broken ls alias from the environment.  This has actually
1758       # happened.  Such a system could not be considered "sane".
1759       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1760 alias in your environment" >&5
1761 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1762 alias in your environment" >&2;}
1763    { (exit 1); exit 1; }; }
1764    fi
1765
1766    test "$2" = conftest.file
1767    )
1768 then
1769    # Ok.
1770    :
1771 else
1772    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1773 Check your system clock" >&5
1774 echo "$as_me: error: newly created file is older than distributed files!
1775 Check your system clock" >&2;}
1776    { (exit 1); exit 1; }; }
1777 fi
1778 echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1780 test "$program_prefix" != NONE &&
1781   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1782 # Use a double $ so make ignores it.
1783 test "$program_suffix" != NONE &&
1784   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1785 # Double any \ or $.  echo might interpret backslashes.
1786 # By default was `s,x,x', remove it if useless.
1787 cat <<\_ACEOF >conftest.sed
1788 s/[\\$]/&&/g;s/;s,x,x,$//
1789 _ACEOF
1790 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1791 rm conftest.sed
1792
1793 # expand $ac_aux_dir to an absolute path
1794 am_aux_dir=`cd $ac_aux_dir && pwd`
1795
1796 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1797 # Use eval to expand $SHELL
1798 if eval "$MISSING --run true"; then
1799   am_missing_run="$MISSING --run "
1800 else
1801   am_missing_run=
1802   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1803 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1804 fi
1805
1806 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1807   # We used to keeping the `.' as first argument, in order to
1808   # allow $(mkdir_p) to be used without argument.  As in
1809   #   $(mkdir_p) $(somedir)
1810   # where $(somedir) is conditionally defined.  However this is wrong
1811   # for two reasons:
1812   #  1. if the package is installed by a user who cannot write `.'
1813   #     make install will fail,
1814   #  2. the above comment should most certainly read
1815   #     $(mkdir_p) $(DESTDIR)$(somedir)
1816   #     so it does not work when $(somedir) is undefined and
1817   #     $(DESTDIR) is not.
1818   #  To support the latter case, we have to write
1819   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1820   #  so the `.' trick is pointless.
1821   mkdir_p='mkdir -p --'
1822 else
1823   # On NextStep and OpenStep, the `mkdir' command does not
1824   # recognize any option.  It will interpret all options as
1825   # directories to create, and then abort because `.' already
1826   # exists.
1827   for d in ./-p ./--version;
1828   do
1829     test -d $d && rmdir $d
1830   done
1831   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1832   if test -f "$ac_aux_dir/mkinstalldirs"; then
1833     mkdir_p='$(mkinstalldirs)'
1834   else
1835     mkdir_p='$(install_sh) -d'
1836   fi
1837 fi
1838
1839 for ac_prog in gawk mawk nawk awk
1840 do
1841   # Extract the first word of "$ac_prog", so it can be a program name with args.
1842 set dummy $ac_prog; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_AWK+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$AWK"; then
1849   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_AWK="$ac_prog"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 AWK=$ac_cv_prog_AWK
1868 if test -n "$AWK"; then
1869   echo "$as_me:$LINENO: result: $AWK" >&5
1870 echo "${ECHO_T}$AWK" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876   test -n "$AWK" && break
1877 done
1878
1879 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1880 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1881 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1882 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   cat >conftest.make <<\_ACEOF
1886 all:
1887         @echo 'ac_maketemp="$(MAKE)"'
1888 _ACEOF
1889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1890 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1891 if test -n "$ac_maketemp"; then
1892   eval ac_cv_prog_make_${ac_make}_set=yes
1893 else
1894   eval ac_cv_prog_make_${ac_make}_set=no
1895 fi
1896 rm -f conftest.make
1897 fi
1898 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1899   echo "$as_me:$LINENO: result: yes" >&5
1900 echo "${ECHO_T}yes" >&6
1901   SET_MAKE=
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905   SET_MAKE="MAKE=${MAKE-make}"
1906 fi
1907
1908 rm -rf .tst 2>/dev/null
1909 mkdir .tst 2>/dev/null
1910 if test -d .tst; then
1911   am__leading_dot=.
1912 else
1913   am__leading_dot=_
1914 fi
1915 rmdir .tst 2>/dev/null
1916
1917 # test to see if srcdir already configured
1918 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1919    test -f $srcdir/config.status; then
1920   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1921 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1922    { (exit 1); exit 1; }; }
1923 fi
1924
1925 # test whether we have cygpath
1926 if test -z "$CYGPATH_W"; then
1927   if (cygpath --version) >/dev/null 2>/dev/null; then
1928     CYGPATH_W='cygpath -w'
1929   else
1930     CYGPATH_W=echo
1931   fi
1932 fi
1933
1934
1935 # Define the identity of the package.
1936  PACKAGE=libltdl
1937  VERSION=1.2
1938
1939
1940 # Some tools Automake needs.
1941
1942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1943
1944
1945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1946
1947
1948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1949
1950
1951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1952
1953
1954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1955
1956 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957
1958 # Installed binaries are usually stripped using `strip' when the user
1959 # run `make install-strip'.  However `strip' might not be the right
1960 # tool to use in cross-compilation environments, therefore Automake
1961 # will honor the `STRIP' environment variable to overrule this program.
1962 if test "$cross_compiling" != no; then
1963   if test -n "$ac_tool_prefix"; then
1964   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_STRIP+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   if test -n "$STRIP"; then
1972   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983     break 2
1984   fi
1985 done
1986 done
1987
1988 fi
1989 fi
1990 STRIP=$ac_cv_prog_STRIP
1991 if test -n "$STRIP"; then
1992   echo "$as_me:$LINENO: result: $STRIP" >&5
1993 echo "${ECHO_T}$STRIP" >&6
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999 fi
2000 if test -z "$ac_cv_prog_STRIP"; then
2001   ac_ct_STRIP=$STRIP
2002   # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$ac_ct_STRIP"; then
2010   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_ac_ct_STRIP="strip"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2027 fi
2028 fi
2029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2030 if test -n "$ac_ct_STRIP"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2032 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   STRIP=$ac_ct_STRIP
2039 else
2040   STRIP="$ac_cv_prog_STRIP"
2041 fi
2042
2043 fi
2044 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045
2046 # We need awk for the "check" target.  The system "awk" is bad on
2047 # some platforms.
2048 # Always define AMTAR for backward compatibility.
2049
2050 AMTAR=${AMTAR-"${am_missing_run}tar"}
2051
2052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2053
2054
2055
2056
2057
2058           ac_config_headers="$ac_config_headers config.h:config-h.in"
2059
2060
2061
2062 ## ------------------ ##
2063 ## C compiler checks. ##
2064 ## ------------------ ##
2065 ac_ext=c
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070 if test -n "$ac_tool_prefix"; then
2071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$CC"; then
2079   ac_cv_prog_CC="$CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094
2095 fi
2096 fi
2097 CC=$ac_cv_prog_CC
2098 if test -n "$CC"; then
2099   echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6
2101 else
2102   echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2104 fi
2105
2106 fi
2107 if test -z "$ac_cv_prog_CC"; then
2108   ac_ct_CC=$CC
2109   # Extract the first word of "gcc", so it can be a program name with args.
2110 set dummy gcc; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   if test -n "$ac_ct_CC"; then
2117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126     ac_cv_prog_ac_ct_CC="gcc"
2127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128     break 2
2129   fi
2130 done
2131 done
2132
2133 fi
2134 fi
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6
2139 else
2140   echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2142 fi
2143
2144   CC=$ac_ct_CC
2145 else
2146   CC="$ac_cv_prog_CC"
2147 fi
2148
2149 if test -z "$CC"; then
2150   if test -n "$ac_tool_prefix"; then
2151   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}cc; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168     ac_cv_prog_CC="${ac_tool_prefix}cc"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6
2181 else
2182   echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2184 fi
2185
2186 fi
2187 if test -z "$ac_cv_prog_CC"; then
2188   ac_ct_CC=$CC
2189   # Extract the first word of "cc", so it can be a program name with args.
2190 set dummy cc; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test -n "$ac_ct_CC"; then
2197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206     ac_cv_prog_ac_ct_CC="cc"
2207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212
2213 fi
2214 fi
2215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2216 if test -n "$ac_ct_CC"; then
2217   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2218 echo "${ECHO_T}$ac_ct_CC" >&6
2219 else
2220   echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2222 fi
2223
2224   CC=$ac_ct_CC
2225 else
2226   CC="$ac_cv_prog_CC"
2227 fi
2228
2229 fi
2230 if test -z "$CC"; then
2231   # Extract the first word of "cc", so it can be a program name with args.
2232 set dummy cc; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   if test -n "$CC"; then
2239   ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241   ac_prog_rejected=no
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2250        ac_prog_rejected=yes
2251        continue
2252      fi
2253     ac_cv_prog_CC="cc"
2254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255     break 2
2256   fi
2257 done
2258 done
2259
2260 if test $ac_prog_rejected = yes; then
2261   # We found a bogon in the path, so make sure we never use it.
2262   set dummy $ac_cv_prog_CC
2263   shift
2264   if test $# != 0; then
2265     # We chose a different compiler from the bogus one.
2266     # However, it has the same basename, so the bogon will be chosen
2267     # first if we set CC to just the basename; use the full file name.
2268     shift
2269     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2270   fi
2271 fi
2272 fi
2273 fi
2274 CC=$ac_cv_prog_CC
2275 if test -n "$CC"; then
2276   echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6
2278 else
2279   echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2281 fi
2282
2283 fi
2284 if test -z "$CC"; then
2285   if test -n "$ac_tool_prefix"; then
2286   for ac_prog in cl
2287   do
2288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   if test -n "$CC"; then
2296   ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_exec_ext in '' $ac_executable_extensions; do
2304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2305     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310 done
2311
2312 fi
2313 fi
2314 CC=$ac_cv_prog_CC
2315 if test -n "$CC"; then
2316   echo "$as_me:$LINENO: result: $CC" >&5
2317 echo "${ECHO_T}$CC" >&6
2318 else
2319   echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6
2321 fi
2322
2323     test -n "$CC" && break
2324   done
2325 fi
2326 if test -z "$CC"; then
2327   ac_ct_CC=$CC
2328   for ac_prog in cl
2329 do
2330   # Extract the first word of "$ac_prog", so it can be a program name with args.
2331 set dummy $ac_prog; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$ac_ct_CC"; then
2338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     ac_cv_prog_ac_ct_CC="$ac_prog"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353
2354 fi
2355 fi
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2360 else
2361   echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365   test -n "$ac_ct_CC" && break
2366 done
2367
2368   CC=$ac_ct_CC
2369 fi
2370
2371 fi
2372
2373
2374 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details." >&2;}
2378    { (exit 1); exit 1; }; }
2379
2380 # Provide some information about the compiler.
2381 echo "$as_me:$LINENO:" \
2382      "checking for C compiler version" >&5
2383 ac_compiler=`set X $ac_compile; echo $2`
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2385   (eval $ac_compiler --version </dev/null >&5) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2390   (eval $ac_compiler -v </dev/null >&5) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }
2394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2395   (eval $ac_compiler -V </dev/null >&5) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }
2399
2400 cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406
2407 int
2408 main ()
2409 {
2410
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 ac_clean_files_save=$ac_clean_files
2416 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2417 # Try to create an executable without -o first, disregard a.out.
2418 # It will help us diagnose broken compilers, and finding out an intuition
2419 # of exeext.
2420 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2421 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2422 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2423 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2424   (eval $ac_link_default) 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; then
2428   # Find the output, starting from the most likely.  This scheme is
2429 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2430 # resort.
2431
2432 # Be careful to initialize this variable, since it used to be cached.
2433 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2434 ac_cv_exeext=
2435 # b.out is created by i960 compilers.
2436 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2437 do
2438   test -f "$ac_file" || continue
2439   case $ac_file in
2440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2441         ;;
2442     conftest.$ac_ext )
2443         # This is the source file.
2444         ;;
2445     [ab].out )
2446         # We found the default executable, but exeext='' is most
2447         # certainly right.
2448         break;;
2449     *.* )
2450         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451         # FIXME: I believe we export ac_cv_exeext for Libtool,
2452         # but it would be cool to find out if it's true.  Does anybody
2453         # maintain Libtool? --akim.
2454         export ac_cv_exeext
2455         break;;
2456     * )
2457         break;;
2458   esac
2459 done
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&2;}
2468    { (exit 77); exit 77; }; }
2469 fi
2470
2471 ac_exeext=$ac_cv_exeext
2472 echo "$as_me:$LINENO: result: $ac_file" >&5
2473 echo "${ECHO_T}$ac_file" >&6
2474
2475 # Check the compiler produces executables we can run.  If not, either
2476 # the compiler is broken, or we cross compile.
2477 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482   if { ac_try='./$ac_file'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488     cross_compiling=no
2489   else
2490     if test "$cross_compiling" = maybe; then
2491         cross_compiling=yes
2492     else
2493         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot run C compiled programs.
2497 If you meant to cross compile, use \`--host'.
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500     fi
2501   fi
2502 fi
2503 echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6
2505
2506 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2507 ac_clean_files=$ac_clean_files_save
2508 # Check the compiler produces executables we can run.  If not, either
2509 # the compiler is broken, or we cross compile.
2510 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2511 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2512 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2513 echo "${ECHO_T}$cross_compiling" >&6
2514
2515 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2516 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518   (eval $ac_link) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; then
2522   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2523 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2524 # work properly (i.e., refer to `conftest.exe'), while it won't with
2525 # `rm'.
2526 for ac_file in conftest.exe conftest conftest.*; do
2527   test -f "$ac_file" || continue
2528   case $ac_file in
2529     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2530     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2531           export ac_cv_exeext
2532           break;;
2533     * ) break;;
2534   esac
2535 done
2536 else
2537   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2540 See \`config.log' for more details." >&2;}
2541    { (exit 1); exit 1; }; }
2542 fi
2543
2544 rm -f conftest$ac_cv_exeext
2545 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2546 echo "${ECHO_T}$ac_cv_exeext" >&6
2547
2548 rm -f conftest.$ac_ext
2549 EXEEXT=$ac_cv_exeext
2550 ac_exeext=$EXEEXT
2551 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2552 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2553 if test "${ac_cv_objext+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.o conftest.obj
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573   (eval $ac_compile) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; then
2577   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2578   case $ac_file in
2579     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2580     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2581        break;;
2582   esac
2583 done
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2589 See \`config.log' for more details." >&5
2590 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2591 See \`config.log' for more details." >&2;}
2592    { (exit 1); exit 1; }; }
2593 fi
2594
2595 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2596 fi
2597 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2598 echo "${ECHO_T}$ac_cv_objext" >&6
2599 OBJEXT=$ac_cv_objext
2600 ac_objext=$OBJEXT
2601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616 #ifndef __GNUC__
2617        choke me
2618 #endif
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"
2634                          || test ! -s conftest.err'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   ac_compiler_gnu=yes
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 ac_compiler_gnu=no
2652 fi
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2655
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2659 GCC=`test $ac_compiler_gnu = yes && echo yes`
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2662 CFLAGS="-g"
2663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_g+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685   (eval $ac_compile) 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } &&
2692          { ac_try='test -z "$ac_c_werror_flag"
2693                          || test ! -s conftest.err'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   ac_cv_prog_cc_g=yes
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 ac_cv_prog_cc_g=no
2711 fi
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2716 if test "$ac_test_CFLAGS" = set; then
2717   CFLAGS=$ac_save_CFLAGS
2718 elif test $ac_cv_prog_cc_g = yes; then
2719   if test "$GCC" = yes; then
2720     CFLAGS="-g -O2"
2721   else
2722     CFLAGS="-g"
2723   fi
2724 else
2725   if test "$GCC" = yes; then
2726     CFLAGS="-O2"
2727   else
2728     CFLAGS=
2729   fi
2730 fi
2731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   ac_cv_prog_cc_stdc=no
2737 ac_save_CC=$CC
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 #include <stdarg.h>
2745 #include <stdio.h>
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2752      char **p;
2753      int i;
2754 {
2755   return p[i];
2756 }
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2758 {
2759   char *s;
2760   va_list v;
2761   va_start (v,p);
2762   s = g (p, va_arg (v,int));
2763   va_end (v);
2764   return s;
2765 }
2766
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2768    function prototypes and stuff, but not '\xHH' hex character constants.
2769    These don't provoke an error unfortunately, instead are silently treated
2770    as 'x'.  The following induces an error, until -std1 is added to get
2771    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2772    array size at least.  It's necessary to write '\x00'==0 to get something
2773    that's true only with -std1.  */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2775
2776 int test (int i, double x);
2777 struct s1 {int (*f) (int a);};
2778 struct s2 {int (*f) (double a);};
2779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780 int argc;
2781 char **argv;
2782 int
2783 main ()
2784 {
2785 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 # Don't try gcc -ansi; that turns off useful extensions and
2791 # breaks some systems' header files.
2792 # AIX                   -qlanglvl=ansi
2793 # Ultrix and OSF/1      -std1
2794 # HP-UX 10.20 and later -Ae
2795 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2796 # SVR4                  -Xc -D__EXTENSIONS__
2797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 do
2799   CC="$ac_save_CC $ac_arg"
2800   rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802   (eval $ac_compile) 2>conftest.er1
2803   ac_status=$?
2804   grep -v '^ *+' conftest.er1 >conftest.err
2805   rm -f conftest.er1
2806   cat conftest.err >&5
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -z "$ac_c_werror_flag"
2810                          || test ! -s conftest.err'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; } &&
2816          { ac_try='test -s conftest.$ac_objext'
2817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822   ac_cv_prog_cc_stdc=$ac_arg
2823 break
2824 else
2825   echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 fi
2829 rm -f conftest.err conftest.$ac_objext
2830 done
2831 rm -f conftest.$ac_ext conftest.$ac_objext
2832 CC=$ac_save_CC
2833
2834 fi
2835
2836 case "x$ac_cv_prog_cc_stdc" in
2837   x|xno)
2838     echo "$as_me:$LINENO: result: none needed" >&5
2839 echo "${ECHO_T}none needed" >&6 ;;
2840   *)
2841     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2843     CC="$CC $ac_cv_prog_cc_stdc" ;;
2844 esac
2845
2846 # Some people use a C++ compiler to compile C.  Since we use `exit',
2847 # in C++ we need to declare it.  In case someone uses the same compiler
2848 # for both compiling C and C++ we need to have the C++ compiler decide
2849 # the declaration of exit, since it's the most demanding environment.
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #ifndef __cplusplus
2852   choke me
2853 #endif
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857   (eval $ac_compile) 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -z "$ac_c_werror_flag"
2865                          || test ! -s conftest.err'
2866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; } &&
2871          { ac_try='test -s conftest.$ac_objext'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877   for ac_declaration in \
2878    '' \
2879    'extern "C" void std::exit (int) throw (); using std::exit;' \
2880    'extern "C" void std::exit (int); using std::exit;' \
2881    'extern "C" void exit (int) throw ();' \
2882    'extern "C" void exit (int);' \
2883    'void exit (int);'
2884 do
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891 $ac_declaration
2892 #include <stdlib.h>
2893 int
2894 main ()
2895 {
2896 exit (42);
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903   (eval $ac_compile) 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -z "$ac_c_werror_flag"
2911                          || test ! -s conftest.err'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   :
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 continue
2929 fi
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 $ac_declaration
2938 int
2939 main ()
2940 {
2941 exit (42);
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948   (eval $ac_compile) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } &&
2955          { ac_try='test -z "$ac_c_werror_flag"
2956                          || test ! -s conftest.err'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   break
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 fi
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 done
2976 rm -f conftest*
2977 if test -n "$ac_declaration"; then
2978   echo '#ifdef __cplusplus' >>confdefs.h
2979   echo $ac_declaration      >>confdefs.h
2980   echo '#endif'             >>confdefs.h
2981 fi
2982
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 fi
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 DEPDIR="${am__leading_dot}deps"
2995
2996           ac_config_commands="$ac_config_commands depfiles"
2997
2998
2999 am_make=${MAKE-make}
3000 cat > confinc << 'END'
3001 am__doit:
3002         @echo done
3003 .PHONY: am__doit
3004 END
3005 # If we don't find an include directive, just comment out the code.
3006 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3007 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3008 am__include="#"
3009 am__quote=
3010 _am_result=none
3011 # First try GNU make style include.
3012 echo "include confinc" > confmf
3013 # We grep out `Entering directory' and `Leaving directory'
3014 # messages which can occur if `w' ends up in MAKEFLAGS.
3015 # In particular we don't look at `^make:' because GNU make might
3016 # be invoked under some other name (usually "gmake"), in which
3017 # case it prints its new name instead of `make'.
3018 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3019    am__include=include
3020    am__quote=
3021    _am_result=GNU
3022 fi
3023 # Now try BSD make style include.
3024 if test "$am__include" = "#"; then
3025    echo '.include "confinc"' > confmf
3026    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3027       am__include=.include
3028       am__quote="\""
3029       _am_result=BSD
3030    fi
3031 fi
3032
3033
3034 echo "$as_me:$LINENO: result: $_am_result" >&5
3035 echo "${ECHO_T}$_am_result" >&6
3036 rm -f confinc confmf
3037
3038 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3039 if test "${enable_dependency_tracking+set}" = set; then
3040   enableval="$enable_dependency_tracking"
3041
3042 fi;
3043 if test "x$enable_dependency_tracking" != xno; then
3044   am_depcomp="$ac_aux_dir/depcomp"
3045   AMDEPBACKSLASH='\'
3046 fi
3047
3048
3049 if test "x$enable_dependency_tracking" != xno; then
3050   AMDEP_TRUE=
3051   AMDEP_FALSE='#'
3052 else
3053   AMDEP_TRUE='#'
3054   AMDEP_FALSE=
3055 fi
3056
3057
3058
3059
3060 depcc="$CC"   am_compiler_list=
3061
3062 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3063 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3064 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3068   # We make a subdir and do the tests there.  Otherwise we can end up
3069   # making bogus files that we don't know about and never remove.  For
3070   # instance it was reported that on HP-UX the gcc test will end up
3071   # making a dummy file named `D' -- because `-MD' means `put the output
3072   # in D'.
3073   mkdir conftest.dir
3074   # Copy depcomp to subdir because otherwise we won't find it if we're
3075   # using a relative directory.
3076   cp "$am_depcomp" conftest.dir
3077   cd conftest.dir
3078   # We will build objects and dependencies in a subdirectory because
3079   # it helps to detect inapplicable dependency modes.  For instance
3080   # both Tru64's cc and ICC support -MD to output dependencies as a
3081   # side effect of compilation, but ICC will put the dependencies in
3082   # the current directory while Tru64 will put them in the object
3083   # directory.
3084   mkdir sub
3085
3086   am_cv_CC_dependencies_compiler_type=none
3087   if test "$am_compiler_list" = ""; then
3088      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3089   fi
3090   for depmode in $am_compiler_list; do
3091     # Setup a source with many dependencies, because some compilers
3092     # like to wrap large dependency lists on column 80 (with \), and
3093     # we should not choose a depcomp mode which is confused by this.
3094     #
3095     # We need to recreate these files for each test, as the compiler may
3096     # overwrite some of them when testing with obscure command lines.
3097     # This happens at least with the AIX C compiler.
3098     : > sub/conftest.c
3099     for i in 1 2 3 4 5 6; do
3100       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3101       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3102       # Solaris 8's {/usr,}/bin/sh.
3103       touch sub/conftst$i.h
3104     done
3105     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3106
3107     case $depmode in
3108     nosideeffect)
3109       # after this tag, mechanisms are not by side-effect, so they'll
3110       # only be used when explicitly requested
3111       if test "x$enable_dependency_tracking" = xyes; then
3112         continue
3113       else
3114         break
3115       fi
3116       ;;
3117     none) break ;;
3118     esac
3119     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3120     # mode.  It turns out that the SunPro C++ compiler does not properly
3121     # handle `-M -o', and we need to detect this.
3122     if depmode=$depmode \
3123        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3124        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3125        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3126          >/dev/null 2>conftest.err &&
3127        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3128        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3129        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3130       # icc doesn't choke on unknown options, it will just issue warnings
3131       # or remarks (even with -Werror).  So we grep stderr for any message
3132       # that says an option was ignored or not supported.
3133       # When given -MP, icc 7.0 and 7.1 complain thusly:
3134       #   icc: Command line warning: ignoring option '-M'; no argument required
3135       # The diagnosis changed in icc 8.0:
3136       #   icc: Command line remark: option '-MP' not supported
3137       if (grep 'ignoring option' conftest.err ||
3138           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3139         am_cv_CC_dependencies_compiler_type=$depmode
3140         break
3141       fi
3142     fi
3143   done
3144
3145   cd ..
3146   rm -rf conftest.dir
3147 else
3148   am_cv_CC_dependencies_compiler_type=none
3149 fi
3150
3151 fi
3152 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3153 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3155
3156
3157
3158 if
3159   test "x$enable_dependency_tracking" != xno \
3160   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3161   am__fastdepCC_TRUE=
3162   am__fastdepCC_FALSE='#'
3163 else
3164   am__fastdepCC_TRUE='#'
3165   am__fastdepCC_FALSE=
3166 fi
3167
3168
3169
3170 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3172 if test "${ac_cv_c_const+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185 /* FIXME: Include the comments suggested by Paul. */
3186 #ifndef __cplusplus
3187   /* Ultrix mips cc rejects this.  */
3188   typedef int charset[2];
3189   const charset x;
3190   /* SunOS 4.1.1 cc rejects this.  */
3191   char const *const *ccp;
3192   char **p;
3193   /* NEC SVR4.0.2 mips cc rejects this.  */
3194   struct point {int x, y;};
3195   static struct point const zero = {0,0};
3196   /* AIX XL C 1.02.0.0 rejects this.
3197      It does not let you subtract one const X* pointer from another in
3198      an arm of an if-expression whose if-part is not a constant
3199      expression */
3200   const char *g = "string";
3201   ccp = &g + (g ? g-g : 0);
3202   /* HPUX 7.0 cc rejects these. */
3203   ++ccp;
3204   p = (char**) ccp;
3205   ccp = (char const *const *) p;
3206   { /* SCO 3.2v4 cc rejects this.  */
3207     char *t;
3208     char const *s = 0 ? (char *) 0 : (char const *) 0;
3209
3210     *t++ = 0;
3211   }
3212   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3213     int x[] = {25, 17};
3214     const int *foo = &x[0];
3215     ++foo;
3216   }
3217   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3218     typedef const int *iptr;
3219     iptr p = 0;
3220     ++p;
3221   }
3222   { /* AIX XL C 1.02.0.0 rejects this saying
3223        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3224     struct s { int j; const int *ap[3]; };
3225     struct s *b; b->j = 5;
3226   }
3227   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3228     const int foo = 10;
3229   }
3230 #endif
3231
3232   ;
3233   return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238   (eval $ac_compile) 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag"
3246                          || test ! -s conftest.err'
3247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248   (eval $ac_try) 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }; } &&
3252          { ac_try='test -s conftest.$ac_objext'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv_c_const=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 ac_cv_c_const=no
3264 fi
3265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3268 echo "${ECHO_T}$ac_cv_c_const" >&6
3269 if test $ac_cv_c_const = no; then
3270
3271 cat >>confdefs.h <<\_ACEOF
3272 #define const
3273 _ACEOF
3274
3275 fi
3276
3277 echo "$as_me:$LINENO: checking for inline" >&5
3278 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3279 if test "${ac_cv_c_inline+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   ac_cv_c_inline=no
3283 for ac_kw in inline __inline__ __inline; do
3284   cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290 #ifndef __cplusplus
3291 typedef int foo_t;
3292 static $ac_kw foo_t static_foo () {return 0; }
3293 $ac_kw foo_t foo () {return 0; }
3294 #endif
3295
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3299   (eval $ac_compile) 2>conftest.er1
3300   ac_status=$?
3301   grep -v '^ *+' conftest.er1 >conftest.err
3302   rm -f conftest.er1
3303   cat conftest.err >&5
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); } &&
3306          { ac_try='test -z "$ac_c_werror_flag"
3307                          || test ! -s conftest.err'
3308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309   (eval $ac_try) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); }; } &&
3313          { ac_try='test -s conftest.$ac_objext'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_c_inline=$ac_kw; break
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324 fi
3325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3326 done
3327
3328 fi
3329 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3330 echo "${ECHO_T}$ac_cv_c_inline" >&6
3331
3332
3333 case $ac_cv_c_inline in
3334   inline | yes) ;;
3335   *)
3336     case $ac_cv_c_inline in
3337       no) ac_val=;;
3338       *) ac_val=$ac_cv_c_inline;;
3339     esac
3340     cat >>confdefs.h <<_ACEOF
3341 #ifndef __cplusplus
3342 #define inline $ac_val
3343 #endif
3344 _ACEOF
3345     ;;
3346 esac
3347
3348
3349
3350 ## ----------------------- ##
3351 ## Libtool initialisation. ##
3352 ## ----------------------- ##
3353
3354
3355 # Check whether --enable-shared or --disable-shared was given.
3356 if test "${enable_shared+set}" = set; then
3357   enableval="$enable_shared"
3358   p=${PACKAGE-default}
3359     case $enableval in
3360     yes) enable_shared=yes ;;
3361     no) enable_shared=no ;;
3362     *)
3363       enable_shared=no
3364       # Look at the argument we got.  We use all the common list separators.
3365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3366       for pkg in $enableval; do
3367         IFS="$lt_save_ifs"
3368         if test "X$pkg" = "X$p"; then
3369           enable_shared=yes
3370         fi
3371       done
3372       IFS="$lt_save_ifs"
3373       ;;
3374     esac
3375 else
3376   enable_shared=yes
3377 fi;
3378
3379 # Check whether --enable-static or --disable-static was given.
3380 if test "${enable_static+set}" = set; then
3381   enableval="$enable_static"
3382   p=${PACKAGE-default}
3383     case $enableval in
3384     yes) enable_static=yes ;;
3385     no) enable_static=no ;;
3386     *)
3387      enable_static=no
3388       # Look at the argument we got.  We use all the common list separators.
3389       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3390       for pkg in $enableval; do
3391         IFS="$lt_save_ifs"
3392         if test "X$pkg" = "X$p"; then
3393           enable_static=yes
3394         fi
3395       done
3396       IFS="$lt_save_ifs"
3397       ;;
3398     esac
3399 else
3400   enable_static=yes
3401 fi;
3402
3403 # Check whether --enable-fast-install or --disable-fast-install was given.
3404 if test "${enable_fast_install+set}" = set; then
3405   enableval="$enable_fast_install"
3406   p=${PACKAGE-default}
3407     case $enableval in
3408     yes) enable_fast_install=yes ;;
3409     no) enable_fast_install=no ;;
3410     *)
3411       enable_fast_install=no
3412       # Look at the argument we got.  We use all the common list separators.
3413       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3414       for pkg in $enableval; do
3415         IFS="$lt_save_ifs"
3416         if test "X$pkg" = "X$p"; then
3417           enable_fast_install=yes
3418         fi
3419       done
3420       IFS="$lt_save_ifs"
3421       ;;
3422     esac
3423 else
3424   enable_fast_install=yes
3425 fi;
3426
3427 # Make sure we can run config.sub.
3428 $ac_config_sub sun4 >/dev/null 2>&1 ||
3429   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3431    { (exit 1); exit 1; }; }
3432
3433 echo "$as_me:$LINENO: checking build system type" >&5
3434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3435 if test "${ac_cv_build+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   ac_cv_build_alias=$build_alias
3439 test -z "$ac_cv_build_alias" &&
3440   ac_cv_build_alias=`$ac_config_guess`
3441 test -z "$ac_cv_build_alias" &&
3442   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3444    { (exit 1); exit 1; }; }
3445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3446   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3448    { (exit 1); exit 1; }; }
3449
3450 fi
3451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3452 echo "${ECHO_T}$ac_cv_build" >&6
3453 build=$ac_cv_build
3454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3457
3458
3459 echo "$as_me:$LINENO: checking host system type" >&5
3460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3461 if test "${ac_cv_host+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464   ac_cv_host_alias=$host_alias
3465 test -z "$ac_cv_host_alias" &&
3466   ac_cv_host_alias=$ac_cv_build_alias
3467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3468   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3470    { (exit 1); exit 1; }; }
3471
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3474 echo "${ECHO_T}$ac_cv_host" >&6
3475 host=$ac_cv_host
3476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3479
3480
3481 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3482 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3483 if test "${lt_cv_path_SED+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   # Loop through the user's path and test for sed and gsed.
3487 # Then use that list of sed's as ones to test for truncation.
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491   IFS=$as_save_IFS
3492   test -z "$as_dir" && as_dir=.
3493   for lt_ac_prog in sed gsed; do
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3496         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3497       fi
3498     done
3499   done
3500 done
3501 lt_ac_max=0
3502 lt_ac_count=0
3503 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3504 # along with /bin/sed that truncates output.
3505 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3506   test ! -f $lt_ac_sed && continue
3507   cat /dev/null > conftest.in
3508   lt_ac_count=0
3509   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3510   # Check for GNU sed and select it if it is found.
3511   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3512     lt_cv_path_SED=$lt_ac_sed
3513     break
3514   fi
3515   while true; do
3516     cat conftest.in conftest.in >conftest.tmp
3517     mv conftest.tmp conftest.in
3518     cp conftest.in conftest.nl
3519     echo >>conftest.nl
3520     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3521     cmp -s conftest.out conftest.nl || break
3522     # 10000 chars as input seems more than enough
3523     test $lt_ac_count -gt 10 && break
3524     lt_ac_count=`expr $lt_ac_count + 1`
3525     if test $lt_ac_count -gt $lt_ac_max; then
3526       lt_ac_max=$lt_ac_count
3527       lt_cv_path_SED=$lt_ac_sed
3528     fi
3529   done
3530 done
3531
3532 fi
3533
3534 SED=$lt_cv_path_SED
3535 echo "$as_me:$LINENO: result: $SED" >&5
3536 echo "${ECHO_T}$SED" >&6
3537
3538 echo "$as_me:$LINENO: checking for egrep" >&5
3539 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3540 if test "${ac_cv_prog_egrep+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3544     then ac_cv_prog_egrep='grep -E'
3545     else ac_cv_prog_egrep='egrep'
3546     fi
3547 fi
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3549 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3550  EGREP=$ac_cv_prog_egrep
3551
3552
3553
3554 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3555 if test "${with_gnu_ld+set}" = set; then
3556   withval="$with_gnu_ld"
3557   test "$withval" = no || with_gnu_ld=yes
3558 else
3559   with_gnu_ld=no
3560 fi;
3561 ac_prog=ld
3562 if test "$GCC" = yes; then
3563   # Check if gcc -print-prog-name=ld gives a path.
3564   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3565 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3566   case $host in
3567   *-*-mingw*)
3568     # gcc leaves a trailing carriage return which upsets mingw
3569     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3570   *)
3571     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3572   esac
3573   case $ac_prog in
3574     # Accept absolute paths.
3575     [\\/]* | ?:[\\/]*)
3576       re_direlt='/[^/][^/]*/\.\./'
3577       # Canonicalize the pathname of ld
3578       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3579       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3580         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3581       done
3582       test -z "$LD" && LD="$ac_prog"
3583       ;;
3584   "")
3585     # If it fails, then pretend we aren't using GCC.
3586     ac_prog=ld
3587     ;;
3588   *)
3589     # If it is relative, then search for the first ld in PATH.
3590     with_gnu_ld=unknown
3591     ;;
3592   esac
3593 elif test "$with_gnu_ld" = yes; then
3594   echo "$as_me:$LINENO: checking for GNU ld" >&5
3595 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3596 else
3597   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3598 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3599 fi
3600 if test "${lt_cv_path_LD+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   if test -z "$LD"; then
3604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605   for ac_dir in $PATH; do
3606     IFS="$lt_save_ifs"
3607     test -z "$ac_dir" && ac_dir=.
3608     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3609       lt_cv_path_LD="$ac_dir/$ac_prog"
3610       # Check to see if the program is GNU ld.  I'd rather use --version,
3611       # but apparently some GNU ld's only accept -v.
3612       # Break only if it was the GNU/non-GNU ld that we prefer.
3613       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3614       *GNU* | *'with BFD'*)
3615         test "$with_gnu_ld" != no && break
3616         ;;
3617       *)
3618         test "$with_gnu_ld" != yes && break
3619         ;;
3620       esac
3621     fi
3622   done
3623   IFS="$lt_save_ifs"
3624 else
3625   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3626 fi
3627 fi
3628
3629 LD="$lt_cv_path_LD"
3630 if test -n "$LD"; then
3631   echo "$as_me:$LINENO: result: $LD" >&5
3632 echo "${ECHO_T}$LD" >&6
3633 else
3634   echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3636 fi
3637 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3638 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3639    { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3641 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3642 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3646 case `$LD -v 2>&1 </dev/null` in
3647 *GNU* | *'with BFD'*)
3648   lt_cv_prog_gnu_ld=yes
3649   ;;
3650 *)
3651   lt_cv_prog_gnu_ld=no
3652   ;;
3653 esac
3654 fi
3655 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3656 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3657 with_gnu_ld=$lt_cv_prog_gnu_ld
3658
3659
3660 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3661 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3662 if test "${lt_cv_ld_reload_flag+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   lt_cv_ld_reload_flag='-r'
3666 fi
3667 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3668 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3669 reload_flag=$lt_cv_ld_reload_flag
3670 case $reload_flag in
3671 "" | " "*) ;;
3672 *) reload_flag=" $reload_flag" ;;
3673 esac
3674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3675 case $host_os in
3676   darwin*)
3677     if test "$GCC" = yes; then
3678       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3679     else
3680       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3681     fi
3682     ;;
3683 esac
3684
3685 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3686 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3687 if test "${lt_cv_path_NM+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   if test -n "$NM"; then
3691   # Let the user override the test.
3692   lt_cv_path_NM="$NM"
3693 else
3694   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3695   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3696     IFS="$lt_save_ifs"
3697     test -z "$ac_dir" && ac_dir=.
3698     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3699     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3700       # Check to see if the nm accepts a BSD-compat flag.
3701       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3702       #   nm: unknown option "B" ignored
3703       # Tru64's nm complains that /dev/null is an invalid object file
3704       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3705       */dev/null* | *'Invalid file or object type'*)
3706         lt_cv_path_NM="$tmp_nm -B"
3707         break
3708         ;;
3709       *)
3710         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3711         */dev/null*)
3712           lt_cv_path_NM="$tmp_nm -p"
3713           break
3714           ;;
3715         *)
3716           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3717           continue # so that we can try to find one that supports BSD flags
3718           ;;
3719         esac
3720       esac
3721     fi
3722   done
3723   IFS="$lt_save_ifs"
3724   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3725 fi
3726 fi
3727 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3728 echo "${ECHO_T}$lt_cv_path_NM" >&6
3729 NM="$lt_cv_path_NM"
3730
3731 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3732 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3733 LN_S=$as_ln_s
3734 if test "$LN_S" = "ln -s"; then
3735   echo "$as_me:$LINENO: result: yes" >&5
3736 echo "${ECHO_T}yes" >&6
3737 else
3738   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3739 echo "${ECHO_T}no, using $LN_S" >&6
3740 fi
3741
3742 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3743 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3744 if test "${lt_cv_deplibs_check_method+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   lt_cv_file_magic_cmd='$MAGIC_CMD'
3748 lt_cv_file_magic_test_file=
3749 lt_cv_deplibs_check_method='unknown'
3750 # Need to set the preceding variable on all platforms that support
3751 # interlibrary dependencies.
3752 # 'none' -- dependencies not supported.
3753 # `unknown' -- same as none, but documents that we really don't know.
3754 # 'pass_all' -- all dependencies passed with no checks.
3755 # 'test_compile' -- check by making test program.
3756 # 'file_magic [[regex]]' -- check by looking for files in library path
3757 # which responds to the $file_magic_cmd with a given extended regex.
3758 # If you have `file' or equivalent on your system and you're not sure
3759 # whether `pass_all' will *always* work, you probably want this one.
3760
3761 case $host_os in
3762 aix4* | aix5*)
3763   lt_cv_deplibs_check_method=pass_all
3764   ;;
3765
3766 beos*)
3767   lt_cv_deplibs_check_method=pass_all
3768   ;;
3769
3770 bsdi[45]*)
3771   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3772   lt_cv_file_magic_cmd='/usr/bin/file -L'
3773   lt_cv_file_magic_test_file=/shlib/libc.so
3774   ;;
3775
3776 cygwin*)
3777   # func_win32_libid is a shell function defined in ltmain.sh
3778   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3779   lt_cv_file_magic_cmd='func_win32_libid'
3780   ;;
3781
3782 mingw* | pw32*)
3783   # Base MSYS/MinGW do not provide the 'file' command needed by
3784   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3785   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3786   lt_cv_file_magic_cmd='$OBJDUMP -f'
3787   ;;
3788
3789 darwin* | rhapsody*)
3790   lt_cv_deplibs_check_method=pass_all
3791   ;;
3792
3793 freebsd* | kfreebsd*-gnu | dragonfly*)
3794   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3795     case $host_cpu in
3796     i*86 )
3797       # Not sure whether the presence of OpenBSD here was a mistake.
3798       # Let's accept both of them until this is cleared up.
3799       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3800       lt_cv_file_magic_cmd=/usr/bin/file
3801       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3802       ;;
3803     esac
3804   else
3805     lt_cv_deplibs_check_method=pass_all
3806   fi
3807   ;;
3808
3809 gnu*)
3810   lt_cv_deplibs_check_method=pass_all
3811   ;;
3812
3813 hpux10.20* | hpux11*)
3814   lt_cv_file_magic_cmd=/usr/bin/file
3815   case "$host_cpu" in
3816   ia64*)
3817     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3818     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3819     ;;
3820   hppa*64*)
3821     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]'
3822     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3823     ;;
3824   *)
3825     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3826     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3827     ;;
3828   esac
3829   ;;
3830
3831 irix5* | irix6* | nonstopux*)
3832   case $LD in
3833   *-32|*"-32 ") libmagic=32-bit;;
3834   *-n32|*"-n32 ") libmagic=N32;;
3835   *-64|*"-64 ") libmagic=64-bit;;
3836   *) libmagic=never-match;;
3837   esac
3838   lt_cv_deplibs_check_method=pass_all
3839   ;;
3840
3841 # This must be Linux ELF.
3842 linux*)
3843   lt_cv_deplibs_check_method=pass_all
3844   ;;
3845
3846 netbsd*)
3847   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3848     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3849   else
3850     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3851   fi
3852   ;;
3853
3854 newos6*)
3855   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3856   lt_cv_file_magic_cmd=/usr/bin/file
3857   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3858   ;;
3859
3860 nto-qnx*)
3861   lt_cv_deplibs_check_method=unknown
3862   ;;
3863
3864 openbsd*)
3865   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3866     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3867   else
3868     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3869   fi
3870   ;;
3871
3872 osf3* | osf4* | osf5*)
3873   lt_cv_deplibs_check_method=pass_all
3874   ;;
3875
3876 sco3.2v5*)
3877   lt_cv_deplibs_check_method=pass_all
3878   ;;
3879
3880 solaris*)
3881   lt_cv_deplibs_check_method=pass_all
3882   ;;
3883
3884 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3885   case $host_vendor in
3886   motorola)
3887     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]'
3888     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3889     ;;
3890   ncr)
3891     lt_cv_deplibs_check_method=pass_all
3892     ;;
3893   sequent)
3894     lt_cv_file_magic_cmd='/bin/file'
3895     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3896     ;;
3897   sni)
3898     lt_cv_file_magic_cmd='/bin/file'
3899     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3900     lt_cv_file_magic_test_file=/lib/libc.so
3901     ;;
3902   siemens)
3903     lt_cv_deplibs_check_method=pass_all
3904     ;;
3905   esac
3906   ;;
3907
3908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3909   lt_cv_deplibs_check_method=pass_all
3910   ;;
3911 esac
3912
3913 fi
3914 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3915 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3916 file_magic_cmd=$lt_cv_file_magic_cmd
3917 deplibs_check_method=$lt_cv_deplibs_check_method
3918 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3919
3920
3921
3922
3923 # If no C compiler was specified, use CC.
3924 LTCC=${LTCC-"$CC"}
3925
3926 # Allow CC to be a program name with arguments.
3927 compiler=$CC
3928
3929 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3930 if test "${enable_libtool_lock+set}" = set; then
3931   enableval="$enable_libtool_lock"
3932
3933 fi;
3934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3935
3936 # Some flags need to be propagated to the compiler or linker for good
3937 # libtool support.
3938 case $host in
3939 ia64-*-hpux*)
3940   # Find out which ABI we are using.
3941   echo 'int i;' > conftest.$ac_ext
3942   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943   (eval $ac_compile) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; then
3947     case `/usr/bin/file conftest.$ac_objext` in
3948     *ELF-32*)
3949       HPUX_IA64_MODE="32"
3950       ;;
3951     *ELF-64*)
3952       HPUX_IA64_MODE="64"
3953       ;;
3954     esac
3955   fi
3956   rm -rf conftest*
3957   ;;
3958 *-*-irix6*)
3959   # Find out which ABI we are using.
3960   echo '#line 3960 "configure"' > conftest.$ac_ext
3961   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962   (eval $ac_compile) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; then
3966    if test "$lt_cv_prog_gnu_ld" = yes; then
3967     case `/usr/bin/file conftest.$ac_objext` in
3968     *32-bit*)
3969       LD="${LD-ld} -melf32bsmip"
3970       ;;
3971     *N32*)
3972       LD="${LD-ld} -melf32bmipn32"
3973       ;;
3974     *64-bit*)
3975       LD="${LD-ld} -melf64bmip"
3976       ;;
3977     esac
3978    else
3979     case `/usr/bin/file conftest.$ac_objext` in
3980     *32-bit*)
3981       LD="${LD-ld} -32"
3982       ;;
3983     *N32*)
3984       LD="${LD-ld} -n32"
3985       ;;
3986     *64-bit*)
3987       LD="${LD-ld} -64"
3988       ;;
3989     esac
3990    fi
3991   fi
3992   rm -rf conftest*
3993   ;;
3994
3995 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3996   # Find out which ABI we are using.
3997   echo 'int i;' > conftest.$ac_ext
3998   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3999   (eval $ac_compile) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; then
4003     case "`/usr/bin/file conftest.o`" in
4004     *32-bit*)
4005       case $host in
4006         x86_64-*linux*)
4007           LD="${LD-ld} -m elf_i386"
4008           ;;
4009         ppc64-*linux*|powerpc64-*linux*)
4010           LD="${LD-ld} -m elf32ppclinux"
4011           ;;
4012         s390x-*linux*)
4013           LD="${LD-ld} -m elf_s390"
4014           ;;
4015         sparc64-*linux*)
4016           LD="${LD-ld} -m elf32_sparc"
4017           ;;
4018       esac
4019       ;;
4020     *64-bit*)
4021       case $host in
4022         x86_64-*linux*)
4023           LD="${LD-ld} -m elf_x86_64"
4024           ;;
4025         ppc*-*linux*|powerpc*-*linux*)
4026           LD="${LD-ld} -m elf64ppc"
4027           ;;
4028         s390*-*linux*)
4029           LD="${LD-ld} -m elf64_s390"
4030           ;;
4031         sparc*-*linux*)
4032           LD="${LD-ld} -m elf64_sparc"
4033           ;;
4034       esac
4035       ;;
4036     esac
4037   fi
4038   rm -rf conftest*
4039   ;;
4040
4041 *-*-sco3.2v5*)
4042   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4043   SAVE_CFLAGS="$CFLAGS"
4044   CFLAGS="$CFLAGS -belf"
4045   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4046 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4047 if test "${lt_cv_cc_needs_belf+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056      cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073   (eval $ac_link) 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } &&
4080          { ac_try='test -z "$ac_c_werror_flag"
4081                          || test ! -s conftest.err'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; } &&
4087          { ac_try='test -s conftest$ac_exeext'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; }; then
4093   lt_cv_cc_needs_belf=yes
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 lt_cv_cc_needs_belf=no
4099 fi
4100 rm -f conftest.err conftest.$ac_objext \
4101       conftest$ac_exeext conftest.$ac_ext
4102      ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108 fi
4109 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4110 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4111   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4112     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4113     CFLAGS="$SAVE_CFLAGS"
4114   fi
4115   ;;
4116 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4117   if test -n "$ac_tool_prefix"; then
4118   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   if test -n "$DLLTOOL"; then
4126   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133   for ac_exec_ext in '' $ac_executable_extensions; do
4134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140 done
4141
4142 fi
4143 fi
4144 DLLTOOL=$ac_cv_prog_DLLTOOL
4145 if test -n "$DLLTOOL"; then
4146   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4147 echo "${ECHO_T}$DLLTOOL" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153 fi
4154 if test -z "$ac_cv_prog_DLLTOOL"; then
4155   ac_ct_DLLTOOL=$DLLTOOL
4156   # Extract the first word of "dlltool", so it can be a program name with args.
4157 set dummy dlltool; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$ac_ct_DLLTOOL"; then
4164   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4181 fi
4182 fi
4183 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4184 if test -n "$ac_ct_DLLTOOL"; then
4185   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4186 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4187 else
4188   echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 fi
4191
4192   DLLTOOL=$ac_ct_DLLTOOL
4193 else
4194   DLLTOOL="$ac_cv_prog_DLLTOOL"
4195 fi
4196
4197   if test -n "$ac_tool_prefix"; then
4198   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}as; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_AS+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   if test -n "$AS"; then
4206   ac_cv_prog_AS="$AS" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   for ac_exec_ext in '' $ac_executable_extensions; do
4214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215     ac_cv_prog_AS="${ac_tool_prefix}as"
4216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220 done
4221
4222 fi
4223 fi
4224 AS=$ac_cv_prog_AS
4225 if test -n "$AS"; then
4226   echo "$as_me:$LINENO: result: $AS" >&5
4227 echo "${ECHO_T}$AS" >&6
4228 else
4229   echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233 fi
4234 if test -z "$ac_cv_prog_AS"; then
4235   ac_ct_AS=$AS
4236   # Extract the first word of "as", so it can be a program name with args.
4237 set dummy as; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   if test -n "$ac_ct_AS"; then
4244   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_prog_ac_ct_AS="as"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4261 fi
4262 fi
4263 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4264 if test -n "$ac_ct_AS"; then
4265   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4266 echo "${ECHO_T}$ac_ct_AS" >&6
4267 else
4268   echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4270 fi
4271
4272   AS=$ac_ct_AS
4273 else
4274   AS="$ac_cv_prog_AS"
4275 fi
4276
4277   if test -n "$ac_tool_prefix"; then
4278   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$OBJDUMP"; then
4286   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302 fi
4303 fi
4304 OBJDUMP=$ac_cv_prog_OBJDUMP
4305 if test -n "$OBJDUMP"; then
4306   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4307 echo "${ECHO_T}$OBJDUMP" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313 fi
4314 if test -z "$ac_cv_prog_OBJDUMP"; then
4315   ac_ct_OBJDUMP=$OBJDUMP
4316   # Extract the first word of "objdump", so it can be a program name with args.
4317 set dummy objdump; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$ac_ct_OBJDUMP"; then
4324   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4341 fi
4342 fi
4343 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4344 if test -n "$ac_ct_OBJDUMP"; then
4345   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4346 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4347 else
4348   echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352   OBJDUMP=$ac_ct_OBJDUMP
4353 else
4354   OBJDUMP="$ac_cv_prog_OBJDUMP"
4355 fi
4356
4357   ;;
4358
4359 esac
4360
4361 need_locks="$enable_libtool_lock"
4362
4363
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4371 # On Suns, sometimes $CPP names a directory.
4372 if test -n "$CPP" && test -d "$CPP"; then
4373   CPP=
4374 fi
4375 if test -z "$CPP"; then
4376   if test "${ac_cv_prog_CPP+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379       # Double quotes because CPP needs to be expanded
4380     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4381     do
4382       ac_preproc_ok=false
4383 for ac_c_preproc_warn_flag in '' yes
4384 do
4385   # Use a header file that comes with gcc, so configuring glibc
4386   # with a fresh cross-compiler works.
4387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388   # <limits.h> exists even on freestanding compilers.
4389   # On the NeXT, cc -E runs the code through the compiler's parser,
4390   # not just through cpp. "Syntax error" is here to catch this case.
4391   cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 #ifdef __STDC__
4398 # include <limits.h>
4399 #else
4400 # include <assert.h>
4401 #endif
4402                      Syntax error
4403 _ACEOF
4404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } >/dev/null; then
4412   if test -s conftest.err; then
4413     ac_cpp_err=$ac_c_preproc_warn_flag
4414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4415   else
4416     ac_cpp_err=
4417   fi
4418 else
4419   ac_cpp_err=yes
4420 fi
4421 if test -z "$ac_cpp_err"; then
4422   :
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427   # Broken: fails on valid input.
4428 continue
4429 fi
4430 rm -f conftest.err conftest.$ac_ext
4431
4432   # OK, works on sane cases.  Now check whether non-existent headers
4433   # can be detected and how.
4434   cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h.  */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h.  */
4440 #include <ac_nonexistent.h>
4441 _ACEOF
4442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444   ac_status=$?
4445   grep -v '^ *+' conftest.er1 >conftest.err
4446   rm -f conftest.er1
4447   cat conftest.err >&5
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } >/dev/null; then
4450   if test -s conftest.err; then
4451     ac_cpp_err=$ac_c_preproc_warn_flag
4452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4453   else
4454     ac_cpp_err=
4455   fi
4456 else
4457   ac_cpp_err=yes
4458 fi
4459 if test -z "$ac_cpp_err"; then
4460   # Broken: success on invalid input.
4461 continue
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466   # Passes both tests.
4467 ac_preproc_ok=:
4468 break
4469 fi
4470 rm -f conftest.err conftest.$ac_ext
4471
4472 done
4473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474 rm -f conftest.err conftest.$ac_ext
4475 if $ac_preproc_ok; then
4476   break
4477 fi
4478
4479     done
4480     ac_cv_prog_CPP=$CPP
4481
4482 fi
4483   CPP=$ac_cv_prog_CPP
4484 else
4485   ac_cv_prog_CPP=$CPP
4486 fi
4487 echo "$as_me:$LINENO: result: $CPP" >&5
4488 echo "${ECHO_T}$CPP" >&6
4489 ac_preproc_ok=false
4490 for ac_c_preproc_warn_flag in '' yes
4491 do
4492   # Use a header file that comes with gcc, so configuring glibc
4493   # with a fresh cross-compiler works.
4494   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495   # <limits.h> exists even on freestanding compilers.
4496   # On the NeXT, cc -E runs the code through the compiler's parser,
4497   # not just through cpp. "Syntax error" is here to catch this case.
4498   cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h.  */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h.  */
4504 #ifdef __STDC__
4505 # include <limits.h>
4506 #else
4507 # include <assert.h>
4508 #endif
4509                      Syntax error
4510 _ACEOF
4511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4513   ac_status=$?
4514   grep -v '^ *+' conftest.er1 >conftest.err
4515   rm -f conftest.er1
4516   cat conftest.err >&5
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } >/dev/null; then
4519   if test -s conftest.err; then
4520     ac_cpp_err=$ac_c_preproc_warn_flag
4521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4522   else
4523     ac_cpp_err=
4524   fi
4525 else
4526   ac_cpp_err=yes
4527 fi
4528 if test -z "$ac_cpp_err"; then
4529   :
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534   # Broken: fails on valid input.
4535 continue
4536 fi
4537 rm -f conftest.err conftest.$ac_ext
4538
4539   # OK, works on sane cases.  Now check whether non-existent headers
4540   # can be detected and how.
4541   cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547 #include <ac_nonexistent.h>
4548 _ACEOF
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } >/dev/null; then
4557   if test -s conftest.err; then
4558     ac_cpp_err=$ac_c_preproc_warn_flag
4559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4560   else
4561     ac_cpp_err=
4562   fi
4563 else
4564   ac_cpp_err=yes
4565 fi
4566 if test -z "$ac_cpp_err"; then
4567   # Broken: success on invalid input.
4568 continue
4569 else
4570   echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573   # Passes both tests.
4574 ac_preproc_ok=:
4575 break
4576 fi
4577 rm -f conftest.err conftest.$ac_ext
4578
4579 done
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then
4583   :
4584 else
4585   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." >&2;}
4589    { (exit 1); exit 1; }; }
4590 fi
4591
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598
4599 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4601 if test "${ac_cv_header_stdc+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <stdlib.h>
4611 #include <stdarg.h>
4612 #include <string.h>
4613 #include <float.h>
4614
4615 int
4616 main ()
4617 {
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625   (eval $ac_compile) 2>conftest.er1
4626   ac_status=$?
4627   grep -v '^ *+' conftest.er1 >conftest.err
4628   rm -f conftest.er1
4629   cat conftest.err >&5
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } &&
4632          { ac_try='test -z "$ac_c_werror_flag"
4633                          || test ! -s conftest.err'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   ac_cv_header_stdc=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_cv_header_stdc=no
4651 fi
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656   cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662 #include <string.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "memchr" >/dev/null 2>&1; then
4667   :
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #include <stdlib.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687   $EGREP "free" >/dev/null 2>&1; then
4688   :
4689 else
4690   ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698   if test "$cross_compiling" = yes; then
4699   :
4700 else
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #include <ctype.h>
4708 #if ((' ' & 0x0FF) == 0x020)
4709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4711 #else
4712 # define ISLOWER(c) \
4713                    (('a' <= (c) && (c) <= 'i') \
4714                      || ('j' <= (c) && (c) <= 'r') \
4715                      || ('s' <= (c) && (c) <= 'z'))
4716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4717 #endif
4718
4719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4720 int
4721 main ()
4722 {
4723   int i;
4724   for (i = 0; i < 256; i++)
4725     if (XOR (islower (i), ISLOWER (i))
4726         || toupper (i) != TOUPPER (i))
4727       exit(2);
4728   exit (0);
4729 }
4730 _ACEOF
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733   (eval $ac_link) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738   (eval $ac_try) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; }; then
4742   :
4743 else
4744   echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ( exit $ac_status )
4749 ac_cv_header_stdc=no
4750 fi
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 fi
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4757 if test $ac_cv_header_stdc = yes; then
4758
4759 cat >>confdefs.h <<\_ACEOF
4760 #define STDC_HEADERS 1
4761 _ACEOF
4762
4763 fi
4764
4765 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4776                   inttypes.h stdint.h unistd.h
4777 do
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_header" >&5
4780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790 $ac_includes_default
4791
4792 #include <$ac_header>
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796   (eval $ac_compile) 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } &&
4803          { ac_try='test -z "$ac_c_werror_flag"
4804                          || test ! -s conftest.err'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; } &&
4810          { ac_try='test -s conftest.$ac_objext'
4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812   (eval $ac_try) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; }; then
4816   eval "$as_ac_Header=yes"
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 eval "$as_ac_Header=no"
4822 fi
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4828   cat >>confdefs.h <<_ACEOF
4829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830 _ACEOF
4831
4832 fi
4833
4834 done
4835
4836
4837
4838 for ac_header in dlfcn.h
4839 do
4840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4842   echo "$as_me:$LINENO: checking for $ac_header" >&5
4843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 fi
4847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4849 else
4850   # Is the header compilable?
4851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 $ac_includes_default
4860 #include <$ac_header>
4861 _ACEOF
4862 rm -f conftest.$ac_objext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864   (eval $ac_compile) 2>conftest.er1
4865   ac_status=$?
4866   grep -v '^ *+' conftest.er1 >conftest.err
4867   rm -f conftest.er1
4868   cat conftest.err >&5
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); } &&
4871          { ac_try='test -z "$ac_c_werror_flag"
4872                          || test ! -s conftest.err'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; } &&
4878          { ac_try='test -s conftest.$ac_objext'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; }; then
4884   ac_header_compiler=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 ac_header_compiler=no
4890 fi
4891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4893 echo "${ECHO_T}$ac_header_compiler" >&6
4894
4895 # Is the header present?
4896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #include <$ac_header>
4905 _ACEOF
4906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } >/dev/null; then
4914   if test -s conftest.err; then
4915     ac_cpp_err=$ac_c_preproc_warn_flag
4916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917   else
4918     ac_cpp_err=
4919   fi
4920 else
4921   ac_cpp_err=yes
4922 fi
4923 if test -z "$ac_cpp_err"; then
4924   ac_header_preproc=yes
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929   ac_header_preproc=no
4930 fi
4931 rm -f conftest.err conftest.$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4933 echo "${ECHO_T}$ac_header_preproc" >&6
4934
4935 # So?  What about this header?
4936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4937   yes:no: )
4938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4942     ac_header_preproc=yes
4943     ;;
4944   no:yes:* )
4945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4957     (
4958       cat <<\_ASBOX
4959 ## ---------------------------------- ##
4960 ## Report this to bug-libtool@gnu.org ##
4961 ## ---------------------------------- ##
4962 _ASBOX
4963     ) |
4964       sed "s/^/$as_me: WARNING:     /" >&2
4965     ;;
4966 esac
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   eval "$as_ac_Header=\$ac_header_preproc"
4973 fi
4974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4976
4977 fi
4978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4979   cat >>confdefs.h <<_ACEOF
4980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981 _ACEOF
4982
4983 fi
4984
4985 done
4986
4987 ac_ext=cc
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4992 if test -n "$ac_tool_prefix"; then
4993   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4994   do
4995     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997 echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999 if test "${ac_cv_prog_CXX+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   if test -n "$CXX"; then
5003   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010   for ac_exec_ext in '' $ac_executable_extensions; do
5011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017 done
5018
5019 fi
5020 fi
5021 CXX=$ac_cv_prog_CXX
5022 if test -n "$CXX"; then
5023   echo "$as_me:$LINENO: result: $CXX" >&5
5024 echo "${ECHO_T}$CXX" >&6
5025 else
5026   echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5028 fi
5029
5030     test -n "$CXX" && break
5031   done
5032 fi
5033 if test -z "$CXX"; then
5034   ac_ct_CXX=$CXX
5035   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5036 do
5037   # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044   if test -n "$ac_ct_CXX"; then
5045   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052   for ac_exec_ext in '' $ac_executable_extensions; do
5053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054     ac_cv_prog_ac_ct_CXX="$ac_prog"
5055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059 done
5060
5061 fi
5062 fi
5063 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5064 if test -n "$ac_ct_CXX"; then
5065   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5066 echo "${ECHO_T}$ac_ct_CXX" >&6
5067 else
5068   echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 fi
5071
5072   test -n "$ac_ct_CXX" && break
5073 done
5074 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5075
5076   CXX=$ac_ct_CXX
5077 fi
5078
5079
5080 # Provide some information about the compiler.
5081 echo "$as_me:$LINENO:" \
5082      "checking for C++ compiler version" >&5
5083 ac_compiler=`set X $ac_compile; echo $2`
5084 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5085   (eval $ac_compiler --version </dev/null >&5) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }
5089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5090   (eval $ac_compiler -v </dev/null >&5) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }
5094 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5095   (eval $ac_compiler -V </dev/null >&5) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }
5099
5100 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5101 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5102 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111
5112 int
5113 main ()
5114 {
5115 #ifndef __GNUC__
5116        choke me
5117 #endif
5118
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest.$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125   (eval $ac_compile) 2>conftest.er1
5126   ac_status=$?
5127   grep -v '^ *+' conftest.er1 >conftest.err
5128   rm -f conftest.er1
5129   cat conftest.err >&5
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } &&
5132          { ac_try='test -z "$ac_cxx_werror_flag"
5133                          || test ! -s conftest.err'
5134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135   (eval $ac_try) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; } &&
5139          { ac_try='test -s conftest.$ac_objext'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; }; then
5145   ac_compiler_gnu=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 ac_compiler_gnu=no
5151 fi
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5154
5155 fi
5156 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5157 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5158 GXX=`test $ac_compiler_gnu = yes && echo yes`
5159 ac_test_CXXFLAGS=${CXXFLAGS+set}
5160 ac_save_CXXFLAGS=$CXXFLAGS
5161 CXXFLAGS="-g"
5162 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5163 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5164 if test "${ac_cv_prog_cxx_g+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173
5174 int
5175 main ()
5176 {
5177
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_cxx_werror_flag"
5192                          || test ! -s conftest.err'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; } &&
5198          { ac_try='test -s conftest.$ac_objext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   ac_cv_prog_cxx_g=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_prog_cxx_g=no
5210 fi
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5215 if test "$ac_test_CXXFLAGS" = set; then
5216   CXXFLAGS=$ac_save_CXXFLAGS
5217 elif test $ac_cv_prog_cxx_g = yes; then
5218   if test "$GXX" = yes; then
5219     CXXFLAGS="-g -O2"
5220   else
5221     CXXFLAGS="-g"
5222   fi
5223 else
5224   if test "$GXX" = yes; then
5225     CXXFLAGS="-O2"
5226   else
5227     CXXFLAGS=
5228   fi
5229 fi
5230 for ac_declaration in \
5231    '' \
5232    'extern "C" void std::exit (int) throw (); using std::exit;' \
5233    'extern "C" void std::exit (int); using std::exit;' \
5234    'extern "C" void exit (int) throw ();' \
5235    'extern "C" void exit (int);' \
5236    'void exit (int);'
5237 do
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 $ac_declaration
5245 #include <stdlib.h>
5246 int
5247 main ()
5248 {
5249 exit (42);
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256   (eval $ac_compile) 2>conftest.er1
5257   ac_status=$?
5258   grep -v '^ *+' conftest.er1 >conftest.err
5259   rm -f conftest.er1
5260   cat conftest.err >&5
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } &&
5263          { ac_try='test -z "$ac_cxx_werror_flag"
5264                          || test ! -s conftest.err'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; } &&
5270          { ac_try='test -s conftest.$ac_objext'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276   :
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 continue
5282 fi
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284   cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h.  */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h.  */
5290 $ac_declaration
5291 int
5292 main ()
5293 {
5294 exit (42);
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301   (eval $ac_compile) 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -z "$ac_cxx_werror_flag"
5309                          || test ! -s conftest.err'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   break
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 fi
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5328 done
5329 rm -f conftest*
5330 if test -n "$ac_declaration"; then
5331   echo '#ifdef __cplusplus' >>confdefs.h
5332   echo $ac_declaration      >>confdefs.h
5333   echo '#endif'             >>confdefs.h
5334 fi
5335
5336 ac_ext=cc
5337 ac_cpp='$CXXCPP $CPPFLAGS'
5338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5341
5342 depcc="$CXX"  am_compiler_list=
5343
5344 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5345 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5346 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5350   # We make a subdir and do the tests there.  Otherwise we can end up
5351   # making bogus files that we don't know about and never remove.  For
5352   # instance it was reported that on HP-UX the gcc test will end up
5353   # making a dummy file named `D' -- because `-MD' means `put the output
5354   # in D'.
5355   mkdir conftest.dir
5356   # Copy depcomp to subdir because otherwise we won't find it if we're
5357   # using a relative directory.
5358   cp "$am_depcomp" conftest.dir
5359   cd conftest.dir
5360   # We will build objects and dependencies in a subdirectory because
5361   # it helps to detect inapplicable dependency modes.  For instance
5362   # both Tru64's cc and ICC support -MD to output dependencies as a
5363   # side effect of compilation, but ICC will put the dependencies in
5364   # the current directory while Tru64 will put them in the object
5365   # directory.
5366   mkdir sub
5367
5368   am_cv_CXX_dependencies_compiler_type=none
5369   if test "$am_compiler_list" = ""; then
5370      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5371   fi
5372   for depmode in $am_compiler_list; do
5373     # Setup a source with many dependencies, because some compilers
5374     # like to wrap large dependency lists on column 80 (with \), and
5375     # we should not choose a depcomp mode which is confused by this.
5376     #
5377     # We need to recreate these files for each test, as the compiler may
5378     # overwrite some of them when testing with obscure command lines.
5379     # This happens at least with the AIX C compiler.
5380     : > sub/conftest.c
5381     for i in 1 2 3 4 5 6; do
5382       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5383       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5384       # Solaris 8's {/usr,}/bin/sh.
5385       touch sub/conftst$i.h
5386     done
5387     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5388
5389     case $depmode in
5390     nosideeffect)
5391       # after this tag, mechanisms are not by side-effect, so they'll
5392       # only be used when explicitly requested
5393       if test "x$enable_dependency_tracking" = xyes; then
5394         continue
5395       else
5396         break
5397       fi
5398       ;;
5399     none) break ;;
5400     esac
5401     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5402     # mode.  It turns out that the SunPro C++ compiler does not properly
5403     # handle `-M -o', and we need to detect this.
5404     if depmode=$depmode \
5405        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5406        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5407        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5408          >/dev/null 2>conftest.err &&
5409        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5410        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5411        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5412       # icc doesn't choke on unknown options, it will just issue warnings
5413       # or remarks (even with -Werror).  So we grep stderr for any message
5414       # that says an option was ignored or not supported.
5415       # When given -MP, icc 7.0 and 7.1 complain thusly:
5416       #   icc: Command line warning: ignoring option '-M'; no argument required
5417       # The diagnosis changed in icc 8.0:
5418       #   icc: Command line remark: option '-MP' not supported
5419       if (grep 'ignoring option' conftest.err ||
5420           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5421         am_cv_CXX_dependencies_compiler_type=$depmode
5422         break
5423       fi
5424     fi
5425   done
5426
5427   cd ..
5428   rm -rf conftest.dir
5429 else
5430   am_cv_CXX_dependencies_compiler_type=none
5431 fi
5432
5433 fi
5434 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5435 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5436 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5437
5438
5439
5440 if
5441   test "x$enable_dependency_tracking" != xno \
5442   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5443   am__fastdepCXX_TRUE=
5444   am__fastdepCXX_FALSE='#'
5445 else
5446   am__fastdepCXX_TRUE='#'
5447   am__fastdepCXX_FALSE=
5448 fi
5449
5450
5451
5452
5453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5454     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5455     (test "X$CXX" != "Xg++"))) ; then
5456   ac_ext=cc
5457 ac_cpp='$CXXCPP $CPPFLAGS'
5458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5461 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5462 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5463 if test -z "$CXXCPP"; then
5464   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467       # Double quotes because CXXCPP needs to be expanded
5468     for CXXCPP in "$CXX -E" "/lib/cpp"
5469     do
5470       ac_preproc_ok=false
5471 for ac_cxx_preproc_warn_flag in '' yes
5472 do
5473   # Use a header file that comes with gcc, so configuring glibc
5474   # with a fresh cross-compiler works.
5475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5476   # <limits.h> exists even on freestanding compilers.
5477   # On the NeXT, cc -E runs the code through the compiler's parser,
5478   # not just through cpp. "Syntax error" is here to catch this case.
5479   cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 #ifdef __STDC__
5486 # include <limits.h>
5487 #else
5488 # include <assert.h>
5489 #endif
5490                      Syntax error
5491 _ACEOF
5492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5494   ac_status=$?
5495   grep -v '^ *+' conftest.er1 >conftest.err
5496   rm -f conftest.er1
5497   cat conftest.err >&5
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } >/dev/null; then
5500   if test -s conftest.err; then
5501     ac_cpp_err=$ac_cxx_preproc_warn_flag
5502     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5503   else
5504     ac_cpp_err=
5505   fi
5506 else
5507   ac_cpp_err=yes
5508 fi
5509 if test -z "$ac_cpp_err"; then
5510   :
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515   # Broken: fails on valid input.
5516 continue
5517 fi
5518 rm -f conftest.err conftest.$ac_ext
5519
5520   # OK, works on sane cases.  Now check whether non-existent headers
5521   # can be detected and how.
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } >/dev/null; then
5538   if test -s conftest.err; then
5539     ac_cpp_err=$ac_cxx_preproc_warn_flag
5540     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5541   else
5542     ac_cpp_err=
5543   fi
5544 else
5545   ac_cpp_err=yes
5546 fi
5547 if test -z "$ac_cpp_err"; then
5548   # Broken: success on invalid input.
5549 continue
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554   # Passes both tests.
5555 ac_preproc_ok=:
5556 break
5557 fi
5558 rm -f conftest.err conftest.$ac_ext
5559
5560 done
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then
5564   break
5565 fi
5566
5567     done
5568     ac_cv_prog_CXXCPP=$CXXCPP
5569
5570 fi
5571   CXXCPP=$ac_cv_prog_CXXCPP
5572 else
5573   ac_cv_prog_CXXCPP=$CXXCPP
5574 fi
5575 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5576 echo "${ECHO_T}$CXXCPP" >&6
5577 ac_preproc_ok=false
5578 for ac_cxx_preproc_warn_flag in '' yes
5579 do
5580   # Use a header file that comes with gcc, so configuring glibc
5581   # with a fresh cross-compiler works.
5582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583   # <limits.h> exists even on freestanding compilers.
5584   # On the NeXT, cc -E runs the code through the compiler's parser,
5585   # not just through cpp. "Syntax error" is here to catch this case.
5586   cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 #ifdef __STDC__
5593 # include <limits.h>
5594 #else
5595 # include <assert.h>
5596 #endif
5597                      Syntax error
5598 _ACEOF
5599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } >/dev/null; then
5607   if test -s conftest.err; then
5608     ac_cpp_err=$ac_cxx_preproc_warn_flag
5609     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5610   else
5611     ac_cpp_err=
5612   fi
5613 else
5614   ac_cpp_err=yes
5615 fi
5616 if test -z "$ac_cpp_err"; then
5617   :
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622   # Broken: fails on valid input.
5623 continue
5624 fi
5625 rm -f conftest.err conftest.$ac_ext
5626
5627   # OK, works on sane cases.  Now check whether non-existent headers
5628   # can be detected and how.
5629   cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635 #include <ac_nonexistent.h>
5636 _ACEOF
5637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5639   ac_status=$?
5640   grep -v '^ *+' conftest.er1 >conftest.err
5641   rm -f conftest.er1
5642   cat conftest.err >&5
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } >/dev/null; then
5645   if test -s conftest.err; then
5646     ac_cpp_err=$ac_cxx_preproc_warn_flag
5647     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5648   else
5649     ac_cpp_err=
5650   fi
5651 else
5652   ac_cpp_err=yes
5653 fi
5654 if test -z "$ac_cpp_err"; then
5655   # Broken: success on invalid input.
5656 continue
5657 else
5658   echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661   # Passes both tests.
5662 ac_preproc_ok=:
5663 break
5664 fi
5665 rm -f conftest.err conftest.$ac_ext
5666
5667 done
5668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5669 rm -f conftest.err conftest.$ac_ext
5670 if $ac_preproc_ok; then
5671   :
5672 else
5673   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details." >&5
5675 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5676 See \`config.log' for more details." >&2;}
5677    { (exit 1); exit 1; }; }
5678 fi
5679
5680 ac_ext=cc
5681 ac_cpp='$CXXCPP $CPPFLAGS'
5682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685
5686 fi
5687
5688
5689 ac_ext=f
5690 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5691 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5693 if test -n "$ac_tool_prefix"; then
5694   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5695   do
5696     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_prog_F77+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$F77"; then
5704   ac_cv_prog_F77="$F77" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719
5720 fi
5721 fi
5722 F77=$ac_cv_prog_F77
5723 if test -n "$F77"; then
5724   echo "$as_me:$LINENO: result: $F77" >&5
5725 echo "${ECHO_T}$F77" >&6
5726 else
5727   echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729 fi
5730
5731     test -n "$F77" && break
5732   done
5733 fi
5734 if test -z "$F77"; then
5735   ac_ct_F77=$F77
5736   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5737 do
5738   # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -n "$ac_ct_F77"; then
5746   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_ac_ct_F77="$ac_prog"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761
5762 fi
5763 fi
5764 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5765 if test -n "$ac_ct_F77"; then
5766   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5767 echo "${ECHO_T}$ac_ct_F77" >&6
5768 else
5769   echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6
5771 fi
5772
5773   test -n "$ac_ct_F77" && break
5774 done
5775
5776   F77=$ac_ct_F77
5777 fi
5778
5779
5780 # Provide some information about the compiler.
5781 echo "$as_me:5781:" \
5782      "checking for Fortran 77 compiler version" >&5
5783 ac_compiler=`set X $ac_compile; echo $2`
5784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5785   (eval $ac_compiler --version </dev/null >&5) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }
5789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5790   (eval $ac_compiler -v </dev/null >&5) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }
5794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5795   (eval $ac_compiler -V </dev/null >&5) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }
5799 rm -f a.out
5800
5801 # If we don't use `.F' as extension, the preprocessor is not run on the
5802 # input file.  (Note that this only needs to work for GNU compilers.)
5803 ac_save_ext=$ac_ext
5804 ac_ext=F
5805 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5806 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5807 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   cat >conftest.$ac_ext <<_ACEOF
5811       program main
5812 #ifndef __GNUC__
5813        choke me
5814 #endif
5815
5816       end
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820   (eval $ac_compile) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_f77_werror_flag"
5828                          || test ! -s conftest.err'
5829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830   (eval $ac_try) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; } &&
5834          { ac_try='test -s conftest.$ac_objext'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   ac_compiler_gnu=yes
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_compiler_gnu=no
5846 fi
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5849
5850 fi
5851 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5852 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5853 ac_ext=$ac_save_ext
5854 ac_test_FFLAGS=${FFLAGS+set}
5855 ac_save_FFLAGS=$FFLAGS
5856 FFLAGS=
5857 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5858 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5859 if test "${ac_cv_prog_f77_g+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   FFLAGS=-g
5863 cat >conftest.$ac_ext <<_ACEOF
5864       program main
5865
5866       end
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870   (eval $ac_compile) 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -z "$ac_f77_werror_flag"
5878                          || test ! -s conftest.err'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; } &&
5884          { ac_try='test -s conftest.$ac_objext'
5885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); }; }; then
5890   ac_cv_prog_f77_g=yes
5891 else
5892   echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_cv_prog_f77_g=no
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898
5899 fi
5900 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5901 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5902 if test "$ac_test_FFLAGS" = set; then
5903   FFLAGS=$ac_save_FFLAGS
5904 elif test $ac_cv_prog_f77_g = yes; then
5905   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5906     FFLAGS="-g -O2"
5907   else
5908     FFLAGS="-g"
5909   fi
5910 else
5911   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5912     FFLAGS="-O2"
5913   else
5914     FFLAGS=
5915   fi
5916 fi
5917
5918 G77=`test $ac_compiler_gnu = yes && echo yes`
5919 ac_ext=c
5920 ac_cpp='$CPP $CPPFLAGS'
5921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924
5925
5926
5927 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5928
5929 # find the maximum length of command line arguments
5930 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5931 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5932 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935     i=0
5936   teststring="ABCD"
5937
5938   case $build_os in
5939   msdosdjgpp*)
5940     # On DJGPP, this test can blow up pretty badly due to problems in libc
5941     # (any single argument exceeding 2000 bytes causes a buffer overrun
5942     # during glob expansion).  Even if it were fixed, the result of this
5943     # check would be larger than it should be.
5944     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5945     ;;
5946
5947   gnu*)
5948     # Under GNU Hurd, this test is not required because there is
5949     # no limit to the length of command line arguments.
5950     # Libtool will interpret -1 as no limit whatsoever
5951     lt_cv_sys_max_cmd_len=-1;
5952     ;;
5953
5954   cygwin* | mingw*)
5955     # On Win9x/ME, this test blows up -- it succeeds, but takes
5956     # about 5 minutes as the teststring grows exponentially.
5957     # Worse, since 9x/ME are not pre-emptively multitasking,
5958     # you end up with a "frozen" computer, even though with patience
5959     # the test eventually succeeds (with a max line length of 256k).
5960     # Instead, let's just punt: use the minimum linelength reported by
5961     # all of the supported platforms: 8192 (on NT/2K/XP).
5962     lt_cv_sys_max_cmd_len=8192;
5963     ;;
5964
5965   amigaos*)
5966     # On AmigaOS with pdksh, this test takes hours, literally.
5967     # So we just punt and use a minimum line length of 8192.
5968     lt_cv_sys_max_cmd_len=8192;
5969     ;;
5970
5971   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5972     # This has been around since 386BSD, at least.  Likely further.
5973     if test -x /sbin/sysctl; then
5974       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5975     elif test -x /usr/sbin/sysctl; then
5976       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5977     else
5978       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5979     fi
5980     # And add a safety zone
5981     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5982     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5983     ;;
5984   osf*)
5985     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5986     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5987     # nice to cause kernel panics so lets avoid the loop below.
5988     # First set a reasonable default.
5989     lt_cv_sys_max_cmd_len=16384
5990     #
5991     if test -x /sbin/sysconfig; then
5992       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5993         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5994       esac
5995     fi
5996     ;;
5997   *)
5998     # If test is not a shell built-in, we'll probably end up computing a
5999     # maximum length that is only half of the actual maximum length, but
6000     # we can't tell.
6001     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6002     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6003                = "XX$teststring") >/dev/null 2>&1 &&
6004             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6005             lt_cv_sys_max_cmd_len=$new_result &&
6006             test $i != 17 # 1/2 MB should be enough
6007     do
6008       i=`expr $i + 1`
6009       teststring=$teststring$teststring
6010     done
6011     teststring=
6012     # Add a significant safety factor because C++ compilers can tack on massive
6013     # amounts of additional arguments before passing them to the linker.
6014     # It appears as though 1/2 is a usable value.
6015     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6016     ;;
6017   esac
6018
6019 fi
6020
6021 if test -n $lt_cv_sys_max_cmd_len ; then
6022   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6023 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6024 else
6025   echo "$as_me:$LINENO: result: none" >&5
6026 echo "${ECHO_T}none" >&6
6027 fi
6028
6029
6030
6031
6032 # Check for command to grab the raw symbol name followed by C symbol from nm.
6033 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6034 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6035 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038
6039 # These are sane defaults that work on at least a few old systems.
6040 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6041
6042 # Character class describing NM global symbol codes.
6043 symcode='[BCDEGRST]'
6044
6045 # Regexp to match symbols that can be accessed directly from C.
6046 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6047
6048 # Transform an extracted symbol line into a proper C declaration
6049 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6050
6051 # Transform an extracted symbol line into symbol name and symbol address
6052 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'"
6053
6054 # Define system-specific variables.
6055 case $host_os in
6056 aix*)
6057   symcode='[BCDT]'
6058   ;;
6059 cygwin* | mingw* | pw32*)
6060   symcode='[ABCDGISTW]'
6061   ;;
6062 hpux*) # Its linker distinguishes data from code symbols
6063   if test "$host_cpu" = ia64; then
6064     symcode='[ABCDEGRST]'
6065   fi
6066   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6067   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'"
6068   ;;
6069 linux*)
6070   if test "$host_cpu" = ia64; then
6071     symcode='[ABCDGIRSTW]'
6072     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6073     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'"
6074   fi
6075   ;;
6076 irix* | nonstopux*)
6077   symcode='[BCDEGRST]'
6078   ;;
6079 osf*)
6080   symcode='[BCDEGQRST]'
6081   ;;
6082 solaris* | sysv5*)
6083   symcode='[BDRT]'
6084   ;;
6085 sysv4)
6086   symcode='[DFNSTU]'
6087   ;;
6088 esac
6089
6090 # Handle CRLF in mingw tool chain
6091 opt_cr=
6092 case $build_os in
6093 mingw*)
6094   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6095   ;;
6096 esac
6097
6098 # If we're using GNU nm, then use its standard symbol codes.
6099 case `$NM -V 2>&1` in
6100 *GNU* | *'with BFD'*)
6101   symcode='[ABCDGIRSTW]' ;;
6102 esac
6103
6104 # Try without a prefix undercore, then with it.
6105 for ac_symprfx in "" "_"; do
6106
6107   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6108   symxfrm="\\1 $ac_symprfx\\2 \\2"
6109
6110   # Write the raw and C identifiers.
6111   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6112
6113   # Check to see that the pipe works correctly.
6114   pipe_works=no
6115
6116   rm -f conftest*
6117   cat > conftest.$ac_ext <<EOF
6118 #ifdef __cplusplus
6119 extern "C" {
6120 #endif
6121 char nm_test_var;
6122 void nm_test_func(){}
6123 #ifdef __cplusplus
6124 }
6125 #endif
6126 int main(){nm_test_var='a';nm_test_func();return(0);}
6127 EOF
6128
6129   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130   (eval $ac_compile) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; then
6134     # Now try to grab the symbols.
6135     nlist=conftest.nm
6136     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6137   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6138   ac_status=$?
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && test -s "$nlist"; then
6141       # Try sorting and uniquifying the output.
6142       if sort "$nlist" | uniq > "$nlist"T; then
6143         mv -f "$nlist"T "$nlist"
6144       else
6145         rm -f "$nlist"T
6146       fi
6147
6148       # Make sure that we snagged all the symbols we need.
6149       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6150         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6151           cat <<EOF > conftest.$ac_ext
6152 #ifdef __cplusplus
6153 extern "C" {
6154 #endif
6155
6156 EOF
6157           # Now generate the symbol file.
6158           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6159
6160           cat <<EOF >> conftest.$ac_ext
6161 #if defined (__STDC__) && __STDC__
6162 # define lt_ptr_t void *
6163 #else
6164 # define lt_ptr_t char *
6165 # define const
6166 #endif
6167
6168 /* The mapping between symbol names and symbols. */
6169 const struct {
6170   const char *name;
6171   lt_ptr_t address;
6172 }
6173 lt_preloaded_symbols[] =
6174 {
6175 EOF
6176           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6177           cat <<\EOF >> conftest.$ac_ext
6178   {0, (lt_ptr_t) 0}
6179 };
6180
6181 #ifdef __cplusplus
6182 }
6183 #endif
6184 EOF
6185           # Now try linking the two files.
6186           mv conftest.$ac_objext conftstm.$ac_objext
6187           lt_save_LIBS="$LIBS"
6188           lt_save_CFLAGS="$CFLAGS"
6189           LIBS="conftstm.$ac_objext"
6190           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6191           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6196             pipe_works=yes
6197           fi
6198           LIBS="$lt_save_LIBS"
6199           CFLAGS="$lt_save_CFLAGS"
6200         else
6201           echo "cannot find nm_test_func in $nlist" >&5
6202         fi
6203       else
6204         echo "cannot find nm_test_var in $nlist" >&5
6205       fi
6206     else
6207       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6208     fi
6209   else
6210     echo "$progname: failed program was:" >&5
6211     cat conftest.$ac_ext >&5
6212   fi
6213   rm -f conftest* conftst*
6214
6215   # Do not use the global_symbol_pipe unless it works.
6216   if test "$pipe_works" = yes; then
6217     break
6218   else
6219     lt_cv_sys_global_symbol_pipe=
6220   fi
6221 done
6222
6223 fi
6224
6225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6226   lt_cv_sys_global_symbol_to_cdecl=
6227 fi
6228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6229   echo "$as_me:$LINENO: result: failed" >&5
6230 echo "${ECHO_T}failed" >&6
6231 else
6232   echo "$as_me:$LINENO: result: ok" >&5
6233 echo "${ECHO_T}ok" >&6
6234 fi
6235
6236 echo "$as_me:$LINENO: checking for objdir" >&5
6237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6238 if test "${lt_cv_objdir+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   rm -f .libs 2>/dev/null
6242 mkdir .libs 2>/dev/null
6243 if test -d .libs; then
6244   lt_cv_objdir=.libs
6245 else
6246   # MS-DOS does not allow filenames that begin with a dot.
6247   lt_cv_objdir=_libs
6248 fi
6249 rmdir .libs 2>/dev/null
6250 fi
6251 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6252 echo "${ECHO_T}$lt_cv_objdir" >&6
6253 objdir=$lt_cv_objdir
6254
6255
6256
6257
6258
6259 case $host_os in
6260 aix3*)
6261   # AIX sometimes has problems with the GCC collect2 program.  For some
6262   # reason, if we set the COLLECT_NAMES environment variable, the problems
6263   # vanish in a puff of smoke.
6264   if test "X${COLLECT_NAMES+set}" != Xset; then
6265     COLLECT_NAMES=
6266     export COLLECT_NAMES
6267   fi
6268   ;;
6269 esac
6270
6271 # Sed substitution that helps us do robust quoting.  It backslashifies
6272 # metacharacters that are still active within double-quoted strings.
6273 Xsed='sed -e 1s/^X//'
6274 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6275
6276 # Same as above, but do not quote variable references.
6277 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6278
6279 # Sed substitution to delay expansion of an escaped shell variable in a
6280 # double_quote_subst'ed string.
6281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6282
6283 # Sed substitution to avoid accidental globbing in evaled expressions
6284 no_glob_subst='s/\*/\\\*/g'
6285
6286 # Constants:
6287 rm="rm -f"
6288
6289 # Global variables:
6290 default_ofile=libtool
6291 can_build_shared=yes
6292
6293 # All known linkers require a `.a' archive for static linking (except M$VC,
6294 # which needs '.lib').
6295 libext=a
6296 ltmain="$ac_aux_dir/ltmain.sh"
6297 ofile="$default_ofile"
6298 with_gnu_ld="$lt_cv_prog_gnu_ld"
6299
6300 if test -n "$ac_tool_prefix"; then
6301   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ar; ac_word=$2
6303 echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6305 if test "${ac_cv_prog_AR+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   if test -n "$AR"; then
6309   ac_cv_prog_AR="$AR" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316   for ac_exec_ext in '' $ac_executable_extensions; do
6317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318     ac_cv_prog_AR="${ac_tool_prefix}ar"
6319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323 done
6324
6325 fi
6326 fi
6327 AR=$ac_cv_prog_AR
6328 if test -n "$AR"; then
6329   echo "$as_me:$LINENO: result: $AR" >&5
6330 echo "${ECHO_T}$AR" >&6
6331 else
6332   echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6
6334 fi
6335
6336 fi
6337 if test -z "$ac_cv_prog_AR"; then
6338   ac_ct_AR=$AR
6339   # Extract the first word of "ar", so it can be a program name with args.
6340 set dummy ar; ac_word=$2
6341 echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6343 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   if test -n "$ac_ct_AR"; then
6347   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354   for ac_exec_ext in '' $ac_executable_extensions; do
6355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356     ac_cv_prog_ac_ct_AR="ar"
6357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361 done
6362
6363   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6364 fi
6365 fi
6366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6367 if test -n "$ac_ct_AR"; then
6368   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6369 echo "${ECHO_T}$ac_ct_AR" >&6
6370 else
6371   echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6373 fi
6374
6375   AR=$ac_ct_AR
6376 else
6377   AR="$ac_cv_prog_AR"
6378 fi
6379
6380 if test -n "$ac_tool_prefix"; then
6381   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383 echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6385 if test "${ac_cv_prog_RANLIB+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   if test -n "$RANLIB"; then
6389   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396   for ac_exec_ext in '' $ac_executable_extensions; do
6397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403 done
6404
6405 fi
6406 fi
6407 RANLIB=$ac_cv_prog_RANLIB
6408 if test -n "$RANLIB"; then
6409   echo "$as_me:$LINENO: result: $RANLIB" >&5
6410 echo "${ECHO_T}$RANLIB" >&6
6411 else
6412   echo "$as_me:$LINENO: result: no" >&5
6413 echo "${ECHO_T}no" >&6
6414 fi
6415
6416 fi
6417 if test -z "$ac_cv_prog_RANLIB"; then
6418   ac_ct_RANLIB=$RANLIB
6419   # Extract the first word of "ranlib", so it can be a program name with args.
6420 set dummy ranlib; ac_word=$2
6421 echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   if test -n "$ac_ct_RANLIB"; then
6427   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434   for ac_exec_ext in '' $ac_executable_extensions; do
6435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436     ac_cv_prog_ac_ct_RANLIB="ranlib"
6437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441 done
6442
6443   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6444 fi
6445 fi
6446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447 if test -n "$ac_ct_RANLIB"; then
6448   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6449 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6450 else
6451   echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6453 fi
6454
6455   RANLIB=$ac_ct_RANLIB
6456 else
6457   RANLIB="$ac_cv_prog_RANLIB"
6458 fi
6459
6460 if test -n "$ac_tool_prefix"; then
6461   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6462 set dummy ${ac_tool_prefix}strip; ac_word=$2
6463 echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6465 if test "${ac_cv_prog_STRIP+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   if test -n "$STRIP"; then
6469   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476   for ac_exec_ext in '' $ac_executable_extensions; do
6477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480     break 2
6481   fi
6482 done
6483 done
6484
6485 fi
6486 fi
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489   echo "$as_me:$LINENO: result: $STRIP" >&5
6490 echo "${ECHO_T}$STRIP" >&6
6491 else
6492   echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6494 fi
6495
6496 fi
6497 if test -z "$ac_cv_prog_STRIP"; then
6498   ac_ct_STRIP=$STRIP
6499   # Extract the first word of "strip", so it can be a program name with args.
6500 set dummy strip; ac_word=$2
6501 echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   if test -n "$ac_ct_STRIP"; then
6507   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514   for ac_exec_ext in '' $ac_executable_extensions; do
6515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516     ac_cv_prog_ac_ct_STRIP="strip"
6517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521 done
6522
6523   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6524 fi
6525 fi
6526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6527 if test -n "$ac_ct_STRIP"; then
6528   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6529 echo "${ECHO_T}$ac_ct_STRIP" >&6
6530 else
6531   echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6533 fi
6534
6535   STRIP=$ac_ct_STRIP
6536 else
6537   STRIP="$ac_cv_prog_STRIP"
6538 fi
6539
6540
6541 old_CC="$CC"
6542 old_CFLAGS="$CFLAGS"
6543
6544 # Set sane defaults for various variables
6545 test -z "$AR" && AR=ar
6546 test -z "$AR_FLAGS" && AR_FLAGS=cru
6547 test -z "$AS" && AS=as
6548 test -z "$CC" && CC=cc
6549 test -z "$LTCC" && LTCC=$CC
6550 test -z "$DLLTOOL" && DLLTOOL=dlltool
6551 test -z "$LD" && LD=ld
6552 test -z "$LN_S" && LN_S="ln -s"
6553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6554 test -z "$NM" && NM=nm
6555 test -z "$SED" && SED=sed
6556 test -z "$OBJDUMP" && OBJDUMP=objdump
6557 test -z "$RANLIB" && RANLIB=:
6558 test -z "$STRIP" && STRIP=:
6559 test -z "$ac_objext" && ac_objext=o
6560
6561 # Determine commands to create old-style static archives.
6562 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6563 old_postinstall_cmds='chmod 644 $oldlib'
6564 old_postuninstall_cmds=
6565
6566 if test -n "$RANLIB"; then
6567   case $host_os in
6568   openbsd*)
6569     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6570     ;;
6571   *)
6572     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6573     ;;
6574   esac
6575   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6576 fi
6577
6578 for cc_temp in $compiler""; do
6579   case $cc_temp in
6580     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6581     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6582     \-*) ;;
6583     *) break;;
6584   esac
6585 done
6586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6587
6588
6589 # Only perform the check for file, if the check method requires it
6590 case $deplibs_check_method in
6591 file_magic*)
6592   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6593     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6594 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $MAGIC_CMD in
6599 [\\/*] |  ?:[\\/]*)
6600   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6601   ;;
6602 *)
6603   lt_save_MAGIC_CMD="$MAGIC_CMD"
6604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6605   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6606   for ac_dir in $ac_dummy; do
6607     IFS="$lt_save_ifs"
6608     test -z "$ac_dir" && ac_dir=.
6609     if test -f $ac_dir/${ac_tool_prefix}file; then
6610       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6611       if test -n "$file_magic_test_file"; then
6612         case $deplibs_check_method in
6613         "file_magic "*)
6614           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6615           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6616           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6617             $EGREP "$file_magic_regex" > /dev/null; then
6618             :
6619           else
6620             cat <<EOF 1>&2
6621
6622 *** Warning: the command libtool uses to detect shared libraries,
6623 *** $file_magic_cmd, produces output that libtool cannot recognize.
6624 *** The result is that libtool may fail to recognize shared libraries
6625 *** as such.  This will affect the creation of libtool libraries that
6626 *** depend on shared libraries, but programs linked with such libtool
6627 *** libraries will work regardless of this problem.  Nevertheless, you
6628 *** may want to report the problem to your system manager and/or to
6629 *** bug-libtool@gnu.org
6630
6631 EOF
6632           fi ;;
6633         esac
6634       fi
6635       break
6636     fi
6637   done
6638   IFS="$lt_save_ifs"
6639   MAGIC_CMD="$lt_save_MAGIC_CMD"
6640   ;;
6641 esac
6642 fi
6643
6644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6645 if test -n "$MAGIC_CMD"; then
6646   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6647 echo "${ECHO_T}$MAGIC_CMD" >&6
6648 else
6649   echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6
6651 fi
6652
6653 if test -z "$lt_cv_path_MAGIC_CMD"; then
6654   if test -n "$ac_tool_prefix"; then
6655     echo "$as_me:$LINENO: checking for file" >&5
6656 echo $ECHO_N "checking for file... $ECHO_C" >&6
6657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   case $MAGIC_CMD in
6661 [\\/*] |  ?:[\\/]*)
6662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6663   ;;
6664 *)
6665   lt_save_MAGIC_CMD="$MAGIC_CMD"
6666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6668   for ac_dir in $ac_dummy; do
6669     IFS="$lt_save_ifs"
6670     test -z "$ac_dir" && ac_dir=.
6671     if test -f $ac_dir/file; then
6672       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6673       if test -n "$file_magic_test_file"; then
6674         case $deplibs_check_method in
6675         "file_magic "*)
6676           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6677           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6679             $EGREP "$file_magic_regex" > /dev/null; then
6680             :
6681           else
6682             cat <<EOF 1>&2
6683
6684 *** Warning: the command libtool uses to detect shared libraries,
6685 *** $file_magic_cmd, produces output that libtool cannot recognize.
6686 *** The result is that libtool may fail to recognize shared libraries
6687 *** as such.  This will affect the creation of libtool libraries that
6688 *** depend on shared libraries, but programs linked with such libtool
6689 *** libraries will work regardless of this problem.  Nevertheless, you
6690 *** may want to report the problem to your system manager and/or to
6691 *** bug-libtool@gnu.org
6692
6693 EOF
6694           fi ;;
6695         esac
6696       fi
6697       break
6698     fi
6699   done
6700   IFS="$lt_save_ifs"
6701   MAGIC_CMD="$lt_save_MAGIC_CMD"
6702   ;;
6703 esac
6704 fi
6705
6706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6707 if test -n "$MAGIC_CMD"; then
6708   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6709 echo "${ECHO_T}$MAGIC_CMD" >&6
6710 else
6711   echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6
6713 fi
6714
6715   else
6716     MAGIC_CMD=:
6717   fi
6718 fi
6719
6720   fi
6721   ;;
6722 esac
6723
6724 enable_dlopen=no
6725 enable_win32_dll=yes
6726
6727 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6728 if test "${enable_libtool_lock+set}" = set; then
6729   enableval="$enable_libtool_lock"
6730
6731 fi;
6732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6733
6734
6735 # Check whether --with-pic or --without-pic was given.
6736 if test "${with_pic+set}" = set; then
6737   withval="$with_pic"
6738   pic_mode="$withval"
6739 else
6740   pic_mode=default
6741 fi;
6742 test -z "$pic_mode" && pic_mode=default
6743
6744 # Use C for the default configuration in the libtool script
6745 tagname=
6746 lt_save_CC="$CC"
6747 ac_ext=c
6748 ac_cpp='$CPP $CPPFLAGS'
6749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
6753
6754 # Source file extension for C test sources.
6755 ac_ext=c
6756
6757 # Object file extension for compiled C test sources.
6758 objext=o
6759 objext=$objext
6760
6761 # Code to be used in simple compile tests
6762 lt_simple_compile_test_code="int some_variable = 0;\n"
6763
6764 # Code to be used in simple link tests
6765 lt_simple_link_test_code='int main(){return(0);}\n'
6766
6767
6768 # If no C compiler was specified, use CC.
6769 LTCC=${LTCC-"$CC"}
6770
6771 # Allow CC to be a program name with arguments.
6772 compiler=$CC
6773
6774
6775 # save warnings/boilerplate of simple test code
6776 ac_outfile=conftest.$ac_objext
6777 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6779 _lt_compiler_boilerplate=`cat conftest.err`
6780 $rm conftest*
6781
6782 ac_outfile=conftest.$ac_objext
6783 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6785 _lt_linker_boilerplate=`cat conftest.err`
6786 $rm conftest*
6787
6788
6789 #
6790 # Check for any special shared library compilation flags.
6791 #
6792 lt_prog_cc_shlib=
6793 if test "$GCC" = no; then
6794   case $host_os in
6795   sco3.2v5*)
6796     lt_prog_cc_shlib='-belf'
6797     ;;
6798   esac
6799 fi
6800 if test -n "$lt_prog_cc_shlib"; then
6801   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6802 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6803   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6804   else
6805     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6806 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6807     lt_cv_prog_cc_can_build_shared=no
6808   fi
6809 fi
6810
6811
6812 #
6813 # Check to make sure the static flag actually works.
6814 #
6815 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6816 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6817 if test "${lt_prog_compiler_static_works+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   lt_prog_compiler_static_works=no
6821    save_LDFLAGS="$LDFLAGS"
6822    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6823    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6824    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6825      # The compiler can only warn and ignore the option if not recognized
6826      # So say no if there are warnings
6827      if test -s conftest.err; then
6828        # Append any errors to the config.log.
6829        cat conftest.err 1>&5
6830        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6831        $SED '/^$/d' conftest.err >conftest.er2
6832        if diff conftest.exp conftest.er2 >/dev/null; then
6833          lt_prog_compiler_static_works=yes
6834        fi
6835      else
6836        lt_prog_compiler_static_works=yes
6837      fi
6838    fi
6839    $rm conftest*
6840    LDFLAGS="$save_LDFLAGS"
6841
6842 fi
6843 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6844 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6845
6846 if test x"$lt_prog_compiler_static_works" = xyes; then
6847     :
6848 else
6849     lt_prog_compiler_static=
6850 fi
6851
6852
6853
6854 ## CAVEAT EMPTOR:
6855 ## There is no encapsulation within the following macros, do not change
6856 ## the running order or otherwise move them around unless you know exactly
6857 ## what you are doing...
6858
6859 lt_prog_compiler_no_builtin_flag=
6860
6861 if test "$GCC" = yes; then
6862   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6863
6864
6865 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6866 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6867 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   lt_cv_prog_compiler_rtti_exceptions=no
6871   ac_outfile=conftest.$ac_objext
6872    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6873    lt_compiler_flag="-fno-rtti -fno-exceptions"
6874    # Insert the option either (1) after the last *FLAGS variable, or
6875    # (2) before a word containing "conftest.", or (3) at the end.
6876    # Note that $ac_compile itself does not contain backslashes and begins
6877    # with a dollar sign (not a hyphen), so the echo should work correctly.
6878    # The option is referenced via a variable to avoid confusing sed.
6879    lt_compile=`echo "$ac_compile" | $SED \
6880    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6882    -e 's:$: $lt_compiler_flag:'`
6883    (eval echo "\"\$as_me:6883: $lt_compile\"" >&5)
6884    (eval "$lt_compile" 2>conftest.err)
6885    ac_status=$?
6886    cat conftest.err >&5
6887    echo "$as_me:6887: \$? = $ac_status" >&5
6888    if (exit $ac_status) && test -s "$ac_outfile"; then
6889      # The compiler can only warn and ignore the option if not recognized
6890      # So say no if there are warnings other than the usual output.
6891      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6892      $SED '/^$/d' conftest.err >conftest.er2
6893      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6894        lt_cv_prog_compiler_rtti_exceptions=yes
6895      fi
6896    fi
6897    $rm conftest*
6898
6899 fi
6900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6901 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6902
6903 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6904     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6905 else
6906     :
6907 fi
6908
6909 fi
6910
6911 lt_prog_compiler_wl=
6912 lt_prog_compiler_pic=
6913 lt_prog_compiler_static=
6914
6915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6917
6918   if test "$GCC" = yes; then
6919     lt_prog_compiler_wl='-Wl,'
6920     lt_prog_compiler_static='-static'
6921
6922     case $host_os in
6923       aix*)
6924       # All AIX code is PIC.
6925       if test "$host_cpu" = ia64; then
6926         # AIX 5 now supports IA64 processor
6927         lt_prog_compiler_static='-Bstatic'
6928       fi
6929       ;;
6930
6931     amigaos*)
6932       # FIXME: we need at least 68020 code to build shared libraries, but
6933       # adding the `-m68020' flag to GCC prevents building anything better,
6934       # like `-m68040'.
6935       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6936       ;;
6937
6938     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6939       # PIC is the default for these OSes.
6940       ;;
6941
6942     mingw* | pw32* | os2*)
6943       # This hack is so that the source file can tell whether it is being
6944       # built for inclusion in a dll (and should export symbols for example).
6945       lt_prog_compiler_pic='-DDLL_EXPORT'
6946       ;;
6947
6948     darwin* | rhapsody*)
6949       # PIC is the default on this platform
6950       # Common symbols not allowed in MH_DYLIB files
6951       lt_prog_compiler_pic='-fno-common'
6952       ;;
6953
6954     msdosdjgpp*)
6955       # Just because we use GCC doesn't mean we suddenly get shared libraries
6956       # on systems that don't support them.
6957       lt_prog_compiler_can_build_shared=no
6958       enable_shared=no
6959       ;;
6960
6961     sysv4*MP*)
6962       if test -d /usr/nec; then
6963         lt_prog_compiler_pic=-Kconform_pic
6964       fi
6965       ;;
6966
6967     hpux*)
6968       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6969       # not for PA HP-UX.
6970       case "$host_cpu" in
6971       hppa*64*|ia64*)
6972         # +Z the default
6973         ;;
6974       *)
6975         lt_prog_compiler_pic='-fPIC'
6976         ;;
6977       esac
6978       ;;
6979
6980     *)
6981       lt_prog_compiler_pic='-fPIC'
6982       ;;
6983     esac
6984   else
6985     # PORTME Check for flag to pass linker flags through the system compiler.
6986     case $host_os in
6987     aix*)
6988       lt_prog_compiler_wl='-Wl,'
6989       if test "$host_cpu" = ia64; then
6990         # AIX 5 now supports IA64 processor
6991         lt_prog_compiler_static='-Bstatic'
6992       else
6993         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6994       fi
6995       ;;
6996       darwin*)
6997         # PIC is the default on this platform
6998         # Common symbols not allowed in MH_DYLIB files
6999        case $cc_basename in
7000          xlc*)
7001          lt_prog_compiler_pic='-qnocommon'
7002          lt_prog_compiler_wl='-Wl,'
7003          ;;
7004        esac
7005        ;;
7006
7007     mingw* | pw32* | os2*)
7008       # This hack is so that the source file can tell whether it is being
7009       # built for inclusion in a dll (and should export symbols for example).
7010       lt_prog_compiler_pic='-DDLL_EXPORT'
7011       ;;
7012
7013     hpux9* | hpux10* | hpux11*)
7014       lt_prog_compiler_wl='-Wl,'
7015       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7016       # not for PA HP-UX.
7017       case "$host_cpu" in
7018       hppa*64*|ia64*)
7019         # +Z the default
7020         ;;
7021       *)
7022         lt_prog_compiler_pic='+Z'
7023         ;;
7024       esac
7025       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7026       lt_prog_compiler_static='${wl}-a ${wl}archive'
7027       ;;
7028
7029     irix5* | irix6* | nonstopux*)
7030       lt_prog_compiler_wl='-Wl,'
7031       # PIC (with -KPIC) is the default.
7032       lt_prog_compiler_static='-non_shared'
7033       ;;
7034
7035     newsos6)
7036       lt_prog_compiler_pic='-KPIC'
7037       lt_prog_compiler_static='-Bstatic'
7038       ;;
7039
7040     linux*)
7041       case $cc_basename in
7042       icc* | ecc*)
7043         lt_prog_compiler_wl='-Wl,'
7044         lt_prog_compiler_pic='-KPIC'
7045         lt_prog_compiler_static='-static'
7046         ;;
7047       pgcc* | pgf77* | pgf90*)
7048         # Portland Group compilers (*not* the Pentium gcc compiler,
7049         # which looks to be a dead project)
7050         lt_prog_compiler_wl='-Wl,'
7051         lt_prog_compiler_pic='-fpic'
7052         lt_prog_compiler_static='-static'
7053         ;;
7054       ccc*)
7055         lt_prog_compiler_wl='-Wl,'
7056         # All Alpha code is PIC.
7057         lt_prog_compiler_static='-non_shared'
7058         ;;
7059       esac
7060       ;;
7061
7062     osf3* | osf4* | osf5*)
7063       lt_prog_compiler_wl='-Wl,'
7064       # All OSF/1 code is PIC.
7065       lt_prog_compiler_static='-non_shared'
7066       ;;
7067
7068     sco3.2v5*)
7069       lt_prog_compiler_pic='-Kpic'
7070       lt_prog_compiler_static='-dn'
7071       ;;
7072
7073     solaris*)
7074       lt_prog_compiler_pic='-KPIC'
7075       lt_prog_compiler_static='-Bstatic'
7076       case $cc_basename in
7077       f77* | f90* | f95*)
7078         lt_prog_compiler_wl='-Qoption ld ';;
7079       *)
7080         lt_prog_compiler_wl='-Wl,';;
7081       esac
7082       ;;
7083
7084     sunos4*)
7085       lt_prog_compiler_wl='-Qoption ld '
7086       lt_prog_compiler_pic='-PIC'
7087       lt_prog_compiler_static='-Bstatic'
7088       ;;
7089
7090     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7091       lt_prog_compiler_wl='-Wl,'
7092       lt_prog_compiler_pic='-KPIC'
7093       lt_prog_compiler_static='-Bstatic'
7094       ;;
7095
7096     sysv4*MP*)
7097       if test -d /usr/nec ;then
7098         lt_prog_compiler_pic='-Kconform_pic'
7099         lt_prog_compiler_static='-Bstatic'
7100       fi
7101       ;;
7102
7103     unicos*)
7104       lt_prog_compiler_wl='-Wl,'
7105       lt_prog_compiler_can_build_shared=no
7106       ;;
7107
7108     uts4*)
7109       lt_prog_compiler_pic='-pic'
7110       lt_prog_compiler_static='-Bstatic'
7111       ;;
7112
7113     *)
7114       lt_prog_compiler_can_build_shared=no
7115       ;;
7116     esac
7117   fi
7118
7119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7120 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7121
7122 #
7123 # Check to make sure the PIC flag actually works.
7124 #
7125 if test -n "$lt_prog_compiler_pic"; then
7126
7127 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7128 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7129 if test "${lt_prog_compiler_pic_works+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   lt_prog_compiler_pic_works=no
7133   ac_outfile=conftest.$ac_objext
7134    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7135    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7136    # Insert the option either (1) after the last *FLAGS variable, or
7137    # (2) before a word containing "conftest.", or (3) at the end.
7138    # Note that $ac_compile itself does not contain backslashes and begins
7139    # with a dollar sign (not a hyphen), so the echo should work correctly.
7140    # The option is referenced via a variable to avoid confusing sed.
7141    lt_compile=`echo "$ac_compile" | $SED \
7142    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144    -e 's:$: $lt_compiler_flag:'`
7145    (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
7146    (eval "$lt_compile" 2>conftest.err)
7147    ac_status=$?
7148    cat conftest.err >&5
7149    echo "$as_me:7149: \$? = $ac_status" >&5
7150    if (exit $ac_status) && test -s "$ac_outfile"; then
7151      # The compiler can only warn and ignore the option if not recognized
7152      # So say no if there are warnings other than the usual output.
7153      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7154      $SED '/^$/d' conftest.err >conftest.er2
7155      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7156        lt_prog_compiler_pic_works=yes
7157      fi
7158    fi
7159    $rm conftest*
7160
7161 fi
7162 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7163 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7164
7165 if test x"$lt_prog_compiler_pic_works" = xyes; then
7166     case $lt_prog_compiler_pic in
7167      "" | " "*) ;;
7168      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7169      esac
7170 else
7171     lt_prog_compiler_pic=
7172      lt_prog_compiler_can_build_shared=no
7173 fi
7174
7175 fi
7176 case "$host_os" in
7177   # For platforms which do not support PIC, -DPIC is meaningless:
7178   *djgpp*)
7179     lt_prog_compiler_pic=
7180     ;;
7181   *)
7182     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7183     ;;
7184 esac
7185
7186 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7187 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7188 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   lt_cv_prog_compiler_c_o=no
7192    $rm -r conftest 2>/dev/null
7193    mkdir conftest
7194    cd conftest
7195    mkdir out
7196    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7197
7198    lt_compiler_flag="-o out/conftest2.$ac_objext"
7199    # Insert the option either (1) after the last *FLAGS variable, or
7200    # (2) before a word containing "conftest.", or (3) at the end.
7201    # Note that $ac_compile itself does not contain backslashes and begins
7202    # with a dollar sign (not a hyphen), so the echo should work correctly.
7203    lt_compile=`echo "$ac_compile" | $SED \
7204    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7206    -e 's:$: $lt_compiler_flag:'`
7207    (eval echo "\"\$as_me:7207: $lt_compile\"" >&5)
7208    (eval "$lt_compile" 2>out/conftest.err)
7209    ac_status=$?
7210    cat out/conftest.err >&5
7211    echo "$as_me:7211: \$? = $ac_status" >&5
7212    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7213    then
7214      # The compiler can only warn and ignore the option if not recognized
7215      # So say no if there are warnings
7216      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7217      $SED '/^$/d' out/conftest.err >out/conftest.er2
7218      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7219        lt_cv_prog_compiler_c_o=yes
7220      fi
7221    fi
7222    chmod u+w .
7223    $rm conftest*
7224    # SGI C++ compiler will create directory out/ii_files/ for
7225    # template instantiation
7226    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7227    $rm out/* && rmdir out
7228    cd ..
7229    rmdir conftest
7230    $rm conftest*
7231
7232 fi
7233 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7234 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7235
7236
7237 hard_links="nottested"
7238 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7239   # do not overwrite the value of need_locks provided by the user
7240   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7241 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7242   hard_links=yes
7243   $rm conftest*
7244   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7245   touch conftest.a
7246   ln conftest.a conftest.b 2>&5 || hard_links=no
7247   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7248   echo "$as_me:$LINENO: result: $hard_links" >&5
7249 echo "${ECHO_T}$hard_links" >&6
7250   if test "$hard_links" = no; then
7251     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7252 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7253     need_locks=warn
7254   fi
7255 else
7256   need_locks=no
7257 fi
7258
7259 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7260 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7261
7262   runpath_var=
7263   allow_undefined_flag=
7264   enable_shared_with_static_runtimes=no
7265   archive_cmds=
7266   archive_expsym_cmds=
7267   old_archive_From_new_cmds=
7268   old_archive_from_expsyms_cmds=
7269   export_dynamic_flag_spec=
7270   whole_archive_flag_spec=
7271   thread_safe_flag_spec=
7272   hardcode_libdir_flag_spec=
7273   hardcode_libdir_flag_spec_ld=
7274   hardcode_libdir_separator=
7275   hardcode_direct=no
7276   hardcode_minus_L=no
7277   hardcode_shlibpath_var=unsupported
7278   link_all_deplibs=unknown
7279   hardcode_automatic=no
7280   module_cmds=
7281   module_expsym_cmds=
7282   always_export_symbols=no
7283   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7284   # include_expsyms should be a list of space-separated symbols to be *always*
7285   # included in the symbol list
7286   include_expsyms=
7287   # exclude_expsyms can be an extended regexp of symbols to exclude
7288   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7289   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7290   # as well as any symbol that contains `d'.
7291   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7292   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7293   # platforms (ab)use it in PIC code, but their linkers get confused if
7294   # the symbol is explicitly referenced.  Since portable code cannot
7295   # rely on this symbol name, it's probably fine to never include it in
7296   # preloaded symbol tables.
7297   extract_expsyms_cmds=
7298   # Just being paranoid about ensuring that cc_basename is set.
7299   for cc_temp in $compiler""; do
7300   case $cc_temp in
7301     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7302     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7303     \-*) ;;
7304     *) break;;
7305   esac
7306 done
7307 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7308
7309   case $host_os in
7310   cygwin* | mingw* | pw32*)
7311     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7312     # When not using gcc, we currently assume that we are using
7313     # Microsoft Visual C++.
7314     if test "$GCC" != yes; then
7315       with_gnu_ld=no
7316     fi
7317     ;;
7318   openbsd*)
7319     with_gnu_ld=no
7320     ;;
7321   esac
7322
7323   ld_shlibs=yes
7324   if test "$with_gnu_ld" = yes; then
7325     # If archive_cmds runs LD, not CC, wlarc should be empty
7326     wlarc='${wl}'
7327
7328     # Set some defaults for GNU ld with shared library support. These
7329     # are reset later if shared libraries are not supported. Putting them
7330     # here allows them to be overridden if necessary.
7331     runpath_var=LD_RUN_PATH
7332     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7333     export_dynamic_flag_spec='${wl}--export-dynamic'
7334     # ancient GNU ld didn't support --whole-archive et. al.
7335     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7336         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7337       else
7338         whole_archive_flag_spec=
7339     fi
7340     supports_anon_versioning=no
7341     case `$LD -v 2>/dev/null` in
7342       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7343       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7344       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7345       *\ 2.11.*) ;; # other 2.11 versions
7346       *) supports_anon_versioning=yes ;;
7347     esac
7348
7349     # See if GNU ld supports shared libraries.
7350     case $host_os in
7351     aix3* | aix4* | aix5*)
7352       # On AIX/PPC, the GNU linker is very broken
7353       if test "$host_cpu" != ia64; then
7354         ld_shlibs=no
7355         cat <<EOF 1>&2
7356
7357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7358 *** to be unable to reliably create shared libraries on AIX.
7359 *** Therefore, libtool is disabling shared libraries support.  If you
7360 *** really care for shared libraries, you may want to modify your PATH
7361 *** so that a non-GNU linker is found, and then restart.
7362
7363 EOF
7364       fi
7365       ;;
7366
7367     amigaos*)
7368       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)'
7369       hardcode_libdir_flag_spec='-L$libdir'
7370       hardcode_minus_L=yes
7371
7372       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7373       # that the semantics of dynamic libraries on AmigaOS, at least up
7374       # to version 4, is to share data among multiple programs linked
7375       # with the same dynamic library.  Since this doesn't match the
7376       # behavior of shared libraries on other platforms, we can't use
7377       # them.
7378       ld_shlibs=no
7379       ;;
7380
7381     beos*)
7382       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7383         allow_undefined_flag=unsupported
7384         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7385         # support --undefined.  This deserves some investigation.  FIXME
7386         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7387       else
7388         ld_shlibs=no
7389       fi
7390       ;;
7391
7392     cygwin* | mingw* | pw32*)
7393       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7394       # as there is no search path for DLLs.
7395       hardcode_libdir_flag_spec='-L$libdir'
7396       allow_undefined_flag=unsupported
7397       always_export_symbols=no
7398       enable_shared_with_static_runtimes=yes
7399       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7400
7401       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7403         # If the export-symbols file already is a .def file (1st line
7404         # is EXPORTS), use it as is; otherwise, prepend...
7405         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7406           cp $export_symbols $output_objdir/$soname.def;
7407         else
7408           echo EXPORTS > $output_objdir/$soname.def;
7409           cat $export_symbols >> $output_objdir/$soname.def;
7410         fi~
7411         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7412       else
7413         ld_shlibs=no
7414       fi
7415       ;;
7416
7417     linux*)
7418       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7419         tmp_addflag=
7420         case $cc_basename,$host_cpu in
7421         pgcc*)                          # Portland Group C compiler
7422           whole_archive_flag_spec=
7423           ;;
7424         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7425           whole_archive_flag_spec=
7426           tmp_addflag=' -fpic -Mnomain' ;;
7427         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7428           tmp_addflag=' -i_dynamic' ;;
7429         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7430           tmp_addflag=' -i_dynamic -nofor_main' ;;
7431         ifc* | ifort*)                  # Intel Fortran compiler
7432           tmp_addflag=' -nofor_main' ;;
7433         esac
7434         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7435
7436         if test $supports_anon_versioning = yes; then
7437           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7438   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7439   $echo "local: *; };" >> $output_objdir/$libname.ver~
7440           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7441         fi
7442       else
7443         ld_shlibs=no
7444       fi
7445       ;;
7446
7447     netbsd*)
7448       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7449         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7450         wlarc=
7451       else
7452         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7453         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7454       fi
7455       ;;
7456
7457     solaris* | sysv5*)
7458       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7459         ld_shlibs=no
7460         cat <<EOF 1>&2
7461
7462 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7463 *** create shared libraries on Solaris systems.  Therefore, libtool
7464 *** is disabling shared libraries support.  We urge you to upgrade GNU
7465 *** binutils to release 2.9.1 or newer.  Another option is to modify
7466 *** your PATH or compiler configuration so that the native linker is
7467 *** used, and then restart.
7468
7469 EOF
7470       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7471         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7472         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7473       else
7474         ld_shlibs=no
7475       fi
7476       ;;
7477
7478     sunos4*)
7479       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7480       wlarc=
7481       hardcode_direct=yes
7482       hardcode_shlibpath_var=no
7483       ;;
7484
7485     *)
7486       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7487         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489       else
7490         ld_shlibs=no
7491       fi
7492       ;;
7493     esac
7494
7495     if test "$ld_shlibs" = no; then
7496       runpath_var=
7497       hardcode_libdir_flag_spec=
7498       export_dynamic_flag_spec=
7499       whole_archive_flag_spec=
7500     fi
7501   else
7502     # PORTME fill in a description of your system's linker (not GNU ld)
7503     case $host_os in
7504     aix3*)
7505       allow_undefined_flag=unsupported
7506       always_export_symbols=yes
7507       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'
7508       # Note: this linker hardcodes the directories in LIBPATH if there
7509       # are no directories specified by -L.
7510       hardcode_minus_L=yes
7511       if test "$GCC" = yes && test -z "$link_static_flag"; then
7512         # Neither direct hardcoding nor static linking is supported with a
7513         # broken collect2.
7514         hardcode_direct=unsupported
7515       fi
7516       ;;
7517
7518     aix4* | aix5*)
7519       if test "$host_cpu" = ia64; then
7520         # On IA64, the linker does run time linking by default, so we don't
7521         # have to do anything special.
7522         aix_use_runtimelinking=no
7523         exp_sym_flag='-Bexport'
7524         no_entry_flag=""
7525       else
7526         # If we're using GNU nm, then we don't want the "-C" option.
7527         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7528         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7529           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'
7530         else
7531           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'
7532         fi
7533         aix_use_runtimelinking=no
7534
7535         # Test if we are trying to use run time linking or normal
7536         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7537         # need to do runtime linking.
7538         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7539           for ld_flag in $LDFLAGS; do
7540           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7541             aix_use_runtimelinking=yes
7542             break
7543           fi
7544           done
7545         esac
7546
7547         exp_sym_flag='-bexport'
7548         no_entry_flag='-bnoentry'
7549       fi
7550
7551       # When large executables or shared objects are built, AIX ld can
7552       # have problems creating the table of contents.  If linking a library
7553       # or program results in "error TOC overflow" add -mminimal-toc to
7554       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7555       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7556
7557       archive_cmds=''
7558       hardcode_direct=yes
7559       hardcode_libdir_separator=':'
7560       link_all_deplibs=yes
7561
7562       if test "$GCC" = yes; then
7563         case $host_os in aix4.[012]|aix4.[012].*)
7564         # We only want to do this on AIX 4.2 and lower, the check
7565         # below for broken collect2 doesn't work under 4.3+
7566           collect2name=`${CC} -print-prog-name=collect2`
7567           if test -f "$collect2name" && \
7568            strings "$collect2name" | grep resolve_lib_name >/dev/null
7569           then
7570           # We have reworked collect2
7571           hardcode_direct=yes
7572           else
7573           # We have old collect2
7574           hardcode_direct=unsupported
7575           # It fails to find uninstalled libraries when the uninstalled
7576           # path is not listed in the libpath.  Setting hardcode_minus_L
7577           # to unsupported forces relinking
7578           hardcode_minus_L=yes
7579           hardcode_libdir_flag_spec='-L$libdir'
7580           hardcode_libdir_separator=
7581           fi
7582         esac
7583         shared_flag='-shared'
7584         if test "$aix_use_runtimelinking" = yes; then
7585           shared_flag="$shared_flag "'${wl}-G'
7586         fi
7587       else
7588         # not using gcc
7589         if test "$host_cpu" = ia64; then
7590         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7591         # chokes on -Wl,-G. The following line is correct:
7592           shared_flag='-G'
7593         else
7594         if test "$aix_use_runtimelinking" = yes; then
7595             shared_flag='${wl}-G'
7596           else
7597             shared_flag='${wl}-bM:SRE'
7598         fi
7599         fi
7600       fi
7601
7602       # It seems that -bexpall does not export symbols beginning with
7603       # underscore (_), so it is better to generate a list of symbols to export.
7604       always_export_symbols=yes
7605       if test "$aix_use_runtimelinking" = yes; then
7606         # Warning - without using the other runtime loading flags (-brtl),
7607         # -berok will link without error, but may produce a broken library.
7608         allow_undefined_flag='-berok'
7609        # Determine the default libpath from the value encoded in an empty executable.
7610        cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616
7617 int
7618 main ()
7619 {
7620
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627   (eval $ac_link) 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -z "$ac_c_werror_flag"
7635                          || test ! -s conftest.err'
7636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637   (eval $ac_try) 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; } &&
7641          { ac_try='test -s conftest$ac_exeext'
7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643   (eval $ac_try) 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }; }; then
7647
7648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7649 }'`
7650 # Check for a 64-bit object if we didn't find anything.
7651 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; }
7652 }'`; fi
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 fi
7658 rm -f conftest.err conftest.$ac_objext \
7659       conftest$ac_exeext conftest.$ac_ext
7660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7661
7662        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7663         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7664        else
7665         if test "$host_cpu" = ia64; then
7666           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7667           allow_undefined_flag="-z nodefs"
7668           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7669         else
7670          # Determine the default libpath from the value encoded in an empty executable.
7671          cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h.  */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h.  */
7677
7678 int
7679 main ()
7680 {
7681
7682   ;
7683   return 0;
7684 }
7685 _ACEOF
7686 rm -f conftest.$ac_objext conftest$ac_exeext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7688   (eval $ac_link) 2>conftest.er1
7689   ac_status=$?
7690   grep -v '^ *+' conftest.er1 >conftest.err
7691   rm -f conftest.er1
7692   cat conftest.err >&5
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } &&
7695          { ac_try='test -z "$ac_c_werror_flag"
7696                          || test ! -s conftest.err'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; } &&
7702          { ac_try='test -s conftest$ac_exeext'
7703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704   (eval $ac_try) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }; }; then
7708
7709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7710 }'`
7711 # Check for a 64-bit object if we didn't find anything.
7712 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; }
7713 }'`; fi
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 fi
7719 rm -f conftest.err conftest.$ac_objext \
7720       conftest$ac_exeext conftest.$ac_ext
7721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7722
7723          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7724           # Warning - without using the other run time loading flags,
7725           # -berok will link without error, but may produce a broken library.
7726           no_undefined_flag=' ${wl}-bernotok'
7727           allow_undefined_flag=' ${wl}-berok'
7728           # -bexpall does not export symbols beginning with underscore (_)
7729           always_export_symbols=yes
7730           # Exported symbols can be pulled into shared objects from archives
7731           whole_archive_flag_spec=' '
7732           archive_cmds_need_lc=yes
7733           # This is similar to how AIX traditionally builds it's shared libraries.
7734           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7735         fi
7736       fi
7737       ;;
7738
7739     amigaos*)
7740       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)'
7741       hardcode_libdir_flag_spec='-L$libdir'
7742       hardcode_minus_L=yes
7743       # see comment about different semantics on the GNU ld section
7744       ld_shlibs=no
7745       ;;
7746
7747     bsdi[45]*)
7748       export_dynamic_flag_spec=-rdynamic
7749       ;;
7750
7751     cygwin* | mingw* | pw32*)
7752       # When not using gcc, we currently assume that we are using
7753       # Microsoft Visual C++.
7754       # hardcode_libdir_flag_spec is actually meaningless, as there is
7755       # no search path for DLLs.
7756       hardcode_libdir_flag_spec=' '
7757       allow_undefined_flag=unsupported
7758       # Tell ltmain to make .lib files, not .a files.
7759       libext=lib
7760       # Tell ltmain to make .dll files, not .so files.
7761       shrext_cmds=".dll"
7762       # FIXME: Setting linknames here is a bad hack.
7763       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7764       # The linker will automatically build a .lib file if we build a DLL.
7765       old_archive_From_new_cmds='true'
7766       # FIXME: Should let the user specify the lib program.
7767       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7768       fix_srcfile_path='`cygpath -w "$srcfile"`'
7769       enable_shared_with_static_runtimes=yes
7770       ;;
7771
7772     darwin* | rhapsody*)
7773       case "$host_os" in
7774         rhapsody* | darwin1.[012])
7775          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7776          ;;
7777        *) # Darwin 1.3 on
7778          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7779            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7780          else
7781            case ${MACOSX_DEPLOYMENT_TARGET} in
7782              10.[012])
7783                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7784                ;;
7785              10.*)
7786                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7787                ;;
7788            esac
7789          fi
7790          ;;
7791       esac
7792       archive_cmds_need_lc=no
7793       hardcode_direct=no
7794       hardcode_automatic=yes
7795       hardcode_shlibpath_var=unsupported
7796       whole_archive_flag_spec=''
7797       link_all_deplibs=yes
7798     if test "$GCC" = yes ; then
7799         output_verbose_link_cmd='echo'
7800         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7801       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7802       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7803       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}'
7804       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}'
7805     else
7806       case $cc_basename in
7807         xlc*)
7808          output_verbose_link_cmd='echo'
7809          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7810          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7811           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7812          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}'
7813           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}'
7814           ;;
7815        *)
7816          ld_shlibs=no
7817           ;;
7818       esac
7819     fi
7820       ;;
7821
7822     dgux*)
7823       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7824       hardcode_libdir_flag_spec='-L$libdir'
7825       hardcode_shlibpath_var=no
7826       ;;
7827
7828     freebsd1*)
7829       ld_shlibs=no
7830       ;;
7831
7832     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7833     # support.  Future versions do this automatically, but an explicit c++rt0.o
7834     # does not break anything, and helps significantly (at the cost of a little
7835     # extra space).
7836     freebsd2.2*)
7837       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7838       hardcode_libdir_flag_spec='-R$libdir'
7839       hardcode_direct=yes
7840       hardcode_shlibpath_var=no
7841       ;;
7842
7843     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7844     freebsd2*)
7845       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7846       hardcode_direct=yes
7847       hardcode_minus_L=yes
7848       hardcode_shlibpath_var=no
7849       ;;
7850
7851     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7852     freebsd* | kfreebsd*-gnu | dragonfly*)
7853       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7854       hardcode_libdir_flag_spec='-R$libdir'
7855       hardcode_direct=yes
7856       hardcode_shlibpath_var=no
7857       ;;
7858
7859     hpux9*)
7860       if test "$GCC" = yes; then
7861         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'
7862       else
7863         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'
7864       fi
7865       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7866       hardcode_libdir_separator=:
7867       hardcode_direct=yes
7868
7869       # hardcode_minus_L: Not really in the search PATH,
7870       # but as the default location of the library.
7871       hardcode_minus_L=yes
7872       export_dynamic_flag_spec='${wl}-E'
7873       ;;
7874
7875     hpux10* | hpux11*)
7876       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7877         case "$host_cpu" in
7878         hppa*64*|ia64*)
7879           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7880           ;;
7881         *)
7882           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7883           ;;
7884         esac
7885       else
7886         case "$host_cpu" in
7887         hppa*64*|ia64*)
7888           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7889           ;;
7890         *)
7891           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7892           ;;
7893         esac
7894       fi
7895       if test "$with_gnu_ld" = no; then
7896         case "$host_cpu" in
7897         hppa*64*)
7898           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7899           hardcode_libdir_flag_spec_ld='+b $libdir'
7900           hardcode_libdir_separator=:
7901           hardcode_direct=no
7902           hardcode_shlibpath_var=no
7903           ;;
7904         ia64*)
7905           hardcode_libdir_flag_spec='-L$libdir'
7906           hardcode_direct=no
7907           hardcode_shlibpath_var=no
7908
7909           # hardcode_minus_L: Not really in the search PATH,
7910           # but as the default location of the library.
7911           hardcode_minus_L=yes
7912           ;;
7913         *)
7914           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7915           hardcode_libdir_separator=:
7916           hardcode_direct=yes
7917           export_dynamic_flag_spec='${wl}-E'
7918
7919           # hardcode_minus_L: Not really in the search PATH,
7920           # but as the default location of the library.
7921           hardcode_minus_L=yes
7922           ;;
7923         esac
7924       fi
7925       ;;
7926
7927     irix5* | irix6* | nonstopux*)
7928       if test "$GCC" = yes; then
7929         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'
7930       else
7931         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'
7932         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7933       fi
7934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7935       hardcode_libdir_separator=:
7936       link_all_deplibs=yes
7937       ;;
7938
7939     netbsd*)
7940       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7941         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7942       else
7943         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7944       fi
7945       hardcode_libdir_flag_spec='-R$libdir'
7946       hardcode_direct=yes
7947       hardcode_shlibpath_var=no
7948       ;;
7949
7950     newsos6)
7951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7952       hardcode_direct=yes
7953       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7954       hardcode_libdir_separator=:
7955       hardcode_shlibpath_var=no
7956       ;;
7957
7958     openbsd*)
7959       hardcode_direct=yes
7960       hardcode_shlibpath_var=no
7961       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7962         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7963         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7964         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7965         export_dynamic_flag_spec='${wl}-E'
7966       else
7967        case $host_os in
7968          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7969            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7970            hardcode_libdir_flag_spec='-R$libdir'
7971            ;;
7972          *)
7973            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7974            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7975            ;;
7976        esac
7977       fi
7978       ;;
7979
7980     os2*)
7981       hardcode_libdir_flag_spec='-L$libdir'
7982       hardcode_minus_L=yes
7983       allow_undefined_flag=unsupported
7984       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'
7985       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7986       ;;
7987
7988     osf3*)
7989       if test "$GCC" = yes; then
7990         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7991         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'
7992       else
7993         allow_undefined_flag=' -expect_unresolved \*'
7994         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'
7995       fi
7996       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7997       hardcode_libdir_separator=:
7998       ;;
7999
8000     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8001       if test "$GCC" = yes; then
8002         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8003         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'
8004         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8005       else
8006         allow_undefined_flag=' -expect_unresolved \*'
8007         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'
8008         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8009         $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'
8010
8011         # Both c and cxx compiler support -rpath directly
8012         hardcode_libdir_flag_spec='-rpath $libdir'
8013       fi
8014       hardcode_libdir_separator=:
8015       ;;
8016
8017     sco3.2v5*)
8018       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8019       hardcode_shlibpath_var=no
8020       export_dynamic_flag_spec='${wl}-Bexport'
8021       runpath_var=LD_RUN_PATH
8022       hardcode_runpath_var=yes
8023       ;;
8024
8025     solaris*)
8026       no_undefined_flag=' -z text'
8027       if test "$GCC" = yes; then
8028         wlarc='${wl}'
8029         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8030         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8032       else
8033         wlarc=''
8034         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8035         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8036         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8037       fi
8038       hardcode_libdir_flag_spec='-R$libdir'
8039       hardcode_shlibpath_var=no
8040       case $host_os in
8041       solaris2.[0-5] | solaris2.[0-5].*) ;;
8042       *)
8043         # The compiler driver will combine linker options so we
8044         # cannot just pass the convience library names through
8045         # without $wl, iff we do not link with $LD.
8046         # Luckily, gcc supports the same syntax we need for Sun Studio.
8047         # Supported since Solaris 2.6 (maybe 2.5.1?)
8048         case $wlarc in
8049         '')
8050           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8051         *)
8052           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' ;;
8053         esac ;;
8054       esac
8055       link_all_deplibs=yes
8056       ;;
8057
8058     sunos4*)
8059       if test "x$host_vendor" = xsequent; then
8060         # Use $CC to link under sequent, because it throws in some extra .o
8061         # files that make .init and .fini sections work.
8062         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8063       else
8064         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8065       fi
8066       hardcode_libdir_flag_spec='-L$libdir'
8067       hardcode_direct=yes
8068       hardcode_minus_L=yes
8069       hardcode_shlibpath_var=no
8070       ;;
8071
8072     sysv4)
8073       case $host_vendor in
8074         sni)
8075           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076           hardcode_direct=yes # is this really true???
8077         ;;
8078         siemens)
8079           ## LD is ld it makes a PLAMLIB
8080           ## CC just makes a GrossModule.
8081           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8082           reload_cmds='$CC -r -o $output$reload_objs'
8083           hardcode_direct=no
8084         ;;
8085         motorola)
8086           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8087           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8088         ;;
8089       esac
8090       runpath_var='LD_RUN_PATH'
8091       hardcode_shlibpath_var=no
8092       ;;
8093
8094     sysv4.3*)
8095       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096       hardcode_shlibpath_var=no
8097       export_dynamic_flag_spec='-Bexport'
8098       ;;
8099
8100     sysv4*MP*)
8101       if test -d /usr/nec; then
8102         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103         hardcode_shlibpath_var=no
8104         runpath_var=LD_RUN_PATH
8105         hardcode_runpath_var=yes
8106         ld_shlibs=yes
8107       fi
8108       ;;
8109
8110     sysv4.2uw2*)
8111       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8112       hardcode_direct=yes
8113       hardcode_minus_L=no
8114       hardcode_shlibpath_var=no
8115       hardcode_runpath_var=yes
8116       runpath_var=LD_RUN_PATH
8117       ;;
8118
8119    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8120       no_undefined_flag='${wl}-z ${wl}text'
8121       if test "$GCC" = yes; then
8122         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123       else
8124         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8125       fi
8126       runpath_var='LD_RUN_PATH'
8127       hardcode_shlibpath_var=no
8128       ;;
8129
8130     sysv5*)
8131       no_undefined_flag=' -z text'
8132       # $CC -shared without GNU ld will not create a library from C++
8133       # object files and a static libstdc++, better avoid it by now
8134       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8136                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8137       hardcode_libdir_flag_spec=
8138       hardcode_shlibpath_var=no
8139       runpath_var='LD_RUN_PATH'
8140       ;;
8141
8142     uts4*)
8143       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144       hardcode_libdir_flag_spec='-L$libdir'
8145       hardcode_shlibpath_var=no
8146       ;;
8147
8148     *)
8149       ld_shlibs=no
8150       ;;
8151     esac
8152   fi
8153
8154 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8155 echo "${ECHO_T}$ld_shlibs" >&6
8156 test "$ld_shlibs" = no && can_build_shared=no
8157
8158 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8159 if test "$GCC" = yes; then
8160   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8161 fi
8162
8163 #
8164 # Do we need to explicitly link libc?
8165 #
8166 case "x$archive_cmds_need_lc" in
8167 x|xyes)
8168   # Assume -lc should be added
8169   archive_cmds_need_lc=yes
8170
8171   if test "$enable_shared" = yes && test "$GCC" = yes; then
8172     case $archive_cmds in
8173     *'~'*)
8174       # FIXME: we may have to deal with multi-command sequences.
8175       ;;
8176     '$CC '*)
8177       # Test whether the compiler implicitly links with -lc since on some
8178       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8179       # to ld, don't add -lc before -lgcc.
8180       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8181 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8182       $rm conftest*
8183       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8184
8185       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } 2>conftest.err; then
8190         soname=conftest
8191         lib=conftest
8192         libobjs=conftest.$ac_objext
8193         deplibs=
8194         wl=$lt_prog_compiler_wl
8195         compiler_flags=-v
8196         linker_flags=-v
8197         verstring=
8198         output_objdir=.
8199         libname=conftest
8200         lt_save_allow_undefined_flag=$allow_undefined_flag
8201         allow_undefined_flag=
8202         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8203   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8204   ac_status=$?
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }
8207         then
8208           archive_cmds_need_lc=no
8209         else
8210           archive_cmds_need_lc=yes
8211         fi
8212         allow_undefined_flag=$lt_save_allow_undefined_flag
8213       else
8214         cat conftest.err 1>&5
8215       fi
8216       $rm conftest*
8217       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8218 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8219       ;;
8220     esac
8221   fi
8222   ;;
8223 esac
8224
8225 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8226 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8227 library_names_spec=
8228 libname_spec='lib$name'
8229 soname_spec=
8230 shrext_cmds=".so"
8231 postinstall_cmds=
8232 postuninstall_cmds=
8233 finish_cmds=
8234 finish_eval=
8235 shlibpath_var=
8236 shlibpath_overrides_runpath=unknown
8237 version_type=none
8238 dynamic_linker="$host_os ld.so"
8239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8240 if test "$GCC" = yes; then
8241   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8242   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8243     # if the path contains ";" then we assume it to be the separator
8244     # otherwise default to the standard path separator (i.e. ":") - it is
8245     # assumed that no part of a normal pathname contains ";" but that should
8246     # okay in the real world where ";" in dirpaths is itself problematic.
8247     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8248   else
8249     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8250   fi
8251 else
8252   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8253 fi
8254 need_lib_prefix=unknown
8255 hardcode_into_libs=no
8256
8257 # when you set need_version to no, make sure it does not cause -set_version
8258 # flags to be left without arguments
8259 need_version=unknown
8260
8261 case $host_os in
8262 aix3*)
8263   version_type=linux
8264   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8265   shlibpath_var=LIBPATH
8266
8267   # AIX 3 has no versioning support, so we append a major version to the name.
8268   soname_spec='${libname}${release}${shared_ext}$major'
8269   ;;
8270
8271 aix4* | aix5*)
8272   version_type=linux
8273   need_lib_prefix=no
8274   need_version=no
8275   hardcode_into_libs=yes
8276   if test "$host_cpu" = ia64; then
8277     # AIX 5 supports IA64
8278     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8279     shlibpath_var=LD_LIBRARY_PATH
8280   else
8281     # With GCC up to 2.95.x, collect2 would create an import file
8282     # for dependence libraries.  The import file would start with
8283     # the line `#! .'.  This would cause the generated library to
8284     # depend on `.', always an invalid library.  This was fixed in
8285     # development snapshots of GCC prior to 3.0.
8286     case $host_os in
8287       aix4 | aix4.[01] | aix4.[01].*)
8288       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8289            echo ' yes '
8290            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8291         :
8292       else
8293         can_build_shared=no
8294       fi
8295       ;;
8296     esac
8297     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8298     # soname into executable. Probably we can add versioning support to
8299     # collect2, so additional links can be useful in future.
8300     if test "$aix_use_runtimelinking" = yes; then
8301       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8302       # instead of lib<name>.a to let people know that these are not
8303       # typical AIX shared libraries.
8304       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305     else
8306       # We preserve .a as extension for shared libraries through AIX4.2
8307       # and later when we are not doing run time linking.
8308       library_names_spec='${libname}${release}.a $libname.a'
8309       soname_spec='${libname}${release}${shared_ext}$major'
8310     fi
8311     shlibpath_var=LIBPATH
8312   fi
8313   ;;
8314
8315 amigaos*)
8316   library_names_spec='$libname.ixlibrary $libname.a'
8317   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8318   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'
8319   ;;
8320
8321 beos*)
8322   library_names_spec='${libname}${shared_ext}'
8323   dynamic_linker="$host_os ld.so"
8324   shlibpath_var=LIBRARY_PATH
8325   ;;
8326
8327 bsdi[45]*)
8328   version_type=linux
8329   need_version=no
8330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8331   soname_spec='${libname}${release}${shared_ext}$major'
8332   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8333   shlibpath_var=LD_LIBRARY_PATH
8334   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8335   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8336   # the default ld.so.conf also contains /usr/contrib/lib and
8337   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8338   # libtool to hard-code these into programs
8339   ;;
8340
8341 cygwin* | mingw* | pw32*)
8342   version_type=windows
8343   shrext_cmds=".dll"
8344   need_version=no
8345   need_lib_prefix=no
8346
8347   case $GCC,$host_os in
8348   yes,cygwin* | yes,mingw* | yes,pw32*)
8349     library_names_spec='$libname.dll.a'
8350     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8351     postinstall_cmds='base_file=`basename \${file}`~
8352       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8353       dldir=$destdir/`dirname \$dlpath`~
8354       test -d \$dldir || mkdir -p \$dldir~
8355       $install_prog $dir/$dlname \$dldir/$dlname'
8356     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8357       dlpath=$dir/\$dldll~
8358        $rm \$dlpath'
8359     shlibpath_overrides_runpath=yes
8360
8361     case $host_os in
8362     cygwin*)
8363       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8364       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8365       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8366       ;;
8367     mingw*)
8368       # MinGW DLLs use traditional 'lib' prefix
8369       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8370       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8371       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8372         # It is most probably a Windows format PATH printed by
8373         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8374         # path with ; separators, and with drive letters. We can handle the
8375         # drive letters (cygwin fileutils understands them), so leave them,
8376         # especially as we might pass files found there to a mingw objdump,
8377         # which wouldn't understand a cygwinified path. Ahh.
8378         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8379       else
8380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8381       fi
8382       ;;
8383     pw32*)
8384       # pw32 DLLs use 'pw' prefix rather than 'lib'
8385       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8386       ;;
8387     esac
8388     ;;
8389
8390   *)
8391     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8392     ;;
8393   esac
8394   dynamic_linker='Win32 ld.exe'
8395   # FIXME: first we should search . and the directory the executable is in
8396   shlibpath_var=PATH
8397   ;;
8398
8399 darwin* | rhapsody*)
8400   dynamic_linker="$host_os dyld"
8401   version_type=darwin
8402   need_lib_prefix=no
8403   need_version=no
8404   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8405   soname_spec='${libname}${release}${major}$shared_ext'
8406   shlibpath_overrides_runpath=yes
8407   shlibpath_var=DYLD_LIBRARY_PATH
8408   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8409   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8410   if test "$GCC" = yes; then
8411     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"`
8412   else
8413     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8414   fi
8415   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8416   ;;
8417
8418 dgux*)
8419   version_type=linux
8420   need_lib_prefix=no
8421   need_version=no
8422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8423   soname_spec='${libname}${release}${shared_ext}$major'
8424   shlibpath_var=LD_LIBRARY_PATH
8425   ;;
8426
8427 freebsd1*)
8428   dynamic_linker=no
8429   ;;
8430
8431 kfreebsd*-gnu)
8432   version_type=linux
8433   need_lib_prefix=no
8434   need_version=no
8435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8436   soname_spec='${libname}${release}${shared_ext}$major'
8437   shlibpath_var=LD_LIBRARY_PATH
8438   shlibpath_overrides_runpath=no
8439   hardcode_into_libs=yes
8440   dynamic_linker='GNU ld.so'
8441   ;;
8442
8443 freebsd* | dragonfly*)
8444   # DragonFly does not have aout.  When/if they implement a new
8445   # versioning mechanism, adjust this.
8446   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8447   version_type=freebsd-$objformat
8448   case $version_type in
8449     freebsd-elf*)
8450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8451       need_version=no
8452       need_lib_prefix=no
8453       ;;
8454     freebsd-*)
8455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8456       need_version=yes
8457       ;;
8458   esac
8459   shlibpath_var=LD_LIBRARY_PATH
8460   case $host_os in
8461   freebsd2*)
8462     shlibpath_overrides_runpath=yes
8463     ;;
8464   freebsd3.[01]* | freebsdelf3.[01]*)
8465     shlibpath_overrides_runpath=yes
8466     hardcode_into_libs=yes
8467     ;;
8468   *) # from 3.2 on
8469     shlibpath_overrides_runpath=no
8470     hardcode_into_libs=yes
8471     ;;
8472   esac
8473   ;;
8474
8475 gnu*)
8476   version_type=linux
8477   need_lib_prefix=no
8478   need_version=no
8479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8480   soname_spec='${libname}${release}${shared_ext}$major'
8481   shlibpath_var=LD_LIBRARY_PATH
8482   hardcode_into_libs=yes
8483   ;;
8484
8485 hpux9* | hpux10* | hpux11*)
8486   # Give a soname corresponding to the major version so that dld.sl refuses to
8487   # link against other versions.
8488   version_type=sunos
8489   need_lib_prefix=no
8490   need_version=no
8491   case "$host_cpu" in
8492   ia64*)
8493     shrext_cmds='.so'
8494     hardcode_into_libs=yes
8495     dynamic_linker="$host_os dld.so"
8496     shlibpath_var=LD_LIBRARY_PATH
8497     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8499     soname_spec='${libname}${release}${shared_ext}$major'
8500     if test "X$HPUX_IA64_MODE" = X32; then
8501       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8502     else
8503       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8504     fi
8505     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8506     ;;
8507    hppa*64*)
8508      shrext_cmds='.sl'
8509      hardcode_into_libs=yes
8510      dynamic_linker="$host_os dld.sl"
8511      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8512      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8513      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8514      soname_spec='${libname}${release}${shared_ext}$major'
8515      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8516      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8517      ;;
8518    *)
8519     shrext_cmds='.sl'
8520     dynamic_linker="$host_os dld.sl"
8521     shlibpath_var=SHLIB_PATH
8522     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524     soname_spec='${libname}${release}${shared_ext}$major'
8525     ;;
8526   esac
8527   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8528   postinstall_cmds='chmod 555 $lib'
8529   ;;
8530
8531 irix5* | irix6* | nonstopux*)
8532   case $host_os in
8533     nonstopux*) version_type=nonstopux ;;
8534     *)
8535         if test "$lt_cv_prog_gnu_ld" = yes; then
8536                 version_type=linux
8537         else
8538                 version_type=irix
8539         fi ;;
8540   esac
8541   need_lib_prefix=no
8542   need_version=no
8543   soname_spec='${libname}${release}${shared_ext}$major'
8544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8545   case $host_os in
8546   irix5* | nonstopux*)
8547     libsuff= shlibsuff=
8548     ;;
8549   *)
8550     case $LD in # libtool.m4 will add one of these switches to LD
8551     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8552       libsuff= shlibsuff= libmagic=32-bit;;
8553     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8554       libsuff=32 shlibsuff=N32 libmagic=N32;;
8555     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8556       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8557     *) libsuff= shlibsuff= libmagic=never-match;;
8558     esac
8559     ;;
8560   esac
8561   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8562   shlibpath_overrides_runpath=no
8563   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8564   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8565   hardcode_into_libs=yes
8566   ;;
8567
8568 # No shared lib support for Linux oldld, aout, or coff.
8569 linux*oldld* | linux*aout* | linux*coff*)
8570   dynamic_linker=no
8571   ;;
8572
8573 # This must be Linux ELF.
8574 linux*)
8575   version_type=linux
8576   need_lib_prefix=no
8577   need_version=no
8578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579   soname_spec='${libname}${release}${shared_ext}$major'
8580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8581   shlibpath_var=LD_LIBRARY_PATH
8582   shlibpath_overrides_runpath=no
8583   # This implies no fast_install, which is unacceptable.
8584   # Some rework will be needed to allow for fast_install
8585   # before this can be enabled.
8586   hardcode_into_libs=yes
8587
8588   # find out which ABI we are using
8589   libsuff=
8590   case "$host_cpu" in
8591   x86_64*|s390x*|powerpc64*)
8592     echo '#line 8592 "configure"' > conftest.$ac_ext
8593     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594   (eval $ac_compile) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; then
8598       case `/usr/bin/file conftest.$ac_objext` in
8599       *64-bit*)
8600         libsuff=64
8601         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8602         ;;
8603       esac
8604     fi
8605     rm -rf conftest*
8606     ;;
8607   esac
8608
8609   # Append ld.so.conf contents to the search path
8610   if test -f /etc/ld.so.conf; then
8611     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8612     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8613   fi
8614
8615   # We used to test for /lib/ld.so.1 and disable shared libraries on
8616   # powerpc, because MkLinux only supported shared libraries with the
8617   # GNU dynamic linker.  Since this was broken with cross compilers,
8618   # most powerpc-linux boxes support dynamic linking these days and
8619   # people can always --disable-shared, the test was removed, and we
8620   # assume the GNU/Linux dynamic linker is in use.
8621   dynamic_linker='GNU/Linux ld.so'
8622   ;;
8623
8624 knetbsd*-gnu)
8625   version_type=linux
8626   need_lib_prefix=no
8627   need_version=no
8628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8629   soname_spec='${libname}${release}${shared_ext}$major'
8630   shlibpath_var=LD_LIBRARY_PATH
8631   shlibpath_overrides_runpath=no
8632   hardcode_into_libs=yes
8633   dynamic_linker='GNU ld.so'
8634   ;;
8635
8636 netbsd*)
8637   version_type=sunos
8638   need_lib_prefix=no
8639   need_version=no
8640   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8642     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8643     dynamic_linker='NetBSD (a.out) ld.so'
8644   else
8645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646     soname_spec='${libname}${release}${shared_ext}$major'
8647     dynamic_linker='NetBSD ld.elf_so'
8648   fi
8649   shlibpath_var=LD_LIBRARY_PATH
8650   shlibpath_overrides_runpath=yes
8651   hardcode_into_libs=yes
8652   ;;
8653
8654 newsos6)
8655   version_type=linux
8656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8657   shlibpath_var=LD_LIBRARY_PATH
8658   shlibpath_overrides_runpath=yes
8659   ;;
8660
8661 nto-qnx*)
8662   version_type=linux
8663   need_lib_prefix=no
8664   need_version=no
8665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666   soname_spec='${libname}${release}${shared_ext}$major'
8667   shlibpath_var=LD_LIBRARY_PATH
8668   shlibpath_overrides_runpath=yes
8669   ;;
8670
8671 openbsd*)
8672   version_type=sunos
8673   need_lib_prefix=no
8674   need_version=no
8675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8677   shlibpath_var=LD_LIBRARY_PATH
8678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8679     case $host_os in
8680       openbsd2.[89] | openbsd2.[89].*)
8681         shlibpath_overrides_runpath=no
8682         ;;
8683       *)
8684         shlibpath_overrides_runpath=yes
8685         ;;
8686       esac
8687   else
8688     shlibpath_overrides_runpath=yes
8689   fi
8690   ;;
8691
8692 os2*)
8693   libname_spec='$name'
8694   shrext_cmds=".dll"
8695   need_lib_prefix=no
8696   library_names_spec='$libname${shared_ext} $libname.a'
8697   dynamic_linker='OS/2 ld.exe'
8698   shlibpath_var=LIBPATH
8699   ;;
8700
8701 osf3* | osf4* | osf5*)
8702   version_type=osf
8703   need_lib_prefix=no
8704   need_version=no
8705   soname_spec='${libname}${release}${shared_ext}$major'
8706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707   shlibpath_var=LD_LIBRARY_PATH
8708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8710   ;;
8711
8712 sco3.2v5*)
8713   version_type=osf
8714   soname_spec='${libname}${release}${shared_ext}$major'
8715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716   shlibpath_var=LD_LIBRARY_PATH
8717   ;;
8718
8719 solaris*)
8720   version_type=linux
8721   need_lib_prefix=no
8722   need_version=no
8723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724   soname_spec='${libname}${release}${shared_ext}$major'
8725   shlibpath_var=LD_LIBRARY_PATH
8726   shlibpath_overrides_runpath=yes
8727   hardcode_into_libs=yes
8728   # ldd complains unless libraries are executable
8729   postinstall_cmds='chmod +x $lib'
8730   ;;
8731
8732 sunos4*)
8733   version_type=sunos
8734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8735   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8736   shlibpath_var=LD_LIBRARY_PATH
8737   shlibpath_overrides_runpath=yes
8738   if test "$with_gnu_ld" = yes; then
8739     need_lib_prefix=no
8740   fi
8741   need_version=yes
8742   ;;
8743
8744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8745   version_type=linux
8746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747   soname_spec='${libname}${release}${shared_ext}$major'
8748   shlibpath_var=LD_LIBRARY_PATH
8749   case $host_vendor in
8750     sni)
8751       shlibpath_overrides_runpath=no
8752       need_lib_prefix=no
8753       export_dynamic_flag_spec='${wl}-Blargedynsym'
8754       runpath_var=LD_RUN_PATH
8755       ;;
8756     siemens)
8757       need_lib_prefix=no
8758       ;;
8759     motorola)
8760       need_lib_prefix=no
8761       need_version=no
8762       shlibpath_overrides_runpath=no
8763       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8764       ;;
8765   esac
8766   ;;
8767
8768 sysv4*MP*)
8769   if test -d /usr/nec ;then
8770     version_type=linux
8771     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8772     soname_spec='$libname${shared_ext}.$major'
8773     shlibpath_var=LD_LIBRARY_PATH
8774   fi
8775   ;;
8776
8777 uts4*)
8778   version_type=linux
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780   soname_spec='${libname}${release}${shared_ext}$major'
8781   shlibpath_var=LD_LIBRARY_PATH
8782   ;;
8783
8784 *)
8785   dynamic_linker=no
8786   ;;
8787 esac
8788 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8789 echo "${ECHO_T}$dynamic_linker" >&6
8790 test "$dynamic_linker" = no && can_build_shared=no
8791
8792 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8794 hardcode_action=
8795 if test -n "$hardcode_libdir_flag_spec" || \
8796    test -n "$runpath_var" || \
8797    test "X$hardcode_automatic" = "Xyes" ; then
8798
8799   # We can hardcode non-existant directories.
8800   if test "$hardcode_direct" != no &&
8801      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8802      # have to relink, otherwise we might link with an installed library
8803      # when we should be linking with a yet-to-be-installed one
8804      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8805      test "$hardcode_minus_L" != no; then
8806     # Linking always hardcodes the temporary library directory.
8807     hardcode_action=relink
8808   else
8809     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8810     hardcode_action=immediate
8811   fi
8812 else
8813   # We cannot hardcode anything, or else we can only hardcode existing
8814   # directories.
8815   hardcode_action=unsupported
8816 fi
8817 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8818 echo "${ECHO_T}$hardcode_action" >&6
8819
8820 if test "$hardcode_action" = relink; then
8821   # Fast installation is not supported
8822   enable_fast_install=no
8823 elif test "$shlibpath_overrides_runpath" = yes ||
8824      test "$enable_shared" = no; then
8825   # Fast installation is not necessary
8826   enable_fast_install=needless
8827 fi
8828
8829 striplib=
8830 old_striplib=
8831 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8834   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8835   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8836   echo "$as_me:$LINENO: result: yes" >&5
8837 echo "${ECHO_T}yes" >&6
8838 else
8839 # FIXME - insert some real tests, host_os isn't really good enough
8840   case $host_os in
8841    darwin*)
8842        if test -n "$STRIP" ; then
8843          striplib="$STRIP -x"
8844          echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6
8846        else
8847   echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8849 fi
8850        ;;
8851    *)
8852   echo "$as_me:$LINENO: result: no" >&5
8853 echo "${ECHO_T}no" >&6
8854     ;;
8855   esac
8856 fi
8857
8858 if test "x$enable_dlopen" != xyes; then
8859   enable_dlopen=unknown
8860   enable_dlopen_self=unknown
8861   enable_dlopen_self_static=unknown
8862 else
8863   lt_cv_dlopen=no
8864   lt_cv_dlopen_libs=
8865
8866   case $host_os in
8867   beos*)
8868     lt_cv_dlopen="load_add_on"
8869     lt_cv_dlopen_libs=
8870     lt_cv_dlopen_self=yes
8871     ;;
8872
8873   mingw* | pw32*)
8874     lt_cv_dlopen="LoadLibrary"
8875     lt_cv_dlopen_libs=
8876    ;;
8877
8878   cygwin*)
8879     lt_cv_dlopen="dlopen"
8880     lt_cv_dlopen_libs=
8881    ;;
8882
8883   darwin*)
8884   # if libdl is installed we need to link against it
8885     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   ac_check_lib_save_LIBS=$LIBS
8891 LIBS="-ldl  $LIBS"
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899 /* Override any gcc2 internal prototype to avoid an error.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 /* We use char because int might match the return type of a gcc2
8904    builtin and then its argument prototype would still apply.  */
8905 char dlopen ();
8906 int
8907 main ()
8908 {
8909 dlopen ();
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916   (eval $ac_link) 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -z "$ac_c_werror_flag"
8924                          || test ! -s conftest.err'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; } &&
8930          { ac_try='test -s conftest$ac_exeext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_cv_lib_dl_dlopen=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_cv_lib_dl_dlopen=no
8942 fi
8943 rm -f conftest.err conftest.$ac_objext \
8944       conftest$ac_exeext conftest.$ac_ext
8945 LIBS=$ac_check_lib_save_LIBS
8946 fi
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8949 if test $ac_cv_lib_dl_dlopen = yes; then
8950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8951 else
8952
8953     lt_cv_dlopen="dyld"
8954     lt_cv_dlopen_libs=
8955     lt_cv_dlopen_self=yes
8956
8957 fi
8958
8959    ;;
8960
8961   *)
8962     echo "$as_me:$LINENO: checking for shl_load" >&5
8963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8964 if test "${ac_cv_func_shl_load+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8975 #define shl_load innocuous_shl_load
8976
8977 /* System header to define __stub macros and hopefully few prototypes,
8978     which can conflict with char shl_load (); below.
8979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8980     <limits.h> exists even on freestanding compilers.  */
8981
8982 #ifdef __STDC__
8983 # include <limits.h>
8984 #else
8985 # include <assert.h>
8986 #endif
8987
8988 #undef shl_load
8989
8990 /* Override any gcc2 internal prototype to avoid an error.  */
8991 #ifdef __cplusplus
8992 extern "C"
8993 {
8994 #endif
8995 /* We use char because int might match the return type of a gcc2
8996    builtin and then its argument prototype would still apply.  */
8997 char shl_load ();
8998 /* The GNU C library defines this for functions which it implements
8999     to always fail with ENOSYS.  Some functions are actually named
9000     something starting with __ and the normal name is an alias.  */
9001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9002 choke me
9003 #else
9004 char (*f) () = shl_load;
9005 #endif
9006 #ifdef __cplusplus
9007 }
9008 #endif
9009
9010 int
9011 main ()
9012 {
9013 return f != shl_load;
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020   (eval $ac_link) 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } &&
9027          { ac_try='test -z "$ac_c_werror_flag"
9028                          || test ! -s conftest.err'
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); }; } &&
9034          { ac_try='test -s conftest$ac_exeext'
9035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036   (eval $ac_try) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; }; then
9040   ac_cv_func_shl_load=yes
9041 else
9042   echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_cv_func_shl_load=no
9046 fi
9047 rm -f conftest.err conftest.$ac_objext \
9048       conftest$ac_exeext conftest.$ac_ext
9049 fi
9050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9052 if test $ac_cv_func_shl_load = yes; then
9053   lt_cv_dlopen="shl_load"
9054 else
9055   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9056 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060   ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-ldld  $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068
9069 /* Override any gcc2 internal prototype to avoid an error.  */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 /* We use char because int might match the return type of a gcc2
9074    builtin and then its argument prototype would still apply.  */
9075 char shl_load ();
9076 int
9077 main ()
9078 {
9079 shl_load ();
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086   (eval $ac_link) 2>conftest.er1
9087   ac_status=$?
9088   grep -v '^ *+' conftest.er1 >conftest.err
9089   rm -f conftest.er1
9090   cat conftest.err >&5
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } &&
9093          { ac_try='test -z "$ac_c_werror_flag"
9094                          || test ! -s conftest.err'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; } &&
9100          { ac_try='test -s conftest$ac_exeext'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; }; then
9106   ac_cv_lib_dld_shl_load=yes
9107 else
9108   echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111 ac_cv_lib_dld_shl_load=no
9112 fi
9113 rm -f conftest.err conftest.$ac_objext \
9114       conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9116 fi
9117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9118 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9119 if test $ac_cv_lib_dld_shl_load = yes; then
9120   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9121 else
9122   echo "$as_me:$LINENO: checking for dlopen" >&5
9123 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9124 if test "${ac_cv_func_dlopen+set}" = set; then
9125   echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127   cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h.  */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h.  */
9133 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9135 #define dlopen innocuous_dlopen
9136
9137 /* System header to define __stub macros and hopefully few prototypes,
9138     which can conflict with char dlopen (); below.
9139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9140     <limits.h> exists even on freestanding compilers.  */
9141
9142 #ifdef __STDC__
9143 # include <limits.h>
9144 #else
9145 # include <assert.h>
9146 #endif
9147
9148 #undef dlopen
9149
9150 /* Override any gcc2 internal prototype to avoid an error.  */
9151 #ifdef __cplusplus
9152 extern "C"
9153 {
9154 #endif
9155 /* We use char because int might match the return type of a gcc2
9156    builtin and then its argument prototype would still apply.  */
9157 char dlopen ();
9158 /* The GNU C library defines this for functions which it implements
9159     to always fail with ENOSYS.  Some functions are actually named
9160     something starting with __ and the normal name is an alias.  */
9161 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9162 choke me
9163 #else
9164 char (*f) () = dlopen;
9165 #endif
9166 #ifdef __cplusplus
9167 }
9168 #endif
9169
9170 int
9171 main ()
9172 {
9173 return f != dlopen;
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9180   (eval $ac_link) 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } &&
9187          { ac_try='test -z "$ac_c_werror_flag"
9188                          || test ! -s conftest.err'
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); }; } &&
9194          { ac_try='test -s conftest$ac_exeext'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   ac_cv_func_dlopen=yes
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ac_cv_func_dlopen=no
9206 fi
9207 rm -f conftest.err conftest.$ac_objext \
9208       conftest$ac_exeext conftest.$ac_ext
9209 fi
9210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9212 if test $ac_cv_func_dlopen = yes; then
9213   lt_cv_dlopen="dlopen"
9214 else
9215   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   ac_check_lib_save_LIBS=$LIBS
9221 LIBS="-ldl  $LIBS"
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228
9229 /* Override any gcc2 internal prototype to avoid an error.  */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 /* We use char because int might match the return type of a gcc2
9234    builtin and then its argument prototype would still apply.  */
9235 char dlopen ();
9236 int
9237 main ()
9238 {
9239 dlopen ();
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246   (eval $ac_link) 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } &&
9253          { ac_try='test -z "$ac_c_werror_flag"
9254                          || test ! -s conftest.err'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; } &&
9260          { ac_try='test -s conftest$ac_exeext'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; }; then
9266   ac_cv_lib_dl_dlopen=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 ac_cv_lib_dl_dlopen=no
9272 fi
9273 rm -f conftest.err conftest.$ac_objext \
9274       conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9278 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9279 if test $ac_cv_lib_dl_dlopen = yes; then
9280   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9281 else
9282   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9283 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9284 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lsvld  $LIBS"
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h.  */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h.  */
9295
9296 /* Override any gcc2 internal prototype to avoid an error.  */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 /* We use char because int might match the return type of a gcc2
9301    builtin and then its argument prototype would still apply.  */
9302 char dlopen ();
9303 int
9304 main ()
9305 {
9306 dlopen ();
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313   (eval $ac_link) 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } &&
9320          { ac_try='test -z "$ac_c_werror_flag"
9321                          || test ! -s conftest.err'
9322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323   (eval $ac_try) 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); }; } &&
9327          { ac_try='test -s conftest$ac_exeext'
9328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329   (eval $ac_try) 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; }; then
9333   ac_cv_lib_svld_dlopen=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338 ac_cv_lib_svld_dlopen=no
9339 fi
9340 rm -f conftest.err conftest.$ac_objext \
9341       conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9343 fi
9344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9346 if test $ac_cv_lib_svld_dlopen = yes; then
9347   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9348 else
9349   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   ac_check_lib_save_LIBS=$LIBS
9355 LIBS="-ldld  $LIBS"
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362
9363 /* Override any gcc2 internal prototype to avoid an error.  */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 /* We use char because int might match the return type of a gcc2
9368    builtin and then its argument prototype would still apply.  */
9369 char dld_link ();
9370 int
9371 main ()
9372 {
9373 dld_link ();
9374   ;
9375   return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380   (eval $ac_link) 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } &&
9387          { ac_try='test -z "$ac_c_werror_flag"
9388                          || test ! -s conftest.err'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; } &&
9394          { ac_try='test -s conftest$ac_exeext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_cv_lib_dld_dld_link=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ac_cv_lib_dld_dld_link=no
9406 fi
9407 rm -f conftest.err conftest.$ac_objext \
9408       conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9410 fi
9411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9413 if test $ac_cv_lib_dld_dld_link = yes; then
9414   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9415 fi
9416
9417
9418 fi
9419
9420
9421 fi
9422
9423
9424 fi
9425
9426
9427 fi
9428
9429
9430 fi
9431
9432     ;;
9433   esac
9434
9435   if test "x$lt_cv_dlopen" != xno; then
9436     enable_dlopen=yes
9437   else
9438     enable_dlopen=no
9439   fi
9440
9441   case $lt_cv_dlopen in
9442   dlopen)
9443     save_CPPFLAGS="$CPPFLAGS"
9444     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9445
9446     save_LDFLAGS="$LDFLAGS"
9447     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9448
9449     save_LIBS="$LIBS"
9450     LIBS="$lt_cv_dlopen_libs $LIBS"
9451
9452     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9454 if test "${lt_cv_dlopen_self+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457           if test "$cross_compiling" = yes; then :
9458   lt_cv_dlopen_self=cross
9459 else
9460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9461   lt_status=$lt_dlunknown
9462   cat > conftest.$ac_ext <<EOF
9463 #line 9463 "configure"
9464 #include "confdefs.h"
9465
9466 #if HAVE_DLFCN_H
9467 #include <dlfcn.h>
9468 #endif
9469
9470 #include <stdio.h>
9471
9472 #ifdef RTLD_GLOBAL
9473 #  define LT_DLGLOBAL           RTLD_GLOBAL
9474 #else
9475 #  ifdef DL_GLOBAL
9476 #    define LT_DLGLOBAL         DL_GLOBAL
9477 #  else
9478 #    define LT_DLGLOBAL         0
9479 #  endif
9480 #endif
9481
9482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9483    find out it does not work in some platform. */
9484 #ifndef LT_DLLAZY_OR_NOW
9485 #  ifdef RTLD_LAZY
9486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9487 #  else
9488 #    ifdef DL_LAZY
9489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9490 #    else
9491 #      ifdef RTLD_NOW
9492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9493 #      else
9494 #        ifdef DL_NOW
9495 #          define LT_DLLAZY_OR_NOW      DL_NOW
9496 #        else
9497 #          define LT_DLLAZY_OR_NOW      0
9498 #        endif
9499 #      endif
9500 #    endif
9501 #  endif
9502 #endif
9503
9504 #ifdef __cplusplus
9505 extern "C" void exit (int);
9506 #endif
9507
9508 void fnord() { int i=42;}
9509 int main ()
9510 {
9511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9512   int status = $lt_dlunknown;
9513
9514   if (self)
9515     {
9516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9518       /* dlclose (self); */
9519     }
9520
9521     exit (status);
9522 }
9523 EOF
9524   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525   (eval $ac_link) 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9529     (./conftest; exit; ) 2>/dev/null
9530     lt_status=$?
9531     case x$lt_status in
9532       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9533       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9534       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9535     esac
9536   else :
9537     # compilation failed
9538     lt_cv_dlopen_self=no
9539   fi
9540 fi
9541 rm -fr conftest*
9542
9543
9544 fi
9545 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9546 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9547
9548     if test "x$lt_cv_dlopen_self" = xyes; then
9549       LDFLAGS="$LDFLAGS $link_static_flag"
9550       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9551 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9552 if test "${lt_cv_dlopen_self_static+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555           if test "$cross_compiling" = yes; then :
9556   lt_cv_dlopen_self_static=cross
9557 else
9558   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9559   lt_status=$lt_dlunknown
9560   cat > conftest.$ac_ext <<EOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9563
9564 #if HAVE_DLFCN_H
9565 #include <dlfcn.h>
9566 #endif
9567
9568 #include <stdio.h>
9569
9570 #ifdef RTLD_GLOBAL
9571 #  define LT_DLGLOBAL           RTLD_GLOBAL
9572 #else
9573 #  ifdef DL_GLOBAL
9574 #    define LT_DLGLOBAL         DL_GLOBAL
9575 #  else
9576 #    define LT_DLGLOBAL         0
9577 #  endif
9578 #endif
9579
9580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9581    find out it does not work in some platform. */
9582 #ifndef LT_DLLAZY_OR_NOW
9583 #  ifdef RTLD_LAZY
9584 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9585 #  else
9586 #    ifdef DL_LAZY
9587 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9588 #    else
9589 #      ifdef RTLD_NOW
9590 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9591 #      else
9592 #        ifdef DL_NOW
9593 #          define LT_DLLAZY_OR_NOW      DL_NOW
9594 #        else
9595 #          define LT_DLLAZY_OR_NOW      0
9596 #        endif
9597 #      endif
9598 #    endif
9599 #  endif
9600 #endif
9601
9602 #ifdef __cplusplus
9603 extern "C" void exit (int);
9604 #endif
9605
9606 void fnord() { int i=42;}
9607 int main ()
9608 {
9609   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9610   int status = $lt_dlunknown;
9611
9612   if (self)
9613     {
9614       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9615       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9616       /* dlclose (self); */
9617     }
9618
9619     exit (status);
9620 }
9621 EOF
9622   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623   (eval $ac_link) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9627     (./conftest; exit; ) 2>/dev/null
9628     lt_status=$?
9629     case x$lt_status in
9630       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9631       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9632       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9633     esac
9634   else :
9635     # compilation failed
9636     lt_cv_dlopen_self_static=no
9637   fi
9638 fi
9639 rm -fr conftest*
9640
9641
9642 fi
9643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9644 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9645     fi
9646
9647     CPPFLAGS="$save_CPPFLAGS"
9648     LDFLAGS="$save_LDFLAGS"
9649     LIBS="$save_LIBS"
9650     ;;
9651   esac
9652
9653   case $lt_cv_dlopen_self in
9654   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9655   *) enable_dlopen_self=unknown ;;
9656   esac
9657
9658   case $lt_cv_dlopen_self_static in
9659   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9660   *) enable_dlopen_self_static=unknown ;;
9661   esac
9662 fi
9663
9664
9665 # Report which librarie types wil actually be built
9666 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9667 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9668 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9669 echo "${ECHO_T}$can_build_shared" >&6
9670
9671 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9672 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9673 test "$can_build_shared" = "no" && enable_shared=no
9674
9675 # On AIX, shared libraries and static libraries use the same namespace, and
9676 # are all built from PIC.
9677 case "$host_os" in
9678 aix3*)
9679   test "$enable_shared" = yes && enable_static=no
9680   if test -n "$RANLIB"; then
9681     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9682     postinstall_cmds='$RANLIB $lib'
9683   fi
9684   ;;
9685
9686 aix4* | aix5*)
9687   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9688     test "$enable_shared" = yes && enable_static=no
9689   fi
9690     ;;
9691 esac
9692 echo "$as_me:$LINENO: result: $enable_shared" >&5
9693 echo "${ECHO_T}$enable_shared" >&6
9694
9695 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9696 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9697 # Make sure either enable_shared or enable_static is yes.
9698 test "$enable_shared" = yes || enable_static=yes
9699 echo "$as_me:$LINENO: result: $enable_static" >&5
9700 echo "${ECHO_T}$enable_static" >&6
9701
9702 # The else clause should only fire when bootstrapping the
9703 # libtool distribution, otherwise you forgot to ship ltmain.sh
9704 # with your package, and you will get complaints that there are
9705 # no rules to generate ltmain.sh.
9706 if test -f "$ltmain"; then
9707   # See if we are running on zsh, and set the options which allow our commands through
9708   # without removal of \ escapes.
9709   if test -n "${ZSH_VERSION+set}" ; then
9710     setopt NO_GLOB_SUBST
9711   fi
9712   # Now quote all the things that may contain metacharacters while being
9713   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9714   # variables and quote the copies for generation of the libtool script.
9715   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9716     SED SHELL STRIP \
9717     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9718     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9719     deplibs_check_method reload_flag reload_cmds need_locks \
9720     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9721     lt_cv_sys_global_symbol_to_c_name_address \
9722     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9723     old_postinstall_cmds old_postuninstall_cmds \
9724     compiler \
9725     CC \
9726     LD \
9727     lt_prog_compiler_wl \
9728     lt_prog_compiler_pic \
9729     lt_prog_compiler_static \
9730     lt_prog_compiler_no_builtin_flag \
9731     export_dynamic_flag_spec \
9732     thread_safe_flag_spec \
9733     whole_archive_flag_spec \
9734     enable_shared_with_static_runtimes \
9735     old_archive_cmds \
9736     old_archive_from_new_cmds \
9737     predep_objects \
9738     postdep_objects \
9739     predeps \
9740     postdeps \
9741     compiler_lib_search_path \
9742     archive_cmds \
9743     archive_expsym_cmds \
9744     postinstall_cmds \
9745     postuninstall_cmds \
9746     old_archive_from_expsyms_cmds \
9747     allow_undefined_flag \
9748     no_undefined_flag \
9749     export_symbols_cmds \
9750     hardcode_libdir_flag_spec \
9751     hardcode_libdir_flag_spec_ld \
9752     hardcode_libdir_separator \
9753     hardcode_automatic \
9754     module_cmds \
9755     module_expsym_cmds \
9756     lt_cv_prog_compiler_c_o \
9757     exclude_expsyms \
9758     include_expsyms; do
9759
9760     case $var in
9761     old_archive_cmds | \
9762     old_archive_from_new_cmds | \
9763     archive_cmds | \
9764     archive_expsym_cmds | \
9765     module_cmds | \
9766     module_expsym_cmds | \
9767     old_archive_from_expsyms_cmds | \
9768     export_symbols_cmds | \
9769     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9770     postinstall_cmds | postuninstall_cmds | \
9771     old_postinstall_cmds | old_postuninstall_cmds | \
9772     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9773       # Double-quote double-evaled strings.
9774       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9775       ;;
9776     *)
9777       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9778       ;;
9779     esac
9780   done
9781
9782   case $lt_echo in
9783   *'\$0 --fallback-echo"')
9784     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9785     ;;
9786   esac
9787
9788 cfgfile="${ofile}T"
9789   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9790   $rm -f "$cfgfile"
9791   { echo "$as_me:$LINENO: creating $ofile" >&5
9792 echo "$as_me: creating $ofile" >&6;}
9793
9794   cat <<__EOF__ >> "$cfgfile"
9795 #! $SHELL
9796
9797 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9798 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9799 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9800 #
9801 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9802 # Free Software Foundation, Inc.
9803 #
9804 # This file is part of GNU Libtool:
9805 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9806 #
9807 # This program is free software; you can redistribute it and/or modify
9808 # it under the terms of the GNU General Public License as published by
9809 # the Free Software Foundation; either version 2 of the License, or
9810 # (at your option) any later version.
9811 #
9812 # This program is distributed in the hope that it will be useful, but
9813 # WITHOUT ANY WARRANTY; without even the implied warranty of
9814 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9815 # General Public License for more details.
9816 #
9817 # You should have received a copy of the GNU General Public License
9818 # along with this program; if not, write to the Free Software
9819 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9820 #
9821 # As a special exception to the GNU General Public License, if you
9822 # distribute this file as part of a program that contains a
9823 # configuration script generated by Autoconf, you may include it under
9824 # the same distribution terms that you use for the rest of that program.
9825
9826 # A sed program that does not truncate output.
9827 SED=$lt_SED
9828
9829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9830 Xsed="$SED -e 1s/^X//"
9831
9832 # The HP-UX ksh and POSIX shell print the target directory to stdout
9833 # if CDPATH is set.
9834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9835
9836 # The names of the tagged configurations supported by this script.
9837 available_tags=
9838
9839 # ### BEGIN LIBTOOL CONFIG
9840
9841 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9842
9843 # Shell to use when invoking shell scripts.
9844 SHELL=$lt_SHELL
9845
9846 # Whether or not to build shared libraries.
9847 build_libtool_libs=$enable_shared
9848
9849 # Whether or not to build static libraries.
9850 build_old_libs=$enable_static
9851
9852 # Whether or not to add -lc for building shared libraries.
9853 build_libtool_need_lc=$archive_cmds_need_lc
9854
9855 # Whether or not to disallow shared libs when runtime libs are static
9856 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9857
9858 # Whether or not to optimize for fast installation.
9859 fast_install=$enable_fast_install
9860
9861 # The host system.
9862 host_alias=$host_alias
9863 host=$host
9864 host_os=$host_os
9865
9866 # The build system.
9867 build_alias=$build_alias
9868 build=$build
9869 build_os=$build_os
9870
9871 # An echo program that does not interpret backslashes.
9872 echo=$lt_echo
9873
9874 # The archiver.
9875 AR=$lt_AR
9876 AR_FLAGS=$lt_AR_FLAGS
9877
9878 # A C compiler.
9879 LTCC=$lt_LTCC
9880
9881 # A language-specific compiler.
9882 CC=$lt_compiler
9883
9884 # Is the compiler the GNU C compiler?
9885 with_gcc=$GCC
9886
9887 # An ERE matcher.
9888 EGREP=$lt_EGREP
9889
9890 # The linker used to build libraries.
9891 LD=$lt_LD
9892
9893 # Whether we need hard or soft links.
9894 LN_S=$lt_LN_S
9895
9896 # A BSD-compatible nm program.
9897 NM=$lt_NM
9898
9899 # A symbol stripping program
9900 STRIP=$lt_STRIP
9901
9902 # Used to examine libraries when file_magic_cmd begins "file"
9903 MAGIC_CMD=$MAGIC_CMD
9904
9905 # Used on cygwin: DLL creation program.
9906 DLLTOOL="$DLLTOOL"
9907
9908 # Used on cygwin: object dumper.
9909 OBJDUMP="$OBJDUMP"
9910
9911 # Used on cygwin: assembler.
9912 AS="$AS"
9913
9914 # The name of the directory that contains temporary libtool files.
9915 objdir=$objdir
9916
9917 # How to create reloadable object files.
9918 reload_flag=$lt_reload_flag
9919 reload_cmds=$lt_reload_cmds
9920
9921 # How to pass a linker flag through the compiler.
9922 wl=$lt_lt_prog_compiler_wl
9923
9924 # Object file suffix (normally "o").
9925 objext="$ac_objext"
9926
9927 # Old archive suffix (normally "a").
9928 libext="$libext"
9929
9930 # Shared library suffix (normally ".so").
9931 shrext_cmds='$shrext_cmds'
9932
9933 # Executable file suffix (normally "").
9934 exeext="$exeext"
9935
9936 # Additional compiler flags for building library objects.
9937 pic_flag=$lt_lt_prog_compiler_pic
9938 pic_mode=$pic_mode
9939
9940 # What is the maximum length of a command?
9941 max_cmd_len=$lt_cv_sys_max_cmd_len
9942
9943 # Does compiler simultaneously support -c and -o options?
9944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9945
9946 # Must we lock files when doing compilation?
9947 need_locks=$lt_need_locks
9948
9949 # Do we need the lib prefix for modules?
9950 need_lib_prefix=$need_lib_prefix
9951
9952 # Do we need a version for libraries?
9953 need_version=$need_version
9954
9955 # Whether dlopen is supported.
9956 dlopen_support=$enable_dlopen
9957
9958 # Whether dlopen of programs is supported.
9959 dlopen_self=$enable_dlopen_self
9960
9961 # Whether dlopen of statically linked programs is supported.
9962 dlopen_self_static=$enable_dlopen_self_static
9963
9964 # Compiler flag to prevent dynamic linking.
9965 link_static_flag=$lt_lt_prog_compiler_static
9966
9967 # Compiler flag to turn off builtin functions.
9968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9969
9970 # Compiler flag to allow reflexive dlopens.
9971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9972
9973 # Compiler flag to generate shared objects directly from archives.
9974 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9975
9976 # Compiler flag to generate thread-safe objects.
9977 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9978
9979 # Library versioning type.
9980 version_type=$version_type
9981
9982 # Format of library name prefix.
9983 libname_spec=$lt_libname_spec
9984
9985 # List of archive names.  First name is the real one, the rest are links.
9986 # The last name is the one that the linker finds with -lNAME.
9987 library_names_spec=$lt_library_names_spec
9988
9989 # The coded name of the library, if different from the real name.
9990 soname_spec=$lt_soname_spec
9991
9992 # Commands used to build and install an old-style archive.
9993 RANLIB=$lt_RANLIB
9994 old_archive_cmds=$lt_old_archive_cmds
9995 old_postinstall_cmds=$lt_old_postinstall_cmds
9996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9997
9998 # Create an old-style archive from a shared archive.
9999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10000
10001 # Create a temporary old-style archive to link instead of a shared archive.
10002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10003
10004 # Commands used to build and install a shared archive.
10005 archive_cmds=$lt_archive_cmds
10006 archive_expsym_cmds=$lt_archive_expsym_cmds
10007 postinstall_cmds=$lt_postinstall_cmds
10008 postuninstall_cmds=$lt_postuninstall_cmds
10009
10010 # Commands used to build a loadable module (assumed same as above if empty)
10011 module_cmds=$lt_module_cmds
10012 module_expsym_cmds=$lt_module_expsym_cmds
10013
10014 # Commands to strip libraries.
10015 old_striplib=$lt_old_striplib
10016 striplib=$lt_striplib
10017
10018 # Dependencies to place before the objects being linked to create a
10019 # shared library.
10020 predep_objects=$lt_predep_objects
10021
10022 # Dependencies to place after the objects being linked to create a
10023 # shared library.
10024 postdep_objects=$lt_postdep_objects
10025
10026 # Dependencies to place before the objects being linked to create a
10027 # shared library.
10028 predeps=$lt_predeps
10029
10030 # Dependencies to place after the objects being linked to create a
10031 # shared library.
10032 postdeps=$lt_postdeps
10033
10034 # The library search path used internally by the compiler when linking
10035 # a shared library.
10036 compiler_lib_search_path=$lt_compiler_lib_search_path
10037
10038 # Method to check whether dependent libraries are shared objects.
10039 deplibs_check_method=$lt_deplibs_check_method
10040
10041 # Command to use when deplibs_check_method == file_magic.
10042 file_magic_cmd=$lt_file_magic_cmd
10043
10044 # Flag that allows shared libraries with undefined symbols to be built.
10045 allow_undefined_flag=$lt_allow_undefined_flag
10046
10047 # Flag that forces no undefined symbols.
10048 no_undefined_flag=$lt_no_undefined_flag
10049
10050 # Commands used to finish a libtool library installation in a directory.
10051 finish_cmds=$lt_finish_cmds
10052
10053 # Same as above, but a single script fragment to be evaled but not shown.
10054 finish_eval=$lt_finish_eval
10055
10056 # Take the output of nm and produce a listing of raw symbols and C names.
10057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10058
10059 # Transform the output of nm in a proper C declaration
10060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10061
10062 # Transform the output of nm in a C name address pair
10063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10064
10065 # This is the shared library runtime path variable.
10066 runpath_var=$runpath_var
10067
10068 # This is the shared library path variable.
10069 shlibpath_var=$shlibpath_var
10070
10071 # Is shlibpath searched before the hard-coded library search path?
10072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10073
10074 # How to hardcode a shared library path into an executable.
10075 hardcode_action=$hardcode_action
10076
10077 # Whether we should hardcode library paths into libraries.
10078 hardcode_into_libs=$hardcode_into_libs
10079
10080 # Flag to hardcode \$libdir into a binary during linking.
10081 # This must work even if \$libdir does not exist.
10082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10083
10084 # If ld is used when linking, flag to hardcode \$libdir into
10085 # a binary during linking. This must work even if \$libdir does
10086 # not exist.
10087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10088
10089 # Whether we need a single -rpath flag with a separated argument.
10090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10091
10092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10093 # resulting binary.
10094 hardcode_direct=$hardcode_direct
10095
10096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10097 # resulting binary.
10098 hardcode_minus_L=$hardcode_minus_L
10099
10100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10101 # the resulting binary.
10102 hardcode_shlibpath_var=$hardcode_shlibpath_var
10103
10104 # Set to yes if building a shared library automatically hardcodes DIR into the library
10105 # and all subsequent libraries and executables linked against it.
10106 hardcode_automatic=$hardcode_automatic
10107
10108 # Variables whose values should be saved in libtool wrapper scripts and
10109 # restored at relink time.
10110 variables_saved_for_relink="$variables_saved_for_relink"
10111
10112 # Whether libtool must link a program against all its dependency libraries.
10113 link_all_deplibs=$link_all_deplibs
10114
10115 # Compile-time system search path for libraries
10116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10117
10118 # Run-time system search path for libraries
10119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10120
10121 # Fix the shell variable \$srcfile for the compiler.
10122 fix_srcfile_path="$fix_srcfile_path"
10123
10124 # Set to yes if exported symbols are required.
10125 always_export_symbols=$always_export_symbols
10126
10127 # The commands to list exported symbols.
10128 export_symbols_cmds=$lt_export_symbols_cmds
10129
10130 # The commands to extract the exported symbol list from a shared archive.
10131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10132
10133 # Symbols that should not be listed in the preloaded symbols.
10134 exclude_expsyms=$lt_exclude_expsyms
10135
10136 # Symbols that must always be exported.
10137 include_expsyms=$lt_include_expsyms
10138
10139 # ### END LIBTOOL CONFIG
10140
10141 __EOF__
10142
10143
10144   case $host_os in
10145   aix3*)
10146     cat <<\EOF >> "$cfgfile"
10147
10148 # AIX sometimes has problems with the GCC collect2 program.  For some
10149 # reason, if we set the COLLECT_NAMES environment variable, the problems
10150 # vanish in a puff of smoke.
10151 if test "X${COLLECT_NAMES+set}" != Xset; then
10152   COLLECT_NAMES=
10153   export COLLECT_NAMES
10154 fi
10155 EOF
10156     ;;
10157   esac
10158
10159   # We use sed instead of cat because bash on DJGPP gets confused if
10160   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10161   # text mode, it properly converts lines to CR/LF.  This bash problem
10162   # is reportedly fixed, but why not run on old versions too?
10163   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10164
10165   mv -f "$cfgfile" "$ofile" || \
10166     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10167   chmod +x "$ofile"
10168
10169 else
10170   # If there is no Makefile yet, we rely on a make rule to execute
10171   # `config.status --recheck' to rerun these tests and create the
10172   # libtool script then.
10173   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10174   if test -f "$ltmain_in"; then
10175     test -f Makefile && make "$ltmain"
10176   fi
10177 fi
10178
10179
10180 ac_ext=c
10181 ac_cpp='$CPP $CPPFLAGS'
10182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10185
10186 CC="$lt_save_CC"
10187
10188
10189 # Check whether --with-tags or --without-tags was given.
10190 if test "${with_tags+set}" = set; then
10191   withval="$with_tags"
10192   tagnames="$withval"
10193 fi;
10194
10195 if test -f "$ltmain" && test -n "$tagnames"; then
10196   if test ! -f "${ofile}"; then
10197     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10198 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10199   fi
10200
10201   if test -z "$LTCC"; then
10202     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10203     if test -z "$LTCC"; then
10204       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10205 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10206     else
10207       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10208 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10209     fi
10210   fi
10211
10212   # Extract list of available tagged configurations in $ofile.
10213   # Note that this assumes the entire list is on one line.
10214   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10215
10216   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10217   for tagname in $tagnames; do
10218     IFS="$lt_save_ifs"
10219     # Check whether tagname contains only valid characters
10220     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10221     "") ;;
10222     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10223 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10224    { (exit 1); exit 1; }; }
10225         ;;
10226     esac
10227
10228     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10229     then
10230       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10231 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10232    { (exit 1); exit 1; }; }
10233     fi
10234
10235     # Update the list of available tags.
10236     if test -n "$tagname"; then
10237       echo appending configuration tag \"$tagname\" to $ofile
10238
10239       case $tagname in
10240       CXX)
10241         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10242             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10243             (test "X$CXX" != "Xg++"))) ; then
10244           ac_ext=cc
10245 ac_cpp='$CXXCPP $CPPFLAGS'
10246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10249
10250
10251
10252
10253 archive_cmds_need_lc_CXX=no
10254 allow_undefined_flag_CXX=
10255 always_export_symbols_CXX=no
10256 archive_expsym_cmds_CXX=
10257 export_dynamic_flag_spec_CXX=
10258 hardcode_direct_CXX=no
10259 hardcode_libdir_flag_spec_CXX=
10260 hardcode_libdir_flag_spec_ld_CXX=
10261 hardcode_libdir_separator_CXX=
10262 hardcode_minus_L_CXX=no
10263 hardcode_automatic_CXX=no
10264 module_cmds_CXX=
10265 module_expsym_cmds_CXX=
10266 link_all_deplibs_CXX=unknown
10267 old_archive_cmds_CXX=$old_archive_cmds
10268 no_undefined_flag_CXX=
10269 whole_archive_flag_spec_CXX=
10270 enable_shared_with_static_runtimes_CXX=no
10271
10272 # Dependencies to place before and after the object being linked:
10273 predep_objects_CXX=
10274 postdep_objects_CXX=
10275 predeps_CXX=
10276 postdeps_CXX=
10277 compiler_lib_search_path_CXX=
10278
10279 # Source file extension for C++ test sources.
10280 ac_ext=cc
10281
10282 # Object file extension for compiled C++ test sources.
10283 objext=o
10284 objext_CXX=$objext
10285
10286 # Code to be used in simple compile tests
10287 lt_simple_compile_test_code="int some_variable = 0;\n"
10288
10289 # Code to be used in simple link tests
10290 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10291
10292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10293
10294 # If no C compiler was specified, use CC.
10295 LTCC=${LTCC-"$CC"}
10296
10297 # Allow CC to be a program name with arguments.
10298 compiler=$CC
10299
10300
10301 # save warnings/boilerplate of simple test code
10302 ac_outfile=conftest.$ac_objext
10303 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10305 _lt_compiler_boilerplate=`cat conftest.err`
10306 $rm conftest*
10307
10308 ac_outfile=conftest.$ac_objext
10309 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10311 _lt_linker_boilerplate=`cat conftest.err`
10312 $rm conftest*
10313
10314
10315 # Allow CC to be a program name with arguments.
10316 lt_save_CC=$CC
10317 lt_save_LD=$LD
10318 lt_save_GCC=$GCC
10319 GCC=$GXX
10320 lt_save_with_gnu_ld=$with_gnu_ld
10321 lt_save_path_LD=$lt_cv_path_LD
10322 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10323   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10324 else
10325   unset lt_cv_prog_gnu_ld
10326 fi
10327 if test -n "${lt_cv_path_LDCXX+set}"; then
10328   lt_cv_path_LD=$lt_cv_path_LDCXX
10329 else
10330   unset lt_cv_path_LD
10331 fi
10332 test -z "${LDCXX+set}" || LD=$LDCXX
10333 CC=${CXX-"c++"}
10334 compiler=$CC
10335 compiler_CXX=$CC
10336 for cc_temp in $compiler""; do
10337   case $cc_temp in
10338     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10339     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10340     \-*) ;;
10341     *) break;;
10342   esac
10343 done
10344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10345
10346
10347 # We don't want -fno-exception wen compiling C++ code, so set the
10348 # no_builtin_flag separately
10349 if test "$GXX" = yes; then
10350   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10351 else
10352   lt_prog_compiler_no_builtin_flag_CXX=
10353 fi
10354
10355 if test "$GXX" = yes; then
10356   # Set up default GNU C++ configuration
10357
10358
10359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10360 if test "${with_gnu_ld+set}" = set; then
10361   withval="$with_gnu_ld"
10362   test "$withval" = no || with_gnu_ld=yes
10363 else
10364   with_gnu_ld=no
10365 fi;
10366 ac_prog=ld
10367 if test "$GCC" = yes; then
10368   # Check if gcc -print-prog-name=ld gives a path.
10369   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10370 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10371   case $host in
10372   *-*-mingw*)
10373     # gcc leaves a trailing carriage return which upsets mingw
10374     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10375   *)
10376     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10377   esac
10378   case $ac_prog in
10379     # Accept absolute paths.
10380     [\\/]* | ?:[\\/]*)
10381       re_direlt='/[^/][^/]*/\.\./'
10382       # Canonicalize the pathname of ld
10383       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10384       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10385         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10386       done
10387       test -z "$LD" && LD="$ac_prog"
10388       ;;
10389   "")
10390     # If it fails, then pretend we aren't using GCC.
10391     ac_prog=ld
10392     ;;
10393   *)
10394     # If it is relative, then search for the first ld in PATH.
10395     with_gnu_ld=unknown
10396     ;;
10397   esac
10398 elif test "$with_gnu_ld" = yes; then
10399   echo "$as_me:$LINENO: checking for GNU ld" >&5
10400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10401 else
10402   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10404 fi
10405 if test "${lt_cv_path_LD+set}" = set; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408   if test -z "$LD"; then
10409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10410   for ac_dir in $PATH; do
10411     IFS="$lt_save_ifs"
10412     test -z "$ac_dir" && ac_dir=.
10413     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10414       lt_cv_path_LD="$ac_dir/$ac_prog"
10415       # Check to see if the program is GNU ld.  I'd rather use --version,
10416       # but apparently some GNU ld's only accept -v.
10417       # Break only if it was the GNU/non-GNU ld that we prefer.
10418       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10419       *GNU* | *'with BFD'*)
10420         test "$with_gnu_ld" != no && break
10421         ;;
10422       *)
10423         test "$with_gnu_ld" != yes && break
10424         ;;
10425       esac
10426     fi
10427   done
10428   IFS="$lt_save_ifs"
10429 else
10430   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10431 fi
10432 fi
10433
10434 LD="$lt_cv_path_LD"
10435 if test -n "$LD"; then
10436   echo "$as_me:$LINENO: result: $LD" >&5
10437 echo "${ECHO_T}$LD" >&6
10438 else
10439   echo "$as_me:$LINENO: result: no" >&5
10440 echo "${ECHO_T}no" >&6
10441 fi
10442 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10443 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10444    { (exit 1); exit 1; }; }
10445 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10446 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10447 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10451 case `$LD -v 2>&1 </dev/null` in
10452 *GNU* | *'with BFD'*)
10453   lt_cv_prog_gnu_ld=yes
10454   ;;
10455 *)
10456   lt_cv_prog_gnu_ld=no
10457   ;;
10458 esac
10459 fi
10460 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10461 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10462 with_gnu_ld=$lt_cv_prog_gnu_ld
10463
10464
10465
10466   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10467   # archiving commands below assume that GNU ld is being used.
10468   if test "$with_gnu_ld" = yes; then
10469     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470     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'
10471
10472     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10473     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10474
10475     # If archive_cmds runs LD, not CC, wlarc should be empty
10476     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10477     #     investigate it a little bit more. (MM)
10478     wlarc='${wl}'
10479
10480     # ancient GNU ld didn't support --whole-archive et. al.
10481     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10482         grep 'no-whole-archive' > /dev/null; then
10483       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10484     else
10485       whole_archive_flag_spec_CXX=
10486     fi
10487   else
10488     with_gnu_ld=no
10489     wlarc=
10490
10491     # A generic and very simple default shared library creation
10492     # command for GNU C++ for the case where it uses the native
10493     # linker, instead of GNU ld.  If possible, this setting should
10494     # overridden to take advantage of the native linker features on
10495     # the platform it is being used on.
10496     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10497   fi
10498
10499   # Commands to make compiler produce verbose output that lists
10500   # what "hidden" libraries, object files and flags are used when
10501   # linking a shared library.
10502   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10503
10504 else
10505   GXX=no
10506   with_gnu_ld=no
10507   wlarc=
10508 fi
10509
10510 # PORTME: fill in a description of your system's C++ link characteristics
10511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10513 ld_shlibs_CXX=yes
10514 case $host_os in
10515   aix3*)
10516     # FIXME: insert proper C++ library support
10517     ld_shlibs_CXX=no
10518     ;;
10519   aix4* | aix5*)
10520     if test "$host_cpu" = ia64; then
10521       # On IA64, the linker does run time linking by default, so we don't
10522       # have to do anything special.
10523       aix_use_runtimelinking=no
10524       exp_sym_flag='-Bexport'
10525       no_entry_flag=""
10526     else
10527       aix_use_runtimelinking=no
10528
10529       # Test if we are trying to use run time linking or normal
10530       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10531       # need to do runtime linking.
10532       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10533         for ld_flag in $LDFLAGS; do
10534           case $ld_flag in
10535           *-brtl*)
10536             aix_use_runtimelinking=yes
10537             break
10538             ;;
10539           esac
10540         done
10541       esac
10542
10543       exp_sym_flag='-bexport'
10544       no_entry_flag='-bnoentry'
10545     fi
10546
10547     # When large executables or shared objects are built, AIX ld can
10548     # have problems creating the table of contents.  If linking a library
10549     # or program results in "error TOC overflow" add -mminimal-toc to
10550     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10551     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10552
10553     archive_cmds_CXX=''
10554     hardcode_direct_CXX=yes
10555     hardcode_libdir_separator_CXX=':'
10556     link_all_deplibs_CXX=yes
10557
10558     if test "$GXX" = yes; then
10559       case $host_os in aix4.[012]|aix4.[012].*)
10560       # We only want to do this on AIX 4.2 and lower, the check
10561       # below for broken collect2 doesn't work under 4.3+
10562         collect2name=`${CC} -print-prog-name=collect2`
10563         if test -f "$collect2name" && \
10564            strings "$collect2name" | grep resolve_lib_name >/dev/null
10565         then
10566           # We have reworked collect2
10567           hardcode_direct_CXX=yes
10568         else
10569           # We have old collect2
10570           hardcode_direct_CXX=unsupported
10571           # It fails to find uninstalled libraries when the uninstalled
10572           # path is not listed in the libpath.  Setting hardcode_minus_L
10573           # to unsupported forces relinking
10574           hardcode_minus_L_CXX=yes
10575           hardcode_libdir_flag_spec_CXX='-L$libdir'
10576           hardcode_libdir_separator_CXX=
10577         fi
10578       esac
10579       shared_flag='-shared'
10580       if test "$aix_use_runtimelinking" = yes; then
10581         shared_flag="$shared_flag "'${wl}-G'
10582       fi
10583     else
10584       # not using gcc
10585       if test "$host_cpu" = ia64; then
10586         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10587         # chokes on -Wl,-G. The following line is correct:
10588         shared_flag='-G'
10589       else
10590         if test "$aix_use_runtimelinking" = yes; then
10591           shared_flag='${wl}-G'
10592         else
10593           shared_flag='${wl}-bM:SRE'
10594         fi
10595       fi
10596     fi
10597
10598     # It seems that -bexpall does not export symbols beginning with
10599     # underscore (_), so it is better to generate a list of symbols to export.
10600     always_export_symbols_CXX=yes
10601     if test "$aix_use_runtimelinking" = yes; then
10602       # Warning - without using the other runtime loading flags (-brtl),
10603       # -berok will link without error, but may produce a broken library.
10604       allow_undefined_flag_CXX='-berok'
10605       # Determine the default libpath from the value encoded in an empty executable.
10606       cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612
10613 int
10614 main ()
10615 {
10616
10617   ;
10618   return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623   (eval $ac_link) 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -z "$ac_cxx_werror_flag"
10631                          || test ! -s conftest.err'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; } &&
10637          { ac_try='test -s conftest$ac_exeext'
10638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639   (eval $ac_try) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); }; }; then
10643
10644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10645 }'`
10646 # Check for a 64-bit object if we didn't find anything.
10647 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; }
10648 }'`; fi
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 fi
10654 rm -f conftest.err conftest.$ac_objext \
10655       conftest$ac_exeext conftest.$ac_ext
10656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10657
10658       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10659
10660       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10661      else
10662       if test "$host_cpu" = ia64; then
10663         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10664         allow_undefined_flag_CXX="-z nodefs"
10665         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10666       else
10667         # Determine the default libpath from the value encoded in an empty executable.
10668         cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674
10675 int
10676 main ()
10677 {
10678
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685   (eval $ac_link) 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -z "$ac_cxx_werror_flag"
10693                          || test ! -s conftest.err'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; } &&
10699          { ac_try='test -s conftest$ac_exeext'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705
10706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10707 }'`
10708 # Check for a 64-bit object if we didn't find anything.
10709 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; }
10710 }'`; fi
10711 else
10712   echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 fi
10716 rm -f conftest.err conftest.$ac_objext \
10717       conftest$ac_exeext conftest.$ac_ext
10718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10719
10720         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10721         # Warning - without using the other run time loading flags,
10722         # -berok will link without error, but may produce a broken library.
10723         no_undefined_flag_CXX=' ${wl}-bernotok'
10724         allow_undefined_flag_CXX=' ${wl}-berok'
10725         # -bexpall does not export symbols beginning with underscore (_)
10726         always_export_symbols_CXX=yes
10727         # Exported symbols can be pulled into shared objects from archives
10728         whole_archive_flag_spec_CXX=' '
10729         archive_cmds_need_lc_CXX=yes
10730         # This is similar to how AIX traditionally builds it's shared libraries.
10731         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10732       fi
10733     fi
10734     ;;
10735   chorus*)
10736     case $cc_basename in
10737       *)
10738         # FIXME: insert proper C++ library support
10739         ld_shlibs_CXX=no
10740         ;;
10741     esac
10742     ;;
10743
10744
10745   cygwin* | mingw* | pw32*)
10746     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10747     # as there is no search path for DLLs.
10748     hardcode_libdir_flag_spec_CXX='-L$libdir'
10749     allow_undefined_flag_CXX=unsupported
10750     always_export_symbols_CXX=no
10751     enable_shared_with_static_runtimes_CXX=yes
10752
10753     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10754       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10755       # If the export-symbols file already is a .def file (1st line
10756       # is EXPORTS), use it as is; otherwise, prepend...
10757       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10758         cp $export_symbols $output_objdir/$soname.def;
10759       else
10760         echo EXPORTS > $output_objdir/$soname.def;
10761         cat $export_symbols >> $output_objdir/$soname.def;
10762       fi~
10763       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10764     else
10765       ld_shlibs_CXX=no
10766     fi
10767   ;;
10768       darwin* | rhapsody*)
10769         case "$host_os" in
10770         rhapsody* | darwin1.[012])
10771          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10772          ;;
10773        *) # Darwin 1.3 on
10774          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10775            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10776          else
10777            case ${MACOSX_DEPLOYMENT_TARGET} in
10778              10.[012])
10779                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10780                ;;
10781              10.*)
10782                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10783                ;;
10784            esac
10785          fi
10786          ;;
10787         esac
10788       archive_cmds_need_lc_CXX=no
10789       hardcode_direct_CXX=no
10790       hardcode_automatic_CXX=yes
10791       hardcode_shlibpath_var_CXX=unsupported
10792       whole_archive_flag_spec_CXX=''
10793       link_all_deplibs_CXX=yes
10794
10795     if test "$GXX" = yes ; then
10796       lt_int_apple_cc_single_mod=no
10797       output_verbose_link_cmd='echo'
10798       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10799        lt_int_apple_cc_single_mod=yes
10800       fi
10801       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10802        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10803       else
10804           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'
10805         fi
10806         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10807         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10808           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10809             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}'
10810           else
10811             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}'
10812           fi
10813             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}'
10814       else
10815       case $cc_basename in
10816         xlc*)
10817          output_verbose_link_cmd='echo'
10818           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'
10819           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10820           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10821           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}'
10822           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}'
10823           ;;
10824        *)
10825          ld_shlibs_CXX=no
10826           ;;
10827       esac
10828       fi
10829         ;;
10830
10831   dgux*)
10832     case $cc_basename in
10833       ec++*)
10834         # FIXME: insert proper C++ library support
10835         ld_shlibs_CXX=no
10836         ;;
10837       ghcx*)
10838         # Green Hills C++ Compiler
10839         # FIXME: insert proper C++ library support
10840         ld_shlibs_CXX=no
10841         ;;
10842       *)
10843         # FIXME: insert proper C++ library support
10844         ld_shlibs_CXX=no
10845         ;;
10846     esac
10847     ;;
10848   freebsd[12]*)
10849     # C++ shared libraries reported to be fairly broken before switch to ELF
10850     ld_shlibs_CXX=no
10851     ;;
10852   freebsd-elf*)
10853     archive_cmds_need_lc_CXX=no
10854     ;;
10855   freebsd* | kfreebsd*-gnu | dragonfly*)
10856     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10857     # conventions
10858     ld_shlibs_CXX=yes
10859     ;;
10860   gnu*)
10861     ;;
10862   hpux9*)
10863     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10864     hardcode_libdir_separator_CXX=:
10865     export_dynamic_flag_spec_CXX='${wl}-E'
10866     hardcode_direct_CXX=yes
10867     hardcode_minus_L_CXX=yes # Not in the search PATH,
10868                                 # but as the default
10869                                 # location of the library.
10870
10871     case $cc_basename in
10872     CC*)
10873       # FIXME: insert proper C++ library support
10874       ld_shlibs_CXX=no
10875       ;;
10876     aCC*)
10877       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'
10878       # Commands to make compiler produce verbose output that lists
10879       # what "hidden" libraries, object files and flags are used when
10880       # linking a shared library.
10881       #
10882       # There doesn't appear to be a way to prevent this compiler from
10883       # explicitly linking system object files so we need to strip them
10884       # from the output so that they don't get included in the library
10885       # dependencies.
10886       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'
10887       ;;
10888     *)
10889       if test "$GXX" = yes; then
10890         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'
10891       else
10892         # FIXME: insert proper C++ library support
10893         ld_shlibs_CXX=no
10894       fi
10895       ;;
10896     esac
10897     ;;
10898   hpux10*|hpux11*)
10899     if test $with_gnu_ld = no; then
10900       case "$host_cpu" in
10901       hppa*64*)
10902         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10903         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10904         hardcode_libdir_separator_CXX=:
10905         ;;
10906       ia64*)
10907         hardcode_libdir_flag_spec_CXX='-L$libdir'
10908         ;;
10909       *)
10910         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10911         hardcode_libdir_separator_CXX=:
10912         export_dynamic_flag_spec_CXX='${wl}-E'
10913         ;;
10914       esac
10915     fi
10916     case "$host_cpu" in
10917     hppa*64*)
10918       hardcode_direct_CXX=no
10919       hardcode_shlibpath_var_CXX=no
10920       ;;
10921     ia64*)
10922       hardcode_direct_CXX=no
10923       hardcode_shlibpath_var_CXX=no
10924       hardcode_minus_L_CXX=yes # Not in the search PATH,
10925                                               # but as the default
10926                                               # location of the library.
10927       ;;
10928     *)
10929       hardcode_direct_CXX=yes
10930       hardcode_minus_L_CXX=yes # Not in the search PATH,
10931                                               # but as the default
10932                                               # location of the library.
10933       ;;
10934     esac
10935
10936     case $cc_basename in
10937       CC*)
10938         # FIXME: insert proper C++ library support
10939         ld_shlibs_CXX=no
10940         ;;
10941       aCC*)
10942         case "$host_cpu" in
10943         hppa*64*|ia64*)
10944           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10945           ;;
10946         *)
10947           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10948           ;;
10949         esac
10950         # Commands to make compiler produce verbose output that lists
10951         # what "hidden" libraries, object files and flags are used when
10952         # linking a shared library.
10953         #
10954         # There doesn't appear to be a way to prevent this compiler from
10955         # explicitly linking system object files so we need to strip them
10956         # from the output so that they don't get included in the library
10957         # dependencies.
10958         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'
10959         ;;
10960       *)
10961         if test "$GXX" = yes; then
10962           if test $with_gnu_ld = no; then
10963             case "$host_cpu" in
10964             ia64*|hppa*64*)
10965               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10966               ;;
10967             *)
10968               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'
10969               ;;
10970             esac
10971           fi
10972         else
10973           # FIXME: insert proper C++ library support
10974           ld_shlibs_CXX=no
10975         fi
10976         ;;
10977     esac
10978     ;;
10979   irix5* | irix6*)
10980     case $cc_basename in
10981       CC*)
10982         # SGI C++
10983         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'
10984
10985         # Archives containing C++ object files must be created using
10986         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10987         # necessary to make sure instantiated templates are included
10988         # in the archive.
10989         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10990         ;;
10991       *)
10992         if test "$GXX" = yes; then
10993           if test "$with_gnu_ld" = no; then
10994             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'
10995           else
10996             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'
10997           fi
10998         fi
10999         link_all_deplibs_CXX=yes
11000         ;;
11001     esac
11002     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11003     hardcode_libdir_separator_CXX=:
11004     ;;
11005   linux*)
11006     case $cc_basename in
11007       KCC*)
11008         # Kuck and Associates, Inc. (KAI) C++ Compiler
11009
11010         # KCC will only create a shared library if the output file
11011         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11012         # to its proper name (with version) after linking.
11013         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'
11014         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'
11015         # Commands to make compiler produce verbose output that lists
11016         # what "hidden" libraries, object files and flags are used when
11017         # linking a shared library.
11018         #
11019         # There doesn't appear to be a way to prevent this compiler from
11020         # explicitly linking system object files so we need to strip them
11021         # from the output so that they don't get included in the library
11022         # dependencies.
11023         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'
11024
11025         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11026         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11027
11028         # Archives containing C++ object files must be created using
11029         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11030         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11031         ;;
11032       icpc*)
11033         # Intel C++
11034         with_gnu_ld=yes
11035         # version 8.0 and above of icpc choke on multiply defined symbols
11036         # if we add $predep_objects and $postdep_objects, however 7.1 and
11037         # earlier do not add the objects themselves.
11038         case `$CC -V 2>&1` in
11039         *"Version 7."*)
11040           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041           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'
11042           ;;
11043         *)  # Version 8.0 or newer
11044           tmp_idyn=
11045           case $host_cpu in
11046             ia64*) tmp_idyn=' -i_dynamic';;
11047           esac
11048           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11049           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'
11050           ;;
11051         esac
11052         archive_cmds_need_lc_CXX=no
11053         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11054         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11055         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11056         ;;
11057       pgCC*)
11058         # Portland Group C++ compiler
11059         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11060         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'
11061
11062         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11063         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11064         whole_archive_flag_spec_CXX=''
11065         ;;
11066       cxx*)
11067         # Compaq C++
11068         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11069         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'
11070
11071         runpath_var=LD_RUN_PATH
11072         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11073         hardcode_libdir_separator_CXX=:
11074
11075         # Commands to make compiler produce verbose output that lists
11076         # what "hidden" libraries, object files and flags are used when
11077         # linking a shared library.
11078         #
11079         # There doesn't appear to be a way to prevent this compiler from
11080         # explicitly linking system object files so we need to strip them
11081         # from the output so that they don't get included in the library
11082         # dependencies.
11083         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'
11084         ;;
11085     esac
11086     ;;
11087   lynxos*)
11088     # FIXME: insert proper C++ library support
11089     ld_shlibs_CXX=no
11090     ;;
11091   m88k*)
11092     # FIXME: insert proper C++ library support
11093     ld_shlibs_CXX=no
11094     ;;
11095   mvs*)
11096     case $cc_basename in
11097       cxx*)
11098         # FIXME: insert proper C++ library support
11099         ld_shlibs_CXX=no
11100         ;;
11101       *)
11102         # FIXME: insert proper C++ library support
11103         ld_shlibs_CXX=no
11104         ;;
11105     esac
11106     ;;
11107   netbsd*)
11108     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11109       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11110       wlarc=
11111       hardcode_libdir_flag_spec_CXX='-R$libdir'
11112       hardcode_direct_CXX=yes
11113       hardcode_shlibpath_var_CXX=no
11114     fi
11115     # Workaround some broken pre-1.5 toolchains
11116     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11117     ;;
11118   openbsd2*)
11119     # C++ shared libraries are fairly broken
11120     ld_shlibs_CXX=no
11121     ;;
11122   openbsd*)
11123     hardcode_direct_CXX=yes
11124     hardcode_shlibpath_var_CXX=no
11125     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11126     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11127     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11128       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11129       export_dynamic_flag_spec_CXX='${wl}-E'
11130       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11131     fi
11132     output_verbose_link_cmd='echo'
11133     ;;
11134   osf3*)
11135     case $cc_basename in
11136       KCC*)
11137         # Kuck and Associates, Inc. (KAI) C++ Compiler
11138
11139         # KCC will only create a shared library if the output file
11140         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11141         # to its proper name (with version) after linking.
11142         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'
11143
11144         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11145         hardcode_libdir_separator_CXX=:
11146
11147         # Archives containing C++ object files must be created using
11148         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11149         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11150
11151         ;;
11152       RCC*)
11153         # Rational C++ 2.4.1
11154         # FIXME: insert proper C++ library support
11155         ld_shlibs_CXX=no
11156         ;;
11157       cxx*)
11158         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11159         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'
11160
11161         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11162         hardcode_libdir_separator_CXX=:
11163
11164         # Commands to make compiler produce verbose output that lists
11165         # what "hidden" libraries, object files and flags are used when
11166         # linking a shared library.
11167         #
11168         # There doesn't appear to be a way to prevent this compiler from
11169         # explicitly linking system object files so we need to strip them
11170         # from the output so that they don't get included in the library
11171         # dependencies.
11172         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'
11173         ;;
11174       *)
11175         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11176           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11177           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'
11178
11179           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11180           hardcode_libdir_separator_CXX=:
11181
11182           # Commands to make compiler produce verbose output that lists
11183           # what "hidden" libraries, object files and flags are used when
11184           # linking a shared library.
11185           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11186
11187         else
11188           # FIXME: insert proper C++ library support
11189           ld_shlibs_CXX=no
11190         fi
11191         ;;
11192     esac
11193     ;;
11194   osf4* | osf5*)
11195     case $cc_basename in
11196       KCC*)
11197         # Kuck and Associates, Inc. (KAI) C++ Compiler
11198
11199         # KCC will only create a shared library if the output file
11200         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11201         # to its proper name (with version) after linking.
11202         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'
11203
11204         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11205         hardcode_libdir_separator_CXX=:
11206
11207         # Archives containing C++ object files must be created using
11208         # the KAI C++ compiler.
11209         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11210         ;;
11211       RCC*)
11212         # Rational C++ 2.4.1
11213         # FIXME: insert proper C++ library support
11214         ld_shlibs_CXX=no
11215         ;;
11216       cxx*)
11217         allow_undefined_flag_CXX=' -expect_unresolved \*'
11218         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'
11219         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11220           echo "-hidden">> $lib.exp~
11221           $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~
11222           $rm $lib.exp'
11223
11224         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11225         hardcode_libdir_separator_CXX=:
11226
11227         # Commands to make compiler produce verbose output that lists
11228         # what "hidden" libraries, object files and flags are used when
11229         # linking a shared library.
11230         #
11231         # There doesn't appear to be a way to prevent this compiler from
11232         # explicitly linking system object files so we need to strip them
11233         # from the output so that they don't get included in the library
11234         # dependencies.
11235         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'
11236         ;;
11237       *)
11238         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11239           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11240          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'
11241
11242           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11243           hardcode_libdir_separator_CXX=:
11244
11245           # Commands to make compiler produce verbose output that lists
11246           # what "hidden" libraries, object files and flags are used when
11247           # linking a shared library.
11248           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11249
11250         else
11251           # FIXME: insert proper C++ library support
11252           ld_shlibs_CXX=no
11253         fi
11254         ;;
11255     esac
11256     ;;
11257   psos*)
11258     # FIXME: insert proper C++ library support
11259     ld_shlibs_CXX=no
11260     ;;
11261   sco*)
11262     archive_cmds_need_lc_CXX=no
11263     case $cc_basename in
11264       CC*)
11265         # FIXME: insert proper C++ library support
11266         ld_shlibs_CXX=no
11267         ;;
11268       *)
11269         # FIXME: insert proper C++ library support
11270         ld_shlibs_CXX=no
11271         ;;
11272     esac
11273     ;;
11274   sunos4*)
11275     case $cc_basename in
11276       CC*)
11277         # Sun C++ 4.x
11278         # FIXME: insert proper C++ library support
11279         ld_shlibs_CXX=no
11280         ;;
11281       lcc*)
11282         # Lucid
11283         # FIXME: insert proper C++ library support
11284         ld_shlibs_CXX=no
11285         ;;
11286       *)
11287         # FIXME: insert proper C++ library support
11288         ld_shlibs_CXX=no
11289         ;;
11290     esac
11291     ;;
11292   solaris*)
11293     case $cc_basename in
11294       CC*)
11295         # Sun C++ 4.2, 5.x and Centerline C++
11296         no_undefined_flag_CXX=' -zdefs'
11297         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11298         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11299         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11300
11301         hardcode_libdir_flag_spec_CXX='-R$libdir'
11302         hardcode_shlibpath_var_CXX=no
11303         case $host_os in
11304           solaris2.[0-5] | solaris2.[0-5].*) ;;
11305           *)
11306             # The C++ compiler is used as linker so we must use $wl
11307             # flag to pass the commands to the underlying system
11308             # linker. We must also pass each convience library through
11309             # to the system linker between allextract/defaultextract.
11310             # The C++ compiler will combine linker options so we
11311             # cannot just pass the convience library names through
11312             # without $wl.
11313             # Supported since Solaris 2.6 (maybe 2.5.1?)
11314             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'
11315             ;;
11316         esac
11317         link_all_deplibs_CXX=yes
11318
11319         # Commands to make compiler produce verbose output that lists
11320         # what "hidden" libraries, object files and flags are used when
11321         # linking a shared library.
11322         #
11323         # There doesn't appear to be a way to prevent this compiler from
11324         # explicitly linking system object files so we need to strip them
11325         # from the output so that they don't get included in the library
11326         # dependencies.
11327         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11328
11329         # Archives containing C++ object files must be created using
11330         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11331         # necessary to make sure instantiated templates are included
11332         # in the archive.
11333         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11334         ;;
11335       gcx*)
11336         # Green Hills C++ Compiler
11337         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11338
11339         # The C++ compiler must be used to create the archive.
11340         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11341         ;;
11342       *)
11343         # GNU C++ compiler with Solaris linker
11344         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11346           if $CC --version | grep -v '^2\.7' > /dev/null; then
11347             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11348             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11349                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11350
11351             # Commands to make compiler produce verbose output that lists
11352             # what "hidden" libraries, object files and flags are used when
11353             # linking a shared library.
11354             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11355           else
11356             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11357             # platform.
11358             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11359             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11360                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11361
11362             # Commands to make compiler produce verbose output that lists
11363             # what "hidden" libraries, object files and flags are used when
11364             # linking a shared library.
11365             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11366           fi
11367
11368           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11369         fi
11370         ;;
11371     esac
11372     ;;
11373   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11374     archive_cmds_need_lc_CXX=no
11375     ;;
11376   tandem*)
11377     case $cc_basename in
11378       NCC*)
11379         # NonStop-UX NCC 3.20
11380         # FIXME: insert proper C++ library support
11381         ld_shlibs_CXX=no
11382         ;;
11383       *)
11384         # FIXME: insert proper C++ library support
11385         ld_shlibs_CXX=no
11386         ;;
11387     esac
11388     ;;
11389   vxworks*)
11390     # FIXME: insert proper C++ library support
11391     ld_shlibs_CXX=no
11392     ;;
11393   *)
11394     # FIXME: insert proper C++ library support
11395     ld_shlibs_CXX=no
11396     ;;
11397 esac
11398 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11399 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11400 test "$ld_shlibs_CXX" = no && can_build_shared=no
11401
11402 GCC_CXX="$GXX"
11403 LD_CXX="$LD"
11404
11405 ## CAVEAT EMPTOR:
11406 ## There is no encapsulation within the following macros, do not change
11407 ## the running order or otherwise move them around unless you know exactly
11408 ## what you are doing...
11409
11410 cat > conftest.$ac_ext <<EOF
11411 class Foo
11412 {
11413 public:
11414   Foo (void) { a = 0; }
11415 private:
11416   int a;
11417 };
11418 EOF
11419
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421   (eval $ac_compile) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; then
11425   # Parse the compiler output and extract the necessary
11426   # objects, libraries and library flags.
11427
11428   # Sentinel used to keep track of whether or not we are before
11429   # the conftest object file.
11430   pre_test_object_deps_done=no
11431
11432   # The `*' in the case matches for architectures that use `case' in
11433   # $output_verbose_cmd can trigger glob expansion during the loop
11434   # eval without this substitution.
11435   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11436
11437   for p in `eval $output_verbose_link_cmd`; do
11438     case $p in
11439
11440     -L* | -R* | -l*)
11441        # Some compilers place space between "-{L,R}" and the path.
11442        # Remove the space.
11443        if test $p = "-L" \
11444           || test $p = "-R"; then
11445          prev=$p
11446          continue
11447        else
11448          prev=
11449        fi
11450
11451        if test "$pre_test_object_deps_done" = no; then
11452          case $p in
11453          -L* | -R*)
11454            # Internal compiler library paths should come after those
11455            # provided the user.  The postdeps already come after the
11456            # user supplied libs so there is no need to process them.
11457            if test -z "$compiler_lib_search_path_CXX"; then
11458              compiler_lib_search_path_CXX="${prev}${p}"
11459            else
11460              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11461            fi
11462            ;;
11463          # The "-l" case would never come before the object being
11464          # linked, so don't bother handling this case.
11465          esac
11466        else
11467          if test -z "$postdeps_CXX"; then
11468            postdeps_CXX="${prev}${p}"
11469          else
11470            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11471          fi
11472        fi
11473        ;;
11474
11475     *.$objext)
11476        # This assumes that the test object file only shows up
11477        # once in the compiler output.
11478        if test "$p" = "conftest.$objext"; then
11479          pre_test_object_deps_done=yes
11480          continue
11481        fi
11482
11483        if test "$pre_test_object_deps_done" = no; then
11484          if test -z "$predep_objects_CXX"; then
11485            predep_objects_CXX="$p"
11486          else
11487            predep_objects_CXX="$predep_objects_CXX $p"
11488          fi
11489        else
11490          if test -z "$postdep_objects_CXX"; then
11491            postdep_objects_CXX="$p"
11492          else
11493            postdep_objects_CXX="$postdep_objects_CXX $p"
11494          fi
11495        fi
11496        ;;
11497
11498     *) ;; # Ignore the rest.
11499
11500     esac
11501   done
11502
11503   # Clean up.
11504   rm -f a.out a.exe
11505 else
11506   echo "libtool.m4: error: problem compiling CXX test program"
11507 fi
11508
11509 $rm -f confest.$objext
11510
11511 case " $postdeps_CXX " in
11512 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11513 esac
11514
11515 lt_prog_compiler_wl_CXX=
11516 lt_prog_compiler_pic_CXX=
11517 lt_prog_compiler_static_CXX=
11518
11519 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11521
11522   # C++ specific cases for pic, static, wl, etc.
11523   if test "$GXX" = yes; then
11524     lt_prog_compiler_wl_CXX='-Wl,'
11525     lt_prog_compiler_static_CXX='-static'
11526
11527     case $host_os in
11528     aix*)
11529       # All AIX code is PIC.
11530       if test "$host_cpu" = ia64; then
11531         # AIX 5 now supports IA64 processor
11532         lt_prog_compiler_static_CXX='-Bstatic'
11533       fi
11534       ;;
11535     amigaos*)
11536       # FIXME: we need at least 68020 code to build shared libraries, but
11537       # adding the `-m68020' flag to GCC prevents building anything better,
11538       # like `-m68040'.
11539       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11540       ;;
11541     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11542       # PIC is the default for these OSes.
11543       ;;
11544     mingw* | os2* | pw32*)
11545       # This hack is so that the source file can tell whether it is being
11546       # built for inclusion in a dll (and should export symbols for example).
11547       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11548       ;;
11549     darwin* | rhapsody*)
11550       # PIC is the default on this platform
11551       # Common symbols not allowed in MH_DYLIB files
11552       lt_prog_compiler_pic_CXX='-fno-common'
11553       ;;
11554     *djgpp*)
11555       # DJGPP does not support shared libraries at all
11556       lt_prog_compiler_pic_CXX=
11557       ;;
11558     sysv4*MP*)
11559       if test -d /usr/nec; then
11560         lt_prog_compiler_pic_CXX=-Kconform_pic
11561       fi
11562       ;;
11563     hpux*)
11564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11565       # not for PA HP-UX.
11566       case "$host_cpu" in
11567       hppa*64*|ia64*)
11568         ;;
11569       *)
11570         lt_prog_compiler_pic_CXX='-fPIC'
11571         ;;
11572       esac
11573       ;;
11574     *)
11575       lt_prog_compiler_pic_CXX='-fPIC'
11576       ;;
11577     esac
11578   else
11579     case $host_os in
11580       aix4* | aix5*)
11581         # All AIX code is PIC.
11582         if test "$host_cpu" = ia64; then
11583           # AIX 5 now supports IA64 processor
11584           lt_prog_compiler_static_CXX='-Bstatic'
11585         else
11586           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11587         fi
11588         ;;
11589       chorus*)
11590         case $cc_basename in
11591         cxch68*)
11592           # Green Hills C++ Compiler
11593           # _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"
11594           ;;
11595         esac
11596         ;;
11597        darwin*)
11598          # PIC is the default on this platform
11599          # Common symbols not allowed in MH_DYLIB files
11600          case $cc_basename in
11601            xlc*)
11602            lt_prog_compiler_pic_CXX='-qnocommon'
11603            lt_prog_compiler_wl_CXX='-Wl,'
11604            ;;
11605          esac
11606        ;;
11607       dgux*)
11608         case $cc_basename in
11609           ec++*)
11610             lt_prog_compiler_pic_CXX='-KPIC'
11611             ;;
11612           ghcx*)
11613             # Green Hills C++ Compiler
11614             lt_prog_compiler_pic_CXX='-pic'
11615             ;;
11616           *)
11617             ;;
11618         esac
11619         ;;
11620       freebsd* | kfreebsd*-gnu | dragonfly*)
11621         # FreeBSD uses GNU C++
11622         ;;
11623       hpux9* | hpux10* | hpux11*)
11624         case $cc_basename in
11625           CC*)
11626             lt_prog_compiler_wl_CXX='-Wl,'
11627             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11628             if test "$host_cpu" != ia64; then
11629               lt_prog_compiler_pic_CXX='+Z'
11630             fi
11631             ;;
11632           aCC*)
11633             lt_prog_compiler_wl_CXX='-Wl,'
11634             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11635             case "$host_cpu" in
11636             hppa*64*|ia64*)
11637               # +Z the default
11638               ;;
11639             *)
11640               lt_prog_compiler_pic_CXX='+Z'
11641               ;;
11642             esac
11643             ;;
11644           *)
11645             ;;
11646         esac
11647         ;;
11648       irix5* | irix6* | nonstopux*)
11649         case $cc_basename in
11650           CC*)
11651             lt_prog_compiler_wl_CXX='-Wl,'
11652             lt_prog_compiler_static_CXX='-non_shared'
11653             # CC pic flag -KPIC is the default.
11654             ;;
11655           *)
11656             ;;
11657         esac
11658         ;;
11659       linux*)
11660         case $cc_basename in
11661           KCC*)
11662             # KAI C++ Compiler
11663             lt_prog_compiler_wl_CXX='--backend -Wl,'
11664             lt_prog_compiler_pic_CXX='-fPIC'
11665             ;;
11666           icpc* | ecpc*)
11667             # Intel C++
11668             lt_prog_compiler_wl_CXX='-Wl,'
11669             lt_prog_compiler_pic_CXX='-KPIC'
11670             lt_prog_compiler_static_CXX='-static'
11671             ;;
11672           pgCC*)
11673             # Portland Group C++ compiler.
11674             lt_prog_compiler_wl_CXX='-Wl,'
11675             lt_prog_compiler_pic_CXX='-fpic'
11676             lt_prog_compiler_static_CXX='-static'
11677             ;;
11678           cxx*)
11679             # Compaq C++
11680             # Make sure the PIC flag is empty.  It appears that all Alpha
11681             # Linux and Compaq Tru64 Unix objects are PIC.
11682             lt_prog_compiler_pic_CXX=
11683             lt_prog_compiler_static_CXX='-non_shared'
11684             ;;
11685           *)
11686             ;;
11687         esac
11688         ;;
11689       lynxos*)
11690         ;;
11691       m88k*)
11692         ;;
11693       mvs*)
11694         case $cc_basename in
11695           cxx*)
11696             lt_prog_compiler_pic_CXX='-W c,exportall'
11697             ;;
11698           *)
11699             ;;
11700         esac
11701         ;;
11702       netbsd*)
11703         ;;
11704       osf3* | osf4* | osf5*)
11705         case $cc_basename in
11706           KCC*)
11707             lt_prog_compiler_wl_CXX='--backend -Wl,'
11708             ;;
11709           RCC*)
11710             # Rational C++ 2.4.1
11711             lt_prog_compiler_pic_CXX='-pic'
11712             ;;
11713           cxx*)
11714             # Digital/Compaq C++
11715             lt_prog_compiler_wl_CXX='-Wl,'
11716             # Make sure the PIC flag is empty.  It appears that all Alpha
11717             # Linux and Compaq Tru64 Unix objects are PIC.
11718             lt_prog_compiler_pic_CXX=
11719             lt_prog_compiler_static_CXX='-non_shared'
11720             ;;
11721           *)
11722             ;;
11723         esac
11724         ;;
11725       psos*)
11726         ;;
11727       sco*)
11728         case $cc_basename in
11729           CC*)
11730             lt_prog_compiler_pic_CXX='-fPIC'
11731             ;;
11732           *)
11733             ;;
11734         esac
11735         ;;
11736       solaris*)
11737         case $cc_basename in
11738           CC*)
11739             # Sun C++ 4.2, 5.x and Centerline C++
11740             lt_prog_compiler_pic_CXX='-KPIC'
11741             lt_prog_compiler_static_CXX='-Bstatic'
11742             lt_prog_compiler_wl_CXX='-Qoption ld '
11743             ;;
11744           gcx*)
11745             # Green Hills C++ Compiler
11746             lt_prog_compiler_pic_CXX='-PIC'
11747             ;;
11748           *)
11749             ;;
11750         esac
11751         ;;
11752       sunos4*)
11753         case $cc_basename in
11754           CC*)
11755             # Sun C++ 4.x
11756             lt_prog_compiler_pic_CXX='-pic'
11757             lt_prog_compiler_static_CXX='-Bstatic'
11758             ;;
11759           lcc*)
11760             # Lucid
11761             lt_prog_compiler_pic_CXX='-pic'
11762             ;;
11763           *)
11764             ;;
11765         esac
11766         ;;
11767       tandem*)
11768         case $cc_basename in
11769           NCC*)
11770             # NonStop-UX NCC 3.20
11771             lt_prog_compiler_pic_CXX='-KPIC'
11772             ;;
11773           *)
11774             ;;
11775         esac
11776         ;;
11777       unixware*)
11778         ;;
11779       vxworks*)
11780         ;;
11781       *)
11782         lt_prog_compiler_can_build_shared_CXX=no
11783         ;;
11784     esac
11785   fi
11786
11787 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11788 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11789
11790 #
11791 # Check to make sure the PIC flag actually works.
11792 #
11793 if test -n "$lt_prog_compiler_pic_CXX"; then
11794
11795 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11796 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11797 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   lt_prog_compiler_pic_works_CXX=no
11801   ac_outfile=conftest.$ac_objext
11802    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11803    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11804    # Insert the option either (1) after the last *FLAGS variable, or
11805    # (2) before a word containing "conftest.", or (3) at the end.
11806    # Note that $ac_compile itself does not contain backslashes and begins
11807    # with a dollar sign (not a hyphen), so the echo should work correctly.
11808    # The option is referenced via a variable to avoid confusing sed.
11809    lt_compile=`echo "$ac_compile" | $SED \
11810    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812    -e 's:$: $lt_compiler_flag:'`
11813    (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814    (eval "$lt_compile" 2>conftest.err)
11815    ac_status=$?
11816    cat conftest.err >&5
11817    echo "$as_me:11817: \$? = $ac_status" >&5
11818    if (exit $ac_status) && test -s "$ac_outfile"; then
11819      # The compiler can only warn and ignore the option if not recognized
11820      # So say no if there are warnings other than the usual output.
11821      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11822      $SED '/^$/d' conftest.err >conftest.er2
11823      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11824        lt_prog_compiler_pic_works_CXX=yes
11825      fi
11826    fi
11827    $rm conftest*
11828
11829 fi
11830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11831 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11832
11833 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11834     case $lt_prog_compiler_pic_CXX in
11835      "" | " "*) ;;
11836      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11837      esac
11838 else
11839     lt_prog_compiler_pic_CXX=
11840      lt_prog_compiler_can_build_shared_CXX=no
11841 fi
11842
11843 fi
11844 case "$host_os" in
11845   # For platforms which do not support PIC, -DPIC is meaningless:
11846   *djgpp*)
11847     lt_prog_compiler_pic_CXX=
11848     ;;
11849   *)
11850     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11851     ;;
11852 esac
11853
11854 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11856 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   lt_cv_prog_compiler_c_o_CXX=no
11860    $rm -r conftest 2>/dev/null
11861    mkdir conftest
11862    cd conftest
11863    mkdir out
11864    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11865
11866    lt_compiler_flag="-o out/conftest2.$ac_objext"
11867    # Insert the option either (1) after the last *FLAGS variable, or
11868    # (2) before a word containing "conftest.", or (3) at the end.
11869    # Note that $ac_compile itself does not contain backslashes and begins
11870    # with a dollar sign (not a hyphen), so the echo should work correctly.
11871    lt_compile=`echo "$ac_compile" | $SED \
11872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11874    -e 's:$: $lt_compiler_flag:'`
11875    (eval echo "\"\$as_me:11875: $lt_compile\"" >&5)
11876    (eval "$lt_compile" 2>out/conftest.err)
11877    ac_status=$?
11878    cat out/conftest.err >&5
11879    echo "$as_me:11879: \$? = $ac_status" >&5
11880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11881    then
11882      # The compiler can only warn and ignore the option if not recognized
11883      # So say no if there are warnings
11884      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11885      $SED '/^$/d' out/conftest.err >out/conftest.er2
11886      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11887        lt_cv_prog_compiler_c_o_CXX=yes
11888      fi
11889    fi
11890    chmod u+w .
11891    $rm conftest*
11892    # SGI C++ compiler will create directory out/ii_files/ for
11893    # template instantiation
11894    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11895    $rm out/* && rmdir out
11896    cd ..
11897    rmdir conftest
11898    $rm conftest*
11899
11900 fi
11901 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11903
11904
11905 hard_links="nottested"
11906 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11907   # do not overwrite the value of need_locks provided by the user
11908   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11909 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11910   hard_links=yes
11911   $rm conftest*
11912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11913   touch conftest.a
11914   ln conftest.a conftest.b 2>&5 || hard_links=no
11915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11916   echo "$as_me:$LINENO: result: $hard_links" >&5
11917 echo "${ECHO_T}$hard_links" >&6
11918   if test "$hard_links" = no; then
11919     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11920 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11921     need_locks=warn
11922   fi
11923 else
11924   need_locks=no
11925 fi
11926
11927 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11928 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11929
11930   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11931   case $host_os in
11932   aix4* | aix5*)
11933     # If we're using GNU nm, then we don't want the "-C" option.
11934     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11935     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11936       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'
11937     else
11938       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'
11939     fi
11940     ;;
11941   pw32*)
11942     export_symbols_cmds_CXX="$ltdll_cmds"
11943   ;;
11944   cygwin* | mingw*)
11945     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'
11946   ;;
11947   *)
11948     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11949   ;;
11950   esac
11951
11952 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11953 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11954 test "$ld_shlibs_CXX" = no && can_build_shared=no
11955
11956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11957 if test "$GCC" = yes; then
11958   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11959 fi
11960
11961 #
11962 # Do we need to explicitly link libc?
11963 #
11964 case "x$archive_cmds_need_lc_CXX" in
11965 x|xyes)
11966   # Assume -lc should be added
11967   archive_cmds_need_lc_CXX=yes
11968
11969   if test "$enable_shared" = yes && test "$GCC" = yes; then
11970     case $archive_cmds_CXX in
11971     *'~'*)
11972       # FIXME: we may have to deal with multi-command sequences.
11973       ;;
11974     '$CC '*)
11975       # Test whether the compiler implicitly links with -lc since on some
11976       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11977       # to ld, don't add -lc before -lgcc.
11978       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11979 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11980       $rm conftest*
11981       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11982
11983       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984   (eval $ac_compile) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } 2>conftest.err; then
11988         soname=conftest
11989         lib=conftest
11990         libobjs=conftest.$ac_objext
11991         deplibs=
11992         wl=$lt_prog_compiler_wl_CXX
11993         compiler_flags=-v
11994         linker_flags=-v
11995         verstring=
11996         output_objdir=.
11997         libname=conftest
11998         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11999         allow_undefined_flag_CXX=
12000         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12001   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }
12005         then
12006           archive_cmds_need_lc_CXX=no
12007         else
12008           archive_cmds_need_lc_CXX=yes
12009         fi
12010         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12011       else
12012         cat conftest.err 1>&5
12013       fi
12014       $rm conftest*
12015       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12016 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12017       ;;
12018     esac
12019   fi
12020   ;;
12021 esac
12022
12023 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12024 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12025 library_names_spec=
12026 libname_spec='lib$name'
12027 soname_spec=
12028 shrext_cmds=".so"
12029 postinstall_cmds=
12030 postuninstall_cmds=
12031 finish_cmds=
12032 finish_eval=
12033 shlibpath_var=
12034 shlibpath_overrides_runpath=unknown
12035 version_type=none
12036 dynamic_linker="$host_os ld.so"
12037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12038 if test "$GCC" = yes; then
12039   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12040   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12041     # if the path contains ";" then we assume it to be the separator
12042     # otherwise default to the standard path separator (i.e. ":") - it is
12043     # assumed that no part of a normal pathname contains ";" but that should
12044     # okay in the real world where ";" in dirpaths is itself problematic.
12045     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12046   else
12047     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12048   fi
12049 else
12050   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12051 fi
12052 need_lib_prefix=unknown
12053 hardcode_into_libs=no
12054
12055 # when you set need_version to no, make sure it does not cause -set_version
12056 # flags to be left without arguments
12057 need_version=unknown
12058
12059 case $host_os in
12060 aix3*)
12061   version_type=linux
12062   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12063   shlibpath_var=LIBPATH
12064
12065   # AIX 3 has no versioning support, so we append a major version to the name.
12066   soname_spec='${libname}${release}${shared_ext}$major'
12067   ;;
12068
12069 aix4* | aix5*)
12070   version_type=linux
12071   need_lib_prefix=no
12072   need_version=no
12073   hardcode_into_libs=yes
12074   if test "$host_cpu" = ia64; then
12075     # AIX 5 supports IA64
12076     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12077     shlibpath_var=LD_LIBRARY_PATH
12078   else
12079     # With GCC up to 2.95.x, collect2 would create an import file
12080     # for dependence libraries.  The import file would start with
12081     # the line `#! .'.  This would cause the generated library to
12082     # depend on `.', always an invalid library.  This was fixed in
12083     # development snapshots of GCC prior to 3.0.
12084     case $host_os in
12085       aix4 | aix4.[01] | aix4.[01].*)
12086       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12087            echo ' yes '
12088            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12089         :
12090       else
12091         can_build_shared=no
12092       fi
12093       ;;
12094     esac
12095     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12096     # soname into executable. Probably we can add versioning support to
12097     # collect2, so additional links can be useful in future.
12098     if test "$aix_use_runtimelinking" = yes; then
12099       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12100       # instead of lib<name>.a to let people know that these are not
12101       # typical AIX shared libraries.
12102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103     else
12104       # We preserve .a as extension for shared libraries through AIX4.2
12105       # and later when we are not doing run time linking.
12106       library_names_spec='${libname}${release}.a $libname.a'
12107       soname_spec='${libname}${release}${shared_ext}$major'
12108     fi
12109     shlibpath_var=LIBPATH
12110   fi
12111   ;;
12112
12113 amigaos*)
12114   library_names_spec='$libname.ixlibrary $libname.a'
12115   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12116   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'
12117   ;;
12118
12119 beos*)
12120   library_names_spec='${libname}${shared_ext}'
12121   dynamic_linker="$host_os ld.so"
12122   shlibpath_var=LIBRARY_PATH
12123   ;;
12124
12125 bsdi[45]*)
12126   version_type=linux
12127   need_version=no
12128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129   soname_spec='${libname}${release}${shared_ext}$major'
12130   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12131   shlibpath_var=LD_LIBRARY_PATH
12132   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12133   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12134   # the default ld.so.conf also contains /usr/contrib/lib and
12135   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12136   # libtool to hard-code these into programs
12137   ;;
12138
12139 cygwin* | mingw* | pw32*)
12140   version_type=windows
12141   shrext_cmds=".dll"
12142   need_version=no
12143   need_lib_prefix=no
12144
12145   case $GCC,$host_os in
12146   yes,cygwin* | yes,mingw* | yes,pw32*)
12147     library_names_spec='$libname.dll.a'
12148     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12149     postinstall_cmds='base_file=`basename \${file}`~
12150       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12151       dldir=$destdir/`dirname \$dlpath`~
12152       test -d \$dldir || mkdir -p \$dldir~
12153       $install_prog $dir/$dlname \$dldir/$dlname'
12154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12155       dlpath=$dir/\$dldll~
12156        $rm \$dlpath'
12157     shlibpath_overrides_runpath=yes
12158
12159     case $host_os in
12160     cygwin*)
12161       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12162       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12164       ;;
12165     mingw*)
12166       # MinGW DLLs use traditional 'lib' prefix
12167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12169       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12170         # It is most probably a Windows format PATH printed by
12171         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12172         # path with ; separators, and with drive letters. We can handle the
12173         # drive letters (cygwin fileutils understands them), so leave them,
12174         # especially as we might pass files found there to a mingw objdump,
12175         # which wouldn't understand a cygwinified path. Ahh.
12176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12177       else
12178         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12179       fi
12180       ;;
12181     pw32*)
12182       # pw32 DLLs use 'pw' prefix rather than 'lib'
12183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12184       ;;
12185     esac
12186     ;;
12187
12188   *)
12189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12190     ;;
12191   esac
12192   dynamic_linker='Win32 ld.exe'
12193   # FIXME: first we should search . and the directory the executable is in
12194   shlibpath_var=PATH
12195   ;;
12196
12197 darwin* | rhapsody*)
12198   dynamic_linker="$host_os dyld"
12199   version_type=darwin
12200   need_lib_prefix=no
12201   need_version=no
12202   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12203   soname_spec='${libname}${release}${major}$shared_ext'
12204   shlibpath_overrides_runpath=yes
12205   shlibpath_var=DYLD_LIBRARY_PATH
12206   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12207   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12208   if test "$GCC" = yes; then
12209     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"`
12210   else
12211     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12212   fi
12213   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12214   ;;
12215
12216 dgux*)
12217   version_type=linux
12218   need_lib_prefix=no
12219   need_version=no
12220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12221   soname_spec='${libname}${release}${shared_ext}$major'
12222   shlibpath_var=LD_LIBRARY_PATH
12223   ;;
12224
12225 freebsd1*)
12226   dynamic_linker=no
12227   ;;
12228
12229 kfreebsd*-gnu)
12230   version_type=linux
12231   need_lib_prefix=no
12232   need_version=no
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234   soname_spec='${libname}${release}${shared_ext}$major'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   shlibpath_overrides_runpath=no
12237   hardcode_into_libs=yes
12238   dynamic_linker='GNU ld.so'
12239   ;;
12240
12241 freebsd* | dragonfly*)
12242   # DragonFly does not have aout.  When/if they implement a new
12243   # versioning mechanism, adjust this.
12244   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12245   version_type=freebsd-$objformat
12246   case $version_type in
12247     freebsd-elf*)
12248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12249       need_version=no
12250       need_lib_prefix=no
12251       ;;
12252     freebsd-*)
12253       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12254       need_version=yes
12255       ;;
12256   esac
12257   shlibpath_var=LD_LIBRARY_PATH
12258   case $host_os in
12259   freebsd2*)
12260     shlibpath_overrides_runpath=yes
12261     ;;
12262   freebsd3.[01]* | freebsdelf3.[01]*)
12263     shlibpath_overrides_runpath=yes
12264     hardcode_into_libs=yes
12265     ;;
12266   *) # from 3.2 on
12267     shlibpath_overrides_runpath=no
12268     hardcode_into_libs=yes
12269     ;;
12270   esac
12271   ;;
12272
12273 gnu*)
12274   version_type=linux
12275   need_lib_prefix=no
12276   need_version=no
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12278   soname_spec='${libname}${release}${shared_ext}$major'
12279   shlibpath_var=LD_LIBRARY_PATH
12280   hardcode_into_libs=yes
12281   ;;
12282
12283 hpux9* | hpux10* | hpux11*)
12284   # Give a soname corresponding to the major version so that dld.sl refuses to
12285   # link against other versions.
12286   version_type=sunos
12287   need_lib_prefix=no
12288   need_version=no
12289   case "$host_cpu" in
12290   ia64*)
12291     shrext_cmds='.so'
12292     hardcode_into_libs=yes
12293     dynamic_linker="$host_os dld.so"
12294     shlibpath_var=LD_LIBRARY_PATH
12295     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297     soname_spec='${libname}${release}${shared_ext}$major'
12298     if test "X$HPUX_IA64_MODE" = X32; then
12299       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12300     else
12301       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12302     fi
12303     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12304     ;;
12305    hppa*64*)
12306      shrext_cmds='.sl'
12307      hardcode_into_libs=yes
12308      dynamic_linker="$host_os dld.sl"
12309      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12310      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12311      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312      soname_spec='${libname}${release}${shared_ext}$major'
12313      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12314      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12315      ;;
12316    *)
12317     shrext_cmds='.sl'
12318     dynamic_linker="$host_os dld.sl"
12319     shlibpath_var=SHLIB_PATH
12320     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322     soname_spec='${libname}${release}${shared_ext}$major'
12323     ;;
12324   esac
12325   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12326   postinstall_cmds='chmod 555 $lib'
12327   ;;
12328
12329 irix5* | irix6* | nonstopux*)
12330   case $host_os in
12331     nonstopux*) version_type=nonstopux ;;
12332     *)
12333         if test "$lt_cv_prog_gnu_ld" = yes; then
12334                 version_type=linux
12335         else
12336                 version_type=irix
12337         fi ;;
12338   esac
12339   need_lib_prefix=no
12340   need_version=no
12341   soname_spec='${libname}${release}${shared_ext}$major'
12342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12343   case $host_os in
12344   irix5* | nonstopux*)
12345     libsuff= shlibsuff=
12346     ;;
12347   *)
12348     case $LD in # libtool.m4 will add one of these switches to LD
12349     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12350       libsuff= shlibsuff= libmagic=32-bit;;
12351     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12352       libsuff=32 shlibsuff=N32 libmagic=N32;;
12353     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12354       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12355     *) libsuff= shlibsuff= libmagic=never-match;;
12356     esac
12357     ;;
12358   esac
12359   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12360   shlibpath_overrides_runpath=no
12361   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12362   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12363   hardcode_into_libs=yes
12364   ;;
12365
12366 # No shared lib support for Linux oldld, aout, or coff.
12367 linux*oldld* | linux*aout* | linux*coff*)
12368   dynamic_linker=no
12369   ;;
12370
12371 # This must be Linux ELF.
12372 linux*)
12373   version_type=linux
12374   need_lib_prefix=no
12375   need_version=no
12376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377   soname_spec='${libname}${release}${shared_ext}$major'
12378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12379   shlibpath_var=LD_LIBRARY_PATH
12380   shlibpath_overrides_runpath=no
12381   # This implies no fast_install, which is unacceptable.
12382   # Some rework will be needed to allow for fast_install
12383   # before this can be enabled.
12384   hardcode_into_libs=yes
12385
12386   # find out which ABI we are using
12387   libsuff=
12388   case "$host_cpu" in
12389   x86_64*|s390x*|powerpc64*)
12390     echo '#line 12390 "configure"' > conftest.$ac_ext
12391     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392   (eval $ac_compile) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; then
12396       case `/usr/bin/file conftest.$ac_objext` in
12397       *64-bit*)
12398         libsuff=64
12399         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12400         ;;
12401       esac
12402     fi
12403     rm -rf conftest*
12404     ;;
12405   esac
12406
12407   # Append ld.so.conf contents to the search path
12408   if test -f /etc/ld.so.conf; then
12409     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12410     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12411   fi
12412
12413   # We used to test for /lib/ld.so.1 and disable shared libraries on
12414   # powerpc, because MkLinux only supported shared libraries with the
12415   # GNU dynamic linker.  Since this was broken with cross compilers,
12416   # most powerpc-linux boxes support dynamic linking these days and
12417   # people can always --disable-shared, the test was removed, and we
12418   # assume the GNU/Linux dynamic linker is in use.
12419   dynamic_linker='GNU/Linux ld.so'
12420   ;;
12421
12422 knetbsd*-gnu)
12423   version_type=linux
12424   need_lib_prefix=no
12425   need_version=no
12426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12427   soname_spec='${libname}${release}${shared_ext}$major'
12428   shlibpath_var=LD_LIBRARY_PATH
12429   shlibpath_overrides_runpath=no
12430   hardcode_into_libs=yes
12431   dynamic_linker='GNU ld.so'
12432   ;;
12433
12434 netbsd*)
12435   version_type=sunos
12436   need_lib_prefix=no
12437   need_version=no
12438   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12441     dynamic_linker='NetBSD (a.out) ld.so'
12442   else
12443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12444     soname_spec='${libname}${release}${shared_ext}$major'
12445     dynamic_linker='NetBSD ld.elf_so'
12446   fi
12447   shlibpath_var=LD_LIBRARY_PATH
12448   shlibpath_overrides_runpath=yes
12449   hardcode_into_libs=yes
12450   ;;
12451
12452 newsos6)
12453   version_type=linux
12454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455   shlibpath_var=LD_LIBRARY_PATH
12456   shlibpath_overrides_runpath=yes
12457   ;;
12458
12459 nto-qnx*)
12460   version_type=linux
12461   need_lib_prefix=no
12462   need_version=no
12463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12464   soname_spec='${libname}${release}${shared_ext}$major'
12465   shlibpath_var=LD_LIBRARY_PATH
12466   shlibpath_overrides_runpath=yes
12467   ;;
12468
12469 openbsd*)
12470   version_type=sunos
12471   need_lib_prefix=no
12472   need_version=no
12473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12475   shlibpath_var=LD_LIBRARY_PATH
12476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12477     case $host_os in
12478       openbsd2.[89] | openbsd2.[89].*)
12479         shlibpath_overrides_runpath=no
12480         ;;
12481       *)
12482         shlibpath_overrides_runpath=yes
12483         ;;
12484       esac
12485   else
12486     shlibpath_overrides_runpath=yes
12487   fi
12488   ;;
12489
12490 os2*)
12491   libname_spec='$name'
12492   shrext_cmds=".dll"
12493   need_lib_prefix=no
12494   library_names_spec='$libname${shared_ext} $libname.a'
12495   dynamic_linker='OS/2 ld.exe'
12496   shlibpath_var=LIBPATH
12497   ;;
12498
12499 osf3* | osf4* | osf5*)
12500   version_type=osf
12501   need_lib_prefix=no
12502   need_version=no
12503   soname_spec='${libname}${release}${shared_ext}$major'
12504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12505   shlibpath_var=LD_LIBRARY_PATH
12506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12508   ;;
12509
12510 sco3.2v5*)
12511   version_type=osf
12512   soname_spec='${libname}${release}${shared_ext}$major'
12513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514   shlibpath_var=LD_LIBRARY_PATH
12515   ;;
12516
12517 solaris*)
12518   version_type=linux
12519   need_lib_prefix=no
12520   need_version=no
12521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12522   soname_spec='${libname}${release}${shared_ext}$major'
12523   shlibpath_var=LD_LIBRARY_PATH
12524   shlibpath_overrides_runpath=yes
12525   hardcode_into_libs=yes
12526   # ldd complains unless libraries are executable
12527   postinstall_cmds='chmod +x $lib'
12528   ;;
12529
12530 sunos4*)
12531   version_type=sunos
12532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12534   shlibpath_var=LD_LIBRARY_PATH
12535   shlibpath_overrides_runpath=yes
12536   if test "$with_gnu_ld" = yes; then
12537     need_lib_prefix=no
12538   fi
12539   need_version=yes
12540   ;;
12541
12542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12543   version_type=linux
12544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545   soname_spec='${libname}${release}${shared_ext}$major'
12546   shlibpath_var=LD_LIBRARY_PATH
12547   case $host_vendor in
12548     sni)
12549       shlibpath_overrides_runpath=no
12550       need_lib_prefix=no
12551       export_dynamic_flag_spec='${wl}-Blargedynsym'
12552       runpath_var=LD_RUN_PATH
12553       ;;
12554     siemens)
12555       need_lib_prefix=no
12556       ;;
12557     motorola)
12558       need_lib_prefix=no
12559       need_version=no
12560       shlibpath_overrides_runpath=no
12561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12562       ;;
12563   esac
12564   ;;
12565
12566 sysv4*MP*)
12567   if test -d /usr/nec ;then
12568     version_type=linux
12569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12570     soname_spec='$libname${shared_ext}.$major'
12571     shlibpath_var=LD_LIBRARY_PATH
12572   fi
12573   ;;
12574
12575 uts4*)
12576   version_type=linux
12577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578   soname_spec='${libname}${release}${shared_ext}$major'
12579   shlibpath_var=LD_LIBRARY_PATH
12580   ;;
12581
12582 *)
12583   dynamic_linker=no
12584   ;;
12585 esac
12586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12587 echo "${ECHO_T}$dynamic_linker" >&6
12588 test "$dynamic_linker" = no && can_build_shared=no
12589
12590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12592 hardcode_action_CXX=
12593 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12594    test -n "$runpath_var_CXX" || \
12595    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12596
12597   # We can hardcode non-existant directories.
12598   if test "$hardcode_direct_CXX" != no &&
12599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12600      # have to relink, otherwise we might link with an installed library
12601      # when we should be linking with a yet-to-be-installed one
12602      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12603      test "$hardcode_minus_L_CXX" != no; then
12604     # Linking always hardcodes the temporary library directory.
12605     hardcode_action_CXX=relink
12606   else
12607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12608     hardcode_action_CXX=immediate
12609   fi
12610 else
12611   # We cannot hardcode anything, or else we can only hardcode existing
12612   # directories.
12613   hardcode_action_CXX=unsupported
12614 fi
12615 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12616 echo "${ECHO_T}$hardcode_action_CXX" >&6
12617
12618 if test "$hardcode_action_CXX" = relink; then
12619   # Fast installation is not supported
12620   enable_fast_install=no
12621 elif test "$shlibpath_overrides_runpath" = yes ||
12622      test "$enable_shared" = no; then
12623   # Fast installation is not necessary
12624   enable_fast_install=needless
12625 fi
12626
12627 striplib=
12628 old_striplib=
12629 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12632   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12633   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12634   echo "$as_me:$LINENO: result: yes" >&5
12635 echo "${ECHO_T}yes" >&6
12636 else
12637 # FIXME - insert some real tests, host_os isn't really good enough
12638   case $host_os in
12639    darwin*)
12640        if test -n "$STRIP" ; then
12641          striplib="$STRIP -x"
12642          echo "$as_me:$LINENO: result: yes" >&5
12643 echo "${ECHO_T}yes" >&6
12644        else
12645   echo "$as_me:$LINENO: result: no" >&5
12646 echo "${ECHO_T}no" >&6
12647 fi
12648        ;;
12649    *)
12650   echo "$as_me:$LINENO: result: no" >&5
12651 echo "${ECHO_T}no" >&6
12652     ;;
12653   esac
12654 fi
12655
12656 if test "x$enable_dlopen" != xyes; then
12657   enable_dlopen=unknown
12658   enable_dlopen_self=unknown
12659   enable_dlopen_self_static=unknown
12660 else
12661   lt_cv_dlopen=no
12662   lt_cv_dlopen_libs=
12663
12664   case $host_os in
12665   beos*)
12666     lt_cv_dlopen="load_add_on"
12667     lt_cv_dlopen_libs=
12668     lt_cv_dlopen_self=yes
12669     ;;
12670
12671   mingw* | pw32*)
12672     lt_cv_dlopen="LoadLibrary"
12673     lt_cv_dlopen_libs=
12674    ;;
12675
12676   cygwin*)
12677     lt_cv_dlopen="dlopen"
12678     lt_cv_dlopen_libs=
12679    ;;
12680
12681   darwin*)
12682   # if libdl is installed we need to link against it
12683     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-ldl  $LIBS"
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 /* Override any gcc2 internal prototype to avoid an error.  */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 /* We use char because int might match the return type of a gcc2
12702    builtin and then its argument prototype would still apply.  */
12703 char dlopen ();
12704 int
12705 main ()
12706 {
12707 dlopen ();
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714   (eval $ac_link) 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -z "$ac_cxx_werror_flag"
12722                          || test ! -s conftest.err'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; } &&
12728          { ac_try='test -s conftest$ac_exeext'
12729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730   (eval $ac_try) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; }; then
12734   ac_cv_lib_dl_dlopen=yes
12735 else
12736   echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ac_cv_lib_dl_dlopen=no
12740 fi
12741 rm -f conftest.err conftest.$ac_objext \
12742       conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12744 fi
12745 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12747 if test $ac_cv_lib_dl_dlopen = yes; then
12748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12749 else
12750
12751     lt_cv_dlopen="dyld"
12752     lt_cv_dlopen_libs=
12753     lt_cv_dlopen_self=yes
12754
12755 fi
12756
12757    ;;
12758
12759   *)
12760     echo "$as_me:$LINENO: checking for shl_load" >&5
12761 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12762 if test "${ac_cv_func_shl_load+set}" = set; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12773 #define shl_load innocuous_shl_load
12774
12775 /* System header to define __stub macros and hopefully few prototypes,
12776     which can conflict with char shl_load (); below.
12777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778     <limits.h> exists even on freestanding compilers.  */
12779
12780 #ifdef __STDC__
12781 # include <limits.h>
12782 #else
12783 # include <assert.h>
12784 #endif
12785
12786 #undef shl_load
12787
12788 /* Override any gcc2 internal prototype to avoid an error.  */
12789 #ifdef __cplusplus
12790 extern "C"
12791 {
12792 #endif
12793 /* We use char because int might match the return type of a gcc2
12794    builtin and then its argument prototype would still apply.  */
12795 char shl_load ();
12796 /* The GNU C library defines this for functions which it implements
12797     to always fail with ENOSYS.  Some functions are actually named
12798     something starting with __ and the normal name is an alias.  */
12799 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12800 choke me
12801 #else
12802 char (*f) () = shl_load;
12803 #endif
12804 #ifdef __cplusplus
12805 }
12806 #endif
12807
12808 int
12809 main ()
12810 {
12811 return f != shl_load;
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818   (eval $ac_link) 2>conftest.er1
12819   ac_status=$?
12820   grep -v '^ *+' conftest.er1 >conftest.err
12821   rm -f conftest.er1
12822   cat conftest.err >&5
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -z "$ac_cxx_werror_flag"
12826                          || test ! -s conftest.err'
12827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828   (eval $ac_try) 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; } &&
12832          { ac_try='test -s conftest$ac_exeext'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838   ac_cv_func_shl_load=yes
12839 else
12840   echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843 ac_cv_func_shl_load=no
12844 fi
12845 rm -f conftest.err conftest.$ac_objext \
12846       conftest$ac_exeext conftest.$ac_ext
12847 fi
12848 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12850 if test $ac_cv_func_shl_load = yes; then
12851   lt_cv_dlopen="shl_load"
12852 else
12853   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12854 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12855 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12856   echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858   ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-ldld  $LIBS"
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866
12867 /* Override any gcc2 internal prototype to avoid an error.  */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 /* We use char because int might match the return type of a gcc2
12872    builtin and then its argument prototype would still apply.  */
12873 char shl_load ();
12874 int
12875 main ()
12876 {
12877 shl_load ();
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884   (eval $ac_link) 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_cxx_werror_flag"
12892                          || test ! -s conftest.err'
12893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894   (eval $ac_try) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; } &&
12898          { ac_try='test -s conftest$ac_exeext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_cv_lib_dld_shl_load=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_cv_lib_dld_shl_load=no
12910 fi
12911 rm -f conftest.err conftest.$ac_objext \
12912       conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12914 fi
12915 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12916 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12917 if test $ac_cv_lib_dld_shl_load = yes; then
12918   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12919 else
12920   echo "$as_me:$LINENO: checking for dlopen" >&5
12921 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12922 if test "${ac_cv_func_dlopen+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12933 #define dlopen innocuous_dlopen
12934
12935 /* System header to define __stub macros and hopefully few prototypes,
12936     which can conflict with char dlopen (); below.
12937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938     <limits.h> exists even on freestanding compilers.  */
12939
12940 #ifdef __STDC__
12941 # include <limits.h>
12942 #else
12943 # include <assert.h>
12944 #endif
12945
12946 #undef dlopen
12947
12948 /* Override any gcc2 internal prototype to avoid an error.  */
12949 #ifdef __cplusplus
12950 extern "C"
12951 {
12952 #endif
12953 /* We use char because int might match the return type of a gcc2
12954    builtin and then its argument prototype would still apply.  */
12955 char dlopen ();
12956 /* The GNU C library defines this for functions which it implements
12957     to always fail with ENOSYS.  Some functions are actually named
12958     something starting with __ and the normal name is an alias.  */
12959 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12960 choke me
12961 #else
12962 char (*f) () = dlopen;
12963 #endif
12964 #ifdef __cplusplus
12965 }
12966 #endif
12967
12968 int
12969 main ()
12970 {
12971 return f != dlopen;
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_cxx_werror_flag"
12986                          || test ! -s conftest.err'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; } &&
12992          { ac_try='test -s conftest$ac_exeext'
12993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994   (eval $ac_try) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; }; then
12998   ac_cv_func_dlopen=yes
12999 else
13000   echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003 ac_cv_func_dlopen=no
13004 fi
13005 rm -f conftest.err conftest.$ac_objext \
13006       conftest$ac_exeext conftest.$ac_ext
13007 fi
13008 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13009 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13010 if test $ac_cv_func_dlopen = yes; then
13011   lt_cv_dlopen="dlopen"
13012 else
13013   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13016   echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018   ac_check_lib_save_LIBS=$LIBS
13019 LIBS="-ldl  $LIBS"
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026
13027 /* Override any gcc2 internal prototype to avoid an error.  */
13028 #ifdef __cplusplus
13029 extern "C"
13030 #endif
13031 /* We use char because int might match the return type of a gcc2
13032    builtin and then its argument prototype would still apply.  */
13033 char dlopen ();
13034 int
13035 main ()
13036 {
13037 dlopen ();
13038   ;
13039   return 0;
13040 }
13041 _ACEOF
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044   (eval $ac_link) 2>conftest.er1
13045   ac_status=$?
13046   grep -v '^ *+' conftest.er1 >conftest.err
13047   rm -f conftest.er1
13048   cat conftest.err >&5
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); } &&
13051          { ac_try='test -z "$ac_cxx_werror_flag"
13052                          || test ! -s conftest.err'
13053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054   (eval $ac_try) 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); }; } &&
13058          { ac_try='test -s conftest$ac_exeext'
13059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060   (eval $ac_try) 2>&5
13061   ac_status=$?
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); }; }; then
13064   ac_cv_lib_dl_dlopen=yes
13065 else
13066   echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 ac_cv_lib_dl_dlopen=no
13070 fi
13071 rm -f conftest.err conftest.$ac_objext \
13072       conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13074 fi
13075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13077 if test $ac_cv_lib_dl_dlopen = yes; then
13078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13079 else
13080   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   ac_check_lib_save_LIBS=$LIBS
13086 LIBS="-lsvld  $LIBS"
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093
13094 /* Override any gcc2 internal prototype to avoid an error.  */
13095 #ifdef __cplusplus
13096 extern "C"
13097 #endif
13098 /* We use char because int might match the return type of a gcc2
13099    builtin and then its argument prototype would still apply.  */
13100 char dlopen ();
13101 int
13102 main ()
13103 {
13104 dlopen ();
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 rm -f conftest.$ac_objext conftest$ac_exeext
13110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13111   (eval $ac_link) 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -z "$ac_cxx_werror_flag"
13119                          || test ! -s conftest.err'
13120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121   (eval $ac_try) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; } &&
13125          { ac_try='test -s conftest$ac_exeext'
13126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127   (eval $ac_try) 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }; then
13131   ac_cv_lib_svld_dlopen=yes
13132 else
13133   echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 ac_cv_lib_svld_dlopen=no
13137 fi
13138 rm -f conftest.err conftest.$ac_objext \
13139       conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13141 fi
13142 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13143 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13144 if test $ac_cv_lib_svld_dlopen = yes; then
13145   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13146 else
13147   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13148 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13149 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   ac_check_lib_save_LIBS=$LIBS
13153 LIBS="-ldld  $LIBS"
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h.  */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h.  */
13160
13161 /* Override any gcc2 internal prototype to avoid an error.  */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 /* We use char because int might match the return type of a gcc2
13166    builtin and then its argument prototype would still apply.  */
13167 char dld_link ();
13168 int
13169 main ()
13170 {
13171 dld_link ();
13172   ;
13173   return 0;
13174 }
13175 _ACEOF
13176 rm -f conftest.$ac_objext conftest$ac_exeext
13177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13178   (eval $ac_link) 2>conftest.er1
13179   ac_status=$?
13180   grep -v '^ *+' conftest.er1 >conftest.err
13181   rm -f conftest.er1
13182   cat conftest.err >&5
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } &&
13185          { ac_try='test -z "$ac_cxx_werror_flag"
13186                          || test ! -s conftest.err'
13187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188   (eval $ac_try) 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); }; } &&
13192          { ac_try='test -s conftest$ac_exeext'
13193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194   (eval $ac_try) 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; }; then
13198   ac_cv_lib_dld_dld_link=yes
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203 ac_cv_lib_dld_dld_link=no
13204 fi
13205 rm -f conftest.err conftest.$ac_objext \
13206       conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13208 fi
13209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13211 if test $ac_cv_lib_dld_dld_link = yes; then
13212   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13213 fi
13214
13215
13216 fi
13217
13218
13219 fi
13220
13221
13222 fi
13223
13224
13225 fi
13226
13227
13228 fi
13229
13230     ;;
13231   esac
13232
13233   if test "x$lt_cv_dlopen" != xno; then
13234     enable_dlopen=yes
13235   else
13236     enable_dlopen=no
13237   fi
13238
13239   case $lt_cv_dlopen in
13240   dlopen)
13241     save_CPPFLAGS="$CPPFLAGS"
13242     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13243
13244     save_LDFLAGS="$LDFLAGS"
13245     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13246
13247     save_LIBS="$LIBS"
13248     LIBS="$lt_cv_dlopen_libs $LIBS"
13249
13250     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13252 if test "${lt_cv_dlopen_self+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255           if test "$cross_compiling" = yes; then :
13256   lt_cv_dlopen_self=cross
13257 else
13258   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13259   lt_status=$lt_dlunknown
13260   cat > conftest.$ac_ext <<EOF
13261 #line 13261 "configure"
13262 #include "confdefs.h"
13263
13264 #if HAVE_DLFCN_H
13265 #include <dlfcn.h>
13266 #endif
13267
13268 #include <stdio.h>
13269
13270 #ifdef RTLD_GLOBAL
13271 #  define LT_DLGLOBAL           RTLD_GLOBAL
13272 #else
13273 #  ifdef DL_GLOBAL
13274 #    define LT_DLGLOBAL         DL_GLOBAL
13275 #  else
13276 #    define LT_DLGLOBAL         0
13277 #  endif
13278 #endif
13279
13280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13281    find out it does not work in some platform. */
13282 #ifndef LT_DLLAZY_OR_NOW
13283 #  ifdef RTLD_LAZY
13284 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13285 #  else
13286 #    ifdef DL_LAZY
13287 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13288 #    else
13289 #      ifdef RTLD_NOW
13290 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13291 #      else
13292 #        ifdef DL_NOW
13293 #          define LT_DLLAZY_OR_NOW      DL_NOW
13294 #        else
13295 #          define LT_DLLAZY_OR_NOW      0
13296 #        endif
13297 #      endif
13298 #    endif
13299 #  endif
13300 #endif
13301
13302 #ifdef __cplusplus
13303 extern "C" void exit (int);
13304 #endif
13305
13306 void fnord() { int i=42;}
13307 int main ()
13308 {
13309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13310   int status = $lt_dlunknown;
13311
13312   if (self)
13313     {
13314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13315       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13316       /* dlclose (self); */
13317     }
13318
13319     exit (status);
13320 }
13321 EOF
13322   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13323   (eval $ac_link) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13327     (./conftest; exit; ) 2>/dev/null
13328     lt_status=$?
13329     case x$lt_status in
13330       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13331       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13332       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13333     esac
13334   else :
13335     # compilation failed
13336     lt_cv_dlopen_self=no
13337   fi
13338 fi
13339 rm -fr conftest*
13340
13341
13342 fi
13343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13345
13346     if test "x$lt_cv_dlopen_self" = xyes; then
13347       LDFLAGS="$LDFLAGS $link_static_flag"
13348       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13350 if test "${lt_cv_dlopen_self_static+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353           if test "$cross_compiling" = yes; then :
13354   lt_cv_dlopen_self_static=cross
13355 else
13356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13357   lt_status=$lt_dlunknown
13358   cat > conftest.$ac_ext <<EOF
13359 #line 13359 "configure"
13360 #include "confdefs.h"
13361
13362 #if HAVE_DLFCN_H
13363 #include <dlfcn.h>
13364 #endif
13365
13366 #include <stdio.h>
13367
13368 #ifdef RTLD_GLOBAL
13369 #  define LT_DLGLOBAL           RTLD_GLOBAL
13370 #else
13371 #  ifdef DL_GLOBAL
13372 #    define LT_DLGLOBAL         DL_GLOBAL
13373 #  else
13374 #    define LT_DLGLOBAL         0
13375 #  endif
13376 #endif
13377
13378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13379    find out it does not work in some platform. */
13380 #ifndef LT_DLLAZY_OR_NOW
13381 #  ifdef RTLD_LAZY
13382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13383 #  else
13384 #    ifdef DL_LAZY
13385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13386 #    else
13387 #      ifdef RTLD_NOW
13388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13389 #      else
13390 #        ifdef DL_NOW
13391 #          define LT_DLLAZY_OR_NOW      DL_NOW
13392 #        else
13393 #          define LT_DLLAZY_OR_NOW      0
13394 #        endif
13395 #      endif
13396 #    endif
13397 #  endif
13398 #endif
13399
13400 #ifdef __cplusplus
13401 extern "C" void exit (int);
13402 #endif
13403
13404 void fnord() { int i=42;}
13405 int main ()
13406 {
13407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13408   int status = $lt_dlunknown;
13409
13410   if (self)
13411     {
13412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13414       /* dlclose (self); */
13415     }
13416
13417     exit (status);
13418 }
13419 EOF
13420   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421   (eval $ac_link) 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13425     (./conftest; exit; ) 2>/dev/null
13426     lt_status=$?
13427     case x$lt_status in
13428       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13429       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13430       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13431     esac
13432   else :
13433     # compilation failed
13434     lt_cv_dlopen_self_static=no
13435   fi
13436 fi
13437 rm -fr conftest*
13438
13439
13440 fi
13441 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13442 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13443     fi
13444
13445     CPPFLAGS="$save_CPPFLAGS"
13446     LDFLAGS="$save_LDFLAGS"
13447     LIBS="$save_LIBS"
13448     ;;
13449   esac
13450
13451   case $lt_cv_dlopen_self in
13452   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13453   *) enable_dlopen_self=unknown ;;
13454   esac
13455
13456   case $lt_cv_dlopen_self_static in
13457   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13458   *) enable_dlopen_self_static=unknown ;;
13459   esac
13460 fi
13461
13462
13463 # The else clause should only fire when bootstrapping the
13464 # libtool distribution, otherwise you forgot to ship ltmain.sh
13465 # with your package, and you will get complaints that there are
13466 # no rules to generate ltmain.sh.
13467 if test -f "$ltmain"; then
13468   # See if we are running on zsh, and set the options which allow our commands through
13469   # without removal of \ escapes.
13470   if test -n "${ZSH_VERSION+set}" ; then
13471     setopt NO_GLOB_SUBST
13472   fi
13473   # Now quote all the things that may contain metacharacters while being
13474   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13475   # variables and quote the copies for generation of the libtool script.
13476   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13477     SED SHELL STRIP \
13478     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13479     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13480     deplibs_check_method reload_flag reload_cmds need_locks \
13481     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13482     lt_cv_sys_global_symbol_to_c_name_address \
13483     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13484     old_postinstall_cmds old_postuninstall_cmds \
13485     compiler_CXX \
13486     CC_CXX \
13487     LD_CXX \
13488     lt_prog_compiler_wl_CXX \
13489     lt_prog_compiler_pic_CXX \
13490     lt_prog_compiler_static_CXX \
13491     lt_prog_compiler_no_builtin_flag_CXX \
13492     export_dynamic_flag_spec_CXX \
13493     thread_safe_flag_spec_CXX \
13494     whole_archive_flag_spec_CXX \
13495     enable_shared_with_static_runtimes_CXX \
13496     old_archive_cmds_CXX \
13497     old_archive_from_new_cmds_CXX \
13498     predep_objects_CXX \
13499     postdep_objects_CXX \
13500     predeps_CXX \
13501     postdeps_CXX \
13502     compiler_lib_search_path_CXX \
13503     archive_cmds_CXX \
13504     archive_expsym_cmds_CXX \
13505     postinstall_cmds_CXX \
13506     postuninstall_cmds_CXX \
13507     old_archive_from_expsyms_cmds_CXX \
13508     allow_undefined_flag_CXX \
13509     no_undefined_flag_CXX \
13510     export_symbols_cmds_CXX \
13511     hardcode_libdir_flag_spec_CXX \
13512     hardcode_libdir_flag_spec_ld_CXX \
13513     hardcode_libdir_separator_CXX \
13514     hardcode_automatic_CXX \
13515     module_cmds_CXX \
13516     module_expsym_cmds_CXX \
13517     lt_cv_prog_compiler_c_o_CXX \
13518     exclude_expsyms_CXX \
13519     include_expsyms_CXX; do
13520
13521     case $var in
13522     old_archive_cmds_CXX | \
13523     old_archive_from_new_cmds_CXX | \
13524     archive_cmds_CXX | \
13525     archive_expsym_cmds_CXX | \
13526     module_cmds_CXX | \
13527     module_expsym_cmds_CXX | \
13528     old_archive_from_expsyms_cmds_CXX | \
13529     export_symbols_cmds_CXX | \
13530     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13531     postinstall_cmds | postuninstall_cmds | \
13532     old_postinstall_cmds | old_postuninstall_cmds | \
13533     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13534       # Double-quote double-evaled strings.
13535       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13536       ;;
13537     *)
13538       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13539       ;;
13540     esac
13541   done
13542
13543   case $lt_echo in
13544   *'\$0 --fallback-echo"')
13545     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13546     ;;
13547   esac
13548
13549 cfgfile="$ofile"
13550
13551   cat <<__EOF__ >> "$cfgfile"
13552 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13553
13554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13555
13556 # Shell to use when invoking shell scripts.
13557 SHELL=$lt_SHELL
13558
13559 # Whether or not to build shared libraries.
13560 build_libtool_libs=$enable_shared
13561
13562 # Whether or not to build static libraries.
13563 build_old_libs=$enable_static
13564
13565 # Whether or not to add -lc for building shared libraries.
13566 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13567
13568 # Whether or not to disallow shared libs when runtime libs are static
13569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13570
13571 # Whether or not to optimize for fast installation.
13572 fast_install=$enable_fast_install
13573
13574 # The host system.
13575 host_alias=$host_alias
13576 host=$host
13577 host_os=$host_os
13578
13579 # The build system.
13580 build_alias=$build_alias
13581 build=$build
13582 build_os=$build_os
13583
13584 # An echo program that does not interpret backslashes.
13585 echo=$lt_echo
13586
13587 # The archiver.
13588 AR=$lt_AR
13589 AR_FLAGS=$lt_AR_FLAGS
13590
13591 # A C compiler.
13592 LTCC=$lt_LTCC
13593
13594 # A language-specific compiler.
13595 CC=$lt_compiler_CXX
13596
13597 # Is the compiler the GNU C compiler?
13598 with_gcc=$GCC_CXX
13599
13600 # An ERE matcher.
13601 EGREP=$lt_EGREP
13602
13603 # The linker used to build libraries.
13604 LD=$lt_LD_CXX
13605
13606 # Whether we need hard or soft links.
13607 LN_S=$lt_LN_S
13608
13609 # A BSD-compatible nm program.
13610 NM=$lt_NM
13611
13612 # A symbol stripping program
13613 STRIP=$lt_STRIP
13614
13615 # Used to examine libraries when file_magic_cmd begins "file"
13616 MAGIC_CMD=$MAGIC_CMD
13617
13618 # Used on cygwin: DLL creation program.
13619 DLLTOOL="$DLLTOOL"
13620
13621 # Used on cygwin: object dumper.
13622 OBJDUMP="$OBJDUMP"
13623
13624 # Used on cygwin: assembler.
13625 AS="$AS"
13626
13627 # The name of the directory that contains temporary libtool files.
13628 objdir=$objdir
13629
13630 # How to create reloadable object files.
13631 reload_flag=$lt_reload_flag
13632 reload_cmds=$lt_reload_cmds
13633
13634 # How to pass a linker flag through the compiler.
13635 wl=$lt_lt_prog_compiler_wl_CXX
13636
13637 # Object file suffix (normally "o").
13638 objext="$ac_objext"
13639
13640 # Old archive suffix (normally "a").
13641 libext="$libext"
13642
13643 # Shared library suffix (normally ".so").
13644 shrext_cmds='$shrext_cmds'
13645
13646 # Executable file suffix (normally "").
13647 exeext="$exeext"
13648
13649 # Additional compiler flags for building library objects.
13650 pic_flag=$lt_lt_prog_compiler_pic_CXX
13651 pic_mode=$pic_mode
13652
13653 # What is the maximum length of a command?
13654 max_cmd_len=$lt_cv_sys_max_cmd_len
13655
13656 # Does compiler simultaneously support -c and -o options?
13657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13658
13659 # Must we lock files when doing compilation?
13660 need_locks=$lt_need_locks
13661
13662 # Do we need the lib prefix for modules?
13663 need_lib_prefix=$need_lib_prefix
13664
13665 # Do we need a version for libraries?
13666 need_version=$need_version
13667
13668 # Whether dlopen is supported.
13669 dlopen_support=$enable_dlopen
13670
13671 # Whether dlopen of programs is supported.
13672 dlopen_self=$enable_dlopen_self
13673
13674 # Whether dlopen of statically linked programs is supported.
13675 dlopen_self_static=$enable_dlopen_self_static
13676
13677 # Compiler flag to prevent dynamic linking.
13678 link_static_flag=$lt_lt_prog_compiler_static_CXX
13679
13680 # Compiler flag to turn off builtin functions.
13681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13682
13683 # Compiler flag to allow reflexive dlopens.
13684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13685
13686 # Compiler flag to generate shared objects directly from archives.
13687 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13688
13689 # Compiler flag to generate thread-safe objects.
13690 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13691
13692 # Library versioning type.
13693 version_type=$version_type
13694
13695 # Format of library name prefix.
13696 libname_spec=$lt_libname_spec
13697
13698 # List of archive names.  First name is the real one, the rest are links.
13699 # The last name is the one that the linker finds with -lNAME.
13700 library_names_spec=$lt_library_names_spec
13701
13702 # The coded name of the library, if different from the real name.
13703 soname_spec=$lt_soname_spec
13704
13705 # Commands used to build and install an old-style archive.
13706 RANLIB=$lt_RANLIB
13707 old_archive_cmds=$lt_old_archive_cmds_CXX
13708 old_postinstall_cmds=$lt_old_postinstall_cmds
13709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13710
13711 # Create an old-style archive from a shared archive.
13712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13713
13714 # Create a temporary old-style archive to link instead of a shared archive.
13715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13716
13717 # Commands used to build and install a shared archive.
13718 archive_cmds=$lt_archive_cmds_CXX
13719 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13720 postinstall_cmds=$lt_postinstall_cmds
13721 postuninstall_cmds=$lt_postuninstall_cmds
13722
13723 # Commands used to build a loadable module (assumed same as above if empty)
13724 module_cmds=$lt_module_cmds_CXX
13725 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13726
13727 # Commands to strip libraries.
13728 old_striplib=$lt_old_striplib
13729 striplib=$lt_striplib
13730
13731 # Dependencies to place before the objects being linked to create a
13732 # shared library.
13733 predep_objects=$lt_predep_objects_CXX
13734
13735 # Dependencies to place after the objects being linked to create a
13736 # shared library.
13737 postdep_objects=$lt_postdep_objects_CXX
13738
13739 # Dependencies to place before the objects being linked to create a
13740 # shared library.
13741 predeps=$lt_predeps_CXX
13742
13743 # Dependencies to place after the objects being linked to create a
13744 # shared library.
13745 postdeps=$lt_postdeps_CXX
13746
13747 # The library search path used internally by the compiler when linking
13748 # a shared library.
13749 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13750
13751 # Method to check whether dependent libraries are shared objects.
13752 deplibs_check_method=$lt_deplibs_check_method
13753
13754 # Command to use when deplibs_check_method == file_magic.
13755 file_magic_cmd=$lt_file_magic_cmd
13756
13757 # Flag that allows shared libraries with undefined symbols to be built.
13758 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13759
13760 # Flag that forces no undefined symbols.
13761 no_undefined_flag=$lt_no_undefined_flag_CXX
13762
13763 # Commands used to finish a libtool library installation in a directory.
13764 finish_cmds=$lt_finish_cmds
13765
13766 # Same as above, but a single script fragment to be evaled but not shown.
13767 finish_eval=$lt_finish_eval
13768
13769 # Take the output of nm and produce a listing of raw symbols and C names.
13770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13771
13772 # Transform the output of nm in a proper C declaration
13773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13774
13775 # Transform the output of nm in a C name address pair
13776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13777
13778 # This is the shared library runtime path variable.
13779 runpath_var=$runpath_var
13780
13781 # This is the shared library path variable.
13782 shlibpath_var=$shlibpath_var
13783
13784 # Is shlibpath searched before the hard-coded library search path?
13785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13786
13787 # How to hardcode a shared library path into an executable.
13788 hardcode_action=$hardcode_action_CXX
13789
13790 # Whether we should hardcode library paths into libraries.
13791 hardcode_into_libs=$hardcode_into_libs
13792
13793 # Flag to hardcode \$libdir into a binary during linking.
13794 # This must work even if \$libdir does not exist.
13795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13796
13797 # If ld is used when linking, flag to hardcode \$libdir into
13798 # a binary during linking. This must work even if \$libdir does
13799 # not exist.
13800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13801
13802 # Whether we need a single -rpath flag with a separated argument.
13803 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13804
13805 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13806 # resulting binary.
13807 hardcode_direct=$hardcode_direct_CXX
13808
13809 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13810 # resulting binary.
13811 hardcode_minus_L=$hardcode_minus_L_CXX
13812
13813 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13814 # the resulting binary.
13815 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13816
13817 # Set to yes if building a shared library automatically hardcodes DIR into the library
13818 # and all subsequent libraries and executables linked against it.
13819 hardcode_automatic=$hardcode_automatic_CXX
13820
13821 # Variables whose values should be saved in libtool wrapper scripts and
13822 # restored at relink time.
13823 variables_saved_for_relink="$variables_saved_for_relink"
13824
13825 # Whether libtool must link a program against all its dependency libraries.
13826 link_all_deplibs=$link_all_deplibs_CXX
13827
13828 # Compile-time system search path for libraries
13829 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13830
13831 # Run-time system search path for libraries
13832 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13833
13834 # Fix the shell variable \$srcfile for the compiler.
13835 fix_srcfile_path="$fix_srcfile_path_CXX"
13836
13837 # Set to yes if exported symbols are required.
13838 always_export_symbols=$always_export_symbols_CXX
13839
13840 # The commands to list exported symbols.
13841 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13842
13843 # The commands to extract the exported symbol list from a shared archive.
13844 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13845
13846 # Symbols that should not be listed in the preloaded symbols.
13847 exclude_expsyms=$lt_exclude_expsyms_CXX
13848
13849 # Symbols that must always be exported.
13850 include_expsyms=$lt_include_expsyms_CXX
13851
13852 # ### END LIBTOOL TAG CONFIG: $tagname
13853
13854 __EOF__
13855
13856
13857 else
13858   # If there is no Makefile yet, we rely on a make rule to execute
13859   # `config.status --recheck' to rerun these tests and create the
13860   # libtool script then.
13861   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13862   if test -f "$ltmain_in"; then
13863     test -f Makefile && make "$ltmain"
13864   fi
13865 fi
13866
13867
13868 ac_ext=c
13869 ac_cpp='$CPP $CPPFLAGS'
13870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873
13874 CC=$lt_save_CC
13875 LDCXX=$LD
13876 LD=$lt_save_LD
13877 GCC=$lt_save_GCC
13878 with_gnu_ldcxx=$with_gnu_ld
13879 with_gnu_ld=$lt_save_with_gnu_ld
13880 lt_cv_path_LDCXX=$lt_cv_path_LD
13881 lt_cv_path_LD=$lt_save_path_LD
13882 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13883 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13884
13885         else
13886           tagname=""
13887         fi
13888         ;;
13889
13890       F77)
13891         if test -n "$F77" && test "X$F77" != "Xno"; then
13892
13893 ac_ext=f
13894 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13895 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13897
13898
13899 archive_cmds_need_lc_F77=no
13900 allow_undefined_flag_F77=
13901 always_export_symbols_F77=no
13902 archive_expsym_cmds_F77=
13903 export_dynamic_flag_spec_F77=
13904 hardcode_direct_F77=no
13905 hardcode_libdir_flag_spec_F77=
13906 hardcode_libdir_flag_spec_ld_F77=
13907 hardcode_libdir_separator_F77=
13908 hardcode_minus_L_F77=no
13909 hardcode_automatic_F77=no
13910 module_cmds_F77=
13911 module_expsym_cmds_F77=
13912 link_all_deplibs_F77=unknown
13913 old_archive_cmds_F77=$old_archive_cmds
13914 no_undefined_flag_F77=
13915 whole_archive_flag_spec_F77=
13916 enable_shared_with_static_runtimes_F77=no
13917
13918 # Source file extension for f77 test sources.
13919 ac_ext=f
13920
13921 # Object file extension for compiled f77 test sources.
13922 objext=o
13923 objext_F77=$objext
13924
13925 # Code to be used in simple compile tests
13926 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13927
13928 # Code to be used in simple link tests
13929 lt_simple_link_test_code="      program t\n      end\n"
13930
13931 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13932
13933 # If no C compiler was specified, use CC.
13934 LTCC=${LTCC-"$CC"}
13935
13936 # Allow CC to be a program name with arguments.
13937 compiler=$CC
13938
13939
13940 # save warnings/boilerplate of simple test code
13941 ac_outfile=conftest.$ac_objext
13942 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13944 _lt_compiler_boilerplate=`cat conftest.err`
13945 $rm conftest*
13946
13947 ac_outfile=conftest.$ac_objext
13948 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13950 _lt_linker_boilerplate=`cat conftest.err`
13951 $rm conftest*
13952
13953
13954 # Allow CC to be a program name with arguments.
13955 lt_save_CC="$CC"
13956 CC=${F77-"f77"}
13957 compiler=$CC
13958 compiler_F77=$CC
13959 for cc_temp in $compiler""; do
13960   case $cc_temp in
13961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13963     \-*) ;;
13964     *) break;;
13965   esac
13966 done
13967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13968
13969
13970 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13971 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13972 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13973 echo "${ECHO_T}$can_build_shared" >&6
13974
13975 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13976 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13977 test "$can_build_shared" = "no" && enable_shared=no
13978
13979 # On AIX, shared libraries and static libraries use the same namespace, and
13980 # are all built from PIC.
13981 case "$host_os" in
13982 aix3*)
13983   test "$enable_shared" = yes && enable_static=no
13984   if test -n "$RANLIB"; then
13985     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13986     postinstall_cmds='$RANLIB $lib'
13987   fi
13988   ;;
13989 aix4* | aix5*)
13990   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13991     test "$enable_shared" = yes && enable_static=no
13992   fi
13993   ;;
13994 esac
13995 echo "$as_me:$LINENO: result: $enable_shared" >&5
13996 echo "${ECHO_T}$enable_shared" >&6
13997
13998 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13999 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14000 # Make sure either enable_shared or enable_static is yes.
14001 test "$enable_shared" = yes || enable_static=yes
14002 echo "$as_me:$LINENO: result: $enable_static" >&5
14003 echo "${ECHO_T}$enable_static" >&6
14004
14005 test "$ld_shlibs_F77" = no && can_build_shared=no
14006
14007 GCC_F77="$G77"
14008 LD_F77="$LD"
14009
14010 lt_prog_compiler_wl_F77=
14011 lt_prog_compiler_pic_F77=
14012 lt_prog_compiler_static_F77=
14013
14014 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14016
14017   if test "$GCC" = yes; then
14018     lt_prog_compiler_wl_F77='-Wl,'
14019     lt_prog_compiler_static_F77='-static'
14020
14021     case $host_os in
14022       aix*)
14023       # All AIX code is PIC.
14024       if test "$host_cpu" = ia64; then
14025         # AIX 5 now supports IA64 processor
14026         lt_prog_compiler_static_F77='-Bstatic'
14027       fi
14028       ;;
14029
14030     amigaos*)
14031       # FIXME: we need at least 68020 code to build shared libraries, but
14032       # adding the `-m68020' flag to GCC prevents building anything better,
14033       # like `-m68040'.
14034       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14035       ;;
14036
14037     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14038       # PIC is the default for these OSes.
14039       ;;
14040
14041     mingw* | pw32* | os2*)
14042       # This hack is so that the source file can tell whether it is being
14043       # built for inclusion in a dll (and should export symbols for example).
14044       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14045       ;;
14046
14047     darwin* | rhapsody*)
14048       # PIC is the default on this platform
14049       # Common symbols not allowed in MH_DYLIB files
14050       lt_prog_compiler_pic_F77='-fno-common'
14051       ;;
14052
14053     msdosdjgpp*)
14054       # Just because we use GCC doesn't mean we suddenly get shared libraries
14055       # on systems that don't support them.
14056       lt_prog_compiler_can_build_shared_F77=no
14057       enable_shared=no
14058       ;;
14059
14060     sysv4*MP*)
14061       if test -d /usr/nec; then
14062         lt_prog_compiler_pic_F77=-Kconform_pic
14063       fi
14064       ;;
14065
14066     hpux*)
14067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14068       # not for PA HP-UX.
14069       case "$host_cpu" in
14070       hppa*64*|ia64*)
14071         # +Z the default
14072         ;;
14073       *)
14074         lt_prog_compiler_pic_F77='-fPIC'
14075         ;;
14076       esac
14077       ;;
14078
14079     *)
14080       lt_prog_compiler_pic_F77='-fPIC'
14081       ;;
14082     esac
14083   else
14084     # PORTME Check for flag to pass linker flags through the system compiler.
14085     case $host_os in
14086     aix*)
14087       lt_prog_compiler_wl_F77='-Wl,'
14088       if test "$host_cpu" = ia64; then
14089         # AIX 5 now supports IA64 processor
14090         lt_prog_compiler_static_F77='-Bstatic'
14091       else
14092         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14093       fi
14094       ;;
14095       darwin*)
14096         # PIC is the default on this platform
14097         # Common symbols not allowed in MH_DYLIB files
14098        case $cc_basename in
14099          xlc*)
14100          lt_prog_compiler_pic_F77='-qnocommon'
14101          lt_prog_compiler_wl_F77='-Wl,'
14102          ;;
14103        esac
14104        ;;
14105
14106     mingw* | pw32* | os2*)
14107       # This hack is so that the source file can tell whether it is being
14108       # built for inclusion in a dll (and should export symbols for example).
14109       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14110       ;;
14111
14112     hpux9* | hpux10* | hpux11*)
14113       lt_prog_compiler_wl_F77='-Wl,'
14114       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14115       # not for PA HP-UX.
14116       case "$host_cpu" in
14117       hppa*64*|ia64*)
14118         # +Z the default
14119         ;;
14120       *)
14121         lt_prog_compiler_pic_F77='+Z'
14122         ;;
14123       esac
14124       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14125       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14126       ;;
14127
14128     irix5* | irix6* | nonstopux*)
14129       lt_prog_compiler_wl_F77='-Wl,'
14130       # PIC (with -KPIC) is the default.
14131       lt_prog_compiler_static_F77='-non_shared'
14132       ;;
14133
14134     newsos6)
14135       lt_prog_compiler_pic_F77='-KPIC'
14136       lt_prog_compiler_static_F77='-Bstatic'
14137       ;;
14138
14139     linux*)
14140       case $cc_basename in
14141       icc* | ecc*)
14142         lt_prog_compiler_wl_F77='-Wl,'
14143         lt_prog_compiler_pic_F77='-KPIC'
14144         lt_prog_compiler_static_F77='-static'
14145         ;;
14146       pgcc* | pgf77* | pgf90*)
14147         # Portland Group compilers (*not* the Pentium gcc compiler,
14148         # which looks to be a dead project)
14149         lt_prog_compiler_wl_F77='-Wl,'
14150         lt_prog_compiler_pic_F77='-fpic'
14151         lt_prog_compiler_static_F77='-static'
14152         ;;
14153       ccc*)
14154         lt_prog_compiler_wl_F77='-Wl,'
14155         # All Alpha code is PIC.
14156         lt_prog_compiler_static_F77='-non_shared'
14157         ;;
14158       esac
14159       ;;
14160
14161     osf3* | osf4* | osf5*)
14162       lt_prog_compiler_wl_F77='-Wl,'
14163       # All OSF/1 code is PIC.
14164       lt_prog_compiler_static_F77='-non_shared'
14165       ;;
14166
14167     sco3.2v5*)
14168       lt_prog_compiler_pic_F77='-Kpic'
14169       lt_prog_compiler_static_F77='-dn'
14170       ;;
14171
14172     solaris*)
14173       lt_prog_compiler_pic_F77='-KPIC'
14174       lt_prog_compiler_static_F77='-Bstatic'
14175       case $cc_basename in
14176       f77* | f90* | f95*)
14177         lt_prog_compiler_wl_F77='-Qoption ld ';;
14178       *)
14179         lt_prog_compiler_wl_F77='-Wl,';;
14180       esac
14181       ;;
14182
14183     sunos4*)
14184       lt_prog_compiler_wl_F77='-Qoption ld '
14185       lt_prog_compiler_pic_F77='-PIC'
14186       lt_prog_compiler_static_F77='-Bstatic'
14187       ;;
14188
14189     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14190       lt_prog_compiler_wl_F77='-Wl,'
14191       lt_prog_compiler_pic_F77='-KPIC'
14192       lt_prog_compiler_static_F77='-Bstatic'
14193       ;;
14194
14195     sysv4*MP*)
14196       if test -d /usr/nec ;then
14197         lt_prog_compiler_pic_F77='-Kconform_pic'
14198         lt_prog_compiler_static_F77='-Bstatic'
14199       fi
14200       ;;
14201
14202     unicos*)
14203       lt_prog_compiler_wl_F77='-Wl,'
14204       lt_prog_compiler_can_build_shared_F77=no
14205       ;;
14206
14207     uts4*)
14208       lt_prog_compiler_pic_F77='-pic'
14209       lt_prog_compiler_static_F77='-Bstatic'
14210       ;;
14211
14212     *)
14213       lt_prog_compiler_can_build_shared_F77=no
14214       ;;
14215     esac
14216   fi
14217
14218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14219 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14220
14221 #
14222 # Check to make sure the PIC flag actually works.
14223 #
14224 if test -n "$lt_prog_compiler_pic_F77"; then
14225
14226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14228 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   lt_prog_compiler_pic_works_F77=no
14232   ac_outfile=conftest.$ac_objext
14233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14234    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14235    # Insert the option either (1) after the last *FLAGS variable, or
14236    # (2) before a word containing "conftest.", or (3) at the end.
14237    # Note that $ac_compile itself does not contain backslashes and begins
14238    # with a dollar sign (not a hyphen), so the echo should work correctly.
14239    # The option is referenced via a variable to avoid confusing sed.
14240    lt_compile=`echo "$ac_compile" | $SED \
14241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14243    -e 's:$: $lt_compiler_flag:'`
14244    (eval echo "\"\$as_me:14244: $lt_compile\"" >&5)
14245    (eval "$lt_compile" 2>conftest.err)
14246    ac_status=$?
14247    cat conftest.err >&5
14248    echo "$as_me:14248: \$? = $ac_status" >&5
14249    if (exit $ac_status) && test -s "$ac_outfile"; then
14250      # The compiler can only warn and ignore the option if not recognized
14251      # So say no if there are warnings other than the usual output.
14252      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14253      $SED '/^$/d' conftest.err >conftest.er2
14254      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14255        lt_prog_compiler_pic_works_F77=yes
14256      fi
14257    fi
14258    $rm conftest*
14259
14260 fi
14261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14262 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14263
14264 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14265     case $lt_prog_compiler_pic_F77 in
14266      "" | " "*) ;;
14267      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14268      esac
14269 else
14270     lt_prog_compiler_pic_F77=
14271      lt_prog_compiler_can_build_shared_F77=no
14272 fi
14273
14274 fi
14275 case "$host_os" in
14276   # For platforms which do not support PIC, -DPIC is meaningless:
14277   *djgpp*)
14278     lt_prog_compiler_pic_F77=
14279     ;;
14280   *)
14281     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14282     ;;
14283 esac
14284
14285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14287 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   lt_cv_prog_compiler_c_o_F77=no
14291    $rm -r conftest 2>/dev/null
14292    mkdir conftest
14293    cd conftest
14294    mkdir out
14295    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14296
14297    lt_compiler_flag="-o out/conftest2.$ac_objext"
14298    # Insert the option either (1) after the last *FLAGS variable, or
14299    # (2) before a word containing "conftest.", or (3) at the end.
14300    # Note that $ac_compile itself does not contain backslashes and begins
14301    # with a dollar sign (not a hyphen), so the echo should work correctly.
14302    lt_compile=`echo "$ac_compile" | $SED \
14303    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14305    -e 's:$: $lt_compiler_flag:'`
14306    (eval echo "\"\$as_me:14306: $lt_compile\"" >&5)
14307    (eval "$lt_compile" 2>out/conftest.err)
14308    ac_status=$?
14309    cat out/conftest.err >&5
14310    echo "$as_me:14310: \$? = $ac_status" >&5
14311    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14312    then
14313      # The compiler can only warn and ignore the option if not recognized
14314      # So say no if there are warnings
14315      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14316      $SED '/^$/d' out/conftest.err >out/conftest.er2
14317      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14318        lt_cv_prog_compiler_c_o_F77=yes
14319      fi
14320    fi
14321    chmod u+w .
14322    $rm conftest*
14323    # SGI C++ compiler will create directory out/ii_files/ for
14324    # template instantiation
14325    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14326    $rm out/* && rmdir out
14327    cd ..
14328    rmdir conftest
14329    $rm conftest*
14330
14331 fi
14332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14334
14335
14336 hard_links="nottested"
14337 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14338   # do not overwrite the value of need_locks provided by the user
14339   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14341   hard_links=yes
14342   $rm conftest*
14343   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14344   touch conftest.a
14345   ln conftest.a conftest.b 2>&5 || hard_links=no
14346   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14347   echo "$as_me:$LINENO: result: $hard_links" >&5
14348 echo "${ECHO_T}$hard_links" >&6
14349   if test "$hard_links" = no; then
14350     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14352     need_locks=warn
14353   fi
14354 else
14355   need_locks=no
14356 fi
14357
14358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14360
14361   runpath_var=
14362   allow_undefined_flag_F77=
14363   enable_shared_with_static_runtimes_F77=no
14364   archive_cmds_F77=
14365   archive_expsym_cmds_F77=
14366   old_archive_From_new_cmds_F77=
14367   old_archive_from_expsyms_cmds_F77=
14368   export_dynamic_flag_spec_F77=
14369   whole_archive_flag_spec_F77=
14370   thread_safe_flag_spec_F77=
14371   hardcode_libdir_flag_spec_F77=
14372   hardcode_libdir_flag_spec_ld_F77=
14373   hardcode_libdir_separator_F77=
14374   hardcode_direct_F77=no
14375   hardcode_minus_L_F77=no
14376   hardcode_shlibpath_var_F77=unsupported
14377   link_all_deplibs_F77=unknown
14378   hardcode_automatic_F77=no
14379   module_cmds_F77=
14380   module_expsym_cmds_F77=
14381   always_export_symbols_F77=no
14382   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14383   # include_expsyms should be a list of space-separated symbols to be *always*
14384   # included in the symbol list
14385   include_expsyms_F77=
14386   # exclude_expsyms can be an extended regexp of symbols to exclude
14387   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14388   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14389   # as well as any symbol that contains `d'.
14390   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14391   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14392   # platforms (ab)use it in PIC code, but their linkers get confused if
14393   # the symbol is explicitly referenced.  Since portable code cannot
14394   # rely on this symbol name, it's probably fine to never include it in
14395   # preloaded symbol tables.
14396   extract_expsyms_cmds=
14397   # Just being paranoid about ensuring that cc_basename is set.
14398   for cc_temp in $compiler""; do
14399   case $cc_temp in
14400     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14401     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14402     \-*) ;;
14403     *) break;;
14404   esac
14405 done
14406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14407
14408   case $host_os in
14409   cygwin* | mingw* | pw32*)
14410     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14411     # When not using gcc, we currently assume that we are using
14412     # Microsoft Visual C++.
14413     if test "$GCC" != yes; then
14414       with_gnu_ld=no
14415     fi
14416     ;;
14417   openbsd*)
14418     with_gnu_ld=no
14419     ;;
14420   esac
14421
14422   ld_shlibs_F77=yes
14423   if test "$with_gnu_ld" = yes; then
14424     # If archive_cmds runs LD, not CC, wlarc should be empty
14425     wlarc='${wl}'
14426
14427     # Set some defaults for GNU ld with shared library support. These
14428     # are reset later if shared libraries are not supported. Putting them
14429     # here allows them to be overridden if necessary.
14430     runpath_var=LD_RUN_PATH
14431     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14432     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14433     # ancient GNU ld didn't support --whole-archive et. al.
14434     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14435         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14436       else
14437         whole_archive_flag_spec_F77=
14438     fi
14439     supports_anon_versioning=no
14440     case `$LD -v 2>/dev/null` in
14441       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14442       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14443       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14444       *\ 2.11.*) ;; # other 2.11 versions
14445       *) supports_anon_versioning=yes ;;
14446     esac
14447
14448     # See if GNU ld supports shared libraries.
14449     case $host_os in
14450     aix3* | aix4* | aix5*)
14451       # On AIX/PPC, the GNU linker is very broken
14452       if test "$host_cpu" != ia64; then
14453         ld_shlibs_F77=no
14454         cat <<EOF 1>&2
14455
14456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14457 *** to be unable to reliably create shared libraries on AIX.
14458 *** Therefore, libtool is disabling shared libraries support.  If you
14459 *** really care for shared libraries, you may want to modify your PATH
14460 *** so that a non-GNU linker is found, and then restart.
14461
14462 EOF
14463       fi
14464       ;;
14465
14466     amigaos*)
14467       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)'
14468       hardcode_libdir_flag_spec_F77='-L$libdir'
14469       hardcode_minus_L_F77=yes
14470
14471       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14472       # that the semantics of dynamic libraries on AmigaOS, at least up
14473       # to version 4, is to share data among multiple programs linked
14474       # with the same dynamic library.  Since this doesn't match the
14475       # behavior of shared libraries on other platforms, we can't use
14476       # them.
14477       ld_shlibs_F77=no
14478       ;;
14479
14480     beos*)
14481       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14482         allow_undefined_flag_F77=unsupported
14483         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14484         # support --undefined.  This deserves some investigation.  FIXME
14485         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14486       else
14487         ld_shlibs_F77=no
14488       fi
14489       ;;
14490
14491     cygwin* | mingw* | pw32*)
14492       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14493       # as there is no search path for DLLs.
14494       hardcode_libdir_flag_spec_F77='-L$libdir'
14495       allow_undefined_flag_F77=unsupported
14496       always_export_symbols_F77=no
14497       enable_shared_with_static_runtimes_F77=yes
14498       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14499
14500       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14501         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14502         # If the export-symbols file already is a .def file (1st line
14503         # is EXPORTS), use it as is; otherwise, prepend...
14504         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14505           cp $export_symbols $output_objdir/$soname.def;
14506         else
14507           echo EXPORTS > $output_objdir/$soname.def;
14508           cat $export_symbols >> $output_objdir/$soname.def;
14509         fi~
14510         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14511       else
14512         ld_shlibs_F77=no
14513       fi
14514       ;;
14515
14516     linux*)
14517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14518         tmp_addflag=
14519         case $cc_basename,$host_cpu in
14520         pgcc*)                          # Portland Group C compiler
14521           whole_archive_flag_spec_F77=
14522           ;;
14523         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14524           whole_archive_flag_spec_F77=
14525           tmp_addflag=' -fpic -Mnomain' ;;
14526         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14527           tmp_addflag=' -i_dynamic' ;;
14528         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14529           tmp_addflag=' -i_dynamic -nofor_main' ;;
14530         ifc* | ifort*)                  # Intel Fortran compiler
14531           tmp_addflag=' -nofor_main' ;;
14532         esac
14533         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14534
14535         if test $supports_anon_versioning = yes; then
14536           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14537   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14538   $echo "local: *; };" >> $output_objdir/$libname.ver~
14539           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14540         fi
14541       else
14542         ld_shlibs_F77=no
14543       fi
14544       ;;
14545
14546     netbsd*)
14547       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14548         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14549         wlarc=
14550       else
14551         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14552         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14553       fi
14554       ;;
14555
14556     solaris* | sysv5*)
14557       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14558         ld_shlibs_F77=no
14559         cat <<EOF 1>&2
14560
14561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14562 *** create shared libraries on Solaris systems.  Therefore, libtool
14563 *** is disabling shared libraries support.  We urge you to upgrade GNU
14564 *** binutils to release 2.9.1 or newer.  Another option is to modify
14565 *** your PATH or compiler configuration so that the native linker is
14566 *** used, and then restart.
14567
14568 EOF
14569       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14570         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14571         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14572       else
14573         ld_shlibs_F77=no
14574       fi
14575       ;;
14576
14577     sunos4*)
14578       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14579       wlarc=
14580       hardcode_direct_F77=yes
14581       hardcode_shlibpath_var_F77=no
14582       ;;
14583
14584     *)
14585       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14586         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14588       else
14589         ld_shlibs_F77=no
14590       fi
14591       ;;
14592     esac
14593
14594     if test "$ld_shlibs_F77" = no; then
14595       runpath_var=
14596       hardcode_libdir_flag_spec_F77=
14597       export_dynamic_flag_spec_F77=
14598       whole_archive_flag_spec_F77=
14599     fi
14600   else
14601     # PORTME fill in a description of your system's linker (not GNU ld)
14602     case $host_os in
14603     aix3*)
14604       allow_undefined_flag_F77=unsupported
14605       always_export_symbols_F77=yes
14606       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'
14607       # Note: this linker hardcodes the directories in LIBPATH if there
14608       # are no directories specified by -L.
14609       hardcode_minus_L_F77=yes
14610       if test "$GCC" = yes && test -z "$link_static_flag"; then
14611         # Neither direct hardcoding nor static linking is supported with a
14612         # broken collect2.
14613         hardcode_direct_F77=unsupported
14614       fi
14615       ;;
14616
14617     aix4* | aix5*)
14618       if test "$host_cpu" = ia64; then
14619         # On IA64, the linker does run time linking by default, so we don't
14620         # have to do anything special.
14621         aix_use_runtimelinking=no
14622         exp_sym_flag='-Bexport'
14623         no_entry_flag=""
14624       else
14625         # If we're using GNU nm, then we don't want the "-C" option.
14626         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14627         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14628           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'
14629         else
14630           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'
14631         fi
14632         aix_use_runtimelinking=no
14633
14634         # Test if we are trying to use run time linking or normal
14635         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14636         # need to do runtime linking.
14637         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14638           for ld_flag in $LDFLAGS; do
14639           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14640             aix_use_runtimelinking=yes
14641             break
14642           fi
14643           done
14644         esac
14645
14646         exp_sym_flag='-bexport'
14647         no_entry_flag='-bnoentry'
14648       fi
14649
14650       # When large executables or shared objects are built, AIX ld can
14651       # have problems creating the table of contents.  If linking a library
14652       # or program results in "error TOC overflow" add -mminimal-toc to
14653       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14654       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14655
14656       archive_cmds_F77=''
14657       hardcode_direct_F77=yes
14658       hardcode_libdir_separator_F77=':'
14659       link_all_deplibs_F77=yes
14660
14661       if test "$GCC" = yes; then
14662         case $host_os in aix4.[012]|aix4.[012].*)
14663         # We only want to do this on AIX 4.2 and lower, the check
14664         # below for broken collect2 doesn't work under 4.3+
14665           collect2name=`${CC} -print-prog-name=collect2`
14666           if test -f "$collect2name" && \
14667            strings "$collect2name" | grep resolve_lib_name >/dev/null
14668           then
14669           # We have reworked collect2
14670           hardcode_direct_F77=yes
14671           else
14672           # We have old collect2
14673           hardcode_direct_F77=unsupported
14674           # It fails to find uninstalled libraries when the uninstalled
14675           # path is not listed in the libpath.  Setting hardcode_minus_L
14676           # to unsupported forces relinking
14677           hardcode_minus_L_F77=yes
14678           hardcode_libdir_flag_spec_F77='-L$libdir'
14679           hardcode_libdir_separator_F77=
14680           fi
14681         esac
14682         shared_flag='-shared'
14683         if test "$aix_use_runtimelinking" = yes; then
14684           shared_flag="$shared_flag "'${wl}-G'
14685         fi
14686       else
14687         # not using gcc
14688         if test "$host_cpu" = ia64; then
14689         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14690         # chokes on -Wl,-G. The following line is correct:
14691           shared_flag='-G'
14692         else
14693         if test "$aix_use_runtimelinking" = yes; then
14694             shared_flag='${wl}-G'
14695           else
14696             shared_flag='${wl}-bM:SRE'
14697         fi
14698         fi
14699       fi
14700
14701       # It seems that -bexpall does not export symbols beginning with
14702       # underscore (_), so it is better to generate a list of symbols to export.
14703       always_export_symbols_F77=yes
14704       if test "$aix_use_runtimelinking" = yes; then
14705         # Warning - without using the other runtime loading flags (-brtl),
14706         # -berok will link without error, but may produce a broken library.
14707         allow_undefined_flag_F77='-berok'
14708        # Determine the default libpath from the value encoded in an empty executable.
14709        cat >conftest.$ac_ext <<_ACEOF
14710       program main
14711
14712       end
14713 _ACEOF
14714 rm -f conftest.$ac_objext conftest$ac_exeext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14716   (eval $ac_link) 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } &&
14723          { ac_try='test -z "$ac_f77_werror_flag"
14724                          || test ! -s conftest.err'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; } &&
14730          { ac_try='test -s conftest$ac_exeext'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736
14737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14738 }'`
14739 # Check for a 64-bit object if we didn't find anything.
14740 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; }
14741 }'`; fi
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 fi
14747 rm -f conftest.err conftest.$ac_objext \
14748       conftest$ac_exeext conftest.$ac_ext
14749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14750
14751        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14752         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14753        else
14754         if test "$host_cpu" = ia64; then
14755           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14756           allow_undefined_flag_F77="-z nodefs"
14757           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14758         else
14759          # Determine the default libpath from the value encoded in an empty executable.
14760          cat >conftest.$ac_ext <<_ACEOF
14761       program main
14762
14763       end
14764 _ACEOF
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767   (eval $ac_link) 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_f77_werror_flag"
14775                          || test ! -s conftest.err'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; } &&
14781          { ac_try='test -s conftest$ac_exeext'
14782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783   (eval $ac_try) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }; then
14787
14788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14789 }'`
14790 # Check for a 64-bit object if we didn't find anything.
14791 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; }
14792 }'`; fi
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 fi
14798 rm -f conftest.err conftest.$ac_objext \
14799       conftest$ac_exeext conftest.$ac_ext
14800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14801
14802          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14803           # Warning - without using the other run time loading flags,
14804           # -berok will link without error, but may produce a broken library.
14805           no_undefined_flag_F77=' ${wl}-bernotok'
14806           allow_undefined_flag_F77=' ${wl}-berok'
14807           # -bexpall does not export symbols beginning with underscore (_)
14808           always_export_symbols_F77=yes
14809           # Exported symbols can be pulled into shared objects from archives
14810           whole_archive_flag_spec_F77=' '
14811           archive_cmds_need_lc_F77=yes
14812           # This is similar to how AIX traditionally builds it's shared libraries.
14813           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14814         fi
14815       fi
14816       ;;
14817
14818     amigaos*)
14819       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)'
14820       hardcode_libdir_flag_spec_F77='-L$libdir'
14821       hardcode_minus_L_F77=yes
14822       # see comment about different semantics on the GNU ld section
14823       ld_shlibs_F77=no
14824       ;;
14825
14826     bsdi[45]*)
14827       export_dynamic_flag_spec_F77=-rdynamic
14828       ;;
14829
14830     cygwin* | mingw* | pw32*)
14831       # When not using gcc, we currently assume that we are using
14832       # Microsoft Visual C++.
14833       # hardcode_libdir_flag_spec is actually meaningless, as there is
14834       # no search path for DLLs.
14835       hardcode_libdir_flag_spec_F77=' '
14836       allow_undefined_flag_F77=unsupported
14837       # Tell ltmain to make .lib files, not .a files.
14838       libext=lib
14839       # Tell ltmain to make .dll files, not .so files.
14840       shrext_cmds=".dll"
14841       # FIXME: Setting linknames here is a bad hack.
14842       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14843       # The linker will automatically build a .lib file if we build a DLL.
14844       old_archive_From_new_cmds_F77='true'
14845       # FIXME: Should let the user specify the lib program.
14846       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14847       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14848       enable_shared_with_static_runtimes_F77=yes
14849       ;;
14850
14851     darwin* | rhapsody*)
14852       case "$host_os" in
14853         rhapsody* | darwin1.[012])
14854          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14855          ;;
14856        *) # Darwin 1.3 on
14857          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14858            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14859          else
14860            case ${MACOSX_DEPLOYMENT_TARGET} in
14861              10.[012])
14862                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14863                ;;
14864              10.*)
14865                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14866                ;;
14867            esac
14868          fi
14869          ;;
14870       esac
14871       archive_cmds_need_lc_F77=no
14872       hardcode_direct_F77=no
14873       hardcode_automatic_F77=yes
14874       hardcode_shlibpath_var_F77=unsupported
14875       whole_archive_flag_spec_F77=''
14876       link_all_deplibs_F77=yes
14877     if test "$GCC" = yes ; then
14878         output_verbose_link_cmd='echo'
14879         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14880       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14881       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14882       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}'
14883       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}'
14884     else
14885       case $cc_basename in
14886         xlc*)
14887          output_verbose_link_cmd='echo'
14888          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14889          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14890           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14891          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}'
14892           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}'
14893           ;;
14894        *)
14895          ld_shlibs_F77=no
14896           ;;
14897       esac
14898     fi
14899       ;;
14900
14901     dgux*)
14902       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903       hardcode_libdir_flag_spec_F77='-L$libdir'
14904       hardcode_shlibpath_var_F77=no
14905       ;;
14906
14907     freebsd1*)
14908       ld_shlibs_F77=no
14909       ;;
14910
14911     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14912     # support.  Future versions do this automatically, but an explicit c++rt0.o
14913     # does not break anything, and helps significantly (at the cost of a little
14914     # extra space).
14915     freebsd2.2*)
14916       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14917       hardcode_libdir_flag_spec_F77='-R$libdir'
14918       hardcode_direct_F77=yes
14919       hardcode_shlibpath_var_F77=no
14920       ;;
14921
14922     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14923     freebsd2*)
14924       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14925       hardcode_direct_F77=yes
14926       hardcode_minus_L_F77=yes
14927       hardcode_shlibpath_var_F77=no
14928       ;;
14929
14930     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14931     freebsd* | kfreebsd*-gnu | dragonfly*)
14932       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14933       hardcode_libdir_flag_spec_F77='-R$libdir'
14934       hardcode_direct_F77=yes
14935       hardcode_shlibpath_var_F77=no
14936       ;;
14937
14938     hpux9*)
14939       if test "$GCC" = yes; then
14940         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'
14941       else
14942         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'
14943       fi
14944       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14945       hardcode_libdir_separator_F77=:
14946       hardcode_direct_F77=yes
14947
14948       # hardcode_minus_L: Not really in the search PATH,
14949       # but as the default location of the library.
14950       hardcode_minus_L_F77=yes
14951       export_dynamic_flag_spec_F77='${wl}-E'
14952       ;;
14953
14954     hpux10* | hpux11*)
14955       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14956         case "$host_cpu" in
14957         hppa*64*|ia64*)
14958           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14959           ;;
14960         *)
14961           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14962           ;;
14963         esac
14964       else
14965         case "$host_cpu" in
14966         hppa*64*|ia64*)
14967           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14968           ;;
14969         *)
14970           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14971           ;;
14972         esac
14973       fi
14974       if test "$with_gnu_ld" = no; then
14975         case "$host_cpu" in
14976         hppa*64*)
14977           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14978           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14979           hardcode_libdir_separator_F77=:
14980           hardcode_direct_F77=no
14981           hardcode_shlibpath_var_F77=no
14982           ;;
14983         ia64*)
14984           hardcode_libdir_flag_spec_F77='-L$libdir'
14985           hardcode_direct_F77=no
14986           hardcode_shlibpath_var_F77=no
14987
14988           # hardcode_minus_L: Not really in the search PATH,
14989           # but as the default location of the library.
14990           hardcode_minus_L_F77=yes
14991           ;;
14992         *)
14993           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14994           hardcode_libdir_separator_F77=:
14995           hardcode_direct_F77=yes
14996           export_dynamic_flag_spec_F77='${wl}-E'
14997
14998           # hardcode_minus_L: Not really in the search PATH,
14999           # but as the default location of the library.
15000           hardcode_minus_L_F77=yes
15001           ;;
15002         esac
15003       fi
15004       ;;
15005
15006     irix5* | irix6* | nonstopux*)
15007       if test "$GCC" = yes; then
15008         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'
15009       else
15010         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'
15011         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15012       fi
15013       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014       hardcode_libdir_separator_F77=:
15015       link_all_deplibs_F77=yes
15016       ;;
15017
15018     netbsd*)
15019       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15020         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15021       else
15022         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15023       fi
15024       hardcode_libdir_flag_spec_F77='-R$libdir'
15025       hardcode_direct_F77=yes
15026       hardcode_shlibpath_var_F77=no
15027       ;;
15028
15029     newsos6)
15030       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15031       hardcode_direct_F77=yes
15032       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15033       hardcode_libdir_separator_F77=:
15034       hardcode_shlibpath_var_F77=no
15035       ;;
15036
15037     openbsd*)
15038       hardcode_direct_F77=yes
15039       hardcode_shlibpath_var_F77=no
15040       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15041         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15042         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15043         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15044         export_dynamic_flag_spec_F77='${wl}-E'
15045       else
15046        case $host_os in
15047          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15048            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15049            hardcode_libdir_flag_spec_F77='-R$libdir'
15050            ;;
15051          *)
15052            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15053            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15054            ;;
15055        esac
15056       fi
15057       ;;
15058
15059     os2*)
15060       hardcode_libdir_flag_spec_F77='-L$libdir'
15061       hardcode_minus_L_F77=yes
15062       allow_undefined_flag_F77=unsupported
15063       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'
15064       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15065       ;;
15066
15067     osf3*)
15068       if test "$GCC" = yes; then
15069         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15070         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'
15071       else
15072         allow_undefined_flag_F77=' -expect_unresolved \*'
15073         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'
15074       fi
15075       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15076       hardcode_libdir_separator_F77=:
15077       ;;
15078
15079     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15080       if test "$GCC" = yes; then
15081         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15082         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'
15083         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15084       else
15085         allow_undefined_flag_F77=' -expect_unresolved \*'
15086         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'
15087         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~
15088         $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'
15089
15090         # Both c and cxx compiler support -rpath directly
15091         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15092       fi
15093       hardcode_libdir_separator_F77=:
15094       ;;
15095
15096     sco3.2v5*)
15097       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098       hardcode_shlibpath_var_F77=no
15099       export_dynamic_flag_spec_F77='${wl}-Bexport'
15100       runpath_var=LD_RUN_PATH
15101       hardcode_runpath_var=yes
15102       ;;
15103
15104     solaris*)
15105       no_undefined_flag_F77=' -z text'
15106       if test "$GCC" = yes; then
15107         wlarc='${wl}'
15108         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15109         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15110           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15111       else
15112         wlarc=''
15113         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15115         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15116       fi
15117       hardcode_libdir_flag_spec_F77='-R$libdir'
15118       hardcode_shlibpath_var_F77=no
15119       case $host_os in
15120       solaris2.[0-5] | solaris2.[0-5].*) ;;
15121       *)
15122         # The compiler driver will combine linker options so we
15123         # cannot just pass the convience library names through
15124         # without $wl, iff we do not link with $LD.
15125         # Luckily, gcc supports the same syntax we need for Sun Studio.
15126         # Supported since Solaris 2.6 (maybe 2.5.1?)
15127         case $wlarc in
15128         '')
15129           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15130         *)
15131           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' ;;
15132         esac ;;
15133       esac
15134       link_all_deplibs_F77=yes
15135       ;;
15136
15137     sunos4*)
15138       if test "x$host_vendor" = xsequent; then
15139         # Use $CC to link under sequent, because it throws in some extra .o
15140         # files that make .init and .fini sections work.
15141         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15142       else
15143         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15144       fi
15145       hardcode_libdir_flag_spec_F77='-L$libdir'
15146       hardcode_direct_F77=yes
15147       hardcode_minus_L_F77=yes
15148       hardcode_shlibpath_var_F77=no
15149       ;;
15150
15151     sysv4)
15152       case $host_vendor in
15153         sni)
15154           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155           hardcode_direct_F77=yes # is this really true???
15156         ;;
15157         siemens)
15158           ## LD is ld it makes a PLAMLIB
15159           ## CC just makes a GrossModule.
15160           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15161           reload_cmds_F77='$CC -r -o $output$reload_objs'
15162           hardcode_direct_F77=no
15163         ;;
15164         motorola)
15165           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15167         ;;
15168       esac
15169       runpath_var='LD_RUN_PATH'
15170       hardcode_shlibpath_var_F77=no
15171       ;;
15172
15173     sysv4.3*)
15174       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15175       hardcode_shlibpath_var_F77=no
15176       export_dynamic_flag_spec_F77='-Bexport'
15177       ;;
15178
15179     sysv4*MP*)
15180       if test -d /usr/nec; then
15181         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182         hardcode_shlibpath_var_F77=no
15183         runpath_var=LD_RUN_PATH
15184         hardcode_runpath_var=yes
15185         ld_shlibs_F77=yes
15186       fi
15187       ;;
15188
15189     sysv4.2uw2*)
15190       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15191       hardcode_direct_F77=yes
15192       hardcode_minus_L_F77=no
15193       hardcode_shlibpath_var_F77=no
15194       hardcode_runpath_var=yes
15195       runpath_var=LD_RUN_PATH
15196       ;;
15197
15198    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15199       no_undefined_flag_F77='${wl}-z ${wl}text'
15200       if test "$GCC" = yes; then
15201         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15202       else
15203         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204       fi
15205       runpath_var='LD_RUN_PATH'
15206       hardcode_shlibpath_var_F77=no
15207       ;;
15208
15209     sysv5*)
15210       no_undefined_flag_F77=' -z text'
15211       # $CC -shared without GNU ld will not create a library from C++
15212       # object files and a static libstdc++, better avoid it by now
15213       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15214       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15215                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15216       hardcode_libdir_flag_spec_F77=
15217       hardcode_shlibpath_var_F77=no
15218       runpath_var='LD_RUN_PATH'
15219       ;;
15220
15221     uts4*)
15222       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15223       hardcode_libdir_flag_spec_F77='-L$libdir'
15224       hardcode_shlibpath_var_F77=no
15225       ;;
15226
15227     *)
15228       ld_shlibs_F77=no
15229       ;;
15230     esac
15231   fi
15232
15233 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15234 echo "${ECHO_T}$ld_shlibs_F77" >&6
15235 test "$ld_shlibs_F77" = no && can_build_shared=no
15236
15237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15238 if test "$GCC" = yes; then
15239   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15240 fi
15241
15242 #
15243 # Do we need to explicitly link libc?
15244 #
15245 case "x$archive_cmds_need_lc_F77" in
15246 x|xyes)
15247   # Assume -lc should be added
15248   archive_cmds_need_lc_F77=yes
15249
15250   if test "$enable_shared" = yes && test "$GCC" = yes; then
15251     case $archive_cmds_F77 in
15252     *'~'*)
15253       # FIXME: we may have to deal with multi-command sequences.
15254       ;;
15255     '$CC '*)
15256       # Test whether the compiler implicitly links with -lc since on some
15257       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15258       # to ld, don't add -lc before -lgcc.
15259       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15260 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15261       $rm conftest*
15262       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15263
15264       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265   (eval $ac_compile) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } 2>conftest.err; then
15269         soname=conftest
15270         lib=conftest
15271         libobjs=conftest.$ac_objext
15272         deplibs=
15273         wl=$lt_prog_compiler_wl_F77
15274         compiler_flags=-v
15275         linker_flags=-v
15276         verstring=
15277         output_objdir=.
15278         libname=conftest
15279         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15280         allow_undefined_flag_F77=
15281         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15282   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }
15286         then
15287           archive_cmds_need_lc_F77=no
15288         else
15289           archive_cmds_need_lc_F77=yes
15290         fi
15291         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15292       else
15293         cat conftest.err 1>&5
15294       fi
15295       $rm conftest*
15296       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15297 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15298       ;;
15299     esac
15300   fi
15301   ;;
15302 esac
15303
15304 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15305 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15306 library_names_spec=
15307 libname_spec='lib$name'
15308 soname_spec=
15309 shrext_cmds=".so"
15310 postinstall_cmds=
15311 postuninstall_cmds=
15312 finish_cmds=
15313 finish_eval=
15314 shlibpath_var=
15315 shlibpath_overrides_runpath=unknown
15316 version_type=none
15317 dynamic_linker="$host_os ld.so"
15318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15319 if test "$GCC" = yes; then
15320   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15321   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15322     # if the path contains ";" then we assume it to be the separator
15323     # otherwise default to the standard path separator (i.e. ":") - it is
15324     # assumed that no part of a normal pathname contains ";" but that should
15325     # okay in the real world where ";" in dirpaths is itself problematic.
15326     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15327   else
15328     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15329   fi
15330 else
15331   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15332 fi
15333 need_lib_prefix=unknown
15334 hardcode_into_libs=no
15335
15336 # when you set need_version to no, make sure it does not cause -set_version
15337 # flags to be left without arguments
15338 need_version=unknown
15339
15340 case $host_os in
15341 aix3*)
15342   version_type=linux
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15344   shlibpath_var=LIBPATH
15345
15346   # AIX 3 has no versioning support, so we append a major version to the name.
15347   soname_spec='${libname}${release}${shared_ext}$major'
15348   ;;
15349
15350 aix4* | aix5*)
15351   version_type=linux
15352   need_lib_prefix=no
15353   need_version=no
15354   hardcode_into_libs=yes
15355   if test "$host_cpu" = ia64; then
15356     # AIX 5 supports IA64
15357     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15358     shlibpath_var=LD_LIBRARY_PATH
15359   else
15360     # With GCC up to 2.95.x, collect2 would create an import file
15361     # for dependence libraries.  The import file would start with
15362     # the line `#! .'.  This would cause the generated library to
15363     # depend on `.', always an invalid library.  This was fixed in
15364     # development snapshots of GCC prior to 3.0.
15365     case $host_os in
15366       aix4 | aix4.[01] | aix4.[01].*)
15367       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15368            echo ' yes '
15369            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15370         :
15371       else
15372         can_build_shared=no
15373       fi
15374       ;;
15375     esac
15376     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15377     # soname into executable. Probably we can add versioning support to
15378     # collect2, so additional links can be useful in future.
15379     if test "$aix_use_runtimelinking" = yes; then
15380       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15381       # instead of lib<name>.a to let people know that these are not
15382       # typical AIX shared libraries.
15383       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384     else
15385       # We preserve .a as extension for shared libraries through AIX4.2
15386       # and later when we are not doing run time linking.
15387       library_names_spec='${libname}${release}.a $libname.a'
15388       soname_spec='${libname}${release}${shared_ext}$major'
15389     fi
15390     shlibpath_var=LIBPATH
15391   fi
15392   ;;
15393
15394 amigaos*)
15395   library_names_spec='$libname.ixlibrary $libname.a'
15396   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15397   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'
15398   ;;
15399
15400 beos*)
15401   library_names_spec='${libname}${shared_ext}'
15402   dynamic_linker="$host_os ld.so"
15403   shlibpath_var=LIBRARY_PATH
15404   ;;
15405
15406 bsdi[45]*)
15407   version_type=linux
15408   need_version=no
15409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410   soname_spec='${libname}${release}${shared_ext}$major'
15411   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15412   shlibpath_var=LD_LIBRARY_PATH
15413   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15414   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15415   # the default ld.so.conf also contains /usr/contrib/lib and
15416   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15417   # libtool to hard-code these into programs
15418   ;;
15419
15420 cygwin* | mingw* | pw32*)
15421   version_type=windows
15422   shrext_cmds=".dll"
15423   need_version=no
15424   need_lib_prefix=no
15425
15426   case $GCC,$host_os in
15427   yes,cygwin* | yes,mingw* | yes,pw32*)
15428     library_names_spec='$libname.dll.a'
15429     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15430     postinstall_cmds='base_file=`basename \${file}`~
15431       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15432       dldir=$destdir/`dirname \$dlpath`~
15433       test -d \$dldir || mkdir -p \$dldir~
15434       $install_prog $dir/$dlname \$dldir/$dlname'
15435     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15436       dlpath=$dir/\$dldll~
15437        $rm \$dlpath'
15438     shlibpath_overrides_runpath=yes
15439
15440     case $host_os in
15441     cygwin*)
15442       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15443       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15444       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15445       ;;
15446     mingw*)
15447       # MinGW DLLs use traditional 'lib' prefix
15448       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15449       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15450       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15451         # It is most probably a Windows format PATH printed by
15452         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15453         # path with ; separators, and with drive letters. We can handle the
15454         # drive letters (cygwin fileutils understands them), so leave them,
15455         # especially as we might pass files found there to a mingw objdump,
15456         # which wouldn't understand a cygwinified path. Ahh.
15457         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15458       else
15459         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15460       fi
15461       ;;
15462     pw32*)
15463       # pw32 DLLs use 'pw' prefix rather than 'lib'
15464       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15465       ;;
15466     esac
15467     ;;
15468
15469   *)
15470     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15471     ;;
15472   esac
15473   dynamic_linker='Win32 ld.exe'
15474   # FIXME: first we should search . and the directory the executable is in
15475   shlibpath_var=PATH
15476   ;;
15477
15478 darwin* | rhapsody*)
15479   dynamic_linker="$host_os dyld"
15480   version_type=darwin
15481   need_lib_prefix=no
15482   need_version=no
15483   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15484   soname_spec='${libname}${release}${major}$shared_ext'
15485   shlibpath_overrides_runpath=yes
15486   shlibpath_var=DYLD_LIBRARY_PATH
15487   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15488   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15489   if test "$GCC" = yes; then
15490     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"`
15491   else
15492     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15493   fi
15494   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15495   ;;
15496
15497 dgux*)
15498   version_type=linux
15499   need_lib_prefix=no
15500   need_version=no
15501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15502   soname_spec='${libname}${release}${shared_ext}$major'
15503   shlibpath_var=LD_LIBRARY_PATH
15504   ;;
15505
15506 freebsd1*)
15507   dynamic_linker=no
15508   ;;
15509
15510 kfreebsd*-gnu)
15511   version_type=linux
15512   need_lib_prefix=no
15513   need_version=no
15514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15515   soname_spec='${libname}${release}${shared_ext}$major'
15516   shlibpath_var=LD_LIBRARY_PATH
15517   shlibpath_overrides_runpath=no
15518   hardcode_into_libs=yes
15519   dynamic_linker='GNU ld.so'
15520   ;;
15521
15522 freebsd* | dragonfly*)
15523   # DragonFly does not have aout.  When/if they implement a new
15524   # versioning mechanism, adjust this.
15525   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15526   version_type=freebsd-$objformat
15527   case $version_type in
15528     freebsd-elf*)
15529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15530       need_version=no
15531       need_lib_prefix=no
15532       ;;
15533     freebsd-*)
15534       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15535       need_version=yes
15536       ;;
15537   esac
15538   shlibpath_var=LD_LIBRARY_PATH
15539   case $host_os in
15540   freebsd2*)
15541     shlibpath_overrides_runpath=yes
15542     ;;
15543   freebsd3.[01]* | freebsdelf3.[01]*)
15544     shlibpath_overrides_runpath=yes
15545     hardcode_into_libs=yes
15546     ;;
15547   *) # from 3.2 on
15548     shlibpath_overrides_runpath=no
15549     hardcode_into_libs=yes
15550     ;;
15551   esac
15552   ;;
15553
15554 gnu*)
15555   version_type=linux
15556   need_lib_prefix=no
15557   need_version=no
15558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15559   soname_spec='${libname}${release}${shared_ext}$major'
15560   shlibpath_var=LD_LIBRARY_PATH
15561   hardcode_into_libs=yes
15562   ;;
15563
15564 hpux9* | hpux10* | hpux11*)
15565   # Give a soname corresponding to the major version so that dld.sl refuses to
15566   # link against other versions.
15567   version_type=sunos
15568   need_lib_prefix=no
15569   need_version=no
15570   case "$host_cpu" in
15571   ia64*)
15572     shrext_cmds='.so'
15573     hardcode_into_libs=yes
15574     dynamic_linker="$host_os dld.so"
15575     shlibpath_var=LD_LIBRARY_PATH
15576     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578     soname_spec='${libname}${release}${shared_ext}$major'
15579     if test "X$HPUX_IA64_MODE" = X32; then
15580       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15581     else
15582       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15583     fi
15584     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15585     ;;
15586    hppa*64*)
15587      shrext_cmds='.sl'
15588      hardcode_into_libs=yes
15589      dynamic_linker="$host_os dld.sl"
15590      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15591      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593      soname_spec='${libname}${release}${shared_ext}$major'
15594      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15595      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15596      ;;
15597    *)
15598     shrext_cmds='.sl'
15599     dynamic_linker="$host_os dld.sl"
15600     shlibpath_var=SHLIB_PATH
15601     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603     soname_spec='${libname}${release}${shared_ext}$major'
15604     ;;
15605   esac
15606   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15607   postinstall_cmds='chmod 555 $lib'
15608   ;;
15609
15610 irix5* | irix6* | nonstopux*)
15611   case $host_os in
15612     nonstopux*) version_type=nonstopux ;;
15613     *)
15614         if test "$lt_cv_prog_gnu_ld" = yes; then
15615                 version_type=linux
15616         else
15617                 version_type=irix
15618         fi ;;
15619   esac
15620   need_lib_prefix=no
15621   need_version=no
15622   soname_spec='${libname}${release}${shared_ext}$major'
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15624   case $host_os in
15625   irix5* | nonstopux*)
15626     libsuff= shlibsuff=
15627     ;;
15628   *)
15629     case $LD in # libtool.m4 will add one of these switches to LD
15630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15631       libsuff= shlibsuff= libmagic=32-bit;;
15632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15633       libsuff=32 shlibsuff=N32 libmagic=N32;;
15634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15636     *) libsuff= shlibsuff= libmagic=never-match;;
15637     esac
15638     ;;
15639   esac
15640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15641   shlibpath_overrides_runpath=no
15642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15644   hardcode_into_libs=yes
15645   ;;
15646
15647 # No shared lib support for Linux oldld, aout, or coff.
15648 linux*oldld* | linux*aout* | linux*coff*)
15649   dynamic_linker=no
15650   ;;
15651
15652 # This must be Linux ELF.
15653 linux*)
15654   version_type=linux
15655   need_lib_prefix=no
15656   need_version=no
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15660   shlibpath_var=LD_LIBRARY_PATH
15661   shlibpath_overrides_runpath=no
15662   # This implies no fast_install, which is unacceptable.
15663   # Some rework will be needed to allow for fast_install
15664   # before this can be enabled.
15665   hardcode_into_libs=yes
15666
15667   # find out which ABI we are using
15668   libsuff=
15669   case "$host_cpu" in
15670   x86_64*|s390x*|powerpc64*)
15671     echo '#line 15671 "configure"' > conftest.$ac_ext
15672     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; then
15677       case `/usr/bin/file conftest.$ac_objext` in
15678       *64-bit*)
15679         libsuff=64
15680         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15681         ;;
15682       esac
15683     fi
15684     rm -rf conftest*
15685     ;;
15686   esac
15687
15688   # Append ld.so.conf contents to the search path
15689   if test -f /etc/ld.so.conf; then
15690     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15691     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15692   fi
15693
15694   # We used to test for /lib/ld.so.1 and disable shared libraries on
15695   # powerpc, because MkLinux only supported shared libraries with the
15696   # GNU dynamic linker.  Since this was broken with cross compilers,
15697   # most powerpc-linux boxes support dynamic linking these days and
15698   # people can always --disable-shared, the test was removed, and we
15699   # assume the GNU/Linux dynamic linker is in use.
15700   dynamic_linker='GNU/Linux ld.so'
15701   ;;
15702
15703 knetbsd*-gnu)
15704   version_type=linux
15705   need_lib_prefix=no
15706   need_version=no
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15708   soname_spec='${libname}${release}${shared_ext}$major'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   shlibpath_overrides_runpath=no
15711   hardcode_into_libs=yes
15712   dynamic_linker='GNU ld.so'
15713   ;;
15714
15715 netbsd*)
15716   version_type=sunos
15717   need_lib_prefix=no
15718   need_version=no
15719   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15721     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15722     dynamic_linker='NetBSD (a.out) ld.so'
15723   else
15724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15725     soname_spec='${libname}${release}${shared_ext}$major'
15726     dynamic_linker='NetBSD ld.elf_so'
15727   fi
15728   shlibpath_var=LD_LIBRARY_PATH
15729   shlibpath_overrides_runpath=yes
15730   hardcode_into_libs=yes
15731   ;;
15732
15733 newsos6)
15734   version_type=linux
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736   shlibpath_var=LD_LIBRARY_PATH
15737   shlibpath_overrides_runpath=yes
15738   ;;
15739
15740 nto-qnx*)
15741   version_type=linux
15742   need_lib_prefix=no
15743   need_version=no
15744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745   soname_spec='${libname}${release}${shared_ext}$major'
15746   shlibpath_var=LD_LIBRARY_PATH
15747   shlibpath_overrides_runpath=yes
15748   ;;
15749
15750 openbsd*)
15751   version_type=sunos
15752   need_lib_prefix=no
15753   need_version=no
15754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15756   shlibpath_var=LD_LIBRARY_PATH
15757   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15758     case $host_os in
15759       openbsd2.[89] | openbsd2.[89].*)
15760         shlibpath_overrides_runpath=no
15761         ;;
15762       *)
15763         shlibpath_overrides_runpath=yes
15764         ;;
15765       esac
15766   else
15767     shlibpath_overrides_runpath=yes
15768   fi
15769   ;;
15770
15771 os2*)
15772   libname_spec='$name'
15773   shrext_cmds=".dll"
15774   need_lib_prefix=no
15775   library_names_spec='$libname${shared_ext} $libname.a'
15776   dynamic_linker='OS/2 ld.exe'
15777   shlibpath_var=LIBPATH
15778   ;;
15779
15780 osf3* | osf4* | osf5*)
15781   version_type=osf
15782   need_lib_prefix=no
15783   need_version=no
15784   soname_spec='${libname}${release}${shared_ext}$major'
15785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15788   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15789   ;;
15790
15791 sco3.2v5*)
15792   version_type=osf
15793   soname_spec='${libname}${release}${shared_ext}$major'
15794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795   shlibpath_var=LD_LIBRARY_PATH
15796   ;;
15797
15798 solaris*)
15799   version_type=linux
15800   need_lib_prefix=no
15801   need_version=no
15802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803   soname_spec='${libname}${release}${shared_ext}$major'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   shlibpath_overrides_runpath=yes
15806   hardcode_into_libs=yes
15807   # ldd complains unless libraries are executable
15808   postinstall_cmds='chmod +x $lib'
15809   ;;
15810
15811 sunos4*)
15812   version_type=sunos
15813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15814   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15815   shlibpath_var=LD_LIBRARY_PATH
15816   shlibpath_overrides_runpath=yes
15817   if test "$with_gnu_ld" = yes; then
15818     need_lib_prefix=no
15819   fi
15820   need_version=yes
15821   ;;
15822
15823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15824   version_type=linux
15825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826   soname_spec='${libname}${release}${shared_ext}$major'
15827   shlibpath_var=LD_LIBRARY_PATH
15828   case $host_vendor in
15829     sni)
15830       shlibpath_overrides_runpath=no
15831       need_lib_prefix=no
15832       export_dynamic_flag_spec='${wl}-Blargedynsym'
15833       runpath_var=LD_RUN_PATH
15834       ;;
15835     siemens)
15836       need_lib_prefix=no
15837       ;;
15838     motorola)
15839       need_lib_prefix=no
15840       need_version=no
15841       shlibpath_overrides_runpath=no
15842       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15843       ;;
15844   esac
15845   ;;
15846
15847 sysv4*MP*)
15848   if test -d /usr/nec ;then
15849     version_type=linux
15850     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15851     soname_spec='$libname${shared_ext}.$major'
15852     shlibpath_var=LD_LIBRARY_PATH
15853   fi
15854   ;;
15855
15856 uts4*)
15857   version_type=linux
15858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859   soname_spec='${libname}${release}${shared_ext}$major'
15860   shlibpath_var=LD_LIBRARY_PATH
15861   ;;
15862
15863 *)
15864   dynamic_linker=no
15865   ;;
15866 esac
15867 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15868 echo "${ECHO_T}$dynamic_linker" >&6
15869 test "$dynamic_linker" = no && can_build_shared=no
15870
15871 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15873 hardcode_action_F77=
15874 if test -n "$hardcode_libdir_flag_spec_F77" || \
15875    test -n "$runpath_var_F77" || \
15876    test "X$hardcode_automatic_F77" = "Xyes" ; then
15877
15878   # We can hardcode non-existant directories.
15879   if test "$hardcode_direct_F77" != no &&
15880      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881      # have to relink, otherwise we might link with an installed library
15882      # when we should be linking with a yet-to-be-installed one
15883      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15884      test "$hardcode_minus_L_F77" != no; then
15885     # Linking always hardcodes the temporary library directory.
15886     hardcode_action_F77=relink
15887   else
15888     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889     hardcode_action_F77=immediate
15890   fi
15891 else
15892   # We cannot hardcode anything, or else we can only hardcode existing
15893   # directories.
15894   hardcode_action_F77=unsupported
15895 fi
15896 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15897 echo "${ECHO_T}$hardcode_action_F77" >&6
15898
15899 if test "$hardcode_action_F77" = relink; then
15900   # Fast installation is not supported
15901   enable_fast_install=no
15902 elif test "$shlibpath_overrides_runpath" = yes ||
15903      test "$enable_shared" = no; then
15904   # Fast installation is not necessary
15905   enable_fast_install=needless
15906 fi
15907
15908 striplib=
15909 old_striplib=
15910 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15912 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15913   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15914   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15915   echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15917 else
15918 # FIXME - insert some real tests, host_os isn't really good enough
15919   case $host_os in
15920    darwin*)
15921        if test -n "$STRIP" ; then
15922          striplib="$STRIP -x"
15923          echo "$as_me:$LINENO: result: yes" >&5
15924 echo "${ECHO_T}yes" >&6
15925        else
15926   echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15928 fi
15929        ;;
15930    *)
15931   echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6
15933     ;;
15934   esac
15935 fi
15936
15937
15938
15939 # The else clause should only fire when bootstrapping the
15940 # libtool distribution, otherwise you forgot to ship ltmain.sh
15941 # with your package, and you will get complaints that there are
15942 # no rules to generate ltmain.sh.
15943 if test -f "$ltmain"; then
15944   # See if we are running on zsh, and set the options which allow our commands through
15945   # without removal of \ escapes.
15946   if test -n "${ZSH_VERSION+set}" ; then
15947     setopt NO_GLOB_SUBST
15948   fi
15949   # Now quote all the things that may contain metacharacters while being
15950   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15951   # variables and quote the copies for generation of the libtool script.
15952   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15953     SED SHELL STRIP \
15954     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15955     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15956     deplibs_check_method reload_flag reload_cmds need_locks \
15957     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15958     lt_cv_sys_global_symbol_to_c_name_address \
15959     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15960     old_postinstall_cmds old_postuninstall_cmds \
15961     compiler_F77 \
15962     CC_F77 \
15963     LD_F77 \
15964     lt_prog_compiler_wl_F77 \
15965     lt_prog_compiler_pic_F77 \
15966     lt_prog_compiler_static_F77 \
15967     lt_prog_compiler_no_builtin_flag_F77 \
15968     export_dynamic_flag_spec_F77 \
15969     thread_safe_flag_spec_F77 \
15970     whole_archive_flag_spec_F77 \
15971     enable_shared_with_static_runtimes_F77 \
15972     old_archive_cmds_F77 \
15973     old_archive_from_new_cmds_F77 \
15974     predep_objects_F77 \
15975     postdep_objects_F77 \
15976     predeps_F77 \
15977     postdeps_F77 \
15978     compiler_lib_search_path_F77 \
15979     archive_cmds_F77 \
15980     archive_expsym_cmds_F77 \
15981     postinstall_cmds_F77 \
15982     postuninstall_cmds_F77 \
15983     old_archive_from_expsyms_cmds_F77 \
15984     allow_undefined_flag_F77 \
15985     no_undefined_flag_F77 \
15986     export_symbols_cmds_F77 \
15987     hardcode_libdir_flag_spec_F77 \
15988     hardcode_libdir_flag_spec_ld_F77 \
15989     hardcode_libdir_separator_F77 \
15990     hardcode_automatic_F77 \
15991     module_cmds_F77 \
15992     module_expsym_cmds_F77 \
15993     lt_cv_prog_compiler_c_o_F77 \
15994     exclude_expsyms_F77 \
15995     include_expsyms_F77; do
15996
15997     case $var in
15998     old_archive_cmds_F77 | \
15999     old_archive_from_new_cmds_F77 | \
16000     archive_cmds_F77 | \
16001     archive_expsym_cmds_F77 | \
16002     module_cmds_F77 | \
16003     module_expsym_cmds_F77 | \
16004     old_archive_from_expsyms_cmds_F77 | \
16005     export_symbols_cmds_F77 | \
16006     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16007     postinstall_cmds | postuninstall_cmds | \
16008     old_postinstall_cmds | old_postuninstall_cmds | \
16009     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16010       # Double-quote double-evaled strings.
16011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16012       ;;
16013     *)
16014       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16015       ;;
16016     esac
16017   done
16018
16019   case $lt_echo in
16020   *'\$0 --fallback-echo"')
16021     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16022     ;;
16023   esac
16024
16025 cfgfile="$ofile"
16026
16027   cat <<__EOF__ >> "$cfgfile"
16028 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16029
16030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16031
16032 # Shell to use when invoking shell scripts.
16033 SHELL=$lt_SHELL
16034
16035 # Whether or not to build shared libraries.
16036 build_libtool_libs=$enable_shared
16037
16038 # Whether or not to build static libraries.
16039 build_old_libs=$enable_static
16040
16041 # Whether or not to add -lc for building shared libraries.
16042 build_libtool_need_lc=$archive_cmds_need_lc_F77
16043
16044 # Whether or not to disallow shared libs when runtime libs are static
16045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16046
16047 # Whether or not to optimize for fast installation.
16048 fast_install=$enable_fast_install
16049
16050 # The host system.
16051 host_alias=$host_alias
16052 host=$host
16053 host_os=$host_os
16054
16055 # The build system.
16056 build_alias=$build_alias
16057 build=$build
16058 build_os=$build_os
16059
16060 # An echo program that does not interpret backslashes.
16061 echo=$lt_echo
16062
16063 # The archiver.
16064 AR=$lt_AR
16065 AR_FLAGS=$lt_AR_FLAGS
16066
16067 # A C compiler.
16068 LTCC=$lt_LTCC
16069
16070 # A language-specific compiler.
16071 CC=$lt_compiler_F77
16072
16073 # Is the compiler the GNU C compiler?
16074 with_gcc=$GCC_F77
16075
16076 # An ERE matcher.
16077 EGREP=$lt_EGREP
16078
16079 # The linker used to build libraries.
16080 LD=$lt_LD_F77
16081
16082 # Whether we need hard or soft links.
16083 LN_S=$lt_LN_S
16084
16085 # A BSD-compatible nm program.
16086 NM=$lt_NM
16087
16088 # A symbol stripping program
16089 STRIP=$lt_STRIP
16090
16091 # Used to examine libraries when file_magic_cmd begins "file"
16092 MAGIC_CMD=$MAGIC_CMD
16093
16094 # Used on cygwin: DLL creation program.
16095 DLLTOOL="$DLLTOOL"
16096
16097 # Used on cygwin: object dumper.
16098 OBJDUMP="$OBJDUMP"
16099
16100 # Used on cygwin: assembler.
16101 AS="$AS"
16102
16103 # The name of the directory that contains temporary libtool files.
16104 objdir=$objdir
16105
16106 # How to create reloadable object files.
16107 reload_flag=$lt_reload_flag
16108 reload_cmds=$lt_reload_cmds
16109
16110 # How to pass a linker flag through the compiler.
16111 wl=$lt_lt_prog_compiler_wl_F77
16112
16113 # Object file suffix (normally "o").
16114 objext="$ac_objext"
16115
16116 # Old archive suffix (normally "a").
16117 libext="$libext"
16118
16119 # Shared library suffix (normally ".so").
16120 shrext_cmds='$shrext_cmds'
16121
16122 # Executable file suffix (normally "").
16123 exeext="$exeext"
16124
16125 # Additional compiler flags for building library objects.
16126 pic_flag=$lt_lt_prog_compiler_pic_F77
16127 pic_mode=$pic_mode
16128
16129 # What is the maximum length of a command?
16130 max_cmd_len=$lt_cv_sys_max_cmd_len
16131
16132 # Does compiler simultaneously support -c and -o options?
16133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16134
16135 # Must we lock files when doing compilation?
16136 need_locks=$lt_need_locks
16137
16138 # Do we need the lib prefix for modules?
16139 need_lib_prefix=$need_lib_prefix
16140
16141 # Do we need a version for libraries?
16142 need_version=$need_version
16143
16144 # Whether dlopen is supported.
16145 dlopen_support=$enable_dlopen
16146
16147 # Whether dlopen of programs is supported.
16148 dlopen_self=$enable_dlopen_self
16149
16150 # Whether dlopen of statically linked programs is supported.
16151 dlopen_self_static=$enable_dlopen_self_static
16152
16153 # Compiler flag to prevent dynamic linking.
16154 link_static_flag=$lt_lt_prog_compiler_static_F77
16155
16156 # Compiler flag to turn off builtin functions.
16157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16158
16159 # Compiler flag to allow reflexive dlopens.
16160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16161
16162 # Compiler flag to generate shared objects directly from archives.
16163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16164
16165 # Compiler flag to generate thread-safe objects.
16166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16167
16168 # Library versioning type.
16169 version_type=$version_type
16170
16171 # Format of library name prefix.
16172 libname_spec=$lt_libname_spec
16173
16174 # List of archive names.  First name is the real one, the rest are links.
16175 # The last name is the one that the linker finds with -lNAME.
16176 library_names_spec=$lt_library_names_spec
16177
16178 # The coded name of the library, if different from the real name.
16179 soname_spec=$lt_soname_spec
16180
16181 # Commands used to build and install an old-style archive.
16182 RANLIB=$lt_RANLIB
16183 old_archive_cmds=$lt_old_archive_cmds_F77
16184 old_postinstall_cmds=$lt_old_postinstall_cmds
16185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16186
16187 # Create an old-style archive from a shared archive.
16188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16189
16190 # Create a temporary old-style archive to link instead of a shared archive.
16191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16192
16193 # Commands used to build and install a shared archive.
16194 archive_cmds=$lt_archive_cmds_F77
16195 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16196 postinstall_cmds=$lt_postinstall_cmds
16197 postuninstall_cmds=$lt_postuninstall_cmds
16198
16199 # Commands used to build a loadable module (assumed same as above if empty)
16200 module_cmds=$lt_module_cmds_F77
16201 module_expsym_cmds=$lt_module_expsym_cmds_F77
16202
16203 # Commands to strip libraries.
16204 old_striplib=$lt_old_striplib
16205 striplib=$lt_striplib
16206
16207 # Dependencies to place before the objects being linked to create a
16208 # shared library.
16209 predep_objects=$lt_predep_objects_F77
16210
16211 # Dependencies to place after the objects being linked to create a
16212 # shared library.
16213 postdep_objects=$lt_postdep_objects_F77
16214
16215 # Dependencies to place before the objects being linked to create a
16216 # shared library.
16217 predeps=$lt_predeps_F77
16218
16219 # Dependencies to place after the objects being linked to create a
16220 # shared library.
16221 postdeps=$lt_postdeps_F77
16222
16223 # The library search path used internally by the compiler when linking
16224 # a shared library.
16225 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16226
16227 # Method to check whether dependent libraries are shared objects.
16228 deplibs_check_method=$lt_deplibs_check_method
16229
16230 # Command to use when deplibs_check_method == file_magic.
16231 file_magic_cmd=$lt_file_magic_cmd
16232
16233 # Flag that allows shared libraries with undefined symbols to be built.
16234 allow_undefined_flag=$lt_allow_undefined_flag_F77
16235
16236 # Flag that forces no undefined symbols.
16237 no_undefined_flag=$lt_no_undefined_flag_F77
16238
16239 # Commands used to finish a libtool library installation in a directory.
16240 finish_cmds=$lt_finish_cmds
16241
16242 # Same as above, but a single script fragment to be evaled but not shown.
16243 finish_eval=$lt_finish_eval
16244
16245 # Take the output of nm and produce a listing of raw symbols and C names.
16246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16247
16248 # Transform the output of nm in a proper C declaration
16249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16250
16251 # Transform the output of nm in a C name address pair
16252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16253
16254 # This is the shared library runtime path variable.
16255 runpath_var=$runpath_var
16256
16257 # This is the shared library path variable.
16258 shlibpath_var=$shlibpath_var
16259
16260 # Is shlibpath searched before the hard-coded library search path?
16261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16262
16263 # How to hardcode a shared library path into an executable.
16264 hardcode_action=$hardcode_action_F77
16265
16266 # Whether we should hardcode library paths into libraries.
16267 hardcode_into_libs=$hardcode_into_libs
16268
16269 # Flag to hardcode \$libdir into a binary during linking.
16270 # This must work even if \$libdir does not exist.
16271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16272
16273 # If ld is used when linking, flag to hardcode \$libdir into
16274 # a binary during linking. This must work even if \$libdir does
16275 # not exist.
16276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16277
16278 # Whether we need a single -rpath flag with a separated argument.
16279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16280
16281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16282 # resulting binary.
16283 hardcode_direct=$hardcode_direct_F77
16284
16285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16286 # resulting binary.
16287 hardcode_minus_L=$hardcode_minus_L_F77
16288
16289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16290 # the resulting binary.
16291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16292
16293 # Set to yes if building a shared library automatically hardcodes DIR into the library
16294 # and all subsequent libraries and executables linked against it.
16295 hardcode_automatic=$hardcode_automatic_F77
16296
16297 # Variables whose values should be saved in libtool wrapper scripts and
16298 # restored at relink time.
16299 variables_saved_for_relink="$variables_saved_for_relink"
16300
16301 # Whether libtool must link a program against all its dependency libraries.
16302 link_all_deplibs=$link_all_deplibs_F77
16303
16304 # Compile-time system search path for libraries
16305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16306
16307 # Run-time system search path for libraries
16308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16309
16310 # Fix the shell variable \$srcfile for the compiler.
16311 fix_srcfile_path="$fix_srcfile_path_F77"
16312
16313 # Set to yes if exported symbols are required.
16314 always_export_symbols=$always_export_symbols_F77
16315
16316 # The commands to list exported symbols.
16317 export_symbols_cmds=$lt_export_symbols_cmds_F77
16318
16319 # The commands to extract the exported symbol list from a shared archive.
16320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16321
16322 # Symbols that should not be listed in the preloaded symbols.
16323 exclude_expsyms=$lt_exclude_expsyms_F77
16324
16325 # Symbols that must always be exported.
16326 include_expsyms=$lt_include_expsyms_F77
16327
16328 # ### END LIBTOOL TAG CONFIG: $tagname
16329
16330 __EOF__
16331
16332
16333 else
16334   # If there is no Makefile yet, we rely on a make rule to execute
16335   # `config.status --recheck' to rerun these tests and create the
16336   # libtool script then.
16337   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16338   if test -f "$ltmain_in"; then
16339     test -f Makefile && make "$ltmain"
16340   fi
16341 fi
16342
16343
16344 ac_ext=c
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16349
16350 CC="$lt_save_CC"
16351
16352         else
16353           tagname=""
16354         fi
16355         ;;
16356
16357       GCJ)
16358         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16359
16360
16361
16362 # Source file extension for Java test sources.
16363 ac_ext=java
16364
16365 # Object file extension for compiled Java test sources.
16366 objext=o
16367 objext_GCJ=$objext
16368
16369 # Code to be used in simple compile tests
16370 lt_simple_compile_test_code="class foo {}\n"
16371
16372 # Code to be used in simple link tests
16373 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16374
16375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16376
16377 # If no C compiler was specified, use CC.
16378 LTCC=${LTCC-"$CC"}
16379
16380 # Allow CC to be a program name with arguments.
16381 compiler=$CC
16382
16383
16384 # save warnings/boilerplate of simple test code
16385 ac_outfile=conftest.$ac_objext
16386 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16388 _lt_compiler_boilerplate=`cat conftest.err`
16389 $rm conftest*
16390
16391 ac_outfile=conftest.$ac_objext
16392 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16394 _lt_linker_boilerplate=`cat conftest.err`
16395 $rm conftest*
16396
16397
16398 # Allow CC to be a program name with arguments.
16399 lt_save_CC="$CC"
16400 CC=${GCJ-"gcj"}
16401 compiler=$CC
16402 compiler_GCJ=$CC
16403 for cc_temp in $compiler""; do
16404   case $cc_temp in
16405     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16406     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16407     \-*) ;;
16408     *) break;;
16409   esac
16410 done
16411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16412
16413
16414 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16415 archive_cmds_need_lc_GCJ=no
16416
16417 old_archive_cmds_GCJ=$old_archive_cmds
16418
16419 ## CAVEAT EMPTOR:
16420 ## There is no encapsulation within the following macros, do not change
16421 ## the running order or otherwise move them around unless you know exactly
16422 ## what you are doing...
16423
16424 lt_prog_compiler_no_builtin_flag_GCJ=
16425
16426 if test "$GCC" = yes; then
16427   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16428
16429
16430 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16431 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16432 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435   lt_cv_prog_compiler_rtti_exceptions=no
16436   ac_outfile=conftest.$ac_objext
16437    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16438    lt_compiler_flag="-fno-rtti -fno-exceptions"
16439    # Insert the option either (1) after the last *FLAGS variable, or
16440    # (2) before a word containing "conftest.", or (3) at the end.
16441    # Note that $ac_compile itself does not contain backslashes and begins
16442    # with a dollar sign (not a hyphen), so the echo should work correctly.
16443    # The option is referenced via a variable to avoid confusing sed.
16444    lt_compile=`echo "$ac_compile" | $SED \
16445    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16447    -e 's:$: $lt_compiler_flag:'`
16448    (eval echo "\"\$as_me:16448: $lt_compile\"" >&5)
16449    (eval "$lt_compile" 2>conftest.err)
16450    ac_status=$?
16451    cat conftest.err >&5
16452    echo "$as_me:16452: \$? = $ac_status" >&5
16453    if (exit $ac_status) && test -s "$ac_outfile"; then
16454      # The compiler can only warn and ignore the option if not recognized
16455      # So say no if there are warnings other than the usual output.
16456      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16457      $SED '/^$/d' conftest.err >conftest.er2
16458      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16459        lt_cv_prog_compiler_rtti_exceptions=yes
16460      fi
16461    fi
16462    $rm conftest*
16463
16464 fi
16465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16466 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16467
16468 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16469     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16470 else
16471     :
16472 fi
16473
16474 fi
16475
16476 lt_prog_compiler_wl_GCJ=
16477 lt_prog_compiler_pic_GCJ=
16478 lt_prog_compiler_static_GCJ=
16479
16480 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16482
16483   if test "$GCC" = yes; then
16484     lt_prog_compiler_wl_GCJ='-Wl,'
16485     lt_prog_compiler_static_GCJ='-static'
16486
16487     case $host_os in
16488       aix*)
16489       # All AIX code is PIC.
16490       if test "$host_cpu" = ia64; then
16491         # AIX 5 now supports IA64 processor
16492         lt_prog_compiler_static_GCJ='-Bstatic'
16493       fi
16494       ;;
16495
16496     amigaos*)
16497       # FIXME: we need at least 68020 code to build shared libraries, but
16498       # adding the `-m68020' flag to GCC prevents building anything better,
16499       # like `-m68040'.
16500       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16501       ;;
16502
16503     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16504       # PIC is the default for these OSes.
16505       ;;
16506
16507     mingw* | pw32* | os2*)
16508       # This hack is so that the source file can tell whether it is being
16509       # built for inclusion in a dll (and should export symbols for example).
16510       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16511       ;;
16512
16513     darwin* | rhapsody*)
16514       # PIC is the default on this platform
16515       # Common symbols not allowed in MH_DYLIB files
16516       lt_prog_compiler_pic_GCJ='-fno-common'
16517       ;;
16518
16519     msdosdjgpp*)
16520       # Just because we use GCC doesn't mean we suddenly get shared libraries
16521       # on systems that don't support them.
16522       lt_prog_compiler_can_build_shared_GCJ=no
16523       enable_shared=no
16524       ;;
16525
16526     sysv4*MP*)
16527       if test -d /usr/nec; then
16528         lt_prog_compiler_pic_GCJ=-Kconform_pic
16529       fi
16530       ;;
16531
16532     hpux*)
16533       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16534       # not for PA HP-UX.
16535       case "$host_cpu" in
16536       hppa*64*|ia64*)
16537         # +Z the default
16538         ;;
16539       *)
16540         lt_prog_compiler_pic_GCJ='-fPIC'
16541         ;;
16542       esac
16543       ;;
16544
16545     *)
16546       lt_prog_compiler_pic_GCJ='-fPIC'
16547       ;;
16548     esac
16549   else
16550     # PORTME Check for flag to pass linker flags through the system compiler.
16551     case $host_os in
16552     aix*)
16553       lt_prog_compiler_wl_GCJ='-Wl,'
16554       if test "$host_cpu" = ia64; then
16555         # AIX 5 now supports IA64 processor
16556         lt_prog_compiler_static_GCJ='-Bstatic'
16557       else
16558         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16559       fi
16560       ;;
16561       darwin*)
16562         # PIC is the default on this platform
16563         # Common symbols not allowed in MH_DYLIB files
16564        case $cc_basename in
16565          xlc*)
16566          lt_prog_compiler_pic_GCJ='-qnocommon'
16567          lt_prog_compiler_wl_GCJ='-Wl,'
16568          ;;
16569        esac
16570        ;;
16571
16572     mingw* | pw32* | os2*)
16573       # This hack is so that the source file can tell whether it is being
16574       # built for inclusion in a dll (and should export symbols for example).
16575       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16576       ;;
16577
16578     hpux9* | hpux10* | hpux11*)
16579       lt_prog_compiler_wl_GCJ='-Wl,'
16580       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16581       # not for PA HP-UX.
16582       case "$host_cpu" in
16583       hppa*64*|ia64*)
16584         # +Z the default
16585         ;;
16586       *)
16587         lt_prog_compiler_pic_GCJ='+Z'
16588         ;;
16589       esac
16590       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16591       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16592       ;;
16593
16594     irix5* | irix6* | nonstopux*)
16595       lt_prog_compiler_wl_GCJ='-Wl,'
16596       # PIC (with -KPIC) is the default.
16597       lt_prog_compiler_static_GCJ='-non_shared'
16598       ;;
16599
16600     newsos6)
16601       lt_prog_compiler_pic_GCJ='-KPIC'
16602       lt_prog_compiler_static_GCJ='-Bstatic'
16603       ;;
16604
16605     linux*)
16606       case $cc_basename in
16607       icc* | ecc*)
16608         lt_prog_compiler_wl_GCJ='-Wl,'
16609         lt_prog_compiler_pic_GCJ='-KPIC'
16610         lt_prog_compiler_static_GCJ='-static'
16611         ;;
16612       pgcc* | pgf77* | pgf90*)
16613         # Portland Group compilers (*not* the Pentium gcc compiler,
16614         # which looks to be a dead project)
16615         lt_prog_compiler_wl_GCJ='-Wl,'
16616         lt_prog_compiler_pic_GCJ='-fpic'
16617         lt_prog_compiler_static_GCJ='-static'
16618         ;;
16619       ccc*)
16620         lt_prog_compiler_wl_GCJ='-Wl,'
16621         # All Alpha code is PIC.
16622         lt_prog_compiler_static_GCJ='-non_shared'
16623         ;;
16624       esac
16625       ;;
16626
16627     osf3* | osf4* | osf5*)
16628       lt_prog_compiler_wl_GCJ='-Wl,'
16629       # All OSF/1 code is PIC.
16630       lt_prog_compiler_static_GCJ='-non_shared'
16631       ;;
16632
16633     sco3.2v5*)
16634       lt_prog_compiler_pic_GCJ='-Kpic'
16635       lt_prog_compiler_static_GCJ='-dn'
16636       ;;
16637
16638     solaris*)
16639       lt_prog_compiler_pic_GCJ='-KPIC'
16640       lt_prog_compiler_static_GCJ='-Bstatic'
16641       case $cc_basename in
16642       f77* | f90* | f95*)
16643         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16644       *)
16645         lt_prog_compiler_wl_GCJ='-Wl,';;
16646       esac
16647       ;;
16648
16649     sunos4*)
16650       lt_prog_compiler_wl_GCJ='-Qoption ld '
16651       lt_prog_compiler_pic_GCJ='-PIC'
16652       lt_prog_compiler_static_GCJ='-Bstatic'
16653       ;;
16654
16655     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16656       lt_prog_compiler_wl_GCJ='-Wl,'
16657       lt_prog_compiler_pic_GCJ='-KPIC'
16658       lt_prog_compiler_static_GCJ='-Bstatic'
16659       ;;
16660
16661     sysv4*MP*)
16662       if test -d /usr/nec ;then
16663         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16664         lt_prog_compiler_static_GCJ='-Bstatic'
16665       fi
16666       ;;
16667
16668     unicos*)
16669       lt_prog_compiler_wl_GCJ='-Wl,'
16670       lt_prog_compiler_can_build_shared_GCJ=no
16671       ;;
16672
16673     uts4*)
16674       lt_prog_compiler_pic_GCJ='-pic'
16675       lt_prog_compiler_static_GCJ='-Bstatic'
16676       ;;
16677
16678     *)
16679       lt_prog_compiler_can_build_shared_GCJ=no
16680       ;;
16681     esac
16682   fi
16683
16684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16685 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16686
16687 #
16688 # Check to make sure the PIC flag actually works.
16689 #
16690 if test -n "$lt_prog_compiler_pic_GCJ"; then
16691
16692 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16694 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   lt_prog_compiler_pic_works_GCJ=no
16698   ac_outfile=conftest.$ac_objext
16699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16700    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16701    # Insert the option either (1) after the last *FLAGS variable, or
16702    # (2) before a word containing "conftest.", or (3) at the end.
16703    # Note that $ac_compile itself does not contain backslashes and begins
16704    # with a dollar sign (not a hyphen), so the echo should work correctly.
16705    # The option is referenced via a variable to avoid confusing sed.
16706    lt_compile=`echo "$ac_compile" | $SED \
16707    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16709    -e 's:$: $lt_compiler_flag:'`
16710    (eval echo "\"\$as_me:16710: $lt_compile\"" >&5)
16711    (eval "$lt_compile" 2>conftest.err)
16712    ac_status=$?
16713    cat conftest.err >&5
16714    echo "$as_me:16714: \$? = $ac_status" >&5
16715    if (exit $ac_status) && test -s "$ac_outfile"; then
16716      # The compiler can only warn and ignore the option if not recognized
16717      # So say no if there are warnings other than the usual output.
16718      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16719      $SED '/^$/d' conftest.err >conftest.er2
16720      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16721        lt_prog_compiler_pic_works_GCJ=yes
16722      fi
16723    fi
16724    $rm conftest*
16725
16726 fi
16727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16728 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16729
16730 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16731     case $lt_prog_compiler_pic_GCJ in
16732      "" | " "*) ;;
16733      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16734      esac
16735 else
16736     lt_prog_compiler_pic_GCJ=
16737      lt_prog_compiler_can_build_shared_GCJ=no
16738 fi
16739
16740 fi
16741 case "$host_os" in
16742   # For platforms which do not support PIC, -DPIC is meaningless:
16743   *djgpp*)
16744     lt_prog_compiler_pic_GCJ=
16745     ;;
16746   *)
16747     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16748     ;;
16749 esac
16750
16751 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16752 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16753 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16754   echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756   lt_cv_prog_compiler_c_o_GCJ=no
16757    $rm -r conftest 2>/dev/null
16758    mkdir conftest
16759    cd conftest
16760    mkdir out
16761    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16762
16763    lt_compiler_flag="-o out/conftest2.$ac_objext"
16764    # Insert the option either (1) after the last *FLAGS variable, or
16765    # (2) before a word containing "conftest.", or (3) at the end.
16766    # Note that $ac_compile itself does not contain backslashes and begins
16767    # with a dollar sign (not a hyphen), so the echo should work correctly.
16768    lt_compile=`echo "$ac_compile" | $SED \
16769    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16771    -e 's:$: $lt_compiler_flag:'`
16772    (eval echo "\"\$as_me:16772: $lt_compile\"" >&5)
16773    (eval "$lt_compile" 2>out/conftest.err)
16774    ac_status=$?
16775    cat out/conftest.err >&5
16776    echo "$as_me:16776: \$? = $ac_status" >&5
16777    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16778    then
16779      # The compiler can only warn and ignore the option if not recognized
16780      # So say no if there are warnings
16781      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16782      $SED '/^$/d' out/conftest.err >out/conftest.er2
16783      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16784        lt_cv_prog_compiler_c_o_GCJ=yes
16785      fi
16786    fi
16787    chmod u+w .
16788    $rm conftest*
16789    # SGI C++ compiler will create directory out/ii_files/ for
16790    # template instantiation
16791    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16792    $rm out/* && rmdir out
16793    cd ..
16794    rmdir conftest
16795    $rm conftest*
16796
16797 fi
16798 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16799 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16800
16801
16802 hard_links="nottested"
16803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16804   # do not overwrite the value of need_locks provided by the user
16805   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16807   hard_links=yes
16808   $rm conftest*
16809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16810   touch conftest.a
16811   ln conftest.a conftest.b 2>&5 || hard_links=no
16812   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16813   echo "$as_me:$LINENO: result: $hard_links" >&5
16814 echo "${ECHO_T}$hard_links" >&6
16815   if test "$hard_links" = no; then
16816     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16818     need_locks=warn
16819   fi
16820 else
16821   need_locks=no
16822 fi
16823
16824 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16825 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16826
16827   runpath_var=
16828   allow_undefined_flag_GCJ=
16829   enable_shared_with_static_runtimes_GCJ=no
16830   archive_cmds_GCJ=
16831   archive_expsym_cmds_GCJ=
16832   old_archive_From_new_cmds_GCJ=
16833   old_archive_from_expsyms_cmds_GCJ=
16834   export_dynamic_flag_spec_GCJ=
16835   whole_archive_flag_spec_GCJ=
16836   thread_safe_flag_spec_GCJ=
16837   hardcode_libdir_flag_spec_GCJ=
16838   hardcode_libdir_flag_spec_ld_GCJ=
16839   hardcode_libdir_separator_GCJ=
16840   hardcode_direct_GCJ=no
16841   hardcode_minus_L_GCJ=no
16842   hardcode_shlibpath_var_GCJ=unsupported
16843   link_all_deplibs_GCJ=unknown
16844   hardcode_automatic_GCJ=no
16845   module_cmds_GCJ=
16846   module_expsym_cmds_GCJ=
16847   always_export_symbols_GCJ=no
16848   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16849   # include_expsyms should be a list of space-separated symbols to be *always*
16850   # included in the symbol list
16851   include_expsyms_GCJ=
16852   # exclude_expsyms can be an extended regexp of symbols to exclude
16853   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16854   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16855   # as well as any symbol that contains `d'.
16856   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16857   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16858   # platforms (ab)use it in PIC code, but their linkers get confused if
16859   # the symbol is explicitly referenced.  Since portable code cannot
16860   # rely on this symbol name, it's probably fine to never include it in
16861   # preloaded symbol tables.
16862   extract_expsyms_cmds=
16863   # Just being paranoid about ensuring that cc_basename is set.
16864   for cc_temp in $compiler""; do
16865   case $cc_temp in
16866     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16867     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16868     \-*) ;;
16869     *) break;;
16870   esac
16871 done
16872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16873
16874   case $host_os in
16875   cygwin* | mingw* | pw32*)
16876     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16877     # When not using gcc, we currently assume that we are using
16878     # Microsoft Visual C++.
16879     if test "$GCC" != yes; then
16880       with_gnu_ld=no
16881     fi
16882     ;;
16883   openbsd*)
16884     with_gnu_ld=no
16885     ;;
16886   esac
16887
16888   ld_shlibs_GCJ=yes
16889   if test "$with_gnu_ld" = yes; then
16890     # If archive_cmds runs LD, not CC, wlarc should be empty
16891     wlarc='${wl}'
16892
16893     # Set some defaults for GNU ld with shared library support. These
16894     # are reset later if shared libraries are not supported. Putting them
16895     # here allows them to be overridden if necessary.
16896     runpath_var=LD_RUN_PATH
16897     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16898     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16899     # ancient GNU ld didn't support --whole-archive et. al.
16900     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16901         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16902       else
16903         whole_archive_flag_spec_GCJ=
16904     fi
16905     supports_anon_versioning=no
16906     case `$LD -v 2>/dev/null` in
16907       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16908       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16909       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16910       *\ 2.11.*) ;; # other 2.11 versions
16911       *) supports_anon_versioning=yes ;;
16912     esac
16913
16914     # See if GNU ld supports shared libraries.
16915     case $host_os in
16916     aix3* | aix4* | aix5*)
16917       # On AIX/PPC, the GNU linker is very broken
16918       if test "$host_cpu" != ia64; then
16919         ld_shlibs_GCJ=no
16920         cat <<EOF 1>&2
16921
16922 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16923 *** to be unable to reliably create shared libraries on AIX.
16924 *** Therefore, libtool is disabling shared libraries support.  If you
16925 *** really care for shared libraries, you may want to modify your PATH
16926 *** so that a non-GNU linker is found, and then restart.
16927
16928 EOF
16929       fi
16930       ;;
16931
16932     amigaos*)
16933       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)'
16934       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16935       hardcode_minus_L_GCJ=yes
16936
16937       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16938       # that the semantics of dynamic libraries on AmigaOS, at least up
16939       # to version 4, is to share data among multiple programs linked
16940       # with the same dynamic library.  Since this doesn't match the
16941       # behavior of shared libraries on other platforms, we can't use
16942       # them.
16943       ld_shlibs_GCJ=no
16944       ;;
16945
16946     beos*)
16947       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16948         allow_undefined_flag_GCJ=unsupported
16949         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16950         # support --undefined.  This deserves some investigation.  FIXME
16951         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952       else
16953         ld_shlibs_GCJ=no
16954       fi
16955       ;;
16956
16957     cygwin* | mingw* | pw32*)
16958       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16959       # as there is no search path for DLLs.
16960       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961       allow_undefined_flag_GCJ=unsupported
16962       always_export_symbols_GCJ=no
16963       enable_shared_with_static_runtimes_GCJ=yes
16964       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16965
16966       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16967         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16968         # If the export-symbols file already is a .def file (1st line
16969         # is EXPORTS), use it as is; otherwise, prepend...
16970         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16971           cp $export_symbols $output_objdir/$soname.def;
16972         else
16973           echo EXPORTS > $output_objdir/$soname.def;
16974           cat $export_symbols >> $output_objdir/$soname.def;
16975         fi~
16976         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16977       else
16978         ld_shlibs_GCJ=no
16979       fi
16980       ;;
16981
16982     linux*)
16983       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16984         tmp_addflag=
16985         case $cc_basename,$host_cpu in
16986         pgcc*)                          # Portland Group C compiler
16987           whole_archive_flag_spec_GCJ=
16988           ;;
16989         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16990           whole_archive_flag_spec_GCJ=
16991           tmp_addflag=' -fpic -Mnomain' ;;
16992         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16993           tmp_addflag=' -i_dynamic' ;;
16994         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16995           tmp_addflag=' -i_dynamic -nofor_main' ;;
16996         ifc* | ifort*)                  # Intel Fortran compiler
16997           tmp_addflag=' -nofor_main' ;;
16998         esac
16999         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17000
17001         if test $supports_anon_versioning = yes; then
17002           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17003   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17004   $echo "local: *; };" >> $output_objdir/$libname.ver~
17005           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17006         fi
17007       else
17008         ld_shlibs_GCJ=no
17009       fi
17010       ;;
17011
17012     netbsd*)
17013       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17015         wlarc=
17016       else
17017         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17019       fi
17020       ;;
17021
17022     solaris* | sysv5*)
17023       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17024         ld_shlibs_GCJ=no
17025         cat <<EOF 1>&2
17026
17027 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17028 *** create shared libraries on Solaris systems.  Therefore, libtool
17029 *** is disabling shared libraries support.  We urge you to upgrade GNU
17030 *** binutils to release 2.9.1 or newer.  Another option is to modify
17031 *** your PATH or compiler configuration so that the native linker is
17032 *** used, and then restart.
17033
17034 EOF
17035       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17036         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17037         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17038       else
17039         ld_shlibs_GCJ=no
17040       fi
17041       ;;
17042
17043     sunos4*)
17044       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17045       wlarc=
17046       hardcode_direct_GCJ=yes
17047       hardcode_shlibpath_var_GCJ=no
17048       ;;
17049
17050     *)
17051       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17052         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17053         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17054       else
17055         ld_shlibs_GCJ=no
17056       fi
17057       ;;
17058     esac
17059
17060     if test "$ld_shlibs_GCJ" = no; then
17061       runpath_var=
17062       hardcode_libdir_flag_spec_GCJ=
17063       export_dynamic_flag_spec_GCJ=
17064       whole_archive_flag_spec_GCJ=
17065     fi
17066   else
17067     # PORTME fill in a description of your system's linker (not GNU ld)
17068     case $host_os in
17069     aix3*)
17070       allow_undefined_flag_GCJ=unsupported
17071       always_export_symbols_GCJ=yes
17072       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'
17073       # Note: this linker hardcodes the directories in LIBPATH if there
17074       # are no directories specified by -L.
17075       hardcode_minus_L_GCJ=yes
17076       if test "$GCC" = yes && test -z "$link_static_flag"; then
17077         # Neither direct hardcoding nor static linking is supported with a
17078         # broken collect2.
17079         hardcode_direct_GCJ=unsupported
17080       fi
17081       ;;
17082
17083     aix4* | aix5*)
17084       if test "$host_cpu" = ia64; then
17085         # On IA64, the linker does run time linking by default, so we don't
17086         # have to do anything special.
17087         aix_use_runtimelinking=no
17088         exp_sym_flag='-Bexport'
17089         no_entry_flag=""
17090       else
17091         # If we're using GNU nm, then we don't want the "-C" option.
17092         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17093         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17094           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'
17095         else
17096           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'
17097         fi
17098         aix_use_runtimelinking=no
17099
17100         # Test if we are trying to use run time linking or normal
17101         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17102         # need to do runtime linking.
17103         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17104           for ld_flag in $LDFLAGS; do
17105           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17106             aix_use_runtimelinking=yes
17107             break
17108           fi
17109           done
17110         esac
17111
17112         exp_sym_flag='-bexport'
17113         no_entry_flag='-bnoentry'
17114       fi
17115
17116       # When large executables or shared objects are built, AIX ld can
17117       # have problems creating the table of contents.  If linking a library
17118       # or program results in "error TOC overflow" add -mminimal-toc to
17119       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17120       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17121
17122       archive_cmds_GCJ=''
17123       hardcode_direct_GCJ=yes
17124       hardcode_libdir_separator_GCJ=':'
17125       link_all_deplibs_GCJ=yes
17126
17127       if test "$GCC" = yes; then
17128         case $host_os in aix4.[012]|aix4.[012].*)
17129         # We only want to do this on AIX 4.2 and lower, the check
17130         # below for broken collect2 doesn't work under 4.3+
17131           collect2name=`${CC} -print-prog-name=collect2`
17132           if test -f "$collect2name" && \
17133            strings "$collect2name" | grep resolve_lib_name >/dev/null
17134           then
17135           # We have reworked collect2
17136           hardcode_direct_GCJ=yes
17137           else
17138           # We have old collect2
17139           hardcode_direct_GCJ=unsupported
17140           # It fails to find uninstalled libraries when the uninstalled
17141           # path is not listed in the libpath.  Setting hardcode_minus_L
17142           # to unsupported forces relinking
17143           hardcode_minus_L_GCJ=yes
17144           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145           hardcode_libdir_separator_GCJ=
17146           fi
17147         esac
17148         shared_flag='-shared'
17149         if test "$aix_use_runtimelinking" = yes; then
17150           shared_flag="$shared_flag "'${wl}-G'
17151         fi
17152       else
17153         # not using gcc
17154         if test "$host_cpu" = ia64; then
17155         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17156         # chokes on -Wl,-G. The following line is correct:
17157           shared_flag='-G'
17158         else
17159         if test "$aix_use_runtimelinking" = yes; then
17160             shared_flag='${wl}-G'
17161           else
17162             shared_flag='${wl}-bM:SRE'
17163         fi
17164         fi
17165       fi
17166
17167       # It seems that -bexpall does not export symbols beginning with
17168       # underscore (_), so it is better to generate a list of symbols to export.
17169       always_export_symbols_GCJ=yes
17170       if test "$aix_use_runtimelinking" = yes; then
17171         # Warning - without using the other runtime loading flags (-brtl),
17172         # -berok will link without error, but may produce a broken library.
17173         allow_undefined_flag_GCJ='-berok'
17174        # Determine the default libpath from the value encoded in an empty executable.
17175        cat >conftest.$ac_ext <<_ACEOF
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181
17182 int
17183 main ()
17184 {
17185
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192   (eval $ac_link) 2>conftest.er1
17193   ac_status=$?
17194   grep -v '^ *+' conftest.er1 >conftest.err
17195   rm -f conftest.er1
17196   cat conftest.err >&5
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); } &&
17199          { ac_try='test -z "$ac_c_werror_flag"
17200                          || test ! -s conftest.err'
17201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202   (eval $ac_try) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; } &&
17206          { ac_try='test -s conftest$ac_exeext'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; }; then
17212
17213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17214 }'`
17215 # Check for a 64-bit object if we didn't find anything.
17216 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; }
17217 }'`; fi
17218 else
17219   echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222 fi
17223 rm -f conftest.err conftest.$ac_objext \
17224       conftest$ac_exeext conftest.$ac_ext
17225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17226
17227        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17228         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17229        else
17230         if test "$host_cpu" = ia64; then
17231           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17232           allow_undefined_flag_GCJ="-z nodefs"
17233           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17234         else
17235          # Determine the default libpath from the value encoded in an empty executable.
17236          cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242
17243 int
17244 main ()
17245 {
17246
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253   (eval $ac_link) 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } &&
17260          { ac_try='test -z "$ac_c_werror_flag"
17261                          || test ! -s conftest.err'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; } &&
17267          { ac_try='test -s conftest$ac_exeext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273
17274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17275 }'`
17276 # Check for a 64-bit object if we didn't find anything.
17277 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; }
17278 }'`; fi
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 fi
17284 rm -f conftest.err conftest.$ac_objext \
17285       conftest$ac_exeext conftest.$ac_ext
17286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17287
17288          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17289           # Warning - without using the other run time loading flags,
17290           # -berok will link without error, but may produce a broken library.
17291           no_undefined_flag_GCJ=' ${wl}-bernotok'
17292           allow_undefined_flag_GCJ=' ${wl}-berok'
17293           # -bexpall does not export symbols beginning with underscore (_)
17294           always_export_symbols_GCJ=yes
17295           # Exported symbols can be pulled into shared objects from archives
17296           whole_archive_flag_spec_GCJ=' '
17297           archive_cmds_need_lc_GCJ=yes
17298           # This is similar to how AIX traditionally builds it's shared libraries.
17299           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17300         fi
17301       fi
17302       ;;
17303
17304     amigaos*)
17305       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)'
17306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17307       hardcode_minus_L_GCJ=yes
17308       # see comment about different semantics on the GNU ld section
17309       ld_shlibs_GCJ=no
17310       ;;
17311
17312     bsdi[45]*)
17313       export_dynamic_flag_spec_GCJ=-rdynamic
17314       ;;
17315
17316     cygwin* | mingw* | pw32*)
17317       # When not using gcc, we currently assume that we are using
17318       # Microsoft Visual C++.
17319       # hardcode_libdir_flag_spec is actually meaningless, as there is
17320       # no search path for DLLs.
17321       hardcode_libdir_flag_spec_GCJ=' '
17322       allow_undefined_flag_GCJ=unsupported
17323       # Tell ltmain to make .lib files, not .a files.
17324       libext=lib
17325       # Tell ltmain to make .dll files, not .so files.
17326       shrext_cmds=".dll"
17327       # FIXME: Setting linknames here is a bad hack.
17328       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17329       # The linker will automatically build a .lib file if we build a DLL.
17330       old_archive_From_new_cmds_GCJ='true'
17331       # FIXME: Should let the user specify the lib program.
17332       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17333       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17334       enable_shared_with_static_runtimes_GCJ=yes
17335       ;;
17336
17337     darwin* | rhapsody*)
17338       case "$host_os" in
17339         rhapsody* | darwin1.[012])
17340          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17341          ;;
17342        *) # Darwin 1.3 on
17343          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17344            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17345          else
17346            case ${MACOSX_DEPLOYMENT_TARGET} in
17347              10.[012])
17348                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17349                ;;
17350              10.*)
17351                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17352                ;;
17353            esac
17354          fi
17355          ;;
17356       esac
17357       archive_cmds_need_lc_GCJ=no
17358       hardcode_direct_GCJ=no
17359       hardcode_automatic_GCJ=yes
17360       hardcode_shlibpath_var_GCJ=unsupported
17361       whole_archive_flag_spec_GCJ=''
17362       link_all_deplibs_GCJ=yes
17363     if test "$GCC" = yes ; then
17364         output_verbose_link_cmd='echo'
17365         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17366       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17367       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17368       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}'
17369       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}'
17370     else
17371       case $cc_basename in
17372         xlc*)
17373          output_verbose_link_cmd='echo'
17374          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17375          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17376           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17377          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}'
17378           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}'
17379           ;;
17380        *)
17381          ld_shlibs_GCJ=no
17382           ;;
17383       esac
17384     fi
17385       ;;
17386
17387     dgux*)
17388       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17390       hardcode_shlibpath_var_GCJ=no
17391       ;;
17392
17393     freebsd1*)
17394       ld_shlibs_GCJ=no
17395       ;;
17396
17397     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17398     # support.  Future versions do this automatically, but an explicit c++rt0.o
17399     # does not break anything, and helps significantly (at the cost of a little
17400     # extra space).
17401     freebsd2.2*)
17402       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17403       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17404       hardcode_direct_GCJ=yes
17405       hardcode_shlibpath_var_GCJ=no
17406       ;;
17407
17408     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17409     freebsd2*)
17410       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17411       hardcode_direct_GCJ=yes
17412       hardcode_minus_L_GCJ=yes
17413       hardcode_shlibpath_var_GCJ=no
17414       ;;
17415
17416     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17417     freebsd* | kfreebsd*-gnu | dragonfly*)
17418       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17419       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17420       hardcode_direct_GCJ=yes
17421       hardcode_shlibpath_var_GCJ=no
17422       ;;
17423
17424     hpux9*)
17425       if test "$GCC" = yes; then
17426         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'
17427       else
17428         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'
17429       fi
17430       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17431       hardcode_libdir_separator_GCJ=:
17432       hardcode_direct_GCJ=yes
17433
17434       # hardcode_minus_L: Not really in the search PATH,
17435       # but as the default location of the library.
17436       hardcode_minus_L_GCJ=yes
17437       export_dynamic_flag_spec_GCJ='${wl}-E'
17438       ;;
17439
17440     hpux10* | hpux11*)
17441       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17442         case "$host_cpu" in
17443         hppa*64*|ia64*)
17444           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445           ;;
17446         *)
17447           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17448           ;;
17449         esac
17450       else
17451         case "$host_cpu" in
17452         hppa*64*|ia64*)
17453           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17454           ;;
17455         *)
17456           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17457           ;;
17458         esac
17459       fi
17460       if test "$with_gnu_ld" = no; then
17461         case "$host_cpu" in
17462         hppa*64*)
17463           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17464           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17465           hardcode_libdir_separator_GCJ=:
17466           hardcode_direct_GCJ=no
17467           hardcode_shlibpath_var_GCJ=no
17468           ;;
17469         ia64*)
17470           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17471           hardcode_direct_GCJ=no
17472           hardcode_shlibpath_var_GCJ=no
17473
17474           # hardcode_minus_L: Not really in the search PATH,
17475           # but as the default location of the library.
17476           hardcode_minus_L_GCJ=yes
17477           ;;
17478         *)
17479           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17480           hardcode_libdir_separator_GCJ=:
17481           hardcode_direct_GCJ=yes
17482           export_dynamic_flag_spec_GCJ='${wl}-E'
17483
17484           # hardcode_minus_L: Not really in the search PATH,
17485           # but as the default location of the library.
17486           hardcode_minus_L_GCJ=yes
17487           ;;
17488         esac
17489       fi
17490       ;;
17491
17492     irix5* | irix6* | nonstopux*)
17493       if test "$GCC" = yes; then
17494         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'
17495       else
17496         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'
17497         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17498       fi
17499       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17500       hardcode_libdir_separator_GCJ=:
17501       link_all_deplibs_GCJ=yes
17502       ;;
17503
17504     netbsd*)
17505       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17506         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17507       else
17508         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17509       fi
17510       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17511       hardcode_direct_GCJ=yes
17512       hardcode_shlibpath_var_GCJ=no
17513       ;;
17514
17515     newsos6)
17516       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17517       hardcode_direct_GCJ=yes
17518       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17519       hardcode_libdir_separator_GCJ=:
17520       hardcode_shlibpath_var_GCJ=no
17521       ;;
17522
17523     openbsd*)
17524       hardcode_direct_GCJ=yes
17525       hardcode_shlibpath_var_GCJ=no
17526       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17527         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17528         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17529         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17530         export_dynamic_flag_spec_GCJ='${wl}-E'
17531       else
17532        case $host_os in
17533          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17534            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17535            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17536            ;;
17537          *)
17538            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17539            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17540            ;;
17541        esac
17542       fi
17543       ;;
17544
17545     os2*)
17546       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17547       hardcode_minus_L_GCJ=yes
17548       allow_undefined_flag_GCJ=unsupported
17549       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'
17550       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17551       ;;
17552
17553     osf3*)
17554       if test "$GCC" = yes; then
17555         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17556         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'
17557       else
17558         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17559         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'
17560       fi
17561       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17562       hardcode_libdir_separator_GCJ=:
17563       ;;
17564
17565     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17566       if test "$GCC" = yes; then
17567         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17568         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'
17569         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17570       else
17571         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17572         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'
17573         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~
17574         $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'
17575
17576         # Both c and cxx compiler support -rpath directly
17577         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17578       fi
17579       hardcode_libdir_separator_GCJ=:
17580       ;;
17581
17582     sco3.2v5*)
17583       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17584       hardcode_shlibpath_var_GCJ=no
17585       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17586       runpath_var=LD_RUN_PATH
17587       hardcode_runpath_var=yes
17588       ;;
17589
17590     solaris*)
17591       no_undefined_flag_GCJ=' -z text'
17592       if test "$GCC" = yes; then
17593         wlarc='${wl}'
17594         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17595         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17596           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17597       else
17598         wlarc=''
17599         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17601         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17602       fi
17603       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17604       hardcode_shlibpath_var_GCJ=no
17605       case $host_os in
17606       solaris2.[0-5] | solaris2.[0-5].*) ;;
17607       *)
17608         # The compiler driver will combine linker options so we
17609         # cannot just pass the convience library names through
17610         # without $wl, iff we do not link with $LD.
17611         # Luckily, gcc supports the same syntax we need for Sun Studio.
17612         # Supported since Solaris 2.6 (maybe 2.5.1?)
17613         case $wlarc in
17614         '')
17615           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17616         *)
17617           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' ;;
17618         esac ;;
17619       esac
17620       link_all_deplibs_GCJ=yes
17621       ;;
17622
17623     sunos4*)
17624       if test "x$host_vendor" = xsequent; then
17625         # Use $CC to link under sequent, because it throws in some extra .o
17626         # files that make .init and .fini sections work.
17627         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17628       else
17629         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17630       fi
17631       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632       hardcode_direct_GCJ=yes
17633       hardcode_minus_L_GCJ=yes
17634       hardcode_shlibpath_var_GCJ=no
17635       ;;
17636
17637     sysv4)
17638       case $host_vendor in
17639         sni)
17640           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17641           hardcode_direct_GCJ=yes # is this really true???
17642         ;;
17643         siemens)
17644           ## LD is ld it makes a PLAMLIB
17645           ## CC just makes a GrossModule.
17646           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17647           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17648           hardcode_direct_GCJ=no
17649         ;;
17650         motorola)
17651           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17652           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17653         ;;
17654       esac
17655       runpath_var='LD_RUN_PATH'
17656       hardcode_shlibpath_var_GCJ=no
17657       ;;
17658
17659     sysv4.3*)
17660       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17661       hardcode_shlibpath_var_GCJ=no
17662       export_dynamic_flag_spec_GCJ='-Bexport'
17663       ;;
17664
17665     sysv4*MP*)
17666       if test -d /usr/nec; then
17667         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668         hardcode_shlibpath_var_GCJ=no
17669         runpath_var=LD_RUN_PATH
17670         hardcode_runpath_var=yes
17671         ld_shlibs_GCJ=yes
17672       fi
17673       ;;
17674
17675     sysv4.2uw2*)
17676       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17677       hardcode_direct_GCJ=yes
17678       hardcode_minus_L_GCJ=no
17679       hardcode_shlibpath_var_GCJ=no
17680       hardcode_runpath_var=yes
17681       runpath_var=LD_RUN_PATH
17682       ;;
17683
17684    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17685       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17686       if test "$GCC" = yes; then
17687         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17688       else
17689         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17690       fi
17691       runpath_var='LD_RUN_PATH'
17692       hardcode_shlibpath_var_GCJ=no
17693       ;;
17694
17695     sysv5*)
17696       no_undefined_flag_GCJ=' -z text'
17697       # $CC -shared without GNU ld will not create a library from C++
17698       # object files and a static libstdc++, better avoid it by now
17699       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17700       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17701                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17702       hardcode_libdir_flag_spec_GCJ=
17703       hardcode_shlibpath_var_GCJ=no
17704       runpath_var='LD_RUN_PATH'
17705       ;;
17706
17707     uts4*)
17708       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17709       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710       hardcode_shlibpath_var_GCJ=no
17711       ;;
17712
17713     *)
17714       ld_shlibs_GCJ=no
17715       ;;
17716     esac
17717   fi
17718
17719 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17720 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17721 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17722
17723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17724 if test "$GCC" = yes; then
17725   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17726 fi
17727
17728 #
17729 # Do we need to explicitly link libc?
17730 #
17731 case "x$archive_cmds_need_lc_GCJ" in
17732 x|xyes)
17733   # Assume -lc should be added
17734   archive_cmds_need_lc_GCJ=yes
17735
17736   if test "$enable_shared" = yes && test "$GCC" = yes; then
17737     case $archive_cmds_GCJ in
17738     *'~'*)
17739       # FIXME: we may have to deal with multi-command sequences.
17740       ;;
17741     '$CC '*)
17742       # Test whether the compiler implicitly links with -lc since on some
17743       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17744       # to ld, don't add -lc before -lgcc.
17745       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17747       $rm conftest*
17748       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17749
17750       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751   (eval $ac_compile) 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } 2>conftest.err; then
17755         soname=conftest
17756         lib=conftest
17757         libobjs=conftest.$ac_objext
17758         deplibs=
17759         wl=$lt_prog_compiler_wl_GCJ
17760         compiler_flags=-v
17761         linker_flags=-v
17762         verstring=
17763         output_objdir=.
17764         libname=conftest
17765         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17766         allow_undefined_flag_GCJ=
17767         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17768   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }
17772         then
17773           archive_cmds_need_lc_GCJ=no
17774         else
17775           archive_cmds_need_lc_GCJ=yes
17776         fi
17777         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17778       else
17779         cat conftest.err 1>&5
17780       fi
17781       $rm conftest*
17782       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17783 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17784       ;;
17785     esac
17786   fi
17787   ;;
17788 esac
17789
17790 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17791 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17792 library_names_spec=
17793 libname_spec='lib$name'
17794 soname_spec=
17795 shrext_cmds=".so"
17796 postinstall_cmds=
17797 postuninstall_cmds=
17798 finish_cmds=
17799 finish_eval=
17800 shlibpath_var=
17801 shlibpath_overrides_runpath=unknown
17802 version_type=none
17803 dynamic_linker="$host_os ld.so"
17804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17805 if test "$GCC" = yes; then
17806   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17807   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17808     # if the path contains ";" then we assume it to be the separator
17809     # otherwise default to the standard path separator (i.e. ":") - it is
17810     # assumed that no part of a normal pathname contains ";" but that should
17811     # okay in the real world where ";" in dirpaths is itself problematic.
17812     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17813   else
17814     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17815   fi
17816 else
17817   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17818 fi
17819 need_lib_prefix=unknown
17820 hardcode_into_libs=no
17821
17822 # when you set need_version to no, make sure it does not cause -set_version
17823 # flags to be left without arguments
17824 need_version=unknown
17825
17826 case $host_os in
17827 aix3*)
17828   version_type=linux
17829   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17830   shlibpath_var=LIBPATH
17831
17832   # AIX 3 has no versioning support, so we append a major version to the name.
17833   soname_spec='${libname}${release}${shared_ext}$major'
17834   ;;
17835
17836 aix4* | aix5*)
17837   version_type=linux
17838   need_lib_prefix=no
17839   need_version=no
17840   hardcode_into_libs=yes
17841   if test "$host_cpu" = ia64; then
17842     # AIX 5 supports IA64
17843     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17844     shlibpath_var=LD_LIBRARY_PATH
17845   else
17846     # With GCC up to 2.95.x, collect2 would create an import file
17847     # for dependence libraries.  The import file would start with
17848     # the line `#! .'.  This would cause the generated library to
17849     # depend on `.', always an invalid library.  This was fixed in
17850     # development snapshots of GCC prior to 3.0.
17851     case $host_os in
17852       aix4 | aix4.[01] | aix4.[01].*)
17853       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17854            echo ' yes '
17855            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17856         :
17857       else
17858         can_build_shared=no
17859       fi
17860       ;;
17861     esac
17862     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17863     # soname into executable. Probably we can add versioning support to
17864     # collect2, so additional links can be useful in future.
17865     if test "$aix_use_runtimelinking" = yes; then
17866       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17867       # instead of lib<name>.a to let people know that these are not
17868       # typical AIX shared libraries.
17869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870     else
17871       # We preserve .a as extension for shared libraries through AIX4.2
17872       # and later when we are not doing run time linking.
17873       library_names_spec='${libname}${release}.a $libname.a'
17874       soname_spec='${libname}${release}${shared_ext}$major'
17875     fi
17876     shlibpath_var=LIBPATH
17877   fi
17878   ;;
17879
17880 amigaos*)
17881   library_names_spec='$libname.ixlibrary $libname.a'
17882   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17883   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'
17884   ;;
17885
17886 beos*)
17887   library_names_spec='${libname}${shared_ext}'
17888   dynamic_linker="$host_os ld.so"
17889   shlibpath_var=LIBRARY_PATH
17890   ;;
17891
17892 bsdi[45]*)
17893   version_type=linux
17894   need_version=no
17895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896   soname_spec='${libname}${release}${shared_ext}$major'
17897   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17898   shlibpath_var=LD_LIBRARY_PATH
17899   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17900   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17901   # the default ld.so.conf also contains /usr/contrib/lib and
17902   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17903   # libtool to hard-code these into programs
17904   ;;
17905
17906 cygwin* | mingw* | pw32*)
17907   version_type=windows
17908   shrext_cmds=".dll"
17909   need_version=no
17910   need_lib_prefix=no
17911
17912   case $GCC,$host_os in
17913   yes,cygwin* | yes,mingw* | yes,pw32*)
17914     library_names_spec='$libname.dll.a'
17915     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17916     postinstall_cmds='base_file=`basename \${file}`~
17917       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17918       dldir=$destdir/`dirname \$dlpath`~
17919       test -d \$dldir || mkdir -p \$dldir~
17920       $install_prog $dir/$dlname \$dldir/$dlname'
17921     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17922       dlpath=$dir/\$dldll~
17923        $rm \$dlpath'
17924     shlibpath_overrides_runpath=yes
17925
17926     case $host_os in
17927     cygwin*)
17928       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17929       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17930       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17931       ;;
17932     mingw*)
17933       # MinGW DLLs use traditional 'lib' prefix
17934       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17935       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17936       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17937         # It is most probably a Windows format PATH printed by
17938         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17939         # path with ; separators, and with drive letters. We can handle the
17940         # drive letters (cygwin fileutils understands them), so leave them,
17941         # especially as we might pass files found there to a mingw objdump,
17942         # which wouldn't understand a cygwinified path. Ahh.
17943         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17944       else
17945         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17946       fi
17947       ;;
17948     pw32*)
17949       # pw32 DLLs use 'pw' prefix rather than 'lib'
17950       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951       ;;
17952     esac
17953     ;;
17954
17955   *)
17956     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17957     ;;
17958   esac
17959   dynamic_linker='Win32 ld.exe'
17960   # FIXME: first we should search . and the directory the executable is in
17961   shlibpath_var=PATH
17962   ;;
17963
17964 darwin* | rhapsody*)
17965   dynamic_linker="$host_os dyld"
17966   version_type=darwin
17967   need_lib_prefix=no
17968   need_version=no
17969   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17970   soname_spec='${libname}${release}${major}$shared_ext'
17971   shlibpath_overrides_runpath=yes
17972   shlibpath_var=DYLD_LIBRARY_PATH
17973   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17974   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17975   if test "$GCC" = yes; then
17976     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"`
17977   else
17978     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17979   fi
17980   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17981   ;;
17982
17983 dgux*)
17984   version_type=linux
17985   need_lib_prefix=no
17986   need_version=no
17987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17988   soname_spec='${libname}${release}${shared_ext}$major'
17989   shlibpath_var=LD_LIBRARY_PATH
17990   ;;
17991
17992 freebsd1*)
17993   dynamic_linker=no
17994   ;;
17995
17996 kfreebsd*-gnu)
17997   version_type=linux
17998   need_lib_prefix=no
17999   need_version=no
18000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18001   soname_spec='${libname}${release}${shared_ext}$major'
18002   shlibpath_var=LD_LIBRARY_PATH
18003   shlibpath_overrides_runpath=no
18004   hardcode_into_libs=yes
18005   dynamic_linker='GNU ld.so'
18006   ;;
18007
18008 freebsd* | dragonfly*)
18009   # DragonFly does not have aout.  When/if they implement a new
18010   # versioning mechanism, adjust this.
18011   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18012   version_type=freebsd-$objformat
18013   case $version_type in
18014     freebsd-elf*)
18015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18016       need_version=no
18017       need_lib_prefix=no
18018       ;;
18019     freebsd-*)
18020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18021       need_version=yes
18022       ;;
18023   esac
18024   shlibpath_var=LD_LIBRARY_PATH
18025   case $host_os in
18026   freebsd2*)
18027     shlibpath_overrides_runpath=yes
18028     ;;
18029   freebsd3.[01]* | freebsdelf3.[01]*)
18030     shlibpath_overrides_runpath=yes
18031     hardcode_into_libs=yes
18032     ;;
18033   *) # from 3.2 on
18034     shlibpath_overrides_runpath=no
18035     hardcode_into_libs=yes
18036     ;;
18037   esac
18038   ;;
18039
18040 gnu*)
18041   version_type=linux
18042   need_lib_prefix=no
18043   need_version=no
18044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18045   soname_spec='${libname}${release}${shared_ext}$major'
18046   shlibpath_var=LD_LIBRARY_PATH
18047   hardcode_into_libs=yes
18048   ;;
18049
18050 hpux9* | hpux10* | hpux11*)
18051   # Give a soname corresponding to the major version so that dld.sl refuses to
18052   # link against other versions.
18053   version_type=sunos
18054   need_lib_prefix=no
18055   need_version=no
18056   case "$host_cpu" in
18057   ia64*)
18058     shrext_cmds='.so'
18059     hardcode_into_libs=yes
18060     dynamic_linker="$host_os dld.so"
18061     shlibpath_var=LD_LIBRARY_PATH
18062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064     soname_spec='${libname}${release}${shared_ext}$major'
18065     if test "X$HPUX_IA64_MODE" = X32; then
18066       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18067     else
18068       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18069     fi
18070     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18071     ;;
18072    hppa*64*)
18073      shrext_cmds='.sl'
18074      hardcode_into_libs=yes
18075      dynamic_linker="$host_os dld.sl"
18076      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18077      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18078      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079      soname_spec='${libname}${release}${shared_ext}$major'
18080      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18081      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18082      ;;
18083    *)
18084     shrext_cmds='.sl'
18085     dynamic_linker="$host_os dld.sl"
18086     shlibpath_var=SHLIB_PATH
18087     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18089     soname_spec='${libname}${release}${shared_ext}$major'
18090     ;;
18091   esac
18092   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18093   postinstall_cmds='chmod 555 $lib'
18094   ;;
18095
18096 irix5* | irix6* | nonstopux*)
18097   case $host_os in
18098     nonstopux*) version_type=nonstopux ;;
18099     *)
18100         if test "$lt_cv_prog_gnu_ld" = yes; then
18101                 version_type=linux
18102         else
18103                 version_type=irix
18104         fi ;;
18105   esac
18106   need_lib_prefix=no
18107   need_version=no
18108   soname_spec='${libname}${release}${shared_ext}$major'
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18110   case $host_os in
18111   irix5* | nonstopux*)
18112     libsuff= shlibsuff=
18113     ;;
18114   *)
18115     case $LD in # libtool.m4 will add one of these switches to LD
18116     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18117       libsuff= shlibsuff= libmagic=32-bit;;
18118     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18119       libsuff=32 shlibsuff=N32 libmagic=N32;;
18120     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18121       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18122     *) libsuff= shlibsuff= libmagic=never-match;;
18123     esac
18124     ;;
18125   esac
18126   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18127   shlibpath_overrides_runpath=no
18128   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18129   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18130   hardcode_into_libs=yes
18131   ;;
18132
18133 # No shared lib support for Linux oldld, aout, or coff.
18134 linux*oldld* | linux*aout* | linux*coff*)
18135   dynamic_linker=no
18136   ;;
18137
18138 # This must be Linux ELF.
18139 linux*)
18140   version_type=linux
18141   need_lib_prefix=no
18142   need_version=no
18143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144   soname_spec='${libname}${release}${shared_ext}$major'
18145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18146   shlibpath_var=LD_LIBRARY_PATH
18147   shlibpath_overrides_runpath=no
18148   # This implies no fast_install, which is unacceptable.
18149   # Some rework will be needed to allow for fast_install
18150   # before this can be enabled.
18151   hardcode_into_libs=yes
18152
18153   # find out which ABI we are using
18154   libsuff=
18155   case "$host_cpu" in
18156   x86_64*|s390x*|powerpc64*)
18157     echo '#line 18157 "configure"' > conftest.$ac_ext
18158     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159   (eval $ac_compile) 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; then
18163       case `/usr/bin/file conftest.$ac_objext` in
18164       *64-bit*)
18165         libsuff=64
18166         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18167         ;;
18168       esac
18169     fi
18170     rm -rf conftest*
18171     ;;
18172   esac
18173
18174   # Append ld.so.conf contents to the search path
18175   if test -f /etc/ld.so.conf; then
18176     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18177     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18178   fi
18179
18180   # We used to test for /lib/ld.so.1 and disable shared libraries on
18181   # powerpc, because MkLinux only supported shared libraries with the
18182   # GNU dynamic linker.  Since this was broken with cross compilers,
18183   # most powerpc-linux boxes support dynamic linking these days and
18184   # people can always --disable-shared, the test was removed, and we
18185   # assume the GNU/Linux dynamic linker is in use.
18186   dynamic_linker='GNU/Linux ld.so'
18187   ;;
18188
18189 knetbsd*-gnu)
18190   version_type=linux
18191   need_lib_prefix=no
18192   need_version=no
18193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18194   soname_spec='${libname}${release}${shared_ext}$major'
18195   shlibpath_var=LD_LIBRARY_PATH
18196   shlibpath_overrides_runpath=no
18197   hardcode_into_libs=yes
18198   dynamic_linker='GNU ld.so'
18199   ;;
18200
18201 netbsd*)
18202   version_type=sunos
18203   need_lib_prefix=no
18204   need_version=no
18205   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18208     dynamic_linker='NetBSD (a.out) ld.so'
18209   else
18210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18211     soname_spec='${libname}${release}${shared_ext}$major'
18212     dynamic_linker='NetBSD ld.elf_so'
18213   fi
18214   shlibpath_var=LD_LIBRARY_PATH
18215   shlibpath_overrides_runpath=yes
18216   hardcode_into_libs=yes
18217   ;;
18218
18219 newsos6)
18220   version_type=linux
18221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222   shlibpath_var=LD_LIBRARY_PATH
18223   shlibpath_overrides_runpath=yes
18224   ;;
18225
18226 nto-qnx*)
18227   version_type=linux
18228   need_lib_prefix=no
18229   need_version=no
18230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231   soname_spec='${libname}${release}${shared_ext}$major'
18232   shlibpath_var=LD_LIBRARY_PATH
18233   shlibpath_overrides_runpath=yes
18234   ;;
18235
18236 openbsd*)
18237   version_type=sunos
18238   need_lib_prefix=no
18239   need_version=no
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18242   shlibpath_var=LD_LIBRARY_PATH
18243   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18244     case $host_os in
18245       openbsd2.[89] | openbsd2.[89].*)
18246         shlibpath_overrides_runpath=no
18247         ;;
18248       *)
18249         shlibpath_overrides_runpath=yes
18250         ;;
18251       esac
18252   else
18253     shlibpath_overrides_runpath=yes
18254   fi
18255   ;;
18256
18257 os2*)
18258   libname_spec='$name'
18259   shrext_cmds=".dll"
18260   need_lib_prefix=no
18261   library_names_spec='$libname${shared_ext} $libname.a'
18262   dynamic_linker='OS/2 ld.exe'
18263   shlibpath_var=LIBPATH
18264   ;;
18265
18266 osf3* | osf4* | osf5*)
18267   version_type=osf
18268   need_lib_prefix=no
18269   need_version=no
18270   soname_spec='${libname}${release}${shared_ext}$major'
18271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272   shlibpath_var=LD_LIBRARY_PATH
18273   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18274   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18275   ;;
18276
18277 sco3.2v5*)
18278   version_type=osf
18279   soname_spec='${libname}${release}${shared_ext}$major'
18280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281   shlibpath_var=LD_LIBRARY_PATH
18282   ;;
18283
18284 solaris*)
18285   version_type=linux
18286   need_lib_prefix=no
18287   need_version=no
18288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289   soname_spec='${libname}${release}${shared_ext}$major'
18290   shlibpath_var=LD_LIBRARY_PATH
18291   shlibpath_overrides_runpath=yes
18292   hardcode_into_libs=yes
18293   # ldd complains unless libraries are executable
18294   postinstall_cmds='chmod +x $lib'
18295   ;;
18296
18297 sunos4*)
18298   version_type=sunos
18299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301   shlibpath_var=LD_LIBRARY_PATH
18302   shlibpath_overrides_runpath=yes
18303   if test "$with_gnu_ld" = yes; then
18304     need_lib_prefix=no
18305   fi
18306   need_version=yes
18307   ;;
18308
18309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18310   version_type=linux
18311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312   soname_spec='${libname}${release}${shared_ext}$major'
18313   shlibpath_var=LD_LIBRARY_PATH
18314   case $host_vendor in
18315     sni)
18316       shlibpath_overrides_runpath=no
18317       need_lib_prefix=no
18318       export_dynamic_flag_spec='${wl}-Blargedynsym'
18319       runpath_var=LD_RUN_PATH
18320       ;;
18321     siemens)
18322       need_lib_prefix=no
18323       ;;
18324     motorola)
18325       need_lib_prefix=no
18326       need_version=no
18327       shlibpath_overrides_runpath=no
18328       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18329       ;;
18330   esac
18331   ;;
18332
18333 sysv4*MP*)
18334   if test -d /usr/nec ;then
18335     version_type=linux
18336     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337     soname_spec='$libname${shared_ext}.$major'
18338     shlibpath_var=LD_LIBRARY_PATH
18339   fi
18340   ;;
18341
18342 uts4*)
18343   version_type=linux
18344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345   soname_spec='${libname}${release}${shared_ext}$major'
18346   shlibpath_var=LD_LIBRARY_PATH
18347   ;;
18348
18349 *)
18350   dynamic_linker=no
18351   ;;
18352 esac
18353 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18354 echo "${ECHO_T}$dynamic_linker" >&6
18355 test "$dynamic_linker" = no && can_build_shared=no
18356
18357 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18359 hardcode_action_GCJ=
18360 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18361    test -n "$runpath_var_GCJ" || \
18362    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18363
18364   # We can hardcode non-existant directories.
18365   if test "$hardcode_direct_GCJ" != no &&
18366      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18367      # have to relink, otherwise we might link with an installed library
18368      # when we should be linking with a yet-to-be-installed one
18369      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18370      test "$hardcode_minus_L_GCJ" != no; then
18371     # Linking always hardcodes the temporary library directory.
18372     hardcode_action_GCJ=relink
18373   else
18374     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18375     hardcode_action_GCJ=immediate
18376   fi
18377 else
18378   # We cannot hardcode anything, or else we can only hardcode existing
18379   # directories.
18380   hardcode_action_GCJ=unsupported
18381 fi
18382 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18383 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18384
18385 if test "$hardcode_action_GCJ" = relink; then
18386   # Fast installation is not supported
18387   enable_fast_install=no
18388 elif test "$shlibpath_overrides_runpath" = yes ||
18389      test "$enable_shared" = no; then
18390   # Fast installation is not necessary
18391   enable_fast_install=needless
18392 fi
18393
18394 striplib=
18395 old_striplib=
18396 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18397 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18398 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18399   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18400   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18401   echo "$as_me:$LINENO: result: yes" >&5
18402 echo "${ECHO_T}yes" >&6
18403 else
18404 # FIXME - insert some real tests, host_os isn't really good enough
18405   case $host_os in
18406    darwin*)
18407        if test -n "$STRIP" ; then
18408          striplib="$STRIP -x"
18409          echo "$as_me:$LINENO: result: yes" >&5
18410 echo "${ECHO_T}yes" >&6
18411        else
18412   echo "$as_me:$LINENO: result: no" >&5
18413 echo "${ECHO_T}no" >&6
18414 fi
18415        ;;
18416    *)
18417   echo "$as_me:$LINENO: result: no" >&5
18418 echo "${ECHO_T}no" >&6
18419     ;;
18420   esac
18421 fi
18422
18423 if test "x$enable_dlopen" != xyes; then
18424   enable_dlopen=unknown
18425   enable_dlopen_self=unknown
18426   enable_dlopen_self_static=unknown
18427 else
18428   lt_cv_dlopen=no
18429   lt_cv_dlopen_libs=
18430
18431   case $host_os in
18432   beos*)
18433     lt_cv_dlopen="load_add_on"
18434     lt_cv_dlopen_libs=
18435     lt_cv_dlopen_self=yes
18436     ;;
18437
18438   mingw* | pw32*)
18439     lt_cv_dlopen="LoadLibrary"
18440     lt_cv_dlopen_libs=
18441    ;;
18442
18443   cygwin*)
18444     lt_cv_dlopen="dlopen"
18445     lt_cv_dlopen_libs=
18446    ;;
18447
18448   darwin*)
18449   # if libdl is installed we need to link against it
18450     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18451 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18452 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-ldl  $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 /* Override any gcc2 internal prototype to avoid an error.  */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 /* We use char because int might match the return type of a gcc2
18469    builtin and then its argument prototype would still apply.  */
18470 char dlopen ();
18471 int
18472 main ()
18473 {
18474 dlopen ();
18475   ;
18476   return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481   (eval $ac_link) 2>conftest.er1
18482   ac_status=$?
18483   grep -v '^ *+' conftest.er1 >conftest.err
18484   rm -f conftest.er1
18485   cat conftest.err >&5
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); } &&
18488          { ac_try='test -z "$ac_c_werror_flag"
18489                          || test ! -s conftest.err'
18490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491   (eval $ac_try) 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest$ac_exeext'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; }; then
18501   ac_cv_lib_dl_dlopen=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 ac_cv_lib_dl_dlopen=no
18507 fi
18508 rm -f conftest.err conftest.$ac_objext \
18509       conftest$ac_exeext conftest.$ac_ext
18510 LIBS=$ac_check_lib_save_LIBS
18511 fi
18512 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18514 if test $ac_cv_lib_dl_dlopen = yes; then
18515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18516 else
18517
18518     lt_cv_dlopen="dyld"
18519     lt_cv_dlopen_libs=
18520     lt_cv_dlopen_self=yes
18521
18522 fi
18523
18524    ;;
18525
18526   *)
18527     echo "$as_me:$LINENO: checking for shl_load" >&5
18528 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18529 if test "${ac_cv_func_shl_load+set}" = set; then
18530   echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532   cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h.  */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h.  */
18538 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18540 #define shl_load innocuous_shl_load
18541
18542 /* System header to define __stub macros and hopefully few prototypes,
18543     which can conflict with char shl_load (); below.
18544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18545     <limits.h> exists even on freestanding compilers.  */
18546
18547 #ifdef __STDC__
18548 # include <limits.h>
18549 #else
18550 # include <assert.h>
18551 #endif
18552
18553 #undef shl_load
18554
18555 /* Override any gcc2 internal prototype to avoid an error.  */
18556 #ifdef __cplusplus
18557 extern "C"
18558 {
18559 #endif
18560 /* We use char because int might match the return type of a gcc2
18561    builtin and then its argument prototype would still apply.  */
18562 char shl_load ();
18563 /* The GNU C library defines this for functions which it implements
18564     to always fail with ENOSYS.  Some functions are actually named
18565     something starting with __ and the normal name is an alias.  */
18566 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18567 choke me
18568 #else
18569 char (*f) () = shl_load;
18570 #endif
18571 #ifdef __cplusplus
18572 }
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578 return f != shl_load;
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18585   (eval $ac_link) 2>conftest.er1
18586   ac_status=$?
18587   grep -v '^ *+' conftest.er1 >conftest.err
18588   rm -f conftest.er1
18589   cat conftest.err >&5
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); } &&
18592          { ac_try='test -z "$ac_c_werror_flag"
18593                          || test ! -s conftest.err'
18594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595   (eval $ac_try) 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; } &&
18599          { ac_try='test -s conftest$ac_exeext'
18600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601   (eval $ac_try) 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); }; }; then
18605   ac_cv_func_shl_load=yes
18606 else
18607   echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 ac_cv_func_shl_load=no
18611 fi
18612 rm -f conftest.err conftest.$ac_objext \
18613       conftest$ac_exeext conftest.$ac_ext
18614 fi
18615 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18616 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18617 if test $ac_cv_func_shl_load = yes; then
18618   lt_cv_dlopen="shl_load"
18619 else
18620   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18621 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18622 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625   ac_check_lib_save_LIBS=$LIBS
18626 LIBS="-ldld  $LIBS"
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h.  */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h.  */
18633
18634 /* Override any gcc2 internal prototype to avoid an error.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 /* We use char because int might match the return type of a gcc2
18639    builtin and then its argument prototype would still apply.  */
18640 char shl_load ();
18641 int
18642 main ()
18643 {
18644 shl_load ();
18645   ;
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651   (eval $ac_link) 2>conftest.er1
18652   ac_status=$?
18653   grep -v '^ *+' conftest.er1 >conftest.err
18654   rm -f conftest.er1
18655   cat conftest.err >&5
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } &&
18658          { ac_try='test -z "$ac_c_werror_flag"
18659                          || test ! -s conftest.err'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; } &&
18665          { ac_try='test -s conftest$ac_exeext'
18666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667   (eval $ac_try) 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; }; then
18671   ac_cv_lib_dld_shl_load=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_cv_lib_dld_shl_load=no
18677 fi
18678 rm -f conftest.err conftest.$ac_objext \
18679       conftest$ac_exeext conftest.$ac_ext
18680 LIBS=$ac_check_lib_save_LIBS
18681 fi
18682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18683 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18684 if test $ac_cv_lib_dld_shl_load = yes; then
18685   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18686 else
18687   echo "$as_me:$LINENO: checking for dlopen" >&5
18688 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18689 if test "${ac_cv_func_dlopen+set}" = set; then
18690   echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692   cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18700 #define dlopen innocuous_dlopen
18701
18702 /* System header to define __stub macros and hopefully few prototypes,
18703     which can conflict with char dlopen (); below.
18704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705     <limits.h> exists even on freestanding compilers.  */
18706
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18712
18713 #undef dlopen
18714
18715 /* Override any gcc2 internal prototype to avoid an error.  */
18716 #ifdef __cplusplus
18717 extern "C"
18718 {
18719 #endif
18720 /* We use char because int might match the return type of a gcc2
18721    builtin and then its argument prototype would still apply.  */
18722 char dlopen ();
18723 /* The GNU C library defines this for functions which it implements
18724     to always fail with ENOSYS.  Some functions are actually named
18725     something starting with __ and the normal name is an alias.  */
18726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18727 choke me
18728 #else
18729 char (*f) () = dlopen;
18730 #endif
18731 #ifdef __cplusplus
18732 }
18733 #endif
18734
18735 int
18736 main ()
18737 {
18738 return f != dlopen;
18739   ;
18740   return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18745   (eval $ac_link) 2>conftest.er1
18746   ac_status=$?
18747   grep -v '^ *+' conftest.er1 >conftest.err
18748   rm -f conftest.er1
18749   cat conftest.err >&5
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); } &&
18752          { ac_try='test -z "$ac_c_werror_flag"
18753                          || test ! -s conftest.err'
18754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755   (eval $ac_try) 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; } &&
18759          { ac_try='test -s conftest$ac_exeext'
18760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761   (eval $ac_try) 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); }; }; then
18765   ac_cv_func_dlopen=yes
18766 else
18767   echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770 ac_cv_func_dlopen=no
18771 fi
18772 rm -f conftest.err conftest.$ac_objext \
18773       conftest$ac_exeext conftest.$ac_ext
18774 fi
18775 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18776 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18777 if test $ac_cv_func_dlopen = yes; then
18778   lt_cv_dlopen="dlopen"
18779 else
18780   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18783   echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785   ac_check_lib_save_LIBS=$LIBS
18786 LIBS="-ldl  $LIBS"
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793
18794 /* Override any gcc2 internal prototype to avoid an error.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 /* We use char because int might match the return type of a gcc2
18799    builtin and then its argument prototype would still apply.  */
18800 char dlopen ();
18801 int
18802 main ()
18803 {
18804 dlopen ();
18805   ;
18806   return 0;
18807 }
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811   (eval $ac_link) 2>conftest.er1
18812   ac_status=$?
18813   grep -v '^ *+' conftest.er1 >conftest.err
18814   rm -f conftest.er1
18815   cat conftest.err >&5
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); } &&
18818          { ac_try='test -z "$ac_c_werror_flag"
18819                          || test ! -s conftest.err'
18820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821   (eval $ac_try) 2>&5
18822   ac_status=$?
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); }; } &&
18825          { ac_try='test -s conftest$ac_exeext'
18826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827   (eval $ac_try) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; }; then
18831   ac_cv_lib_dl_dlopen=yes
18832 else
18833   echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836 ac_cv_lib_dl_dlopen=no
18837 fi
18838 rm -f conftest.err conftest.$ac_objext \
18839       conftest$ac_exeext conftest.$ac_ext
18840 LIBS=$ac_check_lib_save_LIBS
18841 fi
18842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18844 if test $ac_cv_lib_dl_dlopen = yes; then
18845   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18846 else
18847   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18848 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-lsvld  $LIBS"
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860
18861 /* Override any gcc2 internal prototype to avoid an error.  */
18862 #ifdef __cplusplus
18863 extern "C"
18864 #endif
18865 /* We use char because int might match the return type of a gcc2
18866    builtin and then its argument prototype would still apply.  */
18867 char dlopen ();
18868 int
18869 main ()
18870 {
18871 dlopen ();
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878   (eval $ac_link) 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag"
18886                          || test ! -s conftest.err'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest$ac_exeext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_lib_svld_dlopen=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_lib_svld_dlopen=no
18904 fi
18905 rm -f conftest.err conftest.$ac_objext \
18906       conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18908 fi
18909 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18911 if test $ac_cv_lib_svld_dlopen = yes; then
18912   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18913 else
18914   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919   ac_check_lib_save_LIBS=$LIBS
18920 LIBS="-ldld  $LIBS"
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h.  */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h.  */
18927
18928 /* Override any gcc2 internal prototype to avoid an error.  */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 /* We use char because int might match the return type of a gcc2
18933    builtin and then its argument prototype would still apply.  */
18934 char dld_link ();
18935 int
18936 main ()
18937 {
18938 dld_link ();
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945   (eval $ac_link) 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_c_werror_flag"
18953                          || test ! -s conftest.err'
18954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955   (eval $ac_try) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest$ac_exeext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   ac_cv_lib_dld_dld_link=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 ac_cv_lib_dld_dld_link=no
18971 fi
18972 rm -f conftest.err conftest.$ac_objext \
18973       conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18975 fi
18976 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18978 if test $ac_cv_lib_dld_dld_link = yes; then
18979   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18980 fi
18981
18982
18983 fi
18984
18985
18986 fi
18987
18988
18989 fi
18990
18991
18992 fi
18993
18994
18995 fi
18996
18997     ;;
18998   esac
18999
19000   if test "x$lt_cv_dlopen" != xno; then
19001     enable_dlopen=yes
19002   else
19003     enable_dlopen=no
19004   fi
19005
19006   case $lt_cv_dlopen in
19007   dlopen)
19008     save_CPPFLAGS="$CPPFLAGS"
19009     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19010
19011     save_LDFLAGS="$LDFLAGS"
19012     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19013
19014     save_LIBS="$LIBS"
19015     LIBS="$lt_cv_dlopen_libs $LIBS"
19016
19017     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19018 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19019 if test "${lt_cv_dlopen_self+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022           if test "$cross_compiling" = yes; then :
19023   lt_cv_dlopen_self=cross
19024 else
19025   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19026   lt_status=$lt_dlunknown
19027   cat > conftest.$ac_ext <<EOF
19028 #line 19028 "configure"
19029 #include "confdefs.h"
19030
19031 #if HAVE_DLFCN_H
19032 #include <dlfcn.h>
19033 #endif
19034
19035 #include <stdio.h>
19036
19037 #ifdef RTLD_GLOBAL
19038 #  define LT_DLGLOBAL           RTLD_GLOBAL
19039 #else
19040 #  ifdef DL_GLOBAL
19041 #    define LT_DLGLOBAL         DL_GLOBAL
19042 #  else
19043 #    define LT_DLGLOBAL         0
19044 #  endif
19045 #endif
19046
19047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19048    find out it does not work in some platform. */
19049 #ifndef LT_DLLAZY_OR_NOW
19050 #  ifdef RTLD_LAZY
19051 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19052 #  else
19053 #    ifdef DL_LAZY
19054 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19055 #    else
19056 #      ifdef RTLD_NOW
19057 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19058 #      else
19059 #        ifdef DL_NOW
19060 #          define LT_DLLAZY_OR_NOW      DL_NOW
19061 #        else
19062 #          define LT_DLLAZY_OR_NOW      0
19063 #        endif
19064 #      endif
19065 #    endif
19066 #  endif
19067 #endif
19068
19069 #ifdef __cplusplus
19070 extern "C" void exit (int);
19071 #endif
19072
19073 void fnord() { int i=42;}
19074 int main ()
19075 {
19076   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19077   int status = $lt_dlunknown;
19078
19079   if (self)
19080     {
19081       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19082       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19083       /* dlclose (self); */
19084     }
19085
19086     exit (status);
19087 }
19088 EOF
19089   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090   (eval $ac_link) 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19094     (./conftest; exit; ) 2>/dev/null
19095     lt_status=$?
19096     case x$lt_status in
19097       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19098       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19099       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19100     esac
19101   else :
19102     # compilation failed
19103     lt_cv_dlopen_self=no
19104   fi
19105 fi
19106 rm -fr conftest*
19107
19108
19109 fi
19110 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19111 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19112
19113     if test "x$lt_cv_dlopen_self" = xyes; then
19114       LDFLAGS="$LDFLAGS $link_static_flag"
19115       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19116 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19117 if test "${lt_cv_dlopen_self_static+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120           if test "$cross_compiling" = yes; then :
19121   lt_cv_dlopen_self_static=cross
19122 else
19123   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19124   lt_status=$lt_dlunknown
19125   cat > conftest.$ac_ext <<EOF
19126 #line 19126 "configure"
19127 #include "confdefs.h"
19128
19129 #if HAVE_DLFCN_H
19130 #include <dlfcn.h>
19131 #endif
19132
19133 #include <stdio.h>
19134
19135 #ifdef RTLD_GLOBAL
19136 #  define LT_DLGLOBAL           RTLD_GLOBAL
19137 #else
19138 #  ifdef DL_GLOBAL
19139 #    define LT_DLGLOBAL         DL_GLOBAL
19140 #  else
19141 #    define LT_DLGLOBAL         0
19142 #  endif
19143 #endif
19144
19145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19146    find out it does not work in some platform. */
19147 #ifndef LT_DLLAZY_OR_NOW
19148 #  ifdef RTLD_LAZY
19149 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19150 #  else
19151 #    ifdef DL_LAZY
19152 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19153 #    else
19154 #      ifdef RTLD_NOW
19155 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19156 #      else
19157 #        ifdef DL_NOW
19158 #          define LT_DLLAZY_OR_NOW      DL_NOW
19159 #        else
19160 #          define LT_DLLAZY_OR_NOW      0
19161 #        endif
19162 #      endif
19163 #    endif
19164 #  endif
19165 #endif
19166
19167 #ifdef __cplusplus
19168 extern "C" void exit (int);
19169 #endif
19170
19171 void fnord() { int i=42;}
19172 int main ()
19173 {
19174   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19175   int status = $lt_dlunknown;
19176
19177   if (self)
19178     {
19179       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19180       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19181       /* dlclose (self); */
19182     }
19183
19184     exit (status);
19185 }
19186 EOF
19187   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188   (eval $ac_link) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19192     (./conftest; exit; ) 2>/dev/null
19193     lt_status=$?
19194     case x$lt_status in
19195       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19196       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19197       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19198     esac
19199   else :
19200     # compilation failed
19201     lt_cv_dlopen_self_static=no
19202   fi
19203 fi
19204 rm -fr conftest*
19205
19206
19207 fi
19208 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19209 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19210     fi
19211
19212     CPPFLAGS="$save_CPPFLAGS"
19213     LDFLAGS="$save_LDFLAGS"
19214     LIBS="$save_LIBS"
19215     ;;
19216   esac
19217
19218   case $lt_cv_dlopen_self in
19219   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19220   *) enable_dlopen_self=unknown ;;
19221   esac
19222
19223   case $lt_cv_dlopen_self_static in
19224   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19225   *) enable_dlopen_self_static=unknown ;;
19226   esac
19227 fi
19228
19229
19230 # The else clause should only fire when bootstrapping the
19231 # libtool distribution, otherwise you forgot to ship ltmain.sh
19232 # with your package, and you will get complaints that there are
19233 # no rules to generate ltmain.sh.
19234 if test -f "$ltmain"; then
19235   # See if we are running on zsh, and set the options which allow our commands through
19236   # without removal of \ escapes.
19237   if test -n "${ZSH_VERSION+set}" ; then
19238     setopt NO_GLOB_SUBST
19239   fi
19240   # Now quote all the things that may contain metacharacters while being
19241   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19242   # variables and quote the copies for generation of the libtool script.
19243   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19244     SED SHELL STRIP \
19245     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19246     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19247     deplibs_check_method reload_flag reload_cmds need_locks \
19248     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19249     lt_cv_sys_global_symbol_to_c_name_address \
19250     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19251     old_postinstall_cmds old_postuninstall_cmds \
19252     compiler_GCJ \
19253     CC_GCJ \
19254     LD_GCJ \
19255     lt_prog_compiler_wl_GCJ \
19256     lt_prog_compiler_pic_GCJ \
19257     lt_prog_compiler_static_GCJ \
19258     lt_prog_compiler_no_builtin_flag_GCJ \
19259     export_dynamic_flag_spec_GCJ \
19260     thread_safe_flag_spec_GCJ \
19261     whole_archive_flag_spec_GCJ \
19262     enable_shared_with_static_runtimes_GCJ \
19263     old_archive_cmds_GCJ \
19264     old_archive_from_new_cmds_GCJ \
19265     predep_objects_GCJ \
19266     postdep_objects_GCJ \
19267     predeps_GCJ \
19268     postdeps_GCJ \
19269     compiler_lib_search_path_GCJ \
19270     archive_cmds_GCJ \
19271     archive_expsym_cmds_GCJ \
19272     postinstall_cmds_GCJ \
19273     postuninstall_cmds_GCJ \
19274     old_archive_from_expsyms_cmds_GCJ \
19275     allow_undefined_flag_GCJ \
19276     no_undefined_flag_GCJ \
19277     export_symbols_cmds_GCJ \
19278     hardcode_libdir_flag_spec_GCJ \
19279     hardcode_libdir_flag_spec_ld_GCJ \
19280     hardcode_libdir_separator_GCJ \
19281     hardcode_automatic_GCJ \
19282     module_cmds_GCJ \
19283     module_expsym_cmds_GCJ \
19284     lt_cv_prog_compiler_c_o_GCJ \
19285     exclude_expsyms_GCJ \
19286     include_expsyms_GCJ; do
19287
19288     case $var in
19289     old_archive_cmds_GCJ | \
19290     old_archive_from_new_cmds_GCJ | \
19291     archive_cmds_GCJ | \
19292     archive_expsym_cmds_GCJ | \
19293     module_cmds_GCJ | \
19294     module_expsym_cmds_GCJ | \
19295     old_archive_from_expsyms_cmds_GCJ | \
19296     export_symbols_cmds_GCJ | \
19297     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19298     postinstall_cmds | postuninstall_cmds | \
19299     old_postinstall_cmds | old_postuninstall_cmds | \
19300     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19301       # Double-quote double-evaled strings.
19302       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19303       ;;
19304     *)
19305       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19306       ;;
19307     esac
19308   done
19309
19310   case $lt_echo in
19311   *'\$0 --fallback-echo"')
19312     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19313     ;;
19314   esac
19315
19316 cfgfile="$ofile"
19317
19318   cat <<__EOF__ >> "$cfgfile"
19319 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19320
19321 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19322
19323 # Shell to use when invoking shell scripts.
19324 SHELL=$lt_SHELL
19325
19326 # Whether or not to build shared libraries.
19327 build_libtool_libs=$enable_shared
19328
19329 # Whether or not to build static libraries.
19330 build_old_libs=$enable_static
19331
19332 # Whether or not to add -lc for building shared libraries.
19333 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19334
19335 # Whether or not to disallow shared libs when runtime libs are static
19336 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19337
19338 # Whether or not to optimize for fast installation.
19339 fast_install=$enable_fast_install
19340
19341 # The host system.
19342 host_alias=$host_alias
19343 host=$host
19344 host_os=$host_os
19345
19346 # The build system.
19347 build_alias=$build_alias
19348 build=$build
19349 build_os=$build_os
19350
19351 # An echo program that does not interpret backslashes.
19352 echo=$lt_echo
19353
19354 # The archiver.
19355 AR=$lt_AR
19356 AR_FLAGS=$lt_AR_FLAGS
19357
19358 # A C compiler.
19359 LTCC=$lt_LTCC
19360
19361 # A language-specific compiler.
19362 CC=$lt_compiler_GCJ
19363
19364 # Is the compiler the GNU C compiler?
19365 with_gcc=$GCC_GCJ
19366
19367 # An ERE matcher.
19368 EGREP=$lt_EGREP
19369
19370 # The linker used to build libraries.
19371 LD=$lt_LD_GCJ
19372
19373 # Whether we need hard or soft links.
19374 LN_S=$lt_LN_S
19375
19376 # A BSD-compatible nm program.
19377 NM=$lt_NM
19378
19379 # A symbol stripping program
19380 STRIP=$lt_STRIP
19381
19382 # Used to examine libraries when file_magic_cmd begins "file"
19383 MAGIC_CMD=$MAGIC_CMD
19384
19385 # Used on cygwin: DLL creation program.
19386 DLLTOOL="$DLLTOOL"
19387
19388 # Used on cygwin: object dumper.
19389 OBJDUMP="$OBJDUMP"
19390
19391 # Used on cygwin: assembler.
19392 AS="$AS"
19393
19394 # The name of the directory that contains temporary libtool files.
19395 objdir=$objdir
19396
19397 # How to create reloadable object files.
19398 reload_flag=$lt_reload_flag
19399 reload_cmds=$lt_reload_cmds
19400
19401 # How to pass a linker flag through the compiler.
19402 wl=$lt_lt_prog_compiler_wl_GCJ
19403
19404 # Object file suffix (normally "o").
19405 objext="$ac_objext"
19406
19407 # Old archive suffix (normally "a").
19408 libext="$libext"
19409
19410 # Shared library suffix (normally ".so").
19411 shrext_cmds='$shrext_cmds'
19412
19413 # Executable file suffix (normally "").
19414 exeext="$exeext"
19415
19416 # Additional compiler flags for building library objects.
19417 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19418 pic_mode=$pic_mode
19419
19420 # What is the maximum length of a command?
19421 max_cmd_len=$lt_cv_sys_max_cmd_len
19422
19423 # Does compiler simultaneously support -c and -o options?
19424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19425
19426 # Must we lock files when doing compilation?
19427 need_locks=$lt_need_locks
19428
19429 # Do we need the lib prefix for modules?
19430 need_lib_prefix=$need_lib_prefix
19431
19432 # Do we need a version for libraries?
19433 need_version=$need_version
19434
19435 # Whether dlopen is supported.
19436 dlopen_support=$enable_dlopen
19437
19438 # Whether dlopen of programs is supported.
19439 dlopen_self=$enable_dlopen_self
19440
19441 # Whether dlopen of statically linked programs is supported.
19442 dlopen_self_static=$enable_dlopen_self_static
19443
19444 # Compiler flag to prevent dynamic linking.
19445 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19446
19447 # Compiler flag to turn off builtin functions.
19448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19449
19450 # Compiler flag to allow reflexive dlopens.
19451 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19452
19453 # Compiler flag to generate shared objects directly from archives.
19454 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19455
19456 # Compiler flag to generate thread-safe objects.
19457 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19458
19459 # Library versioning type.
19460 version_type=$version_type
19461
19462 # Format of library name prefix.
19463 libname_spec=$lt_libname_spec
19464
19465 # List of archive names.  First name is the real one, the rest are links.
19466 # The last name is the one that the linker finds with -lNAME.
19467 library_names_spec=$lt_library_names_spec
19468
19469 # The coded name of the library, if different from the real name.
19470 soname_spec=$lt_soname_spec
19471
19472 # Commands used to build and install an old-style archive.
19473 RANLIB=$lt_RANLIB
19474 old_archive_cmds=$lt_old_archive_cmds_GCJ
19475 old_postinstall_cmds=$lt_old_postinstall_cmds
19476 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19477
19478 # Create an old-style archive from a shared archive.
19479 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19480
19481 # Create a temporary old-style archive to link instead of a shared archive.
19482 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19483
19484 # Commands used to build and install a shared archive.
19485 archive_cmds=$lt_archive_cmds_GCJ
19486 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19487 postinstall_cmds=$lt_postinstall_cmds
19488 postuninstall_cmds=$lt_postuninstall_cmds
19489
19490 # Commands used to build a loadable module (assumed same as above if empty)
19491 module_cmds=$lt_module_cmds_GCJ
19492 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19493
19494 # Commands to strip libraries.
19495 old_striplib=$lt_old_striplib
19496 striplib=$lt_striplib
19497
19498 # Dependencies to place before the objects being linked to create a
19499 # shared library.
19500 predep_objects=$lt_predep_objects_GCJ
19501
19502 # Dependencies to place after the objects being linked to create a
19503 # shared library.
19504 postdep_objects=$lt_postdep_objects_GCJ
19505
19506 # Dependencies to place before the objects being linked to create a
19507 # shared library.
19508 predeps=$lt_predeps_GCJ
19509
19510 # Dependencies to place after the objects being linked to create a
19511 # shared library.
19512 postdeps=$lt_postdeps_GCJ
19513
19514 # The library search path used internally by the compiler when linking
19515 # a shared library.
19516 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19517
19518 # Method to check whether dependent libraries are shared objects.
19519 deplibs_check_method=$lt_deplibs_check_method
19520
19521 # Command to use when deplibs_check_method == file_magic.
19522 file_magic_cmd=$lt_file_magic_cmd
19523
19524 # Flag that allows shared libraries with undefined symbols to be built.
19525 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19526
19527 # Flag that forces no undefined symbols.
19528 no_undefined_flag=$lt_no_undefined_flag_GCJ
19529
19530 # Commands used to finish a libtool library installation in a directory.
19531 finish_cmds=$lt_finish_cmds
19532
19533 # Same as above, but a single script fragment to be evaled but not shown.
19534 finish_eval=$lt_finish_eval
19535
19536 # Take the output of nm and produce a listing of raw symbols and C names.
19537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19538
19539 # Transform the output of nm in a proper C declaration
19540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19541
19542 # Transform the output of nm in a C name address pair
19543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19544
19545 # This is the shared library runtime path variable.
19546 runpath_var=$runpath_var
19547
19548 # This is the shared library path variable.
19549 shlibpath_var=$shlibpath_var
19550
19551 # Is shlibpath searched before the hard-coded library search path?
19552 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19553
19554 # How to hardcode a shared library path into an executable.
19555 hardcode_action=$hardcode_action_GCJ
19556
19557 # Whether we should hardcode library paths into libraries.
19558 hardcode_into_libs=$hardcode_into_libs
19559
19560 # Flag to hardcode \$libdir into a binary during linking.
19561 # This must work even if \$libdir does not exist.
19562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19563
19564 # If ld is used when linking, flag to hardcode \$libdir into
19565 # a binary during linking. This must work even if \$libdir does
19566 # not exist.
19567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19568
19569 # Whether we need a single -rpath flag with a separated argument.
19570 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19571
19572 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19573 # resulting binary.
19574 hardcode_direct=$hardcode_direct_GCJ
19575
19576 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19577 # resulting binary.
19578 hardcode_minus_L=$hardcode_minus_L_GCJ
19579
19580 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19581 # the resulting binary.
19582 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19583
19584 # Set to yes if building a shared library automatically hardcodes DIR into the library
19585 # and all subsequent libraries and executables linked against it.
19586 hardcode_automatic=$hardcode_automatic_GCJ
19587
19588 # Variables whose values should be saved in libtool wrapper scripts and
19589 # restored at relink time.
19590 variables_saved_for_relink="$variables_saved_for_relink"
19591
19592 # Whether libtool must link a program against all its dependency libraries.
19593 link_all_deplibs=$link_all_deplibs_GCJ
19594
19595 # Compile-time system search path for libraries
19596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19597
19598 # Run-time system search path for libraries
19599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19600
19601 # Fix the shell variable \$srcfile for the compiler.
19602 fix_srcfile_path="$fix_srcfile_path_GCJ"
19603
19604 # Set to yes if exported symbols are required.
19605 always_export_symbols=$always_export_symbols_GCJ
19606
19607 # The commands to list exported symbols.
19608 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19609
19610 # The commands to extract the exported symbol list from a shared archive.
19611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19612
19613 # Symbols that should not be listed in the preloaded symbols.
19614 exclude_expsyms=$lt_exclude_expsyms_GCJ
19615
19616 # Symbols that must always be exported.
19617 include_expsyms=$lt_include_expsyms_GCJ
19618
19619 # ### END LIBTOOL TAG CONFIG: $tagname
19620
19621 __EOF__
19622
19623
19624 else
19625   # If there is no Makefile yet, we rely on a make rule to execute
19626   # `config.status --recheck' to rerun these tests and create the
19627   # libtool script then.
19628   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19629   if test -f "$ltmain_in"; then
19630     test -f Makefile && make "$ltmain"
19631   fi
19632 fi
19633
19634
19635 ac_ext=c
19636 ac_cpp='$CPP $CPPFLAGS'
19637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19640
19641 CC="$lt_save_CC"
19642
19643         else
19644           tagname=""
19645         fi
19646         ;;
19647
19648       RC)
19649
19650
19651
19652 # Source file extension for RC test sources.
19653 ac_ext=rc
19654
19655 # Object file extension for compiled RC test sources.
19656 objext=o
19657 objext_RC=$objext
19658
19659 # Code to be used in simple compile tests
19660 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19661
19662 # Code to be used in simple link tests
19663 lt_simple_link_test_code="$lt_simple_compile_test_code"
19664
19665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19666
19667 # If no C compiler was specified, use CC.
19668 LTCC=${LTCC-"$CC"}
19669
19670 # Allow CC to be a program name with arguments.
19671 compiler=$CC
19672
19673
19674 # save warnings/boilerplate of simple test code
19675 ac_outfile=conftest.$ac_objext
19676 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19678 _lt_compiler_boilerplate=`cat conftest.err`
19679 $rm conftest*
19680
19681 ac_outfile=conftest.$ac_objext
19682 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19684 _lt_linker_boilerplate=`cat conftest.err`
19685 $rm conftest*
19686
19687
19688 # Allow CC to be a program name with arguments.
19689 lt_save_CC="$CC"
19690 CC=${RC-"windres"}
19691 compiler=$CC
19692 compiler_RC=$CC
19693 for cc_temp in $compiler""; do
19694   case $cc_temp in
19695     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19696     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19697     \-*) ;;
19698     *) break;;
19699   esac
19700 done
19701 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19702
19703 lt_cv_prog_compiler_c_o_RC=yes
19704
19705 # The else clause should only fire when bootstrapping the
19706 # libtool distribution, otherwise you forgot to ship ltmain.sh
19707 # with your package, and you will get complaints that there are
19708 # no rules to generate ltmain.sh.
19709 if test -f "$ltmain"; then
19710   # See if we are running on zsh, and set the options which allow our commands through
19711   # without removal of \ escapes.
19712   if test -n "${ZSH_VERSION+set}" ; then
19713     setopt NO_GLOB_SUBST
19714   fi
19715   # Now quote all the things that may contain metacharacters while being
19716   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19717   # variables and quote the copies for generation of the libtool script.
19718   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19719     SED SHELL STRIP \
19720     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19721     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19722     deplibs_check_method reload_flag reload_cmds need_locks \
19723     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19724     lt_cv_sys_global_symbol_to_c_name_address \
19725     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19726     old_postinstall_cmds old_postuninstall_cmds \
19727     compiler_RC \
19728     CC_RC \
19729     LD_RC \
19730     lt_prog_compiler_wl_RC \
19731     lt_prog_compiler_pic_RC \
19732     lt_prog_compiler_static_RC \
19733     lt_prog_compiler_no_builtin_flag_RC \
19734     export_dynamic_flag_spec_RC \
19735     thread_safe_flag_spec_RC \
19736     whole_archive_flag_spec_RC \
19737     enable_shared_with_static_runtimes_RC \
19738     old_archive_cmds_RC \
19739     old_archive_from_new_cmds_RC \
19740     predep_objects_RC \
19741     postdep_objects_RC \
19742     predeps_RC \
19743     postdeps_RC \
19744     compiler_lib_search_path_RC \
19745     archive_cmds_RC \
19746     archive_expsym_cmds_RC \
19747     postinstall_cmds_RC \
19748     postuninstall_cmds_RC \
19749     old_archive_from_expsyms_cmds_RC \
19750     allow_undefined_flag_RC \
19751     no_undefined_flag_RC \
19752     export_symbols_cmds_RC \
19753     hardcode_libdir_flag_spec_RC \
19754     hardcode_libdir_flag_spec_ld_RC \
19755     hardcode_libdir_separator_RC \
19756     hardcode_automatic_RC \
19757     module_cmds_RC \
19758     module_expsym_cmds_RC \
19759     lt_cv_prog_compiler_c_o_RC \
19760     exclude_expsyms_RC \
19761     include_expsyms_RC; do
19762
19763     case $var in
19764     old_archive_cmds_RC | \
19765     old_archive_from_new_cmds_RC | \
19766     archive_cmds_RC | \
19767     archive_expsym_cmds_RC | \
19768     module_cmds_RC | \
19769     module_expsym_cmds_RC | \
19770     old_archive_from_expsyms_cmds_RC | \
19771     export_symbols_cmds_RC | \
19772     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19773     postinstall_cmds | postuninstall_cmds | \
19774     old_postinstall_cmds | old_postuninstall_cmds | \
19775     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19776       # Double-quote double-evaled strings.
19777       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19778       ;;
19779     *)
19780       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19781       ;;
19782     esac
19783   done
19784
19785   case $lt_echo in
19786   *'\$0 --fallback-echo"')
19787     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19788     ;;
19789   esac
19790
19791 cfgfile="$ofile"
19792
19793   cat <<__EOF__ >> "$cfgfile"
19794 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19795
19796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19797
19798 # Shell to use when invoking shell scripts.
19799 SHELL=$lt_SHELL
19800
19801 # Whether or not to build shared libraries.
19802 build_libtool_libs=$enable_shared
19803
19804 # Whether or not to build static libraries.
19805 build_old_libs=$enable_static
19806
19807 # Whether or not to add -lc for building shared libraries.
19808 build_libtool_need_lc=$archive_cmds_need_lc_RC
19809
19810 # Whether or not to disallow shared libs when runtime libs are static
19811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19812
19813 # Whether or not to optimize for fast installation.
19814 fast_install=$enable_fast_install
19815
19816 # The host system.
19817 host_alias=$host_alias
19818 host=$host
19819 host_os=$host_os
19820
19821 # The build system.
19822 build_alias=$build_alias
19823 build=$build
19824 build_os=$build_os
19825
19826 # An echo program that does not interpret backslashes.
19827 echo=$lt_echo
19828
19829 # The archiver.
19830 AR=$lt_AR
19831 AR_FLAGS=$lt_AR_FLAGS
19832
19833 # A C compiler.
19834 LTCC=$lt_LTCC
19835
19836 # A language-specific compiler.
19837 CC=$lt_compiler_RC
19838
19839 # Is the compiler the GNU C compiler?
19840 with_gcc=$GCC_RC
19841
19842 # An ERE matcher.
19843 EGREP=$lt_EGREP
19844
19845 # The linker used to build libraries.
19846 LD=$lt_LD_RC
19847
19848 # Whether we need hard or soft links.
19849 LN_S=$lt_LN_S
19850
19851 # A BSD-compatible nm program.
19852 NM=$lt_NM
19853
19854 # A symbol stripping program
19855 STRIP=$lt_STRIP
19856
19857 # Used to examine libraries when file_magic_cmd begins "file"
19858 MAGIC_CMD=$MAGIC_CMD
19859
19860 # Used on cygwin: DLL creation program.
19861 DLLTOOL="$DLLTOOL"
19862
19863 # Used on cygwin: object dumper.
19864 OBJDUMP="$OBJDUMP"
19865
19866 # Used on cygwin: assembler.
19867 AS="$AS"
19868
19869 # The name of the directory that contains temporary libtool files.
19870 objdir=$objdir
19871
19872 # How to create reloadable object files.
19873 reload_flag=$lt_reload_flag
19874 reload_cmds=$lt_reload_cmds
19875
19876 # How to pass a linker flag through the compiler.
19877 wl=$lt_lt_prog_compiler_wl_RC
19878
19879 # Object file suffix (normally "o").
19880 objext="$ac_objext"
19881
19882 # Old archive suffix (normally "a").
19883 libext="$libext"
19884
19885 # Shared library suffix (normally ".so").
19886 shrext_cmds='$shrext_cmds'
19887
19888 # Executable file suffix (normally "").
19889 exeext="$exeext"
19890
19891 # Additional compiler flags for building library objects.
19892 pic_flag=$lt_lt_prog_compiler_pic_RC
19893 pic_mode=$pic_mode
19894
19895 # What is the maximum length of a command?
19896 max_cmd_len=$lt_cv_sys_max_cmd_len
19897
19898 # Does compiler simultaneously support -c and -o options?
19899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19900
19901 # Must we lock files when doing compilation?
19902 need_locks=$lt_need_locks
19903
19904 # Do we need the lib prefix for modules?
19905 need_lib_prefix=$need_lib_prefix
19906
19907 # Do we need a version for libraries?
19908 need_version=$need_version
19909
19910 # Whether dlopen is supported.
19911 dlopen_support=$enable_dlopen
19912
19913 # Whether dlopen of programs is supported.
19914 dlopen_self=$enable_dlopen_self
19915
19916 # Whether dlopen of statically linked programs is supported.
19917 dlopen_self_static=$enable_dlopen_self_static
19918
19919 # Compiler flag to prevent dynamic linking.
19920 link_static_flag=$lt_lt_prog_compiler_static_RC
19921
19922 # Compiler flag to turn off builtin functions.
19923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19924
19925 # Compiler flag to allow reflexive dlopens.
19926 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19927
19928 # Compiler flag to generate shared objects directly from archives.
19929 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19930
19931 # Compiler flag to generate thread-safe objects.
19932 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19933
19934 # Library versioning type.
19935 version_type=$version_type
19936
19937 # Format of library name prefix.
19938 libname_spec=$lt_libname_spec
19939
19940 # List of archive names.  First name is the real one, the rest are links.
19941 # The last name is the one that the linker finds with -lNAME.
19942 library_names_spec=$lt_library_names_spec
19943
19944 # The coded name of the library, if different from the real name.
19945 soname_spec=$lt_soname_spec
19946
19947 # Commands used to build and install an old-style archive.
19948 RANLIB=$lt_RANLIB
19949 old_archive_cmds=$lt_old_archive_cmds_RC
19950 old_postinstall_cmds=$lt_old_postinstall_cmds
19951 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19952
19953 # Create an old-style archive from a shared archive.
19954 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19955
19956 # Create a temporary old-style archive to link instead of a shared archive.
19957 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19958
19959 # Commands used to build and install a shared archive.
19960 archive_cmds=$lt_archive_cmds_RC
19961 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19962 postinstall_cmds=$lt_postinstall_cmds
19963 postuninstall_cmds=$lt_postuninstall_cmds
19964
19965 # Commands used to build a loadable module (assumed same as above if empty)
19966 module_cmds=$lt_module_cmds_RC
19967 module_expsym_cmds=$lt_module_expsym_cmds_RC
19968
19969 # Commands to strip libraries.
19970 old_striplib=$lt_old_striplib
19971 striplib=$lt_striplib
19972
19973 # Dependencies to place before the objects being linked to create a
19974 # shared library.
19975 predep_objects=$lt_predep_objects_RC
19976
19977 # Dependencies to place after the objects being linked to create a
19978 # shared library.
19979 postdep_objects=$lt_postdep_objects_RC
19980
19981 # Dependencies to place before the objects being linked to create a
19982 # shared library.
19983 predeps=$lt_predeps_RC
19984
19985 # Dependencies to place after the objects being linked to create a
19986 # shared library.
19987 postdeps=$lt_postdeps_RC
19988
19989 # The library search path used internally by the compiler when linking
19990 # a shared library.
19991 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19992
19993 # Method to check whether dependent libraries are shared objects.
19994 deplibs_check_method=$lt_deplibs_check_method
19995
19996 # Command to use when deplibs_check_method == file_magic.
19997 file_magic_cmd=$lt_file_magic_cmd
19998
19999 # Flag that allows shared libraries with undefined symbols to be built.
20000 allow_undefined_flag=$lt_allow_undefined_flag_RC
20001
20002 # Flag that forces no undefined symbols.
20003 no_undefined_flag=$lt_no_undefined_flag_RC
20004
20005 # Commands used to finish a libtool library installation in a directory.
20006 finish_cmds=$lt_finish_cmds
20007
20008 # Same as above, but a single script fragment to be evaled but not shown.
20009 finish_eval=$lt_finish_eval
20010
20011 # Take the output of nm and produce a listing of raw symbols and C names.
20012 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20013
20014 # Transform the output of nm in a proper C declaration
20015 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20016
20017 # Transform the output of nm in a C name address pair
20018 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20019
20020 # This is the shared library runtime path variable.
20021 runpath_var=$runpath_var
20022
20023 # This is the shared library path variable.
20024 shlibpath_var=$shlibpath_var
20025
20026 # Is shlibpath searched before the hard-coded library search path?
20027 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20028
20029 # How to hardcode a shared library path into an executable.
20030 hardcode_action=$hardcode_action_RC
20031
20032 # Whether we should hardcode library paths into libraries.
20033 hardcode_into_libs=$hardcode_into_libs
20034
20035 # Flag to hardcode \$libdir into a binary during linking.
20036 # This must work even if \$libdir does not exist.
20037 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20038
20039 # If ld is used when linking, flag to hardcode \$libdir into
20040 # a binary during linking. This must work even if \$libdir does
20041 # not exist.
20042 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20043
20044 # Whether we need a single -rpath flag with a separated argument.
20045 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20046
20047 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20048 # resulting binary.
20049 hardcode_direct=$hardcode_direct_RC
20050
20051 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20052 # resulting binary.
20053 hardcode_minus_L=$hardcode_minus_L_RC
20054
20055 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20056 # the resulting binary.
20057 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20058
20059 # Set to yes if building a shared library automatically hardcodes DIR into the library
20060 # and all subsequent libraries and executables linked against it.
20061 hardcode_automatic=$hardcode_automatic_RC
20062
20063 # Variables whose values should be saved in libtool wrapper scripts and
20064 # restored at relink time.
20065 variables_saved_for_relink="$variables_saved_for_relink"
20066
20067 # Whether libtool must link a program against all its dependency libraries.
20068 link_all_deplibs=$link_all_deplibs_RC
20069
20070 # Compile-time system search path for libraries
20071 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20072
20073 # Run-time system search path for libraries
20074 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20075
20076 # Fix the shell variable \$srcfile for the compiler.
20077 fix_srcfile_path="$fix_srcfile_path_RC"
20078
20079 # Set to yes if exported symbols are required.
20080 always_export_symbols=$always_export_symbols_RC
20081
20082 # The commands to list exported symbols.
20083 export_symbols_cmds=$lt_export_symbols_cmds_RC
20084
20085 # The commands to extract the exported symbol list from a shared archive.
20086 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20087
20088 # Symbols that should not be listed in the preloaded symbols.
20089 exclude_expsyms=$lt_exclude_expsyms_RC
20090
20091 # Symbols that must always be exported.
20092 include_expsyms=$lt_include_expsyms_RC
20093
20094 # ### END LIBTOOL TAG CONFIG: $tagname
20095
20096 __EOF__
20097
20098
20099 else
20100   # If there is no Makefile yet, we rely on a make rule to execute
20101   # `config.status --recheck' to rerun these tests and create the
20102   # libtool script then.
20103   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20104   if test -f "$ltmain_in"; then
20105     test -f Makefile && make "$ltmain"
20106   fi
20107 fi
20108
20109
20110 ac_ext=c
20111 ac_cpp='$CPP $CPPFLAGS'
20112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20115
20116 CC="$lt_save_CC"
20117
20118         ;;
20119
20120       *)
20121         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20122 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20123    { (exit 1); exit 1; }; }
20124         ;;
20125       esac
20126
20127       # Append the new tag name to the list of available tags.
20128       if test -n "$tagname" ; then
20129       available_tags="$available_tags $tagname"
20130     fi
20131     fi
20132   done
20133   IFS="$lt_save_ifs"
20134
20135   # Now substitute the updated list of available tags.
20136   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20137     mv "${ofile}T" "$ofile"
20138     chmod +x "$ofile"
20139   else
20140     rm -f "${ofile}T"
20141     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20142 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20143    { (exit 1); exit 1; }; }
20144   fi
20145 fi
20146
20147
20148
20149 # This can be used to rebuild libtool when needed
20150 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20151
20152 # Always use our own libtool.
20153 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20154
20155 # Prevent multiple expansion
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183 ac_header_dirent=no
20184 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20185   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20186 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20187 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 #include <sys/types.h>
20198 #include <$ac_hdr>
20199
20200 int
20201 main ()
20202 {
20203 if ((DIR *) 0)
20204 return 0;
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext
20210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20211   (eval $ac_compile) 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } &&
20218          { ac_try='test -z "$ac_c_werror_flag"
20219                          || test ! -s conftest.err'
20220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221   (eval $ac_try) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; } &&
20225          { ac_try='test -s conftest.$ac_objext'
20226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227   (eval $ac_try) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; }; then
20231   eval "$as_ac_Header=yes"
20232 else
20233   echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 eval "$as_ac_Header=no"
20237 fi
20238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20239 fi
20240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20243   cat >>confdefs.h <<_ACEOF
20244 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20245 _ACEOF
20246
20247 ac_header_dirent=$ac_hdr; break
20248 fi
20249
20250 done
20251 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20252 if test $ac_header_dirent = dirent.h; then
20253   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20254 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20255 if test "${ac_cv_search_opendir+set}" = set; then
20256   echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258   ac_func_search_save_LIBS=$LIBS
20259 ac_cv_search_opendir=no
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h.  */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h.  */
20266
20267 /* Override any gcc2 internal prototype to avoid an error.  */
20268 #ifdef __cplusplus
20269 extern "C"
20270 #endif
20271 /* We use char because int might match the return type of a gcc2
20272    builtin and then its argument prototype would still apply.  */
20273 char opendir ();
20274 int
20275 main ()
20276 {
20277 opendir ();
20278   ;
20279   return 0;
20280 }
20281 _ACEOF
20282 rm -f conftest.$ac_objext conftest$ac_exeext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20284   (eval $ac_link) 2>conftest.er1
20285   ac_status=$?
20286   grep -v '^ *+' conftest.er1 >conftest.err
20287   rm -f conftest.er1
20288   cat conftest.err >&5
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } &&
20291          { ac_try='test -z "$ac_c_werror_flag"
20292                          || test ! -s conftest.err'
20293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294   (eval $ac_try) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; } &&
20298          { ac_try='test -s conftest$ac_exeext'
20299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300   (eval $ac_try) 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); }; }; then
20304   ac_cv_search_opendir="none required"
20305 else
20306   echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309 fi
20310 rm -f conftest.err conftest.$ac_objext \
20311       conftest$ac_exeext conftest.$ac_ext
20312 if test "$ac_cv_search_opendir" = no; then
20313   for ac_lib in dir; do
20314     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20315     cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321
20322 /* Override any gcc2 internal prototype to avoid an error.  */
20323 #ifdef __cplusplus
20324 extern "C"
20325 #endif
20326 /* We use char because int might match the return type of a gcc2
20327    builtin and then its argument prototype would still apply.  */
20328 char opendir ();
20329 int
20330 main ()
20331 {
20332 opendir ();
20333   ;
20334   return 0;
20335 }
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339   (eval $ac_link) 2>conftest.er1
20340   ac_status=$?
20341   grep -v '^ *+' conftest.er1 >conftest.err
20342   rm -f conftest.er1
20343   cat conftest.err >&5
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } &&
20346          { ac_try='test -z "$ac_c_werror_flag"
20347                          || test ! -s conftest.err'
20348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349   (eval $ac_try) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; } &&
20353          { ac_try='test -s conftest$ac_exeext'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_search_opendir="-l$ac_lib"
20360 break
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 fi
20366 rm -f conftest.err conftest.$ac_objext \
20367       conftest$ac_exeext conftest.$ac_ext
20368   done
20369 fi
20370 LIBS=$ac_func_search_save_LIBS
20371 fi
20372 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20373 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20374 if test "$ac_cv_search_opendir" != no; then
20375   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20376
20377 fi
20378
20379 else
20380   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20381 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20382 if test "${ac_cv_search_opendir+set}" = set; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   ac_func_search_save_LIBS=$LIBS
20386 ac_cv_search_opendir=no
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h.  */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h.  */
20393
20394 /* Override any gcc2 internal prototype to avoid an error.  */
20395 #ifdef __cplusplus
20396 extern "C"
20397 #endif
20398 /* We use char because int might match the return type of a gcc2
20399    builtin and then its argument prototype would still apply.  */
20400 char opendir ();
20401 int
20402 main ()
20403 {
20404 opendir ();
20405   ;
20406   return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20411   (eval $ac_link) 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } &&
20418          { ac_try='test -z "$ac_c_werror_flag"
20419                          || test ! -s conftest.err'
20420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421   (eval $ac_try) 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; } &&
20425          { ac_try='test -s conftest$ac_exeext'
20426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427   (eval $ac_try) 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); }; }; then
20431   ac_cv_search_opendir="none required"
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 fi
20437 rm -f conftest.err conftest.$ac_objext \
20438       conftest$ac_exeext conftest.$ac_ext
20439 if test "$ac_cv_search_opendir" = no; then
20440   for ac_lib in x; do
20441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20442     cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448
20449 /* Override any gcc2 internal prototype to avoid an error.  */
20450 #ifdef __cplusplus
20451 extern "C"
20452 #endif
20453 /* We use char because int might match the return type of a gcc2
20454    builtin and then its argument prototype would still apply.  */
20455 char opendir ();
20456 int
20457 main ()
20458 {
20459 opendir ();
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466   (eval $ac_link) 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } &&
20473          { ac_try='test -z "$ac_c_werror_flag"
20474                          || test ! -s conftest.err'
20475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476   (eval $ac_try) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; } &&
20480          { ac_try='test -s conftest$ac_exeext'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; }; then
20486   ac_cv_search_opendir="-l$ac_lib"
20487 break
20488 else
20489   echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20491
20492 fi
20493 rm -f conftest.err conftest.$ac_objext \
20494       conftest$ac_exeext conftest.$ac_ext
20495   done
20496 fi
20497 LIBS=$ac_func_search_save_LIBS
20498 fi
20499 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20500 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20501 if test "$ac_cv_search_opendir" != no; then
20502   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20503
20504 fi
20505
20506 fi
20507
20508 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20509 if test "${enable_ltdl_install+set}" = set; then
20510   enableval="$enable_ltdl_install"
20511
20512 fi;
20513
20514
20515
20516 if test x"${enable_ltdl_install-no}" != xno; then
20517   INSTALL_LTDL_TRUE=
20518   INSTALL_LTDL_FALSE='#'
20519 else
20520   INSTALL_LTDL_TRUE='#'
20521   INSTALL_LTDL_FALSE=
20522 fi
20523
20524
20525
20526 if test x"${enable_ltdl_convenience-no}" != xno; then
20527   CONVENIENCE_LTDL_TRUE=
20528   CONVENIENCE_LTDL_FALSE='#'
20529 else
20530   CONVENIENCE_LTDL_TRUE='#'
20531   CONVENIENCE_LTDL_FALSE=
20532 fi
20533
20534
20535
20536 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20537 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20538 if test "${libltdl_cv_shlibext+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541
20542 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20543 # Here in libltdl for libgcj we don't build modules for darwin.
20544 # So we say no. Then the extension gets .dylib which is the right
20545 # thing for shared libraries on darwin. Please keep me next time you
20546 # import libltdl.
20547 case "$host_os" in
20548 darwin*)
20549         module=no
20550         ;;
20551 *)
20552         module=yes
20553         ;;
20554 esac
20555 eval libltdl_cv_shlibext=$shrext_cmds
20556
20557 fi
20558 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20559 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20560 if test -n "$libltdl_cv_shlibext"; then
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20564 _ACEOF
20565
20566 fi
20567
20568
20569 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20570 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20571 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   libltdl_cv_shlibpath_var="$shlibpath_var"
20575 fi
20576 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20577 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20578 if test -n "$libltdl_cv_shlibpath_var"; then
20579
20580 cat >>confdefs.h <<_ACEOF
20581 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20582 _ACEOF
20583
20584 fi
20585
20586
20587 echo "$as_me:$LINENO: checking for the default library search path" >&5
20588 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20589 if test "${libltdl_cv_sys_search_path+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20593 fi
20594 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20595 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20596 if test -n "$libltdl_cv_sys_search_path"; then
20597   sys_search_path=
20598   for dir in $libltdl_cv_sys_search_path; do
20599     if test -z "$sys_search_path"; then
20600       sys_search_path="$dir"
20601     else
20602       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20603     fi
20604   done
20605
20606 cat >>confdefs.h <<_ACEOF
20607 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20608 _ACEOF
20609
20610 fi
20611
20612 echo "$as_me:$LINENO: checking for objdir" >&5
20613 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20614 if test "${libltdl_cv_objdir+set}" = set; then
20615   echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617   libltdl_cv_objdir="$objdir"
20618   if test -n "$objdir"; then
20619     :
20620   else
20621     rm -f .libs 2>/dev/null
20622     mkdir .libs 2>/dev/null
20623     if test -d .libs; then
20624       libltdl_cv_objdir=.libs
20625     else
20626       # MS-DOS does not allow filenames that begin with a dot.
20627       libltdl_cv_objdir=_libs
20628     fi
20629   rmdir .libs 2>/dev/null
20630   fi
20631
20632 fi
20633 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20634 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20635
20636 cat >>confdefs.h <<_ACEOF
20637 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20638 _ACEOF
20639
20640
20641
20642 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20643 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20644 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20645   echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20648     libltdl_cv_preloaded_symbols=yes
20649   else
20650     libltdl_cv_preloaded_symbols=no
20651   fi
20652
20653 fi
20654 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20655 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20656 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20657
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_PRELOADED_SYMBOLS 1
20660 _ACEOF
20661
20662 fi
20663
20664 LIBADD_DL=
20665
20666 ac_ext=c
20667 ac_cpp='$CPP $CPPFLAGS'
20668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20671
20672
20673 echo "$as_me:$LINENO: checking for shl_load" >&5
20674 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20675 if test "${ac_cv_func_shl_load+set}" = set; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20686 #define shl_load innocuous_shl_load
20687
20688 /* System header to define __stub macros and hopefully few prototypes,
20689     which can conflict with char shl_load (); below.
20690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20691     <limits.h> exists even on freestanding compilers.  */
20692
20693 #ifdef __STDC__
20694 # include <limits.h>
20695 #else
20696 # include <assert.h>
20697 #endif
20698
20699 #undef shl_load
20700
20701 /* Override any gcc2 internal prototype to avoid an error.  */
20702 #ifdef __cplusplus
20703 extern "C"
20704 {
20705 #endif
20706 /* We use char because int might match the return type of a gcc2
20707    builtin and then its argument prototype would still apply.  */
20708 char shl_load ();
20709 /* The GNU C library defines this for functions which it implements
20710     to always fail with ENOSYS.  Some functions are actually named
20711     something starting with __ and the normal name is an alias.  */
20712 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20713 choke me
20714 #else
20715 char (*f) () = shl_load;
20716 #endif
20717 #ifdef __cplusplus
20718 }
20719 #endif
20720
20721 int
20722 main ()
20723 {
20724 return f != shl_load;
20725   ;
20726   return 0;
20727 }
20728 _ACEOF
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731   (eval $ac_link) 2>conftest.er1
20732   ac_status=$?
20733   grep -v '^ *+' conftest.er1 >conftest.err
20734   rm -f conftest.er1
20735   cat conftest.err >&5
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } &&
20738          { ac_try='test -z "$ac_c_werror_flag"
20739                          || test ! -s conftest.err'
20740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741   (eval $ac_try) 2>&5
20742   ac_status=$?
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); }; } &&
20745          { ac_try='test -s conftest$ac_exeext'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751   ac_cv_func_shl_load=yes
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 ac_cv_func_shl_load=no
20757 fi
20758 rm -f conftest.err conftest.$ac_objext \
20759       conftest$ac_exeext conftest.$ac_ext
20760 fi
20761 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20762 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20763 if test $ac_cv_func_shl_load = yes; then
20764
20765 cat >>confdefs.h <<\_ACEOF
20766 #define HAVE_SHL_LOAD 1
20767 _ACEOF
20768
20769 else
20770   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20771 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20772 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20773   echo $ECHO_N "(cached) $ECHO_C" >&6
20774 else
20775   ac_check_lib_save_LIBS=$LIBS
20776 LIBS="-ldld  $LIBS"
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h.  */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h.  */
20783
20784 /* Override any gcc2 internal prototype to avoid an error.  */
20785 #ifdef __cplusplus
20786 extern "C"
20787 #endif
20788 /* We use char because int might match the return type of a gcc2
20789    builtin and then its argument prototype would still apply.  */
20790 char shl_load ();
20791 int
20792 main ()
20793 {
20794 shl_load ();
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20801   (eval $ac_link) 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_c_werror_flag"
20809                          || test ! -s conftest.err'
20810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811   (eval $ac_try) 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; } &&
20815          { ac_try='test -s conftest$ac_exeext'
20816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817   (eval $ac_try) 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); }; }; then
20821   ac_cv_lib_dld_shl_load=yes
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826 ac_cv_lib_dld_shl_load=no
20827 fi
20828 rm -f conftest.err conftest.$ac_objext \
20829       conftest$ac_exeext conftest.$ac_ext
20830 LIBS=$ac_check_lib_save_LIBS
20831 fi
20832 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20833 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20834 if test $ac_cv_lib_dld_shl_load = yes; then
20835
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_SHL_LOAD 1
20838 _ACEOF
20839
20840         LIBADD_DL="$LIBADD_DL -ldld"
20841 else
20842   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20845   echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847   ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-ldl  $LIBS"
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855
20856 /* Override any gcc2 internal prototype to avoid an error.  */
20857 #ifdef __cplusplus
20858 extern "C"
20859 #endif
20860 /* We use char because int might match the return type of a gcc2
20861    builtin and then its argument prototype would still apply.  */
20862 char dlopen ();
20863 int
20864 main ()
20865 {
20866 dlopen ();
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20873   (eval $ac_link) 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } &&
20880          { ac_try='test -z "$ac_c_werror_flag"
20881                          || test ! -s conftest.err'
20882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883   (eval $ac_try) 2>&5
20884   ac_status=$?
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); }; } &&
20887          { ac_try='test -s conftest$ac_exeext'
20888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889   (eval $ac_try) 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; }; then
20893   ac_cv_lib_dl_dlopen=yes
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_cv_lib_dl_dlopen=no
20899 fi
20900 rm -f conftest.err conftest.$ac_objext \
20901       conftest$ac_exeext conftest.$ac_ext
20902 LIBS=$ac_check_lib_save_LIBS
20903 fi
20904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20906 if test $ac_cv_lib_dl_dlopen = yes; then
20907
20908 cat >>confdefs.h <<\_ACEOF
20909 #define HAVE_LIBDL 1
20910 _ACEOF
20911
20912                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20913 else
20914   cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 #if HAVE_DLFCN_H
20921 #  include <dlfcn.h>
20922 #endif
20923
20924 int
20925 main ()
20926 {
20927 dlopen(0, 0);
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20934   (eval $ac_link) 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } &&
20941          { ac_try='test -z "$ac_c_werror_flag"
20942                          || test ! -s conftest.err'
20943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; } &&
20948          { ac_try='test -s conftest$ac_exeext'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; }; then
20954
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_LIBDL 1
20957 _ACEOF
20958  libltdl_cv_func_dlopen="yes"
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968   ac_check_lib_save_LIBS=$LIBS
20969 LIBS="-lsvld  $LIBS"
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976
20977 /* Override any gcc2 internal prototype to avoid an error.  */
20978 #ifdef __cplusplus
20979 extern "C"
20980 #endif
20981 /* We use char because int might match the return type of a gcc2
20982    builtin and then its argument prototype would still apply.  */
20983 char dlopen ();
20984 int
20985 main ()
20986 {
20987 dlopen ();
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext conftest$ac_exeext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994   (eval $ac_link) 2>conftest.er1
20995   ac_status=$?
20996   grep -v '^ *+' conftest.er1 >conftest.err
20997   rm -f conftest.er1
20998   cat conftest.err >&5
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); } &&
21001          { ac_try='test -z "$ac_c_werror_flag"
21002                          || test ! -s conftest.err'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest$ac_exeext'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   ac_cv_lib_svld_dlopen=yes
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ac_cv_lib_svld_dlopen=no
21020 fi
21021 rm -f conftest.err conftest.$ac_objext \
21022       conftest$ac_exeext conftest.$ac_ext
21023 LIBS=$ac_check_lib_save_LIBS
21024 fi
21025 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21027 if test $ac_cv_lib_svld_dlopen = yes; then
21028
21029 cat >>confdefs.h <<\_ACEOF
21030 #define HAVE_LIBDL 1
21031 _ACEOF
21032
21033                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
21034 else
21035   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21036 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   ac_check_lib_save_LIBS=$LIBS
21041 LIBS="-ldld  $LIBS"
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048
21049 /* Override any gcc2 internal prototype to avoid an error.  */
21050 #ifdef __cplusplus
21051 extern "C"
21052 #endif
21053 /* We use char because int might match the return type of a gcc2
21054    builtin and then its argument prototype would still apply.  */
21055 char dld_link ();
21056 int
21057 main ()
21058 {
21059 dld_link ();
21060   ;
21061   return 0;
21062 }
21063 _ACEOF
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066   (eval $ac_link) 2>conftest.er1
21067   ac_status=$?
21068   grep -v '^ *+' conftest.er1 >conftest.err
21069   rm -f conftest.er1
21070   cat conftest.err >&5
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } &&
21073          { ac_try='test -z "$ac_c_werror_flag"
21074                          || test ! -s conftest.err'
21075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076   (eval $ac_try) 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); }; } &&
21080          { ac_try='test -s conftest$ac_exeext'
21081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082   (eval $ac_try) 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; }; then
21086   ac_cv_lib_dld_dld_link=yes
21087 else
21088   echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_lib_dld_dld_link=no
21092 fi
21093 rm -f conftest.err conftest.$ac_objext \
21094       conftest$ac_exeext conftest.$ac_ext
21095 LIBS=$ac_check_lib_save_LIBS
21096 fi
21097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21098 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21099 if test $ac_cv_lib_dld_dld_link = yes; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_DLD 1
21103 _ACEOF
21104
21105                 LIBADD_DL="$LIBADD_DL -ldld"
21106 else
21107   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21108 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21109 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21110   echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112   cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21120 #define _dyld_func_lookup innocuous__dyld_func_lookup
21121
21122 /* System header to define __stub macros and hopefully few prototypes,
21123     which can conflict with char _dyld_func_lookup (); below.
21124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125     <limits.h> exists even on freestanding compilers.  */
21126
21127 #ifdef __STDC__
21128 # include <limits.h>
21129 #else
21130 # include <assert.h>
21131 #endif
21132
21133 #undef _dyld_func_lookup
21134
21135 /* Override any gcc2 internal prototype to avoid an error.  */
21136 #ifdef __cplusplus
21137 extern "C"
21138 {
21139 #endif
21140 /* We use char because int might match the return type of a gcc2
21141    builtin and then its argument prototype would still apply.  */
21142 char _dyld_func_lookup ();
21143 /* The GNU C library defines this for functions which it implements
21144     to always fail with ENOSYS.  Some functions are actually named
21145     something starting with __ and the normal name is an alias.  */
21146 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21147 choke me
21148 #else
21149 char (*f) () = _dyld_func_lookup;
21150 #endif
21151 #ifdef __cplusplus
21152 }
21153 #endif
21154
21155 int
21156 main ()
21157 {
21158 return f != _dyld_func_lookup;
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165   (eval $ac_link) 2>conftest.er1
21166   ac_status=$?
21167   grep -v '^ *+' conftest.er1 >conftest.err
21168   rm -f conftest.er1
21169   cat conftest.err >&5
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } &&
21172          { ac_try='test -z "$ac_c_werror_flag"
21173                          || test ! -s conftest.err'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175   (eval $ac_try) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; } &&
21179          { ac_try='test -s conftest$ac_exeext'
21180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181   (eval $ac_try) 2>&5
21182   ac_status=$?
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); }; }; then
21185   ac_cv_func__dyld_func_lookup=yes
21186 else
21187   echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 ac_cv_func__dyld_func_lookup=no
21191 fi
21192 rm -f conftest.err conftest.$ac_objext \
21193       conftest$ac_exeext conftest.$ac_ext
21194 fi
21195 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21196 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21197 if test $ac_cv_func__dyld_func_lookup = yes; then
21198
21199 cat >>confdefs.h <<\_ACEOF
21200 #define HAVE_DYLD 1
21201 _ACEOF
21202
21203 fi
21204
21205
21206 fi
21207
21208
21209 fi
21210
21211
21212 fi
21213 rm -f conftest.err conftest.$ac_objext \
21214       conftest$ac_exeext conftest.$ac_ext
21215
21216 fi
21217
21218
21219 fi
21220
21221
21222 fi
21223
21224
21225 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21226 then
21227   lt_save_LIBS="$LIBS"
21228   LIBS="$LIBS $LIBADD_DL"
21229
21230 for ac_func in dlerror
21231 do
21232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21233 echo "$as_me:$LINENO: checking for $ac_func" >&5
21234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21235 if eval "test \"\${$as_ac_var+set}\" = set"; then
21236   echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238   cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21246 #define $ac_func innocuous_$ac_func
21247
21248 /* System header to define __stub macros and hopefully few prototypes,
21249     which can conflict with char $ac_func (); below.
21250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21251     <limits.h> exists even on freestanding compilers.  */
21252
21253 #ifdef __STDC__
21254 # include <limits.h>
21255 #else
21256 # include <assert.h>
21257 #endif
21258
21259 #undef $ac_func
21260
21261 /* Override any gcc2 internal prototype to avoid an error.  */
21262 #ifdef __cplusplus
21263 extern "C"
21264 {
21265 #endif
21266 /* We use char because int might match the return type of a gcc2
21267    builtin and then its argument prototype would still apply.  */
21268 char $ac_func ();
21269 /* The GNU C library defines this for functions which it implements
21270     to always fail with ENOSYS.  Some functions are actually named
21271     something starting with __ and the normal name is an alias.  */
21272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21273 choke me
21274 #else
21275 char (*f) () = $ac_func;
21276 #endif
21277 #ifdef __cplusplus
21278 }
21279 #endif
21280
21281 int
21282 main ()
21283 {
21284 return f != $ac_func;
21285   ;
21286   return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext conftest$ac_exeext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21291   (eval $ac_link) 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } &&
21298          { ac_try='test -z "$ac_c_werror_flag"
21299                          || test ! -s conftest.err'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; } &&
21305          { ac_try='test -s conftest$ac_exeext'
21306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307   (eval $ac_try) 2>&5
21308   ac_status=$?
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); }; }; then
21311   eval "$as_ac_var=yes"
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 eval "$as_ac_var=no"
21317 fi
21318 rm -f conftest.err conftest.$ac_objext \
21319       conftest$ac_exeext conftest.$ac_ext
21320 fi
21321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21323 if test `eval echo '${'$as_ac_var'}'` = yes; then
21324   cat >>confdefs.h <<_ACEOF
21325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21326 _ACEOF
21327
21328 fi
21329 done
21330
21331   LIBS="$lt_save_LIBS"
21332 fi
21333 ac_ext=c
21334 ac_cpp='$CPP $CPPFLAGS'
21335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21338
21339
21340
21341 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21342 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21343 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   ac_cv_sys_symbol_underscore=no
21347   cat > conftest.$ac_ext <<EOF
21348 void nm_test_func(){}
21349 int main(){nm_test_func;return 0;}
21350 EOF
21351   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352   (eval $ac_compile) 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); }; then
21356     # Now try to grab the symbols.
21357     ac_nlist=conftest.nm
21358     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21359   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } && test -s "$ac_nlist"; then
21363       # See whether the symbols have a leading underscore.
21364       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21365         ac_cv_sys_symbol_underscore=yes
21366       else
21367         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21368           :
21369         else
21370           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21371         fi
21372       fi
21373     else
21374       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21375     fi
21376   else
21377     echo "configure: failed program was:" >&5
21378     cat conftest.c >&5
21379   fi
21380   rm -rf conftest*
21381
21382 fi
21383 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21384 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21385
21386
21387 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21388   if test x"$libltdl_cv_func_dlopen" = xyes ||
21389      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21390         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21391 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21392 if test "${libltdl_cv_need_uscore+set}" = set; then
21393   echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395   libltdl_cv_need_uscore=unknown
21396           save_LIBS="$LIBS"
21397           LIBS="$LIBS $LIBADD_DL"
21398           if test "$cross_compiling" = yes; then :
21399   libltdl_cv_need_uscore=cross
21400 else
21401   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21402   lt_status=$lt_dlunknown
21403   cat > conftest.$ac_ext <<EOF
21404 #line 21404 "configure"
21405 #include "confdefs.h"
21406
21407 #if HAVE_DLFCN_H
21408 #include <dlfcn.h>
21409 #endif
21410
21411 #include <stdio.h>
21412
21413 #ifdef RTLD_GLOBAL
21414 #  define LT_DLGLOBAL           RTLD_GLOBAL
21415 #else
21416 #  ifdef DL_GLOBAL
21417 #    define LT_DLGLOBAL         DL_GLOBAL
21418 #  else
21419 #    define LT_DLGLOBAL         0
21420 #  endif
21421 #endif
21422
21423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21424    find out it does not work in some platform. */
21425 #ifndef LT_DLLAZY_OR_NOW
21426 #  ifdef RTLD_LAZY
21427 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21428 #  else
21429 #    ifdef DL_LAZY
21430 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21431 #    else
21432 #      ifdef RTLD_NOW
21433 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21434 #      else
21435 #        ifdef DL_NOW
21436 #          define LT_DLLAZY_OR_NOW      DL_NOW
21437 #        else
21438 #          define LT_DLLAZY_OR_NOW      0
21439 #        endif
21440 #      endif
21441 #    endif
21442 #  endif
21443 #endif
21444
21445 #ifdef __cplusplus
21446 extern "C" void exit (int);
21447 #endif
21448
21449 void fnord() { int i=42;}
21450 int main ()
21451 {
21452   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21453   int status = $lt_dlunknown;
21454
21455   if (self)
21456     {
21457       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21458       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21459       /* dlclose (self); */
21460     }
21461
21462     exit (status);
21463 }
21464 EOF
21465   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21466   (eval $ac_link) 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21470     (./conftest; exit; ) 2>/dev/null
21471     lt_status=$?
21472     case x$lt_status in
21473       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21474       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21475       x$lt_unknown|x*)  ;;
21476     esac
21477   else :
21478     # compilation failed
21479
21480   fi
21481 fi
21482 rm -fr conftest*
21483
21484           LIBS="$save_LIBS"
21485
21486 fi
21487 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21488 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21489   fi
21490 fi
21491
21492 if test x"$libltdl_cv_need_uscore" = xyes; then
21493
21494 cat >>confdefs.h <<\_ACEOF
21495 #define NEED_USCORE 1
21496 _ACEOF
21497
21498 fi
21499
21500
21501 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21502 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21503 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21504   echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506   # PORTME does your system automatically load deplibs for dlopen?
21507   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21508   # For now, we just catch OSes we know something about -- in the
21509   # future, we'll try test this programmatically.
21510   libltdl_cv_sys_dlopen_deplibs=unknown
21511   case "$host_os" in
21512   aix3*|aix4.1.*|aix4.2.*)
21513     # Unknown whether this is true for these versions of AIX, but
21514     # we want this `case' here to explicitly catch those versions.
21515     libltdl_cv_sys_dlopen_deplibs=unknown
21516     ;;
21517   aix[45]*)
21518     libltdl_cv_sys_dlopen_deplibs=yes
21519     ;;
21520   darwin*)
21521     # Assuming the user has installed a libdl from somewhere, this is true
21522     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21523     libltdl_cv_sys_dlopen_deplibs=yes
21524     ;;
21525   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21526     # GNU and its variants, using gnu ld.so (Glibc)
21527     libltdl_cv_sys_dlopen_deplibs=yes
21528     ;;
21529   hpux10*|hpux11*)
21530     libltdl_cv_sys_dlopen_deplibs=yes
21531     ;;
21532   irix[12345]*|irix6.[01]*)
21533     # Catch all versions of IRIX before 6.2, and indicate that we don't
21534     # know how it worked for any of those versions.
21535     libltdl_cv_sys_dlopen_deplibs=unknown
21536     ;;
21537   irix*)
21538     # The case above catches anything before 6.2, and it's known that
21539     # at 6.2 and later dlopen does load deplibs.
21540     libltdl_cv_sys_dlopen_deplibs=yes
21541     ;;
21542   netbsd*)
21543     libltdl_cv_sys_dlopen_deplibs=yes
21544     ;;
21545   openbsd*)
21546     libltdl_cv_sys_dlopen_deplibs=yes
21547     ;;
21548   osf[1234]*)
21549     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21550     # it did *not* use an RPATH in a shared library to find objects the
21551     # library depends on, so we explictly say `no'.
21552     libltdl_cv_sys_dlopen_deplibs=no
21553     ;;
21554   osf5.0|osf5.0a|osf5.1)
21555     # dlopen *does* load deplibs and with the right loader patch applied
21556     # it even uses RPATH in a shared library to search for shared objects
21557     # that the library depends on, but there's no easy way to know if that
21558     # patch is installed.  Since this is the case, all we can really
21559     # say is unknown -- it depends on the patch being installed.  If
21560     # it is, this changes to `yes'.  Without it, it would be `no'.
21561     libltdl_cv_sys_dlopen_deplibs=unknown
21562     ;;
21563   osf*)
21564     # the two cases above should catch all versions of osf <= 5.1.  Read
21565     # the comments above for what we know about them.
21566     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21567     # is used to find them so we can finally say `yes'.
21568     libltdl_cv_sys_dlopen_deplibs=yes
21569     ;;
21570   solaris*)
21571     libltdl_cv_sys_dlopen_deplibs=yes
21572     ;;
21573   esac
21574
21575 fi
21576 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21577 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21578 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21579
21580 cat >>confdefs.h <<\_ACEOF
21581 #define LTDL_DLOPEN_DEPLIBS 1
21582 _ACEOF
21583
21584 fi
21585
21586
21587 for ac_header in argz.h
21588 do
21589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21591   echo "$as_me:$LINENO: checking for $ac_header" >&5
21592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 fi
21596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21598 else
21599   # Is the header compilable?
21600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609 #include <$ac_header>
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613   (eval $ac_compile) 2>conftest.er1
21614   ac_status=$?
21615   grep -v '^ *+' conftest.er1 >conftest.err
21616   rm -f conftest.er1
21617   cat conftest.err >&5
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } &&
21620          { ac_try='test -z "$ac_c_werror_flag"
21621                          || test ! -s conftest.err'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; } &&
21627          { ac_try='test -s conftest.$ac_objext'
21628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); }; }; then
21633   ac_header_compiler=yes
21634 else
21635   echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638 ac_header_compiler=no
21639 fi
21640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21642 echo "${ECHO_T}$ac_header_compiler" >&6
21643
21644 # Is the header present?
21645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21647 cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h.  */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h.  */
21653 #include <$ac_header>
21654 _ACEOF
21655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21657   ac_status=$?
21658   grep -v '^ *+' conftest.er1 >conftest.err
21659   rm -f conftest.er1
21660   cat conftest.err >&5
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } >/dev/null; then
21663   if test -s conftest.err; then
21664     ac_cpp_err=$ac_c_preproc_warn_flag
21665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21666   else
21667     ac_cpp_err=
21668   fi
21669 else
21670   ac_cpp_err=yes
21671 fi
21672 if test -z "$ac_cpp_err"; then
21673   ac_header_preproc=yes
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678   ac_header_preproc=no
21679 fi
21680 rm -f conftest.err conftest.$ac_ext
21681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21682 echo "${ECHO_T}$ac_header_preproc" >&6
21683
21684 # So?  What about this header?
21685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21686   yes:no: )
21687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21691     ac_header_preproc=yes
21692     ;;
21693   no:yes:* )
21694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21706     (
21707       cat <<\_ASBOX
21708 ## ---------------------------------- ##
21709 ## Report this to bug-libtool@gnu.org ##
21710 ## ---------------------------------- ##
21711 _ASBOX
21712     ) |
21713       sed "s/^/$as_me: WARNING:     /" >&2
21714     ;;
21715 esac
21716 echo "$as_me:$LINENO: checking for $ac_header" >&5
21717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 else
21721   eval "$as_ac_Header=\$ac_header_preproc"
21722 fi
21723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21725
21726 fi
21727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21728   cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21730 _ACEOF
21731
21732 fi
21733
21734 done
21735
21736
21737 echo "$as_me:$LINENO: checking for error_t" >&5
21738 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21739 if test "${ac_cv_type_error_t+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742   cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748 #if HAVE_ARGZ_H
21749 #  include <argz.h>
21750 #endif
21751
21752 int
21753 main ()
21754 {
21755 if ((error_t *) 0)
21756   return 0;
21757 if (sizeof (error_t))
21758   return 0;
21759   ;
21760   return 0;
21761 }
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21765   (eval $ac_compile) 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } &&
21772          { ac_try='test -z "$ac_c_werror_flag"
21773                          || test ! -s conftest.err'
21774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775   (eval $ac_try) 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); }; } &&
21779          { ac_try='test -s conftest.$ac_objext'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; }; then
21785   ac_cv_type_error_t=yes
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 ac_cv_type_error_t=no
21791 fi
21792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793 fi
21794 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21795 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21796 if test $ac_cv_type_error_t = yes; then
21797
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE_ERROR_T 1
21800 _ACEOF
21801
21802
21803 else
21804
21805 cat >>confdefs.h <<\_ACEOF
21806 #define error_t int
21807 _ACEOF
21808
21809 fi
21810
21811
21812
21813
21814
21815
21816
21817 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21818 do
21819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21820 echo "$as_me:$LINENO: checking for $ac_func" >&5
21821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21822 if eval "test \"\${$as_ac_var+set}\" = set"; then
21823   echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825   cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21833 #define $ac_func innocuous_$ac_func
21834
21835 /* System header to define __stub macros and hopefully few prototypes,
21836     which can conflict with char $ac_func (); below.
21837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21838     <limits.h> exists even on freestanding compilers.  */
21839
21840 #ifdef __STDC__
21841 # include <limits.h>
21842 #else
21843 # include <assert.h>
21844 #endif
21845
21846 #undef $ac_func
21847
21848 /* Override any gcc2 internal prototype to avoid an error.  */
21849 #ifdef __cplusplus
21850 extern "C"
21851 {
21852 #endif
21853 /* We use char because int might match the return type of a gcc2
21854    builtin and then its argument prototype would still apply.  */
21855 char $ac_func ();
21856 /* The GNU C library defines this for functions which it implements
21857     to always fail with ENOSYS.  Some functions are actually named
21858     something starting with __ and the normal name is an alias.  */
21859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21860 choke me
21861 #else
21862 char (*f) () = $ac_func;
21863 #endif
21864 #ifdef __cplusplus
21865 }
21866 #endif
21867
21868 int
21869 main ()
21870 {
21871 return f != $ac_func;
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 rm -f conftest.$ac_objext conftest$ac_exeext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878   (eval $ac_link) 2>conftest.er1
21879   ac_status=$?
21880   grep -v '^ *+' conftest.er1 >conftest.err
21881   rm -f conftest.er1
21882   cat conftest.err >&5
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); } &&
21885          { ac_try='test -z "$ac_c_werror_flag"
21886                          || test ! -s conftest.err'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; } &&
21892          { ac_try='test -s conftest$ac_exeext'
21893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894   (eval $ac_try) 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); }; }; then
21898   eval "$as_ac_var=yes"
21899 else
21900   echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903 eval "$as_ac_var=no"
21904 fi
21905 rm -f conftest.err conftest.$ac_objext \
21906       conftest$ac_exeext conftest.$ac_ext
21907 fi
21908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21910 if test `eval echo '${'$as_ac_var'}'` = yes; then
21911   cat >>confdefs.h <<_ACEOF
21912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21913 _ACEOF
21914
21915 fi
21916 done
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21946                   stdio.h unistd.h
21947 do
21948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21950   echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 fi
21955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21957 else
21958   # Is the header compilable?
21959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 $ac_includes_default
21968 #include <$ac_header>
21969 _ACEOF
21970 rm -f conftest.$ac_objext
21971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21972   (eval $ac_compile) 2>conftest.er1
21973   ac_status=$?
21974   grep -v '^ *+' conftest.er1 >conftest.err
21975   rm -f conftest.er1
21976   cat conftest.err >&5
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); } &&
21979          { ac_try='test -z "$ac_c_werror_flag"
21980                          || test ! -s conftest.err'
21981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982   (eval $ac_try) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; } &&
21986          { ac_try='test -s conftest.$ac_objext'
21987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988   (eval $ac_try) 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; }; then
21992   ac_header_compiler=yes
21993 else
21994   echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997 ac_header_compiler=no
21998 fi
21999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001 echo "${ECHO_T}$ac_header_compiler" >&6
22002
22003 # Is the header present?
22004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 #include <$ac_header>
22013 _ACEOF
22014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } >/dev/null; then
22022   if test -s conftest.err; then
22023     ac_cpp_err=$ac_c_preproc_warn_flag
22024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22025   else
22026     ac_cpp_err=
22027   fi
22028 else
22029   ac_cpp_err=yes
22030 fi
22031 if test -z "$ac_cpp_err"; then
22032   ac_header_preproc=yes
22033 else
22034   echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037   ac_header_preproc=no
22038 fi
22039 rm -f conftest.err conftest.$ac_ext
22040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041 echo "${ECHO_T}$ac_header_preproc" >&6
22042
22043 # So?  What about this header?
22044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22045   yes:no: )
22046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050     ac_header_preproc=yes
22051     ;;
22052   no:yes:* )
22053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22065     (
22066       cat <<\_ASBOX
22067 ## ---------------------------------- ##
22068 ## Report this to bug-libtool@gnu.org ##
22069 ## ---------------------------------- ##
22070 _ASBOX
22071     ) |
22072       sed "s/^/$as_me: WARNING:     /" >&2
22073     ;;
22074 esac
22075 echo "$as_me:$LINENO: checking for $ac_header" >&5
22076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22078   echo $ECHO_N "(cached) $ECHO_C" >&6
22079 else
22080   eval "$as_ac_Header=\$ac_header_preproc"
22081 fi
22082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22084
22085 fi
22086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22087   cat >>confdefs.h <<_ACEOF
22088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22089 _ACEOF
22090
22091 fi
22092
22093 done
22094
22095
22096
22097
22098
22099 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22100 do
22101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22103   echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22106   echo $ECHO_N "(cached) $ECHO_C" >&6
22107 fi
22108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22110 else
22111   # Is the header compilable?
22112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h.  */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h.  */
22120 $ac_includes_default
22121 #include <$ac_header>
22122 _ACEOF
22123 rm -f conftest.$ac_objext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125   (eval $ac_compile) 2>conftest.er1
22126   ac_status=$?
22127   grep -v '^ *+' conftest.er1 >conftest.err
22128   rm -f conftest.er1
22129   cat conftest.err >&5
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); } &&
22132          { ac_try='test -z "$ac_c_werror_flag"
22133                          || test ! -s conftest.err'
22134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135   (eval $ac_try) 2>&5
22136   ac_status=$?
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); }; } &&
22139          { ac_try='test -s conftest.$ac_objext'
22140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141   (eval $ac_try) 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; }; then
22145   ac_header_compiler=yes
22146 else
22147   echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22149
22150 ac_header_compiler=no
22151 fi
22152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22154 echo "${ECHO_T}$ac_header_compiler" >&6
22155
22156 # Is the header present?
22157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165 #include <$ac_header>
22166 _ACEOF
22167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } >/dev/null; then
22175   if test -s conftest.err; then
22176     ac_cpp_err=$ac_c_preproc_warn_flag
22177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22178   else
22179     ac_cpp_err=
22180   fi
22181 else
22182   ac_cpp_err=yes
22183 fi
22184 if test -z "$ac_cpp_err"; then
22185   ac_header_preproc=yes
22186 else
22187   echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190   ac_header_preproc=no
22191 fi
22192 rm -f conftest.err conftest.$ac_ext
22193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22194 echo "${ECHO_T}$ac_header_preproc" >&6
22195
22196 # So?  What about this header?
22197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22198   yes:no: )
22199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22203     ac_header_preproc=yes
22204     ;;
22205   no:yes:* )
22206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22218     (
22219       cat <<\_ASBOX
22220 ## ---------------------------------- ##
22221 ## Report this to bug-libtool@gnu.org ##
22222 ## ---------------------------------- ##
22223 _ASBOX
22224     ) |
22225       sed "s/^/$as_me: WARNING:     /" >&2
22226     ;;
22227 esac
22228 echo "$as_me:$LINENO: checking for $ac_header" >&5
22229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22231   echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233   eval "$as_ac_Header=\$ac_header_preproc"
22234 fi
22235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22237
22238 fi
22239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22240   cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22242 _ACEOF
22243
22244 fi
22245
22246 done
22247
22248
22249
22250 for ac_header in string.h strings.h
22251 do
22252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22254   echo "$as_me:$LINENO: checking for $ac_header" >&5
22255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 fi
22259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22261 else
22262   # Is the header compilable?
22263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271 $ac_includes_default
22272 #include <$ac_header>
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22276   (eval $ac_compile) 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } &&
22283          { ac_try='test -z "$ac_c_werror_flag"
22284                          || test ! -s conftest.err'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; } &&
22290          { ac_try='test -s conftest.$ac_objext'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; }; then
22296   ac_header_compiler=yes
22297 else
22298   echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 ac_header_compiler=no
22302 fi
22303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22305 echo "${ECHO_T}$ac_header_compiler" >&6
22306
22307 # Is the header present?
22308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22310 cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316 #include <$ac_header>
22317 _ACEOF
22318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22320   ac_status=$?
22321   grep -v '^ *+' conftest.er1 >conftest.err
22322   rm -f conftest.er1
22323   cat conftest.err >&5
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); } >/dev/null; then
22326   if test -s conftest.err; then
22327     ac_cpp_err=$ac_c_preproc_warn_flag
22328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22329   else
22330     ac_cpp_err=
22331   fi
22332 else
22333   ac_cpp_err=yes
22334 fi
22335 if test -z "$ac_cpp_err"; then
22336   ac_header_preproc=yes
22337 else
22338   echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22340
22341   ac_header_preproc=no
22342 fi
22343 rm -f conftest.err conftest.$ac_ext
22344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22345 echo "${ECHO_T}$ac_header_preproc" >&6
22346
22347 # So?  What about this header?
22348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22349   yes:no: )
22350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22354     ac_header_preproc=yes
22355     ;;
22356   no:yes:* )
22357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22369     (
22370       cat <<\_ASBOX
22371 ## ---------------------------------- ##
22372 ## Report this to bug-libtool@gnu.org ##
22373 ## ---------------------------------- ##
22374 _ASBOX
22375     ) |
22376       sed "s/^/$as_me: WARNING:     /" >&2
22377     ;;
22378 esac
22379 echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384   eval "$as_ac_Header=\$ac_header_preproc"
22385 fi
22386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22388
22389 fi
22390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22391   cat >>confdefs.h <<_ACEOF
22392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22393 _ACEOF
22394  break
22395 fi
22396
22397 done
22398
22399
22400
22401
22402 for ac_func in strchr index
22403 do
22404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22405 echo "$as_me:$LINENO: checking for $ac_func" >&5
22406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22407 if eval "test \"\${$as_ac_var+set}\" = set"; then
22408   echo $ECHO_N "(cached) $ECHO_C" >&6
22409 else
22410   cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22418 #define $ac_func innocuous_$ac_func
22419
22420 /* System header to define __stub macros and hopefully few prototypes,
22421     which can conflict with char $ac_func (); below.
22422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22423     <limits.h> exists even on freestanding compilers.  */
22424
22425 #ifdef __STDC__
22426 # include <limits.h>
22427 #else
22428 # include <assert.h>
22429 #endif
22430
22431 #undef $ac_func
22432
22433 /* Override any gcc2 internal prototype to avoid an error.  */
22434 #ifdef __cplusplus
22435 extern "C"
22436 {
22437 #endif
22438 /* We use char because int might match the return type of a gcc2
22439    builtin and then its argument prototype would still apply.  */
22440 char $ac_func ();
22441 /* The GNU C library defines this for functions which it implements
22442     to always fail with ENOSYS.  Some functions are actually named
22443     something starting with __ and the normal name is an alias.  */
22444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22445 choke me
22446 #else
22447 char (*f) () = $ac_func;
22448 #endif
22449 #ifdef __cplusplus
22450 }
22451 #endif
22452
22453 int
22454 main ()
22455 {
22456 return f != $ac_func;
22457   ;
22458   return 0;
22459 }
22460 _ACEOF
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22463   (eval $ac_link) 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } &&
22470          { ac_try='test -z "$ac_c_werror_flag"
22471                          || test ! -s conftest.err'
22472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473   (eval $ac_try) 2>&5
22474   ac_status=$?
22475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476   (exit $ac_status); }; } &&
22477          { ac_try='test -s conftest$ac_exeext'
22478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479   (eval $ac_try) 2>&5
22480   ac_status=$?
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); }; }; then
22483   eval "$as_ac_var=yes"
22484 else
22485   echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488 eval "$as_ac_var=no"
22489 fi
22490 rm -f conftest.err conftest.$ac_objext \
22491       conftest$ac_exeext conftest.$ac_ext
22492 fi
22493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22495 if test `eval echo '${'$as_ac_var'}'` = yes; then
22496   cat >>confdefs.h <<_ACEOF
22497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22498 _ACEOF
22499  break
22500 fi
22501 done
22502
22503
22504
22505 for ac_func in strrchr rindex
22506 do
22507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22508 echo "$as_me:$LINENO: checking for $ac_func" >&5
22509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_var+set}\" = set"; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22521 #define $ac_func innocuous_$ac_func
22522
22523 /* System header to define __stub macros and hopefully few prototypes,
22524     which can conflict with char $ac_func (); below.
22525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22526     <limits.h> exists even on freestanding compilers.  */
22527
22528 #ifdef __STDC__
22529 # include <limits.h>
22530 #else
22531 # include <assert.h>
22532 #endif
22533
22534 #undef $ac_func
22535
22536 /* Override any gcc2 internal prototype to avoid an error.  */
22537 #ifdef __cplusplus
22538 extern "C"
22539 {
22540 #endif
22541 /* We use char because int might match the return type of a gcc2
22542    builtin and then its argument prototype would still apply.  */
22543 char $ac_func ();
22544 /* The GNU C library defines this for functions which it implements
22545     to always fail with ENOSYS.  Some functions are actually named
22546     something starting with __ and the normal name is an alias.  */
22547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22548 choke me
22549 #else
22550 char (*f) () = $ac_func;
22551 #endif
22552 #ifdef __cplusplus
22553 }
22554 #endif
22555
22556 int
22557 main ()
22558 {
22559 return f != $ac_func;
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566   (eval $ac_link) 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } &&
22573          { ac_try='test -z "$ac_c_werror_flag"
22574                          || test ! -s conftest.err'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; } &&
22580          { ac_try='test -s conftest$ac_exeext'
22581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582   (eval $ac_try) 2>&5
22583   ac_status=$?
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); }; }; then
22586   eval "$as_ac_var=yes"
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 eval "$as_ac_var=no"
22592 fi
22593 rm -f conftest.err conftest.$ac_objext \
22594       conftest$ac_exeext conftest.$ac_ext
22595 fi
22596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22598 if test `eval echo '${'$as_ac_var'}'` = yes; then
22599   cat >>confdefs.h <<_ACEOF
22600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22601 _ACEOF
22602  break
22603 fi
22604 done
22605
22606
22607
22608 for ac_func in memcpy bcopy
22609 do
22610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22611 echo "$as_me:$LINENO: checking for $ac_func" >&5
22612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22613 if eval "test \"\${$as_ac_var+set}\" = set"; then
22614   echo $ECHO_N "(cached) $ECHO_C" >&6
22615 else
22616   cat >conftest.$ac_ext <<_ACEOF
22617 /* confdefs.h.  */
22618 _ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h.  */
22622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22624 #define $ac_func innocuous_$ac_func
22625
22626 /* System header to define __stub macros and hopefully few prototypes,
22627     which can conflict with char $ac_func (); below.
22628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22629     <limits.h> exists even on freestanding compilers.  */
22630
22631 #ifdef __STDC__
22632 # include <limits.h>
22633 #else
22634 # include <assert.h>
22635 #endif
22636
22637 #undef $ac_func
22638
22639 /* Override any gcc2 internal prototype to avoid an error.  */
22640 #ifdef __cplusplus
22641 extern "C"
22642 {
22643 #endif
22644 /* We use char because int might match the return type of a gcc2
22645    builtin and then its argument prototype would still apply.  */
22646 char $ac_func ();
22647 /* The GNU C library defines this for functions which it implements
22648     to always fail with ENOSYS.  Some functions are actually named
22649     something starting with __ and the normal name is an alias.  */
22650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22651 choke me
22652 #else
22653 char (*f) () = $ac_func;
22654 #endif
22655 #ifdef __cplusplus
22656 }
22657 #endif
22658
22659 int
22660 main ()
22661 {
22662 return f != $ac_func;
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest.$ac_objext conftest$ac_exeext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22669   (eval $ac_link) 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } &&
22676          { ac_try='test -z "$ac_c_werror_flag"
22677                          || test ! -s conftest.err'
22678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679   (eval $ac_try) 2>&5
22680   ac_status=$?
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); }; } &&
22683          { ac_try='test -s conftest$ac_exeext'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; }; then
22689   eval "$as_ac_var=yes"
22690 else
22691   echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 eval "$as_ac_var=no"
22695 fi
22696 rm -f conftest.err conftest.$ac_objext \
22697       conftest$ac_exeext conftest.$ac_ext
22698 fi
22699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22701 if test `eval echo '${'$as_ac_var'}'` = yes; then
22702   cat >>confdefs.h <<_ACEOF
22703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22704 _ACEOF
22705  break
22706 fi
22707 done
22708
22709
22710
22711 for ac_func in memmove strcmp
22712 do
22713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22714 echo "$as_me:$LINENO: checking for $ac_func" >&5
22715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22716 if eval "test \"\${$as_ac_var+set}\" = set"; then
22717   echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719   cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22727 #define $ac_func innocuous_$ac_func
22728
22729 /* System header to define __stub macros and hopefully few prototypes,
22730     which can conflict with char $ac_func (); below.
22731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22732     <limits.h> exists even on freestanding compilers.  */
22733
22734 #ifdef __STDC__
22735 # include <limits.h>
22736 #else
22737 # include <assert.h>
22738 #endif
22739
22740 #undef $ac_func
22741
22742 /* Override any gcc2 internal prototype to avoid an error.  */
22743 #ifdef __cplusplus
22744 extern "C"
22745 {
22746 #endif
22747 /* We use char because int might match the return type of a gcc2
22748    builtin and then its argument prototype would still apply.  */
22749 char $ac_func ();
22750 /* The GNU C library defines this for functions which it implements
22751     to always fail with ENOSYS.  Some functions are actually named
22752     something starting with __ and the normal name is an alias.  */
22753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22754 choke me
22755 #else
22756 char (*f) () = $ac_func;
22757 #endif
22758 #ifdef __cplusplus
22759 }
22760 #endif
22761
22762 int
22763 main ()
22764 {
22765 return f != $ac_func;
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 rm -f conftest.$ac_objext conftest$ac_exeext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22772   (eval $ac_link) 2>conftest.er1
22773   ac_status=$?
22774   grep -v '^ *+' conftest.er1 >conftest.err
22775   rm -f conftest.er1
22776   cat conftest.err >&5
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); } &&
22779          { ac_try='test -z "$ac_c_werror_flag"
22780                          || test ! -s conftest.err'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; } &&
22786          { ac_try='test -s conftest$ac_exeext'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   eval "$as_ac_var=yes"
22793 else
22794   echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 eval "$as_ac_var=no"
22798 fi
22799 rm -f conftest.err conftest.$ac_objext \
22800       conftest$ac_exeext conftest.$ac_ext
22801 fi
22802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22804 if test `eval echo '${'$as_ac_var'}'` = yes; then
22805   cat >>confdefs.h <<_ACEOF
22806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22807 _ACEOF
22808
22809 fi
22810 done
22811
22812
22813
22814
22815 for ac_func in closedir opendir readdir
22816 do
22817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22818 echo "$as_me:$LINENO: checking for $ac_func" >&5
22819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22820 if eval "test \"\${$as_ac_var+set}\" = set"; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22831 #define $ac_func innocuous_$ac_func
22832
22833 /* System header to define __stub macros and hopefully few prototypes,
22834     which can conflict with char $ac_func (); below.
22835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22836     <limits.h> exists even on freestanding compilers.  */
22837
22838 #ifdef __STDC__
22839 # include <limits.h>
22840 #else
22841 # include <assert.h>
22842 #endif
22843
22844 #undef $ac_func
22845
22846 /* Override any gcc2 internal prototype to avoid an error.  */
22847 #ifdef __cplusplus
22848 extern "C"
22849 {
22850 #endif
22851 /* We use char because int might match the return type of a gcc2
22852    builtin and then its argument prototype would still apply.  */
22853 char $ac_func ();
22854 /* The GNU C library defines this for functions which it implements
22855     to always fail with ENOSYS.  Some functions are actually named
22856     something starting with __ and the normal name is an alias.  */
22857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22858 choke me
22859 #else
22860 char (*f) () = $ac_func;
22861 #endif
22862 #ifdef __cplusplus
22863 }
22864 #endif
22865
22866 int
22867 main ()
22868 {
22869 return f != $ac_func;
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22876   (eval $ac_link) 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } &&
22883          { ac_try='test -z "$ac_c_werror_flag"
22884                          || test ! -s conftest.err'
22885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886   (eval $ac_try) 2>&5
22887   ac_status=$?
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); }; } &&
22890          { ac_try='test -s conftest$ac_exeext'
22891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892   (eval $ac_try) 2>&5
22893   ac_status=$?
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); }; }; then
22896   eval "$as_ac_var=yes"
22897 else
22898   echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 eval "$as_ac_var=no"
22902 fi
22903 rm -f conftest.err conftest.$ac_objext \
22904       conftest$ac_exeext conftest.$ac_ext
22905 fi
22906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22908 if test `eval echo '${'$as_ac_var'}'` = yes; then
22909   cat >>confdefs.h <<_ACEOF
22910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22911 _ACEOF
22912
22913 fi
22914 done
22915
22916
22917
22918
22919 ## -------- ##
22920 ## Outputs. ##
22921 ## -------- ##
22922           ac_config_files="$ac_config_files Makefile"
22923
22924 cat >confcache <<\_ACEOF
22925 # This file is a shell script that caches the results of configure
22926 # tests run on this system so they can be shared between configure
22927 # scripts and configure runs, see configure's option --config-cache.
22928 # It is not useful on other systems.  If it contains results you don't
22929 # want to keep, you may remove or edit it.
22930 #
22931 # config.status only pays attention to the cache file if you give it
22932 # the --recheck option to rerun configure.
22933 #
22934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22936 # following values.
22937
22938 _ACEOF
22939
22940 # The following way of writing the cache mishandles newlines in values,
22941 # but we know of no workaround that is simple, portable, and efficient.
22942 # So, don't put newlines in cache variables' values.
22943 # Ultrix sh set writes to stderr and can't be redirected directly,
22944 # and sets the high bit in the cache file unless we assign to the vars.
22945 {
22946   (set) 2>&1 |
22947     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22948     *ac_space=\ *)
22949       # `set' does not quote correctly, so add quotes (double-quote
22950       # substitution turns \\\\ into \\, and sed turns \\ into \).
22951       sed -n \
22952         "s/'/'\\\\''/g;
22953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22954       ;;
22955     *)
22956       # `set' quotes correctly as required by POSIX, so do not add quotes.
22957       sed -n \
22958         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22959       ;;
22960     esac;
22961 } |
22962   sed '
22963      t clear
22964      : clear
22965      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22966      t end
22967      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22968      : end' >>confcache
22969 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22970   if test -w $cache_file; then
22971     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22972     cat confcache >$cache_file
22973   else
22974     echo "not updating unwritable cache $cache_file"
22975   fi
22976 fi
22977 rm -f confcache
22978
22979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22980 # Let make expand exec_prefix.
22981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22982
22983 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22984 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22985 # trailing colons and then remove the whole line if VPATH becomes empty
22986 # (actually we leave an empty line to preserve line numbers).
22987 if test "x$srcdir" = x.; then
22988   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22989 s/:*\$(srcdir):*/:/;
22990 s/:*\${srcdir}:*/:/;
22991 s/:*@srcdir@:*/:/;
22992 s/^\([^=]*=[     ]*\):*/\1/;
22993 s/:*$//;
22994 s/^[^=]*=[       ]*$//;
22995 }'
22996 fi
22997
22998 DEFS=-DHAVE_CONFIG_H
22999
23000 ac_libobjs=
23001 ac_ltlibobjs=
23002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23003   # 1. Remove the extension, and $U if already installed.
23004   ac_i=`echo "$ac_i" |
23005          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23006   # 2. Add them.
23007   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23008   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23009 done
23010 LIBOBJS=$ac_libobjs
23011
23012 LTLIBOBJS=$ac_ltlibobjs
23013
23014
23015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23016   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23017 Usually this means the macro was only invoked conditionally." >&5
23018 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23019 Usually this means the macro was only invoked conditionally." >&2;}
23020    { (exit 1); exit 1; }; }
23021 fi
23022 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23023   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23024 Usually this means the macro was only invoked conditionally." >&5
23025 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23026 Usually this means the macro was only invoked conditionally." >&2;}
23027    { (exit 1); exit 1; }; }
23028 fi
23029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23030   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23031 Usually this means the macro was only invoked conditionally." >&5
23032 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23033 Usually this means the macro was only invoked conditionally." >&2;}
23034    { (exit 1); exit 1; }; }
23035 fi
23036 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23037   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23038 Usually this means the macro was only invoked conditionally." >&5
23039 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23040 Usually this means the macro was only invoked conditionally." >&2;}
23041    { (exit 1); exit 1; }; }
23042 fi
23043 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23044   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23045 Usually this means the macro was only invoked conditionally." >&5
23046 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23047 Usually this means the macro was only invoked conditionally." >&2;}
23048    { (exit 1); exit 1; }; }
23049 fi
23050 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23051   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23052 Usually this means the macro was only invoked conditionally." >&5
23053 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23054 Usually this means the macro was only invoked conditionally." >&2;}
23055    { (exit 1); exit 1; }; }
23056 fi
23057
23058 : ${CONFIG_STATUS=./config.status}
23059 ac_clean_files_save=$ac_clean_files
23060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23063 cat >$CONFIG_STATUS <<_ACEOF
23064 #! $SHELL
23065 # Generated by $as_me.
23066 # Run this file to recreate the current configuration.
23067 # Compiler output produced by configure, useful for debugging
23068 # configure, is in config.log if it exists.
23069
23070 debug=false
23071 ac_cs_recheck=false
23072 ac_cs_silent=false
23073 SHELL=\${CONFIG_SHELL-$SHELL}
23074 _ACEOF
23075
23076 cat >>$CONFIG_STATUS <<\_ACEOF
23077 ## --------------------- ##
23078 ## M4sh Initialization.  ##
23079 ## --------------------- ##
23080
23081 # Be Bourne compatible
23082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23083   emulate sh
23084   NULLCMD=:
23085   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23086   # is contrary to our usage.  Disable this feature.
23087   alias -g '${1+"$@"}'='"$@"'
23088 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23089   set -o posix
23090 fi
23091 DUALCASE=1; export DUALCASE # for MKS sh
23092
23093 # Support unset when possible.
23094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23095   as_unset=unset
23096 else
23097   as_unset=false
23098 fi
23099
23100
23101 # Work around bugs in pre-3.0 UWIN ksh.
23102 $as_unset ENV MAIL MAILPATH
23103 PS1='$ '
23104 PS2='> '
23105 PS4='+ '
23106
23107 # NLS nuisances.
23108 for as_var in \
23109   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23110   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23111   LC_TELEPHONE LC_TIME
23112 do
23113   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23114     eval $as_var=C; export $as_var
23115   else
23116     $as_unset $as_var
23117   fi
23118 done
23119
23120 # Required to use basename.
23121 if expr a : '\(a\)' >/dev/null 2>&1; then
23122   as_expr=expr
23123 else
23124   as_expr=false
23125 fi
23126
23127 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23128   as_basename=basename
23129 else
23130   as_basename=false
23131 fi
23132
23133
23134 # Name of the executable.
23135 as_me=`$as_basename "$0" ||
23136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23137          X"$0" : 'X\(//\)$' \| \
23138          X"$0" : 'X\(/\)$' \| \
23139          .     : '\(.\)' 2>/dev/null ||
23140 echo X/"$0" |
23141     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23142           /^X\/\(\/\/\)$/{ s//\1/; q; }
23143           /^X\/\(\/\).*/{ s//\1/; q; }
23144           s/.*/./; q'`
23145
23146
23147 # PATH needs CR, and LINENO needs CR and PATH.
23148 # Avoid depending upon Character Ranges.
23149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23152 as_cr_digits='0123456789'
23153 as_cr_alnum=$as_cr_Letters$as_cr_digits
23154
23155 # The user is always right.
23156 if test "${PATH_SEPARATOR+set}" != set; then
23157   echo "#! /bin/sh" >conf$$.sh
23158   echo  "exit 0"   >>conf$$.sh
23159   chmod +x conf$$.sh
23160   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23161     PATH_SEPARATOR=';'
23162   else
23163     PATH_SEPARATOR=:
23164   fi
23165   rm -f conf$$.sh
23166 fi
23167
23168
23169   as_lineno_1=$LINENO
23170   as_lineno_2=$LINENO
23171   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23172   test "x$as_lineno_1" != "x$as_lineno_2" &&
23173   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23174   # Find who we are.  Look in the path if we contain no path at all
23175   # relative or not.
23176   case $0 in
23177     *[\\/]* ) as_myself=$0 ;;
23178     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179 for as_dir in $PATH
23180 do
23181   IFS=$as_save_IFS
23182   test -z "$as_dir" && as_dir=.
23183   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23184 done
23185
23186        ;;
23187   esac
23188   # We did not find ourselves, most probably we were run as `sh COMMAND'
23189   # in which case we are not to be found in the path.
23190   if test "x$as_myself" = x; then
23191     as_myself=$0
23192   fi
23193   if test ! -f "$as_myself"; then
23194     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23196    { (exit 1); exit 1; }; }
23197   fi
23198   case $CONFIG_SHELL in
23199   '')
23200     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23202 do
23203   IFS=$as_save_IFS
23204   test -z "$as_dir" && as_dir=.
23205   for as_base in sh bash ksh sh5; do
23206          case $as_dir in
23207          /*)
23208            if ("$as_dir/$as_base" -c '
23209   as_lineno_1=$LINENO
23210   as_lineno_2=$LINENO
23211   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23212   test "x$as_lineno_1" != "x$as_lineno_2" &&
23213   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23214              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23215              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23216              CONFIG_SHELL=$as_dir/$as_base
23217              export CONFIG_SHELL
23218              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23219            fi;;
23220          esac
23221        done
23222 done
23223 ;;
23224   esac
23225
23226   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23227   # uniformly replaced by the line number.  The first 'sed' inserts a
23228   # line-number line before each line; the second 'sed' does the real
23229   # work.  The second script uses 'N' to pair each line-number line
23230   # with the numbered line, and appends trailing '-' during
23231   # substitution so that $LINENO is not a special case at line end.
23232   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23233   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23234   sed '=' <$as_myself |
23235     sed '
23236       N
23237       s,$,-,
23238       : loop
23239       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23240       t loop
23241       s,-$,,
23242       s,^['$as_cr_digits']*\n,,
23243     ' >$as_me.lineno &&
23244   chmod +x $as_me.lineno ||
23245     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23246 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23247    { (exit 1); exit 1; }; }
23248
23249   # Don't try to exec as it changes $[0], causing all sort of problems
23250   # (the dirname of $[0] is not the place where we might find the
23251   # original and so on.  Autoconf is especially sensible to this).
23252   . ./$as_me.lineno
23253   # Exit status is that of the last command.
23254   exit
23255 }
23256
23257
23258 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23259   *c*,-n*) ECHO_N= ECHO_C='
23260 ' ECHO_T='      ' ;;
23261   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23262   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23263 esac
23264
23265 if expr a : '\(a\)' >/dev/null 2>&1; then
23266   as_expr=expr
23267 else
23268   as_expr=false
23269 fi
23270
23271 rm -f conf$$ conf$$.exe conf$$.file
23272 echo >conf$$.file
23273 if ln -s conf$$.file conf$$ 2>/dev/null; then
23274   # We could just check for DJGPP; but this test a) works b) is more generic
23275   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23276   if test -f conf$$.exe; then
23277     # Don't use ln at all; we don't have any links
23278     as_ln_s='cp -p'
23279   else
23280     as_ln_s='ln -s'
23281   fi
23282 elif ln conf$$.file conf$$ 2>/dev/null; then
23283   as_ln_s=ln
23284 else
23285   as_ln_s='cp -p'
23286 fi
23287 rm -f conf$$ conf$$.exe conf$$.file
23288
23289 if mkdir -p . 2>/dev/null; then
23290   as_mkdir_p=:
23291 else
23292   test -d ./-p && rmdir ./-p
23293   as_mkdir_p=false
23294 fi
23295
23296 as_executable_p="test -f"
23297
23298 # Sed expression to map a string onto a valid CPP name.
23299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23300
23301 # Sed expression to map a string onto a valid variable name.
23302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23303
23304
23305 # IFS
23306 # We need space, tab and new line, in precisely that order.
23307 as_nl='
23308 '
23309 IFS="   $as_nl"
23310
23311 # CDPATH.
23312 $as_unset CDPATH
23313
23314 exec 6>&1
23315
23316 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23317 # report actual input values of CONFIG_FILES etc. instead of their
23318 # values after options handling.  Logging --version etc. is OK.
23319 exec 5>>config.log
23320 {
23321   echo
23322   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23323 ## Running $as_me. ##
23324 _ASBOX
23325 } >&5
23326 cat >&5 <<_CSEOF
23327
23328 This file was extended by libltdl $as_me 1.2, which was
23329 generated by GNU Autoconf 2.59.  Invocation command line was
23330
23331   CONFIG_FILES    = $CONFIG_FILES
23332   CONFIG_HEADERS  = $CONFIG_HEADERS
23333   CONFIG_LINKS    = $CONFIG_LINKS
23334   CONFIG_COMMANDS = $CONFIG_COMMANDS
23335   $ $0 $@
23336
23337 _CSEOF
23338 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23339 echo >&5
23340 _ACEOF
23341
23342 # Files that config.status was made for.
23343 if test -n "$ac_config_files"; then
23344   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23345 fi
23346
23347 if test -n "$ac_config_headers"; then
23348   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23349 fi
23350
23351 if test -n "$ac_config_links"; then
23352   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23353 fi
23354
23355 if test -n "$ac_config_commands"; then
23356   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23357 fi
23358
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360
23361 ac_cs_usage="\
23362 \`$as_me' instantiates files from templates according to the
23363 current configuration.
23364
23365 Usage: $0 [OPTIONS] [FILE]...
23366
23367   -h, --help       print this help, then exit
23368   -V, --version    print version number, then exit
23369   -q, --quiet      do not print progress messages
23370   -d, --debug      don't remove temporary files
23371       --recheck    update $as_me by reconfiguring in the same conditions
23372   --file=FILE[:TEMPLATE]
23373                    instantiate the configuration file FILE
23374   --header=FILE[:TEMPLATE]
23375                    instantiate the configuration header FILE
23376
23377 Configuration files:
23378 $config_files
23379
23380 Configuration headers:
23381 $config_headers
23382
23383 Configuration commands:
23384 $config_commands
23385
23386 Report bugs to <bug-autoconf@gnu.org>."
23387 _ACEOF
23388
23389 cat >>$CONFIG_STATUS <<_ACEOF
23390 ac_cs_version="\\
23391 libltdl config.status 1.2
23392 configured by $0, generated by GNU Autoconf 2.59,
23393   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23394
23395 Copyright (C) 2003 Free Software Foundation, Inc.
23396 This config.status script is free software; the Free Software Foundation
23397 gives unlimited permission to copy, distribute and modify it."
23398 srcdir=$srcdir
23399 INSTALL="$INSTALL"
23400 _ACEOF
23401
23402 cat >>$CONFIG_STATUS <<\_ACEOF
23403 # If no file are specified by the user, then we need to provide default
23404 # value.  By we need to know if files were specified by the user.
23405 ac_need_defaults=:
23406 while test $# != 0
23407 do
23408   case $1 in
23409   --*=*)
23410     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23411     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23412     ac_shift=:
23413     ;;
23414   -*)
23415     ac_option=$1
23416     ac_optarg=$2
23417     ac_shift=shift
23418     ;;
23419   *) # This is not an option, so the user has probably given explicit
23420      # arguments.
23421      ac_option=$1
23422      ac_need_defaults=false;;
23423   esac
23424
23425   case $ac_option in
23426   # Handling of the options.
23427 _ACEOF
23428 cat >>$CONFIG_STATUS <<\_ACEOF
23429   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23430     ac_cs_recheck=: ;;
23431   --version | --vers* | -V )
23432     echo "$ac_cs_version"; exit 0 ;;
23433   --he | --h)
23434     # Conflict between --help and --header
23435     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23436 Try \`$0 --help' for more information." >&5
23437 echo "$as_me: error: ambiguous option: $1
23438 Try \`$0 --help' for more information." >&2;}
23439    { (exit 1); exit 1; }; };;
23440   --help | --hel | -h )
23441     echo "$ac_cs_usage"; exit 0 ;;
23442   --debug | --d* | -d )
23443     debug=: ;;
23444   --file | --fil | --fi | --f )
23445     $ac_shift
23446     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23447     ac_need_defaults=false;;
23448   --header | --heade | --head | --hea )
23449     $ac_shift
23450     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23451     ac_need_defaults=false;;
23452   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23453   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23454     ac_cs_silent=: ;;
23455
23456   # This is an error.
23457   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23458 Try \`$0 --help' for more information." >&5
23459 echo "$as_me: error: unrecognized option: $1
23460 Try \`$0 --help' for more information." >&2;}
23461    { (exit 1); exit 1; }; } ;;
23462
23463   *) ac_config_targets="$ac_config_targets $1" ;;
23464
23465   esac
23466   shift
23467 done
23468
23469 ac_configure_extra_args=
23470
23471 if $ac_cs_silent; then
23472   exec 6>/dev/null
23473   ac_configure_extra_args="$ac_configure_extra_args --silent"
23474 fi
23475
23476 _ACEOF
23477 cat >>$CONFIG_STATUS <<_ACEOF
23478 if \$ac_cs_recheck; then
23479   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23480   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23481 fi
23482
23483 _ACEOF
23484
23485 cat >>$CONFIG_STATUS <<_ACEOF
23486 #
23487 # INIT-COMMANDS section.
23488 #
23489
23490
23491 srcdir="$srcdir"
23492 host="$host"
23493 target="$target"
23494 with_multisubdir="$with_multisubdir"
23495 with_multisrctop="$with_multisrctop"
23496 with_target_subdir="$with_target_subdir"
23497 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23498 multi_basedir="$multi_basedir"
23499 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23500 CC="$CC"
23501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23502
23503 _ACEOF
23504
23505
23506
23507 cat >>$CONFIG_STATUS <<\_ACEOF
23508 for ac_config_target in $ac_config_targets
23509 do
23510   case "$ac_config_target" in
23511   # Handling of arguments.
23512   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23513   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23514   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23515   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23516   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23517 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23518    { (exit 1); exit 1; }; };;
23519   esac
23520 done
23521
23522 # If the user did not use the arguments to specify the items to instantiate,
23523 # then the envvar interface is used.  Set only those that are not.
23524 # We use the long form for the default assignment because of an extremely
23525 # bizarre bug on SunOS 4.1.3.
23526 if $ac_need_defaults; then
23527   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23528   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23529   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23530 fi
23531
23532 # Have a temporary directory for convenience.  Make it in the build tree
23533 # simply because there is no reason to put it here, and in addition,
23534 # creating and moving files from /tmp can sometimes cause problems.
23535 # Create a temporary directory, and hook for its removal unless debugging.
23536 $debug ||
23537 {
23538   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23539   trap '{ (exit 1); exit 1; }' 1 2 13 15
23540 }
23541
23542 # Create a (secure) tmp directory for tmp files.
23543
23544 {
23545   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23546   test -n "$tmp" && test -d "$tmp"
23547 }  ||
23548 {
23549   tmp=./confstat$$-$RANDOM
23550   (umask 077 && mkdir $tmp)
23551 } ||
23552 {
23553    echo "$me: cannot create a temporary directory in ." >&2
23554    { (exit 1); exit 1; }
23555 }
23556
23557 _ACEOF
23558
23559 cat >>$CONFIG_STATUS <<_ACEOF
23560
23561 #
23562 # CONFIG_FILES section.
23563 #
23564
23565 # No need to generate the scripts if there are no CONFIG_FILES.
23566 # This happens for instance when ./config.status config.h
23567 if test -n "\$CONFIG_FILES"; then
23568   # Protect against being on the right side of a sed subst in config.status.
23569   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23570    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23571 s,@SHELL@,$SHELL,;t t
23572 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23573 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23574 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23575 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23576 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23577 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23578 s,@exec_prefix@,$exec_prefix,;t t
23579 s,@prefix@,$prefix,;t t
23580 s,@program_transform_name@,$program_transform_name,;t t
23581 s,@bindir@,$bindir,;t t
23582 s,@sbindir@,$sbindir,;t t
23583 s,@libexecdir@,$libexecdir,;t t
23584 s,@datadir@,$datadir,;t t
23585 s,@sysconfdir@,$sysconfdir,;t t
23586 s,@sharedstatedir@,$sharedstatedir,;t t
23587 s,@localstatedir@,$localstatedir,;t t
23588 s,@libdir@,$libdir,;t t
23589 s,@includedir@,$includedir,;t t
23590 s,@oldincludedir@,$oldincludedir,;t t
23591 s,@infodir@,$infodir,;t t
23592 s,@mandir@,$mandir,;t t
23593 s,@build_alias@,$build_alias,;t t
23594 s,@host_alias@,$host_alias,;t t
23595 s,@target_alias@,$target_alias,;t t
23596 s,@DEFS@,$DEFS,;t t
23597 s,@ECHO_C@,$ECHO_C,;t t
23598 s,@ECHO_N@,$ECHO_N,;t t
23599 s,@ECHO_T@,$ECHO_T,;t t
23600 s,@LIBS@,$LIBS,;t t
23601 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23602 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23603 s,@MAINT@,$MAINT,;t t
23604 s,@multi_basedir@,$multi_basedir,;t t
23605 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23606 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23607 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23608 s,@CYGPATH_W@,$CYGPATH_W,;t t
23609 s,@PACKAGE@,$PACKAGE,;t t
23610 s,@VERSION@,$VERSION,;t t
23611 s,@ACLOCAL@,$ACLOCAL,;t t
23612 s,@AUTOCONF@,$AUTOCONF,;t t
23613 s,@AUTOMAKE@,$AUTOMAKE,;t t
23614 s,@AUTOHEADER@,$AUTOHEADER,;t t
23615 s,@MAKEINFO@,$MAKEINFO,;t t
23616 s,@install_sh@,$install_sh,;t t
23617 s,@STRIP@,$STRIP,;t t
23618 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23619 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23620 s,@mkdir_p@,$mkdir_p,;t t
23621 s,@AWK@,$AWK,;t t
23622 s,@SET_MAKE@,$SET_MAKE,;t t
23623 s,@am__leading_dot@,$am__leading_dot,;t t
23624 s,@AMTAR@,$AMTAR,;t t
23625 s,@am__tar@,$am__tar,;t t
23626 s,@am__untar@,$am__untar,;t t
23627 s,@CC@,$CC,;t t
23628 s,@CFLAGS@,$CFLAGS,;t t
23629 s,@LDFLAGS@,$LDFLAGS,;t t
23630 s,@CPPFLAGS@,$CPPFLAGS,;t t
23631 s,@ac_ct_CC@,$ac_ct_CC,;t t
23632 s,@EXEEXT@,$EXEEXT,;t t
23633 s,@OBJEXT@,$OBJEXT,;t t
23634 s,@DEPDIR@,$DEPDIR,;t t
23635 s,@am__include@,$am__include,;t t
23636 s,@am__quote@,$am__quote,;t t
23637 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23638 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23639 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23640 s,@CCDEPMODE@,$CCDEPMODE,;t t
23641 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23642 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23643 s,@build@,$build,;t t
23644 s,@build_cpu@,$build_cpu,;t t
23645 s,@build_vendor@,$build_vendor,;t t
23646 s,@build_os@,$build_os,;t t
23647 s,@host@,$host,;t t
23648 s,@host_cpu@,$host_cpu,;t t
23649 s,@host_vendor@,$host_vendor,;t t
23650 s,@host_os@,$host_os,;t t
23651 s,@EGREP@,$EGREP,;t t
23652 s,@LN_S@,$LN_S,;t t
23653 s,@ECHO@,$ECHO,;t t
23654 s,@AR@,$AR,;t t
23655 s,@ac_ct_AR@,$ac_ct_AR,;t t
23656 s,@RANLIB@,$RANLIB,;t t
23657 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23658 s,@DLLTOOL@,$DLLTOOL,;t t
23659 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23660 s,@AS@,$AS,;t t
23661 s,@ac_ct_AS@,$ac_ct_AS,;t t
23662 s,@OBJDUMP@,$OBJDUMP,;t t
23663 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23664 s,@CPP@,$CPP,;t t
23665 s,@CXX@,$CXX,;t t
23666 s,@CXXFLAGS@,$CXXFLAGS,;t t
23667 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23668 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23669 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23670 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23671 s,@CXXCPP@,$CXXCPP,;t t
23672 s,@F77@,$F77,;t t
23673 s,@FFLAGS@,$FFLAGS,;t t
23674 s,@ac_ct_F77@,$ac_ct_F77,;t t
23675 s,@LIBTOOL@,$LIBTOOL,;t t
23676 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23677 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23678 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23679 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23680 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23681 s,@LIBADD_DL@,$LIBADD_DL,;t t
23682 s,@LIBOBJS@,$LIBOBJS,;t t
23683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23684 CEOF
23685
23686 _ACEOF
23687
23688   cat >>$CONFIG_STATUS <<\_ACEOF
23689   # Split the substitutions into bite-sized pieces for seds with
23690   # small command number limits, like on Digital OSF/1 and HP-UX.
23691   ac_max_sed_lines=48
23692   ac_sed_frag=1 # Number of current file.
23693   ac_beg=1 # First line for current file.
23694   ac_end=$ac_max_sed_lines # Line after last line for current file.
23695   ac_more_lines=:
23696   ac_sed_cmds=
23697   while $ac_more_lines; do
23698     if test $ac_beg -gt 1; then
23699       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23700     else
23701       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23702     fi
23703     if test ! -s $tmp/subs.frag; then
23704       ac_more_lines=false
23705     else
23706       # The purpose of the label and of the branching condition is to
23707       # speed up the sed processing (if there are no `@' at all, there
23708       # is no need to browse any of the substitutions).
23709       # These are the two extra sed commands mentioned above.
23710       (echo ':t
23711   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23712       if test -z "$ac_sed_cmds"; then
23713         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23714       else
23715         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23716       fi
23717       ac_sed_frag=`expr $ac_sed_frag + 1`
23718       ac_beg=$ac_end
23719       ac_end=`expr $ac_end + $ac_max_sed_lines`
23720     fi
23721   done
23722   if test -z "$ac_sed_cmds"; then
23723     ac_sed_cmds=cat
23724   fi
23725 fi # test -n "$CONFIG_FILES"
23726
23727 _ACEOF
23728 cat >>$CONFIG_STATUS <<\_ACEOF
23729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23730   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23731   case $ac_file in
23732   - | *:- | *:-:* ) # input from stdin
23733         cat >$tmp/stdin
23734         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23735         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23736   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23737         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23738   * )   ac_file_in=$ac_file.in ;;
23739   esac
23740
23741   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23742   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23744          X"$ac_file" : 'X\(//\)[^/]' \| \
23745          X"$ac_file" : 'X\(//\)$' \| \
23746          X"$ac_file" : 'X\(/\)' \| \
23747          .     : '\(.\)' 2>/dev/null ||
23748 echo X"$ac_file" |
23749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23751           /^X\(\/\/\)$/{ s//\1/; q; }
23752           /^X\(\/\).*/{ s//\1/; q; }
23753           s/.*/./; q'`
23754   { if $as_mkdir_p; then
23755     mkdir -p "$ac_dir"
23756   else
23757     as_dir="$ac_dir"
23758     as_dirs=
23759     while test ! -d "$as_dir"; do
23760       as_dirs="$as_dir $as_dirs"
23761       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23763          X"$as_dir" : 'X\(//\)[^/]' \| \
23764          X"$as_dir" : 'X\(//\)$' \| \
23765          X"$as_dir" : 'X\(/\)' \| \
23766          .     : '\(.\)' 2>/dev/null ||
23767 echo X"$as_dir" |
23768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23770           /^X\(\/\/\)$/{ s//\1/; q; }
23771           /^X\(\/\).*/{ s//\1/; q; }
23772           s/.*/./; q'`
23773     done
23774     test ! -n "$as_dirs" || mkdir $as_dirs
23775   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23777    { (exit 1); exit 1; }; }; }
23778
23779   ac_builddir=.
23780
23781 if test "$ac_dir" != .; then
23782   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23783   # A "../" for each directory in $ac_dir_suffix.
23784   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23785 else
23786   ac_dir_suffix= ac_top_builddir=
23787 fi
23788
23789 case $srcdir in
23790   .)  # No --srcdir option.  We are building in place.
23791     ac_srcdir=.
23792     if test -z "$ac_top_builddir"; then
23793        ac_top_srcdir=.
23794     else
23795        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23796     fi ;;
23797   [\\/]* | ?:[\\/]* )  # Absolute path.
23798     ac_srcdir=$srcdir$ac_dir_suffix;
23799     ac_top_srcdir=$srcdir ;;
23800   *) # Relative path.
23801     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23802     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23803 esac
23804
23805 # Do not use `cd foo && pwd` to compute absolute paths, because
23806 # the directories may not exist.
23807 case `pwd` in
23808 .) ac_abs_builddir="$ac_dir";;
23809 *)
23810   case "$ac_dir" in
23811   .) ac_abs_builddir=`pwd`;;
23812   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23813   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23814   esac;;
23815 esac
23816 case $ac_abs_builddir in
23817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23818 *)
23819   case ${ac_top_builddir}. in
23820   .) ac_abs_top_builddir=$ac_abs_builddir;;
23821   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23822   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23823   esac;;
23824 esac
23825 case $ac_abs_builddir in
23826 .) ac_abs_srcdir=$ac_srcdir;;
23827 *)
23828   case $ac_srcdir in
23829   .) ac_abs_srcdir=$ac_abs_builddir;;
23830   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23831   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23832   esac;;
23833 esac
23834 case $ac_abs_builddir in
23835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23836 *)
23837   case $ac_top_srcdir in
23838   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23839   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23840   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23841   esac;;
23842 esac
23843
23844
23845   case $INSTALL in
23846   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23847   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23848   esac
23849
23850   if test x"$ac_file" != x-; then
23851     { echo "$as_me:$LINENO: creating $ac_file" >&5
23852 echo "$as_me: creating $ac_file" >&6;}
23853     rm -f "$ac_file"
23854   fi
23855   # Let's still pretend it is `configure' which instantiates (i.e., don't
23856   # use $as_me), people would be surprised to read:
23857   #    /* config.h.  Generated by config.status.  */
23858   if test x"$ac_file" = x-; then
23859     configure_input=
23860   else
23861     configure_input="$ac_file.  "
23862   fi
23863   configure_input=$configure_input"Generated from `echo $ac_file_in |
23864                                      sed 's,.*/,,'` by configure."
23865
23866   # First look for the input files in the build tree, otherwise in the
23867   # src tree.
23868   ac_file_inputs=`IFS=:
23869     for f in $ac_file_in; do
23870       case $f in
23871       -) echo $tmp/stdin ;;
23872       [\\/$]*)
23873          # Absolute (can't be DOS-style, as IFS=:)
23874          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23875 echo "$as_me: error: cannot find input file: $f" >&2;}
23876    { (exit 1); exit 1; }; }
23877          echo "$f";;
23878       *) # Relative
23879          if test -f "$f"; then
23880            # Build tree
23881            echo "$f"
23882          elif test -f "$srcdir/$f"; then
23883            # Source tree
23884            echo "$srcdir/$f"
23885          else
23886            # /dev/null tree
23887            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23888 echo "$as_me: error: cannot find input file: $f" >&2;}
23889    { (exit 1); exit 1; }; }
23890          fi;;
23891       esac
23892     done` || { (exit 1); exit 1; }
23893 _ACEOF
23894 cat >>$CONFIG_STATUS <<_ACEOF
23895   sed "$ac_vpsub
23896 $extrasub
23897 _ACEOF
23898 cat >>$CONFIG_STATUS <<\_ACEOF
23899 :t
23900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23901 s,@configure_input@,$configure_input,;t t
23902 s,@srcdir@,$ac_srcdir,;t t
23903 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23904 s,@top_srcdir@,$ac_top_srcdir,;t t
23905 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23906 s,@builddir@,$ac_builddir,;t t
23907 s,@abs_builddir@,$ac_abs_builddir,;t t
23908 s,@top_builddir@,$ac_top_builddir,;t t
23909 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23910 s,@INSTALL@,$ac_INSTALL,;t t
23911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23912   rm -f $tmp/stdin
23913   if test x"$ac_file" != x-; then
23914     mv $tmp/out $ac_file
23915   else
23916     cat $tmp/out
23917     rm -f $tmp/out
23918   fi
23919
23920 done
23921 _ACEOF
23922 cat >>$CONFIG_STATUS <<\_ACEOF
23923
23924 #
23925 # CONFIG_HEADER section.
23926 #
23927
23928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23930 #
23931 # ac_d sets the value in "#define NAME VALUE" lines.
23932 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23933 ac_dB='[         ].*$,\1#\2'
23934 ac_dC=' '
23935 ac_dD=',;t'
23936 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23937 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23938 ac_uB='$,\1#\2define\3'
23939 ac_uC=' '
23940 ac_uD=',;t'
23941
23942 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23943   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23944   case $ac_file in
23945   - | *:- | *:-:* ) # input from stdin
23946         cat >$tmp/stdin
23947         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23949   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23951   * )   ac_file_in=$ac_file.in ;;
23952   esac
23953
23954   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23955 echo "$as_me: creating $ac_file" >&6;}
23956
23957   # First look for the input files in the build tree, otherwise in the
23958   # src tree.
23959   ac_file_inputs=`IFS=:
23960     for f in $ac_file_in; do
23961       case $f in
23962       -) echo $tmp/stdin ;;
23963       [\\/$]*)
23964          # Absolute (can't be DOS-style, as IFS=:)
23965          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966 echo "$as_me: error: cannot find input file: $f" >&2;}
23967    { (exit 1); exit 1; }; }
23968          # Do quote $f, to prevent DOS paths from being IFS'd.
23969          echo "$f";;
23970       *) # Relative
23971          if test -f "$f"; then
23972            # Build tree
23973            echo "$f"
23974          elif test -f "$srcdir/$f"; then
23975            # Source tree
23976            echo "$srcdir/$f"
23977          else
23978            # /dev/null tree
23979            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23980 echo "$as_me: error: cannot find input file: $f" >&2;}
23981    { (exit 1); exit 1; }; }
23982          fi;;
23983       esac
23984     done` || { (exit 1); exit 1; }
23985   # Remove the trailing spaces.
23986   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23987
23988 _ACEOF
23989
23990 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23991 # `conftest.undefs', that substitutes the proper values into
23992 # config.h.in to produce config.h.  The first handles `#define'
23993 # templates, and the second `#undef' templates.
23994 # And first: Protect against being on the right side of a sed subst in
23995 # config.status.  Protect against being in an unquoted here document
23996 # in config.status.
23997 rm -f conftest.defines conftest.undefs
23998 # Using a here document instead of a string reduces the quoting nightmare.
23999 # Putting comments in sed scripts is not portable.
24000 #
24001 # `end' is used to avoid that the second main sed command (meant for
24002 # 0-ary CPP macros) applies to n-ary macro definitions.
24003 # See the Autoconf documentation for `clear'.
24004 cat >confdef2sed.sed <<\_ACEOF
24005 s/[\\&,]/\\&/g
24006 s,[\\$`],\\&,g
24007 t clear
24008 : clear
24009 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24010 t end
24011 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24012 : end
24013 _ACEOF
24014 # If some macros were called several times there might be several times
24015 # the same #defines, which is useless.  Nevertheless, we may not want to
24016 # sort them, since we want the *last* AC-DEFINE to be honored.
24017 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24018 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24019 rm -f confdef2sed.sed
24020
24021 # This sed command replaces #undef with comments.  This is necessary, for
24022 # example, in the case of _POSIX_SOURCE, which is predefined and required
24023 # on some systems where configure will not decide to define it.
24024 cat >>conftest.undefs <<\_ACEOF
24025 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24026 _ACEOF
24027
24028 # Break up conftest.defines because some shells have a limit on the size
24029 # of here documents, and old seds have small limits too (100 cmds).
24030 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24031 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24032 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24033 echo '  :' >>$CONFIG_STATUS
24034 rm -f conftest.tail
24035 while grep . conftest.defines >/dev/null
24036 do
24037   # Write a limited-size here document to $tmp/defines.sed.
24038   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24039   # Speed up: don't consider the non `#define' lines.
24040   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24041   # Work around the forget-to-reset-the-flag bug.
24042   echo 't clr' >>$CONFIG_STATUS
24043   echo ': clr' >>$CONFIG_STATUS
24044   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24045   echo 'CEOF
24046   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24047   rm -f $tmp/in
24048   mv $tmp/out $tmp/in
24049 ' >>$CONFIG_STATUS
24050   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24051   rm -f conftest.defines
24052   mv conftest.tail conftest.defines
24053 done
24054 rm -f conftest.defines
24055 echo '  fi # grep' >>$CONFIG_STATUS
24056 echo >>$CONFIG_STATUS
24057
24058 # Break up conftest.undefs because some shells have a limit on the size
24059 # of here documents, and old seds have small limits too (100 cmds).
24060 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24061 rm -f conftest.tail
24062 while grep . conftest.undefs >/dev/null
24063 do
24064   # Write a limited-size here document to $tmp/undefs.sed.
24065   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24066   # Speed up: don't consider the non `#undef'
24067   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24068   # Work around the forget-to-reset-the-flag bug.
24069   echo 't clr' >>$CONFIG_STATUS
24070   echo ': clr' >>$CONFIG_STATUS
24071   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24072   echo 'CEOF
24073   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24074   rm -f $tmp/in
24075   mv $tmp/out $tmp/in
24076 ' >>$CONFIG_STATUS
24077   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24078   rm -f conftest.undefs
24079   mv conftest.tail conftest.undefs
24080 done
24081 rm -f conftest.undefs
24082
24083 cat >>$CONFIG_STATUS <<\_ACEOF
24084   # Let's still pretend it is `configure' which instantiates (i.e., don't
24085   # use $as_me), people would be surprised to read:
24086   #    /* config.h.  Generated by config.status.  */
24087   if test x"$ac_file" = x-; then
24088     echo "/* Generated by configure.  */" >$tmp/config.h
24089   else
24090     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24091   fi
24092   cat $tmp/in >>$tmp/config.h
24093   rm -f $tmp/in
24094   if test x"$ac_file" != x-; then
24095     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24096       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24097 echo "$as_me: $ac_file is unchanged" >&6;}
24098     else
24099       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101          X"$ac_file" : 'X\(//\)[^/]' \| \
24102          X"$ac_file" : 'X\(//\)$' \| \
24103          X"$ac_file" : 'X\(/\)' \| \
24104          .     : '\(.\)' 2>/dev/null ||
24105 echo X"$ac_file" |
24106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24108           /^X\(\/\/\)$/{ s//\1/; q; }
24109           /^X\(\/\).*/{ s//\1/; q; }
24110           s/.*/./; q'`
24111       { if $as_mkdir_p; then
24112     mkdir -p "$ac_dir"
24113   else
24114     as_dir="$ac_dir"
24115     as_dirs=
24116     while test ! -d "$as_dir"; do
24117       as_dirs="$as_dir $as_dirs"
24118       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120          X"$as_dir" : 'X\(//\)[^/]' \| \
24121          X"$as_dir" : 'X\(//\)$' \| \
24122          X"$as_dir" : 'X\(/\)' \| \
24123          .     : '\(.\)' 2>/dev/null ||
24124 echo X"$as_dir" |
24125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24127           /^X\(\/\/\)$/{ s//\1/; q; }
24128           /^X\(\/\).*/{ s//\1/; q; }
24129           s/.*/./; q'`
24130     done
24131     test ! -n "$as_dirs" || mkdir $as_dirs
24132   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24134    { (exit 1); exit 1; }; }; }
24135
24136       rm -f $ac_file
24137       mv $tmp/config.h $ac_file
24138     fi
24139   else
24140     cat $tmp/config.h
24141     rm -f $tmp/config.h
24142   fi
24143 # Compute $ac_file's index in $config_headers.
24144 _am_stamp_count=1
24145 for _am_header in $config_headers :; do
24146   case $_am_header in
24147     $ac_file | $ac_file:* )
24148       break ;;
24149     * )
24150       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24151   esac
24152 done
24153 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24154 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24155          X$ac_file : 'X\(//\)[^/]' \| \
24156          X$ac_file : 'X\(//\)$' \| \
24157          X$ac_file : 'X\(/\)' \| \
24158          .     : '\(.\)' 2>/dev/null ||
24159 echo X$ac_file |
24160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24162           /^X\(\/\/\)$/{ s//\1/; q; }
24163           /^X\(\/\).*/{ s//\1/; q; }
24164           s/.*/./; q'`/stamp-h$_am_stamp_count
24165 done
24166 _ACEOF
24167 cat >>$CONFIG_STATUS <<\_ACEOF
24168
24169 #
24170 # CONFIG_COMMANDS section.
24171 #
24172 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24173   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24174   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24175   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24176 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24177          X"$ac_dest" : 'X\(//\)[^/]' \| \
24178          X"$ac_dest" : 'X\(//\)$' \| \
24179          X"$ac_dest" : 'X\(/\)' \| \
24180          .     : '\(.\)' 2>/dev/null ||
24181 echo X"$ac_dest" |
24182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24184           /^X\(\/\/\)$/{ s//\1/; q; }
24185           /^X\(\/\).*/{ s//\1/; q; }
24186           s/.*/./; q'`
24187   { if $as_mkdir_p; then
24188     mkdir -p "$ac_dir"
24189   else
24190     as_dir="$ac_dir"
24191     as_dirs=
24192     while test ! -d "$as_dir"; do
24193       as_dirs="$as_dir $as_dirs"
24194       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24196          X"$as_dir" : 'X\(//\)[^/]' \| \
24197          X"$as_dir" : 'X\(//\)$' \| \
24198          X"$as_dir" : 'X\(/\)' \| \
24199          .     : '\(.\)' 2>/dev/null ||
24200 echo X"$as_dir" |
24201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24202           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24203           /^X\(\/\/\)$/{ s//\1/; q; }
24204           /^X\(\/\).*/{ s//\1/; q; }
24205           s/.*/./; q'`
24206     done
24207     test ! -n "$as_dirs" || mkdir $as_dirs
24208   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24209 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24210    { (exit 1); exit 1; }; }; }
24211
24212   ac_builddir=.
24213
24214 if test "$ac_dir" != .; then
24215   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24216   # A "../" for each directory in $ac_dir_suffix.
24217   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24218 else
24219   ac_dir_suffix= ac_top_builddir=
24220 fi
24221
24222 case $srcdir in
24223   .)  # No --srcdir option.  We are building in place.
24224     ac_srcdir=.
24225     if test -z "$ac_top_builddir"; then
24226        ac_top_srcdir=.
24227     else
24228        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24229     fi ;;
24230   [\\/]* | ?:[\\/]* )  # Absolute path.
24231     ac_srcdir=$srcdir$ac_dir_suffix;
24232     ac_top_srcdir=$srcdir ;;
24233   *) # Relative path.
24234     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24235     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24236 esac
24237
24238 # Do not use `cd foo && pwd` to compute absolute paths, because
24239 # the directories may not exist.
24240 case `pwd` in
24241 .) ac_abs_builddir="$ac_dir";;
24242 *)
24243   case "$ac_dir" in
24244   .) ac_abs_builddir=`pwd`;;
24245   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24246   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24247   esac;;
24248 esac
24249 case $ac_abs_builddir in
24250 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24251 *)
24252   case ${ac_top_builddir}. in
24253   .) ac_abs_top_builddir=$ac_abs_builddir;;
24254   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24255   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24256   esac;;
24257 esac
24258 case $ac_abs_builddir in
24259 .) ac_abs_srcdir=$ac_srcdir;;
24260 *)
24261   case $ac_srcdir in
24262   .) ac_abs_srcdir=$ac_abs_builddir;;
24263   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24264   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24265   esac;;
24266 esac
24267 case $ac_abs_builddir in
24268 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24269 *)
24270   case $ac_top_srcdir in
24271   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24272   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24273   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24274   esac;;
24275 esac
24276
24277
24278   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24279 echo "$as_me: executing $ac_dest commands" >&6;}
24280   case $ac_dest in
24281     default-1 )
24282 # Only add multilib support code if we just rebuilt the top-level
24283 # Makefile.
24284 case " $CONFIG_FILES " in
24285  *" Makefile "*)
24286    ac_file=Makefile . ${multi_basedir}/config-ml.in
24287    ;;
24288 esac ;;
24289     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24290   # Strip MF so we end up with the name of the file.
24291   mf=`echo "$mf" | sed -e 's/:.*$//'`
24292   # Check whether this is an Automake generated Makefile or not.
24293   # We used to match only the files named `Makefile.in', but
24294   # some people rename them; so instead we look at the file content.
24295   # Grep'ing the first line is not enough: some people post-process
24296   # each Makefile.in and add a new line on top of each file to say so.
24297   # So let's grep whole file.
24298   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24299     dirpart=`(dirname "$mf") 2>/dev/null ||
24300 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301          X"$mf" : 'X\(//\)[^/]' \| \
24302          X"$mf" : 'X\(//\)$' \| \
24303          X"$mf" : 'X\(/\)' \| \
24304          .     : '\(.\)' 2>/dev/null ||
24305 echo X"$mf" |
24306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308           /^X\(\/\/\)$/{ s//\1/; q; }
24309           /^X\(\/\).*/{ s//\1/; q; }
24310           s/.*/./; q'`
24311   else
24312     continue
24313   fi
24314   # Extract the definition of DEPDIR, am__include, and am__quote
24315   # from the Makefile without running `make'.
24316   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24317   test -z "$DEPDIR" && continue
24318   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24319   test -z "am__include" && continue
24320   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24321   # When using ansi2knr, U may be empty or an underscore; expand it
24322   U=`sed -n 's/^U = //p' < "$mf"`
24323   # Find all dependency output files, they are included files with
24324   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24325   # simplest approach to changing $(DEPDIR) to its actual value in the
24326   # expansion.
24327   for file in `sed -n "
24328     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24329        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24330     # Make sure the directory exists.
24331     test -f "$dirpart/$file" && continue
24332     fdir=`(dirname "$file") 2>/dev/null ||
24333 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24334          X"$file" : 'X\(//\)[^/]' \| \
24335          X"$file" : 'X\(//\)$' \| \
24336          X"$file" : 'X\(/\)' \| \
24337          .     : '\(.\)' 2>/dev/null ||
24338 echo X"$file" |
24339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24340           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24341           /^X\(\/\/\)$/{ s//\1/; q; }
24342           /^X\(\/\).*/{ s//\1/; q; }
24343           s/.*/./; q'`
24344     { if $as_mkdir_p; then
24345     mkdir -p $dirpart/$fdir
24346   else
24347     as_dir=$dirpart/$fdir
24348     as_dirs=
24349     while test ! -d "$as_dir"; do
24350       as_dirs="$as_dir $as_dirs"
24351       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24353          X"$as_dir" : 'X\(//\)[^/]' \| \
24354          X"$as_dir" : 'X\(//\)$' \| \
24355          X"$as_dir" : 'X\(/\)' \| \
24356          .     : '\(.\)' 2>/dev/null ||
24357 echo X"$as_dir" |
24358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24359           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24360           /^X\(\/\/\)$/{ s//\1/; q; }
24361           /^X\(\/\).*/{ s//\1/; q; }
24362           s/.*/./; q'`
24363     done
24364     test ! -n "$as_dirs" || mkdir $as_dirs
24365   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24366 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24367    { (exit 1); exit 1; }; }; }
24368
24369     # echo "creating $dirpart/$file"
24370     echo '# dummy' > "$dirpart/$file"
24371   done
24372 done
24373  ;;
24374   esac
24375 done
24376 _ACEOF
24377
24378 cat >>$CONFIG_STATUS <<\_ACEOF
24379
24380 { (exit 0); exit 0; }
24381 _ACEOF
24382 chmod +x $CONFIG_STATUS
24383 ac_clean_files=$ac_clean_files_save
24384
24385
24386 # configure is writing to config.log, and then calls config.status.
24387 # config.status does its own redirection, appending to config.log.
24388 # Unfortunately, on DOS this fails, as config.log is still kept open
24389 # by configure, so config.status won't be able to write to it; its
24390 # output is simply discarded.  So we exec the FD to /dev/null,
24391 # effectively closing config.log, so it can be properly (re)opened and
24392 # appended to by config.status.  When coming back to configure, we
24393 # need to make the FD available again.
24394 if test "$no_create" != yes; then
24395   ac_cs_success=:
24396   ac_config_status_args=
24397   test "$silent" = yes &&
24398     ac_config_status_args="$ac_config_status_args --quiet"
24399   exec 5>/dev/null
24400   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24401   exec 5>>config.log
24402   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24403   # would make configure fail if this is the last instruction.
24404   $ac_cs_success || { (exit 1); exit 1; }
24405 fi
24406