OSDN Git Service

* config/rs6000/rs6000.c (rs6000_override_options): Set
[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         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1457 echo "$as_me:   former value:  $ac_old_val" >&2;}
1458         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1459 echo "$as_me:   current value: $ac_new_val" >&2;}
1460         ac_cache_corrupted=:
1461       fi;;
1462   esac
1463   # Pass precious variables to config.status.
1464   if test "$ac_new_set" = set; then
1465     case $ac_new_val in
1466     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468     *) ac_arg=$ac_var=$ac_new_val ;;
1469     esac
1470     case " $ac_configure_args " in
1471       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1472       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473     esac
1474   fi
1475 done
1476 if $ac_cache_corrupted; then
1477   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 ## GCJ LOCAL: gcc tree uses maintainer mode.
1519 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1520 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1521     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1522 if test "${enable_maintainer_mode+set}" = set; then
1523   enableval="$enable_maintainer_mode"
1524   USE_MAINTAINER_MODE=$enableval
1525 else
1526   USE_MAINTAINER_MODE=no
1527 fi;
1528   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1529 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1530
1531
1532 if test $USE_MAINTAINER_MODE = yes; then
1533   MAINTAINER_MODE_TRUE=
1534   MAINTAINER_MODE_FALSE='#'
1535 else
1536   MAINTAINER_MODE_TRUE='#'
1537   MAINTAINER_MODE_FALSE=
1538 fi
1539
1540   MAINT=$MAINTAINER_MODE_TRUE
1541
1542
1543
1544 # Default to --enable-multilib
1545 # Check whether --enable-multilib or --disable-multilib was given.
1546 if test "${enable_multilib+set}" = set; then
1547   enableval="$enable_multilib"
1548   case "$enableval" in
1549   yes) multilib=yes ;;
1550   no)  multilib=no ;;
1551   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1552 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1553    { (exit 1); exit 1; }; } ;;
1554  esac
1555 else
1556   multilib=yes
1557 fi;
1558
1559 # We may get other options which we leave undocumented:
1560 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1561 # See config-ml.in if you want the gory details.
1562
1563 if test "$srcdir" = "."; then
1564   if test "$with_target_subdir" != "."; then
1565     multi_basedir="$srcdir/$with_multisrctop../../.."
1566   else
1567     multi_basedir="$srcdir/$with_multisrctop../.."
1568   fi
1569 else
1570   multi_basedir="$srcdir/../.."
1571 fi
1572
1573
1574 # Even if the default multilib is not a cross compilation,
1575 # it may be that some of the other multilibs are.
1576 if test $cross_compiling = no && test $multilib = yes \
1577    && test "x${with_multisubdir}" != x ; then
1578    cross_compiling=maybe
1579 fi
1580
1581           ac_config_commands="$ac_config_commands default-1"
1582
1583
1584 ## ------------------------------- ##
1585 ## Libltdl specific configuration. ##
1586 ## ------------------------------- ##
1587
1588 ac_aux_dir=
1589 for ac_dir in . $srcdir/.; do
1590   if test -f $ac_dir/install-sh; then
1591     ac_aux_dir=$ac_dir
1592     ac_install_sh="$ac_aux_dir/install-sh -c"
1593     break
1594   elif test -f $ac_dir/install.sh; then
1595     ac_aux_dir=$ac_dir
1596     ac_install_sh="$ac_aux_dir/install.sh -c"
1597     break
1598   elif test -f $ac_dir/shtool; then
1599     ac_aux_dir=$ac_dir
1600     ac_install_sh="$ac_aux_dir/shtool install -c"
1601     break
1602   fi
1603 done
1604 if test -z "$ac_aux_dir"; then
1605   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1606 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1607    { (exit 1); exit 1; }; }
1608 fi
1609 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1610 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1611 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1612
1613
1614 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1615   if test -f ${srcdir}/ltmain.sh; then
1616     # if libltdl is libtoolized, it is assumed to be stand-alone and
1617     # installed unless the command line overrides it (tested above)
1618     enable_ltdl_install=yes
1619   else
1620     { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1621 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1622     { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1623 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1624     { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1625 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1626    { (exit 1); exit 1; }; }
1627   fi
1628 fi
1629
1630
1631 ## ------------------------ ##
1632 ## Automake Initialisation. ##
1633 ## ------------------------ ##
1634 am__api_version="1.9"
1635 # Find a good install program.  We prefer a C program (faster),
1636 # so one script is as good as another.  But avoid the broken or
1637 # incompatible versions:
1638 # SysV /etc/install, /usr/sbin/install
1639 # SunOS /usr/etc/install
1640 # IRIX /sbin/install
1641 # AIX /bin/install
1642 # AmigaOS /C/install, which installs bootblocks on floppy discs
1643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1646 # OS/2's system install, which has a completely different semantic
1647 # ./install, which can be erroneously created by make from ./install.sh.
1648 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1650 if test -z "$INSTALL"; then
1651 if test "${ac_cv_path_install+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   # Account for people who put trailing slashes in PATH elements.
1660 case $as_dir/ in
1661   ./ | .// | /cC/* | \
1662   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1663   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1664   /usr/ucb/* ) ;;
1665   *)
1666     # OSF1 and SCO ODT 3.0 have their own names for install.
1667     # Don't use installbsd from OSF since it installs stuff as root
1668     # by default.
1669     for ac_prog in ginstall scoinst install; do
1670       for ac_exec_ext in '' $ac_executable_extensions; do
1671         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1672           if test $ac_prog = install &&
1673             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1674             # AIX install.  It has an incompatible calling convention.
1675             :
1676           elif test $ac_prog = install &&
1677             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678             # program-specific install script used by HP pwplus--don't use.
1679             :
1680           else
1681             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682             break 3
1683           fi
1684         fi
1685       done
1686     done
1687     ;;
1688 esac
1689 done
1690
1691
1692 fi
1693   if test "${ac_cv_path_install+set}" = set; then
1694     INSTALL=$ac_cv_path_install
1695   else
1696     # As a last resort, use the slow shell script.  We don't cache a
1697     # path for INSTALL within a source directory, because that will
1698     # break other packages using the cache if that directory is
1699     # removed, or if the path is relative.
1700     INSTALL=$ac_install_sh
1701   fi
1702 fi
1703 echo "$as_me:$LINENO: result: $INSTALL" >&5
1704 echo "${ECHO_T}$INSTALL" >&6
1705
1706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707 # It thinks the first close brace ends the variable substitution.
1708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709
1710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1711
1712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713
1714 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1715 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1716 # Just in case
1717 sleep 1
1718 echo timestamp > conftest.file
1719 # Do `set' in a subshell so we don't clobber the current shell's
1720 # arguments.  Must try -L first in case configure is actually a
1721 # symlink; some systems play weird games with the mod time of symlinks
1722 # (eg FreeBSD returns the mod time of the symlink's containing
1723 # directory).
1724 if (
1725    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1726    if test "$*" = "X"; then
1727       # -L didn't work.
1728       set X `ls -t $srcdir/configure conftest.file`
1729    fi
1730    rm -f conftest.file
1731    if test "$*" != "X $srcdir/configure conftest.file" \
1732       && test "$*" != "X conftest.file $srcdir/configure"; then
1733
1734       # If neither matched, then we have a broken ls.  This can happen
1735       # if, for instance, CONFIG_SHELL is bash and it inherits a
1736       # broken ls alias from the environment.  This has actually
1737       # happened.  Such a system could not be considered "sane".
1738       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1739 alias in your environment" >&5
1740 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1741 alias in your environment" >&2;}
1742    { (exit 1); exit 1; }; }
1743    fi
1744
1745    test "$2" = conftest.file
1746    )
1747 then
1748    # Ok.
1749    :
1750 else
1751    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1752 Check your system clock" >&5
1753 echo "$as_me: error: newly created file is older than distributed files!
1754 Check your system clock" >&2;}
1755    { (exit 1); exit 1; }; }
1756 fi
1757 echo "$as_me:$LINENO: result: yes" >&5
1758 echo "${ECHO_T}yes" >&6
1759 test "$program_prefix" != NONE &&
1760   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1761 # Use a double $ so make ignores it.
1762 test "$program_suffix" != NONE &&
1763   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1764 # Double any \ or $.  echo might interpret backslashes.
1765 # By default was `s,x,x', remove it if useless.
1766 cat <<\_ACEOF >conftest.sed
1767 s/[\\$]/&&/g;s/;s,x,x,$//
1768 _ACEOF
1769 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1770 rm conftest.sed
1771
1772 # expand $ac_aux_dir to an absolute path
1773 am_aux_dir=`cd $ac_aux_dir && pwd`
1774
1775 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1776 # Use eval to expand $SHELL
1777 if eval "$MISSING --run true"; then
1778   am_missing_run="$MISSING --run "
1779 else
1780   am_missing_run=
1781   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1782 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1783 fi
1784
1785 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1786   # We used to keeping the `.' as first argument, in order to
1787   # allow $(mkdir_p) to be used without argument.  As in
1788   #   $(mkdir_p) $(somedir)
1789   # where $(somedir) is conditionally defined.  However this is wrong
1790   # for two reasons:
1791   #  1. if the package is installed by a user who cannot write `.'
1792   #     make install will fail,
1793   #  2. the above comment should most certainly read
1794   #     $(mkdir_p) $(DESTDIR)$(somedir)
1795   #     so it does not work when $(somedir) is undefined and
1796   #     $(DESTDIR) is not.
1797   #  To support the latter case, we have to write
1798   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1799   #  so the `.' trick is pointless.
1800   mkdir_p='mkdir -p --'
1801 else
1802   # On NextStep and OpenStep, the `mkdir' command does not
1803   # recognize any option.  It will interpret all options as
1804   # directories to create, and then abort because `.' already
1805   # exists.
1806   for d in ./-p ./--version;
1807   do
1808     test -d $d && rmdir $d
1809   done
1810   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1811   if test -f "$ac_aux_dir/mkinstalldirs"; then
1812     mkdir_p='$(mkinstalldirs)'
1813   else
1814     mkdir_p='$(install_sh) -d'
1815   fi
1816 fi
1817
1818 for ac_prog in gawk mawk nawk awk
1819 do
1820   # Extract the first word of "$ac_prog", so it can be a program name with args.
1821 set dummy $ac_prog; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_AWK+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$AWK"; then
1828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_AWK="$ac_prog"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 AWK=$ac_cv_prog_AWK
1847 if test -n "$AWK"; then
1848   echo "$as_me:$LINENO: result: $AWK" >&5
1849 echo "${ECHO_T}$AWK" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855   test -n "$AWK" && break
1856 done
1857
1858 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1859 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   cat >conftest.make <<\_ACEOF
1865 all:
1866         @echo 'ac_maketemp="$(MAKE)"'
1867 _ACEOF
1868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1870 if test -n "$ac_maketemp"; then
1871   eval ac_cv_prog_make_${ac_make}_set=yes
1872 else
1873   eval ac_cv_prog_make_${ac_make}_set=no
1874 fi
1875 rm -f conftest.make
1876 fi
1877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1878   echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6
1880   SET_MAKE=
1881 else
1882   echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1884   SET_MAKE="MAKE=${MAKE-make}"
1885 fi
1886
1887 rm -rf .tst 2>/dev/null
1888 mkdir .tst 2>/dev/null
1889 if test -d .tst; then
1890   am__leading_dot=.
1891 else
1892   am__leading_dot=_
1893 fi
1894 rmdir .tst 2>/dev/null
1895
1896 # test to see if srcdir already configured
1897 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1898    test -f $srcdir/config.status; then
1899   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1900 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1901    { (exit 1); exit 1; }; }
1902 fi
1903
1904 # test whether we have cygpath
1905 if test -z "$CYGPATH_W"; then
1906   if (cygpath --version) >/dev/null 2>/dev/null; then
1907     CYGPATH_W='cygpath -w'
1908   else
1909     CYGPATH_W=echo
1910   fi
1911 fi
1912
1913
1914 # Define the identity of the package.
1915  PACKAGE=libltdl
1916  VERSION=1.2
1917
1918
1919 # Some tools Automake needs.
1920
1921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1922
1923
1924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1925
1926
1927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1928
1929
1930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1931
1932
1933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1934
1935 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1936
1937 # Installed binaries are usually stripped using `strip' when the user
1938 # run `make install-strip'.  However `strip' might not be the right
1939 # tool to use in cross-compilation environments, therefore Automake
1940 # will honor the `STRIP' environment variable to overrule this program.
1941 if test "$cross_compiling" != no; then
1942   if test -n "$ac_tool_prefix"; then
1943   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_STRIP+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$STRIP"; then
1951   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 STRIP=$ac_cv_prog_STRIP
1970 if test -n "$STRIP"; then
1971   echo "$as_me:$LINENO: result: $STRIP" >&5
1972 echo "${ECHO_T}$STRIP" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 fi
1979 if test -z "$ac_cv_prog_STRIP"; then
1980   ac_ct_STRIP=$STRIP
1981   # Extract the first word of "strip", so it can be a program name with args.
1982 set dummy strip; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   if test -n "$ac_ct_STRIP"; then
1989   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     ac_cv_prog_ac_ct_STRIP="strip"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004
2005   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2006 fi
2007 fi
2008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2009 if test -n "$ac_ct_STRIP"; then
2010   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2011 echo "${ECHO_T}$ac_ct_STRIP" >&6
2012 else
2013   echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2015 fi
2016
2017   STRIP=$ac_ct_STRIP
2018 else
2019   STRIP="$ac_cv_prog_STRIP"
2020 fi
2021
2022 fi
2023 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2024
2025 # We need awk for the "check" target.  The system "awk" is bad on
2026 # some platforms.
2027 # Always define AMTAR for backward compatibility.
2028
2029 AMTAR=${AMTAR-"${am_missing_run}tar"}
2030
2031 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2032
2033
2034
2035
2036
2037           ac_config_headers="$ac_config_headers config.h:config-h.in"
2038
2039
2040
2041 ## ------------------ ##
2042 ## C compiler checks. ##
2043 ## ------------------ ##
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078   echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085 fi
2086 if test -z "$ac_cv_prog_CC"; then
2087   ac_ct_CC=$CC
2088   # Extract the first word of "gcc", so it can be a program name with args.
2089 set dummy gcc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$ac_ct_CC"; then
2096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105     ac_cv_prog_ac_ct_CC="gcc"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119   echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123   CC=$ac_ct_CC
2124 else
2125   CC="$ac_cv_prog_CC"
2126 fi
2127
2128 if test -z "$CC"; then
2129   if test -n "$ac_tool_prefix"; then
2130   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147     ac_cv_prog_CC="${ac_tool_prefix}cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2160 else
2161   echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165 fi
2166 if test -z "$ac_cv_prog_CC"; then
2167   ac_ct_CC=$CC
2168   # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$ac_ct_CC"; then
2176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185     ac_cv_prog_ac_ct_CC="cc"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 fi
2193 fi
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203   CC=$ac_ct_CC
2204 else
2205   CC="$ac_cv_prog_CC"
2206 fi
2207
2208 fi
2209 if test -z "$CC"; then
2210   # Extract the first word of "cc", so it can be a program name with args.
2211 set dummy cc; ac_word=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test -n "$CC"; then
2218   ac_cv_prog_CC="$CC" # Let the user override the test.
2219 else
2220   ac_prog_rejected=no
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2229        ac_prog_rejected=yes
2230        continue
2231      fi
2232     ac_cv_prog_CC="cc"
2233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234     break 2
2235   fi
2236 done
2237 done
2238
2239 if test $ac_prog_rejected = yes; then
2240   # We found a bogon in the path, so make sure we never use it.
2241   set dummy $ac_cv_prog_CC
2242   shift
2243   if test $# != 0; then
2244     # We chose a different compiler from the bogus one.
2245     # However, it has the same basename, so the bogon will be chosen
2246     # first if we set CC to just the basename; use the full file name.
2247     shift
2248     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2249   fi
2250 fi
2251 fi
2252 fi
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255   echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2257 else
2258   echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2260 fi
2261
2262 fi
2263 if test -z "$CC"; then
2264   if test -n "$ac_tool_prefix"; then
2265   for ac_prog in cl
2266   do
2267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290
2291 fi
2292 fi
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295   echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2297 else
2298   echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2300 fi
2301
2302     test -n "$CC" && break
2303   done
2304 fi
2305 if test -z "$CC"; then
2306   ac_ct_CC=$CC
2307   for ac_prog in cl
2308 do
2309   # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy $ac_prog; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   if test -n "$ac_ct_CC"; then
2317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326     ac_cv_prog_ac_ct_CC="$ac_prog"
2327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328     break 2
2329   fi
2330 done
2331 done
2332
2333 fi
2334 fi
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2339 else
2340   echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2342 fi
2343
2344   test -n "$ac_ct_CC" && break
2345 done
2346
2347   CC=$ac_ct_CC
2348 fi
2349
2350 fi
2351
2352
2353 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: no acceptable C compiler found in \$PATH
2356 See \`config.log' for more details." >&2;}
2357    { (exit 1); exit 1; }; }
2358
2359 # Provide some information about the compiler.
2360 echo "$as_me:$LINENO:" \
2361      "checking for C compiler version" >&5
2362 ac_compiler=`set X $ac_compile; echo $2`
2363 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2364   (eval $ac_compiler --version </dev/null >&5) 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }
2368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2369   (eval $ac_compiler -v </dev/null >&5) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2374   (eval $ac_compiler -V </dev/null >&5) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }
2378
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385
2386 int
2387 main ()
2388 {
2389
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 ac_clean_files_save=$ac_clean_files
2395 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2396 # Try to create an executable without -o first, disregard a.out.
2397 # It will help us diagnose broken compilers, and finding out an intuition
2398 # of exeext.
2399 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2400 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2401 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2403   (eval $ac_link_default) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; then
2407   # Find the output, starting from the most likely.  This scheme is
2408 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2409 # resort.
2410
2411 # Be careful to initialize this variable, since it used to be cached.
2412 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413 ac_cv_exeext=
2414 # b.out is created by i960 compilers.
2415 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2416 do
2417   test -f "$ac_file" || continue
2418   case $ac_file in
2419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2420         ;;
2421     conftest.$ac_ext )
2422         # This is the source file.
2423         ;;
2424     [ab].out )
2425         # We found the default executable, but exeext='' is most
2426         # certainly right.
2427         break;;
2428     *.* )
2429         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430         # FIXME: I believe we export ac_cv_exeext for Libtool,
2431         # but it would be cool to find out if it's true.  Does anybody
2432         # maintain Libtool? --akim.
2433         export ac_cv_exeext
2434         break;;
2435     * )
2436         break;;
2437   esac
2438 done
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&2;}
2447    { (exit 77); exit 77; }; }
2448 fi
2449
2450 ac_exeext=$ac_cv_exeext
2451 echo "$as_me:$LINENO: result: $ac_file" >&5
2452 echo "${ECHO_T}$ac_file" >&6
2453
2454 # Check the compiler produces executables we can run.  If not, either
2455 # the compiler is broken, or we cross compile.
2456 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461   if { ac_try='./$ac_file'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; }; then
2467     cross_compiling=no
2468   else
2469     if test "$cross_compiling" = maybe; then
2470         cross_compiling=yes
2471     else
2472         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details." >&2;}
2478    { (exit 1); exit 1; }; }
2479     fi
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6
2484
2485 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check the compiler produces executables we can run.  If not, either
2488 # the compiler is broken, or we cross compile.
2489 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2491 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492 echo "${ECHO_T}$cross_compiling" >&6
2493
2494 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2497   (eval $ac_link) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; then
2501   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2502 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2503 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 # `rm'.
2505 for ac_file in conftest.exe conftest conftest.*; do
2506   test -f "$ac_file" || continue
2507   case $ac_file in
2508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2509     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2510           export ac_cv_exeext
2511           break;;
2512     * ) break;;
2513   esac
2514 done
2515 else
2516   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2519 See \`config.log' for more details." >&2;}
2520    { (exit 1); exit 1; }; }
2521 fi
2522
2523 rm -f conftest$ac_cv_exeext
2524 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2525 echo "${ECHO_T}$ac_cv_exeext" >&6
2526
2527 rm -f conftest.$ac_ext
2528 EXEEXT=$ac_cv_exeext
2529 ac_exeext=$EXEEXT
2530 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2531 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2532 if test "${ac_cv_objext+set}" = set; then
2533   echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535   cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541
2542 int
2543 main ()
2544 {
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.o conftest.obj
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; then
2556   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557   case $ac_file in
2558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2559     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2560        break;;
2561   esac
2562 done
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }
2572 fi
2573
2574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 fi
2576 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577 echo "${ECHO_T}$ac_cv_objext" >&6
2578 OBJEXT=$ac_cv_objext
2579 ac_objext=$OBJEXT
2580 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2581 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2582 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591
2592 int
2593 main ()
2594 {
2595 #ifndef __GNUC__
2596        choke me
2597 #endif
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605   (eval $ac_compile) 2>conftest.er1
2606   ac_status=$?
2607   grep -v '^ *+' conftest.er1 >conftest.err
2608   rm -f conftest.er1
2609   cat conftest.err >&5
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); } &&
2612          { ac_try='test -z "$ac_c_werror_flag"
2613                          || test ! -s conftest.err'
2614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615   (eval $ac_try) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_compiler_gnu=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 ac_compiler_gnu=no
2631 fi
2632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2634
2635 fi
2636 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2638 GCC=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CFLAGS=${CFLAGS+set}
2640 ac_save_CFLAGS=$CFLAGS
2641 CFLAGS="-g"
2642 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2643 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_g+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653
2654 int
2655 main ()
2656 {
2657
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664   (eval $ac_compile) 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag"
2672                          || test ! -s conftest.err'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; } &&
2678          { ac_try='test -s conftest.$ac_objext'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   ac_cv_prog_cc_g=yes
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 ac_cv_prog_cc_g=no
2690 fi
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2695 if test "$ac_test_CFLAGS" = set; then
2696   CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698   if test "$GCC" = yes; then
2699     CFLAGS="-g -O2"
2700   else
2701     CFLAGS="-g"
2702   fi
2703 else
2704   if test "$GCC" = yes; then
2705     CFLAGS="-O2"
2706   else
2707     CFLAGS=
2708   fi
2709 fi
2710 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2711 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2712 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   ac_cv_prog_cc_stdc=no
2716 ac_save_CC=$CC
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723 #include <stdarg.h>
2724 #include <stdio.h>
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2731      char **p;
2732      int i;
2733 {
2734   return p[i];
2735 }
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2737 {
2738   char *s;
2739   va_list v;
2740   va_start (v,p);
2741   s = g (p, va_arg (v,int));
2742   va_end (v);
2743   return s;
2744 }
2745
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2747    function prototypes and stuff, but not '\xHH' hex character constants.
2748    These don't provoke an error unfortunately, instead are silently treated
2749    as 'x'.  The following induces an error, until -std1 is added to get
2750    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2751    array size at least.  It's necessary to write '\x00'==0 to get something
2752    that's true only with -std1.  */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2761 int
2762 main ()
2763 {
2764 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 # Don't try gcc -ansi; that turns off useful extensions and
2770 # breaks some systems' header files.
2771 # AIX                   -qlanglvl=ansi
2772 # Ultrix and OSF/1      -std1
2773 # HP-UX 10.20 and later -Ae
2774 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2775 # SVR4                  -Xc -D__EXTENSIONS__
2776 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 do
2778   CC="$ac_save_CC $ac_arg"
2779   rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag"
2789                          || test ! -s conftest.err'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; } &&
2795          { ac_try='test -s conftest.$ac_objext'
2796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801   ac_cv_prog_cc_stdc=$ac_arg
2802 break
2803 else
2804   echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807 fi
2808 rm -f conftest.err conftest.$ac_objext
2809 done
2810 rm -f conftest.$ac_ext conftest.$ac_objext
2811 CC=$ac_save_CC
2812
2813 fi
2814
2815 case "x$ac_cv_prog_cc_stdc" in
2816   x|xno)
2817     echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6 ;;
2819   *)
2820     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2822     CC="$CC $ac_cv_prog_cc_stdc" ;;
2823 esac
2824
2825 # Some people use a C++ compiler to compile C.  Since we use `exit',
2826 # in C++ we need to declare it.  In case someone uses the same compiler
2827 # for both compiling C and C++ we need to have the C++ compiler decide
2828 # the declaration of exit, since it's the most demanding environment.
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #ifndef __cplusplus
2831   choke me
2832 #endif
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836   (eval $ac_compile) 2>conftest.er1
2837   ac_status=$?
2838   grep -v '^ *+' conftest.er1 >conftest.err
2839   rm -f conftest.er1
2840   cat conftest.err >&5
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } &&
2843          { ac_try='test -z "$ac_c_werror_flag"
2844                          || test ! -s conftest.err'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; } &&
2850          { ac_try='test -s conftest.$ac_objext'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   for ac_declaration in \
2857    '' \
2858    'extern "C" void std::exit (int) throw (); using std::exit;' \
2859    'extern "C" void std::exit (int); using std::exit;' \
2860    'extern "C" void exit (int) throw ();' \
2861    'extern "C" void exit (int);' \
2862    'void exit (int);'
2863 do
2864   cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 $ac_declaration
2871 #include <stdlib.h>
2872 int
2873 main ()
2874 {
2875 exit (42);
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882   (eval $ac_compile) 2>conftest.er1
2883   ac_status=$?
2884   grep -v '^ *+' conftest.er1 >conftest.err
2885   rm -f conftest.er1
2886   cat conftest.err >&5
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); } &&
2889          { ac_try='test -z "$ac_c_werror_flag"
2890                          || test ! -s conftest.err'
2891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892   (eval $ac_try) 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; } &&
2896          { ac_try='test -s conftest.$ac_objext'
2897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898   (eval $ac_try) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }; }; then
2902   :
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 continue
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910   cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916 $ac_declaration
2917 int
2918 main ()
2919 {
2920 exit (42);
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -z "$ac_c_werror_flag"
2935                          || test ! -s conftest.err'
2936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937   (eval $ac_try) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; } &&
2941          { ac_try='test -s conftest.$ac_objext'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; }; then
2947   break
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 fi
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 done
2955 rm -f conftest*
2956 if test -n "$ac_declaration"; then
2957   echo '#ifdef __cplusplus' >>confdefs.h
2958   echo $ac_declaration      >>confdefs.h
2959   echo '#endif'             >>confdefs.h
2960 fi
2961
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_ext=c
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 DEPDIR="${am__leading_dot}deps"
2974
2975           ac_config_commands="$ac_config_commands depfiles"
2976
2977
2978 am_make=${MAKE-make}
2979 cat > confinc << 'END'
2980 am__doit:
2981         @echo done
2982 .PHONY: am__doit
2983 END
2984 # If we don't find an include directive, just comment out the code.
2985 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2986 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2987 am__include="#"
2988 am__quote=
2989 _am_result=none
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # We grep out `Entering directory' and `Leaving directory'
2993 # messages which can occur if `w' ends up in MAKEFLAGS.
2994 # In particular we don't look at `^make:' because GNU make might
2995 # be invoked under some other name (usually "gmake"), in which
2996 # case it prints its new name instead of `make'.
2997 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2998    am__include=include
2999    am__quote=
3000    _am_result=GNU
3001 fi
3002 # Now try BSD make style include.
3003 if test "$am__include" = "#"; then
3004    echo '.include "confinc"' > confmf
3005    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3006       am__include=.include
3007       am__quote="\""
3008       _am_result=BSD
3009    fi
3010 fi
3011
3012
3013 echo "$as_me:$LINENO: result: $_am_result" >&5
3014 echo "${ECHO_T}$_am_result" >&6
3015 rm -f confinc confmf
3016
3017 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then
3019   enableval="$enable_dependency_tracking"
3020
3021 fi;
3022 if test "x$enable_dependency_tracking" != xno; then
3023   am_depcomp="$ac_aux_dir/depcomp"
3024   AMDEPBACKSLASH='\'
3025 fi
3026
3027
3028 if test "x$enable_dependency_tracking" != xno; then
3029   AMDEP_TRUE=
3030   AMDEP_FALSE='#'
3031 else
3032   AMDEP_TRUE='#'
3033   AMDEP_FALSE=
3034 fi
3035
3036
3037
3038
3039 depcc="$CC"   am_compiler_list=
3040
3041 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3042 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3043 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3047   # We make a subdir and do the tests there.  Otherwise we can end up
3048   # making bogus files that we don't know about and never remove.  For
3049   # instance it was reported that on HP-UX the gcc test will end up
3050   # making a dummy file named `D' -- because `-MD' means `put the output
3051   # in D'.
3052   mkdir conftest.dir
3053   # Copy depcomp to subdir because otherwise we won't find it if we're
3054   # using a relative directory.
3055   cp "$am_depcomp" conftest.dir
3056   cd conftest.dir
3057   # We will build objects and dependencies in a subdirectory because
3058   # it helps to detect inapplicable dependency modes.  For instance
3059   # both Tru64's cc and ICC support -MD to output dependencies as a
3060   # side effect of compilation, but ICC will put the dependencies in
3061   # the current directory while Tru64 will put them in the object
3062   # directory.
3063   mkdir sub
3064
3065   am_cv_CC_dependencies_compiler_type=none
3066   if test "$am_compiler_list" = ""; then
3067      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3068   fi
3069   for depmode in $am_compiler_list; do
3070     # Setup a source with many dependencies, because some compilers
3071     # like to wrap large dependency lists on column 80 (with \), and
3072     # we should not choose a depcomp mode which is confused by this.
3073     #
3074     # We need to recreate these files for each test, as the compiler may
3075     # overwrite some of them when testing with obscure command lines.
3076     # This happens at least with the AIX C compiler.
3077     : > sub/conftest.c
3078     for i in 1 2 3 4 5 6; do
3079       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3080       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3081       # Solaris 8's {/usr,}/bin/sh.
3082       touch sub/conftst$i.h
3083     done
3084     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3085
3086     case $depmode in
3087     nosideeffect)
3088       # after this tag, mechanisms are not by side-effect, so they'll
3089       # only be used when explicitly requested
3090       if test "x$enable_dependency_tracking" = xyes; then
3091         continue
3092       else
3093         break
3094       fi
3095       ;;
3096     none) break ;;
3097     esac
3098     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3099     # mode.  It turns out that the SunPro C++ compiler does not properly
3100     # handle `-M -o', and we need to detect this.
3101     if depmode=$depmode \
3102        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3103        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3104        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3105          >/dev/null 2>conftest.err &&
3106        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3107        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3108        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3109       # icc doesn't choke on unknown options, it will just issue warnings
3110       # or remarks (even with -Werror).  So we grep stderr for any message
3111       # that says an option was ignored or not supported.
3112       # When given -MP, icc 7.0 and 7.1 complain thusly:
3113       #   icc: Command line warning: ignoring option '-M'; no argument required
3114       # The diagnosis changed in icc 8.0:
3115       #   icc: Command line remark: option '-MP' not supported
3116       if (grep 'ignoring option' conftest.err ||
3117           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3118         am_cv_CC_dependencies_compiler_type=$depmode
3119         break
3120       fi
3121     fi
3122   done
3123
3124   cd ..
3125   rm -rf conftest.dir
3126 else
3127   am_cv_CC_dependencies_compiler_type=none
3128 fi
3129
3130 fi
3131 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3132 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3134
3135
3136
3137 if
3138   test "x$enable_dependency_tracking" != xno \
3139   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3140   am__fastdepCC_TRUE=
3141   am__fastdepCC_FALSE='#'
3142 else
3143   am__fastdepCC_TRUE='#'
3144   am__fastdepCC_FALSE=
3145 fi
3146
3147
3148
3149 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3150 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3151 if test "${ac_cv_c_const+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164 /* FIXME: Include the comments suggested by Paul. */
3165 #ifndef __cplusplus
3166   /* Ultrix mips cc rejects this.  */
3167   typedef int charset[2];
3168   const charset x;
3169   /* SunOS 4.1.1 cc rejects this.  */
3170   char const *const *ccp;
3171   char **p;
3172   /* NEC SVR4.0.2 mips cc rejects this.  */
3173   struct point {int x, y;};
3174   static struct point const zero = {0,0};
3175   /* AIX XL C 1.02.0.0 rejects this.
3176      It does not let you subtract one const X* pointer from another in
3177      an arm of an if-expression whose if-part is not a constant
3178      expression */
3179   const char *g = "string";
3180   ccp = &g + (g ? g-g : 0);
3181   /* HPUX 7.0 cc rejects these. */
3182   ++ccp;
3183   p = (char**) ccp;
3184   ccp = (char const *const *) p;
3185   { /* SCO 3.2v4 cc rejects this.  */
3186     char *t;
3187     char const *s = 0 ? (char *) 0 : (char const *) 0;
3188
3189     *t++ = 0;
3190   }
3191   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3192     int x[] = {25, 17};
3193     const int *foo = &x[0];
3194     ++foo;
3195   }
3196   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3197     typedef const int *iptr;
3198     iptr p = 0;
3199     ++p;
3200   }
3201   { /* AIX XL C 1.02.0.0 rejects this saying
3202        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3203     struct s { int j; const int *ap[3]; };
3204     struct s *b; b->j = 5;
3205   }
3206   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3207     const int foo = 10;
3208   }
3209 #endif
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217   (eval $ac_compile) 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -z "$ac_c_werror_flag"
3225                          || test ! -s conftest.err'
3226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227   (eval $ac_try) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; } &&
3231          { ac_try='test -s conftest.$ac_objext'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237   ac_cv_c_const=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 ac_cv_c_const=no
3243 fi
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3247 echo "${ECHO_T}$ac_cv_c_const" >&6
3248 if test $ac_cv_c_const = no; then
3249
3250 cat >>confdefs.h <<\_ACEOF
3251 #define const
3252 _ACEOF
3253
3254 fi
3255
3256 echo "$as_me:$LINENO: checking for inline" >&5
3257 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3258 if test "${ac_cv_c_inline+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   ac_cv_c_inline=no
3262 for ac_kw in inline __inline__ __inline; do
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #ifndef __cplusplus
3270 typedef int foo_t;
3271 static $ac_kw foo_t static_foo () {return 0; }
3272 $ac_kw foo_t foo () {return 0; }
3273 #endif
3274
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278   (eval $ac_compile) 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -z "$ac_c_werror_flag"
3286                          || test ! -s conftest.err'
3287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288   (eval $ac_try) 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }; } &&
3292          { ac_try='test -s conftest.$ac_objext'
3293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294   (eval $ac_try) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; }; then
3298   ac_cv_c_inline=$ac_kw; break
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 fi
3304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3305 done
3306
3307 fi
3308 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3309 echo "${ECHO_T}$ac_cv_c_inline" >&6
3310
3311
3312 case $ac_cv_c_inline in
3313   inline | yes) ;;
3314   *)
3315     case $ac_cv_c_inline in
3316       no) ac_val=;;
3317       *) ac_val=$ac_cv_c_inline;;
3318     esac
3319     cat >>confdefs.h <<_ACEOF
3320 #ifndef __cplusplus
3321 #define inline $ac_val
3322 #endif
3323 _ACEOF
3324     ;;
3325 esac
3326
3327
3328
3329 ## ----------------------- ##
3330 ## Libtool initialisation. ##
3331 ## ----------------------- ##
3332
3333
3334 # Check whether --enable-shared or --disable-shared was given.
3335 if test "${enable_shared+set}" = set; then
3336   enableval="$enable_shared"
3337   p=${PACKAGE-default}
3338     case $enableval in
3339     yes) enable_shared=yes ;;
3340     no) enable_shared=no ;;
3341     *)
3342       enable_shared=no
3343       # Look at the argument we got.  We use all the common list separators.
3344       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345       for pkg in $enableval; do
3346         IFS="$lt_save_ifs"
3347         if test "X$pkg" = "X$p"; then
3348           enable_shared=yes
3349         fi
3350       done
3351       IFS="$lt_save_ifs"
3352       ;;
3353     esac
3354 else
3355   enable_shared=yes
3356 fi;
3357
3358 # Check whether --enable-static or --disable-static was given.
3359 if test "${enable_static+set}" = set; then
3360   enableval="$enable_static"
3361   p=${PACKAGE-default}
3362     case $enableval in
3363     yes) enable_static=yes ;;
3364     no) enable_static=no ;;
3365     *)
3366      enable_static=no
3367       # Look at the argument we got.  We use all the common list separators.
3368       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3369       for pkg in $enableval; do
3370         IFS="$lt_save_ifs"
3371         if test "X$pkg" = "X$p"; then
3372           enable_static=yes
3373         fi
3374       done
3375       IFS="$lt_save_ifs"
3376       ;;
3377     esac
3378 else
3379   enable_static=yes
3380 fi;
3381
3382 # Check whether --enable-fast-install or --disable-fast-install was given.
3383 if test "${enable_fast_install+set}" = set; then
3384   enableval="$enable_fast_install"
3385   p=${PACKAGE-default}
3386     case $enableval in
3387     yes) enable_fast_install=yes ;;
3388     no) enable_fast_install=no ;;
3389     *)
3390       enable_fast_install=no
3391       # Look at the argument we got.  We use all the common list separators.
3392       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3393       for pkg in $enableval; do
3394         IFS="$lt_save_ifs"
3395         if test "X$pkg" = "X$p"; then
3396           enable_fast_install=yes
3397         fi
3398       done
3399       IFS="$lt_save_ifs"
3400       ;;
3401     esac
3402 else
3403   enable_fast_install=yes
3404 fi;
3405
3406 # Make sure we can run config.sub.
3407 $ac_config_sub sun4 >/dev/null 2>&1 ||
3408   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3410    { (exit 1); exit 1; }; }
3411
3412 echo "$as_me:$LINENO: checking build system type" >&5
3413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3414 if test "${ac_cv_build+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   ac_cv_build_alias=$build_alias
3418 test -z "$ac_cv_build_alias" &&
3419   ac_cv_build_alias=`$ac_config_guess`
3420 test -z "$ac_cv_build_alias" &&
3421   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3423    { (exit 1); exit 1; }; }
3424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3425   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3427    { (exit 1); exit 1; }; }
3428
3429 fi
3430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3431 echo "${ECHO_T}$ac_cv_build" >&6
3432 build=$ac_cv_build
3433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3436
3437
3438 echo "$as_me:$LINENO: checking host system type" >&5
3439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3440 if test "${ac_cv_host+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   ac_cv_host_alias=$host_alias
3444 test -z "$ac_cv_host_alias" &&
3445   ac_cv_host_alias=$ac_cv_build_alias
3446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3449    { (exit 1); exit 1; }; }
3450
3451 fi
3452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3453 echo "${ECHO_T}$ac_cv_host" >&6
3454 host=$ac_cv_host
3455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3458
3459
3460 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3461 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3462 if test "${lt_cv_path_SED+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   # Loop through the user's path and test for sed and gsed.
3466 # Then use that list of sed's as ones to test for truncation.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470   IFS=$as_save_IFS
3471   test -z "$as_dir" && as_dir=.
3472   for lt_ac_prog in sed gsed; do
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3475         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3476       fi
3477     done
3478   done
3479 done
3480 lt_ac_max=0
3481 lt_ac_count=0
3482 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3483 # along with /bin/sed that truncates output.
3484 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3485   test ! -f $lt_ac_sed && continue
3486   cat /dev/null > conftest.in
3487   lt_ac_count=0
3488   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3489   # Check for GNU sed and select it if it is found.
3490   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3491     lt_cv_path_SED=$lt_ac_sed
3492     break
3493   fi
3494   while true; do
3495     cat conftest.in conftest.in >conftest.tmp
3496     mv conftest.tmp conftest.in
3497     cp conftest.in conftest.nl
3498     echo >>conftest.nl
3499     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3500     cmp -s conftest.out conftest.nl || break
3501     # 10000 chars as input seems more than enough
3502     test $lt_ac_count -gt 10 && break
3503     lt_ac_count=`expr $lt_ac_count + 1`
3504     if test $lt_ac_count -gt $lt_ac_max; then
3505       lt_ac_max=$lt_ac_count
3506       lt_cv_path_SED=$lt_ac_sed
3507     fi
3508   done
3509 done
3510
3511 fi
3512
3513 SED=$lt_cv_path_SED
3514 echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3516
3517 echo "$as_me:$LINENO: checking for egrep" >&5
3518 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3519 if test "${ac_cv_prog_egrep+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3523     then ac_cv_prog_egrep='grep -E'
3524     else ac_cv_prog_egrep='egrep'
3525     fi
3526 fi
3527 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3528 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3529  EGREP=$ac_cv_prog_egrep
3530
3531
3532
3533 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3534 if test "${with_gnu_ld+set}" = set; then
3535   withval="$with_gnu_ld"
3536   test "$withval" = no || with_gnu_ld=yes
3537 else
3538   with_gnu_ld=no
3539 fi;
3540 ac_prog=ld
3541 if test "$GCC" = yes; then
3542   # Check if gcc -print-prog-name=ld gives a path.
3543   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3544 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3545   case $host in
3546   *-*-mingw*)
3547     # gcc leaves a trailing carriage return which upsets mingw
3548     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3549   *)
3550     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3551   esac
3552   case $ac_prog in
3553     # Accept absolute paths.
3554     [\\/]* | ?:[\\/]*)
3555       re_direlt='/[^/][^/]*/\.\./'
3556       # Canonicalize the pathname of ld
3557       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3558       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3559         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3560       done
3561       test -z "$LD" && LD="$ac_prog"
3562       ;;
3563   "")
3564     # If it fails, then pretend we aren't using GCC.
3565     ac_prog=ld
3566     ;;
3567   *)
3568     # If it is relative, then search for the first ld in PATH.
3569     with_gnu_ld=unknown
3570     ;;
3571   esac
3572 elif test "$with_gnu_ld" = yes; then
3573   echo "$as_me:$LINENO: checking for GNU ld" >&5
3574 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3575 else
3576   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3577 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3578 fi
3579 if test "${lt_cv_path_LD+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   if test -z "$LD"; then
3583   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3584   for ac_dir in $PATH; do
3585     IFS="$lt_save_ifs"
3586     test -z "$ac_dir" && ac_dir=.
3587     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3588       lt_cv_path_LD="$ac_dir/$ac_prog"
3589       # Check to see if the program is GNU ld.  I'd rather use --version,
3590       # but apparently some GNU ld's only accept -v.
3591       # Break only if it was the GNU/non-GNU ld that we prefer.
3592       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3593       *GNU* | *'with BFD'*)
3594         test "$with_gnu_ld" != no && break
3595         ;;
3596       *)
3597         test "$with_gnu_ld" != yes && break
3598         ;;
3599       esac
3600     fi
3601   done
3602   IFS="$lt_save_ifs"
3603 else
3604   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3605 fi
3606 fi
3607
3608 LD="$lt_cv_path_LD"
3609 if test -n "$LD"; then
3610   echo "$as_me:$LINENO: result: $LD" >&5
3611 echo "${ECHO_T}$LD" >&6
3612 else
3613   echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3615 fi
3616 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3617 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3618    { (exit 1); exit 1; }; }
3619 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3620 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3621 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3625 case `$LD -v 2>&1 </dev/null` in
3626 *GNU* | *'with BFD'*)
3627   lt_cv_prog_gnu_ld=yes
3628   ;;
3629 *)
3630   lt_cv_prog_gnu_ld=no
3631   ;;
3632 esac
3633 fi
3634 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3635 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3636 with_gnu_ld=$lt_cv_prog_gnu_ld
3637
3638
3639 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3640 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3641 if test "${lt_cv_ld_reload_flag+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   lt_cv_ld_reload_flag='-r'
3645 fi
3646 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3647 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3648 reload_flag=$lt_cv_ld_reload_flag
3649 case $reload_flag in
3650 "" | " "*) ;;
3651 *) reload_flag=" $reload_flag" ;;
3652 esac
3653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3654 case $host_os in
3655   darwin*)
3656     if test "$GCC" = yes; then
3657       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3658     else
3659       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3660     fi
3661     ;;
3662 esac
3663
3664 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3665 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3666 if test "${lt_cv_path_NM+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   if test -n "$NM"; then
3670   # Let the user override the test.
3671   lt_cv_path_NM="$NM"
3672 else
3673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3674   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3675     IFS="$lt_save_ifs"
3676     test -z "$ac_dir" && ac_dir=.
3677     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3678     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3679       # Check to see if the nm accepts a BSD-compat flag.
3680       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3681       #   nm: unknown option "B" ignored
3682       # Tru64's nm complains that /dev/null is an invalid object file
3683       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3684       */dev/null* | *'Invalid file or object type'*)
3685         lt_cv_path_NM="$tmp_nm -B"
3686         break
3687         ;;
3688       *)
3689         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3690         */dev/null*)
3691           lt_cv_path_NM="$tmp_nm -p"
3692           break
3693           ;;
3694         *)
3695           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3696           continue # so that we can try to find one that supports BSD flags
3697           ;;
3698         esac
3699       esac
3700     fi
3701   done
3702   IFS="$lt_save_ifs"
3703   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3704 fi
3705 fi
3706 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3707 echo "${ECHO_T}$lt_cv_path_NM" >&6
3708 NM="$lt_cv_path_NM"
3709
3710 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3712 LN_S=$as_ln_s
3713 if test "$LN_S" = "ln -s"; then
3714   echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716 else
3717   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3718 echo "${ECHO_T}no, using $LN_S" >&6
3719 fi
3720
3721 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3722 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3723 if test "${lt_cv_deplibs_check_method+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   lt_cv_file_magic_cmd='$MAGIC_CMD'
3727 lt_cv_file_magic_test_file=
3728 lt_cv_deplibs_check_method='unknown'
3729 # Need to set the preceding variable on all platforms that support
3730 # interlibrary dependencies.
3731 # 'none' -- dependencies not supported.
3732 # `unknown' -- same as none, but documents that we really don't know.
3733 # 'pass_all' -- all dependencies passed with no checks.
3734 # 'test_compile' -- check by making test program.
3735 # 'file_magic [[regex]]' -- check by looking for files in library path
3736 # which responds to the $file_magic_cmd with a given extended regex.
3737 # If you have `file' or equivalent on your system and you're not sure
3738 # whether `pass_all' will *always* work, you probably want this one.
3739
3740 case $host_os in
3741 aix4* | aix5*)
3742   lt_cv_deplibs_check_method=pass_all
3743   ;;
3744
3745 beos*)
3746   lt_cv_deplibs_check_method=pass_all
3747   ;;
3748
3749 bsdi[45]*)
3750   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3751   lt_cv_file_magic_cmd='/usr/bin/file -L'
3752   lt_cv_file_magic_test_file=/shlib/libc.so
3753   ;;
3754
3755 cygwin*)
3756   # func_win32_libid is a shell function defined in ltmain.sh
3757   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3758   lt_cv_file_magic_cmd='func_win32_libid'
3759   ;;
3760
3761 mingw* | pw32*)
3762   # Base MSYS/MinGW do not provide the 'file' command needed by
3763   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3764   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3765   lt_cv_file_magic_cmd='$OBJDUMP -f'
3766   ;;
3767
3768 darwin* | rhapsody*)
3769   lt_cv_deplibs_check_method=pass_all
3770   ;;
3771
3772 freebsd* | kfreebsd*-gnu | dragonfly*)
3773   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3774     case $host_cpu in
3775     i*86 )
3776       # Not sure whether the presence of OpenBSD here was a mistake.
3777       # Let's accept both of them until this is cleared up.
3778       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3779       lt_cv_file_magic_cmd=/usr/bin/file
3780       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3781       ;;
3782     esac
3783   else
3784     lt_cv_deplibs_check_method=pass_all
3785   fi
3786   ;;
3787
3788 gnu*)
3789   lt_cv_deplibs_check_method=pass_all
3790   ;;
3791
3792 hpux10.20* | hpux11*)
3793   lt_cv_file_magic_cmd=/usr/bin/file
3794   case "$host_cpu" in
3795   ia64*)
3796     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3797     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3798     ;;
3799   hppa*64*)
3800     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]'
3801     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3802     ;;
3803   *)
3804     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3805     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3806     ;;
3807   esac
3808   ;;
3809
3810 irix5* | irix6* | nonstopux*)
3811   case $LD in
3812   *-32|*"-32 ") libmagic=32-bit;;
3813   *-n32|*"-n32 ") libmagic=N32;;
3814   *-64|*"-64 ") libmagic=64-bit;;
3815   *) libmagic=never-match;;
3816   esac
3817   lt_cv_deplibs_check_method=pass_all
3818   ;;
3819
3820 # This must be Linux ELF.
3821 linux*)
3822   lt_cv_deplibs_check_method=pass_all
3823   ;;
3824
3825 netbsd*)
3826   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3827     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3828   else
3829     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3830   fi
3831   ;;
3832
3833 newos6*)
3834   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3835   lt_cv_file_magic_cmd=/usr/bin/file
3836   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3837   ;;
3838
3839 nto-qnx*)
3840   lt_cv_deplibs_check_method=unknown
3841   ;;
3842
3843 openbsd*)
3844   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3845     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3846   else
3847     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3848   fi
3849   ;;
3850
3851 osf3* | osf4* | osf5*)
3852   lt_cv_deplibs_check_method=pass_all
3853   ;;
3854
3855 sco3.2v5*)
3856   lt_cv_deplibs_check_method=pass_all
3857   ;;
3858
3859 solaris*)
3860   lt_cv_deplibs_check_method=pass_all
3861   ;;
3862
3863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3864   case $host_vendor in
3865   motorola)
3866     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]'
3867     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3868     ;;
3869   ncr)
3870     lt_cv_deplibs_check_method=pass_all
3871     ;;
3872   sequent)
3873     lt_cv_file_magic_cmd='/bin/file'
3874     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3875     ;;
3876   sni)
3877     lt_cv_file_magic_cmd='/bin/file'
3878     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3879     lt_cv_file_magic_test_file=/lib/libc.so
3880     ;;
3881   siemens)
3882     lt_cv_deplibs_check_method=pass_all
3883     ;;
3884   esac
3885   ;;
3886
3887 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3888   lt_cv_deplibs_check_method=pass_all
3889   ;;
3890 esac
3891
3892 fi
3893 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3894 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3895 file_magic_cmd=$lt_cv_file_magic_cmd
3896 deplibs_check_method=$lt_cv_deplibs_check_method
3897 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3898
3899
3900
3901
3902 # If no C compiler was specified, use CC.
3903 LTCC=${LTCC-"$CC"}
3904
3905 # Allow CC to be a program name with arguments.
3906 compiler=$CC
3907
3908 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3909 if test "${enable_libtool_lock+set}" = set; then
3910   enableval="$enable_libtool_lock"
3911
3912 fi;
3913 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3914
3915 # Some flags need to be propagated to the compiler or linker for good
3916 # libtool support.
3917 case $host in
3918 ia64-*-hpux*)
3919   # Find out which ABI we are using.
3920   echo 'int i;' > conftest.$ac_ext
3921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922   (eval $ac_compile) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; then
3926     case `/usr/bin/file conftest.$ac_objext` in
3927     *ELF-32*)
3928       HPUX_IA64_MODE="32"
3929       ;;
3930     *ELF-64*)
3931       HPUX_IA64_MODE="64"
3932       ;;
3933     esac
3934   fi
3935   rm -rf conftest*
3936   ;;
3937 *-*-irix6*)
3938   # Find out which ABI we are using.
3939   echo '#line 3939 "configure"' > conftest.$ac_ext
3940   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941   (eval $ac_compile) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; then
3945    if test "$lt_cv_prog_gnu_ld" = yes; then
3946     case `/usr/bin/file conftest.$ac_objext` in
3947     *32-bit*)
3948       LD="${LD-ld} -melf32bsmip"
3949       ;;
3950     *N32*)
3951       LD="${LD-ld} -melf32bmipn32"
3952       ;;
3953     *64-bit*)
3954       LD="${LD-ld} -melf64bmip"
3955       ;;
3956     esac
3957    else
3958     case `/usr/bin/file conftest.$ac_objext` in
3959     *32-bit*)
3960       LD="${LD-ld} -32"
3961       ;;
3962     *N32*)
3963       LD="${LD-ld} -n32"
3964       ;;
3965     *64-bit*)
3966       LD="${LD-ld} -64"
3967       ;;
3968     esac
3969    fi
3970   fi
3971   rm -rf conftest*
3972   ;;
3973
3974 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3975   # Find out which ABI we are using.
3976   echo 'int i;' > conftest.$ac_ext
3977   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; then
3982     case "`/usr/bin/file conftest.o`" in
3983     *32-bit*)
3984       case $host in
3985         x86_64-*linux*)
3986           LD="${LD-ld} -m elf_i386"
3987           ;;
3988         ppc64-*linux*|powerpc64-*linux*)
3989           LD="${LD-ld} -m elf32ppclinux"
3990           ;;
3991         s390x-*linux*)
3992           LD="${LD-ld} -m elf_s390"
3993           ;;
3994         sparc64-*linux*)
3995           LD="${LD-ld} -m elf32_sparc"
3996           ;;
3997       esac
3998       ;;
3999     *64-bit*)
4000       case $host in
4001         x86_64-*linux*)
4002           LD="${LD-ld} -m elf_x86_64"
4003           ;;
4004         ppc*-*linux*|powerpc*-*linux*)
4005           LD="${LD-ld} -m elf64ppc"
4006           ;;
4007         s390*-*linux*)
4008           LD="${LD-ld} -m elf64_s390"
4009           ;;
4010         sparc*-*linux*)
4011           LD="${LD-ld} -m elf64_sparc"
4012           ;;
4013       esac
4014       ;;
4015     esac
4016   fi
4017   rm -rf conftest*
4018   ;;
4019
4020 *-*-sco3.2v5*)
4021   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4022   SAVE_CFLAGS="$CFLAGS"
4023   CFLAGS="$CFLAGS -belf"
4024   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4025 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4026 if test "${lt_cv_cc_needs_belf+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035      cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 rm -f conftest.$ac_objext conftest$ac_exeext
4051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4052   (eval $ac_link) 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } &&
4059          { ac_try='test -z "$ac_c_werror_flag"
4060                          || test ! -s conftest.err'
4061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062   (eval $ac_try) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); }; } &&
4066          { ac_try='test -s conftest$ac_exeext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   lt_cv_cc_needs_belf=yes
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 lt_cv_cc_needs_belf=no
4078 fi
4079 rm -f conftest.err conftest.$ac_objext \
4080       conftest$ac_exeext conftest.$ac_ext
4081      ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087 fi
4088 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4089 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4090   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4091     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4092     CFLAGS="$SAVE_CFLAGS"
4093   fi
4094   ;;
4095 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4096   if test -n "$ac_tool_prefix"; then
4097   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$DLLTOOL"; then
4105   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119 done
4120
4121 fi
4122 fi
4123 DLLTOOL=$ac_cv_prog_DLLTOOL
4124 if test -n "$DLLTOOL"; then
4125   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4126 echo "${ECHO_T}$DLLTOOL" >&6
4127 else
4128   echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132 fi
4133 if test -z "$ac_cv_prog_DLLTOOL"; then
4134   ac_ct_DLLTOOL=$DLLTOOL
4135   # Extract the first word of "dlltool", so it can be a program name with args.
4136 set dummy dlltool; ac_word=$2
4137 echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4139 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   if test -n "$ac_ct_DLLTOOL"; then
4143   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150   for ac_exec_ext in '' $ac_executable_extensions; do
4151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4154     break 2
4155   fi
4156 done
4157 done
4158
4159   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4160 fi
4161 fi
4162 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4163 if test -n "$ac_ct_DLLTOOL"; then
4164   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4165 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4166 else
4167   echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4169 fi
4170
4171   DLLTOOL=$ac_ct_DLLTOOL
4172 else
4173   DLLTOOL="$ac_cv_prog_DLLTOOL"
4174 fi
4175
4176   if test -n "$ac_tool_prefix"; then
4177   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}as; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_AS+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   if test -n "$AS"; then
4185   ac_cv_prog_AS="$AS" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192   for ac_exec_ext in '' $ac_executable_extensions; do
4193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194     ac_cv_prog_AS="${ac_tool_prefix}as"
4195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199 done
4200
4201 fi
4202 fi
4203 AS=$ac_cv_prog_AS
4204 if test -n "$AS"; then
4205   echo "$as_me:$LINENO: result: $AS" >&5
4206 echo "${ECHO_T}$AS" >&6
4207 else
4208   echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4210 fi
4211
4212 fi
4213 if test -z "$ac_cv_prog_AS"; then
4214   ac_ct_AS=$AS
4215   # Extract the first word of "as", so it can be a program name with args.
4216 set dummy as; ac_word=$2
4217 echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   if test -n "$ac_ct_AS"; then
4223   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230   for ac_exec_ext in '' $ac_executable_extensions; do
4231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     ac_cv_prog_ac_ct_AS="as"
4233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237 done
4238
4239   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4240 fi
4241 fi
4242 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4243 if test -n "$ac_ct_AS"; then
4244   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4245 echo "${ECHO_T}$ac_ct_AS" >&6
4246 else
4247   echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4249 fi
4250
4251   AS=$ac_ct_AS
4252 else
4253   AS="$ac_cv_prog_AS"
4254 fi
4255
4256   if test -n "$ac_tool_prefix"; then
4257   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4258 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test -n "$OBJDUMP"; then
4265   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280
4281 fi
4282 fi
4283 OBJDUMP=$ac_cv_prog_OBJDUMP
4284 if test -n "$OBJDUMP"; then
4285   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4286 echo "${ECHO_T}$OBJDUMP" >&6
4287 else
4288   echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4290 fi
4291
4292 fi
4293 if test -z "$ac_cv_prog_OBJDUMP"; then
4294   ac_ct_OBJDUMP=$OBJDUMP
4295   # Extract the first word of "objdump", so it can be a program name with args.
4296 set dummy objdump; ac_word=$2
4297 echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   if test -n "$ac_ct_OBJDUMP"; then
4303   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310   for ac_exec_ext in '' $ac_executable_extensions; do
4311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317 done
4318
4319   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4320 fi
4321 fi
4322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4323 if test -n "$ac_ct_OBJDUMP"; then
4324   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4325 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4326 else
4327   echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 fi
4330
4331   OBJDUMP=$ac_ct_OBJDUMP
4332 else
4333   OBJDUMP="$ac_cv_prog_OBJDUMP"
4334 fi
4335
4336   ;;
4337
4338 esac
4339
4340 need_locks="$enable_libtool_lock"
4341
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4350 # On Suns, sometimes $CPP names a directory.
4351 if test -n "$CPP" && test -d "$CPP"; then
4352   CPP=
4353 fi
4354 if test -z "$CPP"; then
4355   if test "${ac_cv_prog_CPP+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358       # Double quotes because CPP needs to be expanded
4359     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360     do
4361       ac_preproc_ok=false
4362 for ac_c_preproc_warn_flag in '' yes
4363 do
4364   # Use a header file that comes with gcc, so configuring glibc
4365   # with a fresh cross-compiler works.
4366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367   # <limits.h> exists even on freestanding compilers.
4368   # On the NeXT, cc -E runs the code through the compiler's parser,
4369   # not just through cpp. "Syntax error" is here to catch this case.
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #ifdef __STDC__
4377 # include <limits.h>
4378 #else
4379 # include <assert.h>
4380 #endif
4381                      Syntax error
4382 _ACEOF
4383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } >/dev/null; then
4391   if test -s conftest.err; then
4392     ac_cpp_err=$ac_c_preproc_warn_flag
4393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4394   else
4395     ac_cpp_err=
4396   fi
4397 else
4398   ac_cpp_err=yes
4399 fi
4400 if test -z "$ac_cpp_err"; then
4401   :
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406   # Broken: fails on valid input.
4407 continue
4408 fi
4409 rm -f conftest.err conftest.$ac_ext
4410
4411   # OK, works on sane cases.  Now check whether non-existent headers
4412   # can be detected and how.
4413   cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419 #include <ac_nonexistent.h>
4420 _ACEOF
4421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } >/dev/null; then
4429   if test -s conftest.err; then
4430     ac_cpp_err=$ac_c_preproc_warn_flag
4431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4432   else
4433     ac_cpp_err=
4434   fi
4435 else
4436   ac_cpp_err=yes
4437 fi
4438 if test -z "$ac_cpp_err"; then
4439   # Broken: success on invalid input.
4440 continue
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445   # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4448 fi
4449 rm -f conftest.err conftest.$ac_ext
4450
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then
4455   break
4456 fi
4457
4458     done
4459     ac_cv_prog_CPP=$CPP
4460
4461 fi
4462   CPP=$ac_cv_prog_CPP
4463 else
4464   ac_cv_prog_CPP=$CPP
4465 fi
4466 echo "$as_me:$LINENO: result: $CPP" >&5
4467 echo "${ECHO_T}$CPP" >&6
4468 ac_preproc_ok=false
4469 for ac_c_preproc_warn_flag in '' yes
4470 do
4471   # Use a header file that comes with gcc, so configuring glibc
4472   # with a fresh cross-compiler works.
4473   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474   # <limits.h> exists even on freestanding compilers.
4475   # On the NeXT, cc -E runs the code through the compiler's parser,
4476   # not just through cpp. "Syntax error" is here to catch this case.
4477   cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 #ifdef __STDC__
4484 # include <limits.h>
4485 #else
4486 # include <assert.h>
4487 #endif
4488                      Syntax error
4489 _ACEOF
4490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } >/dev/null; then
4498   if test -s conftest.err; then
4499     ac_cpp_err=$ac_c_preproc_warn_flag
4500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4501   else
4502     ac_cpp_err=
4503   fi
4504 else
4505   ac_cpp_err=yes
4506 fi
4507 if test -z "$ac_cpp_err"; then
4508   :
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513   # Broken: fails on valid input.
4514 continue
4515 fi
4516 rm -f conftest.err conftest.$ac_ext
4517
4518   # OK, works on sane cases.  Now check whether non-existent headers
4519   # can be detected and how.
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #include <ac_nonexistent.h>
4527 _ACEOF
4528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4530   ac_status=$?
4531   grep -v '^ *+' conftest.er1 >conftest.err
4532   rm -f conftest.er1
4533   cat conftest.err >&5
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } >/dev/null; then
4536   if test -s conftest.err; then
4537     ac_cpp_err=$ac_c_preproc_warn_flag
4538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4539   else
4540     ac_cpp_err=
4541   fi
4542 else
4543   ac_cpp_err=yes
4544 fi
4545 if test -z "$ac_cpp_err"; then
4546   # Broken: success on invalid input.
4547 continue
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552   # Passes both tests.
4553 ac_preproc_ok=:
4554 break
4555 fi
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then
4562   :
4563 else
4564   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&5
4566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details." >&2;}
4568    { (exit 1); exit 1; }; }
4569 fi
4570
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 #include <stdlib.h>
4590 #include <stdarg.h>
4591 #include <string.h>
4592 #include <float.h>
4593
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_cv_header_stdc=yes
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_cv_header_stdc=no
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632
4633 if test $ac_cv_header_stdc = yes; then
4634   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635   cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <string.h>
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645   $EGREP "memchr" >/dev/null 2>&1; then
4646   :
4647 else
4648   ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest*
4651
4652 fi
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677   if test "$cross_compiling" = yes; then
4678   :
4679 else
4680   cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 #include <ctype.h>
4687 #if ((' ' & 0x0FF) == 0x020)
4688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4690 #else
4691 # define ISLOWER(c) \
4692                    (('a' <= (c) && (c) <= 'i') \
4693                      || ('j' <= (c) && (c) <= 'r') \
4694                      || ('s' <= (c) && (c) <= 'z'))
4695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4696 #endif
4697
4698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4699 int
4700 main ()
4701 {
4702   int i;
4703   for (i = 0; i < 256; i++)
4704     if (XOR (islower (i), ISLOWER (i))
4705         || toupper (i) != TOUPPER (i))
4706       exit(2);
4707   exit (0);
4708 }
4709 _ACEOF
4710 rm -f conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712   (eval $ac_link) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; }; then
4721   :
4722 else
4723   echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 ( exit $ac_status )
4728 ac_cv_header_stdc=no
4729 fi
4730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4731 fi
4732 fi
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4736 if test $ac_cv_header_stdc = yes; then
4737
4738 cat >>confdefs.h <<\_ACEOF
4739 #define STDC_HEADERS 1
4740 _ACEOF
4741
4742 fi
4743
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4755                   inttypes.h stdint.h unistd.h
4756 do
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 $ac_includes_default
4770
4771 #include <$ac_header>
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } &&
4782          { ac_try='test -z "$ac_c_werror_flag"
4783                          || test ! -s conftest.err'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; } &&
4789          { ac_try='test -s conftest.$ac_objext'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; }; then
4795   eval "$as_ac_Header=yes"
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 eval "$as_ac_Header=no"
4801 fi
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4807   cat >>confdefs.h <<_ACEOF
4808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4809 _ACEOF
4810
4811 fi
4812
4813 done
4814
4815
4816
4817 for ac_header in dlfcn.h
4818 do
4819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821   echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 fi
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4828 else
4829   # Is the header compilable?
4830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h.  */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h.  */
4838 $ac_includes_default
4839 #include <$ac_header>
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843   (eval $ac_compile) 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -z "$ac_c_werror_flag"
4851                          || test ! -s conftest.err'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; } &&
4857          { ac_try='test -s conftest.$ac_objext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   ac_header_compiler=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_header_compiler=no
4869 fi
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872 echo "${ECHO_T}$ac_header_compiler" >&6
4873
4874 # Is the header present?
4875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 #include <$ac_header>
4884 _ACEOF
4885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } >/dev/null; then
4893   if test -s conftest.err; then
4894     ac_cpp_err=$ac_c_preproc_warn_flag
4895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4896   else
4897     ac_cpp_err=
4898   fi
4899 else
4900   ac_cpp_err=yes
4901 fi
4902 if test -z "$ac_cpp_err"; then
4903   ac_header_preproc=yes
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908   ac_header_preproc=no
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4913
4914 # So?  What about this header?
4915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4916   yes:no: )
4917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4921     ac_header_preproc=yes
4922     ;;
4923   no:yes:* )
4924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4936     (
4937       cat <<\_ASBOX
4938 ## ---------------------------------- ##
4939 ## Report this to bug-libtool@gnu.org ##
4940 ## ---------------------------------- ##
4941 _ASBOX
4942     ) |
4943       sed "s/^/$as_me: WARNING:     /" >&2
4944     ;;
4945 esac
4946 echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   eval "$as_ac_Header=\$ac_header_preproc"
4952 fi
4953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4955
4956 fi
4957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4958   cat >>confdefs.h <<_ACEOF
4959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4960 _ACEOF
4961
4962 fi
4963
4964 done
4965
4966 ac_ext=cc
4967 ac_cpp='$CXXCPP $CPPFLAGS'
4968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4971 if test -n "$ac_tool_prefix"; then
4972   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4973   do
4974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_prog_CXX+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   if test -n "$CXX"; then
4982   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989   for ac_exec_ext in '' $ac_executable_extensions; do
4990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996 done
4997
4998 fi
4999 fi
5000 CXX=$ac_cv_prog_CXX
5001 if test -n "$CXX"; then
5002   echo "$as_me:$LINENO: result: $CXX" >&5
5003 echo "${ECHO_T}$CXX" >&6
5004 else
5005   echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5007 fi
5008
5009     test -n "$CXX" && break
5010   done
5011 fi
5012 if test -z "$CXX"; then
5013   ac_ct_CXX=$CXX
5014   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5015 do
5016   # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   if test -n "$ac_ct_CXX"; then
5024   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_prog_ac_ct_CXX="$ac_prog"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039
5040 fi
5041 fi
5042 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5043 if test -n "$ac_ct_CXX"; then
5044   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5045 echo "${ECHO_T}$ac_ct_CXX" >&6
5046 else
5047   echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5049 fi
5050
5051   test -n "$ac_ct_CXX" && break
5052 done
5053 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5054
5055   CXX=$ac_ct_CXX
5056 fi
5057
5058
5059 # Provide some information about the compiler.
5060 echo "$as_me:$LINENO:" \
5061      "checking for C++ compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064   (eval $ac_compiler --version </dev/null >&5) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069   (eval $ac_compiler -v </dev/null >&5) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074   (eval $ac_compiler -V </dev/null >&5) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }
5078
5079 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5080 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5081 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090
5091 int
5092 main ()
5093 {
5094 #ifndef __GNUC__
5095        choke me
5096 #endif
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104   (eval $ac_compile) 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } &&
5111          { ac_try='test -z "$ac_cxx_werror_flag"
5112                          || test ! -s conftest.err'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; } &&
5118          { ac_try='test -s conftest.$ac_objext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   ac_compiler_gnu=yes
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_compiler_gnu=no
5130 fi
5131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5133
5134 fi
5135 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5136 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5137 GXX=`test $ac_compiler_gnu = yes && echo yes`
5138 ac_test_CXXFLAGS=${CXXFLAGS+set}
5139 ac_save_CXXFLAGS=$CXXFLAGS
5140 CXXFLAGS="-g"
5141 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5143 if test "${ac_cv_prog_cxx_g+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152
5153 int
5154 main ()
5155 {
5156
5157   ;
5158   return 0;
5159 }
5160 _ACEOF
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163   (eval $ac_compile) 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } &&
5170          { ac_try='test -z "$ac_cxx_werror_flag"
5171                          || test ! -s conftest.err'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; } &&
5177          { ac_try='test -s conftest.$ac_objext'
5178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179   (eval $ac_try) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); }; }; then
5183   ac_cv_prog_cxx_g=yes
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188 ac_cv_prog_cxx_g=no
5189 fi
5190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5191 fi
5192 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5194 if test "$ac_test_CXXFLAGS" = set; then
5195   CXXFLAGS=$ac_save_CXXFLAGS
5196 elif test $ac_cv_prog_cxx_g = yes; then
5197   if test "$GXX" = yes; then
5198     CXXFLAGS="-g -O2"
5199   else
5200     CXXFLAGS="-g"
5201   fi
5202 else
5203   if test "$GXX" = yes; then
5204     CXXFLAGS="-O2"
5205   else
5206     CXXFLAGS=
5207   fi
5208 fi
5209 for ac_declaration in \
5210    '' \
5211    'extern "C" void std::exit (int) throw (); using std::exit;' \
5212    'extern "C" void std::exit (int); using std::exit;' \
5213    'extern "C" void exit (int) throw ();' \
5214    'extern "C" void exit (int);' \
5215    'void exit (int);'
5216 do
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 $ac_declaration
5224 #include <stdlib.h>
5225 int
5226 main ()
5227 {
5228 exit (42);
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235   (eval $ac_compile) 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -z "$ac_cxx_werror_flag"
5243                          || test ! -s conftest.err'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; } &&
5249          { ac_try='test -s conftest.$ac_objext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   :
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 continue
5261 fi
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263   cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h.  */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h.  */
5269 $ac_declaration
5270 int
5271 main ()
5272 {
5273 exit (42);
5274   ;
5275   return 0;
5276 }
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280   (eval $ac_compile) 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } &&
5287          { ac_try='test -z "$ac_cxx_werror_flag"
5288                          || test ! -s conftest.err'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; } &&
5294          { ac_try='test -s conftest.$ac_objext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   break
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 fi
5306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5307 done
5308 rm -f conftest*
5309 if test -n "$ac_declaration"; then
5310   echo '#ifdef __cplusplus' >>confdefs.h
5311   echo $ac_declaration      >>confdefs.h
5312   echo '#endif'             >>confdefs.h
5313 fi
5314
5315 ac_ext=cc
5316 ac_cpp='$CXXCPP $CPPFLAGS'
5317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5320
5321 depcc="$CXX"  am_compiler_list=
5322
5323 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5324 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5325 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5329   # We make a subdir and do the tests there.  Otherwise we can end up
5330   # making bogus files that we don't know about and never remove.  For
5331   # instance it was reported that on HP-UX the gcc test will end up
5332   # making a dummy file named `D' -- because `-MD' means `put the output
5333   # in D'.
5334   mkdir conftest.dir
5335   # Copy depcomp to subdir because otherwise we won't find it if we're
5336   # using a relative directory.
5337   cp "$am_depcomp" conftest.dir
5338   cd conftest.dir
5339   # We will build objects and dependencies in a subdirectory because
5340   # it helps to detect inapplicable dependency modes.  For instance
5341   # both Tru64's cc and ICC support -MD to output dependencies as a
5342   # side effect of compilation, but ICC will put the dependencies in
5343   # the current directory while Tru64 will put them in the object
5344   # directory.
5345   mkdir sub
5346
5347   am_cv_CXX_dependencies_compiler_type=none
5348   if test "$am_compiler_list" = ""; then
5349      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5350   fi
5351   for depmode in $am_compiler_list; do
5352     # Setup a source with many dependencies, because some compilers
5353     # like to wrap large dependency lists on column 80 (with \), and
5354     # we should not choose a depcomp mode which is confused by this.
5355     #
5356     # We need to recreate these files for each test, as the compiler may
5357     # overwrite some of them when testing with obscure command lines.
5358     # This happens at least with the AIX C compiler.
5359     : > sub/conftest.c
5360     for i in 1 2 3 4 5 6; do
5361       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5362       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5363       # Solaris 8's {/usr,}/bin/sh.
5364       touch sub/conftst$i.h
5365     done
5366     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5367
5368     case $depmode in
5369     nosideeffect)
5370       # after this tag, mechanisms are not by side-effect, so they'll
5371       # only be used when explicitly requested
5372       if test "x$enable_dependency_tracking" = xyes; then
5373         continue
5374       else
5375         break
5376       fi
5377       ;;
5378     none) break ;;
5379     esac
5380     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5381     # mode.  It turns out that the SunPro C++ compiler does not properly
5382     # handle `-M -o', and we need to detect this.
5383     if depmode=$depmode \
5384        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5385        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5387          >/dev/null 2>conftest.err &&
5388        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5389        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5390        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5391       # icc doesn't choke on unknown options, it will just issue warnings
5392       # or remarks (even with -Werror).  So we grep stderr for any message
5393       # that says an option was ignored or not supported.
5394       # When given -MP, icc 7.0 and 7.1 complain thusly:
5395       #   icc: Command line warning: ignoring option '-M'; no argument required
5396       # The diagnosis changed in icc 8.0:
5397       #   icc: Command line remark: option '-MP' not supported
5398       if (grep 'ignoring option' conftest.err ||
5399           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5400         am_cv_CXX_dependencies_compiler_type=$depmode
5401         break
5402       fi
5403     fi
5404   done
5405
5406   cd ..
5407   rm -rf conftest.dir
5408 else
5409   am_cv_CXX_dependencies_compiler_type=none
5410 fi
5411
5412 fi
5413 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5414 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5415 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5416
5417
5418
5419 if
5420   test "x$enable_dependency_tracking" != xno \
5421   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5422   am__fastdepCXX_TRUE=
5423   am__fastdepCXX_FALSE='#'
5424 else
5425   am__fastdepCXX_TRUE='#'
5426   am__fastdepCXX_FALSE=
5427 fi
5428
5429
5430
5431
5432 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5433     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5434     (test "X$CXX" != "Xg++"))) ; then
5435   ac_ext=cc
5436 ac_cpp='$CXXCPP $CPPFLAGS'
5437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5440 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5441 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5442 if test -z "$CXXCPP"; then
5443   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446       # Double quotes because CXXCPP needs to be expanded
5447     for CXXCPP in "$CXX -E" "/lib/cpp"
5448     do
5449       ac_preproc_ok=false
5450 for ac_cxx_preproc_warn_flag in '' yes
5451 do
5452   # Use a header file that comes with gcc, so configuring glibc
5453   # with a fresh cross-compiler works.
5454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5455   # <limits.h> exists even on freestanding compilers.
5456   # On the NeXT, cc -E runs the code through the compiler's parser,
5457   # not just through cpp. "Syntax error" is here to catch this case.
5458   cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h.  */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h.  */
5464 #ifdef __STDC__
5465 # include <limits.h>
5466 #else
5467 # include <assert.h>
5468 #endif
5469                      Syntax error
5470 _ACEOF
5471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } >/dev/null; then
5479   if test -s conftest.err; then
5480     ac_cpp_err=$ac_cxx_preproc_warn_flag
5481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5482   else
5483     ac_cpp_err=
5484   fi
5485 else
5486   ac_cpp_err=yes
5487 fi
5488 if test -z "$ac_cpp_err"; then
5489   :
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494   # Broken: fails on valid input.
5495 continue
5496 fi
5497 rm -f conftest.err conftest.$ac_ext
5498
5499   # OK, works on sane cases.  Now check whether non-existent headers
5500   # can be detected and how.
5501   cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 #include <ac_nonexistent.h>
5508 _ACEOF
5509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5511   ac_status=$?
5512   grep -v '^ *+' conftest.er1 >conftest.err
5513   rm -f conftest.er1
5514   cat conftest.err >&5
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); } >/dev/null; then
5517   if test -s conftest.err; then
5518     ac_cpp_err=$ac_cxx_preproc_warn_flag
5519     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5520   else
5521     ac_cpp_err=
5522   fi
5523 else
5524   ac_cpp_err=yes
5525 fi
5526 if test -z "$ac_cpp_err"; then
5527   # Broken: success on invalid input.
5528 continue
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533   # Passes both tests.
5534 ac_preproc_ok=:
5535 break
5536 fi
5537 rm -f conftest.err conftest.$ac_ext
5538
5539 done
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.err conftest.$ac_ext
5542 if $ac_preproc_ok; then
5543   break
5544 fi
5545
5546     done
5547     ac_cv_prog_CXXCPP=$CXXCPP
5548
5549 fi
5550   CXXCPP=$ac_cv_prog_CXXCPP
5551 else
5552   ac_cv_prog_CXXCPP=$CXXCPP
5553 fi
5554 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5555 echo "${ECHO_T}$CXXCPP" >&6
5556 ac_preproc_ok=false
5557 for ac_cxx_preproc_warn_flag in '' yes
5558 do
5559   # Use a header file that comes with gcc, so configuring glibc
5560   # with a fresh cross-compiler works.
5561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562   # <limits.h> exists even on freestanding compilers.
5563   # On the NeXT, cc -E runs the code through the compiler's parser,
5564   # not just through cpp. "Syntax error" is here to catch this case.
5565   cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5576                      Syntax error
5577 _ACEOF
5578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5580   ac_status=$?
5581   grep -v '^ *+' conftest.er1 >conftest.err
5582   rm -f conftest.er1
5583   cat conftest.err >&5
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); } >/dev/null; then
5586   if test -s conftest.err; then
5587     ac_cpp_err=$ac_cxx_preproc_warn_flag
5588     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5589   else
5590     ac_cpp_err=
5591   fi
5592 else
5593   ac_cpp_err=yes
5594 fi
5595 if test -z "$ac_cpp_err"; then
5596   :
5597 else
5598   echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601   # Broken: fails on valid input.
5602 continue
5603 fi
5604 rm -f conftest.err conftest.$ac_ext
5605
5606   # OK, works on sane cases.  Now check whether non-existent headers
5607   # can be detected and how.
5608   cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h.  */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h.  */
5614 #include <ac_nonexistent.h>
5615 _ACEOF
5616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5618   ac_status=$?
5619   grep -v '^ *+' conftest.er1 >conftest.err
5620   rm -f conftest.er1
5621   cat conftest.err >&5
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } >/dev/null; then
5624   if test -s conftest.err; then
5625     ac_cpp_err=$ac_cxx_preproc_warn_flag
5626     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5627   else
5628     ac_cpp_err=
5629   fi
5630 else
5631   ac_cpp_err=yes
5632 fi
5633 if test -z "$ac_cpp_err"; then
5634   # Broken: success on invalid input.
5635 continue
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640   # Passes both tests.
5641 ac_preproc_ok=:
5642 break
5643 fi
5644 rm -f conftest.err conftest.$ac_ext
5645
5646 done
5647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5648 rm -f conftest.err conftest.$ac_ext
5649 if $ac_preproc_ok; then
5650   :
5651 else
5652   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5653 See \`config.log' for more details." >&5
5654 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5655 See \`config.log' for more details." >&2;}
5656    { (exit 1); exit 1; }; }
5657 fi
5658
5659 ac_ext=cc
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664
5665 fi
5666
5667
5668 ac_ext=f
5669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5672 if test -n "$ac_tool_prefix"; then
5673   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5674   do
5675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5677 echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5679 if test "${ac_cv_prog_F77+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   if test -n "$F77"; then
5683   ac_cv_prog_F77="$F77" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690   for ac_exec_ext in '' $ac_executable_extensions; do
5691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697 done
5698
5699 fi
5700 fi
5701 F77=$ac_cv_prog_F77
5702 if test -n "$F77"; then
5703   echo "$as_me:$LINENO: result: $F77" >&5
5704 echo "${ECHO_T}$F77" >&6
5705 else
5706   echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6
5708 fi
5709
5710     test -n "$F77" && break
5711   done
5712 fi
5713 if test -z "$F77"; then
5714   ac_ct_F77=$F77
5715   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5716 do
5717   # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   if test -n "$ac_ct_F77"; then
5725   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732   for ac_exec_ext in '' $ac_executable_extensions; do
5733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734     ac_cv_prog_ac_ct_F77="$ac_prog"
5735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739 done
5740
5741 fi
5742 fi
5743 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5744 if test -n "$ac_ct_F77"; then
5745   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5746 echo "${ECHO_T}$ac_ct_F77" >&6
5747 else
5748   echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5750 fi
5751
5752   test -n "$ac_ct_F77" && break
5753 done
5754
5755   F77=$ac_ct_F77
5756 fi
5757
5758
5759 # Provide some information about the compiler.
5760 echo "$as_me:5760:" \
5761      "checking for Fortran 77 compiler version" >&5
5762 ac_compiler=`set X $ac_compile; echo $2`
5763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5764   (eval $ac_compiler --version </dev/null >&5) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }
5768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5769   (eval $ac_compiler -v </dev/null >&5) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }
5773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5774   (eval $ac_compiler -V </dev/null >&5) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }
5778 rm -f a.out
5779
5780 # If we don't use `.F' as extension, the preprocessor is not run on the
5781 # input file.  (Note that this only needs to work for GNU compilers.)
5782 ac_save_ext=$ac_ext
5783 ac_ext=F
5784 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   cat >conftest.$ac_ext <<_ACEOF
5790       program main
5791 #ifndef __GNUC__
5792        choke me
5793 #endif
5794
5795       end
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799   (eval $ac_compile) 2>conftest.er1
5800   ac_status=$?
5801   grep -v '^ *+' conftest.er1 >conftest.err
5802   rm -f conftest.er1
5803   cat conftest.err >&5
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); } &&
5806          { ac_try='test -z "$ac_f77_werror_flag"
5807                          || test ! -s conftest.err'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; } &&
5813          { ac_try='test -s conftest.$ac_objext'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   ac_compiler_gnu=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_compiler_gnu=no
5825 fi
5826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5828
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5831 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5832 ac_ext=$ac_save_ext
5833 ac_test_FFLAGS=${FFLAGS+set}
5834 ac_save_FFLAGS=$FFLAGS
5835 FFLAGS=
5836 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5837 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5838 if test "${ac_cv_prog_f77_g+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   FFLAGS=-g
5842 cat >conftest.$ac_ext <<_ACEOF
5843       program main
5844
5845       end
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_f77_werror_flag"
5857                          || test ! -s conftest.err'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_cv_prog_f77_g=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_cv_prog_f77_g=no
5875 fi
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5880 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5881 if test "$ac_test_FFLAGS" = set; then
5882   FFLAGS=$ac_save_FFLAGS
5883 elif test $ac_cv_prog_f77_g = yes; then
5884   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5885     FFLAGS="-g -O2"
5886   else
5887     FFLAGS="-g"
5888   fi
5889 else
5890   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5891     FFLAGS="-O2"
5892   else
5893     FFLAGS=
5894   fi
5895 fi
5896
5897 G77=`test $ac_compiler_gnu = yes && echo yes`
5898 ac_ext=c
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
5904
5905
5906 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5907
5908 # find the maximum length of command line arguments
5909 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5910 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914     i=0
5915   teststring="ABCD"
5916
5917   case $build_os in
5918   msdosdjgpp*)
5919     # On DJGPP, this test can blow up pretty badly due to problems in libc
5920     # (any single argument exceeding 2000 bytes causes a buffer overrun
5921     # during glob expansion).  Even if it were fixed, the result of this
5922     # check would be larger than it should be.
5923     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5924     ;;
5925
5926   gnu*)
5927     # Under GNU Hurd, this test is not required because there is
5928     # no limit to the length of command line arguments.
5929     # Libtool will interpret -1 as no limit whatsoever
5930     lt_cv_sys_max_cmd_len=-1;
5931     ;;
5932
5933   cygwin* | mingw*)
5934     # On Win9x/ME, this test blows up -- it succeeds, but takes
5935     # about 5 minutes as the teststring grows exponentially.
5936     # Worse, since 9x/ME are not pre-emptively multitasking,
5937     # you end up with a "frozen" computer, even though with patience
5938     # the test eventually succeeds (with a max line length of 256k).
5939     # Instead, let's just punt: use the minimum linelength reported by
5940     # all of the supported platforms: 8192 (on NT/2K/XP).
5941     lt_cv_sys_max_cmd_len=8192;
5942     ;;
5943
5944   amigaos*)
5945     # On AmigaOS with pdksh, this test takes hours, literally.
5946     # So we just punt and use a minimum line length of 8192.
5947     lt_cv_sys_max_cmd_len=8192;
5948     ;;
5949
5950   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5951     # This has been around since 386BSD, at least.  Likely further.
5952     if test -x /sbin/sysctl; then
5953       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5954     elif test -x /usr/sbin/sysctl; then
5955       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5956     else
5957       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5958     fi
5959     # And add a safety zone
5960     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5961     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5962     ;;
5963   osf*)
5964     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5965     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5966     # nice to cause kernel panics so lets avoid the loop below.
5967     # First set a reasonable default.
5968     lt_cv_sys_max_cmd_len=16384
5969     #
5970     if test -x /sbin/sysconfig; then
5971       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5972         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5973       esac
5974     fi
5975     ;;
5976   *)
5977     # If test is not a shell built-in, we'll probably end up computing a
5978     # maximum length that is only half of the actual maximum length, but
5979     # we can't tell.
5980     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5981     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5982                = "XX$teststring") >/dev/null 2>&1 &&
5983             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5984             lt_cv_sys_max_cmd_len=$new_result &&
5985             test $i != 17 # 1/2 MB should be enough
5986     do
5987       i=`expr $i + 1`
5988       teststring=$teststring$teststring
5989     done
5990     teststring=
5991     # Add a significant safety factor because C++ compilers can tack on massive
5992     # amounts of additional arguments before passing them to the linker.
5993     # It appears as though 1/2 is a usable value.
5994     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5995     ;;
5996   esac
5997
5998 fi
5999
6000 if test -n $lt_cv_sys_max_cmd_len ; then
6001   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6002 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6003 else
6004   echo "$as_me:$LINENO: result: none" >&5
6005 echo "${ECHO_T}none" >&6
6006 fi
6007
6008
6009
6010
6011 # Check for command to grab the raw symbol name followed by C symbol from nm.
6012 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6013 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6014 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017
6018 # These are sane defaults that work on at least a few old systems.
6019 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6020
6021 # Character class describing NM global symbol codes.
6022 symcode='[BCDEGRST]'
6023
6024 # Regexp to match symbols that can be accessed directly from C.
6025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6026
6027 # Transform an extracted symbol line into a proper C declaration
6028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6029
6030 # Transform an extracted symbol line into symbol name and symbol address
6031 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'"
6032
6033 # Define system-specific variables.
6034 case $host_os in
6035 aix*)
6036   symcode='[BCDT]'
6037   ;;
6038 cygwin* | mingw* | pw32*)
6039   symcode='[ABCDGISTW]'
6040   ;;
6041 hpux*) # Its linker distinguishes data from code symbols
6042   if test "$host_cpu" = ia64; then
6043     symcode='[ABCDEGRST]'
6044   fi
6045   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046   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'"
6047   ;;
6048 linux*)
6049   if test "$host_cpu" = ia64; then
6050     symcode='[ABCDGIRSTW]'
6051     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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   fi
6054   ;;
6055 irix* | nonstopux*)
6056   symcode='[BCDEGRST]'
6057   ;;
6058 osf*)
6059   symcode='[BCDEGQRST]'
6060   ;;
6061 solaris* | sysv5*)
6062   symcode='[BDRT]'
6063   ;;
6064 sysv4)
6065   symcode='[DFNSTU]'
6066   ;;
6067 esac
6068
6069 # Handle CRLF in mingw tool chain
6070 opt_cr=
6071 case $build_os in
6072 mingw*)
6073   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6074   ;;
6075 esac
6076
6077 # If we're using GNU nm, then use its standard symbol codes.
6078 case `$NM -V 2>&1` in
6079 *GNU* | *'with BFD'*)
6080   symcode='[ABCDGIRSTW]' ;;
6081 esac
6082
6083 # Try without a prefix undercore, then with it.
6084 for ac_symprfx in "" "_"; do
6085
6086   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6087   symxfrm="\\1 $ac_symprfx\\2 \\2"
6088
6089   # Write the raw and C identifiers.
6090   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6091
6092   # Check to see that the pipe works correctly.
6093   pipe_works=no
6094
6095   rm -f conftest*
6096   cat > conftest.$ac_ext <<EOF
6097 #ifdef __cplusplus
6098 extern "C" {
6099 #endif
6100 char nm_test_var;
6101 void nm_test_func(){}
6102 #ifdef __cplusplus
6103 }
6104 #endif
6105 int main(){nm_test_var='a';nm_test_func();return(0);}
6106 EOF
6107
6108   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109   (eval $ac_compile) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; then
6113     # Now try to grab the symbols.
6114     nlist=conftest.nm
6115     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6116   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } && test -s "$nlist"; then
6120       # Try sorting and uniquifying the output.
6121       if sort "$nlist" | uniq > "$nlist"T; then
6122         mv -f "$nlist"T "$nlist"
6123       else
6124         rm -f "$nlist"T
6125       fi
6126
6127       # Make sure that we snagged all the symbols we need.
6128       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6129         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6130           cat <<EOF > conftest.$ac_ext
6131 #ifdef __cplusplus
6132 extern "C" {
6133 #endif
6134
6135 EOF
6136           # Now generate the symbol file.
6137           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6138
6139           cat <<EOF >> conftest.$ac_ext
6140 #if defined (__STDC__) && __STDC__
6141 # define lt_ptr_t void *
6142 #else
6143 # define lt_ptr_t char *
6144 # define const
6145 #endif
6146
6147 /* The mapping between symbol names and symbols. */
6148 const struct {
6149   const char *name;
6150   lt_ptr_t address;
6151 }
6152 lt_preloaded_symbols[] =
6153 {
6154 EOF
6155           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6156           cat <<\EOF >> conftest.$ac_ext
6157   {0, (lt_ptr_t) 0}
6158 };
6159
6160 #ifdef __cplusplus
6161 }
6162 #endif
6163 EOF
6164           # Now try linking the two files.
6165           mv conftest.$ac_objext conftstm.$ac_objext
6166           lt_save_LIBS="$LIBS"
6167           lt_save_CFLAGS="$CFLAGS"
6168           LIBS="conftstm.$ac_objext"
6169           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6170           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171   (eval $ac_link) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6175             pipe_works=yes
6176           fi
6177           LIBS="$lt_save_LIBS"
6178           CFLAGS="$lt_save_CFLAGS"
6179         else
6180           echo "cannot find nm_test_func in $nlist" >&5
6181         fi
6182       else
6183         echo "cannot find nm_test_var in $nlist" >&5
6184       fi
6185     else
6186       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6187     fi
6188   else
6189     echo "$progname: failed program was:" >&5
6190     cat conftest.$ac_ext >&5
6191   fi
6192   rm -f conftest* conftst*
6193
6194   # Do not use the global_symbol_pipe unless it works.
6195   if test "$pipe_works" = yes; then
6196     break
6197   else
6198     lt_cv_sys_global_symbol_pipe=
6199   fi
6200 done
6201
6202 fi
6203
6204 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205   lt_cv_sys_global_symbol_to_cdecl=
6206 fi
6207 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6208   echo "$as_me:$LINENO: result: failed" >&5
6209 echo "${ECHO_T}failed" >&6
6210 else
6211   echo "$as_me:$LINENO: result: ok" >&5
6212 echo "${ECHO_T}ok" >&6
6213 fi
6214
6215 echo "$as_me:$LINENO: checking for objdir" >&5
6216 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6217 if test "${lt_cv_objdir+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   rm -f .libs 2>/dev/null
6221 mkdir .libs 2>/dev/null
6222 if test -d .libs; then
6223   lt_cv_objdir=.libs
6224 else
6225   # MS-DOS does not allow filenames that begin with a dot.
6226   lt_cv_objdir=_libs
6227 fi
6228 rmdir .libs 2>/dev/null
6229 fi
6230 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6231 echo "${ECHO_T}$lt_cv_objdir" >&6
6232 objdir=$lt_cv_objdir
6233
6234
6235
6236
6237
6238 case $host_os in
6239 aix3*)
6240   # AIX sometimes has problems with the GCC collect2 program.  For some
6241   # reason, if we set the COLLECT_NAMES environment variable, the problems
6242   # vanish in a puff of smoke.
6243   if test "X${COLLECT_NAMES+set}" != Xset; then
6244     COLLECT_NAMES=
6245     export COLLECT_NAMES
6246   fi
6247   ;;
6248 esac
6249
6250 # Sed substitution that helps us do robust quoting.  It backslashifies
6251 # metacharacters that are still active within double-quoted strings.
6252 Xsed='sed -e 1s/^X//'
6253 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6254
6255 # Same as above, but do not quote variable references.
6256 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6257
6258 # Sed substitution to delay expansion of an escaped shell variable in a
6259 # double_quote_subst'ed string.
6260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6261
6262 # Sed substitution to avoid accidental globbing in evaled expressions
6263 no_glob_subst='s/\*/\\\*/g'
6264
6265 # Constants:
6266 rm="rm -f"
6267
6268 # Global variables:
6269 default_ofile=libtool
6270 can_build_shared=yes
6271
6272 # All known linkers require a `.a' archive for static linking (except M$VC,
6273 # which needs '.lib').
6274 libext=a
6275 ltmain="$ac_aux_dir/ltmain.sh"
6276 ofile="$default_ofile"
6277 with_gnu_ld="$lt_cv_prog_gnu_ld"
6278
6279 if test -n "$ac_tool_prefix"; then
6280   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ar; ac_word=$2
6282 echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284 if test "${ac_cv_prog_AR+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   if test -n "$AR"; then
6288   ac_cv_prog_AR="$AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295   for ac_exec_ext in '' $ac_executable_extensions; do
6296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297     ac_cv_prog_AR="${ac_tool_prefix}ar"
6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302 done
6303
6304 fi
6305 fi
6306 AR=$ac_cv_prog_AR
6307 if test -n "$AR"; then
6308   echo "$as_me:$LINENO: result: $AR" >&5
6309 echo "${ECHO_T}$AR" >&6
6310 else
6311   echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6
6313 fi
6314
6315 fi
6316 if test -z "$ac_cv_prog_AR"; then
6317   ac_ct_AR=$AR
6318   # Extract the first word of "ar", so it can be a program name with args.
6319 set dummy ar; ac_word=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   if test -n "$ac_ct_AR"; then
6326   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333   for ac_exec_ext in '' $ac_executable_extensions; do
6334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335     ac_cv_prog_ac_ct_AR="ar"
6336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340 done
6341
6342   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6343 fi
6344 fi
6345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6346 if test -n "$ac_ct_AR"; then
6347   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6348 echo "${ECHO_T}$ac_ct_AR" >&6
6349 else
6350   echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6352 fi
6353
6354   AR=$ac_ct_AR
6355 else
6356   AR="$ac_cv_prog_AR"
6357 fi
6358
6359 if test -n "$ac_tool_prefix"; then
6360   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6362 echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364 if test "${ac_cv_prog_RANLIB+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   if test -n "$RANLIB"; then
6368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375   for ac_exec_ext in '' $ac_executable_extensions; do
6376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382 done
6383
6384 fi
6385 fi
6386 RANLIB=$ac_cv_prog_RANLIB
6387 if test -n "$RANLIB"; then
6388   echo "$as_me:$LINENO: result: $RANLIB" >&5
6389 echo "${ECHO_T}$RANLIB" >&6
6390 else
6391   echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6
6393 fi
6394
6395 fi
6396 if test -z "$ac_cv_prog_RANLIB"; then
6397   ac_ct_RANLIB=$RANLIB
6398   # Extract the first word of "ranlib", so it can be a program name with args.
6399 set dummy ranlib; ac_word=$2
6400 echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   if test -n "$ac_ct_RANLIB"; then
6406   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413   for ac_exec_ext in '' $ac_executable_extensions; do
6414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415     ac_cv_prog_ac_ct_RANLIB="ranlib"
6416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420 done
6421
6422   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6423 fi
6424 fi
6425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6426 if test -n "$ac_ct_RANLIB"; then
6427   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6429 else
6430   echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6
6432 fi
6433
6434   RANLIB=$ac_ct_RANLIB
6435 else
6436   RANLIB="$ac_cv_prog_RANLIB"
6437 fi
6438
6439 if test -n "$ac_tool_prefix"; then
6440   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}strip; ac_word=$2
6442 echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6444 if test "${ac_cv_prog_STRIP+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   if test -n "$STRIP"; then
6448   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455   for ac_exec_ext in '' $ac_executable_extensions; do
6456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462 done
6463
6464 fi
6465 fi
6466 STRIP=$ac_cv_prog_STRIP
6467 if test -n "$STRIP"; then
6468   echo "$as_me:$LINENO: result: $STRIP" >&5
6469 echo "${ECHO_T}$STRIP" >&6
6470 else
6471   echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6
6473 fi
6474
6475 fi
6476 if test -z "$ac_cv_prog_STRIP"; then
6477   ac_ct_STRIP=$STRIP
6478   # Extract the first word of "strip", so it can be a program name with args.
6479 set dummy strip; ac_word=$2
6480 echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   if test -n "$ac_ct_STRIP"; then
6486   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493   for ac_exec_ext in '' $ac_executable_extensions; do
6494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495     ac_cv_prog_ac_ct_STRIP="strip"
6496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500 done
6501
6502   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6503 fi
6504 fi
6505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6506 if test -n "$ac_ct_STRIP"; then
6507   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6508 echo "${ECHO_T}$ac_ct_STRIP" >&6
6509 else
6510   echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6
6512 fi
6513
6514   STRIP=$ac_ct_STRIP
6515 else
6516   STRIP="$ac_cv_prog_STRIP"
6517 fi
6518
6519
6520 old_CC="$CC"
6521 old_CFLAGS="$CFLAGS"
6522
6523 # Set sane defaults for various variables
6524 test -z "$AR" && AR=ar
6525 test -z "$AR_FLAGS" && AR_FLAGS=cru
6526 test -z "$AS" && AS=as
6527 test -z "$CC" && CC=cc
6528 test -z "$LTCC" && LTCC=$CC
6529 test -z "$DLLTOOL" && DLLTOOL=dlltool
6530 test -z "$LD" && LD=ld
6531 test -z "$LN_S" && LN_S="ln -s"
6532 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6533 test -z "$NM" && NM=nm
6534 test -z "$SED" && SED=sed
6535 test -z "$OBJDUMP" && OBJDUMP=objdump
6536 test -z "$RANLIB" && RANLIB=:
6537 test -z "$STRIP" && STRIP=:
6538 test -z "$ac_objext" && ac_objext=o
6539
6540 # Determine commands to create old-style static archives.
6541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6542 old_postinstall_cmds='chmod 644 $oldlib'
6543 old_postuninstall_cmds=
6544
6545 if test -n "$RANLIB"; then
6546   case $host_os in
6547   openbsd*)
6548     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6549     ;;
6550   *)
6551     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6552     ;;
6553   esac
6554   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6555 fi
6556
6557 for cc_temp in $compiler""; do
6558   case $cc_temp in
6559     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6560     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6561     \-*) ;;
6562     *) break;;
6563   esac
6564 done
6565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6566
6567
6568 # Only perform the check for file, if the check method requires it
6569 case $deplibs_check_method in
6570 file_magic*)
6571   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6572     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6573 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   case $MAGIC_CMD in
6578 [\\/*] |  ?:[\\/]*)
6579   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6580   ;;
6581 *)
6582   lt_save_MAGIC_CMD="$MAGIC_CMD"
6583   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6584   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6585   for ac_dir in $ac_dummy; do
6586     IFS="$lt_save_ifs"
6587     test -z "$ac_dir" && ac_dir=.
6588     if test -f $ac_dir/${ac_tool_prefix}file; then
6589       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6590       if test -n "$file_magic_test_file"; then
6591         case $deplibs_check_method in
6592         "file_magic "*)
6593           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6594           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6595           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6596             $EGREP "$file_magic_regex" > /dev/null; then
6597             :
6598           else
6599             cat <<EOF 1>&2
6600
6601 *** Warning: the command libtool uses to detect shared libraries,
6602 *** $file_magic_cmd, produces output that libtool cannot recognize.
6603 *** The result is that libtool may fail to recognize shared libraries
6604 *** as such.  This will affect the creation of libtool libraries that
6605 *** depend on shared libraries, but programs linked with such libtool
6606 *** libraries will work regardless of this problem.  Nevertheless, you
6607 *** may want to report the problem to your system manager and/or to
6608 *** bug-libtool@gnu.org
6609
6610 EOF
6611           fi ;;
6612         esac
6613       fi
6614       break
6615     fi
6616   done
6617   IFS="$lt_save_ifs"
6618   MAGIC_CMD="$lt_save_MAGIC_CMD"
6619   ;;
6620 esac
6621 fi
6622
6623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6624 if test -n "$MAGIC_CMD"; then
6625   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6626 echo "${ECHO_T}$MAGIC_CMD" >&6
6627 else
6628   echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6630 fi
6631
6632 if test -z "$lt_cv_path_MAGIC_CMD"; then
6633   if test -n "$ac_tool_prefix"; then
6634     echo "$as_me:$LINENO: checking for file" >&5
6635 echo $ECHO_N "checking for file... $ECHO_C" >&6
6636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   case $MAGIC_CMD in
6640 [\\/*] |  ?:[\\/]*)
6641   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6642   ;;
6643 *)
6644   lt_save_MAGIC_CMD="$MAGIC_CMD"
6645   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6646   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6647   for ac_dir in $ac_dummy; do
6648     IFS="$lt_save_ifs"
6649     test -z "$ac_dir" && ac_dir=.
6650     if test -f $ac_dir/file; then
6651       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6652       if test -n "$file_magic_test_file"; then
6653         case $deplibs_check_method in
6654         "file_magic "*)
6655           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6656           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6657           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6658             $EGREP "$file_magic_regex" > /dev/null; then
6659             :
6660           else
6661             cat <<EOF 1>&2
6662
6663 *** Warning: the command libtool uses to detect shared libraries,
6664 *** $file_magic_cmd, produces output that libtool cannot recognize.
6665 *** The result is that libtool may fail to recognize shared libraries
6666 *** as such.  This will affect the creation of libtool libraries that
6667 *** depend on shared libraries, but programs linked with such libtool
6668 *** libraries will work regardless of this problem.  Nevertheless, you
6669 *** may want to report the problem to your system manager and/or to
6670 *** bug-libtool@gnu.org
6671
6672 EOF
6673           fi ;;
6674         esac
6675       fi
6676       break
6677     fi
6678   done
6679   IFS="$lt_save_ifs"
6680   MAGIC_CMD="$lt_save_MAGIC_CMD"
6681   ;;
6682 esac
6683 fi
6684
6685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6686 if test -n "$MAGIC_CMD"; then
6687   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6688 echo "${ECHO_T}$MAGIC_CMD" >&6
6689 else
6690   echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6692 fi
6693
6694   else
6695     MAGIC_CMD=:
6696   fi
6697 fi
6698
6699   fi
6700   ;;
6701 esac
6702
6703 enable_dlopen=no
6704 enable_win32_dll=yes
6705
6706 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6707 if test "${enable_libtool_lock+set}" = set; then
6708   enableval="$enable_libtool_lock"
6709
6710 fi;
6711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6712
6713
6714 # Check whether --with-pic or --without-pic was given.
6715 if test "${with_pic+set}" = set; then
6716   withval="$with_pic"
6717   pic_mode="$withval"
6718 else
6719   pic_mode=default
6720 fi;
6721 test -z "$pic_mode" && pic_mode=default
6722
6723 # Use C for the default configuration in the libtool script
6724 tagname=
6725 lt_save_CC="$CC"
6726 ac_ext=c
6727 ac_cpp='$CPP $CPPFLAGS'
6728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6731
6732
6733 # Source file extension for C test sources.
6734 ac_ext=c
6735
6736 # Object file extension for compiled C test sources.
6737 objext=o
6738 objext=$objext
6739
6740 # Code to be used in simple compile tests
6741 lt_simple_compile_test_code="int some_variable = 0;\n"
6742
6743 # Code to be used in simple link tests
6744 lt_simple_link_test_code='int main(){return(0);}\n'
6745
6746
6747 # If no C compiler was specified, use CC.
6748 LTCC=${LTCC-"$CC"}
6749
6750 # Allow CC to be a program name with arguments.
6751 compiler=$CC
6752
6753
6754 # save warnings/boilerplate of simple test code
6755 ac_outfile=conftest.$ac_objext
6756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6758 _lt_compiler_boilerplate=`cat conftest.err`
6759 $rm conftest*
6760
6761 ac_outfile=conftest.$ac_objext
6762 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6764 _lt_linker_boilerplate=`cat conftest.err`
6765 $rm conftest*
6766
6767
6768 #
6769 # Check for any special shared library compilation flags.
6770 #
6771 lt_prog_cc_shlib=
6772 if test "$GCC" = no; then
6773   case $host_os in
6774   sco3.2v5*)
6775     lt_prog_cc_shlib='-belf'
6776     ;;
6777   esac
6778 fi
6779 if test -n "$lt_prog_cc_shlib"; then
6780   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6781 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6782   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6783   else
6784     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6785 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6786     lt_cv_prog_cc_can_build_shared=no
6787   fi
6788 fi
6789
6790
6791 #
6792 # Check to make sure the static flag actually works.
6793 #
6794 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6795 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6796 if test "${lt_prog_compiler_static_works+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   lt_prog_compiler_static_works=no
6800    save_LDFLAGS="$LDFLAGS"
6801    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6802    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6803    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6804      # The compiler can only warn and ignore the option if not recognized
6805      # So say no if there are warnings
6806      if test -s conftest.err; then
6807        # Append any errors to the config.log.
6808        cat conftest.err 1>&5
6809        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6810        $SED '/^$/d' conftest.err >conftest.er2
6811        if diff conftest.exp conftest.er2 >/dev/null; then
6812          lt_prog_compiler_static_works=yes
6813        fi
6814      else
6815        lt_prog_compiler_static_works=yes
6816      fi
6817    fi
6818    $rm conftest*
6819    LDFLAGS="$save_LDFLAGS"
6820
6821 fi
6822 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6823 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6824
6825 if test x"$lt_prog_compiler_static_works" = xyes; then
6826     :
6827 else
6828     lt_prog_compiler_static=
6829 fi
6830
6831
6832
6833 ## CAVEAT EMPTOR:
6834 ## There is no encapsulation within the following macros, do not change
6835 ## the running order or otherwise move them around unless you know exactly
6836 ## what you are doing...
6837
6838 lt_prog_compiler_no_builtin_flag=
6839
6840 if test "$GCC" = yes; then
6841   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6842
6843
6844 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6845 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6846 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   lt_cv_prog_compiler_rtti_exceptions=no
6850   ac_outfile=conftest.$ac_objext
6851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6852    lt_compiler_flag="-fno-rtti -fno-exceptions"
6853    # Insert the option either (1) after the last *FLAGS variable, or
6854    # (2) before a word containing "conftest.", or (3) at the end.
6855    # Note that $ac_compile itself does not contain backslashes and begins
6856    # with a dollar sign (not a hyphen), so the echo should work correctly.
6857    # The option is referenced via a variable to avoid confusing sed.
6858    lt_compile=`echo "$ac_compile" | $SED \
6859    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6861    -e 's:$: $lt_compiler_flag:'`
6862    (eval echo "\"\$as_me:6862: $lt_compile\"" >&5)
6863    (eval "$lt_compile" 2>conftest.err)
6864    ac_status=$?
6865    cat conftest.err >&5
6866    echo "$as_me:6866: \$? = $ac_status" >&5
6867    if (exit $ac_status) && test -s "$ac_outfile"; then
6868      # The compiler can only warn and ignore the option if not recognized
6869      # So say no if there are warnings other than the usual output.
6870      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6871      $SED '/^$/d' conftest.err >conftest.er2
6872      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6873        lt_cv_prog_compiler_rtti_exceptions=yes
6874      fi
6875    fi
6876    $rm conftest*
6877
6878 fi
6879 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6880 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6881
6882 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6883     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6884 else
6885     :
6886 fi
6887
6888 fi
6889
6890 lt_prog_compiler_wl=
6891 lt_prog_compiler_pic=
6892 lt_prog_compiler_static=
6893
6894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6896
6897   if test "$GCC" = yes; then
6898     lt_prog_compiler_wl='-Wl,'
6899     lt_prog_compiler_static='-static'
6900
6901     case $host_os in
6902       aix*)
6903       # All AIX code is PIC.
6904       if test "$host_cpu" = ia64; then
6905         # AIX 5 now supports IA64 processor
6906         lt_prog_compiler_static='-Bstatic'
6907       fi
6908       ;;
6909
6910     amigaos*)
6911       # FIXME: we need at least 68020 code to build shared libraries, but
6912       # adding the `-m68020' flag to GCC prevents building anything better,
6913       # like `-m68040'.
6914       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6915       ;;
6916
6917     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6918       # PIC is the default for these OSes.
6919       ;;
6920
6921     mingw* | pw32* | os2*)
6922       # This hack is so that the source file can tell whether it is being
6923       # built for inclusion in a dll (and should export symbols for example).
6924       lt_prog_compiler_pic='-DDLL_EXPORT'
6925       ;;
6926
6927     darwin* | rhapsody*)
6928       # PIC is the default on this platform
6929       # Common symbols not allowed in MH_DYLIB files
6930       lt_prog_compiler_pic='-fno-common'
6931       ;;
6932
6933     msdosdjgpp*)
6934       # Just because we use GCC doesn't mean we suddenly get shared libraries
6935       # on systems that don't support them.
6936       lt_prog_compiler_can_build_shared=no
6937       enable_shared=no
6938       ;;
6939
6940     sysv4*MP*)
6941       if test -d /usr/nec; then
6942         lt_prog_compiler_pic=-Kconform_pic
6943       fi
6944       ;;
6945
6946     hpux*)
6947       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6948       # not for PA HP-UX.
6949       case "$host_cpu" in
6950       hppa*64*|ia64*)
6951         # +Z the default
6952         ;;
6953       *)
6954         lt_prog_compiler_pic='-fPIC'
6955         ;;
6956       esac
6957       ;;
6958
6959     *)
6960       lt_prog_compiler_pic='-fPIC'
6961       ;;
6962     esac
6963   else
6964     # PORTME Check for flag to pass linker flags through the system compiler.
6965     case $host_os in
6966     aix*)
6967       lt_prog_compiler_wl='-Wl,'
6968       if test "$host_cpu" = ia64; then
6969         # AIX 5 now supports IA64 processor
6970         lt_prog_compiler_static='-Bstatic'
6971       else
6972         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6973       fi
6974       ;;
6975       darwin*)
6976         # PIC is the default on this platform
6977         # Common symbols not allowed in MH_DYLIB files
6978        case $cc_basename in
6979          xlc*)
6980          lt_prog_compiler_pic='-qnocommon'
6981          lt_prog_compiler_wl='-Wl,'
6982          ;;
6983        esac
6984        ;;
6985
6986     mingw* | pw32* | os2*)
6987       # This hack is so that the source file can tell whether it is being
6988       # built for inclusion in a dll (and should export symbols for example).
6989       lt_prog_compiler_pic='-DDLL_EXPORT'
6990       ;;
6991
6992     hpux9* | hpux10* | hpux11*)
6993       lt_prog_compiler_wl='-Wl,'
6994       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6995       # not for PA HP-UX.
6996       case "$host_cpu" in
6997       hppa*64*|ia64*)
6998         # +Z the default
6999         ;;
7000       *)
7001         lt_prog_compiler_pic='+Z'
7002         ;;
7003       esac
7004       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7005       lt_prog_compiler_static='${wl}-a ${wl}archive'
7006       ;;
7007
7008     irix5* | irix6* | nonstopux*)
7009       lt_prog_compiler_wl='-Wl,'
7010       # PIC (with -KPIC) is the default.
7011       lt_prog_compiler_static='-non_shared'
7012       ;;
7013
7014     newsos6)
7015       lt_prog_compiler_pic='-KPIC'
7016       lt_prog_compiler_static='-Bstatic'
7017       ;;
7018
7019     linux*)
7020       case $cc_basename in
7021       icc* | ecc*)
7022         lt_prog_compiler_wl='-Wl,'
7023         lt_prog_compiler_pic='-KPIC'
7024         lt_prog_compiler_static='-static'
7025         ;;
7026       pgcc* | pgf77* | pgf90*)
7027         # Portland Group compilers (*not* the Pentium gcc compiler,
7028         # which looks to be a dead project)
7029         lt_prog_compiler_wl='-Wl,'
7030         lt_prog_compiler_pic='-fpic'
7031         lt_prog_compiler_static='-static'
7032         ;;
7033       ccc*)
7034         lt_prog_compiler_wl='-Wl,'
7035         # All Alpha code is PIC.
7036         lt_prog_compiler_static='-non_shared'
7037         ;;
7038       esac
7039       ;;
7040
7041     osf3* | osf4* | osf5*)
7042       lt_prog_compiler_wl='-Wl,'
7043       # All OSF/1 code is PIC.
7044       lt_prog_compiler_static='-non_shared'
7045       ;;
7046
7047     sco3.2v5*)
7048       lt_prog_compiler_pic='-Kpic'
7049       lt_prog_compiler_static='-dn'
7050       ;;
7051
7052     solaris*)
7053       lt_prog_compiler_pic='-KPIC'
7054       lt_prog_compiler_static='-Bstatic'
7055       case $cc_basename in
7056       f77* | f90* | f95*)
7057         lt_prog_compiler_wl='-Qoption ld ';;
7058       *)
7059         lt_prog_compiler_wl='-Wl,';;
7060       esac
7061       ;;
7062
7063     sunos4*)
7064       lt_prog_compiler_wl='-Qoption ld '
7065       lt_prog_compiler_pic='-PIC'
7066       lt_prog_compiler_static='-Bstatic'
7067       ;;
7068
7069     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7070       lt_prog_compiler_wl='-Wl,'
7071       lt_prog_compiler_pic='-KPIC'
7072       lt_prog_compiler_static='-Bstatic'
7073       ;;
7074
7075     sysv4*MP*)
7076       if test -d /usr/nec ;then
7077         lt_prog_compiler_pic='-Kconform_pic'
7078         lt_prog_compiler_static='-Bstatic'
7079       fi
7080       ;;
7081
7082     unicos*)
7083       lt_prog_compiler_wl='-Wl,'
7084       lt_prog_compiler_can_build_shared=no
7085       ;;
7086
7087     uts4*)
7088       lt_prog_compiler_pic='-pic'
7089       lt_prog_compiler_static='-Bstatic'
7090       ;;
7091
7092     *)
7093       lt_prog_compiler_can_build_shared=no
7094       ;;
7095     esac
7096   fi
7097
7098 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7099 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7100
7101 #
7102 # Check to make sure the PIC flag actually works.
7103 #
7104 if test -n "$lt_prog_compiler_pic"; then
7105
7106 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7107 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7108 if test "${lt_prog_compiler_pic_works+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   lt_prog_compiler_pic_works=no
7112   ac_outfile=conftest.$ac_objext
7113    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7114    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7115    # Insert the option either (1) after the last *FLAGS variable, or
7116    # (2) before a word containing "conftest.", or (3) at the end.
7117    # Note that $ac_compile itself does not contain backslashes and begins
7118    # with a dollar sign (not a hyphen), so the echo should work correctly.
7119    # The option is referenced via a variable to avoid confusing sed.
7120    lt_compile=`echo "$ac_compile" | $SED \
7121    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7123    -e 's:$: $lt_compiler_flag:'`
7124    (eval echo "\"\$as_me:7124: $lt_compile\"" >&5)
7125    (eval "$lt_compile" 2>conftest.err)
7126    ac_status=$?
7127    cat conftest.err >&5
7128    echo "$as_me:7128: \$? = $ac_status" >&5
7129    if (exit $ac_status) && test -s "$ac_outfile"; then
7130      # The compiler can only warn and ignore the option if not recognized
7131      # So say no if there are warnings other than the usual output.
7132      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7133      $SED '/^$/d' conftest.err >conftest.er2
7134      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7135        lt_prog_compiler_pic_works=yes
7136      fi
7137    fi
7138    $rm conftest*
7139
7140 fi
7141 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7142 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7143
7144 if test x"$lt_prog_compiler_pic_works" = xyes; then
7145     case $lt_prog_compiler_pic in
7146      "" | " "*) ;;
7147      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7148      esac
7149 else
7150     lt_prog_compiler_pic=
7151      lt_prog_compiler_can_build_shared=no
7152 fi
7153
7154 fi
7155 case "$host_os" in
7156   # For platforms which do not support PIC, -DPIC is meaningless:
7157   *djgpp*)
7158     lt_prog_compiler_pic=
7159     ;;
7160   *)
7161     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7162     ;;
7163 esac
7164
7165 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7166 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   lt_cv_prog_compiler_c_o=no
7171    $rm -r conftest 2>/dev/null
7172    mkdir conftest
7173    cd conftest
7174    mkdir out
7175    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7176
7177    lt_compiler_flag="-o out/conftest2.$ac_objext"
7178    # Insert the option either (1) after the last *FLAGS variable, or
7179    # (2) before a word containing "conftest.", or (3) at the end.
7180    # Note that $ac_compile itself does not contain backslashes and begins
7181    # with a dollar sign (not a hyphen), so the echo should work correctly.
7182    lt_compile=`echo "$ac_compile" | $SED \
7183    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7185    -e 's:$: $lt_compiler_flag:'`
7186    (eval echo "\"\$as_me:7186: $lt_compile\"" >&5)
7187    (eval "$lt_compile" 2>out/conftest.err)
7188    ac_status=$?
7189    cat out/conftest.err >&5
7190    echo "$as_me:7190: \$? = $ac_status" >&5
7191    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7192    then
7193      # The compiler can only warn and ignore the option if not recognized
7194      # So say no if there are warnings
7195      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7196      $SED '/^$/d' out/conftest.err >out/conftest.er2
7197      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7198        lt_cv_prog_compiler_c_o=yes
7199      fi
7200    fi
7201    chmod u+w .
7202    $rm conftest*
7203    # SGI C++ compiler will create directory out/ii_files/ for
7204    # template instantiation
7205    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7206    $rm out/* && rmdir out
7207    cd ..
7208    rmdir conftest
7209    $rm conftest*
7210
7211 fi
7212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7214
7215
7216 hard_links="nottested"
7217 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7218   # do not overwrite the value of need_locks provided by the user
7219   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7220 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7221   hard_links=yes
7222   $rm conftest*
7223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224   touch conftest.a
7225   ln conftest.a conftest.b 2>&5 || hard_links=no
7226   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7227   echo "$as_me:$LINENO: result: $hard_links" >&5
7228 echo "${ECHO_T}$hard_links" >&6
7229   if test "$hard_links" = no; then
7230     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7231 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7232     need_locks=warn
7233   fi
7234 else
7235   need_locks=no
7236 fi
7237
7238 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7239 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7240
7241   runpath_var=
7242   allow_undefined_flag=
7243   enable_shared_with_static_runtimes=no
7244   archive_cmds=
7245   archive_expsym_cmds=
7246   old_archive_From_new_cmds=
7247   old_archive_from_expsyms_cmds=
7248   export_dynamic_flag_spec=
7249   whole_archive_flag_spec=
7250   thread_safe_flag_spec=
7251   hardcode_libdir_flag_spec=
7252   hardcode_libdir_flag_spec_ld=
7253   hardcode_libdir_separator=
7254   hardcode_direct=no
7255   hardcode_minus_L=no
7256   hardcode_shlibpath_var=unsupported
7257   link_all_deplibs=unknown
7258   hardcode_automatic=no
7259   module_cmds=
7260   module_expsym_cmds=
7261   always_export_symbols=no
7262   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7263   # include_expsyms should be a list of space-separated symbols to be *always*
7264   # included in the symbol list
7265   include_expsyms=
7266   # exclude_expsyms can be an extended regexp of symbols to exclude
7267   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269   # as well as any symbol that contains `d'.
7270   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7271   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272   # platforms (ab)use it in PIC code, but their linkers get confused if
7273   # the symbol is explicitly referenced.  Since portable code cannot
7274   # rely on this symbol name, it's probably fine to never include it in
7275   # preloaded symbol tables.
7276   extract_expsyms_cmds=
7277   # Just being paranoid about ensuring that cc_basename is set.
7278   for cc_temp in $compiler""; do
7279   case $cc_temp in
7280     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7281     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7282     \-*) ;;
7283     *) break;;
7284   esac
7285 done
7286 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7287
7288   case $host_os in
7289   cygwin* | mingw* | pw32*)
7290     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7291     # When not using gcc, we currently assume that we are using
7292     # Microsoft Visual C++.
7293     if test "$GCC" != yes; then
7294       with_gnu_ld=no
7295     fi
7296     ;;
7297   openbsd*)
7298     with_gnu_ld=no
7299     ;;
7300   esac
7301
7302   ld_shlibs=yes
7303   if test "$with_gnu_ld" = yes; then
7304     # If archive_cmds runs LD, not CC, wlarc should be empty
7305     wlarc='${wl}'
7306
7307     # Set some defaults for GNU ld with shared library support. These
7308     # are reset later if shared libraries are not supported. Putting them
7309     # here allows them to be overridden if necessary.
7310     runpath_var=LD_RUN_PATH
7311     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7312     export_dynamic_flag_spec='${wl}--export-dynamic'
7313     # ancient GNU ld didn't support --whole-archive et. al.
7314     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7315         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7316       else
7317         whole_archive_flag_spec=
7318     fi
7319     supports_anon_versioning=no
7320     case `$LD -v 2>/dev/null` in
7321       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7322       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7323       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7324       *\ 2.11.*) ;; # other 2.11 versions
7325       *) supports_anon_versioning=yes ;;
7326     esac
7327
7328     # See if GNU ld supports shared libraries.
7329     case $host_os in
7330     aix3* | aix4* | aix5*)
7331       # On AIX/PPC, the GNU linker is very broken
7332       if test "$host_cpu" != ia64; then
7333         ld_shlibs=no
7334         cat <<EOF 1>&2
7335
7336 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7337 *** to be unable to reliably create shared libraries on AIX.
7338 *** Therefore, libtool is disabling shared libraries support.  If you
7339 *** really care for shared libraries, you may want to modify your PATH
7340 *** so that a non-GNU linker is found, and then restart.
7341
7342 EOF
7343       fi
7344       ;;
7345
7346     amigaos*)
7347       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)'
7348       hardcode_libdir_flag_spec='-L$libdir'
7349       hardcode_minus_L=yes
7350
7351       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7352       # that the semantics of dynamic libraries on AmigaOS, at least up
7353       # to version 4, is to share data among multiple programs linked
7354       # with the same dynamic library.  Since this doesn't match the
7355       # behavior of shared libraries on other platforms, we can't use
7356       # them.
7357       ld_shlibs=no
7358       ;;
7359
7360     beos*)
7361       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7362         allow_undefined_flag=unsupported
7363         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7364         # support --undefined.  This deserves some investigation.  FIXME
7365         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7366       else
7367         ld_shlibs=no
7368       fi
7369       ;;
7370
7371     cygwin* | mingw* | pw32*)
7372       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7373       # as there is no search path for DLLs.
7374       hardcode_libdir_flag_spec='-L$libdir'
7375       allow_undefined_flag=unsupported
7376       always_export_symbols=no
7377       enable_shared_with_static_runtimes=yes
7378       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7379
7380       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7381         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7382         # If the export-symbols file already is a .def file (1st line
7383         # is EXPORTS), use it as is; otherwise, prepend...
7384         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7385           cp $export_symbols $output_objdir/$soname.def;
7386         else
7387           echo EXPORTS > $output_objdir/$soname.def;
7388           cat $export_symbols >> $output_objdir/$soname.def;
7389         fi~
7390         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7391       else
7392         ld_shlibs=no
7393       fi
7394       ;;
7395
7396     linux*)
7397       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7398         tmp_addflag=
7399         case $cc_basename,$host_cpu in
7400         pgcc*)                          # Portland Group C compiler
7401           whole_archive_flag_spec=
7402           ;;
7403         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7404           whole_archive_flag_spec=
7405           tmp_addflag=' -fpic -Mnomain' ;;
7406         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7407           tmp_addflag=' -i_dynamic' ;;
7408         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7409           tmp_addflag=' -i_dynamic -nofor_main' ;;
7410         ifc* | ifort*)                  # Intel Fortran compiler
7411           tmp_addflag=' -nofor_main' ;;
7412         esac
7413         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7414
7415         if test $supports_anon_versioning = yes; then
7416           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7417   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7418   $echo "local: *; };" >> $output_objdir/$libname.ver~
7419           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7420         fi
7421       else
7422         ld_shlibs=no
7423       fi
7424       ;;
7425
7426     netbsd*)
7427       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7428         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7429         wlarc=
7430       else
7431         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7432         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7433       fi
7434       ;;
7435
7436     solaris* | sysv5*)
7437       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7438         ld_shlibs=no
7439         cat <<EOF 1>&2
7440
7441 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7442 *** create shared libraries on Solaris systems.  Therefore, libtool
7443 *** is disabling shared libraries support.  We urge you to upgrade GNU
7444 *** binutils to release 2.9.1 or newer.  Another option is to modify
7445 *** your PATH or compiler configuration so that the native linker is
7446 *** used, and then restart.
7447
7448 EOF
7449       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7450         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7451         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7452       else
7453         ld_shlibs=no
7454       fi
7455       ;;
7456
7457     sunos4*)
7458       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7459       wlarc=
7460       hardcode_direct=yes
7461       hardcode_shlibpath_var=no
7462       ;;
7463
7464     *)
7465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7468       else
7469         ld_shlibs=no
7470       fi
7471       ;;
7472     esac
7473
7474     if test "$ld_shlibs" = no; then
7475       runpath_var=
7476       hardcode_libdir_flag_spec=
7477       export_dynamic_flag_spec=
7478       whole_archive_flag_spec=
7479     fi
7480   else
7481     # PORTME fill in a description of your system's linker (not GNU ld)
7482     case $host_os in
7483     aix3*)
7484       allow_undefined_flag=unsupported
7485       always_export_symbols=yes
7486       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'
7487       # Note: this linker hardcodes the directories in LIBPATH if there
7488       # are no directories specified by -L.
7489       hardcode_minus_L=yes
7490       if test "$GCC" = yes && test -z "$link_static_flag"; then
7491         # Neither direct hardcoding nor static linking is supported with a
7492         # broken collect2.
7493         hardcode_direct=unsupported
7494       fi
7495       ;;
7496
7497     aix4* | aix5*)
7498       if test "$host_cpu" = ia64; then
7499         # On IA64, the linker does run time linking by default, so we don't
7500         # have to do anything special.
7501         aix_use_runtimelinking=no
7502         exp_sym_flag='-Bexport'
7503         no_entry_flag=""
7504       else
7505         # If we're using GNU nm, then we don't want the "-C" option.
7506         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7507         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7508           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'
7509         else
7510           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'
7511         fi
7512         aix_use_runtimelinking=no
7513
7514         # Test if we are trying to use run time linking or normal
7515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7516         # need to do runtime linking.
7517         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7518           for ld_flag in $LDFLAGS; do
7519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7520             aix_use_runtimelinking=yes
7521             break
7522           fi
7523           done
7524         esac
7525
7526         exp_sym_flag='-bexport'
7527         no_entry_flag='-bnoentry'
7528       fi
7529
7530       # When large executables or shared objects are built, AIX ld can
7531       # have problems creating the table of contents.  If linking a library
7532       # or program results in "error TOC overflow" add -mminimal-toc to
7533       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7534       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7535
7536       archive_cmds=''
7537       hardcode_direct=yes
7538       hardcode_libdir_separator=':'
7539       link_all_deplibs=yes
7540
7541       if test "$GCC" = yes; then
7542         case $host_os in aix4.[012]|aix4.[012].*)
7543         # We only want to do this on AIX 4.2 and lower, the check
7544         # below for broken collect2 doesn't work under 4.3+
7545           collect2name=`${CC} -print-prog-name=collect2`
7546           if test -f "$collect2name" && \
7547            strings "$collect2name" | grep resolve_lib_name >/dev/null
7548           then
7549           # We have reworked collect2
7550           hardcode_direct=yes
7551           else
7552           # We have old collect2
7553           hardcode_direct=unsupported
7554           # It fails to find uninstalled libraries when the uninstalled
7555           # path is not listed in the libpath.  Setting hardcode_minus_L
7556           # to unsupported forces relinking
7557           hardcode_minus_L=yes
7558           hardcode_libdir_flag_spec='-L$libdir'
7559           hardcode_libdir_separator=
7560           fi
7561         esac
7562         shared_flag='-shared'
7563         if test "$aix_use_runtimelinking" = yes; then
7564           shared_flag="$shared_flag "'${wl}-G'
7565         fi
7566       else
7567         # not using gcc
7568         if test "$host_cpu" = ia64; then
7569         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7570         # chokes on -Wl,-G. The following line is correct:
7571           shared_flag='-G'
7572         else
7573         if test "$aix_use_runtimelinking" = yes; then
7574             shared_flag='${wl}-G'
7575           else
7576             shared_flag='${wl}-bM:SRE'
7577         fi
7578         fi
7579       fi
7580
7581       # It seems that -bexpall does not export symbols beginning with
7582       # underscore (_), so it is better to generate a list of symbols to export.
7583       always_export_symbols=yes
7584       if test "$aix_use_runtimelinking" = yes; then
7585         # Warning - without using the other runtime loading flags (-brtl),
7586         # -berok will link without error, but may produce a broken library.
7587         allow_undefined_flag='-berok'
7588        # Determine the default libpath from the value encoded in an empty executable.
7589        cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595
7596 int
7597 main ()
7598 {
7599
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606   (eval $ac_link) 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_c_werror_flag"
7614                          || test ! -s conftest.err'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest$ac_exeext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626
7627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7628 }'`
7629 # Check for a 64-bit object if we didn't find anything.
7630 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; }
7631 }'`; fi
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 fi
7637 rm -f conftest.err conftest.$ac_objext \
7638       conftest$ac_exeext conftest.$ac_ext
7639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7640
7641        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7642         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"
7643        else
7644         if test "$host_cpu" = ia64; then
7645           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7646           allow_undefined_flag="-z nodefs"
7647           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"
7648         else
7649          # Determine the default libpath from the value encoded in an empty executable.
7650          cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h.  */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h.  */
7656
7657 int
7658 main ()
7659 {
7660
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667   (eval $ac_link) 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } &&
7674          { ac_try='test -z "$ac_c_werror_flag"
7675                          || test ! -s conftest.err'
7676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677   (eval $ac_try) 2>&5
7678   ac_status=$?
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); }; } &&
7681          { ac_try='test -s conftest$ac_exeext'
7682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683   (eval $ac_try) 2>&5
7684   ac_status=$?
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); }; }; then
7687
7688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7689 }'`
7690 # Check for a 64-bit object if we didn't find anything.
7691 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; }
7692 }'`; fi
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 fi
7698 rm -f conftest.err conftest.$ac_objext \
7699       conftest$ac_exeext conftest.$ac_ext
7700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7701
7702          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7703           # Warning - without using the other run time loading flags,
7704           # -berok will link without error, but may produce a broken library.
7705           no_undefined_flag=' ${wl}-bernotok'
7706           allow_undefined_flag=' ${wl}-berok'
7707           # -bexpall does not export symbols beginning with underscore (_)
7708           always_export_symbols=yes
7709           # Exported symbols can be pulled into shared objects from archives
7710           whole_archive_flag_spec=' '
7711           archive_cmds_need_lc=yes
7712           # This is similar to how AIX traditionally builds it's shared libraries.
7713           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'
7714         fi
7715       fi
7716       ;;
7717
7718     amigaos*)
7719       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)'
7720       hardcode_libdir_flag_spec='-L$libdir'
7721       hardcode_minus_L=yes
7722       # see comment about different semantics on the GNU ld section
7723       ld_shlibs=no
7724       ;;
7725
7726     bsdi[45]*)
7727       export_dynamic_flag_spec=-rdynamic
7728       ;;
7729
7730     cygwin* | mingw* | pw32*)
7731       # When not using gcc, we currently assume that we are using
7732       # Microsoft Visual C++.
7733       # hardcode_libdir_flag_spec is actually meaningless, as there is
7734       # no search path for DLLs.
7735       hardcode_libdir_flag_spec=' '
7736       allow_undefined_flag=unsupported
7737       # Tell ltmain to make .lib files, not .a files.
7738       libext=lib
7739       # Tell ltmain to make .dll files, not .so files.
7740       shrext_cmds=".dll"
7741       # FIXME: Setting linknames here is a bad hack.
7742       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7743       # The linker will automatically build a .lib file if we build a DLL.
7744       old_archive_From_new_cmds='true'
7745       # FIXME: Should let the user specify the lib program.
7746       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7747       fix_srcfile_path='`cygpath -w "$srcfile"`'
7748       enable_shared_with_static_runtimes=yes
7749       ;;
7750
7751     darwin* | rhapsody*)
7752       case "$host_os" in
7753         rhapsody* | darwin1.[012])
7754          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7755          ;;
7756        *) # Darwin 1.3 on
7757          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7758            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7759          else
7760            case ${MACOSX_DEPLOYMENT_TARGET} in
7761              10.[012])
7762                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7763                ;;
7764              10.*)
7765                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7766                ;;
7767            esac
7768          fi
7769          ;;
7770       esac
7771       archive_cmds_need_lc=no
7772       hardcode_direct=no
7773       hardcode_automatic=yes
7774       hardcode_shlibpath_var=unsupported
7775       whole_archive_flag_spec=''
7776       link_all_deplibs=yes
7777     if test "$GCC" = yes ; then
7778         output_verbose_link_cmd='echo'
7779         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7780       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7781       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7782       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}'
7783       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}'
7784     else
7785       case $cc_basename in
7786         xlc*)
7787          output_verbose_link_cmd='echo'
7788          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7789          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7790           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7791          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}'
7792           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}'
7793           ;;
7794        *)
7795          ld_shlibs=no
7796           ;;
7797       esac
7798     fi
7799       ;;
7800
7801     dgux*)
7802       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7803       hardcode_libdir_flag_spec='-L$libdir'
7804       hardcode_shlibpath_var=no
7805       ;;
7806
7807     freebsd1*)
7808       ld_shlibs=no
7809       ;;
7810
7811     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7812     # support.  Future versions do this automatically, but an explicit c++rt0.o
7813     # does not break anything, and helps significantly (at the cost of a little
7814     # extra space).
7815     freebsd2.2*)
7816       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7817       hardcode_libdir_flag_spec='-R$libdir'
7818       hardcode_direct=yes
7819       hardcode_shlibpath_var=no
7820       ;;
7821
7822     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7823     freebsd2*)
7824       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7825       hardcode_direct=yes
7826       hardcode_minus_L=yes
7827       hardcode_shlibpath_var=no
7828       ;;
7829
7830     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7831     freebsd* | kfreebsd*-gnu | dragonfly*)
7832       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7833       hardcode_libdir_flag_spec='-R$libdir'
7834       hardcode_direct=yes
7835       hardcode_shlibpath_var=no
7836       ;;
7837
7838     hpux9*)
7839       if test "$GCC" = yes; then
7840         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'
7841       else
7842         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'
7843       fi
7844       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7845       hardcode_libdir_separator=:
7846       hardcode_direct=yes
7847
7848       # hardcode_minus_L: Not really in the search PATH,
7849       # but as the default location of the library.
7850       hardcode_minus_L=yes
7851       export_dynamic_flag_spec='${wl}-E'
7852       ;;
7853
7854     hpux10* | hpux11*)
7855       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7856         case "$host_cpu" in
7857         hppa*64*|ia64*)
7858           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7859           ;;
7860         *)
7861           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7862           ;;
7863         esac
7864       else
7865         case "$host_cpu" in
7866         hppa*64*|ia64*)
7867           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7868           ;;
7869         *)
7870           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7871           ;;
7872         esac
7873       fi
7874       if test "$with_gnu_ld" = no; then
7875         case "$host_cpu" in
7876         hppa*64*)
7877           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7878           hardcode_libdir_flag_spec_ld='+b $libdir'
7879           hardcode_libdir_separator=:
7880           hardcode_direct=no
7881           hardcode_shlibpath_var=no
7882           ;;
7883         ia64*)
7884           hardcode_libdir_flag_spec='-L$libdir'
7885           hardcode_direct=no
7886           hardcode_shlibpath_var=no
7887
7888           # hardcode_minus_L: Not really in the search PATH,
7889           # but as the default location of the library.
7890           hardcode_minus_L=yes
7891           ;;
7892         *)
7893           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894           hardcode_libdir_separator=:
7895           hardcode_direct=yes
7896           export_dynamic_flag_spec='${wl}-E'
7897
7898           # hardcode_minus_L: Not really in the search PATH,
7899           # but as the default location of the library.
7900           hardcode_minus_L=yes
7901           ;;
7902         esac
7903       fi
7904       ;;
7905
7906     irix5* | irix6* | nonstopux*)
7907       if test "$GCC" = yes; then
7908         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'
7909       else
7910         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'
7911         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7912       fi
7913       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7914       hardcode_libdir_separator=:
7915       link_all_deplibs=yes
7916       ;;
7917
7918     netbsd*)
7919       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7920         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7921       else
7922         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7923       fi
7924       hardcode_libdir_flag_spec='-R$libdir'
7925       hardcode_direct=yes
7926       hardcode_shlibpath_var=no
7927       ;;
7928
7929     newsos6)
7930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931       hardcode_direct=yes
7932       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933       hardcode_libdir_separator=:
7934       hardcode_shlibpath_var=no
7935       ;;
7936
7937     openbsd*)
7938       hardcode_direct=yes
7939       hardcode_shlibpath_var=no
7940       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7941         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7942         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7943         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7944         export_dynamic_flag_spec='${wl}-E'
7945       else
7946        case $host_os in
7947          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7948            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7949            hardcode_libdir_flag_spec='-R$libdir'
7950            ;;
7951          *)
7952            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7953            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7954            ;;
7955        esac
7956       fi
7957       ;;
7958
7959     os2*)
7960       hardcode_libdir_flag_spec='-L$libdir'
7961       hardcode_minus_L=yes
7962       allow_undefined_flag=unsupported
7963       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'
7964       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7965       ;;
7966
7967     osf3*)
7968       if test "$GCC" = yes; then
7969         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7970         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'
7971       else
7972         allow_undefined_flag=' -expect_unresolved \*'
7973         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'
7974       fi
7975       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976       hardcode_libdir_separator=:
7977       ;;
7978
7979     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7980       if test "$GCC" = yes; then
7981         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7982         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'
7983         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7984       else
7985         allow_undefined_flag=' -expect_unresolved \*'
7986         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'
7987         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7988         $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'
7989
7990         # Both c and cxx compiler support -rpath directly
7991         hardcode_libdir_flag_spec='-rpath $libdir'
7992       fi
7993       hardcode_libdir_separator=:
7994       ;;
7995
7996     sco3.2v5*)
7997       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998       hardcode_shlibpath_var=no
7999       export_dynamic_flag_spec='${wl}-Bexport'
8000       runpath_var=LD_RUN_PATH
8001       hardcode_runpath_var=yes
8002       ;;
8003
8004     solaris*)
8005       no_undefined_flag=' -z text'
8006       if test "$GCC" = yes; then
8007         wlarc='${wl}'
8008         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8009         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8010           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8011       else
8012         wlarc=''
8013         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8015         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8016       fi
8017       hardcode_libdir_flag_spec='-R$libdir'
8018       hardcode_shlibpath_var=no
8019       case $host_os in
8020       solaris2.[0-5] | solaris2.[0-5].*) ;;
8021       *)
8022         # The compiler driver will combine linker options so we
8023         # cannot just pass the convience library names through
8024         # without $wl, iff we do not link with $LD.
8025         # Luckily, gcc supports the same syntax we need for Sun Studio.
8026         # Supported since Solaris 2.6 (maybe 2.5.1?)
8027         case $wlarc in
8028         '')
8029           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8030         *)
8031           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' ;;
8032         esac ;;
8033       esac
8034       link_all_deplibs=yes
8035       ;;
8036
8037     sunos4*)
8038       if test "x$host_vendor" = xsequent; then
8039         # Use $CC to link under sequent, because it throws in some extra .o
8040         # files that make .init and .fini sections work.
8041         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8042       else
8043         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8044       fi
8045       hardcode_libdir_flag_spec='-L$libdir'
8046       hardcode_direct=yes
8047       hardcode_minus_L=yes
8048       hardcode_shlibpath_var=no
8049       ;;
8050
8051     sysv4)
8052       case $host_vendor in
8053         sni)
8054           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055           hardcode_direct=yes # is this really true???
8056         ;;
8057         siemens)
8058           ## LD is ld it makes a PLAMLIB
8059           ## CC just makes a GrossModule.
8060           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8061           reload_cmds='$CC -r -o $output$reload_objs'
8062           hardcode_direct=no
8063         ;;
8064         motorola)
8065           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8067         ;;
8068       esac
8069       runpath_var='LD_RUN_PATH'
8070       hardcode_shlibpath_var=no
8071       ;;
8072
8073     sysv4.3*)
8074       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075       hardcode_shlibpath_var=no
8076       export_dynamic_flag_spec='-Bexport'
8077       ;;
8078
8079     sysv4*MP*)
8080       if test -d /usr/nec; then
8081         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082         hardcode_shlibpath_var=no
8083         runpath_var=LD_RUN_PATH
8084         hardcode_runpath_var=yes
8085         ld_shlibs=yes
8086       fi
8087       ;;
8088
8089     sysv4.2uw2*)
8090       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8091       hardcode_direct=yes
8092       hardcode_minus_L=no
8093       hardcode_shlibpath_var=no
8094       hardcode_runpath_var=yes
8095       runpath_var=LD_RUN_PATH
8096       ;;
8097
8098    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8099       no_undefined_flag='${wl}-z ${wl}text'
8100       if test "$GCC" = yes; then
8101         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8102       else
8103         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8104       fi
8105       runpath_var='LD_RUN_PATH'
8106       hardcode_shlibpath_var=no
8107       ;;
8108
8109     sysv5*)
8110       no_undefined_flag=' -z text'
8111       # $CC -shared without GNU ld will not create a library from C++
8112       # object files and a static libstdc++, better avoid it by now
8113       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8114       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8115                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8116       hardcode_libdir_flag_spec=
8117       hardcode_shlibpath_var=no
8118       runpath_var='LD_RUN_PATH'
8119       ;;
8120
8121     uts4*)
8122       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123       hardcode_libdir_flag_spec='-L$libdir'
8124       hardcode_shlibpath_var=no
8125       ;;
8126
8127     *)
8128       ld_shlibs=no
8129       ;;
8130     esac
8131   fi
8132
8133 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8134 echo "${ECHO_T}$ld_shlibs" >&6
8135 test "$ld_shlibs" = no && can_build_shared=no
8136
8137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8138 if test "$GCC" = yes; then
8139   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8140 fi
8141
8142 #
8143 # Do we need to explicitly link libc?
8144 #
8145 case "x$archive_cmds_need_lc" in
8146 x|xyes)
8147   # Assume -lc should be added
8148   archive_cmds_need_lc=yes
8149
8150   if test "$enable_shared" = yes && test "$GCC" = yes; then
8151     case $archive_cmds in
8152     *'~'*)
8153       # FIXME: we may have to deal with multi-command sequences.
8154       ;;
8155     '$CC '*)
8156       # Test whether the compiler implicitly links with -lc since on some
8157       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8158       # to ld, don't add -lc before -lgcc.
8159       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8161       $rm conftest*
8162       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8163
8164       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165   (eval $ac_compile) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } 2>conftest.err; then
8169         soname=conftest
8170         lib=conftest
8171         libobjs=conftest.$ac_objext
8172         deplibs=
8173         wl=$lt_prog_compiler_wl
8174         compiler_flags=-v
8175         linker_flags=-v
8176         verstring=
8177         output_objdir=.
8178         libname=conftest
8179         lt_save_allow_undefined_flag=$allow_undefined_flag
8180         allow_undefined_flag=
8181         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8182   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }
8186         then
8187           archive_cmds_need_lc=no
8188         else
8189           archive_cmds_need_lc=yes
8190         fi
8191         allow_undefined_flag=$lt_save_allow_undefined_flag
8192       else
8193         cat conftest.err 1>&5
8194       fi
8195       $rm conftest*
8196       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8197 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8198       ;;
8199     esac
8200   fi
8201   ;;
8202 esac
8203
8204 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8206 library_names_spec=
8207 libname_spec='lib$name'
8208 soname_spec=
8209 shrext_cmds=".so"
8210 postinstall_cmds=
8211 postuninstall_cmds=
8212 finish_cmds=
8213 finish_eval=
8214 shlibpath_var=
8215 shlibpath_overrides_runpath=unknown
8216 version_type=none
8217 dynamic_linker="$host_os ld.so"
8218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8219 if test "$GCC" = yes; then
8220   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8221   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8222     # if the path contains ";" then we assume it to be the separator
8223     # otherwise default to the standard path separator (i.e. ":") - it is
8224     # assumed that no part of a normal pathname contains ";" but that should
8225     # okay in the real world where ";" in dirpaths is itself problematic.
8226     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8227   else
8228     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8229   fi
8230 else
8231   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8232 fi
8233 need_lib_prefix=unknown
8234 hardcode_into_libs=no
8235
8236 # when you set need_version to no, make sure it does not cause -set_version
8237 # flags to be left without arguments
8238 need_version=unknown
8239
8240 case $host_os in
8241 aix3*)
8242   version_type=linux
8243   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8244   shlibpath_var=LIBPATH
8245
8246   # AIX 3 has no versioning support, so we append a major version to the name.
8247   soname_spec='${libname}${release}${shared_ext}$major'
8248   ;;
8249
8250 aix4* | aix5*)
8251   version_type=linux
8252   need_lib_prefix=no
8253   need_version=no
8254   hardcode_into_libs=yes
8255   if test "$host_cpu" = ia64; then
8256     # AIX 5 supports IA64
8257     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8258     shlibpath_var=LD_LIBRARY_PATH
8259   else
8260     # With GCC up to 2.95.x, collect2 would create an import file
8261     # for dependence libraries.  The import file would start with
8262     # the line `#! .'.  This would cause the generated library to
8263     # depend on `.', always an invalid library.  This was fixed in
8264     # development snapshots of GCC prior to 3.0.
8265     case $host_os in
8266       aix4 | aix4.[01] | aix4.[01].*)
8267       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8268            echo ' yes '
8269            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8270         :
8271       else
8272         can_build_shared=no
8273       fi
8274       ;;
8275     esac
8276     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8277     # soname into executable. Probably we can add versioning support to
8278     # collect2, so additional links can be useful in future.
8279     if test "$aix_use_runtimelinking" = yes; then
8280       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8281       # instead of lib<name>.a to let people know that these are not
8282       # typical AIX shared libraries.
8283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8284     else
8285       # We preserve .a as extension for shared libraries through AIX4.2
8286       # and later when we are not doing run time linking.
8287       library_names_spec='${libname}${release}.a $libname.a'
8288       soname_spec='${libname}${release}${shared_ext}$major'
8289     fi
8290     shlibpath_var=LIBPATH
8291   fi
8292   ;;
8293
8294 amigaos*)
8295   library_names_spec='$libname.ixlibrary $libname.a'
8296   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8297   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'
8298   ;;
8299
8300 beos*)
8301   library_names_spec='${libname}${shared_ext}'
8302   dynamic_linker="$host_os ld.so"
8303   shlibpath_var=LIBRARY_PATH
8304   ;;
8305
8306 bsdi[45]*)
8307   version_type=linux
8308   need_version=no
8309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8310   soname_spec='${libname}${release}${shared_ext}$major'
8311   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8312   shlibpath_var=LD_LIBRARY_PATH
8313   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8314   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8315   # the default ld.so.conf also contains /usr/contrib/lib and
8316   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8317   # libtool to hard-code these into programs
8318   ;;
8319
8320 cygwin* | mingw* | pw32*)
8321   version_type=windows
8322   shrext_cmds=".dll"
8323   need_version=no
8324   need_lib_prefix=no
8325
8326   case $GCC,$host_os in
8327   yes,cygwin* | yes,mingw* | yes,pw32*)
8328     library_names_spec='$libname.dll.a'
8329     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8330     postinstall_cmds='base_file=`basename \${file}`~
8331       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8332       dldir=$destdir/`dirname \$dlpath`~
8333       test -d \$dldir || mkdir -p \$dldir~
8334       $install_prog $dir/$dlname \$dldir/$dlname'
8335     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8336       dlpath=$dir/\$dldll~
8337        $rm \$dlpath'
8338     shlibpath_overrides_runpath=yes
8339
8340     case $host_os in
8341     cygwin*)
8342       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8343       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8344       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8345       ;;
8346     mingw*)
8347       # MinGW DLLs use traditional 'lib' prefix
8348       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8349       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8350       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8351         # It is most probably a Windows format PATH printed by
8352         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8353         # path with ; separators, and with drive letters. We can handle the
8354         # drive letters (cygwin fileutils understands them), so leave them,
8355         # especially as we might pass files found there to a mingw objdump,
8356         # which wouldn't understand a cygwinified path. Ahh.
8357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8358       else
8359         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8360       fi
8361       ;;
8362     pw32*)
8363       # pw32 DLLs use 'pw' prefix rather than 'lib'
8364       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8365       ;;
8366     esac
8367     ;;
8368
8369   *)
8370     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8371     ;;
8372   esac
8373   dynamic_linker='Win32 ld.exe'
8374   # FIXME: first we should search . and the directory the executable is in
8375   shlibpath_var=PATH
8376   ;;
8377
8378 darwin* | rhapsody*)
8379   dynamic_linker="$host_os dyld"
8380   version_type=darwin
8381   need_lib_prefix=no
8382   need_version=no
8383   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8384   soname_spec='${libname}${release}${major}$shared_ext'
8385   shlibpath_overrides_runpath=yes
8386   shlibpath_var=DYLD_LIBRARY_PATH
8387   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8388   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8389   if test "$GCC" = yes; then
8390     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"`
8391   else
8392     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8393   fi
8394   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8395   ;;
8396
8397 dgux*)
8398   version_type=linux
8399   need_lib_prefix=no
8400   need_version=no
8401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8402   soname_spec='${libname}${release}${shared_ext}$major'
8403   shlibpath_var=LD_LIBRARY_PATH
8404   ;;
8405
8406 freebsd1*)
8407   dynamic_linker=no
8408   ;;
8409
8410 kfreebsd*-gnu)
8411   version_type=linux
8412   need_lib_prefix=no
8413   need_version=no
8414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8415   soname_spec='${libname}${release}${shared_ext}$major'
8416   shlibpath_var=LD_LIBRARY_PATH
8417   shlibpath_overrides_runpath=no
8418   hardcode_into_libs=yes
8419   dynamic_linker='GNU ld.so'
8420   ;;
8421
8422 freebsd* | dragonfly*)
8423   # DragonFly does not have aout.  When/if they implement a new
8424   # versioning mechanism, adjust this.
8425   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8426   version_type=freebsd-$objformat
8427   case $version_type in
8428     freebsd-elf*)
8429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8430       need_version=no
8431       need_lib_prefix=no
8432       ;;
8433     freebsd-*)
8434       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8435       need_version=yes
8436       ;;
8437   esac
8438   shlibpath_var=LD_LIBRARY_PATH
8439   case $host_os in
8440   freebsd2*)
8441     shlibpath_overrides_runpath=yes
8442     ;;
8443   freebsd3.[01]* | freebsdelf3.[01]*)
8444     shlibpath_overrides_runpath=yes
8445     hardcode_into_libs=yes
8446     ;;
8447   *) # from 3.2 on
8448     shlibpath_overrides_runpath=no
8449     hardcode_into_libs=yes
8450     ;;
8451   esac
8452   ;;
8453
8454 gnu*)
8455   version_type=linux
8456   need_lib_prefix=no
8457   need_version=no
8458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8459   soname_spec='${libname}${release}${shared_ext}$major'
8460   shlibpath_var=LD_LIBRARY_PATH
8461   hardcode_into_libs=yes
8462   ;;
8463
8464 hpux9* | hpux10* | hpux11*)
8465   # Give a soname corresponding to the major version so that dld.sl refuses to
8466   # link against other versions.
8467   version_type=sunos
8468   need_lib_prefix=no
8469   need_version=no
8470   case "$host_cpu" in
8471   ia64*)
8472     shrext_cmds='.so'
8473     hardcode_into_libs=yes
8474     dynamic_linker="$host_os dld.so"
8475     shlibpath_var=LD_LIBRARY_PATH
8476     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478     soname_spec='${libname}${release}${shared_ext}$major'
8479     if test "X$HPUX_IA64_MODE" = X32; then
8480       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8481     else
8482       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8483     fi
8484     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8485     ;;
8486    hppa*64*)
8487      shrext_cmds='.sl'
8488      hardcode_into_libs=yes
8489      dynamic_linker="$host_os dld.sl"
8490      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8491      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8493      soname_spec='${libname}${release}${shared_ext}$major'
8494      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8495      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8496      ;;
8497    *)
8498     shrext_cmds='.sl'
8499     dynamic_linker="$host_os dld.sl"
8500     shlibpath_var=SHLIB_PATH
8501     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8503     soname_spec='${libname}${release}${shared_ext}$major'
8504     ;;
8505   esac
8506   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8507   postinstall_cmds='chmod 555 $lib'
8508   ;;
8509
8510 irix5* | irix6* | nonstopux*)
8511   case $host_os in
8512     nonstopux*) version_type=nonstopux ;;
8513     *)
8514         if test "$lt_cv_prog_gnu_ld" = yes; then
8515                 version_type=linux
8516         else
8517                 version_type=irix
8518         fi ;;
8519   esac
8520   need_lib_prefix=no
8521   need_version=no
8522   soname_spec='${libname}${release}${shared_ext}$major'
8523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8524   case $host_os in
8525   irix5* | nonstopux*)
8526     libsuff= shlibsuff=
8527     ;;
8528   *)
8529     case $LD in # libtool.m4 will add one of these switches to LD
8530     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8531       libsuff= shlibsuff= libmagic=32-bit;;
8532     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8533       libsuff=32 shlibsuff=N32 libmagic=N32;;
8534     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8535       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8536     *) libsuff= shlibsuff= libmagic=never-match;;
8537     esac
8538     ;;
8539   esac
8540   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8541   shlibpath_overrides_runpath=no
8542   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8543   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8544   hardcode_into_libs=yes
8545   ;;
8546
8547 # No shared lib support for Linux oldld, aout, or coff.
8548 linux*oldld* | linux*aout* | linux*coff*)
8549   dynamic_linker=no
8550   ;;
8551
8552 # This must be Linux ELF.
8553 linux*)
8554   version_type=linux
8555   need_lib_prefix=no
8556   need_version=no
8557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558   soname_spec='${libname}${release}${shared_ext}$major'
8559   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8560   shlibpath_var=LD_LIBRARY_PATH
8561   shlibpath_overrides_runpath=no
8562   # This implies no fast_install, which is unacceptable.
8563   # Some rework will be needed to allow for fast_install
8564   # before this can be enabled.
8565   hardcode_into_libs=yes
8566
8567   # find out which ABI we are using
8568   libsuff=
8569   case "$host_cpu" in
8570   x86_64*|s390x*|powerpc64*)
8571     echo '#line 8571 "configure"' > conftest.$ac_ext
8572     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8573   (eval $ac_compile) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; then
8577       case `/usr/bin/file conftest.$ac_objext` in
8578       *64-bit*)
8579         libsuff=64
8580         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8581         ;;
8582       esac
8583     fi
8584     rm -rf conftest*
8585     ;;
8586   esac
8587
8588   # Append ld.so.conf contents to the search path
8589   if test -f /etc/ld.so.conf; then
8590     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' ' '`
8591     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8592   fi
8593
8594   # We used to test for /lib/ld.so.1 and disable shared libraries on
8595   # powerpc, because MkLinux only supported shared libraries with the
8596   # GNU dynamic linker.  Since this was broken with cross compilers,
8597   # most powerpc-linux boxes support dynamic linking these days and
8598   # people can always --disable-shared, the test was removed, and we
8599   # assume the GNU/Linux dynamic linker is in use.
8600   dynamic_linker='GNU/Linux ld.so'
8601   ;;
8602
8603 knetbsd*-gnu)
8604   version_type=linux
8605   need_lib_prefix=no
8606   need_version=no
8607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8608   soname_spec='${libname}${release}${shared_ext}$major'
8609   shlibpath_var=LD_LIBRARY_PATH
8610   shlibpath_overrides_runpath=no
8611   hardcode_into_libs=yes
8612   dynamic_linker='GNU ld.so'
8613   ;;
8614
8615 netbsd*)
8616   version_type=sunos
8617   need_lib_prefix=no
8618   need_version=no
8619   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8622     dynamic_linker='NetBSD (a.out) ld.so'
8623   else
8624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8625     soname_spec='${libname}${release}${shared_ext}$major'
8626     dynamic_linker='NetBSD ld.elf_so'
8627   fi
8628   shlibpath_var=LD_LIBRARY_PATH
8629   shlibpath_overrides_runpath=yes
8630   hardcode_into_libs=yes
8631   ;;
8632
8633 newsos6)
8634   version_type=linux
8635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636   shlibpath_var=LD_LIBRARY_PATH
8637   shlibpath_overrides_runpath=yes
8638   ;;
8639
8640 nto-qnx*)
8641   version_type=linux
8642   need_lib_prefix=no
8643   need_version=no
8644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645   soname_spec='${libname}${release}${shared_ext}$major'
8646   shlibpath_var=LD_LIBRARY_PATH
8647   shlibpath_overrides_runpath=yes
8648   ;;
8649
8650 openbsd*)
8651   version_type=sunos
8652   need_lib_prefix=no
8653   need_version=no
8654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8656   shlibpath_var=LD_LIBRARY_PATH
8657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8658     case $host_os in
8659       openbsd2.[89] | openbsd2.[89].*)
8660         shlibpath_overrides_runpath=no
8661         ;;
8662       *)
8663         shlibpath_overrides_runpath=yes
8664         ;;
8665       esac
8666   else
8667     shlibpath_overrides_runpath=yes
8668   fi
8669   ;;
8670
8671 os2*)
8672   libname_spec='$name'
8673   shrext_cmds=".dll"
8674   need_lib_prefix=no
8675   library_names_spec='$libname${shared_ext} $libname.a'
8676   dynamic_linker='OS/2 ld.exe'
8677   shlibpath_var=LIBPATH
8678   ;;
8679
8680 osf3* | osf4* | osf5*)
8681   version_type=osf
8682   need_lib_prefix=no
8683   need_version=no
8684   soname_spec='${libname}${release}${shared_ext}$major'
8685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686   shlibpath_var=LD_LIBRARY_PATH
8687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8689   ;;
8690
8691 sco3.2v5*)
8692   version_type=osf
8693   soname_spec='${libname}${release}${shared_ext}$major'
8694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695   shlibpath_var=LD_LIBRARY_PATH
8696   ;;
8697
8698 solaris*)
8699   version_type=linux
8700   need_lib_prefix=no
8701   need_version=no
8702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703   soname_spec='${libname}${release}${shared_ext}$major'
8704   shlibpath_var=LD_LIBRARY_PATH
8705   shlibpath_overrides_runpath=yes
8706   hardcode_into_libs=yes
8707   # ldd complains unless libraries are executable
8708   postinstall_cmds='chmod +x $lib'
8709   ;;
8710
8711 sunos4*)
8712   version_type=sunos
8713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8715   shlibpath_var=LD_LIBRARY_PATH
8716   shlibpath_overrides_runpath=yes
8717   if test "$with_gnu_ld" = yes; then
8718     need_lib_prefix=no
8719   fi
8720   need_version=yes
8721   ;;
8722
8723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8724   version_type=linux
8725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726   soname_spec='${libname}${release}${shared_ext}$major'
8727   shlibpath_var=LD_LIBRARY_PATH
8728   case $host_vendor in
8729     sni)
8730       shlibpath_overrides_runpath=no
8731       need_lib_prefix=no
8732       export_dynamic_flag_spec='${wl}-Blargedynsym'
8733       runpath_var=LD_RUN_PATH
8734       ;;
8735     siemens)
8736       need_lib_prefix=no
8737       ;;
8738     motorola)
8739       need_lib_prefix=no
8740       need_version=no
8741       shlibpath_overrides_runpath=no
8742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8743       ;;
8744   esac
8745   ;;
8746
8747 sysv4*MP*)
8748   if test -d /usr/nec ;then
8749     version_type=linux
8750     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8751     soname_spec='$libname${shared_ext}.$major'
8752     shlibpath_var=LD_LIBRARY_PATH
8753   fi
8754   ;;
8755
8756 uts4*)
8757   version_type=linux
8758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759   soname_spec='${libname}${release}${shared_ext}$major'
8760   shlibpath_var=LD_LIBRARY_PATH
8761   ;;
8762
8763 *)
8764   dynamic_linker=no
8765   ;;
8766 esac
8767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8768 echo "${ECHO_T}$dynamic_linker" >&6
8769 test "$dynamic_linker" = no && can_build_shared=no
8770
8771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8773 hardcode_action=
8774 if test -n "$hardcode_libdir_flag_spec" || \
8775    test -n "$runpath_var" || \
8776    test "X$hardcode_automatic" = "Xyes" ; then
8777
8778   # We can hardcode non-existant directories.
8779   if test "$hardcode_direct" != no &&
8780      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8781      # have to relink, otherwise we might link with an installed library
8782      # when we should be linking with a yet-to-be-installed one
8783      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8784      test "$hardcode_minus_L" != no; then
8785     # Linking always hardcodes the temporary library directory.
8786     hardcode_action=relink
8787   else
8788     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8789     hardcode_action=immediate
8790   fi
8791 else
8792   # We cannot hardcode anything, or else we can only hardcode existing
8793   # directories.
8794   hardcode_action=unsupported
8795 fi
8796 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8797 echo "${ECHO_T}$hardcode_action" >&6
8798
8799 if test "$hardcode_action" = relink; then
8800   # Fast installation is not supported
8801   enable_fast_install=no
8802 elif test "$shlibpath_overrides_runpath" = yes ||
8803      test "$enable_shared" = no; then
8804   # Fast installation is not necessary
8805   enable_fast_install=needless
8806 fi
8807
8808 striplib=
8809 old_striplib=
8810 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8813   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8814   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8815   echo "$as_me:$LINENO: result: yes" >&5
8816 echo "${ECHO_T}yes" >&6
8817 else
8818 # FIXME - insert some real tests, host_os isn't really good enough
8819   case $host_os in
8820    darwin*)
8821        if test -n "$STRIP" ; then
8822          striplib="$STRIP -x"
8823          echo "$as_me:$LINENO: result: yes" >&5
8824 echo "${ECHO_T}yes" >&6
8825        else
8826   echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8828 fi
8829        ;;
8830    *)
8831   echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8833     ;;
8834   esac
8835 fi
8836
8837 if test "x$enable_dlopen" != xyes; then
8838   enable_dlopen=unknown
8839   enable_dlopen_self=unknown
8840   enable_dlopen_self_static=unknown
8841 else
8842   lt_cv_dlopen=no
8843   lt_cv_dlopen_libs=
8844
8845   case $host_os in
8846   beos*)
8847     lt_cv_dlopen="load_add_on"
8848     lt_cv_dlopen_libs=
8849     lt_cv_dlopen_self=yes
8850     ;;
8851
8852   mingw* | pw32*)
8853     lt_cv_dlopen="LoadLibrary"
8854     lt_cv_dlopen_libs=
8855    ;;
8856
8857   cygwin*)
8858     lt_cv_dlopen="dlopen"
8859     lt_cv_dlopen_libs=
8860    ;;
8861
8862   darwin*)
8863   # if libdl is installed we need to link against it
8864     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869   ac_check_lib_save_LIBS=$LIBS
8870 LIBS="-ldl  $LIBS"
8871 cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877
8878 /* Override any gcc2 internal prototype to avoid an error.  */
8879 #ifdef __cplusplus
8880 extern "C"
8881 #endif
8882 /* We use char because int might match the return type of a gcc2
8883    builtin and then its argument prototype would still apply.  */
8884 char dlopen ();
8885 int
8886 main ()
8887 {
8888 dlopen ();
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895   (eval $ac_link) 2>conftest.er1
8896   ac_status=$?
8897   grep -v '^ *+' conftest.er1 >conftest.err
8898   rm -f conftest.er1
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } &&
8902          { ac_try='test -z "$ac_c_werror_flag"
8903                          || test ! -s conftest.err'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; } &&
8909          { ac_try='test -s conftest$ac_exeext'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; }; then
8915   ac_cv_lib_dl_dlopen=yes
8916 else
8917   echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 ac_cv_lib_dl_dlopen=no
8921 fi
8922 rm -f conftest.err conftest.$ac_objext \
8923       conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8925 fi
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8928 if test $ac_cv_lib_dl_dlopen = yes; then
8929   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8930 else
8931
8932     lt_cv_dlopen="dyld"
8933     lt_cv_dlopen_libs=
8934     lt_cv_dlopen_self=yes
8935
8936 fi
8937
8938    ;;
8939
8940   *)
8941     echo "$as_me:$LINENO: checking for shl_load" >&5
8942 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8943 if test "${ac_cv_func_shl_load+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8954 #define shl_load innocuous_shl_load
8955
8956 /* System header to define __stub macros and hopefully few prototypes,
8957     which can conflict with char shl_load (); below.
8958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8959     <limits.h> exists even on freestanding compilers.  */
8960
8961 #ifdef __STDC__
8962 # include <limits.h>
8963 #else
8964 # include <assert.h>
8965 #endif
8966
8967 #undef shl_load
8968
8969 /* Override any gcc2 internal prototype to avoid an error.  */
8970 #ifdef __cplusplus
8971 extern "C"
8972 {
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975    builtin and then its argument prototype would still apply.  */
8976 char shl_load ();
8977 /* The GNU C library defines this for functions which it implements
8978     to always fail with ENOSYS.  Some functions are actually named
8979     something starting with __ and the normal name is an alias.  */
8980 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8981 choke me
8982 #else
8983 char (*f) () = shl_load;
8984 #endif
8985 #ifdef __cplusplus
8986 }
8987 #endif
8988
8989 int
8990 main ()
8991 {
8992 return f != shl_load;
8993   ;
8994   return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999   (eval $ac_link) 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } &&
9006          { ac_try='test -z "$ac_c_werror_flag"
9007                          || test ! -s conftest.err'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; } &&
9013          { ac_try='test -s conftest$ac_exeext'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; }; then
9019   ac_cv_func_shl_load=yes
9020 else
9021   echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_cv_func_shl_load=no
9025 fi
9026 rm -f conftest.err conftest.$ac_objext \
9027       conftest$ac_exeext conftest.$ac_ext
9028 fi
9029 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9030 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9031 if test $ac_cv_func_shl_load = yes; then
9032   lt_cv_dlopen="shl_load"
9033 else
9034   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9035 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9036 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9037   echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039   ac_check_lib_save_LIBS=$LIBS
9040 LIBS="-ldld  $LIBS"
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h.  */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h.  */
9047
9048 /* Override any gcc2 internal prototype to avoid an error.  */
9049 #ifdef __cplusplus
9050 extern "C"
9051 #endif
9052 /* We use char because int might match the return type of a gcc2
9053    builtin and then its argument prototype would still apply.  */
9054 char shl_load ();
9055 int
9056 main ()
9057 {
9058 shl_load ();
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065   (eval $ac_link) 2>conftest.er1
9066   ac_status=$?
9067   grep -v '^ *+' conftest.er1 >conftest.err
9068   rm -f conftest.er1
9069   cat conftest.err >&5
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -z "$ac_c_werror_flag"
9073                          || test ! -s conftest.err'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; } &&
9079          { ac_try='test -s conftest$ac_exeext'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; }; then
9085   ac_cv_lib_dld_shl_load=yes
9086 else
9087   echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090 ac_cv_lib_dld_shl_load=no
9091 fi
9092 rm -f conftest.err conftest.$ac_objext \
9093       conftest$ac_exeext conftest.$ac_ext
9094 LIBS=$ac_check_lib_save_LIBS
9095 fi
9096 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9097 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9098 if test $ac_cv_lib_dld_shl_load = yes; then
9099   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9100 else
9101   echo "$as_me:$LINENO: checking for dlopen" >&5
9102 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9103 if test "${ac_cv_func_dlopen+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9114 #define dlopen innocuous_dlopen
9115
9116 /* System header to define __stub macros and hopefully few prototypes,
9117     which can conflict with char dlopen (); below.
9118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9119     <limits.h> exists even on freestanding compilers.  */
9120
9121 #ifdef __STDC__
9122 # include <limits.h>
9123 #else
9124 # include <assert.h>
9125 #endif
9126
9127 #undef dlopen
9128
9129 /* Override any gcc2 internal prototype to avoid an error.  */
9130 #ifdef __cplusplus
9131 extern "C"
9132 {
9133 #endif
9134 /* We use char because int might match the return type of a gcc2
9135    builtin and then its argument prototype would still apply.  */
9136 char dlopen ();
9137 /* The GNU C library defines this for functions which it implements
9138     to always fail with ENOSYS.  Some functions are actually named
9139     something starting with __ and the normal name is an alias.  */
9140 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9141 choke me
9142 #else
9143 char (*f) () = dlopen;
9144 #endif
9145 #ifdef __cplusplus
9146 }
9147 #endif
9148
9149 int
9150 main ()
9151 {
9152 return f != dlopen;
9153   ;
9154   return 0;
9155 }
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159   (eval $ac_link) 2>conftest.er1
9160   ac_status=$?
9161   grep -v '^ *+' conftest.er1 >conftest.err
9162   rm -f conftest.er1
9163   cat conftest.err >&5
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); } &&
9166          { ac_try='test -z "$ac_c_werror_flag"
9167                          || test ! -s conftest.err'
9168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169   (eval $ac_try) 2>&5
9170   ac_status=$?
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); }; } &&
9173          { ac_try='test -s conftest$ac_exeext'
9174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175   (eval $ac_try) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; }; then
9179   ac_cv_func_dlopen=yes
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184 ac_cv_func_dlopen=no
9185 fi
9186 rm -f conftest.err conftest.$ac_objext \
9187       conftest$ac_exeext conftest.$ac_ext
9188 fi
9189 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9190 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9191 if test $ac_cv_func_dlopen = yes; then
9192   lt_cv_dlopen="dlopen"
9193 else
9194   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   ac_check_lib_save_LIBS=$LIBS
9200 LIBS="-ldl  $LIBS"
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207
9208 /* Override any gcc2 internal prototype to avoid an error.  */
9209 #ifdef __cplusplus
9210 extern "C"
9211 #endif
9212 /* We use char because int might match the return type of a gcc2
9213    builtin and then its argument prototype would still apply.  */
9214 char dlopen ();
9215 int
9216 main ()
9217 {
9218 dlopen ();
9219   ;
9220   return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225   (eval $ac_link) 2>conftest.er1
9226   ac_status=$?
9227   grep -v '^ *+' conftest.er1 >conftest.err
9228   rm -f conftest.er1
9229   cat conftest.err >&5
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } &&
9232          { ac_try='test -z "$ac_c_werror_flag"
9233                          || test ! -s conftest.err'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; } &&
9239          { ac_try='test -s conftest$ac_exeext'
9240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241   (eval $ac_try) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); }; }; then
9245   ac_cv_lib_dl_dlopen=yes
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 ac_cv_lib_dl_dlopen=no
9251 fi
9252 rm -f conftest.err conftest.$ac_objext \
9253       conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9258 if test $ac_cv_lib_dl_dlopen = yes; then
9259   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9260 else
9261   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9262 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266   ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lsvld  $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h.  */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h.  */
9274
9275 /* Override any gcc2 internal prototype to avoid an error.  */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 /* We use char because int might match the return type of a gcc2
9280    builtin and then its argument prototype would still apply.  */
9281 char dlopen ();
9282 int
9283 main ()
9284 {
9285 dlopen ();
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292   (eval $ac_link) 2>conftest.er1
9293   ac_status=$?
9294   grep -v '^ *+' conftest.er1 >conftest.err
9295   rm -f conftest.er1
9296   cat conftest.err >&5
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); } &&
9299          { ac_try='test -z "$ac_c_werror_flag"
9300                          || test ! -s conftest.err'
9301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302   (eval $ac_try) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; } &&
9306          { ac_try='test -s conftest$ac_exeext'
9307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308   (eval $ac_try) 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); }; }; then
9312   ac_cv_lib_svld_dlopen=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 ac_cv_lib_svld_dlopen=no
9318 fi
9319 rm -f conftest.err conftest.$ac_objext \
9320       conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9322 fi
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9324 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9325 if test $ac_cv_lib_svld_dlopen = yes; then
9326   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9327 else
9328   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9329 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9330 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333   ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-ldld  $LIBS"
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341
9342 /* Override any gcc2 internal prototype to avoid an error.  */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 /* We use char because int might match the return type of a gcc2
9347    builtin and then its argument prototype would still apply.  */
9348 char dld_link ();
9349 int
9350 main ()
9351 {
9352 dld_link ();
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359   (eval $ac_link) 2>conftest.er1
9360   ac_status=$?
9361   grep -v '^ *+' conftest.er1 >conftest.err
9362   rm -f conftest.er1
9363   cat conftest.err >&5
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); } &&
9366          { ac_try='test -z "$ac_c_werror_flag"
9367                          || test ! -s conftest.err'
9368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369   (eval $ac_try) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); }; } &&
9373          { ac_try='test -s conftest$ac_exeext'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379   ac_cv_lib_dld_dld_link=yes
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_cv_lib_dld_dld_link=no
9385 fi
9386 rm -f conftest.err conftest.$ac_objext \
9387       conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9389 fi
9390 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9391 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9392 if test $ac_cv_lib_dld_dld_link = yes; then
9393   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9394 fi
9395
9396
9397 fi
9398
9399
9400 fi
9401
9402
9403 fi
9404
9405
9406 fi
9407
9408
9409 fi
9410
9411     ;;
9412   esac
9413
9414   if test "x$lt_cv_dlopen" != xno; then
9415     enable_dlopen=yes
9416   else
9417     enable_dlopen=no
9418   fi
9419
9420   case $lt_cv_dlopen in
9421   dlopen)
9422     save_CPPFLAGS="$CPPFLAGS"
9423     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9424
9425     save_LDFLAGS="$LDFLAGS"
9426     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9427
9428     save_LIBS="$LIBS"
9429     LIBS="$lt_cv_dlopen_libs $LIBS"
9430
9431     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9432 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9433 if test "${lt_cv_dlopen_self+set}" = set; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436           if test "$cross_compiling" = yes; then :
9437   lt_cv_dlopen_self=cross
9438 else
9439   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9440   lt_status=$lt_dlunknown
9441   cat > conftest.$ac_ext <<EOF
9442 #line 9442 "configure"
9443 #include "confdefs.h"
9444
9445 #if HAVE_DLFCN_H
9446 #include <dlfcn.h>
9447 #endif
9448
9449 #include <stdio.h>
9450
9451 #ifdef RTLD_GLOBAL
9452 #  define LT_DLGLOBAL           RTLD_GLOBAL
9453 #else
9454 #  ifdef DL_GLOBAL
9455 #    define LT_DLGLOBAL         DL_GLOBAL
9456 #  else
9457 #    define LT_DLGLOBAL         0
9458 #  endif
9459 #endif
9460
9461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9462    find out it does not work in some platform. */
9463 #ifndef LT_DLLAZY_OR_NOW
9464 #  ifdef RTLD_LAZY
9465 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9466 #  else
9467 #    ifdef DL_LAZY
9468 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9469 #    else
9470 #      ifdef RTLD_NOW
9471 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9472 #      else
9473 #        ifdef DL_NOW
9474 #          define LT_DLLAZY_OR_NOW      DL_NOW
9475 #        else
9476 #          define LT_DLLAZY_OR_NOW      0
9477 #        endif
9478 #      endif
9479 #    endif
9480 #  endif
9481 #endif
9482
9483 #ifdef __cplusplus
9484 extern "C" void exit (int);
9485 #endif
9486
9487 void fnord() { int i=42;}
9488 int main ()
9489 {
9490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9491   int status = $lt_dlunknown;
9492
9493   if (self)
9494     {
9495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9496       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9497       /* dlclose (self); */
9498     }
9499
9500     exit (status);
9501 }
9502 EOF
9503   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9508     (./conftest; exit; ) 2>/dev/null
9509     lt_status=$?
9510     case x$lt_status in
9511       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9512       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9513       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9514     esac
9515   else :
9516     # compilation failed
9517     lt_cv_dlopen_self=no
9518   fi
9519 fi
9520 rm -fr conftest*
9521
9522
9523 fi
9524 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9525 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9526
9527     if test "x$lt_cv_dlopen_self" = xyes; then
9528       LDFLAGS="$LDFLAGS $link_static_flag"
9529       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9530 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9531 if test "${lt_cv_dlopen_self_static+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534           if test "$cross_compiling" = yes; then :
9535   lt_cv_dlopen_self_static=cross
9536 else
9537   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9538   lt_status=$lt_dlunknown
9539   cat > conftest.$ac_ext <<EOF
9540 #line 9540 "configure"
9541 #include "confdefs.h"
9542
9543 #if HAVE_DLFCN_H
9544 #include <dlfcn.h>
9545 #endif
9546
9547 #include <stdio.h>
9548
9549 #ifdef RTLD_GLOBAL
9550 #  define LT_DLGLOBAL           RTLD_GLOBAL
9551 #else
9552 #  ifdef DL_GLOBAL
9553 #    define LT_DLGLOBAL         DL_GLOBAL
9554 #  else
9555 #    define LT_DLGLOBAL         0
9556 #  endif
9557 #endif
9558
9559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9560    find out it does not work in some platform. */
9561 #ifndef LT_DLLAZY_OR_NOW
9562 #  ifdef RTLD_LAZY
9563 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9564 #  else
9565 #    ifdef DL_LAZY
9566 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9567 #    else
9568 #      ifdef RTLD_NOW
9569 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9570 #      else
9571 #        ifdef DL_NOW
9572 #          define LT_DLLAZY_OR_NOW      DL_NOW
9573 #        else
9574 #          define LT_DLLAZY_OR_NOW      0
9575 #        endif
9576 #      endif
9577 #    endif
9578 #  endif
9579 #endif
9580
9581 #ifdef __cplusplus
9582 extern "C" void exit (int);
9583 #endif
9584
9585 void fnord() { int i=42;}
9586 int main ()
9587 {
9588   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9589   int status = $lt_dlunknown;
9590
9591   if (self)
9592     {
9593       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9594       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9595       /* dlclose (self); */
9596     }
9597
9598     exit (status);
9599 }
9600 EOF
9601   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602   (eval $ac_link) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9606     (./conftest; exit; ) 2>/dev/null
9607     lt_status=$?
9608     case x$lt_status in
9609       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9610       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9611       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9612     esac
9613   else :
9614     # compilation failed
9615     lt_cv_dlopen_self_static=no
9616   fi
9617 fi
9618 rm -fr conftest*
9619
9620
9621 fi
9622 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9623 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9624     fi
9625
9626     CPPFLAGS="$save_CPPFLAGS"
9627     LDFLAGS="$save_LDFLAGS"
9628     LIBS="$save_LIBS"
9629     ;;
9630   esac
9631
9632   case $lt_cv_dlopen_self in
9633   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9634   *) enable_dlopen_self=unknown ;;
9635   esac
9636
9637   case $lt_cv_dlopen_self_static in
9638   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9639   *) enable_dlopen_self_static=unknown ;;
9640   esac
9641 fi
9642
9643
9644 # Report which librarie types wil actually be built
9645 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9646 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9647 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9648 echo "${ECHO_T}$can_build_shared" >&6
9649
9650 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9652 test "$can_build_shared" = "no" && enable_shared=no
9653
9654 # On AIX, shared libraries and static libraries use the same namespace, and
9655 # are all built from PIC.
9656 case "$host_os" in
9657 aix3*)
9658   test "$enable_shared" = yes && enable_static=no
9659   if test -n "$RANLIB"; then
9660     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9661     postinstall_cmds='$RANLIB $lib'
9662   fi
9663   ;;
9664
9665 aix4* | aix5*)
9666   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9667     test "$enable_shared" = yes && enable_static=no
9668   fi
9669     ;;
9670 esac
9671 echo "$as_me:$LINENO: result: $enable_shared" >&5
9672 echo "${ECHO_T}$enable_shared" >&6
9673
9674 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9675 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9676 # Make sure either enable_shared or enable_static is yes.
9677 test "$enable_shared" = yes || enable_static=yes
9678 echo "$as_me:$LINENO: result: $enable_static" >&5
9679 echo "${ECHO_T}$enable_static" >&6
9680
9681 # The else clause should only fire when bootstrapping the
9682 # libtool distribution, otherwise you forgot to ship ltmain.sh
9683 # with your package, and you will get complaints that there are
9684 # no rules to generate ltmain.sh.
9685 if test -f "$ltmain"; then
9686   # See if we are running on zsh, and set the options which allow our commands through
9687   # without removal of \ escapes.
9688   if test -n "${ZSH_VERSION+set}" ; then
9689     setopt NO_GLOB_SUBST
9690   fi
9691   # Now quote all the things that may contain metacharacters while being
9692   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9693   # variables and quote the copies for generation of the libtool script.
9694   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9695     SED SHELL STRIP \
9696     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9697     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9698     deplibs_check_method reload_flag reload_cmds need_locks \
9699     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9700     lt_cv_sys_global_symbol_to_c_name_address \
9701     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9702     old_postinstall_cmds old_postuninstall_cmds \
9703     compiler \
9704     CC \
9705     LD \
9706     lt_prog_compiler_wl \
9707     lt_prog_compiler_pic \
9708     lt_prog_compiler_static \
9709     lt_prog_compiler_no_builtin_flag \
9710     export_dynamic_flag_spec \
9711     thread_safe_flag_spec \
9712     whole_archive_flag_spec \
9713     enable_shared_with_static_runtimes \
9714     old_archive_cmds \
9715     old_archive_from_new_cmds \
9716     predep_objects \
9717     postdep_objects \
9718     predeps \
9719     postdeps \
9720     compiler_lib_search_path \
9721     archive_cmds \
9722     archive_expsym_cmds \
9723     postinstall_cmds \
9724     postuninstall_cmds \
9725     old_archive_from_expsyms_cmds \
9726     allow_undefined_flag \
9727     no_undefined_flag \
9728     export_symbols_cmds \
9729     hardcode_libdir_flag_spec \
9730     hardcode_libdir_flag_spec_ld \
9731     hardcode_libdir_separator \
9732     hardcode_automatic \
9733     module_cmds \
9734     module_expsym_cmds \
9735     lt_cv_prog_compiler_c_o \
9736     exclude_expsyms \
9737     include_expsyms; do
9738
9739     case $var in
9740     old_archive_cmds | \
9741     old_archive_from_new_cmds | \
9742     archive_cmds | \
9743     archive_expsym_cmds | \
9744     module_cmds | \
9745     module_expsym_cmds | \
9746     old_archive_from_expsyms_cmds | \
9747     export_symbols_cmds | \
9748     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9749     postinstall_cmds | postuninstall_cmds | \
9750     old_postinstall_cmds | old_postuninstall_cmds | \
9751     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9752       # Double-quote double-evaled strings.
9753       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9754       ;;
9755     *)
9756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9757       ;;
9758     esac
9759   done
9760
9761   case $lt_echo in
9762   *'\$0 --fallback-echo"')
9763     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9764     ;;
9765   esac
9766
9767 cfgfile="${ofile}T"
9768   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9769   $rm -f "$cfgfile"
9770   { echo "$as_me:$LINENO: creating $ofile" >&5
9771 echo "$as_me: creating $ofile" >&6;}
9772
9773   cat <<__EOF__ >> "$cfgfile"
9774 #! $SHELL
9775
9776 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9777 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9778 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9779 #
9780 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9781 # Free Software Foundation, Inc.
9782 #
9783 # This file is part of GNU Libtool:
9784 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9785 #
9786 # This program is free software; you can redistribute it and/or modify
9787 # it under the terms of the GNU General Public License as published by
9788 # the Free Software Foundation; either version 2 of the License, or
9789 # (at your option) any later version.
9790 #
9791 # This program is distributed in the hope that it will be useful, but
9792 # WITHOUT ANY WARRANTY; without even the implied warranty of
9793 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9794 # General Public License for more details.
9795 #
9796 # You should have received a copy of the GNU General Public License
9797 # along with this program; if not, write to the Free Software
9798 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9799 #
9800 # As a special exception to the GNU General Public License, if you
9801 # distribute this file as part of a program that contains a
9802 # configuration script generated by Autoconf, you may include it under
9803 # the same distribution terms that you use for the rest of that program.
9804
9805 # A sed program that does not truncate output.
9806 SED=$lt_SED
9807
9808 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9809 Xsed="$SED -e 1s/^X//"
9810
9811 # The HP-UX ksh and POSIX shell print the target directory to stdout
9812 # if CDPATH is set.
9813 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9814
9815 # The names of the tagged configurations supported by this script.
9816 available_tags=
9817
9818 # ### BEGIN LIBTOOL CONFIG
9819
9820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9821
9822 # Shell to use when invoking shell scripts.
9823 SHELL=$lt_SHELL
9824
9825 # Whether or not to build shared libraries.
9826 build_libtool_libs=$enable_shared
9827
9828 # Whether or not to build static libraries.
9829 build_old_libs=$enable_static
9830
9831 # Whether or not to add -lc for building shared libraries.
9832 build_libtool_need_lc=$archive_cmds_need_lc
9833
9834 # Whether or not to disallow shared libs when runtime libs are static
9835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9836
9837 # Whether or not to optimize for fast installation.
9838 fast_install=$enable_fast_install
9839
9840 # The host system.
9841 host_alias=$host_alias
9842 host=$host
9843 host_os=$host_os
9844
9845 # The build system.
9846 build_alias=$build_alias
9847 build=$build
9848 build_os=$build_os
9849
9850 # An echo program that does not interpret backslashes.
9851 echo=$lt_echo
9852
9853 # The archiver.
9854 AR=$lt_AR
9855 AR_FLAGS=$lt_AR_FLAGS
9856
9857 # A C compiler.
9858 LTCC=$lt_LTCC
9859
9860 # A language-specific compiler.
9861 CC=$lt_compiler
9862
9863 # Is the compiler the GNU C compiler?
9864 with_gcc=$GCC
9865
9866 # An ERE matcher.
9867 EGREP=$lt_EGREP
9868
9869 # The linker used to build libraries.
9870 LD=$lt_LD
9871
9872 # Whether we need hard or soft links.
9873 LN_S=$lt_LN_S
9874
9875 # A BSD-compatible nm program.
9876 NM=$lt_NM
9877
9878 # A symbol stripping program
9879 STRIP=$lt_STRIP
9880
9881 # Used to examine libraries when file_magic_cmd begins "file"
9882 MAGIC_CMD=$MAGIC_CMD
9883
9884 # Used on cygwin: DLL creation program.
9885 DLLTOOL="$DLLTOOL"
9886
9887 # Used on cygwin: object dumper.
9888 OBJDUMP="$OBJDUMP"
9889
9890 # Used on cygwin: assembler.
9891 AS="$AS"
9892
9893 # The name of the directory that contains temporary libtool files.
9894 objdir=$objdir
9895
9896 # How to create reloadable object files.
9897 reload_flag=$lt_reload_flag
9898 reload_cmds=$lt_reload_cmds
9899
9900 # How to pass a linker flag through the compiler.
9901 wl=$lt_lt_prog_compiler_wl
9902
9903 # Object file suffix (normally "o").
9904 objext="$ac_objext"
9905
9906 # Old archive suffix (normally "a").
9907 libext="$libext"
9908
9909 # Shared library suffix (normally ".so").
9910 shrext_cmds='$shrext_cmds'
9911
9912 # Executable file suffix (normally "").
9913 exeext="$exeext"
9914
9915 # Additional compiler flags for building library objects.
9916 pic_flag=$lt_lt_prog_compiler_pic
9917 pic_mode=$pic_mode
9918
9919 # What is the maximum length of a command?
9920 max_cmd_len=$lt_cv_sys_max_cmd_len
9921
9922 # Does compiler simultaneously support -c and -o options?
9923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9924
9925 # Must we lock files when doing compilation?
9926 need_locks=$lt_need_locks
9927
9928 # Do we need the lib prefix for modules?
9929 need_lib_prefix=$need_lib_prefix
9930
9931 # Do we need a version for libraries?
9932 need_version=$need_version
9933
9934 # Whether dlopen is supported.
9935 dlopen_support=$enable_dlopen
9936
9937 # Whether dlopen of programs is supported.
9938 dlopen_self=$enable_dlopen_self
9939
9940 # Whether dlopen of statically linked programs is supported.
9941 dlopen_self_static=$enable_dlopen_self_static
9942
9943 # Compiler flag to prevent dynamic linking.
9944 link_static_flag=$lt_lt_prog_compiler_static
9945
9946 # Compiler flag to turn off builtin functions.
9947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9948
9949 # Compiler flag to allow reflexive dlopens.
9950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9951
9952 # Compiler flag to generate shared objects directly from archives.
9953 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9954
9955 # Compiler flag to generate thread-safe objects.
9956 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9957
9958 # Library versioning type.
9959 version_type=$version_type
9960
9961 # Format of library name prefix.
9962 libname_spec=$lt_libname_spec
9963
9964 # List of archive names.  First name is the real one, the rest are links.
9965 # The last name is the one that the linker finds with -lNAME.
9966 library_names_spec=$lt_library_names_spec
9967
9968 # The coded name of the library, if different from the real name.
9969 soname_spec=$lt_soname_spec
9970
9971 # Commands used to build and install an old-style archive.
9972 RANLIB=$lt_RANLIB
9973 old_archive_cmds=$lt_old_archive_cmds
9974 old_postinstall_cmds=$lt_old_postinstall_cmds
9975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9976
9977 # Create an old-style archive from a shared archive.
9978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9979
9980 # Create a temporary old-style archive to link instead of a shared archive.
9981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9982
9983 # Commands used to build and install a shared archive.
9984 archive_cmds=$lt_archive_cmds
9985 archive_expsym_cmds=$lt_archive_expsym_cmds
9986 postinstall_cmds=$lt_postinstall_cmds
9987 postuninstall_cmds=$lt_postuninstall_cmds
9988
9989 # Commands used to build a loadable module (assumed same as above if empty)
9990 module_cmds=$lt_module_cmds
9991 module_expsym_cmds=$lt_module_expsym_cmds
9992
9993 # Commands to strip libraries.
9994 old_striplib=$lt_old_striplib
9995 striplib=$lt_striplib
9996
9997 # Dependencies to place before the objects being linked to create a
9998 # shared library.
9999 predep_objects=$lt_predep_objects
10000
10001 # Dependencies to place after the objects being linked to create a
10002 # shared library.
10003 postdep_objects=$lt_postdep_objects
10004
10005 # Dependencies to place before the objects being linked to create a
10006 # shared library.
10007 predeps=$lt_predeps
10008
10009 # Dependencies to place after the objects being linked to create a
10010 # shared library.
10011 postdeps=$lt_postdeps
10012
10013 # The library search path used internally by the compiler when linking
10014 # a shared library.
10015 compiler_lib_search_path=$lt_compiler_lib_search_path
10016
10017 # Method to check whether dependent libraries are shared objects.
10018 deplibs_check_method=$lt_deplibs_check_method
10019
10020 # Command to use when deplibs_check_method == file_magic.
10021 file_magic_cmd=$lt_file_magic_cmd
10022
10023 # Flag that allows shared libraries with undefined symbols to be built.
10024 allow_undefined_flag=$lt_allow_undefined_flag
10025
10026 # Flag that forces no undefined symbols.
10027 no_undefined_flag=$lt_no_undefined_flag
10028
10029 # Commands used to finish a libtool library installation in a directory.
10030 finish_cmds=$lt_finish_cmds
10031
10032 # Same as above, but a single script fragment to be evaled but not shown.
10033 finish_eval=$lt_finish_eval
10034
10035 # Take the output of nm and produce a listing of raw symbols and C names.
10036 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10037
10038 # Transform the output of nm in a proper C declaration
10039 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10040
10041 # Transform the output of nm in a C name address pair
10042 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10043
10044 # This is the shared library runtime path variable.
10045 runpath_var=$runpath_var
10046
10047 # This is the shared library path variable.
10048 shlibpath_var=$shlibpath_var
10049
10050 # Is shlibpath searched before the hard-coded library search path?
10051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10052
10053 # How to hardcode a shared library path into an executable.
10054 hardcode_action=$hardcode_action
10055
10056 # Whether we should hardcode library paths into libraries.
10057 hardcode_into_libs=$hardcode_into_libs
10058
10059 # Flag to hardcode \$libdir into a binary during linking.
10060 # This must work even if \$libdir does not exist.
10061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10062
10063 # If ld is used when linking, flag to hardcode \$libdir into
10064 # a binary during linking. This must work even if \$libdir does
10065 # not exist.
10066 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10067
10068 # Whether we need a single -rpath flag with a separated argument.
10069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10070
10071 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10072 # resulting binary.
10073 hardcode_direct=$hardcode_direct
10074
10075 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10076 # resulting binary.
10077 hardcode_minus_L=$hardcode_minus_L
10078
10079 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10080 # the resulting binary.
10081 hardcode_shlibpath_var=$hardcode_shlibpath_var
10082
10083 # Set to yes if building a shared library automatically hardcodes DIR into the library
10084 # and all subsequent libraries and executables linked against it.
10085 hardcode_automatic=$hardcode_automatic
10086
10087 # Variables whose values should be saved in libtool wrapper scripts and
10088 # restored at relink time.
10089 variables_saved_for_relink="$variables_saved_for_relink"
10090
10091 # Whether libtool must link a program against all its dependency libraries.
10092 link_all_deplibs=$link_all_deplibs
10093
10094 # Compile-time system search path for libraries
10095 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10096
10097 # Run-time system search path for libraries
10098 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10099
10100 # Fix the shell variable \$srcfile for the compiler.
10101 fix_srcfile_path="$fix_srcfile_path"
10102
10103 # Set to yes if exported symbols are required.
10104 always_export_symbols=$always_export_symbols
10105
10106 # The commands to list exported symbols.
10107 export_symbols_cmds=$lt_export_symbols_cmds
10108
10109 # The commands to extract the exported symbol list from a shared archive.
10110 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10111
10112 # Symbols that should not be listed in the preloaded symbols.
10113 exclude_expsyms=$lt_exclude_expsyms
10114
10115 # Symbols that must always be exported.
10116 include_expsyms=$lt_include_expsyms
10117
10118 # ### END LIBTOOL CONFIG
10119
10120 __EOF__
10121
10122
10123   case $host_os in
10124   aix3*)
10125     cat <<\EOF >> "$cfgfile"
10126
10127 # AIX sometimes has problems with the GCC collect2 program.  For some
10128 # reason, if we set the COLLECT_NAMES environment variable, the problems
10129 # vanish in a puff of smoke.
10130 if test "X${COLLECT_NAMES+set}" != Xset; then
10131   COLLECT_NAMES=
10132   export COLLECT_NAMES
10133 fi
10134 EOF
10135     ;;
10136   esac
10137
10138   # We use sed instead of cat because bash on DJGPP gets confused if
10139   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10140   # text mode, it properly converts lines to CR/LF.  This bash problem
10141   # is reportedly fixed, but why not run on old versions too?
10142   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10143
10144   mv -f "$cfgfile" "$ofile" || \
10145     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10146   chmod +x "$ofile"
10147
10148 else
10149   # If there is no Makefile yet, we rely on a make rule to execute
10150   # `config.status --recheck' to rerun these tests and create the
10151   # libtool script then.
10152   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10153   if test -f "$ltmain_in"; then
10154     test -f Makefile && make "$ltmain"
10155   fi
10156 fi
10157
10158
10159 ac_ext=c
10160 ac_cpp='$CPP $CPPFLAGS'
10161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10164
10165 CC="$lt_save_CC"
10166
10167
10168 # Check whether --with-tags or --without-tags was given.
10169 if test "${with_tags+set}" = set; then
10170   withval="$with_tags"
10171   tagnames="$withval"
10172 fi;
10173
10174 if test -f "$ltmain" && test -n "$tagnames"; then
10175   if test ! -f "${ofile}"; then
10176     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10177 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10178   fi
10179
10180   if test -z "$LTCC"; then
10181     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10182     if test -z "$LTCC"; then
10183       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10184 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10185     else
10186       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10187 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10188     fi
10189   fi
10190
10191   # Extract list of available tagged configurations in $ofile.
10192   # Note that this assumes the entire list is on one line.
10193   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10194
10195   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10196   for tagname in $tagnames; do
10197     IFS="$lt_save_ifs"
10198     # Check whether tagname contains only valid characters
10199     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10200     "") ;;
10201     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10202 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10203    { (exit 1); exit 1; }; }
10204         ;;
10205     esac
10206
10207     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10208     then
10209       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10210 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10211    { (exit 1); exit 1; }; }
10212     fi
10213
10214     # Update the list of available tags.
10215     if test -n "$tagname"; then
10216       echo appending configuration tag \"$tagname\" to $ofile
10217
10218       case $tagname in
10219       CXX)
10220         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10221             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10222             (test "X$CXX" != "Xg++"))) ; then
10223           ac_ext=cc
10224 ac_cpp='$CXXCPP $CPPFLAGS'
10225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10228
10229
10230
10231
10232 archive_cmds_need_lc_CXX=no
10233 allow_undefined_flag_CXX=
10234 always_export_symbols_CXX=no
10235 archive_expsym_cmds_CXX=
10236 export_dynamic_flag_spec_CXX=
10237 hardcode_direct_CXX=no
10238 hardcode_libdir_flag_spec_CXX=
10239 hardcode_libdir_flag_spec_ld_CXX=
10240 hardcode_libdir_separator_CXX=
10241 hardcode_minus_L_CXX=no
10242 hardcode_automatic_CXX=no
10243 module_cmds_CXX=
10244 module_expsym_cmds_CXX=
10245 link_all_deplibs_CXX=unknown
10246 old_archive_cmds_CXX=$old_archive_cmds
10247 no_undefined_flag_CXX=
10248 whole_archive_flag_spec_CXX=
10249 enable_shared_with_static_runtimes_CXX=no
10250
10251 # Dependencies to place before and after the object being linked:
10252 predep_objects_CXX=
10253 postdep_objects_CXX=
10254 predeps_CXX=
10255 postdeps_CXX=
10256 compiler_lib_search_path_CXX=
10257
10258 # Source file extension for C++ test sources.
10259 ac_ext=cc
10260
10261 # Object file extension for compiled C++ test sources.
10262 objext=o
10263 objext_CXX=$objext
10264
10265 # Code to be used in simple compile tests
10266 lt_simple_compile_test_code="int some_variable = 0;\n"
10267
10268 # Code to be used in simple link tests
10269 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10270
10271 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10272
10273 # If no C compiler was specified, use CC.
10274 LTCC=${LTCC-"$CC"}
10275
10276 # Allow CC to be a program name with arguments.
10277 compiler=$CC
10278
10279
10280 # save warnings/boilerplate of simple test code
10281 ac_outfile=conftest.$ac_objext
10282 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10284 _lt_compiler_boilerplate=`cat conftest.err`
10285 $rm conftest*
10286
10287 ac_outfile=conftest.$ac_objext
10288 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10290 _lt_linker_boilerplate=`cat conftest.err`
10291 $rm conftest*
10292
10293
10294 # Allow CC to be a program name with arguments.
10295 lt_save_CC=$CC
10296 lt_save_LD=$LD
10297 lt_save_GCC=$GCC
10298 GCC=$GXX
10299 lt_save_with_gnu_ld=$with_gnu_ld
10300 lt_save_path_LD=$lt_cv_path_LD
10301 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10302   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10303 else
10304   unset lt_cv_prog_gnu_ld
10305 fi
10306 if test -n "${lt_cv_path_LDCXX+set}"; then
10307   lt_cv_path_LD=$lt_cv_path_LDCXX
10308 else
10309   unset lt_cv_path_LD
10310 fi
10311 test -z "${LDCXX+set}" || LD=$LDCXX
10312 CC=${CXX-"c++"}
10313 compiler=$CC
10314 compiler_CXX=$CC
10315 for cc_temp in $compiler""; do
10316   case $cc_temp in
10317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10319     \-*) ;;
10320     *) break;;
10321   esac
10322 done
10323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10324
10325
10326 # We don't want -fno-exception wen compiling C++ code, so set the
10327 # no_builtin_flag separately
10328 if test "$GXX" = yes; then
10329   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10330 else
10331   lt_prog_compiler_no_builtin_flag_CXX=
10332 fi
10333
10334 if test "$GXX" = yes; then
10335   # Set up default GNU C++ configuration
10336
10337
10338 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10339 if test "${with_gnu_ld+set}" = set; then
10340   withval="$with_gnu_ld"
10341   test "$withval" = no || with_gnu_ld=yes
10342 else
10343   with_gnu_ld=no
10344 fi;
10345 ac_prog=ld
10346 if test "$GCC" = yes; then
10347   # Check if gcc -print-prog-name=ld gives a path.
10348   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10349 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10350   case $host in
10351   *-*-mingw*)
10352     # gcc leaves a trailing carriage return which upsets mingw
10353     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10354   *)
10355     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10356   esac
10357   case $ac_prog in
10358     # Accept absolute paths.
10359     [\\/]* | ?:[\\/]*)
10360       re_direlt='/[^/][^/]*/\.\./'
10361       # Canonicalize the pathname of ld
10362       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10363       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10364         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10365       done
10366       test -z "$LD" && LD="$ac_prog"
10367       ;;
10368   "")
10369     # If it fails, then pretend we aren't using GCC.
10370     ac_prog=ld
10371     ;;
10372   *)
10373     # If it is relative, then search for the first ld in PATH.
10374     with_gnu_ld=unknown
10375     ;;
10376   esac
10377 elif test "$with_gnu_ld" = yes; then
10378   echo "$as_me:$LINENO: checking for GNU ld" >&5
10379 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10380 else
10381   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10382 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10383 fi
10384 if test "${lt_cv_path_LD+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   if test -z "$LD"; then
10388   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10389   for ac_dir in $PATH; do
10390     IFS="$lt_save_ifs"
10391     test -z "$ac_dir" && ac_dir=.
10392     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10393       lt_cv_path_LD="$ac_dir/$ac_prog"
10394       # Check to see if the program is GNU ld.  I'd rather use --version,
10395       # but apparently some GNU ld's only accept -v.
10396       # Break only if it was the GNU/non-GNU ld that we prefer.
10397       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10398       *GNU* | *'with BFD'*)
10399         test "$with_gnu_ld" != no && break
10400         ;;
10401       *)
10402         test "$with_gnu_ld" != yes && break
10403         ;;
10404       esac
10405     fi
10406   done
10407   IFS="$lt_save_ifs"
10408 else
10409   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10410 fi
10411 fi
10412
10413 LD="$lt_cv_path_LD"
10414 if test -n "$LD"; then
10415   echo "$as_me:$LINENO: result: $LD" >&5
10416 echo "${ECHO_T}$LD" >&6
10417 else
10418   echo "$as_me:$LINENO: result: no" >&5
10419 echo "${ECHO_T}no" >&6
10420 fi
10421 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10422 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10423    { (exit 1); exit 1; }; }
10424 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10425 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10426 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10430 case `$LD -v 2>&1 </dev/null` in
10431 *GNU* | *'with BFD'*)
10432   lt_cv_prog_gnu_ld=yes
10433   ;;
10434 *)
10435   lt_cv_prog_gnu_ld=no
10436   ;;
10437 esac
10438 fi
10439 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10440 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10441 with_gnu_ld=$lt_cv_prog_gnu_ld
10442
10443
10444
10445   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10446   # archiving commands below assume that GNU ld is being used.
10447   if test "$with_gnu_ld" = yes; then
10448     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10449     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'
10450
10451     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10452     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10453
10454     # If archive_cmds runs LD, not CC, wlarc should be empty
10455     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10456     #     investigate it a little bit more. (MM)
10457     wlarc='${wl}'
10458
10459     # ancient GNU ld didn't support --whole-archive et. al.
10460     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10461         grep 'no-whole-archive' > /dev/null; then
10462       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10463     else
10464       whole_archive_flag_spec_CXX=
10465     fi
10466   else
10467     with_gnu_ld=no
10468     wlarc=
10469
10470     # A generic and very simple default shared library creation
10471     # command for GNU C++ for the case where it uses the native
10472     # linker, instead of GNU ld.  If possible, this setting should
10473     # overridden to take advantage of the native linker features on
10474     # the platform it is being used on.
10475     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10476   fi
10477
10478   # Commands to make compiler produce verbose output that lists
10479   # what "hidden" libraries, object files and flags are used when
10480   # linking a shared library.
10481   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10482
10483 else
10484   GXX=no
10485   with_gnu_ld=no
10486   wlarc=
10487 fi
10488
10489 # PORTME: fill in a description of your system's C++ link characteristics
10490 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10491 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10492 ld_shlibs_CXX=yes
10493 case $host_os in
10494   aix3*)
10495     # FIXME: insert proper C++ library support
10496     ld_shlibs_CXX=no
10497     ;;
10498   aix4* | aix5*)
10499     if test "$host_cpu" = ia64; then
10500       # On IA64, the linker does run time linking by default, so we don't
10501       # have to do anything special.
10502       aix_use_runtimelinking=no
10503       exp_sym_flag='-Bexport'
10504       no_entry_flag=""
10505     else
10506       aix_use_runtimelinking=no
10507
10508       # Test if we are trying to use run time linking or normal
10509       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10510       # need to do runtime linking.
10511       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10512         for ld_flag in $LDFLAGS; do
10513           case $ld_flag in
10514           *-brtl*)
10515             aix_use_runtimelinking=yes
10516             break
10517             ;;
10518           esac
10519         done
10520       esac
10521
10522       exp_sym_flag='-bexport'
10523       no_entry_flag='-bnoentry'
10524     fi
10525
10526     # When large executables or shared objects are built, AIX ld can
10527     # have problems creating the table of contents.  If linking a library
10528     # or program results in "error TOC overflow" add -mminimal-toc to
10529     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10530     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10531
10532     archive_cmds_CXX=''
10533     hardcode_direct_CXX=yes
10534     hardcode_libdir_separator_CXX=':'
10535     link_all_deplibs_CXX=yes
10536
10537     if test "$GXX" = yes; then
10538       case $host_os in aix4.[012]|aix4.[012].*)
10539       # We only want to do this on AIX 4.2 and lower, the check
10540       # below for broken collect2 doesn't work under 4.3+
10541         collect2name=`${CC} -print-prog-name=collect2`
10542         if test -f "$collect2name" && \
10543            strings "$collect2name" | grep resolve_lib_name >/dev/null
10544         then
10545           # We have reworked collect2
10546           hardcode_direct_CXX=yes
10547         else
10548           # We have old collect2
10549           hardcode_direct_CXX=unsupported
10550           # It fails to find uninstalled libraries when the uninstalled
10551           # path is not listed in the libpath.  Setting hardcode_minus_L
10552           # to unsupported forces relinking
10553           hardcode_minus_L_CXX=yes
10554           hardcode_libdir_flag_spec_CXX='-L$libdir'
10555           hardcode_libdir_separator_CXX=
10556         fi
10557       esac
10558       shared_flag='-shared'
10559       if test "$aix_use_runtimelinking" = yes; then
10560         shared_flag="$shared_flag "'${wl}-G'
10561       fi
10562     else
10563       # not using gcc
10564       if test "$host_cpu" = ia64; then
10565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10566         # chokes on -Wl,-G. The following line is correct:
10567         shared_flag='-G'
10568       else
10569         if test "$aix_use_runtimelinking" = yes; then
10570           shared_flag='${wl}-G'
10571         else
10572           shared_flag='${wl}-bM:SRE'
10573         fi
10574       fi
10575     fi
10576
10577     # It seems that -bexpall does not export symbols beginning with
10578     # underscore (_), so it is better to generate a list of symbols to export.
10579     always_export_symbols_CXX=yes
10580     if test "$aix_use_runtimelinking" = yes; then
10581       # Warning - without using the other runtime loading flags (-brtl),
10582       # -berok will link without error, but may produce a broken library.
10583       allow_undefined_flag_CXX='-berok'
10584       # Determine the default libpath from the value encoded in an empty executable.
10585       cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591
10592 int
10593 main ()
10594 {
10595
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602   (eval $ac_link) 2>conftest.er1
10603   ac_status=$?
10604   grep -v '^ *+' conftest.er1 >conftest.err
10605   rm -f conftest.er1
10606   cat conftest.err >&5
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } &&
10609          { ac_try='test -z "$ac_cxx_werror_flag"
10610                          || test ! -s conftest.err'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; } &&
10616          { ac_try='test -s conftest$ac_exeext'
10617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618   (eval $ac_try) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622
10623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10624 }'`
10625 # Check for a 64-bit object if we didn't find anything.
10626 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; }
10627 }'`; fi
10628 else
10629   echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 fi
10633 rm -f conftest.err conftest.$ac_objext \
10634       conftest$ac_exeext conftest.$ac_ext
10635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10636
10637       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10638
10639       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"
10640      else
10641       if test "$host_cpu" = ia64; then
10642         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10643         allow_undefined_flag_CXX="-z nodefs"
10644         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"
10645       else
10646         # Determine the default libpath from the value encoded in an empty executable.
10647         cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653
10654 int
10655 main ()
10656 {
10657
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -z "$ac_cxx_werror_flag"
10672                          || test ! -s conftest.err'
10673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674   (eval $ac_try) 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); }; } &&
10678          { ac_try='test -s conftest$ac_exeext'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; }; then
10684
10685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10686 }'`
10687 # Check for a 64-bit object if we didn't find anything.
10688 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; }
10689 }'`; fi
10690 else
10691   echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10693
10694 fi
10695 rm -f conftest.err conftest.$ac_objext \
10696       conftest$ac_exeext conftest.$ac_ext
10697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10698
10699         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10700         # Warning - without using the other run time loading flags,
10701         # -berok will link without error, but may produce a broken library.
10702         no_undefined_flag_CXX=' ${wl}-bernotok'
10703         allow_undefined_flag_CXX=' ${wl}-berok'
10704         # -bexpall does not export symbols beginning with underscore (_)
10705         always_export_symbols_CXX=yes
10706         # Exported symbols can be pulled into shared objects from archives
10707         whole_archive_flag_spec_CXX=' '
10708         archive_cmds_need_lc_CXX=yes
10709         # This is similar to how AIX traditionally builds it's shared libraries.
10710         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'
10711       fi
10712     fi
10713     ;;
10714   chorus*)
10715     case $cc_basename in
10716       *)
10717         # FIXME: insert proper C++ library support
10718         ld_shlibs_CXX=no
10719         ;;
10720     esac
10721     ;;
10722
10723
10724   cygwin* | mingw* | pw32*)
10725     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10726     # as there is no search path for DLLs.
10727     hardcode_libdir_flag_spec_CXX='-L$libdir'
10728     allow_undefined_flag_CXX=unsupported
10729     always_export_symbols_CXX=no
10730     enable_shared_with_static_runtimes_CXX=yes
10731
10732     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10733       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'
10734       # If the export-symbols file already is a .def file (1st line
10735       # is EXPORTS), use it as is; otherwise, prepend...
10736       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10737         cp $export_symbols $output_objdir/$soname.def;
10738       else
10739         echo EXPORTS > $output_objdir/$soname.def;
10740         cat $export_symbols >> $output_objdir/$soname.def;
10741       fi~
10742       $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'
10743     else
10744       ld_shlibs_CXX=no
10745     fi
10746   ;;
10747       darwin* | rhapsody*)
10748         case "$host_os" in
10749         rhapsody* | darwin1.[012])
10750          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10751          ;;
10752        *) # Darwin 1.3 on
10753          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10754            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10755          else
10756            case ${MACOSX_DEPLOYMENT_TARGET} in
10757              10.[012])
10758                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10759                ;;
10760              10.*)
10761                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10762                ;;
10763            esac
10764          fi
10765          ;;
10766         esac
10767       archive_cmds_need_lc_CXX=no
10768       hardcode_direct_CXX=no
10769       hardcode_automatic_CXX=yes
10770       hardcode_shlibpath_var_CXX=unsupported
10771       whole_archive_flag_spec_CXX=''
10772       link_all_deplibs_CXX=yes
10773
10774     if test "$GXX" = yes ; then
10775       lt_int_apple_cc_single_mod=no
10776       output_verbose_link_cmd='echo'
10777       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10778        lt_int_apple_cc_single_mod=yes
10779       fi
10780       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10781        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10782       else
10783           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'
10784         fi
10785         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10786         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10787           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10788             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}'
10789           else
10790             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}'
10791           fi
10792             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}'
10793       else
10794       case $cc_basename in
10795         xlc*)
10796          output_verbose_link_cmd='echo'
10797           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'
10798           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10799           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10800           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}'
10801           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}'
10802           ;;
10803        *)
10804          ld_shlibs_CXX=no
10805           ;;
10806       esac
10807       fi
10808         ;;
10809
10810   dgux*)
10811     case $cc_basename in
10812       ec++*)
10813         # FIXME: insert proper C++ library support
10814         ld_shlibs_CXX=no
10815         ;;
10816       ghcx*)
10817         # Green Hills C++ Compiler
10818         # FIXME: insert proper C++ library support
10819         ld_shlibs_CXX=no
10820         ;;
10821       *)
10822         # FIXME: insert proper C++ library support
10823         ld_shlibs_CXX=no
10824         ;;
10825     esac
10826     ;;
10827   freebsd[12]*)
10828     # C++ shared libraries reported to be fairly broken before switch to ELF
10829     ld_shlibs_CXX=no
10830     ;;
10831   freebsd-elf*)
10832     archive_cmds_need_lc_CXX=no
10833     ;;
10834   freebsd* | kfreebsd*-gnu | dragonfly*)
10835     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10836     # conventions
10837     ld_shlibs_CXX=yes
10838     ;;
10839   gnu*)
10840     ;;
10841   hpux9*)
10842     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10843     hardcode_libdir_separator_CXX=:
10844     export_dynamic_flag_spec_CXX='${wl}-E'
10845     hardcode_direct_CXX=yes
10846     hardcode_minus_L_CXX=yes # Not in the search PATH,
10847                                 # but as the default
10848                                 # location of the library.
10849
10850     case $cc_basename in
10851     CC*)
10852       # FIXME: insert proper C++ library support
10853       ld_shlibs_CXX=no
10854       ;;
10855     aCC*)
10856       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'
10857       # Commands to make compiler produce verbose output that lists
10858       # what "hidden" libraries, object files and flags are used when
10859       # linking a shared library.
10860       #
10861       # There doesn't appear to be a way to prevent this compiler from
10862       # explicitly linking system object files so we need to strip them
10863       # from the output so that they don't get included in the library
10864       # dependencies.
10865       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'
10866       ;;
10867     *)
10868       if test "$GXX" = yes; then
10869         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'
10870       else
10871         # FIXME: insert proper C++ library support
10872         ld_shlibs_CXX=no
10873       fi
10874       ;;
10875     esac
10876     ;;
10877   hpux10*|hpux11*)
10878     if test $with_gnu_ld = no; then
10879       case "$host_cpu" in
10880       hppa*64*)
10881         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10882         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10883         hardcode_libdir_separator_CXX=:
10884         ;;
10885       ia64*)
10886         hardcode_libdir_flag_spec_CXX='-L$libdir'
10887         ;;
10888       *)
10889         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10890         hardcode_libdir_separator_CXX=:
10891         export_dynamic_flag_spec_CXX='${wl}-E'
10892         ;;
10893       esac
10894     fi
10895     case "$host_cpu" in
10896     hppa*64*)
10897       hardcode_direct_CXX=no
10898       hardcode_shlibpath_var_CXX=no
10899       ;;
10900     ia64*)
10901       hardcode_direct_CXX=no
10902       hardcode_shlibpath_var_CXX=no
10903       hardcode_minus_L_CXX=yes # Not in the search PATH,
10904                                               # but as the default
10905                                               # location of the library.
10906       ;;
10907     *)
10908       hardcode_direct_CXX=yes
10909       hardcode_minus_L_CXX=yes # Not in the search PATH,
10910                                               # but as the default
10911                                               # location of the library.
10912       ;;
10913     esac
10914
10915     case $cc_basename in
10916       CC*)
10917         # FIXME: insert proper C++ library support
10918         ld_shlibs_CXX=no
10919         ;;
10920       aCC*)
10921         case "$host_cpu" in
10922         hppa*64*|ia64*)
10923           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10924           ;;
10925         *)
10926           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10927           ;;
10928         esac
10929         # Commands to make compiler produce verbose output that lists
10930         # what "hidden" libraries, object files and flags are used when
10931         # linking a shared library.
10932         #
10933         # There doesn't appear to be a way to prevent this compiler from
10934         # explicitly linking system object files so we need to strip them
10935         # from the output so that they don't get included in the library
10936         # dependencies.
10937         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'
10938         ;;
10939       *)
10940         if test "$GXX" = yes; then
10941           if test $with_gnu_ld = no; then
10942             case "$host_cpu" in
10943             ia64*|hppa*64*)
10944               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10945               ;;
10946             *)
10947               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'
10948               ;;
10949             esac
10950           fi
10951         else
10952           # FIXME: insert proper C++ library support
10953           ld_shlibs_CXX=no
10954         fi
10955         ;;
10956     esac
10957     ;;
10958   irix5* | irix6*)
10959     case $cc_basename in
10960       CC*)
10961         # SGI C++
10962         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'
10963
10964         # Archives containing C++ object files must be created using
10965         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10966         # necessary to make sure instantiated templates are included
10967         # in the archive.
10968         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10969         ;;
10970       *)
10971         if test "$GXX" = yes; then
10972           if test "$with_gnu_ld" = no; then
10973             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'
10974           else
10975             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'
10976           fi
10977         fi
10978         link_all_deplibs_CXX=yes
10979         ;;
10980     esac
10981     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10982     hardcode_libdir_separator_CXX=:
10983     ;;
10984   linux*)
10985     case $cc_basename in
10986       KCC*)
10987         # Kuck and Associates, Inc. (KAI) C++ Compiler
10988
10989         # KCC will only create a shared library if the output file
10990         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10991         # to its proper name (with version) after linking.
10992         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'
10993         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'
10994         # Commands to make compiler produce verbose output that lists
10995         # what "hidden" libraries, object files and flags are used when
10996         # linking a shared library.
10997         #
10998         # There doesn't appear to be a way to prevent this compiler from
10999         # explicitly linking system object files so we need to strip them
11000         # from the output so that they don't get included in the library
11001         # dependencies.
11002         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'
11003
11004         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11005         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11006
11007         # Archives containing C++ object files must be created using
11008         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11009         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11010         ;;
11011       icpc*)
11012         # Intel C++
11013         with_gnu_ld=yes
11014         # version 8.0 and above of icpc choke on multiply defined symbols
11015         # if we add $predep_objects and $postdep_objects, however 7.1 and
11016         # earlier do not add the objects themselves.
11017         case `$CC -V 2>&1` in
11018         *"Version 7."*)
11019           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11020           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'
11021           ;;
11022         *)  # Version 8.0 or newer
11023           tmp_idyn=
11024           case $host_cpu in
11025             ia64*) tmp_idyn=' -i_dynamic';;
11026           esac
11027           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028           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'
11029           ;;
11030         esac
11031         archive_cmds_need_lc_CXX=no
11032         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11033         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11034         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11035         ;;
11036       pgCC*)
11037         # Portland Group C++ compiler
11038         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11039         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'
11040
11041         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11042         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11043         whole_archive_flag_spec_CXX=''
11044         ;;
11045       cxx*)
11046         # Compaq C++
11047         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048         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'
11049
11050         runpath_var=LD_RUN_PATH
11051         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11052         hardcode_libdir_separator_CXX=:
11053
11054         # Commands to make compiler produce verbose output that lists
11055         # what "hidden" libraries, object files and flags are used when
11056         # linking a shared library.
11057         #
11058         # There doesn't appear to be a way to prevent this compiler from
11059         # explicitly linking system object files so we need to strip them
11060         # from the output so that they don't get included in the library
11061         # dependencies.
11062         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'
11063         ;;
11064     esac
11065     ;;
11066   lynxos*)
11067     # FIXME: insert proper C++ library support
11068     ld_shlibs_CXX=no
11069     ;;
11070   m88k*)
11071     # FIXME: insert proper C++ library support
11072     ld_shlibs_CXX=no
11073     ;;
11074   mvs*)
11075     case $cc_basename in
11076       cxx*)
11077         # FIXME: insert proper C++ library support
11078         ld_shlibs_CXX=no
11079         ;;
11080       *)
11081         # FIXME: insert proper C++ library support
11082         ld_shlibs_CXX=no
11083         ;;
11084     esac
11085     ;;
11086   netbsd*)
11087     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11088       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11089       wlarc=
11090       hardcode_libdir_flag_spec_CXX='-R$libdir'
11091       hardcode_direct_CXX=yes
11092       hardcode_shlibpath_var_CXX=no
11093     fi
11094     # Workaround some broken pre-1.5 toolchains
11095     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11096     ;;
11097   openbsd2*)
11098     # C++ shared libraries are fairly broken
11099     ld_shlibs_CXX=no
11100     ;;
11101   openbsd*)
11102     hardcode_direct_CXX=yes
11103     hardcode_shlibpath_var_CXX=no
11104     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11105     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11106     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11107       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11108       export_dynamic_flag_spec_CXX='${wl}-E'
11109       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11110     fi
11111     output_verbose_link_cmd='echo'
11112     ;;
11113   osf3*)
11114     case $cc_basename in
11115       KCC*)
11116         # Kuck and Associates, Inc. (KAI) C++ Compiler
11117
11118         # KCC will only create a shared library if the output file
11119         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11120         # to its proper name (with version) after linking.
11121         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'
11122
11123         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11124         hardcode_libdir_separator_CXX=:
11125
11126         # Archives containing C++ object files must be created using
11127         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11128         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11129
11130         ;;
11131       RCC*)
11132         # Rational C++ 2.4.1
11133         # FIXME: insert proper C++ library support
11134         ld_shlibs_CXX=no
11135         ;;
11136       cxx*)
11137         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11138         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'
11139
11140         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11141         hardcode_libdir_separator_CXX=:
11142
11143         # Commands to make compiler produce verbose output that lists
11144         # what "hidden" libraries, object files and flags are used when
11145         # linking a shared library.
11146         #
11147         # There doesn't appear to be a way to prevent this compiler from
11148         # explicitly linking system object files so we need to strip them
11149         # from the output so that they don't get included in the library
11150         # dependencies.
11151         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'
11152         ;;
11153       *)
11154         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11155           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11156           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'
11157
11158           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11159           hardcode_libdir_separator_CXX=:
11160
11161           # Commands to make compiler produce verbose output that lists
11162           # what "hidden" libraries, object files and flags are used when
11163           # linking a shared library.
11164           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11165
11166         else
11167           # FIXME: insert proper C++ library support
11168           ld_shlibs_CXX=no
11169         fi
11170         ;;
11171     esac
11172     ;;
11173   osf4* | osf5*)
11174     case $cc_basename in
11175       KCC*)
11176         # Kuck and Associates, Inc. (KAI) C++ Compiler
11177
11178         # KCC will only create a shared library if the output file
11179         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11180         # to its proper name (with version) after linking.
11181         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'
11182
11183         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11184         hardcode_libdir_separator_CXX=:
11185
11186         # Archives containing C++ object files must be created using
11187         # the KAI C++ compiler.
11188         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11189         ;;
11190       RCC*)
11191         # Rational C++ 2.4.1
11192         # FIXME: insert proper C++ library support
11193         ld_shlibs_CXX=no
11194         ;;
11195       cxx*)
11196         allow_undefined_flag_CXX=' -expect_unresolved \*'
11197         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'
11198         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11199           echo "-hidden">> $lib.exp~
11200           $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~
11201           $rm $lib.exp'
11202
11203         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11204         hardcode_libdir_separator_CXX=:
11205
11206         # Commands to make compiler produce verbose output that lists
11207         # what "hidden" libraries, object files and flags are used when
11208         # linking a shared library.
11209         #
11210         # There doesn't appear to be a way to prevent this compiler from
11211         # explicitly linking system object files so we need to strip them
11212         # from the output so that they don't get included in the library
11213         # dependencies.
11214         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'
11215         ;;
11216       *)
11217         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11218           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11219          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'
11220
11221           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11222           hardcode_libdir_separator_CXX=:
11223
11224           # Commands to make compiler produce verbose output that lists
11225           # what "hidden" libraries, object files and flags are used when
11226           # linking a shared library.
11227           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11228
11229         else
11230           # FIXME: insert proper C++ library support
11231           ld_shlibs_CXX=no
11232         fi
11233         ;;
11234     esac
11235     ;;
11236   psos*)
11237     # FIXME: insert proper C++ library support
11238     ld_shlibs_CXX=no
11239     ;;
11240   sco*)
11241     archive_cmds_need_lc_CXX=no
11242     case $cc_basename in
11243       CC*)
11244         # FIXME: insert proper C++ library support
11245         ld_shlibs_CXX=no
11246         ;;
11247       *)
11248         # FIXME: insert proper C++ library support
11249         ld_shlibs_CXX=no
11250         ;;
11251     esac
11252     ;;
11253   sunos4*)
11254     case $cc_basename in
11255       CC*)
11256         # Sun C++ 4.x
11257         # FIXME: insert proper C++ library support
11258         ld_shlibs_CXX=no
11259         ;;
11260       lcc*)
11261         # Lucid
11262         # FIXME: insert proper C++ library support
11263         ld_shlibs_CXX=no
11264         ;;
11265       *)
11266         # FIXME: insert proper C++ library support
11267         ld_shlibs_CXX=no
11268         ;;
11269     esac
11270     ;;
11271   solaris*)
11272     case $cc_basename in
11273       CC*)
11274         # Sun C++ 4.2, 5.x and Centerline C++
11275         no_undefined_flag_CXX=' -zdefs'
11276         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11277         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278         $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'
11279
11280         hardcode_libdir_flag_spec_CXX='-R$libdir'
11281         hardcode_shlibpath_var_CXX=no
11282         case $host_os in
11283           solaris2.[0-5] | solaris2.[0-5].*) ;;
11284           *)
11285             # The C++ compiler is used as linker so we must use $wl
11286             # flag to pass the commands to the underlying system
11287             # linker. We must also pass each convience library through
11288             # to the system linker between allextract/defaultextract.
11289             # The C++ compiler will combine linker options so we
11290             # cannot just pass the convience library names through
11291             # without $wl.
11292             # Supported since Solaris 2.6 (maybe 2.5.1?)
11293             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'
11294             ;;
11295         esac
11296         link_all_deplibs_CXX=yes
11297
11298         # Commands to make compiler produce verbose output that lists
11299         # what "hidden" libraries, object files and flags are used when
11300         # linking a shared library.
11301         #
11302         # There doesn't appear to be a way to prevent this compiler from
11303         # explicitly linking system object files so we need to strip them
11304         # from the output so that they don't get included in the library
11305         # dependencies.
11306         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'
11307
11308         # Archives containing C++ object files must be created using
11309         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11310         # necessary to make sure instantiated templates are included
11311         # in the archive.
11312         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11313         ;;
11314       gcx*)
11315         # Green Hills C++ Compiler
11316         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11317
11318         # The C++ compiler must be used to create the archive.
11319         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11320         ;;
11321       *)
11322         # GNU C++ compiler with Solaris linker
11323         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11324           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11325           if $CC --version | grep -v '^2\.7' > /dev/null; then
11326             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11327             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11328                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11329
11330             # Commands to make compiler produce verbose output that lists
11331             # what "hidden" libraries, object files and flags are used when
11332             # linking a shared library.
11333             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11334           else
11335             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11336             # platform.
11337             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11338             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11339                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11340
11341             # Commands to make compiler produce verbose output that lists
11342             # what "hidden" libraries, object files and flags are used when
11343             # linking a shared library.
11344             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11345           fi
11346
11347           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11348         fi
11349         ;;
11350     esac
11351     ;;
11352   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11353     archive_cmds_need_lc_CXX=no
11354     ;;
11355   tandem*)
11356     case $cc_basename in
11357       NCC*)
11358         # NonStop-UX NCC 3.20
11359         # FIXME: insert proper C++ library support
11360         ld_shlibs_CXX=no
11361         ;;
11362       *)
11363         # FIXME: insert proper C++ library support
11364         ld_shlibs_CXX=no
11365         ;;
11366     esac
11367     ;;
11368   vxworks*)
11369     # FIXME: insert proper C++ library support
11370     ld_shlibs_CXX=no
11371     ;;
11372   *)
11373     # FIXME: insert proper C++ library support
11374     ld_shlibs_CXX=no
11375     ;;
11376 esac
11377 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11378 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11379 test "$ld_shlibs_CXX" = no && can_build_shared=no
11380
11381 GCC_CXX="$GXX"
11382 LD_CXX="$LD"
11383
11384 ## CAVEAT EMPTOR:
11385 ## There is no encapsulation within the following macros, do not change
11386 ## the running order or otherwise move them around unless you know exactly
11387 ## what you are doing...
11388
11389 cat > conftest.$ac_ext <<EOF
11390 class Foo
11391 {
11392 public:
11393   Foo (void) { a = 0; }
11394 private:
11395   int a;
11396 };
11397 EOF
11398
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400   (eval $ac_compile) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; then
11404   # Parse the compiler output and extract the necessary
11405   # objects, libraries and library flags.
11406
11407   # Sentinel used to keep track of whether or not we are before
11408   # the conftest object file.
11409   pre_test_object_deps_done=no
11410
11411   # The `*' in the case matches for architectures that use `case' in
11412   # $output_verbose_cmd can trigger glob expansion during the loop
11413   # eval without this substitution.
11414   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11415
11416   for p in `eval $output_verbose_link_cmd`; do
11417     case $p in
11418
11419     -L* | -R* | -l*)
11420        # Some compilers place space between "-{L,R}" and the path.
11421        # Remove the space.
11422        if test $p = "-L" \
11423           || test $p = "-R"; then
11424          prev=$p
11425          continue
11426        else
11427          prev=
11428        fi
11429
11430        if test "$pre_test_object_deps_done" = no; then
11431          case $p in
11432          -L* | -R*)
11433            # Internal compiler library paths should come after those
11434            # provided the user.  The postdeps already come after the
11435            # user supplied libs so there is no need to process them.
11436            if test -z "$compiler_lib_search_path_CXX"; then
11437              compiler_lib_search_path_CXX="${prev}${p}"
11438            else
11439              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11440            fi
11441            ;;
11442          # The "-l" case would never come before the object being
11443          # linked, so don't bother handling this case.
11444          esac
11445        else
11446          if test -z "$postdeps_CXX"; then
11447            postdeps_CXX="${prev}${p}"
11448          else
11449            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11450          fi
11451        fi
11452        ;;
11453
11454     *.$objext)
11455        # This assumes that the test object file only shows up
11456        # once in the compiler output.
11457        if test "$p" = "conftest.$objext"; then
11458          pre_test_object_deps_done=yes
11459          continue
11460        fi
11461
11462        if test "$pre_test_object_deps_done" = no; then
11463          if test -z "$predep_objects_CXX"; then
11464            predep_objects_CXX="$p"
11465          else
11466            predep_objects_CXX="$predep_objects_CXX $p"
11467          fi
11468        else
11469          if test -z "$postdep_objects_CXX"; then
11470            postdep_objects_CXX="$p"
11471          else
11472            postdep_objects_CXX="$postdep_objects_CXX $p"
11473          fi
11474        fi
11475        ;;
11476
11477     *) ;; # Ignore the rest.
11478
11479     esac
11480   done
11481
11482   # Clean up.
11483   rm -f a.out a.exe
11484 else
11485   echo "libtool.m4: error: problem compiling CXX test program"
11486 fi
11487
11488 $rm -f confest.$objext
11489
11490 case " $postdeps_CXX " in
11491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11492 esac
11493
11494 lt_prog_compiler_wl_CXX=
11495 lt_prog_compiler_pic_CXX=
11496 lt_prog_compiler_static_CXX=
11497
11498 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11500
11501   # C++ specific cases for pic, static, wl, etc.
11502   if test "$GXX" = yes; then
11503     lt_prog_compiler_wl_CXX='-Wl,'
11504     lt_prog_compiler_static_CXX='-static'
11505
11506     case $host_os in
11507     aix*)
11508       # All AIX code is PIC.
11509       if test "$host_cpu" = ia64; then
11510         # AIX 5 now supports IA64 processor
11511         lt_prog_compiler_static_CXX='-Bstatic'
11512       fi
11513       ;;
11514     amigaos*)
11515       # FIXME: we need at least 68020 code to build shared libraries, but
11516       # adding the `-m68020' flag to GCC prevents building anything better,
11517       # like `-m68040'.
11518       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11519       ;;
11520     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11521       # PIC is the default for these OSes.
11522       ;;
11523     mingw* | os2* | pw32*)
11524       # This hack is so that the source file can tell whether it is being
11525       # built for inclusion in a dll (and should export symbols for example).
11526       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11527       ;;
11528     darwin* | rhapsody*)
11529       # PIC is the default on this platform
11530       # Common symbols not allowed in MH_DYLIB files
11531       lt_prog_compiler_pic_CXX='-fno-common'
11532       ;;
11533     *djgpp*)
11534       # DJGPP does not support shared libraries at all
11535       lt_prog_compiler_pic_CXX=
11536       ;;
11537     sysv4*MP*)
11538       if test -d /usr/nec; then
11539         lt_prog_compiler_pic_CXX=-Kconform_pic
11540       fi
11541       ;;
11542     hpux*)
11543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11544       # not for PA HP-UX.
11545       case "$host_cpu" in
11546       hppa*64*|ia64*)
11547         ;;
11548       *)
11549         lt_prog_compiler_pic_CXX='-fPIC'
11550         ;;
11551       esac
11552       ;;
11553     *)
11554       lt_prog_compiler_pic_CXX='-fPIC'
11555       ;;
11556     esac
11557   else
11558     case $host_os in
11559       aix4* | aix5*)
11560         # All AIX code is PIC.
11561         if test "$host_cpu" = ia64; then
11562           # AIX 5 now supports IA64 processor
11563           lt_prog_compiler_static_CXX='-Bstatic'
11564         else
11565           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11566         fi
11567         ;;
11568       chorus*)
11569         case $cc_basename in
11570         cxch68*)
11571           # Green Hills C++ Compiler
11572           # _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"
11573           ;;
11574         esac
11575         ;;
11576        darwin*)
11577          # PIC is the default on this platform
11578          # Common symbols not allowed in MH_DYLIB files
11579          case $cc_basename in
11580            xlc*)
11581            lt_prog_compiler_pic_CXX='-qnocommon'
11582            lt_prog_compiler_wl_CXX='-Wl,'
11583            ;;
11584          esac
11585        ;;
11586       dgux*)
11587         case $cc_basename in
11588           ec++*)
11589             lt_prog_compiler_pic_CXX='-KPIC'
11590             ;;
11591           ghcx*)
11592             # Green Hills C++ Compiler
11593             lt_prog_compiler_pic_CXX='-pic'
11594             ;;
11595           *)
11596             ;;
11597         esac
11598         ;;
11599       freebsd* | kfreebsd*-gnu | dragonfly*)
11600         # FreeBSD uses GNU C++
11601         ;;
11602       hpux9* | hpux10* | hpux11*)
11603         case $cc_basename in
11604           CC*)
11605             lt_prog_compiler_wl_CXX='-Wl,'
11606             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11607             if test "$host_cpu" != ia64; then
11608               lt_prog_compiler_pic_CXX='+Z'
11609             fi
11610             ;;
11611           aCC*)
11612             lt_prog_compiler_wl_CXX='-Wl,'
11613             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11614             case "$host_cpu" in
11615             hppa*64*|ia64*)
11616               # +Z the default
11617               ;;
11618             *)
11619               lt_prog_compiler_pic_CXX='+Z'
11620               ;;
11621             esac
11622             ;;
11623           *)
11624             ;;
11625         esac
11626         ;;
11627       irix5* | irix6* | nonstopux*)
11628         case $cc_basename in
11629           CC*)
11630             lt_prog_compiler_wl_CXX='-Wl,'
11631             lt_prog_compiler_static_CXX='-non_shared'
11632             # CC pic flag -KPIC is the default.
11633             ;;
11634           *)
11635             ;;
11636         esac
11637         ;;
11638       linux*)
11639         case $cc_basename in
11640           KCC*)
11641             # KAI C++ Compiler
11642             lt_prog_compiler_wl_CXX='--backend -Wl,'
11643             lt_prog_compiler_pic_CXX='-fPIC'
11644             ;;
11645           icpc* | ecpc*)
11646             # Intel C++
11647             lt_prog_compiler_wl_CXX='-Wl,'
11648             lt_prog_compiler_pic_CXX='-KPIC'
11649             lt_prog_compiler_static_CXX='-static'
11650             ;;
11651           pgCC*)
11652             # Portland Group C++ compiler.
11653             lt_prog_compiler_wl_CXX='-Wl,'
11654             lt_prog_compiler_pic_CXX='-fpic'
11655             lt_prog_compiler_static_CXX='-static'
11656             ;;
11657           cxx*)
11658             # Compaq C++
11659             # Make sure the PIC flag is empty.  It appears that all Alpha
11660             # Linux and Compaq Tru64 Unix objects are PIC.
11661             lt_prog_compiler_pic_CXX=
11662             lt_prog_compiler_static_CXX='-non_shared'
11663             ;;
11664           *)
11665             ;;
11666         esac
11667         ;;
11668       lynxos*)
11669         ;;
11670       m88k*)
11671         ;;
11672       mvs*)
11673         case $cc_basename in
11674           cxx*)
11675             lt_prog_compiler_pic_CXX='-W c,exportall'
11676             ;;
11677           *)
11678             ;;
11679         esac
11680         ;;
11681       netbsd*)
11682         ;;
11683       osf3* | osf4* | osf5*)
11684         case $cc_basename in
11685           KCC*)
11686             lt_prog_compiler_wl_CXX='--backend -Wl,'
11687             ;;
11688           RCC*)
11689             # Rational C++ 2.4.1
11690             lt_prog_compiler_pic_CXX='-pic'
11691             ;;
11692           cxx*)
11693             # Digital/Compaq C++
11694             lt_prog_compiler_wl_CXX='-Wl,'
11695             # Make sure the PIC flag is empty.  It appears that all Alpha
11696             # Linux and Compaq Tru64 Unix objects are PIC.
11697             lt_prog_compiler_pic_CXX=
11698             lt_prog_compiler_static_CXX='-non_shared'
11699             ;;
11700           *)
11701             ;;
11702         esac
11703         ;;
11704       psos*)
11705         ;;
11706       sco*)
11707         case $cc_basename in
11708           CC*)
11709             lt_prog_compiler_pic_CXX='-fPIC'
11710             ;;
11711           *)
11712             ;;
11713         esac
11714         ;;
11715       solaris*)
11716         case $cc_basename in
11717           CC*)
11718             # Sun C++ 4.2, 5.x and Centerline C++
11719             lt_prog_compiler_pic_CXX='-KPIC'
11720             lt_prog_compiler_static_CXX='-Bstatic'
11721             lt_prog_compiler_wl_CXX='-Qoption ld '
11722             ;;
11723           gcx*)
11724             # Green Hills C++ Compiler
11725             lt_prog_compiler_pic_CXX='-PIC'
11726             ;;
11727           *)
11728             ;;
11729         esac
11730         ;;
11731       sunos4*)
11732         case $cc_basename in
11733           CC*)
11734             # Sun C++ 4.x
11735             lt_prog_compiler_pic_CXX='-pic'
11736             lt_prog_compiler_static_CXX='-Bstatic'
11737             ;;
11738           lcc*)
11739             # Lucid
11740             lt_prog_compiler_pic_CXX='-pic'
11741             ;;
11742           *)
11743             ;;
11744         esac
11745         ;;
11746       tandem*)
11747         case $cc_basename in
11748           NCC*)
11749             # NonStop-UX NCC 3.20
11750             lt_prog_compiler_pic_CXX='-KPIC'
11751             ;;
11752           *)
11753             ;;
11754         esac
11755         ;;
11756       unixware*)
11757         ;;
11758       vxworks*)
11759         ;;
11760       *)
11761         lt_prog_compiler_can_build_shared_CXX=no
11762         ;;
11763     esac
11764   fi
11765
11766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11767 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11768
11769 #
11770 # Check to make sure the PIC flag actually works.
11771 #
11772 if test -n "$lt_prog_compiler_pic_CXX"; then
11773
11774 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11776 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11777   echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779   lt_prog_compiler_pic_works_CXX=no
11780   ac_outfile=conftest.$ac_objext
11781    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11782    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11783    # Insert the option either (1) after the last *FLAGS variable, or
11784    # (2) before a word containing "conftest.", or (3) at the end.
11785    # Note that $ac_compile itself does not contain backslashes and begins
11786    # with a dollar sign (not a hyphen), so the echo should work correctly.
11787    # The option is referenced via a variable to avoid confusing sed.
11788    lt_compile=`echo "$ac_compile" | $SED \
11789    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11790    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11791    -e 's:$: $lt_compiler_flag:'`
11792    (eval echo "\"\$as_me:11792: $lt_compile\"" >&5)
11793    (eval "$lt_compile" 2>conftest.err)
11794    ac_status=$?
11795    cat conftest.err >&5
11796    echo "$as_me:11796: \$? = $ac_status" >&5
11797    if (exit $ac_status) && test -s "$ac_outfile"; then
11798      # The compiler can only warn and ignore the option if not recognized
11799      # So say no if there are warnings other than the usual output.
11800      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11801      $SED '/^$/d' conftest.err >conftest.er2
11802      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11803        lt_prog_compiler_pic_works_CXX=yes
11804      fi
11805    fi
11806    $rm conftest*
11807
11808 fi
11809 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11810 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11811
11812 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11813     case $lt_prog_compiler_pic_CXX in
11814      "" | " "*) ;;
11815      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11816      esac
11817 else
11818     lt_prog_compiler_pic_CXX=
11819      lt_prog_compiler_can_build_shared_CXX=no
11820 fi
11821
11822 fi
11823 case "$host_os" in
11824   # For platforms which do not support PIC, -DPIC is meaningless:
11825   *djgpp*)
11826     lt_prog_compiler_pic_CXX=
11827     ;;
11828   *)
11829     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11830     ;;
11831 esac
11832
11833 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11834 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11835 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   lt_cv_prog_compiler_c_o_CXX=no
11839    $rm -r conftest 2>/dev/null
11840    mkdir conftest
11841    cd conftest
11842    mkdir out
11843    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11844
11845    lt_compiler_flag="-o out/conftest2.$ac_objext"
11846    # Insert the option either (1) after the last *FLAGS variable, or
11847    # (2) before a word containing "conftest.", or (3) at the end.
11848    # Note that $ac_compile itself does not contain backslashes and begins
11849    # with a dollar sign (not a hyphen), so the echo should work correctly.
11850    lt_compile=`echo "$ac_compile" | $SED \
11851    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11853    -e 's:$: $lt_compiler_flag:'`
11854    (eval echo "\"\$as_me:11854: $lt_compile\"" >&5)
11855    (eval "$lt_compile" 2>out/conftest.err)
11856    ac_status=$?
11857    cat out/conftest.err >&5
11858    echo "$as_me:11858: \$? = $ac_status" >&5
11859    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11860    then
11861      # The compiler can only warn and ignore the option if not recognized
11862      # So say no if there are warnings
11863      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11864      $SED '/^$/d' out/conftest.err >out/conftest.er2
11865      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11866        lt_cv_prog_compiler_c_o_CXX=yes
11867      fi
11868    fi
11869    chmod u+w .
11870    $rm conftest*
11871    # SGI C++ compiler will create directory out/ii_files/ for
11872    # template instantiation
11873    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11874    $rm out/* && rmdir out
11875    cd ..
11876    rmdir conftest
11877    $rm conftest*
11878
11879 fi
11880 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11881 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11882
11883
11884 hard_links="nottested"
11885 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11886   # do not overwrite the value of need_locks provided by the user
11887   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11888 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11889   hard_links=yes
11890   $rm conftest*
11891   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11892   touch conftest.a
11893   ln conftest.a conftest.b 2>&5 || hard_links=no
11894   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11895   echo "$as_me:$LINENO: result: $hard_links" >&5
11896 echo "${ECHO_T}$hard_links" >&6
11897   if test "$hard_links" = no; then
11898     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11899 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11900     need_locks=warn
11901   fi
11902 else
11903   need_locks=no
11904 fi
11905
11906 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11907 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11908
11909   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11910   case $host_os in
11911   aix4* | aix5*)
11912     # If we're using GNU nm, then we don't want the "-C" option.
11913     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11914     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11915       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'
11916     else
11917       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'
11918     fi
11919     ;;
11920   pw32*)
11921     export_symbols_cmds_CXX="$ltdll_cmds"
11922   ;;
11923   cygwin* | mingw*)
11924     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'
11925   ;;
11926   *)
11927     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11928   ;;
11929   esac
11930
11931 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11932 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11933 test "$ld_shlibs_CXX" = no && can_build_shared=no
11934
11935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11936 if test "$GCC" = yes; then
11937   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11938 fi
11939
11940 #
11941 # Do we need to explicitly link libc?
11942 #
11943 case "x$archive_cmds_need_lc_CXX" in
11944 x|xyes)
11945   # Assume -lc should be added
11946   archive_cmds_need_lc_CXX=yes
11947
11948   if test "$enable_shared" = yes && test "$GCC" = yes; then
11949     case $archive_cmds_CXX in
11950     *'~'*)
11951       # FIXME: we may have to deal with multi-command sequences.
11952       ;;
11953     '$CC '*)
11954       # Test whether the compiler implicitly links with -lc since on some
11955       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11956       # to ld, don't add -lc before -lgcc.
11957       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11958 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11959       $rm conftest*
11960       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11961
11962       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963   (eval $ac_compile) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } 2>conftest.err; then
11967         soname=conftest
11968         lib=conftest
11969         libobjs=conftest.$ac_objext
11970         deplibs=
11971         wl=$lt_prog_compiler_wl_CXX
11972         compiler_flags=-v
11973         linker_flags=-v
11974         verstring=
11975         output_objdir=.
11976         libname=conftest
11977         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11978         allow_undefined_flag_CXX=
11979         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11980   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }
11984         then
11985           archive_cmds_need_lc_CXX=no
11986         else
11987           archive_cmds_need_lc_CXX=yes
11988         fi
11989         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11990       else
11991         cat conftest.err 1>&5
11992       fi
11993       $rm conftest*
11994       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11995 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11996       ;;
11997     esac
11998   fi
11999   ;;
12000 esac
12001
12002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12004 library_names_spec=
12005 libname_spec='lib$name'
12006 soname_spec=
12007 shrext_cmds=".so"
12008 postinstall_cmds=
12009 postuninstall_cmds=
12010 finish_cmds=
12011 finish_eval=
12012 shlibpath_var=
12013 shlibpath_overrides_runpath=unknown
12014 version_type=none
12015 dynamic_linker="$host_os ld.so"
12016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12017 if test "$GCC" = yes; then
12018   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12019   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12020     # if the path contains ";" then we assume it to be the separator
12021     # otherwise default to the standard path separator (i.e. ":") - it is
12022     # assumed that no part of a normal pathname contains ";" but that should
12023     # okay in the real world where ";" in dirpaths is itself problematic.
12024     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12025   else
12026     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12027   fi
12028 else
12029   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12030 fi
12031 need_lib_prefix=unknown
12032 hardcode_into_libs=no
12033
12034 # when you set need_version to no, make sure it does not cause -set_version
12035 # flags to be left without arguments
12036 need_version=unknown
12037
12038 case $host_os in
12039 aix3*)
12040   version_type=linux
12041   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12042   shlibpath_var=LIBPATH
12043
12044   # AIX 3 has no versioning support, so we append a major version to the name.
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   ;;
12047
12048 aix4* | aix5*)
12049   version_type=linux
12050   need_lib_prefix=no
12051   need_version=no
12052   hardcode_into_libs=yes
12053   if test "$host_cpu" = ia64; then
12054     # AIX 5 supports IA64
12055     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12056     shlibpath_var=LD_LIBRARY_PATH
12057   else
12058     # With GCC up to 2.95.x, collect2 would create an import file
12059     # for dependence libraries.  The import file would start with
12060     # the line `#! .'.  This would cause the generated library to
12061     # depend on `.', always an invalid library.  This was fixed in
12062     # development snapshots of GCC prior to 3.0.
12063     case $host_os in
12064       aix4 | aix4.[01] | aix4.[01].*)
12065       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12066            echo ' yes '
12067            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12068         :
12069       else
12070         can_build_shared=no
12071       fi
12072       ;;
12073     esac
12074     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12075     # soname into executable. Probably we can add versioning support to
12076     # collect2, so additional links can be useful in future.
12077     if test "$aix_use_runtimelinking" = yes; then
12078       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12079       # instead of lib<name>.a to let people know that these are not
12080       # typical AIX shared libraries.
12081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082     else
12083       # We preserve .a as extension for shared libraries through AIX4.2
12084       # and later when we are not doing run time linking.
12085       library_names_spec='${libname}${release}.a $libname.a'
12086       soname_spec='${libname}${release}${shared_ext}$major'
12087     fi
12088     shlibpath_var=LIBPATH
12089   fi
12090   ;;
12091
12092 amigaos*)
12093   library_names_spec='$libname.ixlibrary $libname.a'
12094   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12095   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'
12096   ;;
12097
12098 beos*)
12099   library_names_spec='${libname}${shared_ext}'
12100   dynamic_linker="$host_os ld.so"
12101   shlibpath_var=LIBRARY_PATH
12102   ;;
12103
12104 bsdi[45]*)
12105   version_type=linux
12106   need_version=no
12107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108   soname_spec='${libname}${release}${shared_ext}$major'
12109   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12110   shlibpath_var=LD_LIBRARY_PATH
12111   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12112   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12113   # the default ld.so.conf also contains /usr/contrib/lib and
12114   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12115   # libtool to hard-code these into programs
12116   ;;
12117
12118 cygwin* | mingw* | pw32*)
12119   version_type=windows
12120   shrext_cmds=".dll"
12121   need_version=no
12122   need_lib_prefix=no
12123
12124   case $GCC,$host_os in
12125   yes,cygwin* | yes,mingw* | yes,pw32*)
12126     library_names_spec='$libname.dll.a'
12127     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12128     postinstall_cmds='base_file=`basename \${file}`~
12129       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12130       dldir=$destdir/`dirname \$dlpath`~
12131       test -d \$dldir || mkdir -p \$dldir~
12132       $install_prog $dir/$dlname \$dldir/$dlname'
12133     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12134       dlpath=$dir/\$dldll~
12135        $rm \$dlpath'
12136     shlibpath_overrides_runpath=yes
12137
12138     case $host_os in
12139     cygwin*)
12140       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12141       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12142       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12143       ;;
12144     mingw*)
12145       # MinGW DLLs use traditional 'lib' prefix
12146       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12147       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12148       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12149         # It is most probably a Windows format PATH printed by
12150         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12151         # path with ; separators, and with drive letters. We can handle the
12152         # drive letters (cygwin fileutils understands them), so leave them,
12153         # especially as we might pass files found there to a mingw objdump,
12154         # which wouldn't understand a cygwinified path. Ahh.
12155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12156       else
12157         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12158       fi
12159       ;;
12160     pw32*)
12161       # pw32 DLLs use 'pw' prefix rather than 'lib'
12162       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163       ;;
12164     esac
12165     ;;
12166
12167   *)
12168     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12169     ;;
12170   esac
12171   dynamic_linker='Win32 ld.exe'
12172   # FIXME: first we should search . and the directory the executable is in
12173   shlibpath_var=PATH
12174   ;;
12175
12176 darwin* | rhapsody*)
12177   dynamic_linker="$host_os dyld"
12178   version_type=darwin
12179   need_lib_prefix=no
12180   need_version=no
12181   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12182   soname_spec='${libname}${release}${major}$shared_ext'
12183   shlibpath_overrides_runpath=yes
12184   shlibpath_var=DYLD_LIBRARY_PATH
12185   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12186   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12187   if test "$GCC" = yes; then
12188     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"`
12189   else
12190     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12191   fi
12192   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12193   ;;
12194
12195 dgux*)
12196   version_type=linux
12197   need_lib_prefix=no
12198   need_version=no
12199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12200   soname_spec='${libname}${release}${shared_ext}$major'
12201   shlibpath_var=LD_LIBRARY_PATH
12202   ;;
12203
12204 freebsd1*)
12205   dynamic_linker=no
12206   ;;
12207
12208 kfreebsd*-gnu)
12209   version_type=linux
12210   need_lib_prefix=no
12211   need_version=no
12212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12213   soname_spec='${libname}${release}${shared_ext}$major'
12214   shlibpath_var=LD_LIBRARY_PATH
12215   shlibpath_overrides_runpath=no
12216   hardcode_into_libs=yes
12217   dynamic_linker='GNU ld.so'
12218   ;;
12219
12220 freebsd* | dragonfly*)
12221   # DragonFly does not have aout.  When/if they implement a new
12222   # versioning mechanism, adjust this.
12223   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12224   version_type=freebsd-$objformat
12225   case $version_type in
12226     freebsd-elf*)
12227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12228       need_version=no
12229       need_lib_prefix=no
12230       ;;
12231     freebsd-*)
12232       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12233       need_version=yes
12234       ;;
12235   esac
12236   shlibpath_var=LD_LIBRARY_PATH
12237   case $host_os in
12238   freebsd2*)
12239     shlibpath_overrides_runpath=yes
12240     ;;
12241   freebsd3.[01]* | freebsdelf3.[01]*)
12242     shlibpath_overrides_runpath=yes
12243     hardcode_into_libs=yes
12244     ;;
12245   *) # from 3.2 on
12246     shlibpath_overrides_runpath=no
12247     hardcode_into_libs=yes
12248     ;;
12249   esac
12250   ;;
12251
12252 gnu*)
12253   version_type=linux
12254   need_lib_prefix=no
12255   need_version=no
12256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12257   soname_spec='${libname}${release}${shared_ext}$major'
12258   shlibpath_var=LD_LIBRARY_PATH
12259   hardcode_into_libs=yes
12260   ;;
12261
12262 hpux9* | hpux10* | hpux11*)
12263   # Give a soname corresponding to the major version so that dld.sl refuses to
12264   # link against other versions.
12265   version_type=sunos
12266   need_lib_prefix=no
12267   need_version=no
12268   case "$host_cpu" in
12269   ia64*)
12270     shrext_cmds='.so'
12271     hardcode_into_libs=yes
12272     dynamic_linker="$host_os dld.so"
12273     shlibpath_var=LD_LIBRARY_PATH
12274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12276     soname_spec='${libname}${release}${shared_ext}$major'
12277     if test "X$HPUX_IA64_MODE" = X32; then
12278       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12279     else
12280       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12281     fi
12282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12283     ;;
12284    hppa*64*)
12285      shrext_cmds='.sl'
12286      hardcode_into_libs=yes
12287      dynamic_linker="$host_os dld.sl"
12288      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12289      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12291      soname_spec='${libname}${release}${shared_ext}$major'
12292      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12293      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12294      ;;
12295    *)
12296     shrext_cmds='.sl'
12297     dynamic_linker="$host_os dld.sl"
12298     shlibpath_var=SHLIB_PATH
12299     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301     soname_spec='${libname}${release}${shared_ext}$major'
12302     ;;
12303   esac
12304   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12305   postinstall_cmds='chmod 555 $lib'
12306   ;;
12307
12308 irix5* | irix6* | nonstopux*)
12309   case $host_os in
12310     nonstopux*) version_type=nonstopux ;;
12311     *)
12312         if test "$lt_cv_prog_gnu_ld" = yes; then
12313                 version_type=linux
12314         else
12315                 version_type=irix
12316         fi ;;
12317   esac
12318   need_lib_prefix=no
12319   need_version=no
12320   soname_spec='${libname}${release}${shared_ext}$major'
12321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12322   case $host_os in
12323   irix5* | nonstopux*)
12324     libsuff= shlibsuff=
12325     ;;
12326   *)
12327     case $LD in # libtool.m4 will add one of these switches to LD
12328     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12329       libsuff= shlibsuff= libmagic=32-bit;;
12330     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12331       libsuff=32 shlibsuff=N32 libmagic=N32;;
12332     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12333       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12334     *) libsuff= shlibsuff= libmagic=never-match;;
12335     esac
12336     ;;
12337   esac
12338   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12339   shlibpath_overrides_runpath=no
12340   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12341   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12342   hardcode_into_libs=yes
12343   ;;
12344
12345 # No shared lib support for Linux oldld, aout, or coff.
12346 linux*oldld* | linux*aout* | linux*coff*)
12347   dynamic_linker=no
12348   ;;
12349
12350 # This must be Linux ELF.
12351 linux*)
12352   version_type=linux
12353   need_lib_prefix=no
12354   need_version=no
12355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356   soname_spec='${libname}${release}${shared_ext}$major'
12357   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12358   shlibpath_var=LD_LIBRARY_PATH
12359   shlibpath_overrides_runpath=no
12360   # This implies no fast_install, which is unacceptable.
12361   # Some rework will be needed to allow for fast_install
12362   # before this can be enabled.
12363   hardcode_into_libs=yes
12364
12365   # find out which ABI we are using
12366   libsuff=
12367   case "$host_cpu" in
12368   x86_64*|s390x*|powerpc64*)
12369     echo '#line 12369 "configure"' > conftest.$ac_ext
12370     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371   (eval $ac_compile) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; then
12375       case `/usr/bin/file conftest.$ac_objext` in
12376       *64-bit*)
12377         libsuff=64
12378         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12379         ;;
12380       esac
12381     fi
12382     rm -rf conftest*
12383     ;;
12384   esac
12385
12386   # Append ld.so.conf contents to the search path
12387   if test -f /etc/ld.so.conf; then
12388     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' ' '`
12389     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12390   fi
12391
12392   # We used to test for /lib/ld.so.1 and disable shared libraries on
12393   # powerpc, because MkLinux only supported shared libraries with the
12394   # GNU dynamic linker.  Since this was broken with cross compilers,
12395   # most powerpc-linux boxes support dynamic linking these days and
12396   # people can always --disable-shared, the test was removed, and we
12397   # assume the GNU/Linux dynamic linker is in use.
12398   dynamic_linker='GNU/Linux ld.so'
12399   ;;
12400
12401 knetbsd*-gnu)
12402   version_type=linux
12403   need_lib_prefix=no
12404   need_version=no
12405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12406   soname_spec='${libname}${release}${shared_ext}$major'
12407   shlibpath_var=LD_LIBRARY_PATH
12408   shlibpath_overrides_runpath=no
12409   hardcode_into_libs=yes
12410   dynamic_linker='GNU ld.so'
12411   ;;
12412
12413 netbsd*)
12414   version_type=sunos
12415   need_lib_prefix=no
12416   need_version=no
12417   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12419     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12420     dynamic_linker='NetBSD (a.out) ld.so'
12421   else
12422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12423     soname_spec='${libname}${release}${shared_ext}$major'
12424     dynamic_linker='NetBSD ld.elf_so'
12425   fi
12426   shlibpath_var=LD_LIBRARY_PATH
12427   shlibpath_overrides_runpath=yes
12428   hardcode_into_libs=yes
12429   ;;
12430
12431 newsos6)
12432   version_type=linux
12433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434   shlibpath_var=LD_LIBRARY_PATH
12435   shlibpath_overrides_runpath=yes
12436   ;;
12437
12438 nto-qnx*)
12439   version_type=linux
12440   need_lib_prefix=no
12441   need_version=no
12442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443   soname_spec='${libname}${release}${shared_ext}$major'
12444   shlibpath_var=LD_LIBRARY_PATH
12445   shlibpath_overrides_runpath=yes
12446   ;;
12447
12448 openbsd*)
12449   version_type=sunos
12450   need_lib_prefix=no
12451   need_version=no
12452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454   shlibpath_var=LD_LIBRARY_PATH
12455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12456     case $host_os in
12457       openbsd2.[89] | openbsd2.[89].*)
12458         shlibpath_overrides_runpath=no
12459         ;;
12460       *)
12461         shlibpath_overrides_runpath=yes
12462         ;;
12463       esac
12464   else
12465     shlibpath_overrides_runpath=yes
12466   fi
12467   ;;
12468
12469 os2*)
12470   libname_spec='$name'
12471   shrext_cmds=".dll"
12472   need_lib_prefix=no
12473   library_names_spec='$libname${shared_ext} $libname.a'
12474   dynamic_linker='OS/2 ld.exe'
12475   shlibpath_var=LIBPATH
12476   ;;
12477
12478 osf3* | osf4* | osf5*)
12479   version_type=osf
12480   need_lib_prefix=no
12481   need_version=no
12482   soname_spec='${libname}${release}${shared_ext}$major'
12483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484   shlibpath_var=LD_LIBRARY_PATH
12485   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12486   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12487   ;;
12488
12489 sco3.2v5*)
12490   version_type=osf
12491   soname_spec='${libname}${release}${shared_ext}$major'
12492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493   shlibpath_var=LD_LIBRARY_PATH
12494   ;;
12495
12496 solaris*)
12497   version_type=linux
12498   need_lib_prefix=no
12499   need_version=no
12500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12501   soname_spec='${libname}${release}${shared_ext}$major'
12502   shlibpath_var=LD_LIBRARY_PATH
12503   shlibpath_overrides_runpath=yes
12504   hardcode_into_libs=yes
12505   # ldd complains unless libraries are executable
12506   postinstall_cmds='chmod +x $lib'
12507   ;;
12508
12509 sunos4*)
12510   version_type=sunos
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12512   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12513   shlibpath_var=LD_LIBRARY_PATH
12514   shlibpath_overrides_runpath=yes
12515   if test "$with_gnu_ld" = yes; then
12516     need_lib_prefix=no
12517   fi
12518   need_version=yes
12519   ;;
12520
12521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12522   version_type=linux
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   case $host_vendor in
12527     sni)
12528       shlibpath_overrides_runpath=no
12529       need_lib_prefix=no
12530       export_dynamic_flag_spec='${wl}-Blargedynsym'
12531       runpath_var=LD_RUN_PATH
12532       ;;
12533     siemens)
12534       need_lib_prefix=no
12535       ;;
12536     motorola)
12537       need_lib_prefix=no
12538       need_version=no
12539       shlibpath_overrides_runpath=no
12540       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12541       ;;
12542   esac
12543   ;;
12544
12545 sysv4*MP*)
12546   if test -d /usr/nec ;then
12547     version_type=linux
12548     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12549     soname_spec='$libname${shared_ext}.$major'
12550     shlibpath_var=LD_LIBRARY_PATH
12551   fi
12552   ;;
12553
12554 uts4*)
12555   version_type=linux
12556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12557   soname_spec='${libname}${release}${shared_ext}$major'
12558   shlibpath_var=LD_LIBRARY_PATH
12559   ;;
12560
12561 *)
12562   dynamic_linker=no
12563   ;;
12564 esac
12565 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12566 echo "${ECHO_T}$dynamic_linker" >&6
12567 test "$dynamic_linker" = no && can_build_shared=no
12568
12569 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12571 hardcode_action_CXX=
12572 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12573    test -n "$runpath_var_CXX" || \
12574    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12575
12576   # We can hardcode non-existant directories.
12577   if test "$hardcode_direct_CXX" != no &&
12578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12579      # have to relink, otherwise we might link with an installed library
12580      # when we should be linking with a yet-to-be-installed one
12581      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12582      test "$hardcode_minus_L_CXX" != no; then
12583     # Linking always hardcodes the temporary library directory.
12584     hardcode_action_CXX=relink
12585   else
12586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12587     hardcode_action_CXX=immediate
12588   fi
12589 else
12590   # We cannot hardcode anything, or else we can only hardcode existing
12591   # directories.
12592   hardcode_action_CXX=unsupported
12593 fi
12594 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12595 echo "${ECHO_T}$hardcode_action_CXX" >&6
12596
12597 if test "$hardcode_action_CXX" = relink; then
12598   # Fast installation is not supported
12599   enable_fast_install=no
12600 elif test "$shlibpath_overrides_runpath" = yes ||
12601      test "$enable_shared" = no; then
12602   # Fast installation is not necessary
12603   enable_fast_install=needless
12604 fi
12605
12606 striplib=
12607 old_striplib=
12608 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12611   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12612   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12613   echo "$as_me:$LINENO: result: yes" >&5
12614 echo "${ECHO_T}yes" >&6
12615 else
12616 # FIXME - insert some real tests, host_os isn't really good enough
12617   case $host_os in
12618    darwin*)
12619        if test -n "$STRIP" ; then
12620          striplib="$STRIP -x"
12621          echo "$as_me:$LINENO: result: yes" >&5
12622 echo "${ECHO_T}yes" >&6
12623        else
12624   echo "$as_me:$LINENO: result: no" >&5
12625 echo "${ECHO_T}no" >&6
12626 fi
12627        ;;
12628    *)
12629   echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6
12631     ;;
12632   esac
12633 fi
12634
12635 if test "x$enable_dlopen" != xyes; then
12636   enable_dlopen=unknown
12637   enable_dlopen_self=unknown
12638   enable_dlopen_self_static=unknown
12639 else
12640   lt_cv_dlopen=no
12641   lt_cv_dlopen_libs=
12642
12643   case $host_os in
12644   beos*)
12645     lt_cv_dlopen="load_add_on"
12646     lt_cv_dlopen_libs=
12647     lt_cv_dlopen_self=yes
12648     ;;
12649
12650   mingw* | pw32*)
12651     lt_cv_dlopen="LoadLibrary"
12652     lt_cv_dlopen_libs=
12653    ;;
12654
12655   cygwin*)
12656     lt_cv_dlopen="dlopen"
12657     lt_cv_dlopen_libs=
12658    ;;
12659
12660   darwin*)
12661   # if libdl is installed we need to link against it
12662     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   ac_check_lib_save_LIBS=$LIBS
12668 LIBS="-ldl  $LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675
12676 /* Override any gcc2 internal prototype to avoid an error.  */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 /* We use char because int might match the return type of a gcc2
12681    builtin and then its argument prototype would still apply.  */
12682 char dlopen ();
12683 int
12684 main ()
12685 {
12686 dlopen ();
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693   (eval $ac_link) 2>conftest.er1
12694   ac_status=$?
12695   grep -v '^ *+' conftest.er1 >conftest.err
12696   rm -f conftest.er1
12697   cat conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -z "$ac_cxx_werror_flag"
12701                          || test ! -s conftest.err'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; } &&
12707          { ac_try='test -s conftest$ac_exeext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_lib_dl_dlopen=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_lib_dl_dlopen=no
12719 fi
12720 rm -f conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12723 fi
12724 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12726 if test $ac_cv_lib_dl_dlopen = yes; then
12727   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12728 else
12729
12730     lt_cv_dlopen="dyld"
12731     lt_cv_dlopen_libs=
12732     lt_cv_dlopen_self=yes
12733
12734 fi
12735
12736    ;;
12737
12738   *)
12739     echo "$as_me:$LINENO: checking for shl_load" >&5
12740 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12741 if test "${ac_cv_func_shl_load+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12752 #define shl_load innocuous_shl_load
12753
12754 /* System header to define __stub macros and hopefully few prototypes,
12755     which can conflict with char shl_load (); below.
12756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12757     <limits.h> exists even on freestanding compilers.  */
12758
12759 #ifdef __STDC__
12760 # include <limits.h>
12761 #else
12762 # include <assert.h>
12763 #endif
12764
12765 #undef shl_load
12766
12767 /* Override any gcc2 internal prototype to avoid an error.  */
12768 #ifdef __cplusplus
12769 extern "C"
12770 {
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773    builtin and then its argument prototype would still apply.  */
12774 char shl_load ();
12775 /* The GNU C library defines this for functions which it implements
12776     to always fail with ENOSYS.  Some functions are actually named
12777     something starting with __ and the normal name is an alias.  */
12778 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12779 choke me
12780 #else
12781 char (*f) () = shl_load;
12782 #endif
12783 #ifdef __cplusplus
12784 }
12785 #endif
12786
12787 int
12788 main ()
12789 {
12790 return f != shl_load;
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797   (eval $ac_link) 2>conftest.er1
12798   ac_status=$?
12799   grep -v '^ *+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } &&
12804          { ac_try='test -z "$ac_cxx_werror_flag"
12805                          || test ! -s conftest.err'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; } &&
12811          { ac_try='test -s conftest$ac_exeext'
12812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813   (eval $ac_try) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); }; }; then
12817   ac_cv_func_shl_load=yes
12818 else
12819   echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 ac_cv_func_shl_load=no
12823 fi
12824 rm -f conftest.err conftest.$ac_objext \
12825       conftest$ac_exeext conftest.$ac_ext
12826 fi
12827 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12828 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12829 if test $ac_cv_func_shl_load = yes; then
12830   lt_cv_dlopen="shl_load"
12831 else
12832   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12833 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12834 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12835   echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837   ac_check_lib_save_LIBS=$LIBS
12838 LIBS="-ldld  $LIBS"
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h.  */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h.  */
12845
12846 /* Override any gcc2 internal prototype to avoid an error.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 /* We use char because int might match the return type of a gcc2
12851    builtin and then its argument prototype would still apply.  */
12852 char shl_load ();
12853 int
12854 main ()
12855 {
12856 shl_load ();
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863   (eval $ac_link) 2>conftest.er1
12864   ac_status=$?
12865   grep -v '^ *+' conftest.er1 >conftest.err
12866   rm -f conftest.er1
12867   cat conftest.err >&5
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } &&
12870          { ac_try='test -z "$ac_cxx_werror_flag"
12871                          || test ! -s conftest.err'
12872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873   (eval $ac_try) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); }; } &&
12877          { ac_try='test -s conftest$ac_exeext'
12878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879   (eval $ac_try) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; }; then
12883   ac_cv_lib_dld_shl_load=yes
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 ac_cv_lib_dld_shl_load=no
12889 fi
12890 rm -f conftest.err conftest.$ac_objext \
12891       conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12893 fi
12894 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12895 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12896 if test $ac_cv_lib_dld_shl_load = yes; then
12897   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12898 else
12899   echo "$as_me:$LINENO: checking for dlopen" >&5
12900 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12901 if test "${ac_cv_func_dlopen+set}" = set; then
12902   echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904   cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12912 #define dlopen innocuous_dlopen
12913
12914 /* System header to define __stub macros and hopefully few prototypes,
12915     which can conflict with char dlopen (); below.
12916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917     <limits.h> exists even on freestanding compilers.  */
12918
12919 #ifdef __STDC__
12920 # include <limits.h>
12921 #else
12922 # include <assert.h>
12923 #endif
12924
12925 #undef dlopen
12926
12927 /* Override any gcc2 internal prototype to avoid an error.  */
12928 #ifdef __cplusplus
12929 extern "C"
12930 {
12931 #endif
12932 /* We use char because int might match the return type of a gcc2
12933    builtin and then its argument prototype would still apply.  */
12934 char dlopen ();
12935 /* The GNU C library defines this for functions which it implements
12936     to always fail with ENOSYS.  Some functions are actually named
12937     something starting with __ and the normal name is an alias.  */
12938 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12939 choke me
12940 #else
12941 char (*f) () = dlopen;
12942 #endif
12943 #ifdef __cplusplus
12944 }
12945 #endif
12946
12947 int
12948 main ()
12949 {
12950 return f != dlopen;
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957   (eval $ac_link) 2>conftest.er1
12958   ac_status=$?
12959   grep -v '^ *+' conftest.er1 >conftest.err
12960   rm -f conftest.er1
12961   cat conftest.err >&5
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); } &&
12964          { ac_try='test -z "$ac_cxx_werror_flag"
12965                          || test ! -s conftest.err'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; } &&
12971          { ac_try='test -s conftest$ac_exeext'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; }; then
12977   ac_cv_func_dlopen=yes
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 ac_cv_func_dlopen=no
12983 fi
12984 rm -f conftest.err conftest.$ac_objext \
12985       conftest$ac_exeext conftest.$ac_ext
12986 fi
12987 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12988 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12989 if test $ac_cv_func_dlopen = yes; then
12990   lt_cv_dlopen="dlopen"
12991 else
12992   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12993 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12995   echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997   ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-ldl  $LIBS"
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005
13006 /* Override any gcc2 internal prototype to avoid an error.  */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011    builtin and then its argument prototype would still apply.  */
13012 char dlopen ();
13013 int
13014 main ()
13015 {
13016 dlopen ();
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023   (eval $ac_link) 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -z "$ac_cxx_werror_flag"
13031                          || test ! -s conftest.err'
13032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033   (eval $ac_try) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; } &&
13037          { ac_try='test -s conftest$ac_exeext'
13038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039   (eval $ac_try) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; }; then
13043   ac_cv_lib_dl_dlopen=yes
13044 else
13045   echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048 ac_cv_lib_dl_dlopen=no
13049 fi
13050 rm -f conftest.err conftest.$ac_objext \
13051       conftest$ac_exeext conftest.$ac_ext
13052 LIBS=$ac_check_lib_save_LIBS
13053 fi
13054 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13056 if test $ac_cv_lib_dl_dlopen = yes; then
13057   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13058 else
13059   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lsvld  $LIBS"
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072
13073 /* Override any gcc2 internal prototype to avoid an error.  */
13074 #ifdef __cplusplus
13075 extern "C"
13076 #endif
13077 /* We use char because int might match the return type of a gcc2
13078    builtin and then its argument prototype would still apply.  */
13079 char dlopen ();
13080 int
13081 main ()
13082 {
13083 dlopen ();
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090   (eval $ac_link) 2>conftest.er1
13091   ac_status=$?
13092   grep -v '^ *+' conftest.er1 >conftest.err
13093   rm -f conftest.er1
13094   cat conftest.err >&5
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } &&
13097          { ac_try='test -z "$ac_cxx_werror_flag"
13098                          || test ! -s conftest.err'
13099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100   (eval $ac_try) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); }; } &&
13104          { ac_try='test -s conftest$ac_exeext'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_cv_lib_svld_dlopen=yes
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115 ac_cv_lib_svld_dlopen=no
13116 fi
13117 rm -f conftest.err conftest.$ac_objext \
13118       conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13120 fi
13121 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13123 if test $ac_cv_lib_svld_dlopen = yes; then
13124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13125 else
13126   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13127 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13128 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-ldld  $LIBS"
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139
13140 /* Override any gcc2 internal prototype to avoid an error.  */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 /* We use char because int might match the return type of a gcc2
13145    builtin and then its argument prototype would still apply.  */
13146 char dld_link ();
13147 int
13148 main ()
13149 {
13150 dld_link ();
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157   (eval $ac_link) 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -z "$ac_cxx_werror_flag"
13165                          || test ! -s conftest.err'
13166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167   (eval $ac_try) 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); }; } &&
13171          { ac_try='test -s conftest$ac_exeext'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   ac_cv_lib_dld_dld_link=yes
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_lib_dld_dld_link=no
13183 fi
13184 rm -f conftest.err conftest.$ac_objext \
13185       conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13187 fi
13188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13189 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13190 if test $ac_cv_lib_dld_dld_link = yes; then
13191   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13192 fi
13193
13194
13195 fi
13196
13197
13198 fi
13199
13200
13201 fi
13202
13203
13204 fi
13205
13206
13207 fi
13208
13209     ;;
13210   esac
13211
13212   if test "x$lt_cv_dlopen" != xno; then
13213     enable_dlopen=yes
13214   else
13215     enable_dlopen=no
13216   fi
13217
13218   case $lt_cv_dlopen in
13219   dlopen)
13220     save_CPPFLAGS="$CPPFLAGS"
13221     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13222
13223     save_LDFLAGS="$LDFLAGS"
13224     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13225
13226     save_LIBS="$LIBS"
13227     LIBS="$lt_cv_dlopen_libs $LIBS"
13228
13229     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13230 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13231 if test "${lt_cv_dlopen_self+set}" = set; then
13232   echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234           if test "$cross_compiling" = yes; then :
13235   lt_cv_dlopen_self=cross
13236 else
13237   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13238   lt_status=$lt_dlunknown
13239   cat > conftest.$ac_ext <<EOF
13240 #line 13240 "configure"
13241 #include "confdefs.h"
13242
13243 #if HAVE_DLFCN_H
13244 #include <dlfcn.h>
13245 #endif
13246
13247 #include <stdio.h>
13248
13249 #ifdef RTLD_GLOBAL
13250 #  define LT_DLGLOBAL           RTLD_GLOBAL
13251 #else
13252 #  ifdef DL_GLOBAL
13253 #    define LT_DLGLOBAL         DL_GLOBAL
13254 #  else
13255 #    define LT_DLGLOBAL         0
13256 #  endif
13257 #endif
13258
13259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13260    find out it does not work in some platform. */
13261 #ifndef LT_DLLAZY_OR_NOW
13262 #  ifdef RTLD_LAZY
13263 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13264 #  else
13265 #    ifdef DL_LAZY
13266 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13267 #    else
13268 #      ifdef RTLD_NOW
13269 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13270 #      else
13271 #        ifdef DL_NOW
13272 #          define LT_DLLAZY_OR_NOW      DL_NOW
13273 #        else
13274 #          define LT_DLLAZY_OR_NOW      0
13275 #        endif
13276 #      endif
13277 #    endif
13278 #  endif
13279 #endif
13280
13281 #ifdef __cplusplus
13282 extern "C" void exit (int);
13283 #endif
13284
13285 void fnord() { int i=42;}
13286 int main ()
13287 {
13288   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13289   int status = $lt_dlunknown;
13290
13291   if (self)
13292     {
13293       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13294       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13295       /* dlclose (self); */
13296     }
13297
13298     exit (status);
13299 }
13300 EOF
13301   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302   (eval $ac_link) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13306     (./conftest; exit; ) 2>/dev/null
13307     lt_status=$?
13308     case x$lt_status in
13309       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13310       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13311       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13312     esac
13313   else :
13314     # compilation failed
13315     lt_cv_dlopen_self=no
13316   fi
13317 fi
13318 rm -fr conftest*
13319
13320
13321 fi
13322 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13323 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13324
13325     if test "x$lt_cv_dlopen_self" = xyes; then
13326       LDFLAGS="$LDFLAGS $link_static_flag"
13327       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13328 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13329 if test "${lt_cv_dlopen_self_static+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332           if test "$cross_compiling" = yes; then :
13333   lt_cv_dlopen_self_static=cross
13334 else
13335   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13336   lt_status=$lt_dlunknown
13337   cat > conftest.$ac_ext <<EOF
13338 #line 13338 "configure"
13339 #include "confdefs.h"
13340
13341 #if HAVE_DLFCN_H
13342 #include <dlfcn.h>
13343 #endif
13344
13345 #include <stdio.h>
13346
13347 #ifdef RTLD_GLOBAL
13348 #  define LT_DLGLOBAL           RTLD_GLOBAL
13349 #else
13350 #  ifdef DL_GLOBAL
13351 #    define LT_DLGLOBAL         DL_GLOBAL
13352 #  else
13353 #    define LT_DLGLOBAL         0
13354 #  endif
13355 #endif
13356
13357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13358    find out it does not work in some platform. */
13359 #ifndef LT_DLLAZY_OR_NOW
13360 #  ifdef RTLD_LAZY
13361 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13362 #  else
13363 #    ifdef DL_LAZY
13364 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13365 #    else
13366 #      ifdef RTLD_NOW
13367 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13368 #      else
13369 #        ifdef DL_NOW
13370 #          define LT_DLLAZY_OR_NOW      DL_NOW
13371 #        else
13372 #          define LT_DLLAZY_OR_NOW      0
13373 #        endif
13374 #      endif
13375 #    endif
13376 #  endif
13377 #endif
13378
13379 #ifdef __cplusplus
13380 extern "C" void exit (int);
13381 #endif
13382
13383 void fnord() { int i=42;}
13384 int main ()
13385 {
13386   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13387   int status = $lt_dlunknown;
13388
13389   if (self)
13390     {
13391       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13392       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13393       /* dlclose (self); */
13394     }
13395
13396     exit (status);
13397 }
13398 EOF
13399   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400   (eval $ac_link) 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13404     (./conftest; exit; ) 2>/dev/null
13405     lt_status=$?
13406     case x$lt_status in
13407       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13408       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13409       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13410     esac
13411   else :
13412     # compilation failed
13413     lt_cv_dlopen_self_static=no
13414   fi
13415 fi
13416 rm -fr conftest*
13417
13418
13419 fi
13420 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13421 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13422     fi
13423
13424     CPPFLAGS="$save_CPPFLAGS"
13425     LDFLAGS="$save_LDFLAGS"
13426     LIBS="$save_LIBS"
13427     ;;
13428   esac
13429
13430   case $lt_cv_dlopen_self in
13431   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13432   *) enable_dlopen_self=unknown ;;
13433   esac
13434
13435   case $lt_cv_dlopen_self_static in
13436   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13437   *) enable_dlopen_self_static=unknown ;;
13438   esac
13439 fi
13440
13441
13442 # The else clause should only fire when bootstrapping the
13443 # libtool distribution, otherwise you forgot to ship ltmain.sh
13444 # with your package, and you will get complaints that there are
13445 # no rules to generate ltmain.sh.
13446 if test -f "$ltmain"; then
13447   # See if we are running on zsh, and set the options which allow our commands through
13448   # without removal of \ escapes.
13449   if test -n "${ZSH_VERSION+set}" ; then
13450     setopt NO_GLOB_SUBST
13451   fi
13452   # Now quote all the things that may contain metacharacters while being
13453   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13454   # variables and quote the copies for generation of the libtool script.
13455   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13456     SED SHELL STRIP \
13457     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13458     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13459     deplibs_check_method reload_flag reload_cmds need_locks \
13460     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13461     lt_cv_sys_global_symbol_to_c_name_address \
13462     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13463     old_postinstall_cmds old_postuninstall_cmds \
13464     compiler_CXX \
13465     CC_CXX \
13466     LD_CXX \
13467     lt_prog_compiler_wl_CXX \
13468     lt_prog_compiler_pic_CXX \
13469     lt_prog_compiler_static_CXX \
13470     lt_prog_compiler_no_builtin_flag_CXX \
13471     export_dynamic_flag_spec_CXX \
13472     thread_safe_flag_spec_CXX \
13473     whole_archive_flag_spec_CXX \
13474     enable_shared_with_static_runtimes_CXX \
13475     old_archive_cmds_CXX \
13476     old_archive_from_new_cmds_CXX \
13477     predep_objects_CXX \
13478     postdep_objects_CXX \
13479     predeps_CXX \
13480     postdeps_CXX \
13481     compiler_lib_search_path_CXX \
13482     archive_cmds_CXX \
13483     archive_expsym_cmds_CXX \
13484     postinstall_cmds_CXX \
13485     postuninstall_cmds_CXX \
13486     old_archive_from_expsyms_cmds_CXX \
13487     allow_undefined_flag_CXX \
13488     no_undefined_flag_CXX \
13489     export_symbols_cmds_CXX \
13490     hardcode_libdir_flag_spec_CXX \
13491     hardcode_libdir_flag_spec_ld_CXX \
13492     hardcode_libdir_separator_CXX \
13493     hardcode_automatic_CXX \
13494     module_cmds_CXX \
13495     module_expsym_cmds_CXX \
13496     lt_cv_prog_compiler_c_o_CXX \
13497     exclude_expsyms_CXX \
13498     include_expsyms_CXX; do
13499
13500     case $var in
13501     old_archive_cmds_CXX | \
13502     old_archive_from_new_cmds_CXX | \
13503     archive_cmds_CXX | \
13504     archive_expsym_cmds_CXX | \
13505     module_cmds_CXX | \
13506     module_expsym_cmds_CXX | \
13507     old_archive_from_expsyms_cmds_CXX | \
13508     export_symbols_cmds_CXX | \
13509     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13510     postinstall_cmds | postuninstall_cmds | \
13511     old_postinstall_cmds | old_postuninstall_cmds | \
13512     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13513       # Double-quote double-evaled strings.
13514       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13515       ;;
13516     *)
13517       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13518       ;;
13519     esac
13520   done
13521
13522   case $lt_echo in
13523   *'\$0 --fallback-echo"')
13524     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13525     ;;
13526   esac
13527
13528 cfgfile="$ofile"
13529
13530   cat <<__EOF__ >> "$cfgfile"
13531 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13532
13533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13534
13535 # Shell to use when invoking shell scripts.
13536 SHELL=$lt_SHELL
13537
13538 # Whether or not to build shared libraries.
13539 build_libtool_libs=$enable_shared
13540
13541 # Whether or not to build static libraries.
13542 build_old_libs=$enable_static
13543
13544 # Whether or not to add -lc for building shared libraries.
13545 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13546
13547 # Whether or not to disallow shared libs when runtime libs are static
13548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13549
13550 # Whether or not to optimize for fast installation.
13551 fast_install=$enable_fast_install
13552
13553 # The host system.
13554 host_alias=$host_alias
13555 host=$host
13556 host_os=$host_os
13557
13558 # The build system.
13559 build_alias=$build_alias
13560 build=$build
13561 build_os=$build_os
13562
13563 # An echo program that does not interpret backslashes.
13564 echo=$lt_echo
13565
13566 # The archiver.
13567 AR=$lt_AR
13568 AR_FLAGS=$lt_AR_FLAGS
13569
13570 # A C compiler.
13571 LTCC=$lt_LTCC
13572
13573 # A language-specific compiler.
13574 CC=$lt_compiler_CXX
13575
13576 # Is the compiler the GNU C compiler?
13577 with_gcc=$GCC_CXX
13578
13579 # An ERE matcher.
13580 EGREP=$lt_EGREP
13581
13582 # The linker used to build libraries.
13583 LD=$lt_LD_CXX
13584
13585 # Whether we need hard or soft links.
13586 LN_S=$lt_LN_S
13587
13588 # A BSD-compatible nm program.
13589 NM=$lt_NM
13590
13591 # A symbol stripping program
13592 STRIP=$lt_STRIP
13593
13594 # Used to examine libraries when file_magic_cmd begins "file"
13595 MAGIC_CMD=$MAGIC_CMD
13596
13597 # Used on cygwin: DLL creation program.
13598 DLLTOOL="$DLLTOOL"
13599
13600 # Used on cygwin: object dumper.
13601 OBJDUMP="$OBJDUMP"
13602
13603 # Used on cygwin: assembler.
13604 AS="$AS"
13605
13606 # The name of the directory that contains temporary libtool files.
13607 objdir=$objdir
13608
13609 # How to create reloadable object files.
13610 reload_flag=$lt_reload_flag
13611 reload_cmds=$lt_reload_cmds
13612
13613 # How to pass a linker flag through the compiler.
13614 wl=$lt_lt_prog_compiler_wl_CXX
13615
13616 # Object file suffix (normally "o").
13617 objext="$ac_objext"
13618
13619 # Old archive suffix (normally "a").
13620 libext="$libext"
13621
13622 # Shared library suffix (normally ".so").
13623 shrext_cmds='$shrext_cmds'
13624
13625 # Executable file suffix (normally "").
13626 exeext="$exeext"
13627
13628 # Additional compiler flags for building library objects.
13629 pic_flag=$lt_lt_prog_compiler_pic_CXX
13630 pic_mode=$pic_mode
13631
13632 # What is the maximum length of a command?
13633 max_cmd_len=$lt_cv_sys_max_cmd_len
13634
13635 # Does compiler simultaneously support -c and -o options?
13636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13637
13638 # Must we lock files when doing compilation?
13639 need_locks=$lt_need_locks
13640
13641 # Do we need the lib prefix for modules?
13642 need_lib_prefix=$need_lib_prefix
13643
13644 # Do we need a version for libraries?
13645 need_version=$need_version
13646
13647 # Whether dlopen is supported.
13648 dlopen_support=$enable_dlopen
13649
13650 # Whether dlopen of programs is supported.
13651 dlopen_self=$enable_dlopen_self
13652
13653 # Whether dlopen of statically linked programs is supported.
13654 dlopen_self_static=$enable_dlopen_self_static
13655
13656 # Compiler flag to prevent dynamic linking.
13657 link_static_flag=$lt_lt_prog_compiler_static_CXX
13658
13659 # Compiler flag to turn off builtin functions.
13660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13661
13662 # Compiler flag to allow reflexive dlopens.
13663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13664
13665 # Compiler flag to generate shared objects directly from archives.
13666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13667
13668 # Compiler flag to generate thread-safe objects.
13669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13670
13671 # Library versioning type.
13672 version_type=$version_type
13673
13674 # Format of library name prefix.
13675 libname_spec=$lt_libname_spec
13676
13677 # List of archive names.  First name is the real one, the rest are links.
13678 # The last name is the one that the linker finds with -lNAME.
13679 library_names_spec=$lt_library_names_spec
13680
13681 # The coded name of the library, if different from the real name.
13682 soname_spec=$lt_soname_spec
13683
13684 # Commands used to build and install an old-style archive.
13685 RANLIB=$lt_RANLIB
13686 old_archive_cmds=$lt_old_archive_cmds_CXX
13687 old_postinstall_cmds=$lt_old_postinstall_cmds
13688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13689
13690 # Create an old-style archive from a shared archive.
13691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13692
13693 # Create a temporary old-style archive to link instead of a shared archive.
13694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13695
13696 # Commands used to build and install a shared archive.
13697 archive_cmds=$lt_archive_cmds_CXX
13698 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13699 postinstall_cmds=$lt_postinstall_cmds
13700 postuninstall_cmds=$lt_postuninstall_cmds
13701
13702 # Commands used to build a loadable module (assumed same as above if empty)
13703 module_cmds=$lt_module_cmds_CXX
13704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13705
13706 # Commands to strip libraries.
13707 old_striplib=$lt_old_striplib
13708 striplib=$lt_striplib
13709
13710 # Dependencies to place before the objects being linked to create a
13711 # shared library.
13712 predep_objects=$lt_predep_objects_CXX
13713
13714 # Dependencies to place after the objects being linked to create a
13715 # shared library.
13716 postdep_objects=$lt_postdep_objects_CXX
13717
13718 # Dependencies to place before the objects being linked to create a
13719 # shared library.
13720 predeps=$lt_predeps_CXX
13721
13722 # Dependencies to place after the objects being linked to create a
13723 # shared library.
13724 postdeps=$lt_postdeps_CXX
13725
13726 # The library search path used internally by the compiler when linking
13727 # a shared library.
13728 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13729
13730 # Method to check whether dependent libraries are shared objects.
13731 deplibs_check_method=$lt_deplibs_check_method
13732
13733 # Command to use when deplibs_check_method == file_magic.
13734 file_magic_cmd=$lt_file_magic_cmd
13735
13736 # Flag that allows shared libraries with undefined symbols to be built.
13737 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13738
13739 # Flag that forces no undefined symbols.
13740 no_undefined_flag=$lt_no_undefined_flag_CXX
13741
13742 # Commands used to finish a libtool library installation in a directory.
13743 finish_cmds=$lt_finish_cmds
13744
13745 # Same as above, but a single script fragment to be evaled but not shown.
13746 finish_eval=$lt_finish_eval
13747
13748 # Take the output of nm and produce a listing of raw symbols and C names.
13749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13750
13751 # Transform the output of nm in a proper C declaration
13752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13753
13754 # Transform the output of nm in a C name address pair
13755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13756
13757 # This is the shared library runtime path variable.
13758 runpath_var=$runpath_var
13759
13760 # This is the shared library path variable.
13761 shlibpath_var=$shlibpath_var
13762
13763 # Is shlibpath searched before the hard-coded library search path?
13764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13765
13766 # How to hardcode a shared library path into an executable.
13767 hardcode_action=$hardcode_action_CXX
13768
13769 # Whether we should hardcode library paths into libraries.
13770 hardcode_into_libs=$hardcode_into_libs
13771
13772 # Flag to hardcode \$libdir into a binary during linking.
13773 # This must work even if \$libdir does not exist.
13774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13775
13776 # If ld is used when linking, flag to hardcode \$libdir into
13777 # a binary during linking. This must work even if \$libdir does
13778 # not exist.
13779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13780
13781 # Whether we need a single -rpath flag with a separated argument.
13782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13783
13784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13785 # resulting binary.
13786 hardcode_direct=$hardcode_direct_CXX
13787
13788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13789 # resulting binary.
13790 hardcode_minus_L=$hardcode_minus_L_CXX
13791
13792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13793 # the resulting binary.
13794 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13795
13796 # Set to yes if building a shared library automatically hardcodes DIR into the library
13797 # and all subsequent libraries and executables linked against it.
13798 hardcode_automatic=$hardcode_automatic_CXX
13799
13800 # Variables whose values should be saved in libtool wrapper scripts and
13801 # restored at relink time.
13802 variables_saved_for_relink="$variables_saved_for_relink"
13803
13804 # Whether libtool must link a program against all its dependency libraries.
13805 link_all_deplibs=$link_all_deplibs_CXX
13806
13807 # Compile-time system search path for libraries
13808 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13809
13810 # Run-time system search path for libraries
13811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13812
13813 # Fix the shell variable \$srcfile for the compiler.
13814 fix_srcfile_path="$fix_srcfile_path_CXX"
13815
13816 # Set to yes if exported symbols are required.
13817 always_export_symbols=$always_export_symbols_CXX
13818
13819 # The commands to list exported symbols.
13820 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13821
13822 # The commands to extract the exported symbol list from a shared archive.
13823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13824
13825 # Symbols that should not be listed in the preloaded symbols.
13826 exclude_expsyms=$lt_exclude_expsyms_CXX
13827
13828 # Symbols that must always be exported.
13829 include_expsyms=$lt_include_expsyms_CXX
13830
13831 # ### END LIBTOOL TAG CONFIG: $tagname
13832
13833 __EOF__
13834
13835
13836 else
13837   # If there is no Makefile yet, we rely on a make rule to execute
13838   # `config.status --recheck' to rerun these tests and create the
13839   # libtool script then.
13840   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13841   if test -f "$ltmain_in"; then
13842     test -f Makefile && make "$ltmain"
13843   fi
13844 fi
13845
13846
13847 ac_ext=c
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13852
13853 CC=$lt_save_CC
13854 LDCXX=$LD
13855 LD=$lt_save_LD
13856 GCC=$lt_save_GCC
13857 with_gnu_ldcxx=$with_gnu_ld
13858 with_gnu_ld=$lt_save_with_gnu_ld
13859 lt_cv_path_LDCXX=$lt_cv_path_LD
13860 lt_cv_path_LD=$lt_save_path_LD
13861 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13862 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13863
13864         else
13865           tagname=""
13866         fi
13867         ;;
13868
13869       F77)
13870         if test -n "$F77" && test "X$F77" != "Xno"; then
13871
13872 ac_ext=f
13873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13876
13877
13878 archive_cmds_need_lc_F77=no
13879 allow_undefined_flag_F77=
13880 always_export_symbols_F77=no
13881 archive_expsym_cmds_F77=
13882 export_dynamic_flag_spec_F77=
13883 hardcode_direct_F77=no
13884 hardcode_libdir_flag_spec_F77=
13885 hardcode_libdir_flag_spec_ld_F77=
13886 hardcode_libdir_separator_F77=
13887 hardcode_minus_L_F77=no
13888 hardcode_automatic_F77=no
13889 module_cmds_F77=
13890 module_expsym_cmds_F77=
13891 link_all_deplibs_F77=unknown
13892 old_archive_cmds_F77=$old_archive_cmds
13893 no_undefined_flag_F77=
13894 whole_archive_flag_spec_F77=
13895 enable_shared_with_static_runtimes_F77=no
13896
13897 # Source file extension for f77 test sources.
13898 ac_ext=f
13899
13900 # Object file extension for compiled f77 test sources.
13901 objext=o
13902 objext_F77=$objext
13903
13904 # Code to be used in simple compile tests
13905 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13906
13907 # Code to be used in simple link tests
13908 lt_simple_link_test_code="      program t\n      end\n"
13909
13910 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13911
13912 # If no C compiler was specified, use CC.
13913 LTCC=${LTCC-"$CC"}
13914
13915 # Allow CC to be a program name with arguments.
13916 compiler=$CC
13917
13918
13919 # save warnings/boilerplate of simple test code
13920 ac_outfile=conftest.$ac_objext
13921 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13923 _lt_compiler_boilerplate=`cat conftest.err`
13924 $rm conftest*
13925
13926 ac_outfile=conftest.$ac_objext
13927 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13929 _lt_linker_boilerplate=`cat conftest.err`
13930 $rm conftest*
13931
13932
13933 # Allow CC to be a program name with arguments.
13934 lt_save_CC="$CC"
13935 CC=${F77-"f77"}
13936 compiler=$CC
13937 compiler_F77=$CC
13938 for cc_temp in $compiler""; do
13939   case $cc_temp in
13940     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13941     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13942     \-*) ;;
13943     *) break;;
13944   esac
13945 done
13946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13947
13948
13949 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13951 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13952 echo "${ECHO_T}$can_build_shared" >&6
13953
13954 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13956 test "$can_build_shared" = "no" && enable_shared=no
13957
13958 # On AIX, shared libraries and static libraries use the same namespace, and
13959 # are all built from PIC.
13960 case "$host_os" in
13961 aix3*)
13962   test "$enable_shared" = yes && enable_static=no
13963   if test -n "$RANLIB"; then
13964     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13965     postinstall_cmds='$RANLIB $lib'
13966   fi
13967   ;;
13968 aix4* | aix5*)
13969   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13970     test "$enable_shared" = yes && enable_static=no
13971   fi
13972   ;;
13973 esac
13974 echo "$as_me:$LINENO: result: $enable_shared" >&5
13975 echo "${ECHO_T}$enable_shared" >&6
13976
13977 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13978 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13979 # Make sure either enable_shared or enable_static is yes.
13980 test "$enable_shared" = yes || enable_static=yes
13981 echo "$as_me:$LINENO: result: $enable_static" >&5
13982 echo "${ECHO_T}$enable_static" >&6
13983
13984 test "$ld_shlibs_F77" = no && can_build_shared=no
13985
13986 GCC_F77="$G77"
13987 LD_F77="$LD"
13988
13989 lt_prog_compiler_wl_F77=
13990 lt_prog_compiler_pic_F77=
13991 lt_prog_compiler_static_F77=
13992
13993 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13995
13996   if test "$GCC" = yes; then
13997     lt_prog_compiler_wl_F77='-Wl,'
13998     lt_prog_compiler_static_F77='-static'
13999
14000     case $host_os in
14001       aix*)
14002       # All AIX code is PIC.
14003       if test "$host_cpu" = ia64; then
14004         # AIX 5 now supports IA64 processor
14005         lt_prog_compiler_static_F77='-Bstatic'
14006       fi
14007       ;;
14008
14009     amigaos*)
14010       # FIXME: we need at least 68020 code to build shared libraries, but
14011       # adding the `-m68020' flag to GCC prevents building anything better,
14012       # like `-m68040'.
14013       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14014       ;;
14015
14016     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14017       # PIC is the default for these OSes.
14018       ;;
14019
14020     mingw* | pw32* | os2*)
14021       # This hack is so that the source file can tell whether it is being
14022       # built for inclusion in a dll (and should export symbols for example).
14023       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14024       ;;
14025
14026     darwin* | rhapsody*)
14027       # PIC is the default on this platform
14028       # Common symbols not allowed in MH_DYLIB files
14029       lt_prog_compiler_pic_F77='-fno-common'
14030       ;;
14031
14032     msdosdjgpp*)
14033       # Just because we use GCC doesn't mean we suddenly get shared libraries
14034       # on systems that don't support them.
14035       lt_prog_compiler_can_build_shared_F77=no
14036       enable_shared=no
14037       ;;
14038
14039     sysv4*MP*)
14040       if test -d /usr/nec; then
14041         lt_prog_compiler_pic_F77=-Kconform_pic
14042       fi
14043       ;;
14044
14045     hpux*)
14046       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14047       # not for PA HP-UX.
14048       case "$host_cpu" in
14049       hppa*64*|ia64*)
14050         # +Z the default
14051         ;;
14052       *)
14053         lt_prog_compiler_pic_F77='-fPIC'
14054         ;;
14055       esac
14056       ;;
14057
14058     *)
14059       lt_prog_compiler_pic_F77='-fPIC'
14060       ;;
14061     esac
14062   else
14063     # PORTME Check for flag to pass linker flags through the system compiler.
14064     case $host_os in
14065     aix*)
14066       lt_prog_compiler_wl_F77='-Wl,'
14067       if test "$host_cpu" = ia64; then
14068         # AIX 5 now supports IA64 processor
14069         lt_prog_compiler_static_F77='-Bstatic'
14070       else
14071         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14072       fi
14073       ;;
14074       darwin*)
14075         # PIC is the default on this platform
14076         # Common symbols not allowed in MH_DYLIB files
14077        case $cc_basename in
14078          xlc*)
14079          lt_prog_compiler_pic_F77='-qnocommon'
14080          lt_prog_compiler_wl_F77='-Wl,'
14081          ;;
14082        esac
14083        ;;
14084
14085     mingw* | pw32* | os2*)
14086       # This hack is so that the source file can tell whether it is being
14087       # built for inclusion in a dll (and should export symbols for example).
14088       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14089       ;;
14090
14091     hpux9* | hpux10* | hpux11*)
14092       lt_prog_compiler_wl_F77='-Wl,'
14093       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14094       # not for PA HP-UX.
14095       case "$host_cpu" in
14096       hppa*64*|ia64*)
14097         # +Z the default
14098         ;;
14099       *)
14100         lt_prog_compiler_pic_F77='+Z'
14101         ;;
14102       esac
14103       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14104       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14105       ;;
14106
14107     irix5* | irix6* | nonstopux*)
14108       lt_prog_compiler_wl_F77='-Wl,'
14109       # PIC (with -KPIC) is the default.
14110       lt_prog_compiler_static_F77='-non_shared'
14111       ;;
14112
14113     newsos6)
14114       lt_prog_compiler_pic_F77='-KPIC'
14115       lt_prog_compiler_static_F77='-Bstatic'
14116       ;;
14117
14118     linux*)
14119       case $cc_basename in
14120       icc* | ecc*)
14121         lt_prog_compiler_wl_F77='-Wl,'
14122         lt_prog_compiler_pic_F77='-KPIC'
14123         lt_prog_compiler_static_F77='-static'
14124         ;;
14125       pgcc* | pgf77* | pgf90*)
14126         # Portland Group compilers (*not* the Pentium gcc compiler,
14127         # which looks to be a dead project)
14128         lt_prog_compiler_wl_F77='-Wl,'
14129         lt_prog_compiler_pic_F77='-fpic'
14130         lt_prog_compiler_static_F77='-static'
14131         ;;
14132       ccc*)
14133         lt_prog_compiler_wl_F77='-Wl,'
14134         # All Alpha code is PIC.
14135         lt_prog_compiler_static_F77='-non_shared'
14136         ;;
14137       esac
14138       ;;
14139
14140     osf3* | osf4* | osf5*)
14141       lt_prog_compiler_wl_F77='-Wl,'
14142       # All OSF/1 code is PIC.
14143       lt_prog_compiler_static_F77='-non_shared'
14144       ;;
14145
14146     sco3.2v5*)
14147       lt_prog_compiler_pic_F77='-Kpic'
14148       lt_prog_compiler_static_F77='-dn'
14149       ;;
14150
14151     solaris*)
14152       lt_prog_compiler_pic_F77='-KPIC'
14153       lt_prog_compiler_static_F77='-Bstatic'
14154       case $cc_basename in
14155       f77* | f90* | f95*)
14156         lt_prog_compiler_wl_F77='-Qoption ld ';;
14157       *)
14158         lt_prog_compiler_wl_F77='-Wl,';;
14159       esac
14160       ;;
14161
14162     sunos4*)
14163       lt_prog_compiler_wl_F77='-Qoption ld '
14164       lt_prog_compiler_pic_F77='-PIC'
14165       lt_prog_compiler_static_F77='-Bstatic'
14166       ;;
14167
14168     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14169       lt_prog_compiler_wl_F77='-Wl,'
14170       lt_prog_compiler_pic_F77='-KPIC'
14171       lt_prog_compiler_static_F77='-Bstatic'
14172       ;;
14173
14174     sysv4*MP*)
14175       if test -d /usr/nec ;then
14176         lt_prog_compiler_pic_F77='-Kconform_pic'
14177         lt_prog_compiler_static_F77='-Bstatic'
14178       fi
14179       ;;
14180
14181     unicos*)
14182       lt_prog_compiler_wl_F77='-Wl,'
14183       lt_prog_compiler_can_build_shared_F77=no
14184       ;;
14185
14186     uts4*)
14187       lt_prog_compiler_pic_F77='-pic'
14188       lt_prog_compiler_static_F77='-Bstatic'
14189       ;;
14190
14191     *)
14192       lt_prog_compiler_can_build_shared_F77=no
14193       ;;
14194     esac
14195   fi
14196
14197 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14198 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14199
14200 #
14201 # Check to make sure the PIC flag actually works.
14202 #
14203 if test -n "$lt_prog_compiler_pic_F77"; then
14204
14205 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14206 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14207 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   lt_prog_compiler_pic_works_F77=no
14211   ac_outfile=conftest.$ac_objext
14212    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14213    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14214    # Insert the option either (1) after the last *FLAGS variable, or
14215    # (2) before a word containing "conftest.", or (3) at the end.
14216    # Note that $ac_compile itself does not contain backslashes and begins
14217    # with a dollar sign (not a hyphen), so the echo should work correctly.
14218    # The option is referenced via a variable to avoid confusing sed.
14219    lt_compile=`echo "$ac_compile" | $SED \
14220    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14222    -e 's:$: $lt_compiler_flag:'`
14223    (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
14224    (eval "$lt_compile" 2>conftest.err)
14225    ac_status=$?
14226    cat conftest.err >&5
14227    echo "$as_me:14227: \$? = $ac_status" >&5
14228    if (exit $ac_status) && test -s "$ac_outfile"; then
14229      # The compiler can only warn and ignore the option if not recognized
14230      # So say no if there are warnings other than the usual output.
14231      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14232      $SED '/^$/d' conftest.err >conftest.er2
14233      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14234        lt_prog_compiler_pic_works_F77=yes
14235      fi
14236    fi
14237    $rm conftest*
14238
14239 fi
14240 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14241 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14242
14243 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14244     case $lt_prog_compiler_pic_F77 in
14245      "" | " "*) ;;
14246      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14247      esac
14248 else
14249     lt_prog_compiler_pic_F77=
14250      lt_prog_compiler_can_build_shared_F77=no
14251 fi
14252
14253 fi
14254 case "$host_os" in
14255   # For platforms which do not support PIC, -DPIC is meaningless:
14256   *djgpp*)
14257     lt_prog_compiler_pic_F77=
14258     ;;
14259   *)
14260     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14261     ;;
14262 esac
14263
14264 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14265 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14266 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269   lt_cv_prog_compiler_c_o_F77=no
14270    $rm -r conftest 2>/dev/null
14271    mkdir conftest
14272    cd conftest
14273    mkdir out
14274    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14275
14276    lt_compiler_flag="-o out/conftest2.$ac_objext"
14277    # Insert the option either (1) after the last *FLAGS variable, or
14278    # (2) before a word containing "conftest.", or (3) at the end.
14279    # Note that $ac_compile itself does not contain backslashes and begins
14280    # with a dollar sign (not a hyphen), so the echo should work correctly.
14281    lt_compile=`echo "$ac_compile" | $SED \
14282    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14284    -e 's:$: $lt_compiler_flag:'`
14285    (eval echo "\"\$as_me:14285: $lt_compile\"" >&5)
14286    (eval "$lt_compile" 2>out/conftest.err)
14287    ac_status=$?
14288    cat out/conftest.err >&5
14289    echo "$as_me:14289: \$? = $ac_status" >&5
14290    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14291    then
14292      # The compiler can only warn and ignore the option if not recognized
14293      # So say no if there are warnings
14294      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14295      $SED '/^$/d' out/conftest.err >out/conftest.er2
14296      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14297        lt_cv_prog_compiler_c_o_F77=yes
14298      fi
14299    fi
14300    chmod u+w .
14301    $rm conftest*
14302    # SGI C++ compiler will create directory out/ii_files/ for
14303    # template instantiation
14304    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14305    $rm out/* && rmdir out
14306    cd ..
14307    rmdir conftest
14308    $rm conftest*
14309
14310 fi
14311 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14312 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14313
14314
14315 hard_links="nottested"
14316 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14317   # do not overwrite the value of need_locks provided by the user
14318   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14319 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14320   hard_links=yes
14321   $rm conftest*
14322   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14323   touch conftest.a
14324   ln conftest.a conftest.b 2>&5 || hard_links=no
14325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14326   echo "$as_me:$LINENO: result: $hard_links" >&5
14327 echo "${ECHO_T}$hard_links" >&6
14328   if test "$hard_links" = no; then
14329     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14330 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14331     need_locks=warn
14332   fi
14333 else
14334   need_locks=no
14335 fi
14336
14337 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14338 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14339
14340   runpath_var=
14341   allow_undefined_flag_F77=
14342   enable_shared_with_static_runtimes_F77=no
14343   archive_cmds_F77=
14344   archive_expsym_cmds_F77=
14345   old_archive_From_new_cmds_F77=
14346   old_archive_from_expsyms_cmds_F77=
14347   export_dynamic_flag_spec_F77=
14348   whole_archive_flag_spec_F77=
14349   thread_safe_flag_spec_F77=
14350   hardcode_libdir_flag_spec_F77=
14351   hardcode_libdir_flag_spec_ld_F77=
14352   hardcode_libdir_separator_F77=
14353   hardcode_direct_F77=no
14354   hardcode_minus_L_F77=no
14355   hardcode_shlibpath_var_F77=unsupported
14356   link_all_deplibs_F77=unknown
14357   hardcode_automatic_F77=no
14358   module_cmds_F77=
14359   module_expsym_cmds_F77=
14360   always_export_symbols_F77=no
14361   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14362   # include_expsyms should be a list of space-separated symbols to be *always*
14363   # included in the symbol list
14364   include_expsyms_F77=
14365   # exclude_expsyms can be an extended regexp of symbols to exclude
14366   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14367   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14368   # as well as any symbol that contains `d'.
14369   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14370   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14371   # platforms (ab)use it in PIC code, but their linkers get confused if
14372   # the symbol is explicitly referenced.  Since portable code cannot
14373   # rely on this symbol name, it's probably fine to never include it in
14374   # preloaded symbol tables.
14375   extract_expsyms_cmds=
14376   # Just being paranoid about ensuring that cc_basename is set.
14377   for cc_temp in $compiler""; do
14378   case $cc_temp in
14379     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14380     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14381     \-*) ;;
14382     *) break;;
14383   esac
14384 done
14385 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14386
14387   case $host_os in
14388   cygwin* | mingw* | pw32*)
14389     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14390     # When not using gcc, we currently assume that we are using
14391     # Microsoft Visual C++.
14392     if test "$GCC" != yes; then
14393       with_gnu_ld=no
14394     fi
14395     ;;
14396   openbsd*)
14397     with_gnu_ld=no
14398     ;;
14399   esac
14400
14401   ld_shlibs_F77=yes
14402   if test "$with_gnu_ld" = yes; then
14403     # If archive_cmds runs LD, not CC, wlarc should be empty
14404     wlarc='${wl}'
14405
14406     # Set some defaults for GNU ld with shared library support. These
14407     # are reset later if shared libraries are not supported. Putting them
14408     # here allows them to be overridden if necessary.
14409     runpath_var=LD_RUN_PATH
14410     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14411     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14412     # ancient GNU ld didn't support --whole-archive et. al.
14413     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14414         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14415       else
14416         whole_archive_flag_spec_F77=
14417     fi
14418     supports_anon_versioning=no
14419     case `$LD -v 2>/dev/null` in
14420       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14421       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14422       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14423       *\ 2.11.*) ;; # other 2.11 versions
14424       *) supports_anon_versioning=yes ;;
14425     esac
14426
14427     # See if GNU ld supports shared libraries.
14428     case $host_os in
14429     aix3* | aix4* | aix5*)
14430       # On AIX/PPC, the GNU linker is very broken
14431       if test "$host_cpu" != ia64; then
14432         ld_shlibs_F77=no
14433         cat <<EOF 1>&2
14434
14435 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14436 *** to be unable to reliably create shared libraries on AIX.
14437 *** Therefore, libtool is disabling shared libraries support.  If you
14438 *** really care for shared libraries, you may want to modify your PATH
14439 *** so that a non-GNU linker is found, and then restart.
14440
14441 EOF
14442       fi
14443       ;;
14444
14445     amigaos*)
14446       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)'
14447       hardcode_libdir_flag_spec_F77='-L$libdir'
14448       hardcode_minus_L_F77=yes
14449
14450       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14451       # that the semantics of dynamic libraries on AmigaOS, at least up
14452       # to version 4, is to share data among multiple programs linked
14453       # with the same dynamic library.  Since this doesn't match the
14454       # behavior of shared libraries on other platforms, we can't use
14455       # them.
14456       ld_shlibs_F77=no
14457       ;;
14458
14459     beos*)
14460       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461         allow_undefined_flag_F77=unsupported
14462         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14463         # support --undefined.  This deserves some investigation.  FIXME
14464         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14465       else
14466         ld_shlibs_F77=no
14467       fi
14468       ;;
14469
14470     cygwin* | mingw* | pw32*)
14471       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14472       # as there is no search path for DLLs.
14473       hardcode_libdir_flag_spec_F77='-L$libdir'
14474       allow_undefined_flag_F77=unsupported
14475       always_export_symbols_F77=no
14476       enable_shared_with_static_runtimes_F77=yes
14477       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14478
14479       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14480         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14481         # If the export-symbols file already is a .def file (1st line
14482         # is EXPORTS), use it as is; otherwise, prepend...
14483         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14484           cp $export_symbols $output_objdir/$soname.def;
14485         else
14486           echo EXPORTS > $output_objdir/$soname.def;
14487           cat $export_symbols >> $output_objdir/$soname.def;
14488         fi~
14489         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14490       else
14491         ld_shlibs_F77=no
14492       fi
14493       ;;
14494
14495     linux*)
14496       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14497         tmp_addflag=
14498         case $cc_basename,$host_cpu in
14499         pgcc*)                          # Portland Group C compiler
14500           whole_archive_flag_spec_F77=
14501           ;;
14502         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14503           whole_archive_flag_spec_F77=
14504           tmp_addflag=' -fpic -Mnomain' ;;
14505         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14506           tmp_addflag=' -i_dynamic' ;;
14507         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14508           tmp_addflag=' -i_dynamic -nofor_main' ;;
14509         ifc* | ifort*)                  # Intel Fortran compiler
14510           tmp_addflag=' -nofor_main' ;;
14511         esac
14512         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14513
14514         if test $supports_anon_versioning = yes; then
14515           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14516   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14517   $echo "local: *; };" >> $output_objdir/$libname.ver~
14518           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14519         fi
14520       else
14521         ld_shlibs_F77=no
14522       fi
14523       ;;
14524
14525     netbsd*)
14526       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14527         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14528         wlarc=
14529       else
14530         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14531         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14532       fi
14533       ;;
14534
14535     solaris* | sysv5*)
14536       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14537         ld_shlibs_F77=no
14538         cat <<EOF 1>&2
14539
14540 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14541 *** create shared libraries on Solaris systems.  Therefore, libtool
14542 *** is disabling shared libraries support.  We urge you to upgrade GNU
14543 *** binutils to release 2.9.1 or newer.  Another option is to modify
14544 *** your PATH or compiler configuration so that the native linker is
14545 *** used, and then restart.
14546
14547 EOF
14548       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14549         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14551       else
14552         ld_shlibs_F77=no
14553       fi
14554       ;;
14555
14556     sunos4*)
14557       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14558       wlarc=
14559       hardcode_direct_F77=yes
14560       hardcode_shlibpath_var_F77=no
14561       ;;
14562
14563     *)
14564       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14565         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14567       else
14568         ld_shlibs_F77=no
14569       fi
14570       ;;
14571     esac
14572
14573     if test "$ld_shlibs_F77" = no; then
14574       runpath_var=
14575       hardcode_libdir_flag_spec_F77=
14576       export_dynamic_flag_spec_F77=
14577       whole_archive_flag_spec_F77=
14578     fi
14579   else
14580     # PORTME fill in a description of your system's linker (not GNU ld)
14581     case $host_os in
14582     aix3*)
14583       allow_undefined_flag_F77=unsupported
14584       always_export_symbols_F77=yes
14585       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'
14586       # Note: this linker hardcodes the directories in LIBPATH if there
14587       # are no directories specified by -L.
14588       hardcode_minus_L_F77=yes
14589       if test "$GCC" = yes && test -z "$link_static_flag"; then
14590         # Neither direct hardcoding nor static linking is supported with a
14591         # broken collect2.
14592         hardcode_direct_F77=unsupported
14593       fi
14594       ;;
14595
14596     aix4* | aix5*)
14597       if test "$host_cpu" = ia64; then
14598         # On IA64, the linker does run time linking by default, so we don't
14599         # have to do anything special.
14600         aix_use_runtimelinking=no
14601         exp_sym_flag='-Bexport'
14602         no_entry_flag=""
14603       else
14604         # If we're using GNU nm, then we don't want the "-C" option.
14605         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14606         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14607           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'
14608         else
14609           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'
14610         fi
14611         aix_use_runtimelinking=no
14612
14613         # Test if we are trying to use run time linking or normal
14614         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14615         # need to do runtime linking.
14616         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14617           for ld_flag in $LDFLAGS; do
14618           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14619             aix_use_runtimelinking=yes
14620             break
14621           fi
14622           done
14623         esac
14624
14625         exp_sym_flag='-bexport'
14626         no_entry_flag='-bnoentry'
14627       fi
14628
14629       # When large executables or shared objects are built, AIX ld can
14630       # have problems creating the table of contents.  If linking a library
14631       # or program results in "error TOC overflow" add -mminimal-toc to
14632       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14633       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14634
14635       archive_cmds_F77=''
14636       hardcode_direct_F77=yes
14637       hardcode_libdir_separator_F77=':'
14638       link_all_deplibs_F77=yes
14639
14640       if test "$GCC" = yes; then
14641         case $host_os in aix4.[012]|aix4.[012].*)
14642         # We only want to do this on AIX 4.2 and lower, the check
14643         # below for broken collect2 doesn't work under 4.3+
14644           collect2name=`${CC} -print-prog-name=collect2`
14645           if test -f "$collect2name" && \
14646            strings "$collect2name" | grep resolve_lib_name >/dev/null
14647           then
14648           # We have reworked collect2
14649           hardcode_direct_F77=yes
14650           else
14651           # We have old collect2
14652           hardcode_direct_F77=unsupported
14653           # It fails to find uninstalled libraries when the uninstalled
14654           # path is not listed in the libpath.  Setting hardcode_minus_L
14655           # to unsupported forces relinking
14656           hardcode_minus_L_F77=yes
14657           hardcode_libdir_flag_spec_F77='-L$libdir'
14658           hardcode_libdir_separator_F77=
14659           fi
14660         esac
14661         shared_flag='-shared'
14662         if test "$aix_use_runtimelinking" = yes; then
14663           shared_flag="$shared_flag "'${wl}-G'
14664         fi
14665       else
14666         # not using gcc
14667         if test "$host_cpu" = ia64; then
14668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14669         # chokes on -Wl,-G. The following line is correct:
14670           shared_flag='-G'
14671         else
14672         if test "$aix_use_runtimelinking" = yes; then
14673             shared_flag='${wl}-G'
14674           else
14675             shared_flag='${wl}-bM:SRE'
14676         fi
14677         fi
14678       fi
14679
14680       # It seems that -bexpall does not export symbols beginning with
14681       # underscore (_), so it is better to generate a list of symbols to export.
14682       always_export_symbols_F77=yes
14683       if test "$aix_use_runtimelinking" = yes; then
14684         # Warning - without using the other runtime loading flags (-brtl),
14685         # -berok will link without error, but may produce a broken library.
14686         allow_undefined_flag_F77='-berok'
14687        # Determine the default libpath from the value encoded in an empty executable.
14688        cat >conftest.$ac_ext <<_ACEOF
14689       program main
14690
14691       end
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14695   (eval $ac_link) 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } &&
14702          { ac_try='test -z "$ac_f77_werror_flag"
14703                          || test ! -s conftest.err'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; } &&
14709          { ac_try='test -s conftest$ac_exeext'
14710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711   (eval $ac_try) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715
14716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14717 }'`
14718 # Check for a 64-bit object if we didn't find anything.
14719 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; }
14720 }'`; fi
14721 else
14722   echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725 fi
14726 rm -f conftest.err conftest.$ac_objext \
14727       conftest$ac_exeext conftest.$ac_ext
14728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14729
14730        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14731         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"
14732        else
14733         if test "$host_cpu" = ia64; then
14734           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14735           allow_undefined_flag_F77="-z nodefs"
14736           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"
14737         else
14738          # Determine the default libpath from the value encoded in an empty executable.
14739          cat >conftest.$ac_ext <<_ACEOF
14740       program main
14741
14742       end
14743 _ACEOF
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14746   (eval $ac_link) 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -z "$ac_f77_werror_flag"
14754                          || test ! -s conftest.err'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; } &&
14760          { ac_try='test -s conftest$ac_exeext'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766
14767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14768 }'`
14769 # Check for a 64-bit object if we didn't find anything.
14770 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; }
14771 }'`; fi
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 fi
14777 rm -f conftest.err conftest.$ac_objext \
14778       conftest$ac_exeext conftest.$ac_ext
14779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14780
14781          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782           # Warning - without using the other run time loading flags,
14783           # -berok will link without error, but may produce a broken library.
14784           no_undefined_flag_F77=' ${wl}-bernotok'
14785           allow_undefined_flag_F77=' ${wl}-berok'
14786           # -bexpall does not export symbols beginning with underscore (_)
14787           always_export_symbols_F77=yes
14788           # Exported symbols can be pulled into shared objects from archives
14789           whole_archive_flag_spec_F77=' '
14790           archive_cmds_need_lc_F77=yes
14791           # This is similar to how AIX traditionally builds it's shared libraries.
14792           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'
14793         fi
14794       fi
14795       ;;
14796
14797     amigaos*)
14798       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)'
14799       hardcode_libdir_flag_spec_F77='-L$libdir'
14800       hardcode_minus_L_F77=yes
14801       # see comment about different semantics on the GNU ld section
14802       ld_shlibs_F77=no
14803       ;;
14804
14805     bsdi[45]*)
14806       export_dynamic_flag_spec_F77=-rdynamic
14807       ;;
14808
14809     cygwin* | mingw* | pw32*)
14810       # When not using gcc, we currently assume that we are using
14811       # Microsoft Visual C++.
14812       # hardcode_libdir_flag_spec is actually meaningless, as there is
14813       # no search path for DLLs.
14814       hardcode_libdir_flag_spec_F77=' '
14815       allow_undefined_flag_F77=unsupported
14816       # Tell ltmain to make .lib files, not .a files.
14817       libext=lib
14818       # Tell ltmain to make .dll files, not .so files.
14819       shrext_cmds=".dll"
14820       # FIXME: Setting linknames here is a bad hack.
14821       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14822       # The linker will automatically build a .lib file if we build a DLL.
14823       old_archive_From_new_cmds_F77='true'
14824       # FIXME: Should let the user specify the lib program.
14825       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14826       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14827       enable_shared_with_static_runtimes_F77=yes
14828       ;;
14829
14830     darwin* | rhapsody*)
14831       case "$host_os" in
14832         rhapsody* | darwin1.[012])
14833          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14834          ;;
14835        *) # Darwin 1.3 on
14836          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14837            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14838          else
14839            case ${MACOSX_DEPLOYMENT_TARGET} in
14840              10.[012])
14841                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14842                ;;
14843              10.*)
14844                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14845                ;;
14846            esac
14847          fi
14848          ;;
14849       esac
14850       archive_cmds_need_lc_F77=no
14851       hardcode_direct_F77=no
14852       hardcode_automatic_F77=yes
14853       hardcode_shlibpath_var_F77=unsupported
14854       whole_archive_flag_spec_F77=''
14855       link_all_deplibs_F77=yes
14856     if test "$GCC" = yes ; then
14857         output_verbose_link_cmd='echo'
14858         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14859       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14860       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14861       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}'
14862       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}'
14863     else
14864       case $cc_basename in
14865         xlc*)
14866          output_verbose_link_cmd='echo'
14867          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14868          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14869           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14870          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}'
14871           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}'
14872           ;;
14873        *)
14874          ld_shlibs_F77=no
14875           ;;
14876       esac
14877     fi
14878       ;;
14879
14880     dgux*)
14881       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882       hardcode_libdir_flag_spec_F77='-L$libdir'
14883       hardcode_shlibpath_var_F77=no
14884       ;;
14885
14886     freebsd1*)
14887       ld_shlibs_F77=no
14888       ;;
14889
14890     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14891     # support.  Future versions do this automatically, but an explicit c++rt0.o
14892     # does not break anything, and helps significantly (at the cost of a little
14893     # extra space).
14894     freebsd2.2*)
14895       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14896       hardcode_libdir_flag_spec_F77='-R$libdir'
14897       hardcode_direct_F77=yes
14898       hardcode_shlibpath_var_F77=no
14899       ;;
14900
14901     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14902     freebsd2*)
14903       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14904       hardcode_direct_F77=yes
14905       hardcode_minus_L_F77=yes
14906       hardcode_shlibpath_var_F77=no
14907       ;;
14908
14909     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14910     freebsd* | kfreebsd*-gnu | dragonfly*)
14911       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14912       hardcode_libdir_flag_spec_F77='-R$libdir'
14913       hardcode_direct_F77=yes
14914       hardcode_shlibpath_var_F77=no
14915       ;;
14916
14917     hpux9*)
14918       if test "$GCC" = yes; then
14919         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'
14920       else
14921         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'
14922       fi
14923       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14924       hardcode_libdir_separator_F77=:
14925       hardcode_direct_F77=yes
14926
14927       # hardcode_minus_L: Not really in the search PATH,
14928       # but as the default location of the library.
14929       hardcode_minus_L_F77=yes
14930       export_dynamic_flag_spec_F77='${wl}-E'
14931       ;;
14932
14933     hpux10* | hpux11*)
14934       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14935         case "$host_cpu" in
14936         hppa*64*|ia64*)
14937           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14938           ;;
14939         *)
14940           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14941           ;;
14942         esac
14943       else
14944         case "$host_cpu" in
14945         hppa*64*|ia64*)
14946           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14947           ;;
14948         *)
14949           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14950           ;;
14951         esac
14952       fi
14953       if test "$with_gnu_ld" = no; then
14954         case "$host_cpu" in
14955         hppa*64*)
14956           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14957           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14958           hardcode_libdir_separator_F77=:
14959           hardcode_direct_F77=no
14960           hardcode_shlibpath_var_F77=no
14961           ;;
14962         ia64*)
14963           hardcode_libdir_flag_spec_F77='-L$libdir'
14964           hardcode_direct_F77=no
14965           hardcode_shlibpath_var_F77=no
14966
14967           # hardcode_minus_L: Not really in the search PATH,
14968           # but as the default location of the library.
14969           hardcode_minus_L_F77=yes
14970           ;;
14971         *)
14972           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14973           hardcode_libdir_separator_F77=:
14974           hardcode_direct_F77=yes
14975           export_dynamic_flag_spec_F77='${wl}-E'
14976
14977           # hardcode_minus_L: Not really in the search PATH,
14978           # but as the default location of the library.
14979           hardcode_minus_L_F77=yes
14980           ;;
14981         esac
14982       fi
14983       ;;
14984
14985     irix5* | irix6* | nonstopux*)
14986       if test "$GCC" = yes; then
14987         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'
14988       else
14989         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'
14990         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14991       fi
14992       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14993       hardcode_libdir_separator_F77=:
14994       link_all_deplibs_F77=yes
14995       ;;
14996
14997     netbsd*)
14998       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15000       else
15001         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15002       fi
15003       hardcode_libdir_flag_spec_F77='-R$libdir'
15004       hardcode_direct_F77=yes
15005       hardcode_shlibpath_var_F77=no
15006       ;;
15007
15008     newsos6)
15009       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010       hardcode_direct_F77=yes
15011       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15012       hardcode_libdir_separator_F77=:
15013       hardcode_shlibpath_var_F77=no
15014       ;;
15015
15016     openbsd*)
15017       hardcode_direct_F77=yes
15018       hardcode_shlibpath_var_F77=no
15019       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15020         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15021         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15022         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15023         export_dynamic_flag_spec_F77='${wl}-E'
15024       else
15025        case $host_os in
15026          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15027            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15028            hardcode_libdir_flag_spec_F77='-R$libdir'
15029            ;;
15030          *)
15031            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15032            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15033            ;;
15034        esac
15035       fi
15036       ;;
15037
15038     os2*)
15039       hardcode_libdir_flag_spec_F77='-L$libdir'
15040       hardcode_minus_L_F77=yes
15041       allow_undefined_flag_F77=unsupported
15042       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'
15043       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15044       ;;
15045
15046     osf3*)
15047       if test "$GCC" = yes; then
15048         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15049         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'
15050       else
15051         allow_undefined_flag_F77=' -expect_unresolved \*'
15052         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'
15053       fi
15054       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055       hardcode_libdir_separator_F77=:
15056       ;;
15057
15058     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15059       if test "$GCC" = yes; then
15060         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15061         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'
15062         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15063       else
15064         allow_undefined_flag_F77=' -expect_unresolved \*'
15065         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'
15066         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~
15067         $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'
15068
15069         # Both c and cxx compiler support -rpath directly
15070         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15071       fi
15072       hardcode_libdir_separator_F77=:
15073       ;;
15074
15075     sco3.2v5*)
15076       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15077       hardcode_shlibpath_var_F77=no
15078       export_dynamic_flag_spec_F77='${wl}-Bexport'
15079       runpath_var=LD_RUN_PATH
15080       hardcode_runpath_var=yes
15081       ;;
15082
15083     solaris*)
15084       no_undefined_flag_F77=' -z text'
15085       if test "$GCC" = yes; then
15086         wlarc='${wl}'
15087         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15089           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15090       else
15091         wlarc=''
15092         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15094         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15095       fi
15096       hardcode_libdir_flag_spec_F77='-R$libdir'
15097       hardcode_shlibpath_var_F77=no
15098       case $host_os in
15099       solaris2.[0-5] | solaris2.[0-5].*) ;;
15100       *)
15101         # The compiler driver will combine linker options so we
15102         # cannot just pass the convience library names through
15103         # without $wl, iff we do not link with $LD.
15104         # Luckily, gcc supports the same syntax we need for Sun Studio.
15105         # Supported since Solaris 2.6 (maybe 2.5.1?)
15106         case $wlarc in
15107         '')
15108           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15109         *)
15110           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' ;;
15111         esac ;;
15112       esac
15113       link_all_deplibs_F77=yes
15114       ;;
15115
15116     sunos4*)
15117       if test "x$host_vendor" = xsequent; then
15118         # Use $CC to link under sequent, because it throws in some extra .o
15119         # files that make .init and .fini sections work.
15120         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15121       else
15122         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15123       fi
15124       hardcode_libdir_flag_spec_F77='-L$libdir'
15125       hardcode_direct_F77=yes
15126       hardcode_minus_L_F77=yes
15127       hardcode_shlibpath_var_F77=no
15128       ;;
15129
15130     sysv4)
15131       case $host_vendor in
15132         sni)
15133           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134           hardcode_direct_F77=yes # is this really true???
15135         ;;
15136         siemens)
15137           ## LD is ld it makes a PLAMLIB
15138           ## CC just makes a GrossModule.
15139           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15140           reload_cmds_F77='$CC -r -o $output$reload_objs'
15141           hardcode_direct_F77=no
15142         ;;
15143         motorola)
15144           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15146         ;;
15147       esac
15148       runpath_var='LD_RUN_PATH'
15149       hardcode_shlibpath_var_F77=no
15150       ;;
15151
15152     sysv4.3*)
15153       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154       hardcode_shlibpath_var_F77=no
15155       export_dynamic_flag_spec_F77='-Bexport'
15156       ;;
15157
15158     sysv4*MP*)
15159       if test -d /usr/nec; then
15160         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161         hardcode_shlibpath_var_F77=no
15162         runpath_var=LD_RUN_PATH
15163         hardcode_runpath_var=yes
15164         ld_shlibs_F77=yes
15165       fi
15166       ;;
15167
15168     sysv4.2uw2*)
15169       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15170       hardcode_direct_F77=yes
15171       hardcode_minus_L_F77=no
15172       hardcode_shlibpath_var_F77=no
15173       hardcode_runpath_var=yes
15174       runpath_var=LD_RUN_PATH
15175       ;;
15176
15177    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15178       no_undefined_flag_F77='${wl}-z ${wl}text'
15179       if test "$GCC" = yes; then
15180         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15181       else
15182         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15183       fi
15184       runpath_var='LD_RUN_PATH'
15185       hardcode_shlibpath_var_F77=no
15186       ;;
15187
15188     sysv5*)
15189       no_undefined_flag_F77=' -z text'
15190       # $CC -shared without GNU ld will not create a library from C++
15191       # object files and a static libstdc++, better avoid it by now
15192       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15194                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15195       hardcode_libdir_flag_spec_F77=
15196       hardcode_shlibpath_var_F77=no
15197       runpath_var='LD_RUN_PATH'
15198       ;;
15199
15200     uts4*)
15201       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202       hardcode_libdir_flag_spec_F77='-L$libdir'
15203       hardcode_shlibpath_var_F77=no
15204       ;;
15205
15206     *)
15207       ld_shlibs_F77=no
15208       ;;
15209     esac
15210   fi
15211
15212 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15215
15216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15217 if test "$GCC" = yes; then
15218   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15219 fi
15220
15221 #
15222 # Do we need to explicitly link libc?
15223 #
15224 case "x$archive_cmds_need_lc_F77" in
15225 x|xyes)
15226   # Assume -lc should be added
15227   archive_cmds_need_lc_F77=yes
15228
15229   if test "$enable_shared" = yes && test "$GCC" = yes; then
15230     case $archive_cmds_F77 in
15231     *'~'*)
15232       # FIXME: we may have to deal with multi-command sequences.
15233       ;;
15234     '$CC '*)
15235       # Test whether the compiler implicitly links with -lc since on some
15236       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15237       # to ld, don't add -lc before -lgcc.
15238       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15239 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15240       $rm conftest*
15241       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15242
15243       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244   (eval $ac_compile) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } 2>conftest.err; then
15248         soname=conftest
15249         lib=conftest
15250         libobjs=conftest.$ac_objext
15251         deplibs=
15252         wl=$lt_prog_compiler_wl_F77
15253         compiler_flags=-v
15254         linker_flags=-v
15255         verstring=
15256         output_objdir=.
15257         libname=conftest
15258         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15259         allow_undefined_flag_F77=
15260         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15261   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }
15265         then
15266           archive_cmds_need_lc_F77=no
15267         else
15268           archive_cmds_need_lc_F77=yes
15269         fi
15270         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15271       else
15272         cat conftest.err 1>&5
15273       fi
15274       $rm conftest*
15275       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15276 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15277       ;;
15278     esac
15279   fi
15280   ;;
15281 esac
15282
15283 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15285 library_names_spec=
15286 libname_spec='lib$name'
15287 soname_spec=
15288 shrext_cmds=".so"
15289 postinstall_cmds=
15290 postuninstall_cmds=
15291 finish_cmds=
15292 finish_eval=
15293 shlibpath_var=
15294 shlibpath_overrides_runpath=unknown
15295 version_type=none
15296 dynamic_linker="$host_os ld.so"
15297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15298 if test "$GCC" = yes; then
15299   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15300   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15301     # if the path contains ";" then we assume it to be the separator
15302     # otherwise default to the standard path separator (i.e. ":") - it is
15303     # assumed that no part of a normal pathname contains ";" but that should
15304     # okay in the real world where ";" in dirpaths is itself problematic.
15305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15306   else
15307     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15308   fi
15309 else
15310   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15311 fi
15312 need_lib_prefix=unknown
15313 hardcode_into_libs=no
15314
15315 # when you set need_version to no, make sure it does not cause -set_version
15316 # flags to be left without arguments
15317 need_version=unknown
15318
15319 case $host_os in
15320 aix3*)
15321   version_type=linux
15322   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323   shlibpath_var=LIBPATH
15324
15325   # AIX 3 has no versioning support, so we append a major version to the name.
15326   soname_spec='${libname}${release}${shared_ext}$major'
15327   ;;
15328
15329 aix4* | aix5*)
15330   version_type=linux
15331   need_lib_prefix=no
15332   need_version=no
15333   hardcode_into_libs=yes
15334   if test "$host_cpu" = ia64; then
15335     # AIX 5 supports IA64
15336     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337     shlibpath_var=LD_LIBRARY_PATH
15338   else
15339     # With GCC up to 2.95.x, collect2 would create an import file
15340     # for dependence libraries.  The import file would start with
15341     # the line `#! .'.  This would cause the generated library to
15342     # depend on `.', always an invalid library.  This was fixed in
15343     # development snapshots of GCC prior to 3.0.
15344     case $host_os in
15345       aix4 | aix4.[01] | aix4.[01].*)
15346       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15347            echo ' yes '
15348            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15349         :
15350       else
15351         can_build_shared=no
15352       fi
15353       ;;
15354     esac
15355     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356     # soname into executable. Probably we can add versioning support to
15357     # collect2, so additional links can be useful in future.
15358     if test "$aix_use_runtimelinking" = yes; then
15359       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360       # instead of lib<name>.a to let people know that these are not
15361       # typical AIX shared libraries.
15362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363     else
15364       # We preserve .a as extension for shared libraries through AIX4.2
15365       # and later when we are not doing run time linking.
15366       library_names_spec='${libname}${release}.a $libname.a'
15367       soname_spec='${libname}${release}${shared_ext}$major'
15368     fi
15369     shlibpath_var=LIBPATH
15370   fi
15371   ;;
15372
15373 amigaos*)
15374   library_names_spec='$libname.ixlibrary $libname.a'
15375   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15376   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'
15377   ;;
15378
15379 beos*)
15380   library_names_spec='${libname}${shared_ext}'
15381   dynamic_linker="$host_os ld.so"
15382   shlibpath_var=LIBRARY_PATH
15383   ;;
15384
15385 bsdi[45]*)
15386   version_type=linux
15387   need_version=no
15388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389   soname_spec='${libname}${release}${shared_ext}$major'
15390   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15391   shlibpath_var=LD_LIBRARY_PATH
15392   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15393   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15394   # the default ld.so.conf also contains /usr/contrib/lib and
15395   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15396   # libtool to hard-code these into programs
15397   ;;
15398
15399 cygwin* | mingw* | pw32*)
15400   version_type=windows
15401   shrext_cmds=".dll"
15402   need_version=no
15403   need_lib_prefix=no
15404
15405   case $GCC,$host_os in
15406   yes,cygwin* | yes,mingw* | yes,pw32*)
15407     library_names_spec='$libname.dll.a'
15408     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409     postinstall_cmds='base_file=`basename \${file}`~
15410       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15411       dldir=$destdir/`dirname \$dlpath`~
15412       test -d \$dldir || mkdir -p \$dldir~
15413       $install_prog $dir/$dlname \$dldir/$dlname'
15414     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15415       dlpath=$dir/\$dldll~
15416        $rm \$dlpath'
15417     shlibpath_overrides_runpath=yes
15418
15419     case $host_os in
15420     cygwin*)
15421       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15422       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15423       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15424       ;;
15425     mingw*)
15426       # MinGW DLLs use traditional 'lib' prefix
15427       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15428       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15429       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15430         # It is most probably a Windows format PATH printed by
15431         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15432         # path with ; separators, and with drive letters. We can handle the
15433         # drive letters (cygwin fileutils understands them), so leave them,
15434         # especially as we might pass files found there to a mingw objdump,
15435         # which wouldn't understand a cygwinified path. Ahh.
15436         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15437       else
15438         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15439       fi
15440       ;;
15441     pw32*)
15442       # pw32 DLLs use 'pw' prefix rather than 'lib'
15443       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15444       ;;
15445     esac
15446     ;;
15447
15448   *)
15449     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15450     ;;
15451   esac
15452   dynamic_linker='Win32 ld.exe'
15453   # FIXME: first we should search . and the directory the executable is in
15454   shlibpath_var=PATH
15455   ;;
15456
15457 darwin* | rhapsody*)
15458   dynamic_linker="$host_os dyld"
15459   version_type=darwin
15460   need_lib_prefix=no
15461   need_version=no
15462   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15463   soname_spec='${libname}${release}${major}$shared_ext'
15464   shlibpath_overrides_runpath=yes
15465   shlibpath_var=DYLD_LIBRARY_PATH
15466   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15467   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15468   if test "$GCC" = yes; then
15469     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"`
15470   else
15471     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15472   fi
15473   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15474   ;;
15475
15476 dgux*)
15477   version_type=linux
15478   need_lib_prefix=no
15479   need_version=no
15480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15481   soname_spec='${libname}${release}${shared_ext}$major'
15482   shlibpath_var=LD_LIBRARY_PATH
15483   ;;
15484
15485 freebsd1*)
15486   dynamic_linker=no
15487   ;;
15488
15489 kfreebsd*-gnu)
15490   version_type=linux
15491   need_lib_prefix=no
15492   need_version=no
15493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15494   soname_spec='${libname}${release}${shared_ext}$major'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   shlibpath_overrides_runpath=no
15497   hardcode_into_libs=yes
15498   dynamic_linker='GNU ld.so'
15499   ;;
15500
15501 freebsd* | dragonfly*)
15502   # DragonFly does not have aout.  When/if they implement a new
15503   # versioning mechanism, adjust this.
15504   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15505   version_type=freebsd-$objformat
15506   case $version_type in
15507     freebsd-elf*)
15508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15509       need_version=no
15510       need_lib_prefix=no
15511       ;;
15512     freebsd-*)
15513       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15514       need_version=yes
15515       ;;
15516   esac
15517   shlibpath_var=LD_LIBRARY_PATH
15518   case $host_os in
15519   freebsd2*)
15520     shlibpath_overrides_runpath=yes
15521     ;;
15522   freebsd3.[01]* | freebsdelf3.[01]*)
15523     shlibpath_overrides_runpath=yes
15524     hardcode_into_libs=yes
15525     ;;
15526   *) # from 3.2 on
15527     shlibpath_overrides_runpath=no
15528     hardcode_into_libs=yes
15529     ;;
15530   esac
15531   ;;
15532
15533 gnu*)
15534   version_type=linux
15535   need_lib_prefix=no
15536   need_version=no
15537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15538   soname_spec='${libname}${release}${shared_ext}$major'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   hardcode_into_libs=yes
15541   ;;
15542
15543 hpux9* | hpux10* | hpux11*)
15544   # Give a soname corresponding to the major version so that dld.sl refuses to
15545   # link against other versions.
15546   version_type=sunos
15547   need_lib_prefix=no
15548   need_version=no
15549   case "$host_cpu" in
15550   ia64*)
15551     shrext_cmds='.so'
15552     hardcode_into_libs=yes
15553     dynamic_linker="$host_os dld.so"
15554     shlibpath_var=LD_LIBRARY_PATH
15555     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557     soname_spec='${libname}${release}${shared_ext}$major'
15558     if test "X$HPUX_IA64_MODE" = X32; then
15559       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15560     else
15561       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15562     fi
15563     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15564     ;;
15565    hppa*64*)
15566      shrext_cmds='.sl'
15567      hardcode_into_libs=yes
15568      dynamic_linker="$host_os dld.sl"
15569      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15570      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572      soname_spec='${libname}${release}${shared_ext}$major'
15573      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15574      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15575      ;;
15576    *)
15577     shrext_cmds='.sl'
15578     dynamic_linker="$host_os dld.sl"
15579     shlibpath_var=SHLIB_PATH
15580     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582     soname_spec='${libname}${release}${shared_ext}$major'
15583     ;;
15584   esac
15585   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15586   postinstall_cmds='chmod 555 $lib'
15587   ;;
15588
15589 irix5* | irix6* | nonstopux*)
15590   case $host_os in
15591     nonstopux*) version_type=nonstopux ;;
15592     *)
15593         if test "$lt_cv_prog_gnu_ld" = yes; then
15594                 version_type=linux
15595         else
15596                 version_type=irix
15597         fi ;;
15598   esac
15599   need_lib_prefix=no
15600   need_version=no
15601   soname_spec='${libname}${release}${shared_ext}$major'
15602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15603   case $host_os in
15604   irix5* | nonstopux*)
15605     libsuff= shlibsuff=
15606     ;;
15607   *)
15608     case $LD in # libtool.m4 will add one of these switches to LD
15609     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15610       libsuff= shlibsuff= libmagic=32-bit;;
15611     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15612       libsuff=32 shlibsuff=N32 libmagic=N32;;
15613     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15614       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15615     *) libsuff= shlibsuff= libmagic=never-match;;
15616     esac
15617     ;;
15618   esac
15619   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15620   shlibpath_overrides_runpath=no
15621   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15622   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15623   hardcode_into_libs=yes
15624   ;;
15625
15626 # No shared lib support for Linux oldld, aout, or coff.
15627 linux*oldld* | linux*aout* | linux*coff*)
15628   dynamic_linker=no
15629   ;;
15630
15631 # This must be Linux ELF.
15632 linux*)
15633   version_type=linux
15634   need_lib_prefix=no
15635   need_version=no
15636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637   soname_spec='${libname}${release}${shared_ext}$major'
15638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15639   shlibpath_var=LD_LIBRARY_PATH
15640   shlibpath_overrides_runpath=no
15641   # This implies no fast_install, which is unacceptable.
15642   # Some rework will be needed to allow for fast_install
15643   # before this can be enabled.
15644   hardcode_into_libs=yes
15645
15646   # find out which ABI we are using
15647   libsuff=
15648   case "$host_cpu" in
15649   x86_64*|s390x*|powerpc64*)
15650     echo '#line 15650 "configure"' > conftest.$ac_ext
15651     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15652   (eval $ac_compile) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; then
15656       case `/usr/bin/file conftest.$ac_objext` in
15657       *64-bit*)
15658         libsuff=64
15659         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15660         ;;
15661       esac
15662     fi
15663     rm -rf conftest*
15664     ;;
15665   esac
15666
15667   # Append ld.so.conf contents to the search path
15668   if test -f /etc/ld.so.conf; then
15669     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' ' '`
15670     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15671   fi
15672
15673   # We used to test for /lib/ld.so.1 and disable shared libraries on
15674   # powerpc, because MkLinux only supported shared libraries with the
15675   # GNU dynamic linker.  Since this was broken with cross compilers,
15676   # most powerpc-linux boxes support dynamic linking these days and
15677   # people can always --disable-shared, the test was removed, and we
15678   # assume the GNU/Linux dynamic linker is in use.
15679   dynamic_linker='GNU/Linux ld.so'
15680   ;;
15681
15682 knetbsd*-gnu)
15683   version_type=linux
15684   need_lib_prefix=no
15685   need_version=no
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   shlibpath_var=LD_LIBRARY_PATH
15689   shlibpath_overrides_runpath=no
15690   hardcode_into_libs=yes
15691   dynamic_linker='GNU ld.so'
15692   ;;
15693
15694 netbsd*)
15695   version_type=sunos
15696   need_lib_prefix=no
15697   need_version=no
15698   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15701     dynamic_linker='NetBSD (a.out) ld.so'
15702   else
15703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704     soname_spec='${libname}${release}${shared_ext}$major'
15705     dynamic_linker='NetBSD ld.elf_so'
15706   fi
15707   shlibpath_var=LD_LIBRARY_PATH
15708   shlibpath_overrides_runpath=yes
15709   hardcode_into_libs=yes
15710   ;;
15711
15712 newsos6)
15713   version_type=linux
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=yes
15717   ;;
15718
15719 nto-qnx*)
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   shlibpath_overrides_runpath=yes
15727   ;;
15728
15729 openbsd*)
15730   version_type=sunos
15731   need_lib_prefix=no
15732   need_version=no
15733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15735   shlibpath_var=LD_LIBRARY_PATH
15736   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15737     case $host_os in
15738       openbsd2.[89] | openbsd2.[89].*)
15739         shlibpath_overrides_runpath=no
15740         ;;
15741       *)
15742         shlibpath_overrides_runpath=yes
15743         ;;
15744       esac
15745   else
15746     shlibpath_overrides_runpath=yes
15747   fi
15748   ;;
15749
15750 os2*)
15751   libname_spec='$name'
15752   shrext_cmds=".dll"
15753   need_lib_prefix=no
15754   library_names_spec='$libname${shared_ext} $libname.a'
15755   dynamic_linker='OS/2 ld.exe'
15756   shlibpath_var=LIBPATH
15757   ;;
15758
15759 osf3* | osf4* | osf5*)
15760   version_type=osf
15761   need_lib_prefix=no
15762   need_version=no
15763   soname_spec='${libname}${release}${shared_ext}$major'
15764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765   shlibpath_var=LD_LIBRARY_PATH
15766   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15767   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15768   ;;
15769
15770 sco3.2v5*)
15771   version_type=osf
15772   soname_spec='${libname}${release}${shared_ext}$major'
15773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774   shlibpath_var=LD_LIBRARY_PATH
15775   ;;
15776
15777 solaris*)
15778   version_type=linux
15779   need_lib_prefix=no
15780   need_version=no
15781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782   soname_spec='${libname}${release}${shared_ext}$major'
15783   shlibpath_var=LD_LIBRARY_PATH
15784   shlibpath_overrides_runpath=yes
15785   hardcode_into_libs=yes
15786   # ldd complains unless libraries are executable
15787   postinstall_cmds='chmod +x $lib'
15788   ;;
15789
15790 sunos4*)
15791   version_type=sunos
15792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15794   shlibpath_var=LD_LIBRARY_PATH
15795   shlibpath_overrides_runpath=yes
15796   if test "$with_gnu_ld" = yes; then
15797     need_lib_prefix=no
15798   fi
15799   need_version=yes
15800   ;;
15801
15802 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15803   version_type=linux
15804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805   soname_spec='${libname}${release}${shared_ext}$major'
15806   shlibpath_var=LD_LIBRARY_PATH
15807   case $host_vendor in
15808     sni)
15809       shlibpath_overrides_runpath=no
15810       need_lib_prefix=no
15811       export_dynamic_flag_spec='${wl}-Blargedynsym'
15812       runpath_var=LD_RUN_PATH
15813       ;;
15814     siemens)
15815       need_lib_prefix=no
15816       ;;
15817     motorola)
15818       need_lib_prefix=no
15819       need_version=no
15820       shlibpath_overrides_runpath=no
15821       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15822       ;;
15823   esac
15824   ;;
15825
15826 sysv4*MP*)
15827   if test -d /usr/nec ;then
15828     version_type=linux
15829     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15830     soname_spec='$libname${shared_ext}.$major'
15831     shlibpath_var=LD_LIBRARY_PATH
15832   fi
15833   ;;
15834
15835 uts4*)
15836   version_type=linux
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838   soname_spec='${libname}${release}${shared_ext}$major'
15839   shlibpath_var=LD_LIBRARY_PATH
15840   ;;
15841
15842 *)
15843   dynamic_linker=no
15844   ;;
15845 esac
15846 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15847 echo "${ECHO_T}$dynamic_linker" >&6
15848 test "$dynamic_linker" = no && can_build_shared=no
15849
15850 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15852 hardcode_action_F77=
15853 if test -n "$hardcode_libdir_flag_spec_F77" || \
15854    test -n "$runpath_var_F77" || \
15855    test "X$hardcode_automatic_F77" = "Xyes" ; then
15856
15857   # We can hardcode non-existant directories.
15858   if test "$hardcode_direct_F77" != no &&
15859      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15860      # have to relink, otherwise we might link with an installed library
15861      # when we should be linking with a yet-to-be-installed one
15862      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15863      test "$hardcode_minus_L_F77" != no; then
15864     # Linking always hardcodes the temporary library directory.
15865     hardcode_action_F77=relink
15866   else
15867     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15868     hardcode_action_F77=immediate
15869   fi
15870 else
15871   # We cannot hardcode anything, or else we can only hardcode existing
15872   # directories.
15873   hardcode_action_F77=unsupported
15874 fi
15875 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15876 echo "${ECHO_T}$hardcode_action_F77" >&6
15877
15878 if test "$hardcode_action_F77" = relink; then
15879   # Fast installation is not supported
15880   enable_fast_install=no
15881 elif test "$shlibpath_overrides_runpath" = yes ||
15882      test "$enable_shared" = no; then
15883   # Fast installation is not necessary
15884   enable_fast_install=needless
15885 fi
15886
15887 striplib=
15888 old_striplib=
15889 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15890 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15891 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15892   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15893   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15894   echo "$as_me:$LINENO: result: yes" >&5
15895 echo "${ECHO_T}yes" >&6
15896 else
15897 # FIXME - insert some real tests, host_os isn't really good enough
15898   case $host_os in
15899    darwin*)
15900        if test -n "$STRIP" ; then
15901          striplib="$STRIP -x"
15902          echo "$as_me:$LINENO: result: yes" >&5
15903 echo "${ECHO_T}yes" >&6
15904        else
15905   echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15907 fi
15908        ;;
15909    *)
15910   echo "$as_me:$LINENO: result: no" >&5
15911 echo "${ECHO_T}no" >&6
15912     ;;
15913   esac
15914 fi
15915
15916
15917
15918 # The else clause should only fire when bootstrapping the
15919 # libtool distribution, otherwise you forgot to ship ltmain.sh
15920 # with your package, and you will get complaints that there are
15921 # no rules to generate ltmain.sh.
15922 if test -f "$ltmain"; then
15923   # See if we are running on zsh, and set the options which allow our commands through
15924   # without removal of \ escapes.
15925   if test -n "${ZSH_VERSION+set}" ; then
15926     setopt NO_GLOB_SUBST
15927   fi
15928   # Now quote all the things that may contain metacharacters while being
15929   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15930   # variables and quote the copies for generation of the libtool script.
15931   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15932     SED SHELL STRIP \
15933     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15934     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15935     deplibs_check_method reload_flag reload_cmds need_locks \
15936     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15937     lt_cv_sys_global_symbol_to_c_name_address \
15938     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15939     old_postinstall_cmds old_postuninstall_cmds \
15940     compiler_F77 \
15941     CC_F77 \
15942     LD_F77 \
15943     lt_prog_compiler_wl_F77 \
15944     lt_prog_compiler_pic_F77 \
15945     lt_prog_compiler_static_F77 \
15946     lt_prog_compiler_no_builtin_flag_F77 \
15947     export_dynamic_flag_spec_F77 \
15948     thread_safe_flag_spec_F77 \
15949     whole_archive_flag_spec_F77 \
15950     enable_shared_with_static_runtimes_F77 \
15951     old_archive_cmds_F77 \
15952     old_archive_from_new_cmds_F77 \
15953     predep_objects_F77 \
15954     postdep_objects_F77 \
15955     predeps_F77 \
15956     postdeps_F77 \
15957     compiler_lib_search_path_F77 \
15958     archive_cmds_F77 \
15959     archive_expsym_cmds_F77 \
15960     postinstall_cmds_F77 \
15961     postuninstall_cmds_F77 \
15962     old_archive_from_expsyms_cmds_F77 \
15963     allow_undefined_flag_F77 \
15964     no_undefined_flag_F77 \
15965     export_symbols_cmds_F77 \
15966     hardcode_libdir_flag_spec_F77 \
15967     hardcode_libdir_flag_spec_ld_F77 \
15968     hardcode_libdir_separator_F77 \
15969     hardcode_automatic_F77 \
15970     module_cmds_F77 \
15971     module_expsym_cmds_F77 \
15972     lt_cv_prog_compiler_c_o_F77 \
15973     exclude_expsyms_F77 \
15974     include_expsyms_F77; do
15975
15976     case $var in
15977     old_archive_cmds_F77 | \
15978     old_archive_from_new_cmds_F77 | \
15979     archive_cmds_F77 | \
15980     archive_expsym_cmds_F77 | \
15981     module_cmds_F77 | \
15982     module_expsym_cmds_F77 | \
15983     old_archive_from_expsyms_cmds_F77 | \
15984     export_symbols_cmds_F77 | \
15985     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15986     postinstall_cmds | postuninstall_cmds | \
15987     old_postinstall_cmds | old_postuninstall_cmds | \
15988     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15989       # Double-quote double-evaled strings.
15990       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15991       ;;
15992     *)
15993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15994       ;;
15995     esac
15996   done
15997
15998   case $lt_echo in
15999   *'\$0 --fallback-echo"')
16000     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16001     ;;
16002   esac
16003
16004 cfgfile="$ofile"
16005
16006   cat <<__EOF__ >> "$cfgfile"
16007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16008
16009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16010
16011 # Shell to use when invoking shell scripts.
16012 SHELL=$lt_SHELL
16013
16014 # Whether or not to build shared libraries.
16015 build_libtool_libs=$enable_shared
16016
16017 # Whether or not to build static libraries.
16018 build_old_libs=$enable_static
16019
16020 # Whether or not to add -lc for building shared libraries.
16021 build_libtool_need_lc=$archive_cmds_need_lc_F77
16022
16023 # Whether or not to disallow shared libs when runtime libs are static
16024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16025
16026 # Whether or not to optimize for fast installation.
16027 fast_install=$enable_fast_install
16028
16029 # The host system.
16030 host_alias=$host_alias
16031 host=$host
16032 host_os=$host_os
16033
16034 # The build system.
16035 build_alias=$build_alias
16036 build=$build
16037 build_os=$build_os
16038
16039 # An echo program that does not interpret backslashes.
16040 echo=$lt_echo
16041
16042 # The archiver.
16043 AR=$lt_AR
16044 AR_FLAGS=$lt_AR_FLAGS
16045
16046 # A C compiler.
16047 LTCC=$lt_LTCC
16048
16049 # A language-specific compiler.
16050 CC=$lt_compiler_F77
16051
16052 # Is the compiler the GNU C compiler?
16053 with_gcc=$GCC_F77
16054
16055 # An ERE matcher.
16056 EGREP=$lt_EGREP
16057
16058 # The linker used to build libraries.
16059 LD=$lt_LD_F77
16060
16061 # Whether we need hard or soft links.
16062 LN_S=$lt_LN_S
16063
16064 # A BSD-compatible nm program.
16065 NM=$lt_NM
16066
16067 # A symbol stripping program
16068 STRIP=$lt_STRIP
16069
16070 # Used to examine libraries when file_magic_cmd begins "file"
16071 MAGIC_CMD=$MAGIC_CMD
16072
16073 # Used on cygwin: DLL creation program.
16074 DLLTOOL="$DLLTOOL"
16075
16076 # Used on cygwin: object dumper.
16077 OBJDUMP="$OBJDUMP"
16078
16079 # Used on cygwin: assembler.
16080 AS="$AS"
16081
16082 # The name of the directory that contains temporary libtool files.
16083 objdir=$objdir
16084
16085 # How to create reloadable object files.
16086 reload_flag=$lt_reload_flag
16087 reload_cmds=$lt_reload_cmds
16088
16089 # How to pass a linker flag through the compiler.
16090 wl=$lt_lt_prog_compiler_wl_F77
16091
16092 # Object file suffix (normally "o").
16093 objext="$ac_objext"
16094
16095 # Old archive suffix (normally "a").
16096 libext="$libext"
16097
16098 # Shared library suffix (normally ".so").
16099 shrext_cmds='$shrext_cmds'
16100
16101 # Executable file suffix (normally "").
16102 exeext="$exeext"
16103
16104 # Additional compiler flags for building library objects.
16105 pic_flag=$lt_lt_prog_compiler_pic_F77
16106 pic_mode=$pic_mode
16107
16108 # What is the maximum length of a command?
16109 max_cmd_len=$lt_cv_sys_max_cmd_len
16110
16111 # Does compiler simultaneously support -c and -o options?
16112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16113
16114 # Must we lock files when doing compilation?
16115 need_locks=$lt_need_locks
16116
16117 # Do we need the lib prefix for modules?
16118 need_lib_prefix=$need_lib_prefix
16119
16120 # Do we need a version for libraries?
16121 need_version=$need_version
16122
16123 # Whether dlopen is supported.
16124 dlopen_support=$enable_dlopen
16125
16126 # Whether dlopen of programs is supported.
16127 dlopen_self=$enable_dlopen_self
16128
16129 # Whether dlopen of statically linked programs is supported.
16130 dlopen_self_static=$enable_dlopen_self_static
16131
16132 # Compiler flag to prevent dynamic linking.
16133 link_static_flag=$lt_lt_prog_compiler_static_F77
16134
16135 # Compiler flag to turn off builtin functions.
16136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16137
16138 # Compiler flag to allow reflexive dlopens.
16139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16140
16141 # Compiler flag to generate shared objects directly from archives.
16142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16143
16144 # Compiler flag to generate thread-safe objects.
16145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16146
16147 # Library versioning type.
16148 version_type=$version_type
16149
16150 # Format of library name prefix.
16151 libname_spec=$lt_libname_spec
16152
16153 # List of archive names.  First name is the real one, the rest are links.
16154 # The last name is the one that the linker finds with -lNAME.
16155 library_names_spec=$lt_library_names_spec
16156
16157 # The coded name of the library, if different from the real name.
16158 soname_spec=$lt_soname_spec
16159
16160 # Commands used to build and install an old-style archive.
16161 RANLIB=$lt_RANLIB
16162 old_archive_cmds=$lt_old_archive_cmds_F77
16163 old_postinstall_cmds=$lt_old_postinstall_cmds
16164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16165
16166 # Create an old-style archive from a shared archive.
16167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16168
16169 # Create a temporary old-style archive to link instead of a shared archive.
16170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16171
16172 # Commands used to build and install a shared archive.
16173 archive_cmds=$lt_archive_cmds_F77
16174 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16175 postinstall_cmds=$lt_postinstall_cmds
16176 postuninstall_cmds=$lt_postuninstall_cmds
16177
16178 # Commands used to build a loadable module (assumed same as above if empty)
16179 module_cmds=$lt_module_cmds_F77
16180 module_expsym_cmds=$lt_module_expsym_cmds_F77
16181
16182 # Commands to strip libraries.
16183 old_striplib=$lt_old_striplib
16184 striplib=$lt_striplib
16185
16186 # Dependencies to place before the objects being linked to create a
16187 # shared library.
16188 predep_objects=$lt_predep_objects_F77
16189
16190 # Dependencies to place after the objects being linked to create a
16191 # shared library.
16192 postdep_objects=$lt_postdep_objects_F77
16193
16194 # Dependencies to place before the objects being linked to create a
16195 # shared library.
16196 predeps=$lt_predeps_F77
16197
16198 # Dependencies to place after the objects being linked to create a
16199 # shared library.
16200 postdeps=$lt_postdeps_F77
16201
16202 # The library search path used internally by the compiler when linking
16203 # a shared library.
16204 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16205
16206 # Method to check whether dependent libraries are shared objects.
16207 deplibs_check_method=$lt_deplibs_check_method
16208
16209 # Command to use when deplibs_check_method == file_magic.
16210 file_magic_cmd=$lt_file_magic_cmd
16211
16212 # Flag that allows shared libraries with undefined symbols to be built.
16213 allow_undefined_flag=$lt_allow_undefined_flag_F77
16214
16215 # Flag that forces no undefined symbols.
16216 no_undefined_flag=$lt_no_undefined_flag_F77
16217
16218 # Commands used to finish a libtool library installation in a directory.
16219 finish_cmds=$lt_finish_cmds
16220
16221 # Same as above, but a single script fragment to be evaled but not shown.
16222 finish_eval=$lt_finish_eval
16223
16224 # Take the output of nm and produce a listing of raw symbols and C names.
16225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16226
16227 # Transform the output of nm in a proper C declaration
16228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16229
16230 # Transform the output of nm in a C name address pair
16231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16232
16233 # This is the shared library runtime path variable.
16234 runpath_var=$runpath_var
16235
16236 # This is the shared library path variable.
16237 shlibpath_var=$shlibpath_var
16238
16239 # Is shlibpath searched before the hard-coded library search path?
16240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16241
16242 # How to hardcode a shared library path into an executable.
16243 hardcode_action=$hardcode_action_F77
16244
16245 # Whether we should hardcode library paths into libraries.
16246 hardcode_into_libs=$hardcode_into_libs
16247
16248 # Flag to hardcode \$libdir into a binary during linking.
16249 # This must work even if \$libdir does not exist.
16250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16251
16252 # If ld is used when linking, flag to hardcode \$libdir into
16253 # a binary during linking. This must work even if \$libdir does
16254 # not exist.
16255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16256
16257 # Whether we need a single -rpath flag with a separated argument.
16258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16259
16260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16261 # resulting binary.
16262 hardcode_direct=$hardcode_direct_F77
16263
16264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16265 # resulting binary.
16266 hardcode_minus_L=$hardcode_minus_L_F77
16267
16268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16269 # the resulting binary.
16270 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16271
16272 # Set to yes if building a shared library automatically hardcodes DIR into the library
16273 # and all subsequent libraries and executables linked against it.
16274 hardcode_automatic=$hardcode_automatic_F77
16275
16276 # Variables whose values should be saved in libtool wrapper scripts and
16277 # restored at relink time.
16278 variables_saved_for_relink="$variables_saved_for_relink"
16279
16280 # Whether libtool must link a program against all its dependency libraries.
16281 link_all_deplibs=$link_all_deplibs_F77
16282
16283 # Compile-time system search path for libraries
16284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16285
16286 # Run-time system search path for libraries
16287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16288
16289 # Fix the shell variable \$srcfile for the compiler.
16290 fix_srcfile_path="$fix_srcfile_path_F77"
16291
16292 # Set to yes if exported symbols are required.
16293 always_export_symbols=$always_export_symbols_F77
16294
16295 # The commands to list exported symbols.
16296 export_symbols_cmds=$lt_export_symbols_cmds_F77
16297
16298 # The commands to extract the exported symbol list from a shared archive.
16299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16300
16301 # Symbols that should not be listed in the preloaded symbols.
16302 exclude_expsyms=$lt_exclude_expsyms_F77
16303
16304 # Symbols that must always be exported.
16305 include_expsyms=$lt_include_expsyms_F77
16306
16307 # ### END LIBTOOL TAG CONFIG: $tagname
16308
16309 __EOF__
16310
16311
16312 else
16313   # If there is no Makefile yet, we rely on a make rule to execute
16314   # `config.status --recheck' to rerun these tests and create the
16315   # libtool script then.
16316   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16317   if test -f "$ltmain_in"; then
16318     test -f Makefile && make "$ltmain"
16319   fi
16320 fi
16321
16322
16323 ac_ext=c
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16328
16329 CC="$lt_save_CC"
16330
16331         else
16332           tagname=""
16333         fi
16334         ;;
16335
16336       GCJ)
16337         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16338
16339
16340
16341 # Source file extension for Java test sources.
16342 ac_ext=java
16343
16344 # Object file extension for compiled Java test sources.
16345 objext=o
16346 objext_GCJ=$objext
16347
16348 # Code to be used in simple compile tests
16349 lt_simple_compile_test_code="class foo {}\n"
16350
16351 # Code to be used in simple link tests
16352 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16353
16354 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16355
16356 # If no C compiler was specified, use CC.
16357 LTCC=${LTCC-"$CC"}
16358
16359 # Allow CC to be a program name with arguments.
16360 compiler=$CC
16361
16362
16363 # save warnings/boilerplate of simple test code
16364 ac_outfile=conftest.$ac_objext
16365 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16367 _lt_compiler_boilerplate=`cat conftest.err`
16368 $rm conftest*
16369
16370 ac_outfile=conftest.$ac_objext
16371 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16373 _lt_linker_boilerplate=`cat conftest.err`
16374 $rm conftest*
16375
16376
16377 # Allow CC to be a program name with arguments.
16378 lt_save_CC="$CC"
16379 CC=${GCJ-"gcj"}
16380 compiler=$CC
16381 compiler_GCJ=$CC
16382 for cc_temp in $compiler""; do
16383   case $cc_temp in
16384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16386     \-*) ;;
16387     *) break;;
16388   esac
16389 done
16390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16391
16392
16393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16394 archive_cmds_need_lc_GCJ=no
16395
16396 old_archive_cmds_GCJ=$old_archive_cmds
16397
16398 ## CAVEAT EMPTOR:
16399 ## There is no encapsulation within the following macros, do not change
16400 ## the running order or otherwise move them around unless you know exactly
16401 ## what you are doing...
16402
16403 lt_prog_compiler_no_builtin_flag_GCJ=
16404
16405 if test "$GCC" = yes; then
16406   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16407
16408
16409 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16412   echo $ECHO_N "(cached) $ECHO_C" >&6
16413 else
16414   lt_cv_prog_compiler_rtti_exceptions=no
16415   ac_outfile=conftest.$ac_objext
16416    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16417    lt_compiler_flag="-fno-rtti -fno-exceptions"
16418    # Insert the option either (1) after the last *FLAGS variable, or
16419    # (2) before a word containing "conftest.", or (3) at the end.
16420    # Note that $ac_compile itself does not contain backslashes and begins
16421    # with a dollar sign (not a hyphen), so the echo should work correctly.
16422    # The option is referenced via a variable to avoid confusing sed.
16423    lt_compile=`echo "$ac_compile" | $SED \
16424    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16425    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426    -e 's:$: $lt_compiler_flag:'`
16427    (eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
16428    (eval "$lt_compile" 2>conftest.err)
16429    ac_status=$?
16430    cat conftest.err >&5
16431    echo "$as_me:16431: \$? = $ac_status" >&5
16432    if (exit $ac_status) && test -s "$ac_outfile"; then
16433      # The compiler can only warn and ignore the option if not recognized
16434      # So say no if there are warnings other than the usual output.
16435      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16436      $SED '/^$/d' conftest.err >conftest.er2
16437      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16438        lt_cv_prog_compiler_rtti_exceptions=yes
16439      fi
16440    fi
16441    $rm conftest*
16442
16443 fi
16444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16446
16447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16448     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16449 else
16450     :
16451 fi
16452
16453 fi
16454
16455 lt_prog_compiler_wl_GCJ=
16456 lt_prog_compiler_pic_GCJ=
16457 lt_prog_compiler_static_GCJ=
16458
16459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16461
16462   if test "$GCC" = yes; then
16463     lt_prog_compiler_wl_GCJ='-Wl,'
16464     lt_prog_compiler_static_GCJ='-static'
16465
16466     case $host_os in
16467       aix*)
16468       # All AIX code is PIC.
16469       if test "$host_cpu" = ia64; then
16470         # AIX 5 now supports IA64 processor
16471         lt_prog_compiler_static_GCJ='-Bstatic'
16472       fi
16473       ;;
16474
16475     amigaos*)
16476       # FIXME: we need at least 68020 code to build shared libraries, but
16477       # adding the `-m68020' flag to GCC prevents building anything better,
16478       # like `-m68040'.
16479       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16480       ;;
16481
16482     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16483       # PIC is the default for these OSes.
16484       ;;
16485
16486     mingw* | pw32* | os2*)
16487       # This hack is so that the source file can tell whether it is being
16488       # built for inclusion in a dll (and should export symbols for example).
16489       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16490       ;;
16491
16492     darwin* | rhapsody*)
16493       # PIC is the default on this platform
16494       # Common symbols not allowed in MH_DYLIB files
16495       lt_prog_compiler_pic_GCJ='-fno-common'
16496       ;;
16497
16498     msdosdjgpp*)
16499       # Just because we use GCC doesn't mean we suddenly get shared libraries
16500       # on systems that don't support them.
16501       lt_prog_compiler_can_build_shared_GCJ=no
16502       enable_shared=no
16503       ;;
16504
16505     sysv4*MP*)
16506       if test -d /usr/nec; then
16507         lt_prog_compiler_pic_GCJ=-Kconform_pic
16508       fi
16509       ;;
16510
16511     hpux*)
16512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16513       # not for PA HP-UX.
16514       case "$host_cpu" in
16515       hppa*64*|ia64*)
16516         # +Z the default
16517         ;;
16518       *)
16519         lt_prog_compiler_pic_GCJ='-fPIC'
16520         ;;
16521       esac
16522       ;;
16523
16524     *)
16525       lt_prog_compiler_pic_GCJ='-fPIC'
16526       ;;
16527     esac
16528   else
16529     # PORTME Check for flag to pass linker flags through the system compiler.
16530     case $host_os in
16531     aix*)
16532       lt_prog_compiler_wl_GCJ='-Wl,'
16533       if test "$host_cpu" = ia64; then
16534         # AIX 5 now supports IA64 processor
16535         lt_prog_compiler_static_GCJ='-Bstatic'
16536       else
16537         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16538       fi
16539       ;;
16540       darwin*)
16541         # PIC is the default on this platform
16542         # Common symbols not allowed in MH_DYLIB files
16543        case $cc_basename in
16544          xlc*)
16545          lt_prog_compiler_pic_GCJ='-qnocommon'
16546          lt_prog_compiler_wl_GCJ='-Wl,'
16547          ;;
16548        esac
16549        ;;
16550
16551     mingw* | pw32* | os2*)
16552       # This hack is so that the source file can tell whether it is being
16553       # built for inclusion in a dll (and should export symbols for example).
16554       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16555       ;;
16556
16557     hpux9* | hpux10* | hpux11*)
16558       lt_prog_compiler_wl_GCJ='-Wl,'
16559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16560       # not for PA HP-UX.
16561       case "$host_cpu" in
16562       hppa*64*|ia64*)
16563         # +Z the default
16564         ;;
16565       *)
16566         lt_prog_compiler_pic_GCJ='+Z'
16567         ;;
16568       esac
16569       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16570       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16571       ;;
16572
16573     irix5* | irix6* | nonstopux*)
16574       lt_prog_compiler_wl_GCJ='-Wl,'
16575       # PIC (with -KPIC) is the default.
16576       lt_prog_compiler_static_GCJ='-non_shared'
16577       ;;
16578
16579     newsos6)
16580       lt_prog_compiler_pic_GCJ='-KPIC'
16581       lt_prog_compiler_static_GCJ='-Bstatic'
16582       ;;
16583
16584     linux*)
16585       case $cc_basename in
16586       icc* | ecc*)
16587         lt_prog_compiler_wl_GCJ='-Wl,'
16588         lt_prog_compiler_pic_GCJ='-KPIC'
16589         lt_prog_compiler_static_GCJ='-static'
16590         ;;
16591       pgcc* | pgf77* | pgf90*)
16592         # Portland Group compilers (*not* the Pentium gcc compiler,
16593         # which looks to be a dead project)
16594         lt_prog_compiler_wl_GCJ='-Wl,'
16595         lt_prog_compiler_pic_GCJ='-fpic'
16596         lt_prog_compiler_static_GCJ='-static'
16597         ;;
16598       ccc*)
16599         lt_prog_compiler_wl_GCJ='-Wl,'
16600         # All Alpha code is PIC.
16601         lt_prog_compiler_static_GCJ='-non_shared'
16602         ;;
16603       esac
16604       ;;
16605
16606     osf3* | osf4* | osf5*)
16607       lt_prog_compiler_wl_GCJ='-Wl,'
16608       # All OSF/1 code is PIC.
16609       lt_prog_compiler_static_GCJ='-non_shared'
16610       ;;
16611
16612     sco3.2v5*)
16613       lt_prog_compiler_pic_GCJ='-Kpic'
16614       lt_prog_compiler_static_GCJ='-dn'
16615       ;;
16616
16617     solaris*)
16618       lt_prog_compiler_pic_GCJ='-KPIC'
16619       lt_prog_compiler_static_GCJ='-Bstatic'
16620       case $cc_basename in
16621       f77* | f90* | f95*)
16622         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16623       *)
16624         lt_prog_compiler_wl_GCJ='-Wl,';;
16625       esac
16626       ;;
16627
16628     sunos4*)
16629       lt_prog_compiler_wl_GCJ='-Qoption ld '
16630       lt_prog_compiler_pic_GCJ='-PIC'
16631       lt_prog_compiler_static_GCJ='-Bstatic'
16632       ;;
16633
16634     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16635       lt_prog_compiler_wl_GCJ='-Wl,'
16636       lt_prog_compiler_pic_GCJ='-KPIC'
16637       lt_prog_compiler_static_GCJ='-Bstatic'
16638       ;;
16639
16640     sysv4*MP*)
16641       if test -d /usr/nec ;then
16642         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16643         lt_prog_compiler_static_GCJ='-Bstatic'
16644       fi
16645       ;;
16646
16647     unicos*)
16648       lt_prog_compiler_wl_GCJ='-Wl,'
16649       lt_prog_compiler_can_build_shared_GCJ=no
16650       ;;
16651
16652     uts4*)
16653       lt_prog_compiler_pic_GCJ='-pic'
16654       lt_prog_compiler_static_GCJ='-Bstatic'
16655       ;;
16656
16657     *)
16658       lt_prog_compiler_can_build_shared_GCJ=no
16659       ;;
16660     esac
16661   fi
16662
16663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16664 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16665
16666 #
16667 # Check to make sure the PIC flag actually works.
16668 #
16669 if test -n "$lt_prog_compiler_pic_GCJ"; then
16670
16671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16673 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16674   echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16676   lt_prog_compiler_pic_works_GCJ=no
16677   ac_outfile=conftest.$ac_objext
16678    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16679    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16680    # Insert the option either (1) after the last *FLAGS variable, or
16681    # (2) before a word containing "conftest.", or (3) at the end.
16682    # Note that $ac_compile itself does not contain backslashes and begins
16683    # with a dollar sign (not a hyphen), so the echo should work correctly.
16684    # The option is referenced via a variable to avoid confusing sed.
16685    lt_compile=`echo "$ac_compile" | $SED \
16686    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688    -e 's:$: $lt_compiler_flag:'`
16689    (eval echo "\"\$as_me:16689: $lt_compile\"" >&5)
16690    (eval "$lt_compile" 2>conftest.err)
16691    ac_status=$?
16692    cat conftest.err >&5
16693    echo "$as_me:16693: \$? = $ac_status" >&5
16694    if (exit $ac_status) && test -s "$ac_outfile"; then
16695      # The compiler can only warn and ignore the option if not recognized
16696      # So say no if there are warnings other than the usual output.
16697      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16698      $SED '/^$/d' conftest.err >conftest.er2
16699      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16700        lt_prog_compiler_pic_works_GCJ=yes
16701      fi
16702    fi
16703    $rm conftest*
16704
16705 fi
16706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16707 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16708
16709 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16710     case $lt_prog_compiler_pic_GCJ in
16711      "" | " "*) ;;
16712      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16713      esac
16714 else
16715     lt_prog_compiler_pic_GCJ=
16716      lt_prog_compiler_can_build_shared_GCJ=no
16717 fi
16718
16719 fi
16720 case "$host_os" in
16721   # For platforms which do not support PIC, -DPIC is meaningless:
16722   *djgpp*)
16723     lt_prog_compiler_pic_GCJ=
16724     ;;
16725   *)
16726     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16727     ;;
16728 esac
16729
16730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16732 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735   lt_cv_prog_compiler_c_o_GCJ=no
16736    $rm -r conftest 2>/dev/null
16737    mkdir conftest
16738    cd conftest
16739    mkdir out
16740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16741
16742    lt_compiler_flag="-o out/conftest2.$ac_objext"
16743    # Insert the option either (1) after the last *FLAGS variable, or
16744    # (2) before a word containing "conftest.", or (3) at the end.
16745    # Note that $ac_compile itself does not contain backslashes and begins
16746    # with a dollar sign (not a hyphen), so the echo should work correctly.
16747    lt_compile=`echo "$ac_compile" | $SED \
16748    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750    -e 's:$: $lt_compiler_flag:'`
16751    (eval echo "\"\$as_me:16751: $lt_compile\"" >&5)
16752    (eval "$lt_compile" 2>out/conftest.err)
16753    ac_status=$?
16754    cat out/conftest.err >&5
16755    echo "$as_me:16755: \$? = $ac_status" >&5
16756    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16757    then
16758      # The compiler can only warn and ignore the option if not recognized
16759      # So say no if there are warnings
16760      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16761      $SED '/^$/d' out/conftest.err >out/conftest.er2
16762      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16763        lt_cv_prog_compiler_c_o_GCJ=yes
16764      fi
16765    fi
16766    chmod u+w .
16767    $rm conftest*
16768    # SGI C++ compiler will create directory out/ii_files/ for
16769    # template instantiation
16770    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16771    $rm out/* && rmdir out
16772    cd ..
16773    rmdir conftest
16774    $rm conftest*
16775
16776 fi
16777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16779
16780
16781 hard_links="nottested"
16782 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16783   # do not overwrite the value of need_locks provided by the user
16784   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16786   hard_links=yes
16787   $rm conftest*
16788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16789   touch conftest.a
16790   ln conftest.a conftest.b 2>&5 || hard_links=no
16791   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16792   echo "$as_me:$LINENO: result: $hard_links" >&5
16793 echo "${ECHO_T}$hard_links" >&6
16794   if test "$hard_links" = no; then
16795     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16797     need_locks=warn
16798   fi
16799 else
16800   need_locks=no
16801 fi
16802
16803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16805
16806   runpath_var=
16807   allow_undefined_flag_GCJ=
16808   enable_shared_with_static_runtimes_GCJ=no
16809   archive_cmds_GCJ=
16810   archive_expsym_cmds_GCJ=
16811   old_archive_From_new_cmds_GCJ=
16812   old_archive_from_expsyms_cmds_GCJ=
16813   export_dynamic_flag_spec_GCJ=
16814   whole_archive_flag_spec_GCJ=
16815   thread_safe_flag_spec_GCJ=
16816   hardcode_libdir_flag_spec_GCJ=
16817   hardcode_libdir_flag_spec_ld_GCJ=
16818   hardcode_libdir_separator_GCJ=
16819   hardcode_direct_GCJ=no
16820   hardcode_minus_L_GCJ=no
16821   hardcode_shlibpath_var_GCJ=unsupported
16822   link_all_deplibs_GCJ=unknown
16823   hardcode_automatic_GCJ=no
16824   module_cmds_GCJ=
16825   module_expsym_cmds_GCJ=
16826   always_export_symbols_GCJ=no
16827   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16828   # include_expsyms should be a list of space-separated symbols to be *always*
16829   # included in the symbol list
16830   include_expsyms_GCJ=
16831   # exclude_expsyms can be an extended regexp of symbols to exclude
16832   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16833   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16834   # as well as any symbol that contains `d'.
16835   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16836   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16837   # platforms (ab)use it in PIC code, but their linkers get confused if
16838   # the symbol is explicitly referenced.  Since portable code cannot
16839   # rely on this symbol name, it's probably fine to never include it in
16840   # preloaded symbol tables.
16841   extract_expsyms_cmds=
16842   # Just being paranoid about ensuring that cc_basename is set.
16843   for cc_temp in $compiler""; do
16844   case $cc_temp in
16845     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16846     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16847     \-*) ;;
16848     *) break;;
16849   esac
16850 done
16851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16852
16853   case $host_os in
16854   cygwin* | mingw* | pw32*)
16855     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16856     # When not using gcc, we currently assume that we are using
16857     # Microsoft Visual C++.
16858     if test "$GCC" != yes; then
16859       with_gnu_ld=no
16860     fi
16861     ;;
16862   openbsd*)
16863     with_gnu_ld=no
16864     ;;
16865   esac
16866
16867   ld_shlibs_GCJ=yes
16868   if test "$with_gnu_ld" = yes; then
16869     # If archive_cmds runs LD, not CC, wlarc should be empty
16870     wlarc='${wl}'
16871
16872     # Set some defaults for GNU ld with shared library support. These
16873     # are reset later if shared libraries are not supported. Putting them
16874     # here allows them to be overridden if necessary.
16875     runpath_var=LD_RUN_PATH
16876     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16877     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16878     # ancient GNU ld didn't support --whole-archive et. al.
16879     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16880         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16881       else
16882         whole_archive_flag_spec_GCJ=
16883     fi
16884     supports_anon_versioning=no
16885     case `$LD -v 2>/dev/null` in
16886       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16887       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16888       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16889       *\ 2.11.*) ;; # other 2.11 versions
16890       *) supports_anon_versioning=yes ;;
16891     esac
16892
16893     # See if GNU ld supports shared libraries.
16894     case $host_os in
16895     aix3* | aix4* | aix5*)
16896       # On AIX/PPC, the GNU linker is very broken
16897       if test "$host_cpu" != ia64; then
16898         ld_shlibs_GCJ=no
16899         cat <<EOF 1>&2
16900
16901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16902 *** to be unable to reliably create shared libraries on AIX.
16903 *** Therefore, libtool is disabling shared libraries support.  If you
16904 *** really care for shared libraries, you may want to modify your PATH
16905 *** so that a non-GNU linker is found, and then restart.
16906
16907 EOF
16908       fi
16909       ;;
16910
16911     amigaos*)
16912       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)'
16913       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16914       hardcode_minus_L_GCJ=yes
16915
16916       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16917       # that the semantics of dynamic libraries on AmigaOS, at least up
16918       # to version 4, is to share data among multiple programs linked
16919       # with the same dynamic library.  Since this doesn't match the
16920       # behavior of shared libraries on other platforms, we can't use
16921       # them.
16922       ld_shlibs_GCJ=no
16923       ;;
16924
16925     beos*)
16926       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16927         allow_undefined_flag_GCJ=unsupported
16928         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16929         # support --undefined.  This deserves some investigation.  FIXME
16930         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16931       else
16932         ld_shlibs_GCJ=no
16933       fi
16934       ;;
16935
16936     cygwin* | mingw* | pw32*)
16937       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16938       # as there is no search path for DLLs.
16939       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940       allow_undefined_flag_GCJ=unsupported
16941       always_export_symbols_GCJ=no
16942       enable_shared_with_static_runtimes_GCJ=yes
16943       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16944
16945       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16946         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16947         # If the export-symbols file already is a .def file (1st line
16948         # is EXPORTS), use it as is; otherwise, prepend...
16949         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16950           cp $export_symbols $output_objdir/$soname.def;
16951         else
16952           echo EXPORTS > $output_objdir/$soname.def;
16953           cat $export_symbols >> $output_objdir/$soname.def;
16954         fi~
16955         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16956       else
16957         ld_shlibs_GCJ=no
16958       fi
16959       ;;
16960
16961     linux*)
16962       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16963         tmp_addflag=
16964         case $cc_basename,$host_cpu in
16965         pgcc*)                          # Portland Group C compiler
16966           whole_archive_flag_spec_GCJ=
16967           ;;
16968         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16969           whole_archive_flag_spec_GCJ=
16970           tmp_addflag=' -fpic -Mnomain' ;;
16971         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16972           tmp_addflag=' -i_dynamic' ;;
16973         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16974           tmp_addflag=' -i_dynamic -nofor_main' ;;
16975         ifc* | ifort*)                  # Intel Fortran compiler
16976           tmp_addflag=' -nofor_main' ;;
16977         esac
16978         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16979
16980         if test $supports_anon_versioning = yes; then
16981           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16982   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16983   $echo "local: *; };" >> $output_objdir/$libname.ver~
16984           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16985         fi
16986       else
16987         ld_shlibs_GCJ=no
16988       fi
16989       ;;
16990
16991     netbsd*)
16992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16993         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16994         wlarc=
16995       else
16996         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16998       fi
16999       ;;
17000
17001     solaris* | sysv5*)
17002       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17003         ld_shlibs_GCJ=no
17004         cat <<EOF 1>&2
17005
17006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17007 *** create shared libraries on Solaris systems.  Therefore, libtool
17008 *** is disabling shared libraries support.  We urge you to upgrade GNU
17009 *** binutils to release 2.9.1 or newer.  Another option is to modify
17010 *** your PATH or compiler configuration so that the native linker is
17011 *** used, and then restart.
17012
17013 EOF
17014       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17015         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17017       else
17018         ld_shlibs_GCJ=no
17019       fi
17020       ;;
17021
17022     sunos4*)
17023       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17024       wlarc=
17025       hardcode_direct_GCJ=yes
17026       hardcode_shlibpath_var_GCJ=no
17027       ;;
17028
17029     *)
17030       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17032         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17033       else
17034         ld_shlibs_GCJ=no
17035       fi
17036       ;;
17037     esac
17038
17039     if test "$ld_shlibs_GCJ" = no; then
17040       runpath_var=
17041       hardcode_libdir_flag_spec_GCJ=
17042       export_dynamic_flag_spec_GCJ=
17043       whole_archive_flag_spec_GCJ=
17044     fi
17045   else
17046     # PORTME fill in a description of your system's linker (not GNU ld)
17047     case $host_os in
17048     aix3*)
17049       allow_undefined_flag_GCJ=unsupported
17050       always_export_symbols_GCJ=yes
17051       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'
17052       # Note: this linker hardcodes the directories in LIBPATH if there
17053       # are no directories specified by -L.
17054       hardcode_minus_L_GCJ=yes
17055       if test "$GCC" = yes && test -z "$link_static_flag"; then
17056         # Neither direct hardcoding nor static linking is supported with a
17057         # broken collect2.
17058         hardcode_direct_GCJ=unsupported
17059       fi
17060       ;;
17061
17062     aix4* | aix5*)
17063       if test "$host_cpu" = ia64; then
17064         # On IA64, the linker does run time linking by default, so we don't
17065         # have to do anything special.
17066         aix_use_runtimelinking=no
17067         exp_sym_flag='-Bexport'
17068         no_entry_flag=""
17069       else
17070         # If we're using GNU nm, then we don't want the "-C" option.
17071         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17072         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17073           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'
17074         else
17075           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'
17076         fi
17077         aix_use_runtimelinking=no
17078
17079         # Test if we are trying to use run time linking or normal
17080         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17081         # need to do runtime linking.
17082         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17083           for ld_flag in $LDFLAGS; do
17084           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17085             aix_use_runtimelinking=yes
17086             break
17087           fi
17088           done
17089         esac
17090
17091         exp_sym_flag='-bexport'
17092         no_entry_flag='-bnoentry'
17093       fi
17094
17095       # When large executables or shared objects are built, AIX ld can
17096       # have problems creating the table of contents.  If linking a library
17097       # or program results in "error TOC overflow" add -mminimal-toc to
17098       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17099       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17100
17101       archive_cmds_GCJ=''
17102       hardcode_direct_GCJ=yes
17103       hardcode_libdir_separator_GCJ=':'
17104       link_all_deplibs_GCJ=yes
17105
17106       if test "$GCC" = yes; then
17107         case $host_os in aix4.[012]|aix4.[012].*)
17108         # We only want to do this on AIX 4.2 and lower, the check
17109         # below for broken collect2 doesn't work under 4.3+
17110           collect2name=`${CC} -print-prog-name=collect2`
17111           if test -f "$collect2name" && \
17112            strings "$collect2name" | grep resolve_lib_name >/dev/null
17113           then
17114           # We have reworked collect2
17115           hardcode_direct_GCJ=yes
17116           else
17117           # We have old collect2
17118           hardcode_direct_GCJ=unsupported
17119           # It fails to find uninstalled libraries when the uninstalled
17120           # path is not listed in the libpath.  Setting hardcode_minus_L
17121           # to unsupported forces relinking
17122           hardcode_minus_L_GCJ=yes
17123           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124           hardcode_libdir_separator_GCJ=
17125           fi
17126         esac
17127         shared_flag='-shared'
17128         if test "$aix_use_runtimelinking" = yes; then
17129           shared_flag="$shared_flag "'${wl}-G'
17130         fi
17131       else
17132         # not using gcc
17133         if test "$host_cpu" = ia64; then
17134         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17135         # chokes on -Wl,-G. The following line is correct:
17136           shared_flag='-G'
17137         else
17138         if test "$aix_use_runtimelinking" = yes; then
17139             shared_flag='${wl}-G'
17140           else
17141             shared_flag='${wl}-bM:SRE'
17142         fi
17143         fi
17144       fi
17145
17146       # It seems that -bexpall does not export symbols beginning with
17147       # underscore (_), so it is better to generate a list of symbols to export.
17148       always_export_symbols_GCJ=yes
17149       if test "$aix_use_runtimelinking" = yes; then
17150         # Warning - without using the other runtime loading flags (-brtl),
17151         # -berok will link without error, but may produce a broken library.
17152         allow_undefined_flag_GCJ='-berok'
17153        # Determine the default libpath from the value encoded in an empty executable.
17154        cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160
17161 int
17162 main ()
17163 {
17164
17165   ;
17166   return 0;
17167 }
17168 _ACEOF
17169 rm -f conftest.$ac_objext conftest$ac_exeext
17170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171   (eval $ac_link) 2>conftest.er1
17172   ac_status=$?
17173   grep -v '^ *+' conftest.er1 >conftest.err
17174   rm -f conftest.er1
17175   cat conftest.err >&5
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } &&
17178          { ac_try='test -z "$ac_c_werror_flag"
17179                          || test ! -s conftest.err'
17180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181   (eval $ac_try) 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; } &&
17185          { ac_try='test -s conftest$ac_exeext'
17186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187   (eval $ac_try) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; }; then
17191
17192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17193 }'`
17194 # Check for a 64-bit object if we didn't find anything.
17195 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; }
17196 }'`; fi
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 fi
17202 rm -f conftest.err conftest.$ac_objext \
17203       conftest$ac_exeext conftest.$ac_ext
17204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17205
17206        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17207         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"
17208        else
17209         if test "$host_cpu" = ia64; then
17210           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17211           allow_undefined_flag_GCJ="-z nodefs"
17212           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"
17213         else
17214          # Determine the default libpath from the value encoded in an empty executable.
17215          cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221
17222 int
17223 main ()
17224 {
17225
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232   (eval $ac_link) 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -z "$ac_c_werror_flag"
17240                          || test ! -s conftest.err'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest$ac_exeext'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252
17253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17254 }'`
17255 # Check for a 64-bit object if we didn't find anything.
17256 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; }
17257 }'`; fi
17258 else
17259   echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17261
17262 fi
17263 rm -f conftest.err conftest.$ac_objext \
17264       conftest$ac_exeext conftest.$ac_ext
17265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17266
17267          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17268           # Warning - without using the other run time loading flags,
17269           # -berok will link without error, but may produce a broken library.
17270           no_undefined_flag_GCJ=' ${wl}-bernotok'
17271           allow_undefined_flag_GCJ=' ${wl}-berok'
17272           # -bexpall does not export symbols beginning with underscore (_)
17273           always_export_symbols_GCJ=yes
17274           # Exported symbols can be pulled into shared objects from archives
17275           whole_archive_flag_spec_GCJ=' '
17276           archive_cmds_need_lc_GCJ=yes
17277           # This is similar to how AIX traditionally builds it's shared libraries.
17278           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'
17279         fi
17280       fi
17281       ;;
17282
17283     amigaos*)
17284       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)'
17285       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17286       hardcode_minus_L_GCJ=yes
17287       # see comment about different semantics on the GNU ld section
17288       ld_shlibs_GCJ=no
17289       ;;
17290
17291     bsdi[45]*)
17292       export_dynamic_flag_spec_GCJ=-rdynamic
17293       ;;
17294
17295     cygwin* | mingw* | pw32*)
17296       # When not using gcc, we currently assume that we are using
17297       # Microsoft Visual C++.
17298       # hardcode_libdir_flag_spec is actually meaningless, as there is
17299       # no search path for DLLs.
17300       hardcode_libdir_flag_spec_GCJ=' '
17301       allow_undefined_flag_GCJ=unsupported
17302       # Tell ltmain to make .lib files, not .a files.
17303       libext=lib
17304       # Tell ltmain to make .dll files, not .so files.
17305       shrext_cmds=".dll"
17306       # FIXME: Setting linknames here is a bad hack.
17307       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17308       # The linker will automatically build a .lib file if we build a DLL.
17309       old_archive_From_new_cmds_GCJ='true'
17310       # FIXME: Should let the user specify the lib program.
17311       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17312       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17313       enable_shared_with_static_runtimes_GCJ=yes
17314       ;;
17315
17316     darwin* | rhapsody*)
17317       case "$host_os" in
17318         rhapsody* | darwin1.[012])
17319          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17320          ;;
17321        *) # Darwin 1.3 on
17322          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17323            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17324          else
17325            case ${MACOSX_DEPLOYMENT_TARGET} in
17326              10.[012])
17327                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17328                ;;
17329              10.*)
17330                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17331                ;;
17332            esac
17333          fi
17334          ;;
17335       esac
17336       archive_cmds_need_lc_GCJ=no
17337       hardcode_direct_GCJ=no
17338       hardcode_automatic_GCJ=yes
17339       hardcode_shlibpath_var_GCJ=unsupported
17340       whole_archive_flag_spec_GCJ=''
17341       link_all_deplibs_GCJ=yes
17342     if test "$GCC" = yes ; then
17343         output_verbose_link_cmd='echo'
17344         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17345       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17346       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17347       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}'
17348       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}'
17349     else
17350       case $cc_basename in
17351         xlc*)
17352          output_verbose_link_cmd='echo'
17353          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17354          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17355           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17356          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}'
17357           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}'
17358           ;;
17359        *)
17360          ld_shlibs_GCJ=no
17361           ;;
17362       esac
17363     fi
17364       ;;
17365
17366     dgux*)
17367       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17368       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369       hardcode_shlibpath_var_GCJ=no
17370       ;;
17371
17372     freebsd1*)
17373       ld_shlibs_GCJ=no
17374       ;;
17375
17376     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17377     # support.  Future versions do this automatically, but an explicit c++rt0.o
17378     # does not break anything, and helps significantly (at the cost of a little
17379     # extra space).
17380     freebsd2.2*)
17381       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17382       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17383       hardcode_direct_GCJ=yes
17384       hardcode_shlibpath_var_GCJ=no
17385       ;;
17386
17387     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17388     freebsd2*)
17389       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17390       hardcode_direct_GCJ=yes
17391       hardcode_minus_L_GCJ=yes
17392       hardcode_shlibpath_var_GCJ=no
17393       ;;
17394
17395     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17396     freebsd* | kfreebsd*-gnu | dragonfly*)
17397       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17398       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17399       hardcode_direct_GCJ=yes
17400       hardcode_shlibpath_var_GCJ=no
17401       ;;
17402
17403     hpux9*)
17404       if test "$GCC" = yes; then
17405         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'
17406       else
17407         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'
17408       fi
17409       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17410       hardcode_libdir_separator_GCJ=:
17411       hardcode_direct_GCJ=yes
17412
17413       # hardcode_minus_L: Not really in the search PATH,
17414       # but as the default location of the library.
17415       hardcode_minus_L_GCJ=yes
17416       export_dynamic_flag_spec_GCJ='${wl}-E'
17417       ;;
17418
17419     hpux10* | hpux11*)
17420       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17421         case "$host_cpu" in
17422         hppa*64*|ia64*)
17423           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17424           ;;
17425         *)
17426           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17427           ;;
17428         esac
17429       else
17430         case "$host_cpu" in
17431         hppa*64*|ia64*)
17432           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17433           ;;
17434         *)
17435           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17436           ;;
17437         esac
17438       fi
17439       if test "$with_gnu_ld" = no; then
17440         case "$host_cpu" in
17441         hppa*64*)
17442           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17444           hardcode_libdir_separator_GCJ=:
17445           hardcode_direct_GCJ=no
17446           hardcode_shlibpath_var_GCJ=no
17447           ;;
17448         ia64*)
17449           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450           hardcode_direct_GCJ=no
17451           hardcode_shlibpath_var_GCJ=no
17452
17453           # hardcode_minus_L: Not really in the search PATH,
17454           # but as the default location of the library.
17455           hardcode_minus_L_GCJ=yes
17456           ;;
17457         *)
17458           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17459           hardcode_libdir_separator_GCJ=:
17460           hardcode_direct_GCJ=yes
17461           export_dynamic_flag_spec_GCJ='${wl}-E'
17462
17463           # hardcode_minus_L: Not really in the search PATH,
17464           # but as the default location of the library.
17465           hardcode_minus_L_GCJ=yes
17466           ;;
17467         esac
17468       fi
17469       ;;
17470
17471     irix5* | irix6* | nonstopux*)
17472       if test "$GCC" = yes; then
17473         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'
17474       else
17475         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'
17476         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17477       fi
17478       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17479       hardcode_libdir_separator_GCJ=:
17480       link_all_deplibs_GCJ=yes
17481       ;;
17482
17483     netbsd*)
17484       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17485         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17486       else
17487         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17488       fi
17489       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17490       hardcode_direct_GCJ=yes
17491       hardcode_shlibpath_var_GCJ=no
17492       ;;
17493
17494     newsos6)
17495       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496       hardcode_direct_GCJ=yes
17497       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17498       hardcode_libdir_separator_GCJ=:
17499       hardcode_shlibpath_var_GCJ=no
17500       ;;
17501
17502     openbsd*)
17503       hardcode_direct_GCJ=yes
17504       hardcode_shlibpath_var_GCJ=no
17505       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17506         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17507         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17508         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17509         export_dynamic_flag_spec_GCJ='${wl}-E'
17510       else
17511        case $host_os in
17512          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17513            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17514            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515            ;;
17516          *)
17517            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17518            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17519            ;;
17520        esac
17521       fi
17522       ;;
17523
17524     os2*)
17525       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17526       hardcode_minus_L_GCJ=yes
17527       allow_undefined_flag_GCJ=unsupported
17528       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'
17529       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17530       ;;
17531
17532     osf3*)
17533       if test "$GCC" = yes; then
17534         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17535         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'
17536       else
17537         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17538         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'
17539       fi
17540       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541       hardcode_libdir_separator_GCJ=:
17542       ;;
17543
17544     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17545       if test "$GCC" = yes; then
17546         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17547         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'
17548         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17549       else
17550         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17551         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'
17552         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~
17553         $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'
17554
17555         # Both c and cxx compiler support -rpath directly
17556         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17557       fi
17558       hardcode_libdir_separator_GCJ=:
17559       ;;
17560
17561     sco3.2v5*)
17562       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563       hardcode_shlibpath_var_GCJ=no
17564       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17565       runpath_var=LD_RUN_PATH
17566       hardcode_runpath_var=yes
17567       ;;
17568
17569     solaris*)
17570       no_undefined_flag_GCJ=' -z text'
17571       if test "$GCC" = yes; then
17572         wlarc='${wl}'
17573         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17574         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17575           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17576       else
17577         wlarc=''
17578         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17580         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17581       fi
17582       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17583       hardcode_shlibpath_var_GCJ=no
17584       case $host_os in
17585       solaris2.[0-5] | solaris2.[0-5].*) ;;
17586       *)
17587         # The compiler driver will combine linker options so we
17588         # cannot just pass the convience library names through
17589         # without $wl, iff we do not link with $LD.
17590         # Luckily, gcc supports the same syntax we need for Sun Studio.
17591         # Supported since Solaris 2.6 (maybe 2.5.1?)
17592         case $wlarc in
17593         '')
17594           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17595         *)
17596           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' ;;
17597         esac ;;
17598       esac
17599       link_all_deplibs_GCJ=yes
17600       ;;
17601
17602     sunos4*)
17603       if test "x$host_vendor" = xsequent; then
17604         # Use $CC to link under sequent, because it throws in some extra .o
17605         # files that make .init and .fini sections work.
17606         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17607       else
17608         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17609       fi
17610       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611       hardcode_direct_GCJ=yes
17612       hardcode_minus_L_GCJ=yes
17613       hardcode_shlibpath_var_GCJ=no
17614       ;;
17615
17616     sysv4)
17617       case $host_vendor in
17618         sni)
17619           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620           hardcode_direct_GCJ=yes # is this really true???
17621         ;;
17622         siemens)
17623           ## LD is ld it makes a PLAMLIB
17624           ## CC just makes a GrossModule.
17625           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17626           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17627           hardcode_direct_GCJ=no
17628         ;;
17629         motorola)
17630           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17632         ;;
17633       esac
17634       runpath_var='LD_RUN_PATH'
17635       hardcode_shlibpath_var_GCJ=no
17636       ;;
17637
17638     sysv4.3*)
17639       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640       hardcode_shlibpath_var_GCJ=no
17641       export_dynamic_flag_spec_GCJ='-Bexport'
17642       ;;
17643
17644     sysv4*MP*)
17645       if test -d /usr/nec; then
17646         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647         hardcode_shlibpath_var_GCJ=no
17648         runpath_var=LD_RUN_PATH
17649         hardcode_runpath_var=yes
17650         ld_shlibs_GCJ=yes
17651       fi
17652       ;;
17653
17654     sysv4.2uw2*)
17655       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17656       hardcode_direct_GCJ=yes
17657       hardcode_minus_L_GCJ=no
17658       hardcode_shlibpath_var_GCJ=no
17659       hardcode_runpath_var=yes
17660       runpath_var=LD_RUN_PATH
17661       ;;
17662
17663    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17664       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17665       if test "$GCC" = yes; then
17666         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17667       else
17668         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669       fi
17670       runpath_var='LD_RUN_PATH'
17671       hardcode_shlibpath_var_GCJ=no
17672       ;;
17673
17674     sysv5*)
17675       no_undefined_flag_GCJ=' -z text'
17676       # $CC -shared without GNU ld will not create a library from C++
17677       # object files and a static libstdc++, better avoid it by now
17678       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17680                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17681       hardcode_libdir_flag_spec_GCJ=
17682       hardcode_shlibpath_var_GCJ=no
17683       runpath_var='LD_RUN_PATH'
17684       ;;
17685
17686     uts4*)
17687       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17689       hardcode_shlibpath_var_GCJ=no
17690       ;;
17691
17692     *)
17693       ld_shlibs_GCJ=no
17694       ;;
17695     esac
17696   fi
17697
17698 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17699 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17700 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17701
17702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17703 if test "$GCC" = yes; then
17704   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17705 fi
17706
17707 #
17708 # Do we need to explicitly link libc?
17709 #
17710 case "x$archive_cmds_need_lc_GCJ" in
17711 x|xyes)
17712   # Assume -lc should be added
17713   archive_cmds_need_lc_GCJ=yes
17714
17715   if test "$enable_shared" = yes && test "$GCC" = yes; then
17716     case $archive_cmds_GCJ in
17717     *'~'*)
17718       # FIXME: we may have to deal with multi-command sequences.
17719       ;;
17720     '$CC '*)
17721       # Test whether the compiler implicitly links with -lc since on some
17722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17723       # to ld, don't add -lc before -lgcc.
17724       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17726       $rm conftest*
17727       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17728
17729       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730   (eval $ac_compile) 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); } 2>conftest.err; then
17734         soname=conftest
17735         lib=conftest
17736         libobjs=conftest.$ac_objext
17737         deplibs=
17738         wl=$lt_prog_compiler_wl_GCJ
17739         compiler_flags=-v
17740         linker_flags=-v
17741         verstring=
17742         output_objdir=.
17743         libname=conftest
17744         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17745         allow_undefined_flag_GCJ=
17746         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17747   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }
17751         then
17752           archive_cmds_need_lc_GCJ=no
17753         else
17754           archive_cmds_need_lc_GCJ=yes
17755         fi
17756         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17757       else
17758         cat conftest.err 1>&5
17759       fi
17760       $rm conftest*
17761       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17762 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17763       ;;
17764     esac
17765   fi
17766   ;;
17767 esac
17768
17769 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17771 library_names_spec=
17772 libname_spec='lib$name'
17773 soname_spec=
17774 shrext_cmds=".so"
17775 postinstall_cmds=
17776 postuninstall_cmds=
17777 finish_cmds=
17778 finish_eval=
17779 shlibpath_var=
17780 shlibpath_overrides_runpath=unknown
17781 version_type=none
17782 dynamic_linker="$host_os ld.so"
17783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17784 if test "$GCC" = yes; then
17785   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17786   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17787     # if the path contains ";" then we assume it to be the separator
17788     # otherwise default to the standard path separator (i.e. ":") - it is
17789     # assumed that no part of a normal pathname contains ";" but that should
17790     # okay in the real world where ";" in dirpaths is itself problematic.
17791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17792   else
17793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17794   fi
17795 else
17796   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17797 fi
17798 need_lib_prefix=unknown
17799 hardcode_into_libs=no
17800
17801 # when you set need_version to no, make sure it does not cause -set_version
17802 # flags to be left without arguments
17803 need_version=unknown
17804
17805 case $host_os in
17806 aix3*)
17807   version_type=linux
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17809   shlibpath_var=LIBPATH
17810
17811   # AIX 3 has no versioning support, so we append a major version to the name.
17812   soname_spec='${libname}${release}${shared_ext}$major'
17813   ;;
17814
17815 aix4* | aix5*)
17816   version_type=linux
17817   need_lib_prefix=no
17818   need_version=no
17819   hardcode_into_libs=yes
17820   if test "$host_cpu" = ia64; then
17821     # AIX 5 supports IA64
17822     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17823     shlibpath_var=LD_LIBRARY_PATH
17824   else
17825     # With GCC up to 2.95.x, collect2 would create an import file
17826     # for dependence libraries.  The import file would start with
17827     # the line `#! .'.  This would cause the generated library to
17828     # depend on `.', always an invalid library.  This was fixed in
17829     # development snapshots of GCC prior to 3.0.
17830     case $host_os in
17831       aix4 | aix4.[01] | aix4.[01].*)
17832       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17833            echo ' yes '
17834            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17835         :
17836       else
17837         can_build_shared=no
17838       fi
17839       ;;
17840     esac
17841     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17842     # soname into executable. Probably we can add versioning support to
17843     # collect2, so additional links can be useful in future.
17844     if test "$aix_use_runtimelinking" = yes; then
17845       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17846       # instead of lib<name>.a to let people know that these are not
17847       # typical AIX shared libraries.
17848       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849     else
17850       # We preserve .a as extension for shared libraries through AIX4.2
17851       # and later when we are not doing run time linking.
17852       library_names_spec='${libname}${release}.a $libname.a'
17853       soname_spec='${libname}${release}${shared_ext}$major'
17854     fi
17855     shlibpath_var=LIBPATH
17856   fi
17857   ;;
17858
17859 amigaos*)
17860   library_names_spec='$libname.ixlibrary $libname.a'
17861   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17862   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'
17863   ;;
17864
17865 beos*)
17866   library_names_spec='${libname}${shared_ext}'
17867   dynamic_linker="$host_os ld.so"
17868   shlibpath_var=LIBRARY_PATH
17869   ;;
17870
17871 bsdi[45]*)
17872   version_type=linux
17873   need_version=no
17874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875   soname_spec='${libname}${release}${shared_ext}$major'
17876   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17877   shlibpath_var=LD_LIBRARY_PATH
17878   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17879   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17880   # the default ld.so.conf also contains /usr/contrib/lib and
17881   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17882   # libtool to hard-code these into programs
17883   ;;
17884
17885 cygwin* | mingw* | pw32*)
17886   version_type=windows
17887   shrext_cmds=".dll"
17888   need_version=no
17889   need_lib_prefix=no
17890
17891   case $GCC,$host_os in
17892   yes,cygwin* | yes,mingw* | yes,pw32*)
17893     library_names_spec='$libname.dll.a'
17894     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17895     postinstall_cmds='base_file=`basename \${file}`~
17896       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17897       dldir=$destdir/`dirname \$dlpath`~
17898       test -d \$dldir || mkdir -p \$dldir~
17899       $install_prog $dir/$dlname \$dldir/$dlname'
17900     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17901       dlpath=$dir/\$dldll~
17902        $rm \$dlpath'
17903     shlibpath_overrides_runpath=yes
17904
17905     case $host_os in
17906     cygwin*)
17907       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17908       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17909       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17910       ;;
17911     mingw*)
17912       # MinGW DLLs use traditional 'lib' prefix
17913       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17914       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17915       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17916         # It is most probably a Windows format PATH printed by
17917         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17918         # path with ; separators, and with drive letters. We can handle the
17919         # drive letters (cygwin fileutils understands them), so leave them,
17920         # especially as we might pass files found there to a mingw objdump,
17921         # which wouldn't understand a cygwinified path. Ahh.
17922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17923       else
17924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17925       fi
17926       ;;
17927     pw32*)
17928       # pw32 DLLs use 'pw' prefix rather than 'lib'
17929       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17930       ;;
17931     esac
17932     ;;
17933
17934   *)
17935     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17936     ;;
17937   esac
17938   dynamic_linker='Win32 ld.exe'
17939   # FIXME: first we should search . and the directory the executable is in
17940   shlibpath_var=PATH
17941   ;;
17942
17943 darwin* | rhapsody*)
17944   dynamic_linker="$host_os dyld"
17945   version_type=darwin
17946   need_lib_prefix=no
17947   need_version=no
17948   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17949   soname_spec='${libname}${release}${major}$shared_ext'
17950   shlibpath_overrides_runpath=yes
17951   shlibpath_var=DYLD_LIBRARY_PATH
17952   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17953   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17954   if test "$GCC" = yes; then
17955     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"`
17956   else
17957     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17958   fi
17959   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17960   ;;
17961
17962 dgux*)
17963   version_type=linux
17964   need_lib_prefix=no
17965   need_version=no
17966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17967   soname_spec='${libname}${release}${shared_ext}$major'
17968   shlibpath_var=LD_LIBRARY_PATH
17969   ;;
17970
17971 freebsd1*)
17972   dynamic_linker=no
17973   ;;
17974
17975 kfreebsd*-gnu)
17976   version_type=linux
17977   need_lib_prefix=no
17978   need_version=no
17979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17980   soname_spec='${libname}${release}${shared_ext}$major'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   shlibpath_overrides_runpath=no
17983   hardcode_into_libs=yes
17984   dynamic_linker='GNU ld.so'
17985   ;;
17986
17987 freebsd* | dragonfly*)
17988   # DragonFly does not have aout.  When/if they implement a new
17989   # versioning mechanism, adjust this.
17990   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17991   version_type=freebsd-$objformat
17992   case $version_type in
17993     freebsd-elf*)
17994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17995       need_version=no
17996       need_lib_prefix=no
17997       ;;
17998     freebsd-*)
17999       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18000       need_version=yes
18001       ;;
18002   esac
18003   shlibpath_var=LD_LIBRARY_PATH
18004   case $host_os in
18005   freebsd2*)
18006     shlibpath_overrides_runpath=yes
18007     ;;
18008   freebsd3.[01]* | freebsdelf3.[01]*)
18009     shlibpath_overrides_runpath=yes
18010     hardcode_into_libs=yes
18011     ;;
18012   *) # from 3.2 on
18013     shlibpath_overrides_runpath=no
18014     hardcode_into_libs=yes
18015     ;;
18016   esac
18017   ;;
18018
18019 gnu*)
18020   version_type=linux
18021   need_lib_prefix=no
18022   need_version=no
18023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18024   soname_spec='${libname}${release}${shared_ext}$major'
18025   shlibpath_var=LD_LIBRARY_PATH
18026   hardcode_into_libs=yes
18027   ;;
18028
18029 hpux9* | hpux10* | hpux11*)
18030   # Give a soname corresponding to the major version so that dld.sl refuses to
18031   # link against other versions.
18032   version_type=sunos
18033   need_lib_prefix=no
18034   need_version=no
18035   case "$host_cpu" in
18036   ia64*)
18037     shrext_cmds='.so'
18038     hardcode_into_libs=yes
18039     dynamic_linker="$host_os dld.so"
18040     shlibpath_var=LD_LIBRARY_PATH
18041     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043     soname_spec='${libname}${release}${shared_ext}$major'
18044     if test "X$HPUX_IA64_MODE" = X32; then
18045       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18046     else
18047       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18048     fi
18049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18050     ;;
18051    hppa*64*)
18052      shrext_cmds='.sl'
18053      hardcode_into_libs=yes
18054      dynamic_linker="$host_os dld.sl"
18055      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18056      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18058      soname_spec='${libname}${release}${shared_ext}$major'
18059      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18060      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18061      ;;
18062    *)
18063     shrext_cmds='.sl'
18064     dynamic_linker="$host_os dld.sl"
18065     shlibpath_var=SHLIB_PATH
18066     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068     soname_spec='${libname}${release}${shared_ext}$major'
18069     ;;
18070   esac
18071   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18072   postinstall_cmds='chmod 555 $lib'
18073   ;;
18074
18075 irix5* | irix6* | nonstopux*)
18076   case $host_os in
18077     nonstopux*) version_type=nonstopux ;;
18078     *)
18079         if test "$lt_cv_prog_gnu_ld" = yes; then
18080                 version_type=linux
18081         else
18082                 version_type=irix
18083         fi ;;
18084   esac
18085   need_lib_prefix=no
18086   need_version=no
18087   soname_spec='${libname}${release}${shared_ext}$major'
18088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18089   case $host_os in
18090   irix5* | nonstopux*)
18091     libsuff= shlibsuff=
18092     ;;
18093   *)
18094     case $LD in # libtool.m4 will add one of these switches to LD
18095     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18096       libsuff= shlibsuff= libmagic=32-bit;;
18097     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18098       libsuff=32 shlibsuff=N32 libmagic=N32;;
18099     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18100       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18101     *) libsuff= shlibsuff= libmagic=never-match;;
18102     esac
18103     ;;
18104   esac
18105   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18106   shlibpath_overrides_runpath=no
18107   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18108   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18109   hardcode_into_libs=yes
18110   ;;
18111
18112 # No shared lib support for Linux oldld, aout, or coff.
18113 linux*oldld* | linux*aout* | linux*coff*)
18114   dynamic_linker=no
18115   ;;
18116
18117 # This must be Linux ELF.
18118 linux*)
18119   version_type=linux
18120   need_lib_prefix=no
18121   need_version=no
18122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18123   soname_spec='${libname}${release}${shared_ext}$major'
18124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18125   shlibpath_var=LD_LIBRARY_PATH
18126   shlibpath_overrides_runpath=no
18127   # This implies no fast_install, which is unacceptable.
18128   # Some rework will be needed to allow for fast_install
18129   # before this can be enabled.
18130   hardcode_into_libs=yes
18131
18132   # find out which ABI we are using
18133   libsuff=
18134   case "$host_cpu" in
18135   x86_64*|s390x*|powerpc64*)
18136     echo '#line 18136 "configure"' > conftest.$ac_ext
18137     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18138   (eval $ac_compile) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); }; then
18142       case `/usr/bin/file conftest.$ac_objext` in
18143       *64-bit*)
18144         libsuff=64
18145         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18146         ;;
18147       esac
18148     fi
18149     rm -rf conftest*
18150     ;;
18151   esac
18152
18153   # Append ld.so.conf contents to the search path
18154   if test -f /etc/ld.so.conf; then
18155     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' ' '`
18156     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18157   fi
18158
18159   # We used to test for /lib/ld.so.1 and disable shared libraries on
18160   # powerpc, because MkLinux only supported shared libraries with the
18161   # GNU dynamic linker.  Since this was broken with cross compilers,
18162   # most powerpc-linux boxes support dynamic linking these days and
18163   # people can always --disable-shared, the test was removed, and we
18164   # assume the GNU/Linux dynamic linker is in use.
18165   dynamic_linker='GNU/Linux ld.so'
18166   ;;
18167
18168 knetbsd*-gnu)
18169   version_type=linux
18170   need_lib_prefix=no
18171   need_version=no
18172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18173   soname_spec='${libname}${release}${shared_ext}$major'
18174   shlibpath_var=LD_LIBRARY_PATH
18175   shlibpath_overrides_runpath=no
18176   hardcode_into_libs=yes
18177   dynamic_linker='GNU ld.so'
18178   ;;
18179
18180 netbsd*)
18181   version_type=sunos
18182   need_lib_prefix=no
18183   need_version=no
18184   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18186     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18187     dynamic_linker='NetBSD (a.out) ld.so'
18188   else
18189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18190     soname_spec='${libname}${release}${shared_ext}$major'
18191     dynamic_linker='NetBSD ld.elf_so'
18192   fi
18193   shlibpath_var=LD_LIBRARY_PATH
18194   shlibpath_overrides_runpath=yes
18195   hardcode_into_libs=yes
18196   ;;
18197
18198 newsos6)
18199   version_type=linux
18200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201   shlibpath_var=LD_LIBRARY_PATH
18202   shlibpath_overrides_runpath=yes
18203   ;;
18204
18205 nto-qnx*)
18206   version_type=linux
18207   need_lib_prefix=no
18208   need_version=no
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210   soname_spec='${libname}${release}${shared_ext}$major'
18211   shlibpath_var=LD_LIBRARY_PATH
18212   shlibpath_overrides_runpath=yes
18213   ;;
18214
18215 openbsd*)
18216   version_type=sunos
18217   need_lib_prefix=no
18218   need_version=no
18219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18221   shlibpath_var=LD_LIBRARY_PATH
18222   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18223     case $host_os in
18224       openbsd2.[89] | openbsd2.[89].*)
18225         shlibpath_overrides_runpath=no
18226         ;;
18227       *)
18228         shlibpath_overrides_runpath=yes
18229         ;;
18230       esac
18231   else
18232     shlibpath_overrides_runpath=yes
18233   fi
18234   ;;
18235
18236 os2*)
18237   libname_spec='$name'
18238   shrext_cmds=".dll"
18239   need_lib_prefix=no
18240   library_names_spec='$libname${shared_ext} $libname.a'
18241   dynamic_linker='OS/2 ld.exe'
18242   shlibpath_var=LIBPATH
18243   ;;
18244
18245 osf3* | osf4* | osf5*)
18246   version_type=osf
18247   need_lib_prefix=no
18248   need_version=no
18249   soname_spec='${libname}${release}${shared_ext}$major'
18250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251   shlibpath_var=LD_LIBRARY_PATH
18252   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18253   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18254   ;;
18255
18256 sco3.2v5*)
18257   version_type=osf
18258   soname_spec='${libname}${release}${shared_ext}$major'
18259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260   shlibpath_var=LD_LIBRARY_PATH
18261   ;;
18262
18263 solaris*)
18264   version_type=linux
18265   need_lib_prefix=no
18266   need_version=no
18267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268   soname_spec='${libname}${release}${shared_ext}$major'
18269   shlibpath_var=LD_LIBRARY_PATH
18270   shlibpath_overrides_runpath=yes
18271   hardcode_into_libs=yes
18272   # ldd complains unless libraries are executable
18273   postinstall_cmds='chmod +x $lib'
18274   ;;
18275
18276 sunos4*)
18277   version_type=sunos
18278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18279   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18280   shlibpath_var=LD_LIBRARY_PATH
18281   shlibpath_overrides_runpath=yes
18282   if test "$with_gnu_ld" = yes; then
18283     need_lib_prefix=no
18284   fi
18285   need_version=yes
18286   ;;
18287
18288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18289   version_type=linux
18290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291   soname_spec='${libname}${release}${shared_ext}$major'
18292   shlibpath_var=LD_LIBRARY_PATH
18293   case $host_vendor in
18294     sni)
18295       shlibpath_overrides_runpath=no
18296       need_lib_prefix=no
18297       export_dynamic_flag_spec='${wl}-Blargedynsym'
18298       runpath_var=LD_RUN_PATH
18299       ;;
18300     siemens)
18301       need_lib_prefix=no
18302       ;;
18303     motorola)
18304       need_lib_prefix=no
18305       need_version=no
18306       shlibpath_overrides_runpath=no
18307       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18308       ;;
18309   esac
18310   ;;
18311
18312 sysv4*MP*)
18313   if test -d /usr/nec ;then
18314     version_type=linux
18315     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18316     soname_spec='$libname${shared_ext}.$major'
18317     shlibpath_var=LD_LIBRARY_PATH
18318   fi
18319   ;;
18320
18321 uts4*)
18322   version_type=linux
18323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324   soname_spec='${libname}${release}${shared_ext}$major'
18325   shlibpath_var=LD_LIBRARY_PATH
18326   ;;
18327
18328 *)
18329   dynamic_linker=no
18330   ;;
18331 esac
18332 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18333 echo "${ECHO_T}$dynamic_linker" >&6
18334 test "$dynamic_linker" = no && can_build_shared=no
18335
18336 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18337 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18338 hardcode_action_GCJ=
18339 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18340    test -n "$runpath_var_GCJ" || \
18341    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18342
18343   # We can hardcode non-existant directories.
18344   if test "$hardcode_direct_GCJ" != no &&
18345      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18346      # have to relink, otherwise we might link with an installed library
18347      # when we should be linking with a yet-to-be-installed one
18348      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18349      test "$hardcode_minus_L_GCJ" != no; then
18350     # Linking always hardcodes the temporary library directory.
18351     hardcode_action_GCJ=relink
18352   else
18353     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18354     hardcode_action_GCJ=immediate
18355   fi
18356 else
18357   # We cannot hardcode anything, or else we can only hardcode existing
18358   # directories.
18359   hardcode_action_GCJ=unsupported
18360 fi
18361 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18362 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18363
18364 if test "$hardcode_action_GCJ" = relink; then
18365   # Fast installation is not supported
18366   enable_fast_install=no
18367 elif test "$shlibpath_overrides_runpath" = yes ||
18368      test "$enable_shared" = no; then
18369   # Fast installation is not necessary
18370   enable_fast_install=needless
18371 fi
18372
18373 striplib=
18374 old_striplib=
18375 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18376 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18377 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18378   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18379   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18380   echo "$as_me:$LINENO: result: yes" >&5
18381 echo "${ECHO_T}yes" >&6
18382 else
18383 # FIXME - insert some real tests, host_os isn't really good enough
18384   case $host_os in
18385    darwin*)
18386        if test -n "$STRIP" ; then
18387          striplib="$STRIP -x"
18388          echo "$as_me:$LINENO: result: yes" >&5
18389 echo "${ECHO_T}yes" >&6
18390        else
18391   echo "$as_me:$LINENO: result: no" >&5
18392 echo "${ECHO_T}no" >&6
18393 fi
18394        ;;
18395    *)
18396   echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6
18398     ;;
18399   esac
18400 fi
18401
18402 if test "x$enable_dlopen" != xyes; then
18403   enable_dlopen=unknown
18404   enable_dlopen_self=unknown
18405   enable_dlopen_self_static=unknown
18406 else
18407   lt_cv_dlopen=no
18408   lt_cv_dlopen_libs=
18409
18410   case $host_os in
18411   beos*)
18412     lt_cv_dlopen="load_add_on"
18413     lt_cv_dlopen_libs=
18414     lt_cv_dlopen_self=yes
18415     ;;
18416
18417   mingw* | pw32*)
18418     lt_cv_dlopen="LoadLibrary"
18419     lt_cv_dlopen_libs=
18420    ;;
18421
18422   cygwin*)
18423     lt_cv_dlopen="dlopen"
18424     lt_cv_dlopen_libs=
18425    ;;
18426
18427   darwin*)
18428   # if libdl is installed we need to link against it
18429     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18430 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18431 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   ac_check_lib_save_LIBS=$LIBS
18435 LIBS="-ldl  $LIBS"
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442
18443 /* Override any gcc2 internal prototype to avoid an error.  */
18444 #ifdef __cplusplus
18445 extern "C"
18446 #endif
18447 /* We use char because int might match the return type of a gcc2
18448    builtin and then its argument prototype would still apply.  */
18449 char dlopen ();
18450 int
18451 main ()
18452 {
18453 dlopen ();
18454   ;
18455   return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460   (eval $ac_link) 2>conftest.er1
18461   ac_status=$?
18462   grep -v '^ *+' conftest.er1 >conftest.err
18463   rm -f conftest.er1
18464   cat conftest.err >&5
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } &&
18467          { ac_try='test -z "$ac_c_werror_flag"
18468                          || test ! -s conftest.err'
18469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470   (eval $ac_try) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; } &&
18474          { ac_try='test -s conftest$ac_exeext'
18475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476   (eval $ac_try) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; }; then
18480   ac_cv_lib_dl_dlopen=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_cv_lib_dl_dlopen=no
18486 fi
18487 rm -f conftest.err conftest.$ac_objext \
18488       conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18490 fi
18491 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18492 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18493 if test $ac_cv_lib_dl_dlopen = yes; then
18494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18495 else
18496
18497     lt_cv_dlopen="dyld"
18498     lt_cv_dlopen_libs=
18499     lt_cv_dlopen_self=yes
18500
18501 fi
18502
18503    ;;
18504
18505   *)
18506     echo "$as_me:$LINENO: checking for shl_load" >&5
18507 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18508 if test "${ac_cv_func_shl_load+set}" = set; then
18509   echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511   cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h.  */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h.  */
18517 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18519 #define shl_load innocuous_shl_load
18520
18521 /* System header to define __stub macros and hopefully few prototypes,
18522     which can conflict with char shl_load (); below.
18523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18524     <limits.h> exists even on freestanding compilers.  */
18525
18526 #ifdef __STDC__
18527 # include <limits.h>
18528 #else
18529 # include <assert.h>
18530 #endif
18531
18532 #undef shl_load
18533
18534 /* Override any gcc2 internal prototype to avoid an error.  */
18535 #ifdef __cplusplus
18536 extern "C"
18537 {
18538 #endif
18539 /* We use char because int might match the return type of a gcc2
18540    builtin and then its argument prototype would still apply.  */
18541 char shl_load ();
18542 /* The GNU C library defines this for functions which it implements
18543     to always fail with ENOSYS.  Some functions are actually named
18544     something starting with __ and the normal name is an alias.  */
18545 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18546 choke me
18547 #else
18548 char (*f) () = shl_load;
18549 #endif
18550 #ifdef __cplusplus
18551 }
18552 #endif
18553
18554 int
18555 main ()
18556 {
18557 return f != shl_load;
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18564   (eval $ac_link) 2>conftest.er1
18565   ac_status=$?
18566   grep -v '^ *+' conftest.er1 >conftest.err
18567   rm -f conftest.er1
18568   cat conftest.err >&5
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } &&
18571          { ac_try='test -z "$ac_c_werror_flag"
18572                          || test ! -s conftest.err'
18573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574   (eval $ac_try) 2>&5
18575   ac_status=$?
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); }; } &&
18578          { ac_try='test -s conftest$ac_exeext'
18579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580   (eval $ac_try) 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); }; }; then
18584   ac_cv_func_shl_load=yes
18585 else
18586   echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589 ac_cv_func_shl_load=no
18590 fi
18591 rm -f conftest.err conftest.$ac_objext \
18592       conftest$ac_exeext conftest.$ac_ext
18593 fi
18594 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18595 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18596 if test $ac_cv_func_shl_load = yes; then
18597   lt_cv_dlopen="shl_load"
18598 else
18599   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18600 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18601 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18602   echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604   ac_check_lib_save_LIBS=$LIBS
18605 LIBS="-ldld  $LIBS"
18606 cat >conftest.$ac_ext <<_ACEOF
18607 /* confdefs.h.  */
18608 _ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h.  */
18612
18613 /* Override any gcc2 internal prototype to avoid an error.  */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 /* We use char because int might match the return type of a gcc2
18618    builtin and then its argument prototype would still apply.  */
18619 char shl_load ();
18620 int
18621 main ()
18622 {
18623 shl_load ();
18624   ;
18625   return 0;
18626 }
18627 _ACEOF
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18630   (eval $ac_link) 2>conftest.er1
18631   ac_status=$?
18632   grep -v '^ *+' conftest.er1 >conftest.err
18633   rm -f conftest.er1
18634   cat conftest.err >&5
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); } &&
18637          { ac_try='test -z "$ac_c_werror_flag"
18638                          || test ! -s conftest.err'
18639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640   (eval $ac_try) 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; } &&
18644          { ac_try='test -s conftest$ac_exeext'
18645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646   (eval $ac_try) 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); }; }; then
18650   ac_cv_lib_dld_shl_load=yes
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_cv_lib_dld_shl_load=no
18656 fi
18657 rm -f conftest.err conftest.$ac_objext \
18658       conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18660 fi
18661 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18663 if test $ac_cv_lib_dld_shl_load = yes; then
18664   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18665 else
18666   echo "$as_me:$LINENO: checking for dlopen" >&5
18667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18668 if test "${ac_cv_func_dlopen+set}" = set; then
18669   echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671   cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18679 #define dlopen innocuous_dlopen
18680
18681 /* System header to define __stub macros and hopefully few prototypes,
18682     which can conflict with char dlopen (); below.
18683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684     <limits.h> exists even on freestanding compilers.  */
18685
18686 #ifdef __STDC__
18687 # include <limits.h>
18688 #else
18689 # include <assert.h>
18690 #endif
18691
18692 #undef dlopen
18693
18694 /* Override any gcc2 internal prototype to avoid an error.  */
18695 #ifdef __cplusplus
18696 extern "C"
18697 {
18698 #endif
18699 /* We use char because int might match the return type of a gcc2
18700    builtin and then its argument prototype would still apply.  */
18701 char dlopen ();
18702 /* The GNU C library defines this for functions which it implements
18703     to always fail with ENOSYS.  Some functions are actually named
18704     something starting with __ and the normal name is an alias.  */
18705 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18706 choke me
18707 #else
18708 char (*f) () = dlopen;
18709 #endif
18710 #ifdef __cplusplus
18711 }
18712 #endif
18713
18714 int
18715 main ()
18716 {
18717 return f != dlopen;
18718   ;
18719   return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18724   (eval $ac_link) 2>conftest.er1
18725   ac_status=$?
18726   grep -v '^ *+' conftest.er1 >conftest.err
18727   rm -f conftest.er1
18728   cat conftest.err >&5
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); } &&
18731          { ac_try='test -z "$ac_c_werror_flag"
18732                          || test ! -s conftest.err'
18733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734   (eval $ac_try) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; } &&
18738          { ac_try='test -s conftest$ac_exeext'
18739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740   (eval $ac_try) 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; }; then
18744   ac_cv_func_dlopen=yes
18745 else
18746   echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 ac_cv_func_dlopen=no
18750 fi
18751 rm -f conftest.err conftest.$ac_objext \
18752       conftest$ac_exeext conftest.$ac_ext
18753 fi
18754 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18755 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18756 if test $ac_cv_func_dlopen = yes; then
18757   lt_cv_dlopen="dlopen"
18758 else
18759   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   ac_check_lib_save_LIBS=$LIBS
18765 LIBS="-ldl  $LIBS"
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772
18773 /* Override any gcc2 internal prototype to avoid an error.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 /* We use char because int might match the return type of a gcc2
18778    builtin and then its argument prototype would still apply.  */
18779 char dlopen ();
18780 int
18781 main ()
18782 {
18783 dlopen ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790   (eval $ac_link) 2>conftest.er1
18791   ac_status=$?
18792   grep -v '^ *+' conftest.er1 >conftest.err
18793   rm -f conftest.er1
18794   cat conftest.err >&5
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -z "$ac_c_werror_flag"
18798                          || test ! -s conftest.err'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; } &&
18804          { ac_try='test -s conftest$ac_exeext'
18805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806   (eval $ac_try) 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; }; then
18810   ac_cv_lib_dl_dlopen=yes
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_cv_lib_dl_dlopen=no
18816 fi
18817 rm -f conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18823 if test $ac_cv_lib_dl_dlopen = yes; then
18824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18825 else
18826   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18827 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18829   echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831   ac_check_lib_save_LIBS=$LIBS
18832 LIBS="-lsvld  $LIBS"
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h.  */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h.  */
18839
18840 /* Override any gcc2 internal prototype to avoid an error.  */
18841 #ifdef __cplusplus
18842 extern "C"
18843 #endif
18844 /* We use char because int might match the return type of a gcc2
18845    builtin and then its argument prototype would still apply.  */
18846 char dlopen ();
18847 int
18848 main ()
18849 {
18850 dlopen ();
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857   (eval $ac_link) 2>conftest.er1
18858   ac_status=$?
18859   grep -v '^ *+' conftest.er1 >conftest.err
18860   rm -f conftest.er1
18861   cat conftest.err >&5
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); } &&
18864          { ac_try='test -z "$ac_c_werror_flag"
18865                          || test ! -s conftest.err'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest$ac_exeext'
18872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873   (eval $ac_try) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; }; then
18877   ac_cv_lib_svld_dlopen=yes
18878 else
18879   echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882 ac_cv_lib_svld_dlopen=no
18883 fi
18884 rm -f conftest.err conftest.$ac_objext \
18885       conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18887 fi
18888 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18890 if test $ac_cv_lib_svld_dlopen = yes; then
18891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18892 else
18893   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-ldld  $LIBS"
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906
18907 /* Override any gcc2 internal prototype to avoid an error.  */
18908 #ifdef __cplusplus
18909 extern "C"
18910 #endif
18911 /* We use char because int might match the return type of a gcc2
18912    builtin and then its argument prototype would still apply.  */
18913 char dld_link ();
18914 int
18915 main ()
18916 {
18917 dld_link ();
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18924   (eval $ac_link) 2>conftest.er1
18925   ac_status=$?
18926   grep -v '^ *+' conftest.er1 >conftest.err
18927   rm -f conftest.er1
18928   cat conftest.err >&5
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } &&
18931          { ac_try='test -z "$ac_c_werror_flag"
18932                          || test ! -s conftest.err'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest$ac_exeext'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; }; then
18944   ac_cv_lib_dld_dld_link=yes
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 ac_cv_lib_dld_dld_link=no
18950 fi
18951 rm -f conftest.err conftest.$ac_objext \
18952       conftest$ac_exeext conftest.$ac_ext
18953 LIBS=$ac_check_lib_save_LIBS
18954 fi
18955 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18957 if test $ac_cv_lib_dld_dld_link = yes; then
18958   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18959 fi
18960
18961
18962 fi
18963
18964
18965 fi
18966
18967
18968 fi
18969
18970
18971 fi
18972
18973
18974 fi
18975
18976     ;;
18977   esac
18978
18979   if test "x$lt_cv_dlopen" != xno; then
18980     enable_dlopen=yes
18981   else
18982     enable_dlopen=no
18983   fi
18984
18985   case $lt_cv_dlopen in
18986   dlopen)
18987     save_CPPFLAGS="$CPPFLAGS"
18988     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18989
18990     save_LDFLAGS="$LDFLAGS"
18991     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18992
18993     save_LIBS="$LIBS"
18994     LIBS="$lt_cv_dlopen_libs $LIBS"
18995
18996     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18998 if test "${lt_cv_dlopen_self+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001           if test "$cross_compiling" = yes; then :
19002   lt_cv_dlopen_self=cross
19003 else
19004   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19005   lt_status=$lt_dlunknown
19006   cat > conftest.$ac_ext <<EOF
19007 #line 19007 "configure"
19008 #include "confdefs.h"
19009
19010 #if HAVE_DLFCN_H
19011 #include <dlfcn.h>
19012 #endif
19013
19014 #include <stdio.h>
19015
19016 #ifdef RTLD_GLOBAL
19017 #  define LT_DLGLOBAL           RTLD_GLOBAL
19018 #else
19019 #  ifdef DL_GLOBAL
19020 #    define LT_DLGLOBAL         DL_GLOBAL
19021 #  else
19022 #    define LT_DLGLOBAL         0
19023 #  endif
19024 #endif
19025
19026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19027    find out it does not work in some platform. */
19028 #ifndef LT_DLLAZY_OR_NOW
19029 #  ifdef RTLD_LAZY
19030 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19031 #  else
19032 #    ifdef DL_LAZY
19033 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19034 #    else
19035 #      ifdef RTLD_NOW
19036 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19037 #      else
19038 #        ifdef DL_NOW
19039 #          define LT_DLLAZY_OR_NOW      DL_NOW
19040 #        else
19041 #          define LT_DLLAZY_OR_NOW      0
19042 #        endif
19043 #      endif
19044 #    endif
19045 #  endif
19046 #endif
19047
19048 #ifdef __cplusplus
19049 extern "C" void exit (int);
19050 #endif
19051
19052 void fnord() { int i=42;}
19053 int main ()
19054 {
19055   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19056   int status = $lt_dlunknown;
19057
19058   if (self)
19059     {
19060       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19061       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19062       /* dlclose (self); */
19063     }
19064
19065     exit (status);
19066 }
19067 EOF
19068   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19069   (eval $ac_link) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19073     (./conftest; exit; ) 2>/dev/null
19074     lt_status=$?
19075     case x$lt_status in
19076       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19077       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19078       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19079     esac
19080   else :
19081     # compilation failed
19082     lt_cv_dlopen_self=no
19083   fi
19084 fi
19085 rm -fr conftest*
19086
19087
19088 fi
19089 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19091
19092     if test "x$lt_cv_dlopen_self" = xyes; then
19093       LDFLAGS="$LDFLAGS $link_static_flag"
19094       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19096 if test "${lt_cv_dlopen_self_static+set}" = set; then
19097   echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099           if test "$cross_compiling" = yes; then :
19100   lt_cv_dlopen_self_static=cross
19101 else
19102   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19103   lt_status=$lt_dlunknown
19104   cat > conftest.$ac_ext <<EOF
19105 #line 19105 "configure"
19106 #include "confdefs.h"
19107
19108 #if HAVE_DLFCN_H
19109 #include <dlfcn.h>
19110 #endif
19111
19112 #include <stdio.h>
19113
19114 #ifdef RTLD_GLOBAL
19115 #  define LT_DLGLOBAL           RTLD_GLOBAL
19116 #else
19117 #  ifdef DL_GLOBAL
19118 #    define LT_DLGLOBAL         DL_GLOBAL
19119 #  else
19120 #    define LT_DLGLOBAL         0
19121 #  endif
19122 #endif
19123
19124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19125    find out it does not work in some platform. */
19126 #ifndef LT_DLLAZY_OR_NOW
19127 #  ifdef RTLD_LAZY
19128 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19129 #  else
19130 #    ifdef DL_LAZY
19131 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19132 #    else
19133 #      ifdef RTLD_NOW
19134 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19135 #      else
19136 #        ifdef DL_NOW
19137 #          define LT_DLLAZY_OR_NOW      DL_NOW
19138 #        else
19139 #          define LT_DLLAZY_OR_NOW      0
19140 #        endif
19141 #      endif
19142 #    endif
19143 #  endif
19144 #endif
19145
19146 #ifdef __cplusplus
19147 extern "C" void exit (int);
19148 #endif
19149
19150 void fnord() { int i=42;}
19151 int main ()
19152 {
19153   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19154   int status = $lt_dlunknown;
19155
19156   if (self)
19157     {
19158       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19159       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19160       /* dlclose (self); */
19161     }
19162
19163     exit (status);
19164 }
19165 EOF
19166   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167   (eval $ac_link) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19171     (./conftest; exit; ) 2>/dev/null
19172     lt_status=$?
19173     case x$lt_status in
19174       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19175       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19176       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19177     esac
19178   else :
19179     # compilation failed
19180     lt_cv_dlopen_self_static=no
19181   fi
19182 fi
19183 rm -fr conftest*
19184
19185
19186 fi
19187 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19188 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19189     fi
19190
19191     CPPFLAGS="$save_CPPFLAGS"
19192     LDFLAGS="$save_LDFLAGS"
19193     LIBS="$save_LIBS"
19194     ;;
19195   esac
19196
19197   case $lt_cv_dlopen_self in
19198   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19199   *) enable_dlopen_self=unknown ;;
19200   esac
19201
19202   case $lt_cv_dlopen_self_static in
19203   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19204   *) enable_dlopen_self_static=unknown ;;
19205   esac
19206 fi
19207
19208
19209 # The else clause should only fire when bootstrapping the
19210 # libtool distribution, otherwise you forgot to ship ltmain.sh
19211 # with your package, and you will get complaints that there are
19212 # no rules to generate ltmain.sh.
19213 if test -f "$ltmain"; then
19214   # See if we are running on zsh, and set the options which allow our commands through
19215   # without removal of \ escapes.
19216   if test -n "${ZSH_VERSION+set}" ; then
19217     setopt NO_GLOB_SUBST
19218   fi
19219   # Now quote all the things that may contain metacharacters while being
19220   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19221   # variables and quote the copies for generation of the libtool script.
19222   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19223     SED SHELL STRIP \
19224     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19225     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19226     deplibs_check_method reload_flag reload_cmds need_locks \
19227     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19228     lt_cv_sys_global_symbol_to_c_name_address \
19229     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19230     old_postinstall_cmds old_postuninstall_cmds \
19231     compiler_GCJ \
19232     CC_GCJ \
19233     LD_GCJ \
19234     lt_prog_compiler_wl_GCJ \
19235     lt_prog_compiler_pic_GCJ \
19236     lt_prog_compiler_static_GCJ \
19237     lt_prog_compiler_no_builtin_flag_GCJ \
19238     export_dynamic_flag_spec_GCJ \
19239     thread_safe_flag_spec_GCJ \
19240     whole_archive_flag_spec_GCJ \
19241     enable_shared_with_static_runtimes_GCJ \
19242     old_archive_cmds_GCJ \
19243     old_archive_from_new_cmds_GCJ \
19244     predep_objects_GCJ \
19245     postdep_objects_GCJ \
19246     predeps_GCJ \
19247     postdeps_GCJ \
19248     compiler_lib_search_path_GCJ \
19249     archive_cmds_GCJ \
19250     archive_expsym_cmds_GCJ \
19251     postinstall_cmds_GCJ \
19252     postuninstall_cmds_GCJ \
19253     old_archive_from_expsyms_cmds_GCJ \
19254     allow_undefined_flag_GCJ \
19255     no_undefined_flag_GCJ \
19256     export_symbols_cmds_GCJ \
19257     hardcode_libdir_flag_spec_GCJ \
19258     hardcode_libdir_flag_spec_ld_GCJ \
19259     hardcode_libdir_separator_GCJ \
19260     hardcode_automatic_GCJ \
19261     module_cmds_GCJ \
19262     module_expsym_cmds_GCJ \
19263     lt_cv_prog_compiler_c_o_GCJ \
19264     exclude_expsyms_GCJ \
19265     include_expsyms_GCJ; do
19266
19267     case $var in
19268     old_archive_cmds_GCJ | \
19269     old_archive_from_new_cmds_GCJ | \
19270     archive_cmds_GCJ | \
19271     archive_expsym_cmds_GCJ | \
19272     module_cmds_GCJ | \
19273     module_expsym_cmds_GCJ | \
19274     old_archive_from_expsyms_cmds_GCJ | \
19275     export_symbols_cmds_GCJ | \
19276     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19277     postinstall_cmds | postuninstall_cmds | \
19278     old_postinstall_cmds | old_postuninstall_cmds | \
19279     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19280       # Double-quote double-evaled strings.
19281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19282       ;;
19283     *)
19284       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19285       ;;
19286     esac
19287   done
19288
19289   case $lt_echo in
19290   *'\$0 --fallback-echo"')
19291     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19292     ;;
19293   esac
19294
19295 cfgfile="$ofile"
19296
19297   cat <<__EOF__ >> "$cfgfile"
19298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19299
19300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19301
19302 # Shell to use when invoking shell scripts.
19303 SHELL=$lt_SHELL
19304
19305 # Whether or not to build shared libraries.
19306 build_libtool_libs=$enable_shared
19307
19308 # Whether or not to build static libraries.
19309 build_old_libs=$enable_static
19310
19311 # Whether or not to add -lc for building shared libraries.
19312 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19313
19314 # Whether or not to disallow shared libs when runtime libs are static
19315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19316
19317 # Whether or not to optimize for fast installation.
19318 fast_install=$enable_fast_install
19319
19320 # The host system.
19321 host_alias=$host_alias
19322 host=$host
19323 host_os=$host_os
19324
19325 # The build system.
19326 build_alias=$build_alias
19327 build=$build
19328 build_os=$build_os
19329
19330 # An echo program that does not interpret backslashes.
19331 echo=$lt_echo
19332
19333 # The archiver.
19334 AR=$lt_AR
19335 AR_FLAGS=$lt_AR_FLAGS
19336
19337 # A C compiler.
19338 LTCC=$lt_LTCC
19339
19340 # A language-specific compiler.
19341 CC=$lt_compiler_GCJ
19342
19343 # Is the compiler the GNU C compiler?
19344 with_gcc=$GCC_GCJ
19345
19346 # An ERE matcher.
19347 EGREP=$lt_EGREP
19348
19349 # The linker used to build libraries.
19350 LD=$lt_LD_GCJ
19351
19352 # Whether we need hard or soft links.
19353 LN_S=$lt_LN_S
19354
19355 # A BSD-compatible nm program.
19356 NM=$lt_NM
19357
19358 # A symbol stripping program
19359 STRIP=$lt_STRIP
19360
19361 # Used to examine libraries when file_magic_cmd begins "file"
19362 MAGIC_CMD=$MAGIC_CMD
19363
19364 # Used on cygwin: DLL creation program.
19365 DLLTOOL="$DLLTOOL"
19366
19367 # Used on cygwin: object dumper.
19368 OBJDUMP="$OBJDUMP"
19369
19370 # Used on cygwin: assembler.
19371 AS="$AS"
19372
19373 # The name of the directory that contains temporary libtool files.
19374 objdir=$objdir
19375
19376 # How to create reloadable object files.
19377 reload_flag=$lt_reload_flag
19378 reload_cmds=$lt_reload_cmds
19379
19380 # How to pass a linker flag through the compiler.
19381 wl=$lt_lt_prog_compiler_wl_GCJ
19382
19383 # Object file suffix (normally "o").
19384 objext="$ac_objext"
19385
19386 # Old archive suffix (normally "a").
19387 libext="$libext"
19388
19389 # Shared library suffix (normally ".so").
19390 shrext_cmds='$shrext_cmds'
19391
19392 # Executable file suffix (normally "").
19393 exeext="$exeext"
19394
19395 # Additional compiler flags for building library objects.
19396 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19397 pic_mode=$pic_mode
19398
19399 # What is the maximum length of a command?
19400 max_cmd_len=$lt_cv_sys_max_cmd_len
19401
19402 # Does compiler simultaneously support -c and -o options?
19403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19404
19405 # Must we lock files when doing compilation?
19406 need_locks=$lt_need_locks
19407
19408 # Do we need the lib prefix for modules?
19409 need_lib_prefix=$need_lib_prefix
19410
19411 # Do we need a version for libraries?
19412 need_version=$need_version
19413
19414 # Whether dlopen is supported.
19415 dlopen_support=$enable_dlopen
19416
19417 # Whether dlopen of programs is supported.
19418 dlopen_self=$enable_dlopen_self
19419
19420 # Whether dlopen of statically linked programs is supported.
19421 dlopen_self_static=$enable_dlopen_self_static
19422
19423 # Compiler flag to prevent dynamic linking.
19424 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19425
19426 # Compiler flag to turn off builtin functions.
19427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19428
19429 # Compiler flag to allow reflexive dlopens.
19430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19431
19432 # Compiler flag to generate shared objects directly from archives.
19433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19434
19435 # Compiler flag to generate thread-safe objects.
19436 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19437
19438 # Library versioning type.
19439 version_type=$version_type
19440
19441 # Format of library name prefix.
19442 libname_spec=$lt_libname_spec
19443
19444 # List of archive names.  First name is the real one, the rest are links.
19445 # The last name is the one that the linker finds with -lNAME.
19446 library_names_spec=$lt_library_names_spec
19447
19448 # The coded name of the library, if different from the real name.
19449 soname_spec=$lt_soname_spec
19450
19451 # Commands used to build and install an old-style archive.
19452 RANLIB=$lt_RANLIB
19453 old_archive_cmds=$lt_old_archive_cmds_GCJ
19454 old_postinstall_cmds=$lt_old_postinstall_cmds
19455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19456
19457 # Create an old-style archive from a shared archive.
19458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19459
19460 # Create a temporary old-style archive to link instead of a shared archive.
19461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19462
19463 # Commands used to build and install a shared archive.
19464 archive_cmds=$lt_archive_cmds_GCJ
19465 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19466 postinstall_cmds=$lt_postinstall_cmds
19467 postuninstall_cmds=$lt_postuninstall_cmds
19468
19469 # Commands used to build a loadable module (assumed same as above if empty)
19470 module_cmds=$lt_module_cmds_GCJ
19471 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19472
19473 # Commands to strip libraries.
19474 old_striplib=$lt_old_striplib
19475 striplib=$lt_striplib
19476
19477 # Dependencies to place before the objects being linked to create a
19478 # shared library.
19479 predep_objects=$lt_predep_objects_GCJ
19480
19481 # Dependencies to place after the objects being linked to create a
19482 # shared library.
19483 postdep_objects=$lt_postdep_objects_GCJ
19484
19485 # Dependencies to place before the objects being linked to create a
19486 # shared library.
19487 predeps=$lt_predeps_GCJ
19488
19489 # Dependencies to place after the objects being linked to create a
19490 # shared library.
19491 postdeps=$lt_postdeps_GCJ
19492
19493 # The library search path used internally by the compiler when linking
19494 # a shared library.
19495 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19496
19497 # Method to check whether dependent libraries are shared objects.
19498 deplibs_check_method=$lt_deplibs_check_method
19499
19500 # Command to use when deplibs_check_method == file_magic.
19501 file_magic_cmd=$lt_file_magic_cmd
19502
19503 # Flag that allows shared libraries with undefined symbols to be built.
19504 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19505
19506 # Flag that forces no undefined symbols.
19507 no_undefined_flag=$lt_no_undefined_flag_GCJ
19508
19509 # Commands used to finish a libtool library installation in a directory.
19510 finish_cmds=$lt_finish_cmds
19511
19512 # Same as above, but a single script fragment to be evaled but not shown.
19513 finish_eval=$lt_finish_eval
19514
19515 # Take the output of nm and produce a listing of raw symbols and C names.
19516 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19517
19518 # Transform the output of nm in a proper C declaration
19519 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19520
19521 # Transform the output of nm in a C name address pair
19522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19523
19524 # This is the shared library runtime path variable.
19525 runpath_var=$runpath_var
19526
19527 # This is the shared library path variable.
19528 shlibpath_var=$shlibpath_var
19529
19530 # Is shlibpath searched before the hard-coded library search path?
19531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19532
19533 # How to hardcode a shared library path into an executable.
19534 hardcode_action=$hardcode_action_GCJ
19535
19536 # Whether we should hardcode library paths into libraries.
19537 hardcode_into_libs=$hardcode_into_libs
19538
19539 # Flag to hardcode \$libdir into a binary during linking.
19540 # This must work even if \$libdir does not exist.
19541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19542
19543 # If ld is used when linking, flag to hardcode \$libdir into
19544 # a binary during linking. This must work even if \$libdir does
19545 # not exist.
19546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19547
19548 # Whether we need a single -rpath flag with a separated argument.
19549 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19550
19551 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19552 # resulting binary.
19553 hardcode_direct=$hardcode_direct_GCJ
19554
19555 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19556 # resulting binary.
19557 hardcode_minus_L=$hardcode_minus_L_GCJ
19558
19559 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19560 # the resulting binary.
19561 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19562
19563 # Set to yes if building a shared library automatically hardcodes DIR into the library
19564 # and all subsequent libraries and executables linked against it.
19565 hardcode_automatic=$hardcode_automatic_GCJ
19566
19567 # Variables whose values should be saved in libtool wrapper scripts and
19568 # restored at relink time.
19569 variables_saved_for_relink="$variables_saved_for_relink"
19570
19571 # Whether libtool must link a program against all its dependency libraries.
19572 link_all_deplibs=$link_all_deplibs_GCJ
19573
19574 # Compile-time system search path for libraries
19575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19576
19577 # Run-time system search path for libraries
19578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19579
19580 # Fix the shell variable \$srcfile for the compiler.
19581 fix_srcfile_path="$fix_srcfile_path_GCJ"
19582
19583 # Set to yes if exported symbols are required.
19584 always_export_symbols=$always_export_symbols_GCJ
19585
19586 # The commands to list exported symbols.
19587 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19588
19589 # The commands to extract the exported symbol list from a shared archive.
19590 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19591
19592 # Symbols that should not be listed in the preloaded symbols.
19593 exclude_expsyms=$lt_exclude_expsyms_GCJ
19594
19595 # Symbols that must always be exported.
19596 include_expsyms=$lt_include_expsyms_GCJ
19597
19598 # ### END LIBTOOL TAG CONFIG: $tagname
19599
19600 __EOF__
19601
19602
19603 else
19604   # If there is no Makefile yet, we rely on a make rule to execute
19605   # `config.status --recheck' to rerun these tests and create the
19606   # libtool script then.
19607   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19608   if test -f "$ltmain_in"; then
19609     test -f Makefile && make "$ltmain"
19610   fi
19611 fi
19612
19613
19614 ac_ext=c
19615 ac_cpp='$CPP $CPPFLAGS'
19616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619
19620 CC="$lt_save_CC"
19621
19622         else
19623           tagname=""
19624         fi
19625         ;;
19626
19627       RC)
19628
19629
19630
19631 # Source file extension for RC test sources.
19632 ac_ext=rc
19633
19634 # Object file extension for compiled RC test sources.
19635 objext=o
19636 objext_RC=$objext
19637
19638 # Code to be used in simple compile tests
19639 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19640
19641 # Code to be used in simple link tests
19642 lt_simple_link_test_code="$lt_simple_compile_test_code"
19643
19644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19645
19646 # If no C compiler was specified, use CC.
19647 LTCC=${LTCC-"$CC"}
19648
19649 # Allow CC to be a program name with arguments.
19650 compiler=$CC
19651
19652
19653 # save warnings/boilerplate of simple test code
19654 ac_outfile=conftest.$ac_objext
19655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19657 _lt_compiler_boilerplate=`cat conftest.err`
19658 $rm conftest*
19659
19660 ac_outfile=conftest.$ac_objext
19661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19663 _lt_linker_boilerplate=`cat conftest.err`
19664 $rm conftest*
19665
19666
19667 # Allow CC to be a program name with arguments.
19668 lt_save_CC="$CC"
19669 CC=${RC-"windres"}
19670 compiler=$CC
19671 compiler_RC=$CC
19672 for cc_temp in $compiler""; do
19673   case $cc_temp in
19674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19676     \-*) ;;
19677     *) break;;
19678   esac
19679 done
19680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19681
19682 lt_cv_prog_compiler_c_o_RC=yes
19683
19684 # The else clause should only fire when bootstrapping the
19685 # libtool distribution, otherwise you forgot to ship ltmain.sh
19686 # with your package, and you will get complaints that there are
19687 # no rules to generate ltmain.sh.
19688 if test -f "$ltmain"; then
19689   # See if we are running on zsh, and set the options which allow our commands through
19690   # without removal of \ escapes.
19691   if test -n "${ZSH_VERSION+set}" ; then
19692     setopt NO_GLOB_SUBST
19693   fi
19694   # Now quote all the things that may contain metacharacters while being
19695   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19696   # variables and quote the copies for generation of the libtool script.
19697   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19698     SED SHELL STRIP \
19699     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19700     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19701     deplibs_check_method reload_flag reload_cmds need_locks \
19702     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19703     lt_cv_sys_global_symbol_to_c_name_address \
19704     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19705     old_postinstall_cmds old_postuninstall_cmds \
19706     compiler_RC \
19707     CC_RC \
19708     LD_RC \
19709     lt_prog_compiler_wl_RC \
19710     lt_prog_compiler_pic_RC \
19711     lt_prog_compiler_static_RC \
19712     lt_prog_compiler_no_builtin_flag_RC \
19713     export_dynamic_flag_spec_RC \
19714     thread_safe_flag_spec_RC \
19715     whole_archive_flag_spec_RC \
19716     enable_shared_with_static_runtimes_RC \
19717     old_archive_cmds_RC \
19718     old_archive_from_new_cmds_RC \
19719     predep_objects_RC \
19720     postdep_objects_RC \
19721     predeps_RC \
19722     postdeps_RC \
19723     compiler_lib_search_path_RC \
19724     archive_cmds_RC \
19725     archive_expsym_cmds_RC \
19726     postinstall_cmds_RC \
19727     postuninstall_cmds_RC \
19728     old_archive_from_expsyms_cmds_RC \
19729     allow_undefined_flag_RC \
19730     no_undefined_flag_RC \
19731     export_symbols_cmds_RC \
19732     hardcode_libdir_flag_spec_RC \
19733     hardcode_libdir_flag_spec_ld_RC \
19734     hardcode_libdir_separator_RC \
19735     hardcode_automatic_RC \
19736     module_cmds_RC \
19737     module_expsym_cmds_RC \
19738     lt_cv_prog_compiler_c_o_RC \
19739     exclude_expsyms_RC \
19740     include_expsyms_RC; do
19741
19742     case $var in
19743     old_archive_cmds_RC | \
19744     old_archive_from_new_cmds_RC | \
19745     archive_cmds_RC | \
19746     archive_expsym_cmds_RC | \
19747     module_cmds_RC | \
19748     module_expsym_cmds_RC | \
19749     old_archive_from_expsyms_cmds_RC | \
19750     export_symbols_cmds_RC | \
19751     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19752     postinstall_cmds | postuninstall_cmds | \
19753     old_postinstall_cmds | old_postuninstall_cmds | \
19754     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19755       # Double-quote double-evaled strings.
19756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19757       ;;
19758     *)
19759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19760       ;;
19761     esac
19762   done
19763
19764   case $lt_echo in
19765   *'\$0 --fallback-echo"')
19766     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19767     ;;
19768   esac
19769
19770 cfgfile="$ofile"
19771
19772   cat <<__EOF__ >> "$cfgfile"
19773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19774
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19776
19777 # Shell to use when invoking shell scripts.
19778 SHELL=$lt_SHELL
19779
19780 # Whether or not to build shared libraries.
19781 build_libtool_libs=$enable_shared
19782
19783 # Whether or not to build static libraries.
19784 build_old_libs=$enable_static
19785
19786 # Whether or not to add -lc for building shared libraries.
19787 build_libtool_need_lc=$archive_cmds_need_lc_RC
19788
19789 # Whether or not to disallow shared libs when runtime libs are static
19790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19791
19792 # Whether or not to optimize for fast installation.
19793 fast_install=$enable_fast_install
19794
19795 # The host system.
19796 host_alias=$host_alias
19797 host=$host
19798 host_os=$host_os
19799
19800 # The build system.
19801 build_alias=$build_alias
19802 build=$build
19803 build_os=$build_os
19804
19805 # An echo program that does not interpret backslashes.
19806 echo=$lt_echo
19807
19808 # The archiver.
19809 AR=$lt_AR
19810 AR_FLAGS=$lt_AR_FLAGS
19811
19812 # A C compiler.
19813 LTCC=$lt_LTCC
19814
19815 # A language-specific compiler.
19816 CC=$lt_compiler_RC
19817
19818 # Is the compiler the GNU C compiler?
19819 with_gcc=$GCC_RC
19820
19821 # An ERE matcher.
19822 EGREP=$lt_EGREP
19823
19824 # The linker used to build libraries.
19825 LD=$lt_LD_RC
19826
19827 # Whether we need hard or soft links.
19828 LN_S=$lt_LN_S
19829
19830 # A BSD-compatible nm program.
19831 NM=$lt_NM
19832
19833 # A symbol stripping program
19834 STRIP=$lt_STRIP
19835
19836 # Used to examine libraries when file_magic_cmd begins "file"
19837 MAGIC_CMD=$MAGIC_CMD
19838
19839 # Used on cygwin: DLL creation program.
19840 DLLTOOL="$DLLTOOL"
19841
19842 # Used on cygwin: object dumper.
19843 OBJDUMP="$OBJDUMP"
19844
19845 # Used on cygwin: assembler.
19846 AS="$AS"
19847
19848 # The name of the directory that contains temporary libtool files.
19849 objdir=$objdir
19850
19851 # How to create reloadable object files.
19852 reload_flag=$lt_reload_flag
19853 reload_cmds=$lt_reload_cmds
19854
19855 # How to pass a linker flag through the compiler.
19856 wl=$lt_lt_prog_compiler_wl_RC
19857
19858 # Object file suffix (normally "o").
19859 objext="$ac_objext"
19860
19861 # Old archive suffix (normally "a").
19862 libext="$libext"
19863
19864 # Shared library suffix (normally ".so").
19865 shrext_cmds='$shrext_cmds'
19866
19867 # Executable file suffix (normally "").
19868 exeext="$exeext"
19869
19870 # Additional compiler flags for building library objects.
19871 pic_flag=$lt_lt_prog_compiler_pic_RC
19872 pic_mode=$pic_mode
19873
19874 # What is the maximum length of a command?
19875 max_cmd_len=$lt_cv_sys_max_cmd_len
19876
19877 # Does compiler simultaneously support -c and -o options?
19878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19879
19880 # Must we lock files when doing compilation?
19881 need_locks=$lt_need_locks
19882
19883 # Do we need the lib prefix for modules?
19884 need_lib_prefix=$need_lib_prefix
19885
19886 # Do we need a version for libraries?
19887 need_version=$need_version
19888
19889 # Whether dlopen is supported.
19890 dlopen_support=$enable_dlopen
19891
19892 # Whether dlopen of programs is supported.
19893 dlopen_self=$enable_dlopen_self
19894
19895 # Whether dlopen of statically linked programs is supported.
19896 dlopen_self_static=$enable_dlopen_self_static
19897
19898 # Compiler flag to prevent dynamic linking.
19899 link_static_flag=$lt_lt_prog_compiler_static_RC
19900
19901 # Compiler flag to turn off builtin functions.
19902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19903
19904 # Compiler flag to allow reflexive dlopens.
19905 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19906
19907 # Compiler flag to generate shared objects directly from archives.
19908 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19909
19910 # Compiler flag to generate thread-safe objects.
19911 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19912
19913 # Library versioning type.
19914 version_type=$version_type
19915
19916 # Format of library name prefix.
19917 libname_spec=$lt_libname_spec
19918
19919 # List of archive names.  First name is the real one, the rest are links.
19920 # The last name is the one that the linker finds with -lNAME.
19921 library_names_spec=$lt_library_names_spec
19922
19923 # The coded name of the library, if different from the real name.
19924 soname_spec=$lt_soname_spec
19925
19926 # Commands used to build and install an old-style archive.
19927 RANLIB=$lt_RANLIB
19928 old_archive_cmds=$lt_old_archive_cmds_RC
19929 old_postinstall_cmds=$lt_old_postinstall_cmds
19930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19931
19932 # Create an old-style archive from a shared archive.
19933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19934
19935 # Create a temporary old-style archive to link instead of a shared archive.
19936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19937
19938 # Commands used to build and install a shared archive.
19939 archive_cmds=$lt_archive_cmds_RC
19940 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19941 postinstall_cmds=$lt_postinstall_cmds
19942 postuninstall_cmds=$lt_postuninstall_cmds
19943
19944 # Commands used to build a loadable module (assumed same as above if empty)
19945 module_cmds=$lt_module_cmds_RC
19946 module_expsym_cmds=$lt_module_expsym_cmds_RC
19947
19948 # Commands to strip libraries.
19949 old_striplib=$lt_old_striplib
19950 striplib=$lt_striplib
19951
19952 # Dependencies to place before the objects being linked to create a
19953 # shared library.
19954 predep_objects=$lt_predep_objects_RC
19955
19956 # Dependencies to place after the objects being linked to create a
19957 # shared library.
19958 postdep_objects=$lt_postdep_objects_RC
19959
19960 # Dependencies to place before the objects being linked to create a
19961 # shared library.
19962 predeps=$lt_predeps_RC
19963
19964 # Dependencies to place after the objects being linked to create a
19965 # shared library.
19966 postdeps=$lt_postdeps_RC
19967
19968 # The library search path used internally by the compiler when linking
19969 # a shared library.
19970 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19971
19972 # Method to check whether dependent libraries are shared objects.
19973 deplibs_check_method=$lt_deplibs_check_method
19974
19975 # Command to use when deplibs_check_method == file_magic.
19976 file_magic_cmd=$lt_file_magic_cmd
19977
19978 # Flag that allows shared libraries with undefined symbols to be built.
19979 allow_undefined_flag=$lt_allow_undefined_flag_RC
19980
19981 # Flag that forces no undefined symbols.
19982 no_undefined_flag=$lt_no_undefined_flag_RC
19983
19984 # Commands used to finish a libtool library installation in a directory.
19985 finish_cmds=$lt_finish_cmds
19986
19987 # Same as above, but a single script fragment to be evaled but not shown.
19988 finish_eval=$lt_finish_eval
19989
19990 # Take the output of nm and produce a listing of raw symbols and C names.
19991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19992
19993 # Transform the output of nm in a proper C declaration
19994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19995
19996 # Transform the output of nm in a C name address pair
19997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19998
19999 # This is the shared library runtime path variable.
20000 runpath_var=$runpath_var
20001
20002 # This is the shared library path variable.
20003 shlibpath_var=$shlibpath_var
20004
20005 # Is shlibpath searched before the hard-coded library search path?
20006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20007
20008 # How to hardcode a shared library path into an executable.
20009 hardcode_action=$hardcode_action_RC
20010
20011 # Whether we should hardcode library paths into libraries.
20012 hardcode_into_libs=$hardcode_into_libs
20013
20014 # Flag to hardcode \$libdir into a binary during linking.
20015 # This must work even if \$libdir does not exist.
20016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20017
20018 # If ld is used when linking, flag to hardcode \$libdir into
20019 # a binary during linking. This must work even if \$libdir does
20020 # not exist.
20021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20022
20023 # Whether we need a single -rpath flag with a separated argument.
20024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20025
20026 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20027 # resulting binary.
20028 hardcode_direct=$hardcode_direct_RC
20029
20030 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20031 # resulting binary.
20032 hardcode_minus_L=$hardcode_minus_L_RC
20033
20034 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20035 # the resulting binary.
20036 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20037
20038 # Set to yes if building a shared library automatically hardcodes DIR into the library
20039 # and all subsequent libraries and executables linked against it.
20040 hardcode_automatic=$hardcode_automatic_RC
20041
20042 # Variables whose values should be saved in libtool wrapper scripts and
20043 # restored at relink time.
20044 variables_saved_for_relink="$variables_saved_for_relink"
20045
20046 # Whether libtool must link a program against all its dependency libraries.
20047 link_all_deplibs=$link_all_deplibs_RC
20048
20049 # Compile-time system search path for libraries
20050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20051
20052 # Run-time system search path for libraries
20053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20054
20055 # Fix the shell variable \$srcfile for the compiler.
20056 fix_srcfile_path="$fix_srcfile_path_RC"
20057
20058 # Set to yes if exported symbols are required.
20059 always_export_symbols=$always_export_symbols_RC
20060
20061 # The commands to list exported symbols.
20062 export_symbols_cmds=$lt_export_symbols_cmds_RC
20063
20064 # The commands to extract the exported symbol list from a shared archive.
20065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20066
20067 # Symbols that should not be listed in the preloaded symbols.
20068 exclude_expsyms=$lt_exclude_expsyms_RC
20069
20070 # Symbols that must always be exported.
20071 include_expsyms=$lt_include_expsyms_RC
20072
20073 # ### END LIBTOOL TAG CONFIG: $tagname
20074
20075 __EOF__
20076
20077
20078 else
20079   # If there is no Makefile yet, we rely on a make rule to execute
20080   # `config.status --recheck' to rerun these tests and create the
20081   # libtool script then.
20082   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20083   if test -f "$ltmain_in"; then
20084     test -f Makefile && make "$ltmain"
20085   fi
20086 fi
20087
20088
20089 ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094
20095 CC="$lt_save_CC"
20096
20097         ;;
20098
20099       *)
20100         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20101 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20102    { (exit 1); exit 1; }; }
20103         ;;
20104       esac
20105
20106       # Append the new tag name to the list of available tags.
20107       if test -n "$tagname" ; then
20108       available_tags="$available_tags $tagname"
20109     fi
20110     fi
20111   done
20112   IFS="$lt_save_ifs"
20113
20114   # Now substitute the updated list of available tags.
20115   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20116     mv "${ofile}T" "$ofile"
20117     chmod +x "$ofile"
20118   else
20119     rm -f "${ofile}T"
20120     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20121 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20122    { (exit 1); exit 1; }; }
20123   fi
20124 fi
20125
20126
20127
20128 # This can be used to rebuild libtool when needed
20129 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20130
20131 # Always use our own libtool.
20132 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20133
20134 # Prevent multiple expansion
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162 ac_header_dirent=no
20163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20164   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20165 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20166 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168   echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170   cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 #include <sys/types.h>
20177 #include <$ac_hdr>
20178
20179 int
20180 main ()
20181 {
20182 if ((DIR *) 0)
20183 return 0;
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190   (eval $ac_compile) 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } &&
20197          { ac_try='test -z "$ac_c_werror_flag"
20198                          || test ! -s conftest.err'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; } &&
20204          { ac_try='test -s conftest.$ac_objext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   eval "$as_ac_Header=yes"
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 eval "$as_ac_Header=no"
20216 fi
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 fi
20219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20222   cat >>confdefs.h <<_ACEOF
20223 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20224 _ACEOF
20225
20226 ac_header_dirent=$ac_hdr; break
20227 fi
20228
20229 done
20230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20231 if test $ac_header_dirent = dirent.h; then
20232   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20233 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20234 if test "${ac_cv_search_opendir+set}" = set; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237   ac_func_search_save_LIBS=$LIBS
20238 ac_cv_search_opendir=no
20239 cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245
20246 /* Override any gcc2 internal prototype to avoid an error.  */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 /* We use char because int might match the return type of a gcc2
20251    builtin and then its argument prototype would still apply.  */
20252 char opendir ();
20253 int
20254 main ()
20255 {
20256 opendir ();
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263   (eval $ac_link) 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } &&
20270          { ac_try='test -z "$ac_c_werror_flag"
20271                          || test ! -s conftest.err'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; } &&
20277          { ac_try='test -s conftest$ac_exeext'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   ac_cv_search_opendir="none required"
20284 else
20285   echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 fi
20289 rm -f conftest.err conftest.$ac_objext \
20290       conftest$ac_exeext conftest.$ac_ext
20291 if test "$ac_cv_search_opendir" = no; then
20292   for ac_lib in dir; do
20293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20294     cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h.  */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h.  */
20300
20301 /* Override any gcc2 internal prototype to avoid an error.  */
20302 #ifdef __cplusplus
20303 extern "C"
20304 #endif
20305 /* We use char because int might match the return type of a gcc2
20306    builtin and then its argument prototype would still apply.  */
20307 char opendir ();
20308 int
20309 main ()
20310 {
20311 opendir ();
20312   ;
20313   return 0;
20314 }
20315 _ACEOF
20316 rm -f conftest.$ac_objext conftest$ac_exeext
20317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20318   (eval $ac_link) 2>conftest.er1
20319   ac_status=$?
20320   grep -v '^ *+' conftest.er1 >conftest.err
20321   rm -f conftest.er1
20322   cat conftest.err >&5
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); } &&
20325          { ac_try='test -z "$ac_c_werror_flag"
20326                          || test ! -s conftest.err'
20327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328   (eval $ac_try) 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); }; } &&
20332          { ac_try='test -s conftest$ac_exeext'
20333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334   (eval $ac_try) 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); }; }; then
20338   ac_cv_search_opendir="-l$ac_lib"
20339 break
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 fi
20345 rm -f conftest.err conftest.$ac_objext \
20346       conftest$ac_exeext conftest.$ac_ext
20347   done
20348 fi
20349 LIBS=$ac_func_search_save_LIBS
20350 fi
20351 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20352 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20353 if test "$ac_cv_search_opendir" != no; then
20354   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20355
20356 fi
20357
20358 else
20359   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20360 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20361 if test "${ac_cv_search_opendir+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364   ac_func_search_save_LIBS=$LIBS
20365 ac_cv_search_opendir=no
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372
20373 /* Override any gcc2 internal prototype to avoid an error.  */
20374 #ifdef __cplusplus
20375 extern "C"
20376 #endif
20377 /* We use char because int might match the return type of a gcc2
20378    builtin and then its argument prototype would still apply.  */
20379 char opendir ();
20380 int
20381 main ()
20382 {
20383 opendir ();
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20390   (eval $ac_link) 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } &&
20397          { ac_try='test -z "$ac_c_werror_flag"
20398                          || test ! -s conftest.err'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest$ac_exeext'
20405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406   (eval $ac_try) 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; }; then
20410   ac_cv_search_opendir="none required"
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 fi
20416 rm -f conftest.err conftest.$ac_objext \
20417       conftest$ac_exeext conftest.$ac_ext
20418 if test "$ac_cv_search_opendir" = no; then
20419   for ac_lib in x; do
20420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20421     cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h.  */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h.  */
20427
20428 /* Override any gcc2 internal prototype to avoid an error.  */
20429 #ifdef __cplusplus
20430 extern "C"
20431 #endif
20432 /* We use char because int might match the return type of a gcc2
20433    builtin and then its argument prototype would still apply.  */
20434 char opendir ();
20435 int
20436 main ()
20437 {
20438 opendir ();
20439   ;
20440   return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445   (eval $ac_link) 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } &&
20452          { ac_try='test -z "$ac_c_werror_flag"
20453                          || test ! -s conftest.err'
20454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455   (eval $ac_try) 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; } &&
20459          { ac_try='test -s conftest$ac_exeext'
20460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461   (eval $ac_try) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); }; }; then
20465   ac_cv_search_opendir="-l$ac_lib"
20466 break
20467 else
20468   echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 fi
20472 rm -f conftest.err conftest.$ac_objext \
20473       conftest$ac_exeext conftest.$ac_ext
20474   done
20475 fi
20476 LIBS=$ac_func_search_save_LIBS
20477 fi
20478 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20479 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20480 if test "$ac_cv_search_opendir" != no; then
20481   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20482
20483 fi
20484
20485 fi
20486
20487 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20488 if test "${enable_ltdl_install+set}" = set; then
20489   enableval="$enable_ltdl_install"
20490
20491 fi;
20492
20493
20494
20495 if test x"${enable_ltdl_install-no}" != xno; then
20496   INSTALL_LTDL_TRUE=
20497   INSTALL_LTDL_FALSE='#'
20498 else
20499   INSTALL_LTDL_TRUE='#'
20500   INSTALL_LTDL_FALSE=
20501 fi
20502
20503
20504
20505 if test x"${enable_ltdl_convenience-no}" != xno; then
20506   CONVENIENCE_LTDL_TRUE=
20507   CONVENIENCE_LTDL_FALSE='#'
20508 else
20509   CONVENIENCE_LTDL_TRUE='#'
20510   CONVENIENCE_LTDL_FALSE=
20511 fi
20512
20513
20514
20515 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20516 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20517 if test "${libltdl_cv_shlibext+set}" = set; then
20518   echo $ECHO_N "(cached) $ECHO_C" >&6
20519 else
20520
20521 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20522 # Here in libltdl for libgcj we don't build modules for darwin.
20523 # So we say no. Then the extension gets .dylib which is the right
20524 # thing for shared libraries on darwin. Please keep me next time you
20525 # import libltdl.
20526 case "$host_os" in
20527 darwin*)
20528         module=no
20529         ;;
20530 *)
20531         module=yes
20532         ;;
20533 esac
20534 eval libltdl_cv_shlibext=$shrext_cmds
20535
20536 fi
20537 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20538 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20539 if test -n "$libltdl_cv_shlibext"; then
20540
20541 cat >>confdefs.h <<_ACEOF
20542 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20543 _ACEOF
20544
20545 fi
20546
20547
20548 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20549 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20550 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553   libltdl_cv_shlibpath_var="$shlibpath_var"
20554 fi
20555 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20556 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20557 if test -n "$libltdl_cv_shlibpath_var"; then
20558
20559 cat >>confdefs.h <<_ACEOF
20560 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20561 _ACEOF
20562
20563 fi
20564
20565
20566 echo "$as_me:$LINENO: checking for the default library search path" >&5
20567 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20568 if test "${libltdl_cv_sys_search_path+set}" = set; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20572 fi
20573 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20574 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20575 if test -n "$libltdl_cv_sys_search_path"; then
20576   sys_search_path=
20577   for dir in $libltdl_cv_sys_search_path; do
20578     if test -z "$sys_search_path"; then
20579       sys_search_path="$dir"
20580     else
20581       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20582     fi
20583   done
20584
20585 cat >>confdefs.h <<_ACEOF
20586 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20587 _ACEOF
20588
20589 fi
20590
20591 echo "$as_me:$LINENO: checking for objdir" >&5
20592 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20593 if test "${libltdl_cv_objdir+set}" = set; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596   libltdl_cv_objdir="$objdir"
20597   if test -n "$objdir"; then
20598     :
20599   else
20600     rm -f .libs 2>/dev/null
20601     mkdir .libs 2>/dev/null
20602     if test -d .libs; then
20603       libltdl_cv_objdir=.libs
20604     else
20605       # MS-DOS does not allow filenames that begin with a dot.
20606       libltdl_cv_objdir=_libs
20607     fi
20608   rmdir .libs 2>/dev/null
20609   fi
20610
20611 fi
20612 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20613 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20617 _ACEOF
20618
20619
20620
20621 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20622 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20623 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20624   echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20627     libltdl_cv_preloaded_symbols=yes
20628   else
20629     libltdl_cv_preloaded_symbols=no
20630   fi
20631
20632 fi
20633 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20634 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20635 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20636
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_PRELOADED_SYMBOLS 1
20639 _ACEOF
20640
20641 fi
20642
20643 LIBADD_DL=
20644
20645 ac_ext=c
20646 ac_cpp='$CPP $CPPFLAGS'
20647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650
20651
20652 echo "$as_me:$LINENO: checking for shl_load" >&5
20653 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20654 if test "${ac_cv_func_shl_load+set}" = set; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657   cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20665 #define shl_load innocuous_shl_load
20666
20667 /* System header to define __stub macros and hopefully few prototypes,
20668     which can conflict with char shl_load (); below.
20669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20670     <limits.h> exists even on freestanding compilers.  */
20671
20672 #ifdef __STDC__
20673 # include <limits.h>
20674 #else
20675 # include <assert.h>
20676 #endif
20677
20678 #undef shl_load
20679
20680 /* Override any gcc2 internal prototype to avoid an error.  */
20681 #ifdef __cplusplus
20682 extern "C"
20683 {
20684 #endif
20685 /* We use char because int might match the return type of a gcc2
20686    builtin and then its argument prototype would still apply.  */
20687 char shl_load ();
20688 /* The GNU C library defines this for functions which it implements
20689     to always fail with ENOSYS.  Some functions are actually named
20690     something starting with __ and the normal name is an alias.  */
20691 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20692 choke me
20693 #else
20694 char (*f) () = shl_load;
20695 #endif
20696 #ifdef __cplusplus
20697 }
20698 #endif
20699
20700 int
20701 main ()
20702 {
20703 return f != shl_load;
20704   ;
20705   return 0;
20706 }
20707 _ACEOF
20708 rm -f conftest.$ac_objext conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710   (eval $ac_link) 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } &&
20717          { ac_try='test -z "$ac_c_werror_flag"
20718                          || test ! -s conftest.err'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; } &&
20724          { ac_try='test -s conftest$ac_exeext'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   ac_cv_func_shl_load=yes
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 ac_cv_func_shl_load=no
20736 fi
20737 rm -f conftest.err conftest.$ac_objext \
20738       conftest$ac_exeext conftest.$ac_ext
20739 fi
20740 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20741 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20742 if test $ac_cv_func_shl_load = yes; then
20743
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_SHL_LOAD 1
20746 _ACEOF
20747
20748 else
20749   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20750 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20752   echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754   ac_check_lib_save_LIBS=$LIBS
20755 LIBS="-ldld  $LIBS"
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762
20763 /* Override any gcc2 internal prototype to avoid an error.  */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 /* We use char because int might match the return type of a gcc2
20768    builtin and then its argument prototype would still apply.  */
20769 char shl_load ();
20770 int
20771 main ()
20772 {
20773 shl_load ();
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780   (eval $ac_link) 2>conftest.er1
20781   ac_status=$?
20782   grep -v '^ *+' conftest.er1 >conftest.err
20783   rm -f conftest.er1
20784   cat conftest.err >&5
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); } &&
20787          { ac_try='test -z "$ac_c_werror_flag"
20788                          || test ! -s conftest.err'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; } &&
20794          { ac_try='test -s conftest$ac_exeext'
20795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796   (eval $ac_try) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; }; then
20800   ac_cv_lib_dld_shl_load=yes
20801 else
20802   echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 ac_cv_lib_dld_shl_load=no
20806 fi
20807 rm -f conftest.err conftest.$ac_objext \
20808       conftest$ac_exeext conftest.$ac_ext
20809 LIBS=$ac_check_lib_save_LIBS
20810 fi
20811 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20812 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20813 if test $ac_cv_lib_dld_shl_load = yes; then
20814
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_SHL_LOAD 1
20817 _ACEOF
20818
20819         LIBADD_DL="$LIBADD_DL -ldld"
20820 else
20821   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20822 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20823 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20824   echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826   ac_check_lib_save_LIBS=$LIBS
20827 LIBS="-ldl  $LIBS"
20828 cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h.  */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h.  */
20834
20835 /* Override any gcc2 internal prototype to avoid an error.  */
20836 #ifdef __cplusplus
20837 extern "C"
20838 #endif
20839 /* We use char because int might match the return type of a gcc2
20840    builtin and then its argument prototype would still apply.  */
20841 char dlopen ();
20842 int
20843 main ()
20844 {
20845 dlopen ();
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20852   (eval $ac_link) 2>conftest.er1
20853   ac_status=$?
20854   grep -v '^ *+' conftest.er1 >conftest.err
20855   rm -f conftest.er1
20856   cat conftest.err >&5
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); } &&
20859          { ac_try='test -z "$ac_c_werror_flag"
20860                          || test ! -s conftest.err'
20861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862   (eval $ac_try) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); }; } &&
20866          { ac_try='test -s conftest$ac_exeext'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; }; then
20872   ac_cv_lib_dl_dlopen=yes
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877 ac_cv_lib_dl_dlopen=no
20878 fi
20879 rm -f conftest.err conftest.$ac_objext \
20880       conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20882 fi
20883 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20884 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20885 if test $ac_cv_lib_dl_dlopen = yes; then
20886
20887 cat >>confdefs.h <<\_ACEOF
20888 #define HAVE_LIBDL 1
20889 _ACEOF
20890
20891                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20892 else
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 #if HAVE_DLFCN_H
20900 #  include <dlfcn.h>
20901 #endif
20902
20903 int
20904 main ()
20905 {
20906 dlopen(0, 0);
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20913   (eval $ac_link) 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } &&
20920          { ac_try='test -z "$ac_c_werror_flag"
20921                          || test ! -s conftest.err'
20922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923   (eval $ac_try) 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; } &&
20927          { ac_try='test -s conftest$ac_exeext'
20928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929   (eval $ac_try) 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; }; then
20933
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_LIBDL 1
20936 _ACEOF
20937  libltdl_cv_func_dlopen="yes"
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20943 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20944 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   ac_check_lib_save_LIBS=$LIBS
20948 LIBS="-lsvld  $LIBS"
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955
20956 /* Override any gcc2 internal prototype to avoid an error.  */
20957 #ifdef __cplusplus
20958 extern "C"
20959 #endif
20960 /* We use char because int might match the return type of a gcc2
20961    builtin and then its argument prototype would still apply.  */
20962 char dlopen ();
20963 int
20964 main ()
20965 {
20966 dlopen ();
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973   (eval $ac_link) 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } &&
20980          { ac_try='test -z "$ac_c_werror_flag"
20981                          || test ! -s conftest.err'
20982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983   (eval $ac_try) 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest$ac_exeext'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }; then
20993   ac_cv_lib_svld_dlopen=yes
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998 ac_cv_lib_svld_dlopen=no
20999 fi
21000 rm -f conftest.err conftest.$ac_objext \
21001       conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21003 fi
21004 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21006 if test $ac_cv_lib_svld_dlopen = yes; then
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_LIBDL 1
21010 _ACEOF
21011
21012                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
21013 else
21014   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21017   echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019   ac_check_lib_save_LIBS=$LIBS
21020 LIBS="-ldld  $LIBS"
21021 cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027
21028 /* Override any gcc2 internal prototype to avoid an error.  */
21029 #ifdef __cplusplus
21030 extern "C"
21031 #endif
21032 /* We use char because int might match the return type of a gcc2
21033    builtin and then its argument prototype would still apply.  */
21034 char dld_link ();
21035 int
21036 main ()
21037 {
21038 dld_link ();
21039   ;
21040   return 0;
21041 }
21042 _ACEOF
21043 rm -f conftest.$ac_objext conftest$ac_exeext
21044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21045   (eval $ac_link) 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } &&
21052          { ac_try='test -z "$ac_c_werror_flag"
21053                          || test ! -s conftest.err'
21054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055   (eval $ac_try) 2>&5
21056   ac_status=$?
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); }; } &&
21059          { ac_try='test -s conftest$ac_exeext'
21060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061   (eval $ac_try) 2>&5
21062   ac_status=$?
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); }; }; then
21065   ac_cv_lib_dld_dld_link=yes
21066 else
21067   echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ac_cv_lib_dld_dld_link=no
21071 fi
21072 rm -f conftest.err conftest.$ac_objext \
21073       conftest$ac_exeext conftest.$ac_ext
21074 LIBS=$ac_check_lib_save_LIBS
21075 fi
21076 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21077 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21078 if test $ac_cv_lib_dld_dld_link = yes; then
21079
21080 cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_DLD 1
21082 _ACEOF
21083
21084                 LIBADD_DL="$LIBADD_DL -ldld"
21085 else
21086   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21087 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21088 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21099 #define _dyld_func_lookup innocuous__dyld_func_lookup
21100
21101 /* System header to define __stub macros and hopefully few prototypes,
21102     which can conflict with char _dyld_func_lookup (); below.
21103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21104     <limits.h> exists even on freestanding compilers.  */
21105
21106 #ifdef __STDC__
21107 # include <limits.h>
21108 #else
21109 # include <assert.h>
21110 #endif
21111
21112 #undef _dyld_func_lookup
21113
21114 /* Override any gcc2 internal prototype to avoid an error.  */
21115 #ifdef __cplusplus
21116 extern "C"
21117 {
21118 #endif
21119 /* We use char because int might match the return type of a gcc2
21120    builtin and then its argument prototype would still apply.  */
21121 char _dyld_func_lookup ();
21122 /* The GNU C library defines this for functions which it implements
21123     to always fail with ENOSYS.  Some functions are actually named
21124     something starting with __ and the normal name is an alias.  */
21125 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21126 choke me
21127 #else
21128 char (*f) () = _dyld_func_lookup;
21129 #endif
21130 #ifdef __cplusplus
21131 }
21132 #endif
21133
21134 int
21135 main ()
21136 {
21137 return f != _dyld_func_lookup;
21138   ;
21139   return 0;
21140 }
21141 _ACEOF
21142 rm -f conftest.$ac_objext conftest$ac_exeext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21144   (eval $ac_link) 2>conftest.er1
21145   ac_status=$?
21146   grep -v '^ *+' conftest.er1 >conftest.err
21147   rm -f conftest.er1
21148   cat conftest.err >&5
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); } &&
21151          { ac_try='test -z "$ac_c_werror_flag"
21152                          || test ! -s conftest.err'
21153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154   (eval $ac_try) 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); }; } &&
21158          { ac_try='test -s conftest$ac_exeext'
21159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160   (eval $ac_try) 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); }; }; then
21164   ac_cv_func__dyld_func_lookup=yes
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ac_cv_func__dyld_func_lookup=no
21170 fi
21171 rm -f conftest.err conftest.$ac_objext \
21172       conftest$ac_exeext conftest.$ac_ext
21173 fi
21174 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21175 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21176 if test $ac_cv_func__dyld_func_lookup = yes; then
21177
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_DYLD 1
21180 _ACEOF
21181
21182 fi
21183
21184
21185 fi
21186
21187
21188 fi
21189
21190
21191 fi
21192 rm -f conftest.err conftest.$ac_objext \
21193       conftest$ac_exeext conftest.$ac_ext
21194
21195 fi
21196
21197
21198 fi
21199
21200
21201 fi
21202
21203
21204 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21205 then
21206   lt_save_LIBS="$LIBS"
21207   LIBS="$LIBS $LIBADD_DL"
21208
21209 for ac_func in dlerror
21210 do
21211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21212 echo "$as_me:$LINENO: checking for $ac_func" >&5
21213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21214 if eval "test \"\${$as_ac_var+set}\" = set"; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217   cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21225 #define $ac_func innocuous_$ac_func
21226
21227 /* System header to define __stub macros and hopefully few prototypes,
21228     which can conflict with char $ac_func (); below.
21229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21230     <limits.h> exists even on freestanding compilers.  */
21231
21232 #ifdef __STDC__
21233 # include <limits.h>
21234 #else
21235 # include <assert.h>
21236 #endif
21237
21238 #undef $ac_func
21239
21240 /* Override any gcc2 internal prototype to avoid an error.  */
21241 #ifdef __cplusplus
21242 extern "C"
21243 {
21244 #endif
21245 /* We use char because int might match the return type of a gcc2
21246    builtin and then its argument prototype would still apply.  */
21247 char $ac_func ();
21248 /* The GNU C library defines this for functions which it implements
21249     to always fail with ENOSYS.  Some functions are actually named
21250     something starting with __ and the normal name is an alias.  */
21251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21252 choke me
21253 #else
21254 char (*f) () = $ac_func;
21255 #endif
21256 #ifdef __cplusplus
21257 }
21258 #endif
21259
21260 int
21261 main ()
21262 {
21263 return f != $ac_func;
21264   ;
21265   return 0;
21266 }
21267 _ACEOF
21268 rm -f conftest.$ac_objext conftest$ac_exeext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21270   (eval $ac_link) 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } &&
21277          { ac_try='test -z "$ac_c_werror_flag"
21278                          || test ! -s conftest.err'
21279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280   (eval $ac_try) 2>&5
21281   ac_status=$?
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); }; } &&
21284          { ac_try='test -s conftest$ac_exeext'
21285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286   (eval $ac_try) 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); }; }; then
21290   eval "$as_ac_var=yes"
21291 else
21292   echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295 eval "$as_ac_var=no"
21296 fi
21297 rm -f conftest.err conftest.$ac_objext \
21298       conftest$ac_exeext conftest.$ac_ext
21299 fi
21300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21302 if test `eval echo '${'$as_ac_var'}'` = yes; then
21303   cat >>confdefs.h <<_ACEOF
21304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21305 _ACEOF
21306
21307 fi
21308 done
21309
21310   LIBS="$lt_save_LIBS"
21311 fi
21312 ac_ext=c
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21317
21318
21319
21320 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21321 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21322 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21323   echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325   ac_cv_sys_symbol_underscore=no
21326   cat > conftest.$ac_ext <<EOF
21327 void nm_test_func(){}
21328 int main(){nm_test_func;return 0;}
21329 EOF
21330   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331   (eval $ac_compile) 2>&5
21332   ac_status=$?
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); }; then
21335     # Now try to grab the symbols.
21336     ac_nlist=conftest.nm
21337     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21338   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } && test -s "$ac_nlist"; then
21342       # See whether the symbols have a leading underscore.
21343       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21344         ac_cv_sys_symbol_underscore=yes
21345       else
21346         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21347           :
21348         else
21349           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21350         fi
21351       fi
21352     else
21353       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21354     fi
21355   else
21356     echo "configure: failed program was:" >&5
21357     cat conftest.c >&5
21358   fi
21359   rm -rf conftest*
21360
21361 fi
21362 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21363 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21364
21365
21366 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21367   if test x"$libltdl_cv_func_dlopen" = xyes ||
21368      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21369         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21370 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21371 if test "${libltdl_cv_need_uscore+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   libltdl_cv_need_uscore=unknown
21375           save_LIBS="$LIBS"
21376           LIBS="$LIBS $LIBADD_DL"
21377           if test "$cross_compiling" = yes; then :
21378   libltdl_cv_need_uscore=cross
21379 else
21380   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21381   lt_status=$lt_dlunknown
21382   cat > conftest.$ac_ext <<EOF
21383 #line 21383 "configure"
21384 #include "confdefs.h"
21385
21386 #if HAVE_DLFCN_H
21387 #include <dlfcn.h>
21388 #endif
21389
21390 #include <stdio.h>
21391
21392 #ifdef RTLD_GLOBAL
21393 #  define LT_DLGLOBAL           RTLD_GLOBAL
21394 #else
21395 #  ifdef DL_GLOBAL
21396 #    define LT_DLGLOBAL         DL_GLOBAL
21397 #  else
21398 #    define LT_DLGLOBAL         0
21399 #  endif
21400 #endif
21401
21402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21403    find out it does not work in some platform. */
21404 #ifndef LT_DLLAZY_OR_NOW
21405 #  ifdef RTLD_LAZY
21406 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21407 #  else
21408 #    ifdef DL_LAZY
21409 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21410 #    else
21411 #      ifdef RTLD_NOW
21412 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21413 #      else
21414 #        ifdef DL_NOW
21415 #          define LT_DLLAZY_OR_NOW      DL_NOW
21416 #        else
21417 #          define LT_DLLAZY_OR_NOW      0
21418 #        endif
21419 #      endif
21420 #    endif
21421 #  endif
21422 #endif
21423
21424 #ifdef __cplusplus
21425 extern "C" void exit (int);
21426 #endif
21427
21428 void fnord() { int i=42;}
21429 int main ()
21430 {
21431   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21432   int status = $lt_dlunknown;
21433
21434   if (self)
21435     {
21436       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21437       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21438       /* dlclose (self); */
21439     }
21440
21441     exit (status);
21442 }
21443 EOF
21444   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445   (eval $ac_link) 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21449     (./conftest; exit; ) 2>/dev/null
21450     lt_status=$?
21451     case x$lt_status in
21452       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21453       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21454       x$lt_unknown|x*)  ;;
21455     esac
21456   else :
21457     # compilation failed
21458
21459   fi
21460 fi
21461 rm -fr conftest*
21462
21463           LIBS="$save_LIBS"
21464
21465 fi
21466 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21467 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21468   fi
21469 fi
21470
21471 if test x"$libltdl_cv_need_uscore" = xyes; then
21472
21473 cat >>confdefs.h <<\_ACEOF
21474 #define NEED_USCORE 1
21475 _ACEOF
21476
21477 fi
21478
21479
21480 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21481 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21482 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21483   echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485   # PORTME does your system automatically load deplibs for dlopen?
21486   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21487   # For now, we just catch OSes we know something about -- in the
21488   # future, we'll try test this programmatically.
21489   libltdl_cv_sys_dlopen_deplibs=unknown
21490   case "$host_os" in
21491   aix3*|aix4.1.*|aix4.2.*)
21492     # Unknown whether this is true for these versions of AIX, but
21493     # we want this `case' here to explicitly catch those versions.
21494     libltdl_cv_sys_dlopen_deplibs=unknown
21495     ;;
21496   aix[45]*)
21497     libltdl_cv_sys_dlopen_deplibs=yes
21498     ;;
21499   darwin*)
21500     # Assuming the user has installed a libdl from somewhere, this is true
21501     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21502     libltdl_cv_sys_dlopen_deplibs=yes
21503     ;;
21504   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21505     # GNU and its variants, using gnu ld.so (Glibc)
21506     libltdl_cv_sys_dlopen_deplibs=yes
21507     ;;
21508   hpux10*|hpux11*)
21509     libltdl_cv_sys_dlopen_deplibs=yes
21510     ;;
21511   irix[12345]*|irix6.[01]*)
21512     # Catch all versions of IRIX before 6.2, and indicate that we don't
21513     # know how it worked for any of those versions.
21514     libltdl_cv_sys_dlopen_deplibs=unknown
21515     ;;
21516   irix*)
21517     # The case above catches anything before 6.2, and it's known that
21518     # at 6.2 and later dlopen does load deplibs.
21519     libltdl_cv_sys_dlopen_deplibs=yes
21520     ;;
21521   netbsd*)
21522     libltdl_cv_sys_dlopen_deplibs=yes
21523     ;;
21524   openbsd*)
21525     libltdl_cv_sys_dlopen_deplibs=yes
21526     ;;
21527   osf[1234]*)
21528     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21529     # it did *not* use an RPATH in a shared library to find objects the
21530     # library depends on, so we explictly say `no'.
21531     libltdl_cv_sys_dlopen_deplibs=no
21532     ;;
21533   osf5.0|osf5.0a|osf5.1)
21534     # dlopen *does* load deplibs and with the right loader patch applied
21535     # it even uses RPATH in a shared library to search for shared objects
21536     # that the library depends on, but there's no easy way to know if that
21537     # patch is installed.  Since this is the case, all we can really
21538     # say is unknown -- it depends on the patch being installed.  If
21539     # it is, this changes to `yes'.  Without it, it would be `no'.
21540     libltdl_cv_sys_dlopen_deplibs=unknown
21541     ;;
21542   osf*)
21543     # the two cases above should catch all versions of osf <= 5.1.  Read
21544     # the comments above for what we know about them.
21545     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21546     # is used to find them so we can finally say `yes'.
21547     libltdl_cv_sys_dlopen_deplibs=yes
21548     ;;
21549   solaris*)
21550     libltdl_cv_sys_dlopen_deplibs=yes
21551     ;;
21552   esac
21553
21554 fi
21555 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21556 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21557 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21558
21559 cat >>confdefs.h <<\_ACEOF
21560 #define LTDL_DLOPEN_DEPLIBS 1
21561 _ACEOF
21562
21563 fi
21564
21565
21566 for ac_header in argz.h
21567 do
21568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21570   echo "$as_me:$LINENO: checking for $ac_header" >&5
21571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21573   echo $ECHO_N "(cached) $ECHO_C" >&6
21574 fi
21575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21577 else
21578   # Is the header compilable?
21579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 $ac_includes_default
21588 #include <$ac_header>
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21592   (eval $ac_compile) 2>conftest.er1
21593   ac_status=$?
21594   grep -v '^ *+' conftest.er1 >conftest.err
21595   rm -f conftest.er1
21596   cat conftest.err >&5
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); } &&
21599          { ac_try='test -z "$ac_c_werror_flag"
21600                          || test ! -s conftest.err'
21601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602   (eval $ac_try) 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest.$ac_objext'
21607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608   (eval $ac_try) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ac_header_compiler=yes
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 ac_header_compiler=no
21618 fi
21619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6
21622
21623 # Is the header present?
21624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h.  */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h.  */
21632 #include <$ac_header>
21633 _ACEOF
21634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21636   ac_status=$?
21637   grep -v '^ *+' conftest.er1 >conftest.err
21638   rm -f conftest.er1
21639   cat conftest.err >&5
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } >/dev/null; then
21642   if test -s conftest.err; then
21643     ac_cpp_err=$ac_c_preproc_warn_flag
21644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21645   else
21646     ac_cpp_err=
21647   fi
21648 else
21649   ac_cpp_err=yes
21650 fi
21651 if test -z "$ac_cpp_err"; then
21652   ac_header_preproc=yes
21653 else
21654   echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657   ac_header_preproc=no
21658 fi
21659 rm -f conftest.err conftest.$ac_ext
21660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21661 echo "${ECHO_T}$ac_header_preproc" >&6
21662
21663 # So?  What about this header?
21664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21665   yes:no: )
21666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21670     ac_header_preproc=yes
21671     ;;
21672   no:yes:* )
21673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21685     (
21686       cat <<\_ASBOX
21687 ## ---------------------------------- ##
21688 ## Report this to bug-libtool@gnu.org ##
21689 ## ---------------------------------- ##
21690 _ASBOX
21691     ) |
21692       sed "s/^/$as_me: WARNING:     /" >&2
21693     ;;
21694 esac
21695 echo "$as_me:$LINENO: checking for $ac_header" >&5
21696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21698   echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700   eval "$as_ac_Header=\$ac_header_preproc"
21701 fi
21702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21704
21705 fi
21706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21707   cat >>confdefs.h <<_ACEOF
21708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21709 _ACEOF
21710
21711 fi
21712
21713 done
21714
21715
21716 echo "$as_me:$LINENO: checking for error_t" >&5
21717 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21718 if test "${ac_cv_type_error_t+set}" = set; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 else
21721   cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727 #if HAVE_ARGZ_H
21728 #  include <argz.h>
21729 #endif
21730
21731 int
21732 main ()
21733 {
21734 if ((error_t *) 0)
21735   return 0;
21736 if (sizeof (error_t))
21737   return 0;
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744   (eval $ac_compile) 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } &&
21751          { ac_try='test -z "$ac_c_werror_flag"
21752                          || test ! -s conftest.err'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; } &&
21758          { ac_try='test -s conftest.$ac_objext'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764   ac_cv_type_error_t=yes
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 ac_cv_type_error_t=no
21770 fi
21771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21772 fi
21773 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21774 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21775 if test $ac_cv_type_error_t = yes; then
21776
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_ERROR_T 1
21779 _ACEOF
21780
21781
21782 else
21783
21784 cat >>confdefs.h <<\_ACEOF
21785 #define error_t int
21786 _ACEOF
21787
21788 fi
21789
21790
21791
21792
21793
21794
21795
21796 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21797 do
21798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799 echo "$as_me:$LINENO: checking for $ac_func" >&5
21800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21801 if eval "test \"\${$as_ac_var+set}\" = set"; then
21802   echo $ECHO_N "(cached) $ECHO_C" >&6
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21812 #define $ac_func innocuous_$ac_func
21813
21814 /* System header to define __stub macros and hopefully few prototypes,
21815     which can conflict with char $ac_func (); below.
21816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21817     <limits.h> exists even on freestanding compilers.  */
21818
21819 #ifdef __STDC__
21820 # include <limits.h>
21821 #else
21822 # include <assert.h>
21823 #endif
21824
21825 #undef $ac_func
21826
21827 /* Override any gcc2 internal prototype to avoid an error.  */
21828 #ifdef __cplusplus
21829 extern "C"
21830 {
21831 #endif
21832 /* We use char because int might match the return type of a gcc2
21833    builtin and then its argument prototype would still apply.  */
21834 char $ac_func ();
21835 /* The GNU C library defines this for functions which it implements
21836     to always fail with ENOSYS.  Some functions are actually named
21837     something starting with __ and the normal name is an alias.  */
21838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21839 choke me
21840 #else
21841 char (*f) () = $ac_func;
21842 #endif
21843 #ifdef __cplusplus
21844 }
21845 #endif
21846
21847 int
21848 main ()
21849 {
21850 return f != $ac_func;
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857   (eval $ac_link) 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } &&
21864          { ac_try='test -z "$ac_c_werror_flag"
21865                          || test ! -s conftest.err'
21866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867   (eval $ac_try) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); }; } &&
21871          { ac_try='test -s conftest$ac_exeext'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877   eval "$as_ac_var=yes"
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 eval "$as_ac_var=no"
21883 fi
21884 rm -f conftest.err conftest.$ac_objext \
21885       conftest$ac_exeext conftest.$ac_ext
21886 fi
21887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21889 if test `eval echo '${'$as_ac_var'}'` = yes; then
21890   cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21892 _ACEOF
21893
21894 fi
21895 done
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21925                   stdio.h unistd.h
21926 do
21927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21929   echo "$as_me:$LINENO: checking for $ac_header" >&5
21930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 fi
21934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21936 else
21937   # Is the header compilable?
21938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946 $ac_includes_default
21947 #include <$ac_header>
21948 _ACEOF
21949 rm -f conftest.$ac_objext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21951   (eval $ac_compile) 2>conftest.er1
21952   ac_status=$?
21953   grep -v '^ *+' conftest.er1 >conftest.err
21954   rm -f conftest.er1
21955   cat conftest.err >&5
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); } &&
21958          { ac_try='test -z "$ac_c_werror_flag"
21959                          || test ! -s conftest.err'
21960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961   (eval $ac_try) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); }; } &&
21965          { ac_try='test -s conftest.$ac_objext'
21966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967   (eval $ac_try) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; }; then
21971   ac_header_compiler=yes
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ac_header_compiler=no
21977 fi
21978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21980 echo "${ECHO_T}$ac_header_compiler" >&6
21981
21982 # Is the header present?
21983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h.  */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h.  */
21991 #include <$ac_header>
21992 _ACEOF
21993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } >/dev/null; then
22001   if test -s conftest.err; then
22002     ac_cpp_err=$ac_c_preproc_warn_flag
22003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22004   else
22005     ac_cpp_err=
22006   fi
22007 else
22008   ac_cpp_err=yes
22009 fi
22010 if test -z "$ac_cpp_err"; then
22011   ac_header_preproc=yes
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016   ac_header_preproc=no
22017 fi
22018 rm -f conftest.err conftest.$ac_ext
22019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22020 echo "${ECHO_T}$ac_header_preproc" >&6
22021
22022 # So?  What about this header?
22023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22024   yes:no: )
22025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22029     ac_header_preproc=yes
22030     ;;
22031   no:yes:* )
22032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22044     (
22045       cat <<\_ASBOX
22046 ## ---------------------------------- ##
22047 ## Report this to bug-libtool@gnu.org ##
22048 ## ---------------------------------- ##
22049 _ASBOX
22050     ) |
22051       sed "s/^/$as_me: WARNING:     /" >&2
22052     ;;
22053 esac
22054 echo "$as_me:$LINENO: checking for $ac_header" >&5
22055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   eval "$as_ac_Header=\$ac_header_preproc"
22060 fi
22061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22063
22064 fi
22065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22066   cat >>confdefs.h <<_ACEOF
22067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22068 _ACEOF
22069
22070 fi
22071
22072 done
22073
22074
22075
22076
22077
22078 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22079 do
22080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22082   echo "$as_me:$LINENO: checking for $ac_header" >&5
22083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22085   echo $ECHO_N "(cached) $ECHO_C" >&6
22086 fi
22087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22089 else
22090   # Is the header compilable?
22091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h.  */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h.  */
22099 $ac_includes_default
22100 #include <$ac_header>
22101 _ACEOF
22102 rm -f conftest.$ac_objext
22103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104   (eval $ac_compile) 2>conftest.er1
22105   ac_status=$?
22106   grep -v '^ *+' conftest.er1 >conftest.err
22107   rm -f conftest.er1
22108   cat conftest.err >&5
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } &&
22111          { ac_try='test -z "$ac_c_werror_flag"
22112                          || test ! -s conftest.err'
22113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114   (eval $ac_try) 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); }; } &&
22118          { ac_try='test -s conftest.$ac_objext'
22119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120   (eval $ac_try) 2>&5
22121   ac_status=$?
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); }; }; then
22124   ac_header_compiler=yes
22125 else
22126   echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22128
22129 ac_header_compiler=no
22130 fi
22131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6
22134
22135 # Is the header present?
22136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <$ac_header>
22145 _ACEOF
22146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } >/dev/null; then
22154   if test -s conftest.err; then
22155     ac_cpp_err=$ac_c_preproc_warn_flag
22156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22157   else
22158     ac_cpp_err=
22159   fi
22160 else
22161   ac_cpp_err=yes
22162 fi
22163 if test -z "$ac_cpp_err"; then
22164   ac_header_preproc=yes
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169   ac_header_preproc=no
22170 fi
22171 rm -f conftest.err conftest.$ac_ext
22172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22173 echo "${ECHO_T}$ac_header_preproc" >&6
22174
22175 # So?  What about this header?
22176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22177   yes:no: )
22178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22182     ac_header_preproc=yes
22183     ;;
22184   no:yes:* )
22185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22197     (
22198       cat <<\_ASBOX
22199 ## ---------------------------------- ##
22200 ## Report this to bug-libtool@gnu.org ##
22201 ## ---------------------------------- ##
22202 _ASBOX
22203     ) |
22204       sed "s/^/$as_me: WARNING:     /" >&2
22205     ;;
22206 esac
22207 echo "$as_me:$LINENO: checking for $ac_header" >&5
22208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22210   echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212   eval "$as_ac_Header=\$ac_header_preproc"
22213 fi
22214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22216
22217 fi
22218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22219   cat >>confdefs.h <<_ACEOF
22220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22221 _ACEOF
22222
22223 fi
22224
22225 done
22226
22227
22228
22229 for ac_header in string.h strings.h
22230 do
22231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22233   echo "$as_me:$LINENO: checking for $ac_header" >&5
22234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22236   echo $ECHO_N "(cached) $ECHO_C" >&6
22237 fi
22238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22240 else
22241   # Is the header compilable?
22242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22244 cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h.  */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h.  */
22250 $ac_includes_default
22251 #include <$ac_header>
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255   (eval $ac_compile) 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } &&
22262          { ac_try='test -z "$ac_c_werror_flag"
22263                          || test ! -s conftest.err'
22264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265   (eval $ac_try) 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; } &&
22269          { ac_try='test -s conftest.$ac_objext'
22270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271   (eval $ac_try) 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; }; then
22275   ac_header_compiler=yes
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 ac_header_compiler=no
22281 fi
22282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22284 echo "${ECHO_T}$ac_header_compiler" >&6
22285
22286 # Is the header present?
22287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 #include <$ac_header>
22296 _ACEOF
22297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } >/dev/null; then
22305   if test -s conftest.err; then
22306     ac_cpp_err=$ac_c_preproc_warn_flag
22307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22308   else
22309     ac_cpp_err=
22310   fi
22311 else
22312   ac_cpp_err=yes
22313 fi
22314 if test -z "$ac_cpp_err"; then
22315   ac_header_preproc=yes
22316 else
22317   echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320   ac_header_preproc=no
22321 fi
22322 rm -f conftest.err conftest.$ac_ext
22323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22324 echo "${ECHO_T}$ac_header_preproc" >&6
22325
22326 # So?  What about this header?
22327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22328   yes:no: )
22329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22333     ac_header_preproc=yes
22334     ;;
22335   no:yes:* )
22336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22348     (
22349       cat <<\_ASBOX
22350 ## ---------------------------------- ##
22351 ## Report this to bug-libtool@gnu.org ##
22352 ## ---------------------------------- ##
22353 _ASBOX
22354     ) |
22355       sed "s/^/$as_me: WARNING:     /" >&2
22356     ;;
22357 esac
22358 echo "$as_me:$LINENO: checking for $ac_header" >&5
22359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363   eval "$as_ac_Header=\$ac_header_preproc"
22364 fi
22365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22367
22368 fi
22369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22370   cat >>confdefs.h <<_ACEOF
22371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22372 _ACEOF
22373  break
22374 fi
22375
22376 done
22377
22378
22379
22380
22381 for ac_func in strchr index
22382 do
22383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22384 echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22386 if eval "test \"\${$as_ac_var+set}\" = set"; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22397 #define $ac_func innocuous_$ac_func
22398
22399 /* System header to define __stub macros and hopefully few prototypes,
22400     which can conflict with char $ac_func (); below.
22401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402     <limits.h> exists even on freestanding compilers.  */
22403
22404 #ifdef __STDC__
22405 # include <limits.h>
22406 #else
22407 # include <assert.h>
22408 #endif
22409
22410 #undef $ac_func
22411
22412 /* Override any gcc2 internal prototype to avoid an error.  */
22413 #ifdef __cplusplus
22414 extern "C"
22415 {
22416 #endif
22417 /* We use char because int might match the return type of a gcc2
22418    builtin and then its argument prototype would still apply.  */
22419 char $ac_func ();
22420 /* The GNU C library defines this for functions which it implements
22421     to always fail with ENOSYS.  Some functions are actually named
22422     something starting with __ and the normal name is an alias.  */
22423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22424 choke me
22425 #else
22426 char (*f) () = $ac_func;
22427 #endif
22428 #ifdef __cplusplus
22429 }
22430 #endif
22431
22432 int
22433 main ()
22434 {
22435 return f != $ac_func;
22436   ;
22437   return 0;
22438 }
22439 _ACEOF
22440 rm -f conftest.$ac_objext conftest$ac_exeext
22441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22442   (eval $ac_link) 2>conftest.er1
22443   ac_status=$?
22444   grep -v '^ *+' conftest.er1 >conftest.err
22445   rm -f conftest.er1
22446   cat conftest.err >&5
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); } &&
22449          { ac_try='test -z "$ac_c_werror_flag"
22450                          || test ! -s conftest.err'
22451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); }; } &&
22456          { ac_try='test -s conftest$ac_exeext'
22457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }; then
22462   eval "$as_ac_var=yes"
22463 else
22464   echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 eval "$as_ac_var=no"
22468 fi
22469 rm -f conftest.err conftest.$ac_objext \
22470       conftest$ac_exeext conftest.$ac_ext
22471 fi
22472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22474 if test `eval echo '${'$as_ac_var'}'` = yes; then
22475   cat >>confdefs.h <<_ACEOF
22476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22477 _ACEOF
22478  break
22479 fi
22480 done
22481
22482
22483
22484 for ac_func in strrchr rindex
22485 do
22486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22487 echo "$as_me:$LINENO: checking for $ac_func" >&5
22488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22489 if eval "test \"\${$as_ac_var+set}\" = set"; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492   cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h.  */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h.  */
22498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22500 #define $ac_func innocuous_$ac_func
22501
22502 /* System header to define __stub macros and hopefully few prototypes,
22503     which can conflict with char $ac_func (); below.
22504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22505     <limits.h> exists even on freestanding compilers.  */
22506
22507 #ifdef __STDC__
22508 # include <limits.h>
22509 #else
22510 # include <assert.h>
22511 #endif
22512
22513 #undef $ac_func
22514
22515 /* Override any gcc2 internal prototype to avoid an error.  */
22516 #ifdef __cplusplus
22517 extern "C"
22518 {
22519 #endif
22520 /* We use char because int might match the return type of a gcc2
22521    builtin and then its argument prototype would still apply.  */
22522 char $ac_func ();
22523 /* The GNU C library defines this for functions which it implements
22524     to always fail with ENOSYS.  Some functions are actually named
22525     something starting with __ and the normal name is an alias.  */
22526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22527 choke me
22528 #else
22529 char (*f) () = $ac_func;
22530 #endif
22531 #ifdef __cplusplus
22532 }
22533 #endif
22534
22535 int
22536 main ()
22537 {
22538 return f != $ac_func;
22539   ;
22540   return 0;
22541 }
22542 _ACEOF
22543 rm -f conftest.$ac_objext conftest$ac_exeext
22544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22545   (eval $ac_link) 2>conftest.er1
22546   ac_status=$?
22547   grep -v '^ *+' conftest.er1 >conftest.err
22548   rm -f conftest.er1
22549   cat conftest.err >&5
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } &&
22552          { ac_try='test -z "$ac_c_werror_flag"
22553                          || test ! -s conftest.err'
22554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555   (eval $ac_try) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); }; } &&
22559          { ac_try='test -s conftest$ac_exeext'
22560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561   (eval $ac_try) 2>&5
22562   ac_status=$?
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); }; }; then
22565   eval "$as_ac_var=yes"
22566 else
22567   echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 eval "$as_ac_var=no"
22571 fi
22572 rm -f conftest.err conftest.$ac_objext \
22573       conftest$ac_exeext conftest.$ac_ext
22574 fi
22575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22577 if test `eval echo '${'$as_ac_var'}'` = yes; then
22578   cat >>confdefs.h <<_ACEOF
22579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22580 _ACEOF
22581  break
22582 fi
22583 done
22584
22585
22586
22587 for ac_func in memcpy bcopy
22588 do
22589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22590 echo "$as_me:$LINENO: checking for $ac_func" >&5
22591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22592 if eval "test \"\${$as_ac_var+set}\" = set"; then
22593   echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22603 #define $ac_func innocuous_$ac_func
22604
22605 /* System header to define __stub macros and hopefully few prototypes,
22606     which can conflict with char $ac_func (); below.
22607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22608     <limits.h> exists even on freestanding compilers.  */
22609
22610 #ifdef __STDC__
22611 # include <limits.h>
22612 #else
22613 # include <assert.h>
22614 #endif
22615
22616 #undef $ac_func
22617
22618 /* Override any gcc2 internal prototype to avoid an error.  */
22619 #ifdef __cplusplus
22620 extern "C"
22621 {
22622 #endif
22623 /* We use char because int might match the return type of a gcc2
22624    builtin and then its argument prototype would still apply.  */
22625 char $ac_func ();
22626 /* The GNU C library defines this for functions which it implements
22627     to always fail with ENOSYS.  Some functions are actually named
22628     something starting with __ and the normal name is an alias.  */
22629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22630 choke me
22631 #else
22632 char (*f) () = $ac_func;
22633 #endif
22634 #ifdef __cplusplus
22635 }
22636 #endif
22637
22638 int
22639 main ()
22640 {
22641 return f != $ac_func;
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22648   (eval $ac_link) 2>conftest.er1
22649   ac_status=$?
22650   grep -v '^ *+' conftest.er1 >conftest.err
22651   rm -f conftest.er1
22652   cat conftest.err >&5
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } &&
22655          { ac_try='test -z "$ac_c_werror_flag"
22656                          || test ! -s conftest.err'
22657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658   (eval $ac_try) 2>&5
22659   ac_status=$?
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); }; } &&
22662          { ac_try='test -s conftest$ac_exeext'
22663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664   (eval $ac_try) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; }; then
22668   eval "$as_ac_var=yes"
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673 eval "$as_ac_var=no"
22674 fi
22675 rm -f conftest.err conftest.$ac_objext \
22676       conftest$ac_exeext conftest.$ac_ext
22677 fi
22678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22680 if test `eval echo '${'$as_ac_var'}'` = yes; then
22681   cat >>confdefs.h <<_ACEOF
22682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22683 _ACEOF
22684  break
22685 fi
22686 done
22687
22688
22689
22690 for ac_func in memmove strcmp
22691 do
22692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22693 echo "$as_me:$LINENO: checking for $ac_func" >&5
22694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22695 if eval "test \"\${$as_ac_var+set}\" = set"; then
22696   echo $ECHO_N "(cached) $ECHO_C" >&6
22697 else
22698   cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22706 #define $ac_func innocuous_$ac_func
22707
22708 /* System header to define __stub macros and hopefully few prototypes,
22709     which can conflict with char $ac_func (); below.
22710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22711     <limits.h> exists even on freestanding compilers.  */
22712
22713 #ifdef __STDC__
22714 # include <limits.h>
22715 #else
22716 # include <assert.h>
22717 #endif
22718
22719 #undef $ac_func
22720
22721 /* Override any gcc2 internal prototype to avoid an error.  */
22722 #ifdef __cplusplus
22723 extern "C"
22724 {
22725 #endif
22726 /* We use char because int might match the return type of a gcc2
22727    builtin and then its argument prototype would still apply.  */
22728 char $ac_func ();
22729 /* The GNU C library defines this for functions which it implements
22730     to always fail with ENOSYS.  Some functions are actually named
22731     something starting with __ and the normal name is an alias.  */
22732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22733 choke me
22734 #else
22735 char (*f) () = $ac_func;
22736 #endif
22737 #ifdef __cplusplus
22738 }
22739 #endif
22740
22741 int
22742 main ()
22743 {
22744 return f != $ac_func;
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22751   (eval $ac_link) 2>conftest.er1
22752   ac_status=$?
22753   grep -v '^ *+' conftest.er1 >conftest.err
22754   rm -f conftest.er1
22755   cat conftest.err >&5
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); } &&
22758          { ac_try='test -z "$ac_c_werror_flag"
22759                          || test ! -s conftest.err'
22760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761   (eval $ac_try) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); }; } &&
22765          { ac_try='test -s conftest$ac_exeext'
22766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767   (eval $ac_try) 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; }; then
22771   eval "$as_ac_var=yes"
22772 else
22773   echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 eval "$as_ac_var=no"
22777 fi
22778 rm -f conftest.err conftest.$ac_objext \
22779       conftest$ac_exeext conftest.$ac_ext
22780 fi
22781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22783 if test `eval echo '${'$as_ac_var'}'` = yes; then
22784   cat >>confdefs.h <<_ACEOF
22785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22786 _ACEOF
22787
22788 fi
22789 done
22790
22791
22792
22793
22794 for ac_func in closedir opendir readdir
22795 do
22796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22797 echo "$as_me:$LINENO: checking for $ac_func" >&5
22798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22799 if eval "test \"\${$as_ac_var+set}\" = set"; then
22800   echo $ECHO_N "(cached) $ECHO_C" >&6
22801 else
22802   cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h.  */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h.  */
22808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22810 #define $ac_func innocuous_$ac_func
22811
22812 /* System header to define __stub macros and hopefully few prototypes,
22813     which can conflict with char $ac_func (); below.
22814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22815     <limits.h> exists even on freestanding compilers.  */
22816
22817 #ifdef __STDC__
22818 # include <limits.h>
22819 #else
22820 # include <assert.h>
22821 #endif
22822
22823 #undef $ac_func
22824
22825 /* Override any gcc2 internal prototype to avoid an error.  */
22826 #ifdef __cplusplus
22827 extern "C"
22828 {
22829 #endif
22830 /* We use char because int might match the return type of a gcc2
22831    builtin and then its argument prototype would still apply.  */
22832 char $ac_func ();
22833 /* The GNU C library defines this for functions which it implements
22834     to always fail with ENOSYS.  Some functions are actually named
22835     something starting with __ and the normal name is an alias.  */
22836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22837 choke me
22838 #else
22839 char (*f) () = $ac_func;
22840 #endif
22841 #ifdef __cplusplus
22842 }
22843 #endif
22844
22845 int
22846 main ()
22847 {
22848 return f != $ac_func;
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855   (eval $ac_link) 2>conftest.er1
22856   ac_status=$?
22857   grep -v '^ *+' conftest.er1 >conftest.err
22858   rm -f conftest.er1
22859   cat conftest.err >&5
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } &&
22862          { ac_try='test -z "$ac_c_werror_flag"
22863                          || test ! -s conftest.err'
22864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865   (eval $ac_try) 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; } &&
22869          { ac_try='test -s conftest$ac_exeext'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; }; then
22875   eval "$as_ac_var=yes"
22876 else
22877   echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22879
22880 eval "$as_ac_var=no"
22881 fi
22882 rm -f conftest.err conftest.$ac_objext \
22883       conftest$ac_exeext conftest.$ac_ext
22884 fi
22885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22887 if test `eval echo '${'$as_ac_var'}'` = yes; then
22888   cat >>confdefs.h <<_ACEOF
22889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22890 _ACEOF
22891
22892 fi
22893 done
22894
22895
22896
22897
22898 ## -------- ##
22899 ## Outputs. ##
22900 ## -------- ##
22901           ac_config_files="$ac_config_files Makefile"
22902
22903 cat >confcache <<\_ACEOF
22904 # This file is a shell script that caches the results of configure
22905 # tests run on this system so they can be shared between configure
22906 # scripts and configure runs, see configure's option --config-cache.
22907 # It is not useful on other systems.  If it contains results you don't
22908 # want to keep, you may remove or edit it.
22909 #
22910 # config.status only pays attention to the cache file if you give it
22911 # the --recheck option to rerun configure.
22912 #
22913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22915 # following values.
22916
22917 _ACEOF
22918
22919 # The following way of writing the cache mishandles newlines in values,
22920 # but we know of no workaround that is simple, portable, and efficient.
22921 # So, don't put newlines in cache variables' values.
22922 # Ultrix sh set writes to stderr and can't be redirected directly,
22923 # and sets the high bit in the cache file unless we assign to the vars.
22924 {
22925   (set) 2>&1 |
22926     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22927     *ac_space=\ *)
22928       # `set' does not quote correctly, so add quotes (double-quote
22929       # substitution turns \\\\ into \\, and sed turns \\ into \).
22930       sed -n \
22931         "s/'/'\\\\''/g;
22932           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22933       ;;
22934     *)
22935       # `set' quotes correctly as required by POSIX, so do not add quotes.
22936       sed -n \
22937         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22938       ;;
22939     esac;
22940 } |
22941   sed '
22942      t clear
22943      : clear
22944      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22945      t end
22946      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22947      : end' >>confcache
22948 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22949   if test -w $cache_file; then
22950     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22951     cat confcache >$cache_file
22952   else
22953     echo "not updating unwritable cache $cache_file"
22954   fi
22955 fi
22956 rm -f confcache
22957
22958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22959 # Let make expand exec_prefix.
22960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22961
22962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22964 # trailing colons and then remove the whole line if VPATH becomes empty
22965 # (actually we leave an empty line to preserve line numbers).
22966 if test "x$srcdir" = x.; then
22967   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22968 s/:*\$(srcdir):*/:/;
22969 s/:*\${srcdir}:*/:/;
22970 s/:*@srcdir@:*/:/;
22971 s/^\([^=]*=[     ]*\):*/\1/;
22972 s/:*$//;
22973 s/^[^=]*=[       ]*$//;
22974 }'
22975 fi
22976
22977 DEFS=-DHAVE_CONFIG_H
22978
22979 ac_libobjs=
22980 ac_ltlibobjs=
22981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22982   # 1. Remove the extension, and $U if already installed.
22983   ac_i=`echo "$ac_i" |
22984          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22985   # 2. Add them.
22986   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22987   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22988 done
22989 LIBOBJS=$ac_libobjs
22990
22991 LTLIBOBJS=$ac_ltlibobjs
22992
22993
22994 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22995   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22996 Usually this means the macro was only invoked conditionally." >&5
22997 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22998 Usually this means the macro was only invoked conditionally." >&2;}
22999    { (exit 1); exit 1; }; }
23000 fi
23001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23002   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23003 Usually this means the macro was only invoked conditionally." >&5
23004 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23005 Usually this means the macro was only invoked conditionally." >&2;}
23006    { (exit 1); exit 1; }; }
23007 fi
23008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23009   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23010 Usually this means the macro was only invoked conditionally." >&5
23011 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23012 Usually this means the macro was only invoked conditionally." >&2;}
23013    { (exit 1); exit 1; }; }
23014 fi
23015 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23016   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23017 Usually this means the macro was only invoked conditionally." >&5
23018 echo "$as_me: error: conditional \"am__fastdepCXX\" 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 "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23023   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23024 Usually this means the macro was only invoked conditionally." >&5
23025 echo "$as_me: error: conditional \"INSTALL_LTDL\" 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 "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23030   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23031 Usually this means the macro was only invoked conditionally." >&5
23032 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23033 Usually this means the macro was only invoked conditionally." >&2;}
23034    { (exit 1); exit 1; }; }
23035 fi
23036
23037 : ${CONFIG_STATUS=./config.status}
23038 ac_clean_files_save=$ac_clean_files
23039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23040 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23041 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23042 cat >$CONFIG_STATUS <<_ACEOF
23043 #! $SHELL
23044 # Generated by $as_me.
23045 # Run this file to recreate the current configuration.
23046 # Compiler output produced by configure, useful for debugging
23047 # configure, is in config.log if it exists.
23048
23049 debug=false
23050 ac_cs_recheck=false
23051 ac_cs_silent=false
23052 SHELL=\${CONFIG_SHELL-$SHELL}
23053 _ACEOF
23054
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23056 ## --------------------- ##
23057 ## M4sh Initialization.  ##
23058 ## --------------------- ##
23059
23060 # Be Bourne compatible
23061 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23062   emulate sh
23063   NULLCMD=:
23064   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23065   # is contrary to our usage.  Disable this feature.
23066   alias -g '${1+"$@"}'='"$@"'
23067 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23068   set -o posix
23069 fi
23070 DUALCASE=1; export DUALCASE # for MKS sh
23071
23072 # Support unset when possible.
23073 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23074   as_unset=unset
23075 else
23076   as_unset=false
23077 fi
23078
23079
23080 # Work around bugs in pre-3.0 UWIN ksh.
23081 $as_unset ENV MAIL MAILPATH
23082 PS1='$ '
23083 PS2='> '
23084 PS4='+ '
23085
23086 # NLS nuisances.
23087 for as_var in \
23088   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23089   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23090   LC_TELEPHONE LC_TIME
23091 do
23092   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23093     eval $as_var=C; export $as_var
23094   else
23095     $as_unset $as_var
23096   fi
23097 done
23098
23099 # Required to use basename.
23100 if expr a : '\(a\)' >/dev/null 2>&1; then
23101   as_expr=expr
23102 else
23103   as_expr=false
23104 fi
23105
23106 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23107   as_basename=basename
23108 else
23109   as_basename=false
23110 fi
23111
23112
23113 # Name of the executable.
23114 as_me=`$as_basename "$0" ||
23115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23116          X"$0" : 'X\(//\)$' \| \
23117          X"$0" : 'X\(/\)$' \| \
23118          .     : '\(.\)' 2>/dev/null ||
23119 echo X/"$0" |
23120     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23121           /^X\/\(\/\/\)$/{ s//\1/; q; }
23122           /^X\/\(\/\).*/{ s//\1/; q; }
23123           s/.*/./; q'`
23124
23125
23126 # PATH needs CR, and LINENO needs CR and PATH.
23127 # Avoid depending upon Character Ranges.
23128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23131 as_cr_digits='0123456789'
23132 as_cr_alnum=$as_cr_Letters$as_cr_digits
23133
23134 # The user is always right.
23135 if test "${PATH_SEPARATOR+set}" != set; then
23136   echo "#! /bin/sh" >conf$$.sh
23137   echo  "exit 0"   >>conf$$.sh
23138   chmod +x conf$$.sh
23139   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23140     PATH_SEPARATOR=';'
23141   else
23142     PATH_SEPARATOR=:
23143   fi
23144   rm -f conf$$.sh
23145 fi
23146
23147
23148   as_lineno_1=$LINENO
23149   as_lineno_2=$LINENO
23150   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23151   test "x$as_lineno_1" != "x$as_lineno_2" &&
23152   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23153   # Find who we are.  Look in the path if we contain no path at all
23154   # relative or not.
23155   case $0 in
23156     *[\\/]* ) as_myself=$0 ;;
23157     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23158 for as_dir in $PATH
23159 do
23160   IFS=$as_save_IFS
23161   test -z "$as_dir" && as_dir=.
23162   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23163 done
23164
23165        ;;
23166   esac
23167   # We did not find ourselves, most probably we were run as `sh COMMAND'
23168   # in which case we are not to be found in the path.
23169   if test "x$as_myself" = x; then
23170     as_myself=$0
23171   fi
23172   if test ! -f "$as_myself"; then
23173     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23174 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23175    { (exit 1); exit 1; }; }
23176   fi
23177   case $CONFIG_SHELL in
23178   '')
23179     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23181 do
23182   IFS=$as_save_IFS
23183   test -z "$as_dir" && as_dir=.
23184   for as_base in sh bash ksh sh5; do
23185          case $as_dir in
23186          /*)
23187            if ("$as_dir/$as_base" -c '
23188   as_lineno_1=$LINENO
23189   as_lineno_2=$LINENO
23190   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23191   test "x$as_lineno_1" != "x$as_lineno_2" &&
23192   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23193              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23194              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23195              CONFIG_SHELL=$as_dir/$as_base
23196              export CONFIG_SHELL
23197              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23198            fi;;
23199          esac
23200        done
23201 done
23202 ;;
23203   esac
23204
23205   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23206   # uniformly replaced by the line number.  The first 'sed' inserts a
23207   # line-number line before each line; the second 'sed' does the real
23208   # work.  The second script uses 'N' to pair each line-number line
23209   # with the numbered line, and appends trailing '-' during
23210   # substitution so that $LINENO is not a special case at line end.
23211   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23212   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23213   sed '=' <$as_myself |
23214     sed '
23215       N
23216       s,$,-,
23217       : loop
23218       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23219       t loop
23220       s,-$,,
23221       s,^['$as_cr_digits']*\n,,
23222     ' >$as_me.lineno &&
23223   chmod +x $as_me.lineno ||
23224     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23225 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23226    { (exit 1); exit 1; }; }
23227
23228   # Don't try to exec as it changes $[0], causing all sort of problems
23229   # (the dirname of $[0] is not the place where we might find the
23230   # original and so on.  Autoconf is especially sensible to this).
23231   . ./$as_me.lineno
23232   # Exit status is that of the last command.
23233   exit
23234 }
23235
23236
23237 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23238   *c*,-n*) ECHO_N= ECHO_C='
23239 ' ECHO_T='      ' ;;
23240   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23241   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23242 esac
23243
23244 if expr a : '\(a\)' >/dev/null 2>&1; then
23245   as_expr=expr
23246 else
23247   as_expr=false
23248 fi
23249
23250 rm -f conf$$ conf$$.exe conf$$.file
23251 echo >conf$$.file
23252 if ln -s conf$$.file conf$$ 2>/dev/null; then
23253   # We could just check for DJGPP; but this test a) works b) is more generic
23254   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23255   if test -f conf$$.exe; then
23256     # Don't use ln at all; we don't have any links
23257     as_ln_s='cp -p'
23258   else
23259     as_ln_s='ln -s'
23260   fi
23261 elif ln conf$$.file conf$$ 2>/dev/null; then
23262   as_ln_s=ln
23263 else
23264   as_ln_s='cp -p'
23265 fi
23266 rm -f conf$$ conf$$.exe conf$$.file
23267
23268 if mkdir -p . 2>/dev/null; then
23269   as_mkdir_p=:
23270 else
23271   test -d ./-p && rmdir ./-p
23272   as_mkdir_p=false
23273 fi
23274
23275 as_executable_p="test -f"
23276
23277 # Sed expression to map a string onto a valid CPP name.
23278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23279
23280 # Sed expression to map a string onto a valid variable name.
23281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23282
23283
23284 # IFS
23285 # We need space, tab and new line, in precisely that order.
23286 as_nl='
23287 '
23288 IFS="   $as_nl"
23289
23290 # CDPATH.
23291 $as_unset CDPATH
23292
23293 exec 6>&1
23294
23295 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23296 # report actual input values of CONFIG_FILES etc. instead of their
23297 # values after options handling.  Logging --version etc. is OK.
23298 exec 5>>config.log
23299 {
23300   echo
23301   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23302 ## Running $as_me. ##
23303 _ASBOX
23304 } >&5
23305 cat >&5 <<_CSEOF
23306
23307 This file was extended by libltdl $as_me 1.2, which was
23308 generated by GNU Autoconf 2.59.  Invocation command line was
23309
23310   CONFIG_FILES    = $CONFIG_FILES
23311   CONFIG_HEADERS  = $CONFIG_HEADERS
23312   CONFIG_LINKS    = $CONFIG_LINKS
23313   CONFIG_COMMANDS = $CONFIG_COMMANDS
23314   $ $0 $@
23315
23316 _CSEOF
23317 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23318 echo >&5
23319 _ACEOF
23320
23321 # Files that config.status was made for.
23322 if test -n "$ac_config_files"; then
23323   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23324 fi
23325
23326 if test -n "$ac_config_headers"; then
23327   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23328 fi
23329
23330 if test -n "$ac_config_links"; then
23331   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23332 fi
23333
23334 if test -n "$ac_config_commands"; then
23335   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23336 fi
23337
23338 cat >>$CONFIG_STATUS <<\_ACEOF
23339
23340 ac_cs_usage="\
23341 \`$as_me' instantiates files from templates according to the
23342 current configuration.
23343
23344 Usage: $0 [OPTIONS] [FILE]...
23345
23346   -h, --help       print this help, then exit
23347   -V, --version    print version number, then exit
23348   -q, --quiet      do not print progress messages
23349   -d, --debug      don't remove temporary files
23350       --recheck    update $as_me by reconfiguring in the same conditions
23351   --file=FILE[:TEMPLATE]
23352                    instantiate the configuration file FILE
23353   --header=FILE[:TEMPLATE]
23354                    instantiate the configuration header FILE
23355
23356 Configuration files:
23357 $config_files
23358
23359 Configuration headers:
23360 $config_headers
23361
23362 Configuration commands:
23363 $config_commands
23364
23365 Report bugs to <bug-autoconf@gnu.org>."
23366 _ACEOF
23367
23368 cat >>$CONFIG_STATUS <<_ACEOF
23369 ac_cs_version="\\
23370 libltdl config.status 1.2
23371 configured by $0, generated by GNU Autoconf 2.59,
23372   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23373
23374 Copyright (C) 2003 Free Software Foundation, Inc.
23375 This config.status script is free software; the Free Software Foundation
23376 gives unlimited permission to copy, distribute and modify it."
23377 srcdir=$srcdir
23378 INSTALL="$INSTALL"
23379 _ACEOF
23380
23381 cat >>$CONFIG_STATUS <<\_ACEOF
23382 # If no file are specified by the user, then we need to provide default
23383 # value.  By we need to know if files were specified by the user.
23384 ac_need_defaults=:
23385 while test $# != 0
23386 do
23387   case $1 in
23388   --*=*)
23389     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23390     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23391     ac_shift=:
23392     ;;
23393   -*)
23394     ac_option=$1
23395     ac_optarg=$2
23396     ac_shift=shift
23397     ;;
23398   *) # This is not an option, so the user has probably given explicit
23399      # arguments.
23400      ac_option=$1
23401      ac_need_defaults=false;;
23402   esac
23403
23404   case $ac_option in
23405   # Handling of the options.
23406 _ACEOF
23407 cat >>$CONFIG_STATUS <<\_ACEOF
23408   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23409     ac_cs_recheck=: ;;
23410   --version | --vers* | -V )
23411     echo "$ac_cs_version"; exit 0 ;;
23412   --he | --h)
23413     # Conflict between --help and --header
23414     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23415 Try \`$0 --help' for more information." >&5
23416 echo "$as_me: error: ambiguous option: $1
23417 Try \`$0 --help' for more information." >&2;}
23418    { (exit 1); exit 1; }; };;
23419   --help | --hel | -h )
23420     echo "$ac_cs_usage"; exit 0 ;;
23421   --debug | --d* | -d )
23422     debug=: ;;
23423   --file | --fil | --fi | --f )
23424     $ac_shift
23425     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23426     ac_need_defaults=false;;
23427   --header | --heade | --head | --hea )
23428     $ac_shift
23429     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23430     ac_need_defaults=false;;
23431   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23432   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23433     ac_cs_silent=: ;;
23434
23435   # This is an error.
23436   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23437 Try \`$0 --help' for more information." >&5
23438 echo "$as_me: error: unrecognized option: $1
23439 Try \`$0 --help' for more information." >&2;}
23440    { (exit 1); exit 1; }; } ;;
23441
23442   *) ac_config_targets="$ac_config_targets $1" ;;
23443
23444   esac
23445   shift
23446 done
23447
23448 ac_configure_extra_args=
23449
23450 if $ac_cs_silent; then
23451   exec 6>/dev/null
23452   ac_configure_extra_args="$ac_configure_extra_args --silent"
23453 fi
23454
23455 _ACEOF
23456 cat >>$CONFIG_STATUS <<_ACEOF
23457 if \$ac_cs_recheck; then
23458   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23459   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23460 fi
23461
23462 _ACEOF
23463
23464 cat >>$CONFIG_STATUS <<_ACEOF
23465 #
23466 # INIT-COMMANDS section.
23467 #
23468
23469
23470 srcdir="$srcdir"
23471 host="$host"
23472 target="$target"
23473 with_multisubdir="$with_multisubdir"
23474 with_multisrctop="$with_multisrctop"
23475 with_target_subdir="$with_target_subdir"
23476 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23477 multi_basedir="$multi_basedir"
23478 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23479 CC="$CC"
23480 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23481
23482 _ACEOF
23483
23484
23485
23486 cat >>$CONFIG_STATUS <<\_ACEOF
23487 for ac_config_target in $ac_config_targets
23488 do
23489   case "$ac_config_target" in
23490   # Handling of arguments.
23491   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23492   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23493   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23494   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23495   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23497    { (exit 1); exit 1; }; };;
23498   esac
23499 done
23500
23501 # If the user did not use the arguments to specify the items to instantiate,
23502 # then the envvar interface is used.  Set only those that are not.
23503 # We use the long form for the default assignment because of an extremely
23504 # bizarre bug on SunOS 4.1.3.
23505 if $ac_need_defaults; then
23506   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23507   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23508   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23509 fi
23510
23511 # Have a temporary directory for convenience.  Make it in the build tree
23512 # simply because there is no reason to put it here, and in addition,
23513 # creating and moving files from /tmp can sometimes cause problems.
23514 # Create a temporary directory, and hook for its removal unless debugging.
23515 $debug ||
23516 {
23517   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23518   trap '{ (exit 1); exit 1; }' 1 2 13 15
23519 }
23520
23521 # Create a (secure) tmp directory for tmp files.
23522
23523 {
23524   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23525   test -n "$tmp" && test -d "$tmp"
23526 }  ||
23527 {
23528   tmp=./confstat$$-$RANDOM
23529   (umask 077 && mkdir $tmp)
23530 } ||
23531 {
23532    echo "$me: cannot create a temporary directory in ." >&2
23533    { (exit 1); exit 1; }
23534 }
23535
23536 _ACEOF
23537
23538 cat >>$CONFIG_STATUS <<_ACEOF
23539
23540 #
23541 # CONFIG_FILES section.
23542 #
23543
23544 # No need to generate the scripts if there are no CONFIG_FILES.
23545 # This happens for instance when ./config.status config.h
23546 if test -n "\$CONFIG_FILES"; then
23547   # Protect against being on the right side of a sed subst in config.status.
23548   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23549    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23550 s,@SHELL@,$SHELL,;t t
23551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23557 s,@exec_prefix@,$exec_prefix,;t t
23558 s,@prefix@,$prefix,;t t
23559 s,@program_transform_name@,$program_transform_name,;t t
23560 s,@bindir@,$bindir,;t t
23561 s,@sbindir@,$sbindir,;t t
23562 s,@libexecdir@,$libexecdir,;t t
23563 s,@datadir@,$datadir,;t t
23564 s,@sysconfdir@,$sysconfdir,;t t
23565 s,@sharedstatedir@,$sharedstatedir,;t t
23566 s,@localstatedir@,$localstatedir,;t t
23567 s,@libdir@,$libdir,;t t
23568 s,@includedir@,$includedir,;t t
23569 s,@oldincludedir@,$oldincludedir,;t t
23570 s,@infodir@,$infodir,;t t
23571 s,@mandir@,$mandir,;t t
23572 s,@build_alias@,$build_alias,;t t
23573 s,@host_alias@,$host_alias,;t t
23574 s,@target_alias@,$target_alias,;t t
23575 s,@DEFS@,$DEFS,;t t
23576 s,@ECHO_C@,$ECHO_C,;t t
23577 s,@ECHO_N@,$ECHO_N,;t t
23578 s,@ECHO_T@,$ECHO_T,;t t
23579 s,@LIBS@,$LIBS,;t t
23580 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23581 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23582 s,@MAINT@,$MAINT,;t t
23583 s,@multi_basedir@,$multi_basedir,;t t
23584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23587 s,@CYGPATH_W@,$CYGPATH_W,;t t
23588 s,@PACKAGE@,$PACKAGE,;t t
23589 s,@VERSION@,$VERSION,;t t
23590 s,@ACLOCAL@,$ACLOCAL,;t t
23591 s,@AUTOCONF@,$AUTOCONF,;t t
23592 s,@AUTOMAKE@,$AUTOMAKE,;t t
23593 s,@AUTOHEADER@,$AUTOHEADER,;t t
23594 s,@MAKEINFO@,$MAKEINFO,;t t
23595 s,@install_sh@,$install_sh,;t t
23596 s,@STRIP@,$STRIP,;t t
23597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23598 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23599 s,@mkdir_p@,$mkdir_p,;t t
23600 s,@AWK@,$AWK,;t t
23601 s,@SET_MAKE@,$SET_MAKE,;t t
23602 s,@am__leading_dot@,$am__leading_dot,;t t
23603 s,@AMTAR@,$AMTAR,;t t
23604 s,@am__tar@,$am__tar,;t t
23605 s,@am__untar@,$am__untar,;t t
23606 s,@CC@,$CC,;t t
23607 s,@CFLAGS@,$CFLAGS,;t t
23608 s,@LDFLAGS@,$LDFLAGS,;t t
23609 s,@CPPFLAGS@,$CPPFLAGS,;t t
23610 s,@ac_ct_CC@,$ac_ct_CC,;t t
23611 s,@EXEEXT@,$EXEEXT,;t t
23612 s,@OBJEXT@,$OBJEXT,;t t
23613 s,@DEPDIR@,$DEPDIR,;t t
23614 s,@am__include@,$am__include,;t t
23615 s,@am__quote@,$am__quote,;t t
23616 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23617 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23618 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23619 s,@CCDEPMODE@,$CCDEPMODE,;t t
23620 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23621 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23622 s,@build@,$build,;t t
23623 s,@build_cpu@,$build_cpu,;t t
23624 s,@build_vendor@,$build_vendor,;t t
23625 s,@build_os@,$build_os,;t t
23626 s,@host@,$host,;t t
23627 s,@host_cpu@,$host_cpu,;t t
23628 s,@host_vendor@,$host_vendor,;t t
23629 s,@host_os@,$host_os,;t t
23630 s,@EGREP@,$EGREP,;t t
23631 s,@LN_S@,$LN_S,;t t
23632 s,@ECHO@,$ECHO,;t t
23633 s,@AR@,$AR,;t t
23634 s,@ac_ct_AR@,$ac_ct_AR,;t t
23635 s,@RANLIB@,$RANLIB,;t t
23636 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23637 s,@DLLTOOL@,$DLLTOOL,;t t
23638 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23639 s,@AS@,$AS,;t t
23640 s,@ac_ct_AS@,$ac_ct_AS,;t t
23641 s,@OBJDUMP@,$OBJDUMP,;t t
23642 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23643 s,@CPP@,$CPP,;t t
23644 s,@CXX@,$CXX,;t t
23645 s,@CXXFLAGS@,$CXXFLAGS,;t t
23646 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23647 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23648 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23649 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23650 s,@CXXCPP@,$CXXCPP,;t t
23651 s,@F77@,$F77,;t t
23652 s,@FFLAGS@,$FFLAGS,;t t
23653 s,@ac_ct_F77@,$ac_ct_F77,;t t
23654 s,@LIBTOOL@,$LIBTOOL,;t t
23655 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23656 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23657 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23658 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23659 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23660 s,@LIBADD_DL@,$LIBADD_DL,;t t
23661 s,@LIBOBJS@,$LIBOBJS,;t t
23662 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23663 CEOF
23664
23665 _ACEOF
23666
23667   cat >>$CONFIG_STATUS <<\_ACEOF
23668   # Split the substitutions into bite-sized pieces for seds with
23669   # small command number limits, like on Digital OSF/1 and HP-UX.
23670   ac_max_sed_lines=48
23671   ac_sed_frag=1 # Number of current file.
23672   ac_beg=1 # First line for current file.
23673   ac_end=$ac_max_sed_lines # Line after last line for current file.
23674   ac_more_lines=:
23675   ac_sed_cmds=
23676   while $ac_more_lines; do
23677     if test $ac_beg -gt 1; then
23678       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23679     else
23680       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23681     fi
23682     if test ! -s $tmp/subs.frag; then
23683       ac_more_lines=false
23684     else
23685       # The purpose of the label and of the branching condition is to
23686       # speed up the sed processing (if there are no `@' at all, there
23687       # is no need to browse any of the substitutions).
23688       # These are the two extra sed commands mentioned above.
23689       (echo ':t
23690   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23691       if test -z "$ac_sed_cmds"; then
23692         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23693       else
23694         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23695       fi
23696       ac_sed_frag=`expr $ac_sed_frag + 1`
23697       ac_beg=$ac_end
23698       ac_end=`expr $ac_end + $ac_max_sed_lines`
23699     fi
23700   done
23701   if test -z "$ac_sed_cmds"; then
23702     ac_sed_cmds=cat
23703   fi
23704 fi # test -n "$CONFIG_FILES"
23705
23706 _ACEOF
23707 cat >>$CONFIG_STATUS <<\_ACEOF
23708 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23709   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23710   case $ac_file in
23711   - | *:- | *:-:* ) # input from stdin
23712         cat >$tmp/stdin
23713         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23714         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23715   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23716         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23717   * )   ac_file_in=$ac_file.in ;;
23718   esac
23719
23720   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23721   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723          X"$ac_file" : 'X\(//\)[^/]' \| \
23724          X"$ac_file" : 'X\(//\)$' \| \
23725          X"$ac_file" : 'X\(/\)' \| \
23726          .     : '\(.\)' 2>/dev/null ||
23727 echo X"$ac_file" |
23728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23730           /^X\(\/\/\)$/{ s//\1/; q; }
23731           /^X\(\/\).*/{ s//\1/; q; }
23732           s/.*/./; q'`
23733   { if $as_mkdir_p; then
23734     mkdir -p "$ac_dir"
23735   else
23736     as_dir="$ac_dir"
23737     as_dirs=
23738     while test ! -d "$as_dir"; do
23739       as_dirs="$as_dir $as_dirs"
23740       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742          X"$as_dir" : 'X\(//\)[^/]' \| \
23743          X"$as_dir" : 'X\(//\)$' \| \
23744          X"$as_dir" : 'X\(/\)' \| \
23745          .     : '\(.\)' 2>/dev/null ||
23746 echo X"$as_dir" |
23747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23748           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23749           /^X\(\/\/\)$/{ s//\1/; q; }
23750           /^X\(\/\).*/{ s//\1/; q; }
23751           s/.*/./; q'`
23752     done
23753     test ! -n "$as_dirs" || mkdir $as_dirs
23754   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23756    { (exit 1); exit 1; }; }; }
23757
23758   ac_builddir=.
23759
23760 if test "$ac_dir" != .; then
23761   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23762   # A "../" for each directory in $ac_dir_suffix.
23763   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23764 else
23765   ac_dir_suffix= ac_top_builddir=
23766 fi
23767
23768 case $srcdir in
23769   .)  # No --srcdir option.  We are building in place.
23770     ac_srcdir=.
23771     if test -z "$ac_top_builddir"; then
23772        ac_top_srcdir=.
23773     else
23774        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23775     fi ;;
23776   [\\/]* | ?:[\\/]* )  # Absolute path.
23777     ac_srcdir=$srcdir$ac_dir_suffix;
23778     ac_top_srcdir=$srcdir ;;
23779   *) # Relative path.
23780     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23781     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23782 esac
23783
23784 # Do not use `cd foo && pwd` to compute absolute paths, because
23785 # the directories may not exist.
23786 case `pwd` in
23787 .) ac_abs_builddir="$ac_dir";;
23788 *)
23789   case "$ac_dir" in
23790   .) ac_abs_builddir=`pwd`;;
23791   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23792   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23793   esac;;
23794 esac
23795 case $ac_abs_builddir in
23796 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23797 *)
23798   case ${ac_top_builddir}. in
23799   .) ac_abs_top_builddir=$ac_abs_builddir;;
23800   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23801   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23802   esac;;
23803 esac
23804 case $ac_abs_builddir in
23805 .) ac_abs_srcdir=$ac_srcdir;;
23806 *)
23807   case $ac_srcdir in
23808   .) ac_abs_srcdir=$ac_abs_builddir;;
23809   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23810   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23811   esac;;
23812 esac
23813 case $ac_abs_builddir in
23814 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23815 *)
23816   case $ac_top_srcdir in
23817   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23818   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23819   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23820   esac;;
23821 esac
23822
23823
23824   case $INSTALL in
23825   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23826   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23827   esac
23828
23829   if test x"$ac_file" != x-; then
23830     { echo "$as_me:$LINENO: creating $ac_file" >&5
23831 echo "$as_me: creating $ac_file" >&6;}
23832     rm -f "$ac_file"
23833   fi
23834   # Let's still pretend it is `configure' which instantiates (i.e., don't
23835   # use $as_me), people would be surprised to read:
23836   #    /* config.h.  Generated by config.status.  */
23837   if test x"$ac_file" = x-; then
23838     configure_input=
23839   else
23840     configure_input="$ac_file.  "
23841   fi
23842   configure_input=$configure_input"Generated from `echo $ac_file_in |
23843                                      sed 's,.*/,,'` by configure."
23844
23845   # First look for the input files in the build tree, otherwise in the
23846   # src tree.
23847   ac_file_inputs=`IFS=:
23848     for f in $ac_file_in; do
23849       case $f in
23850       -) echo $tmp/stdin ;;
23851       [\\/$]*)
23852          # Absolute (can't be DOS-style, as IFS=:)
23853          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23854 echo "$as_me: error: cannot find input file: $f" >&2;}
23855    { (exit 1); exit 1; }; }
23856          echo "$f";;
23857       *) # Relative
23858          if test -f "$f"; then
23859            # Build tree
23860            echo "$f"
23861          elif test -f "$srcdir/$f"; then
23862            # Source tree
23863            echo "$srcdir/$f"
23864          else
23865            # /dev/null tree
23866            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23867 echo "$as_me: error: cannot find input file: $f" >&2;}
23868    { (exit 1); exit 1; }; }
23869          fi;;
23870       esac
23871     done` || { (exit 1); exit 1; }
23872 _ACEOF
23873 cat >>$CONFIG_STATUS <<_ACEOF
23874   sed "$ac_vpsub
23875 $extrasub
23876 _ACEOF
23877 cat >>$CONFIG_STATUS <<\_ACEOF
23878 :t
23879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23880 s,@configure_input@,$configure_input,;t t
23881 s,@srcdir@,$ac_srcdir,;t t
23882 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23883 s,@top_srcdir@,$ac_top_srcdir,;t t
23884 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23885 s,@builddir@,$ac_builddir,;t t
23886 s,@abs_builddir@,$ac_abs_builddir,;t t
23887 s,@top_builddir@,$ac_top_builddir,;t t
23888 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23889 s,@INSTALL@,$ac_INSTALL,;t t
23890 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23891   rm -f $tmp/stdin
23892   if test x"$ac_file" != x-; then
23893     mv $tmp/out $ac_file
23894   else
23895     cat $tmp/out
23896     rm -f $tmp/out
23897   fi
23898
23899 done
23900 _ACEOF
23901 cat >>$CONFIG_STATUS <<\_ACEOF
23902
23903 #
23904 # CONFIG_HEADER section.
23905 #
23906
23907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23909 #
23910 # ac_d sets the value in "#define NAME VALUE" lines.
23911 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23912 ac_dB='[         ].*$,\1#\2'
23913 ac_dC=' '
23914 ac_dD=',;t'
23915 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23916 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23917 ac_uB='$,\1#\2define\3'
23918 ac_uC=' '
23919 ac_uD=',;t'
23920
23921 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23922   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23923   case $ac_file in
23924   - | *:- | *:-:* ) # input from stdin
23925         cat >$tmp/stdin
23926         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23927         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23928   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23929         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23930   * )   ac_file_in=$ac_file.in ;;
23931   esac
23932
23933   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23934 echo "$as_me: creating $ac_file" >&6;}
23935
23936   # First look for the input files in the build tree, otherwise in the
23937   # src tree.
23938   ac_file_inputs=`IFS=:
23939     for f in $ac_file_in; do
23940       case $f in
23941       -) echo $tmp/stdin ;;
23942       [\\/$]*)
23943          # Absolute (can't be DOS-style, as IFS=:)
23944          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23945 echo "$as_me: error: cannot find input file: $f" >&2;}
23946    { (exit 1); exit 1; }; }
23947          # Do quote $f, to prevent DOS paths from being IFS'd.
23948          echo "$f";;
23949       *) # Relative
23950          if test -f "$f"; then
23951            # Build tree
23952            echo "$f"
23953          elif test -f "$srcdir/$f"; then
23954            # Source tree
23955            echo "$srcdir/$f"
23956          else
23957            # /dev/null tree
23958            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23959 echo "$as_me: error: cannot find input file: $f" >&2;}
23960    { (exit 1); exit 1; }; }
23961          fi;;
23962       esac
23963     done` || { (exit 1); exit 1; }
23964   # Remove the trailing spaces.
23965   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23966
23967 _ACEOF
23968
23969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23970 # `conftest.undefs', that substitutes the proper values into
23971 # config.h.in to produce config.h.  The first handles `#define'
23972 # templates, and the second `#undef' templates.
23973 # And first: Protect against being on the right side of a sed subst in
23974 # config.status.  Protect against being in an unquoted here document
23975 # in config.status.
23976 rm -f conftest.defines conftest.undefs
23977 # Using a here document instead of a string reduces the quoting nightmare.
23978 # Putting comments in sed scripts is not portable.
23979 #
23980 # `end' is used to avoid that the second main sed command (meant for
23981 # 0-ary CPP macros) applies to n-ary macro definitions.
23982 # See the Autoconf documentation for `clear'.
23983 cat >confdef2sed.sed <<\_ACEOF
23984 s/[\\&,]/\\&/g
23985 s,[\\$`],\\&,g
23986 t clear
23987 : clear
23988 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23989 t end
23990 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23991 : end
23992 _ACEOF
23993 # If some macros were called several times there might be several times
23994 # the same #defines, which is useless.  Nevertheless, we may not want to
23995 # sort them, since we want the *last* AC-DEFINE to be honored.
23996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23998 rm -f confdef2sed.sed
23999
24000 # This sed command replaces #undef with comments.  This is necessary, for
24001 # example, in the case of _POSIX_SOURCE, which is predefined and required
24002 # on some systems where configure will not decide to define it.
24003 cat >>conftest.undefs <<\_ACEOF
24004 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24005 _ACEOF
24006
24007 # Break up conftest.defines because some shells have a limit on the size
24008 # of here documents, and old seds have small limits too (100 cmds).
24009 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24010 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24011 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24012 echo '  :' >>$CONFIG_STATUS
24013 rm -f conftest.tail
24014 while grep . conftest.defines >/dev/null
24015 do
24016   # Write a limited-size here document to $tmp/defines.sed.
24017   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24018   # Speed up: don't consider the non `#define' lines.
24019   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24020   # Work around the forget-to-reset-the-flag bug.
24021   echo 't clr' >>$CONFIG_STATUS
24022   echo ': clr' >>$CONFIG_STATUS
24023   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24024   echo 'CEOF
24025   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24026   rm -f $tmp/in
24027   mv $tmp/out $tmp/in
24028 ' >>$CONFIG_STATUS
24029   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24030   rm -f conftest.defines
24031   mv conftest.tail conftest.defines
24032 done
24033 rm -f conftest.defines
24034 echo '  fi # grep' >>$CONFIG_STATUS
24035 echo >>$CONFIG_STATUS
24036
24037 # Break up conftest.undefs because some shells have a limit on the size
24038 # of here documents, and old seds have small limits too (100 cmds).
24039 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24040 rm -f conftest.tail
24041 while grep . conftest.undefs >/dev/null
24042 do
24043   # Write a limited-size here document to $tmp/undefs.sed.
24044   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24045   # Speed up: don't consider the non `#undef'
24046   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24047   # Work around the forget-to-reset-the-flag bug.
24048   echo 't clr' >>$CONFIG_STATUS
24049   echo ': clr' >>$CONFIG_STATUS
24050   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24051   echo 'CEOF
24052   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24053   rm -f $tmp/in
24054   mv $tmp/out $tmp/in
24055 ' >>$CONFIG_STATUS
24056   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24057   rm -f conftest.undefs
24058   mv conftest.tail conftest.undefs
24059 done
24060 rm -f conftest.undefs
24061
24062 cat >>$CONFIG_STATUS <<\_ACEOF
24063   # Let's still pretend it is `configure' which instantiates (i.e., don't
24064   # use $as_me), people would be surprised to read:
24065   #    /* config.h.  Generated by config.status.  */
24066   if test x"$ac_file" = x-; then
24067     echo "/* Generated by configure.  */" >$tmp/config.h
24068   else
24069     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24070   fi
24071   cat $tmp/in >>$tmp/config.h
24072   rm -f $tmp/in
24073   if test x"$ac_file" != x-; then
24074     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24075       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24076 echo "$as_me: $ac_file is unchanged" >&6;}
24077     else
24078       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080          X"$ac_file" : 'X\(//\)[^/]' \| \
24081          X"$ac_file" : 'X\(//\)$' \| \
24082          X"$ac_file" : 'X\(/\)' \| \
24083          .     : '\(.\)' 2>/dev/null ||
24084 echo X"$ac_file" |
24085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087           /^X\(\/\/\)$/{ s//\1/; q; }
24088           /^X\(\/\).*/{ s//\1/; q; }
24089           s/.*/./; q'`
24090       { if $as_mkdir_p; then
24091     mkdir -p "$ac_dir"
24092   else
24093     as_dir="$ac_dir"
24094     as_dirs=
24095     while test ! -d "$as_dir"; do
24096       as_dirs="$as_dir $as_dirs"
24097       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24099          X"$as_dir" : 'X\(//\)[^/]' \| \
24100          X"$as_dir" : 'X\(//\)$' \| \
24101          X"$as_dir" : 'X\(/\)' \| \
24102          .     : '\(.\)' 2>/dev/null ||
24103 echo X"$as_dir" |
24104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24106           /^X\(\/\/\)$/{ s//\1/; q; }
24107           /^X\(\/\).*/{ s//\1/; q; }
24108           s/.*/./; q'`
24109     done
24110     test ! -n "$as_dirs" || mkdir $as_dirs
24111   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24113    { (exit 1); exit 1; }; }; }
24114
24115       rm -f $ac_file
24116       mv $tmp/config.h $ac_file
24117     fi
24118   else
24119     cat $tmp/config.h
24120     rm -f $tmp/config.h
24121   fi
24122 # Compute $ac_file's index in $config_headers.
24123 _am_stamp_count=1
24124 for _am_header in $config_headers :; do
24125   case $_am_header in
24126     $ac_file | $ac_file:* )
24127       break ;;
24128     * )
24129       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24130   esac
24131 done
24132 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24133 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134          X$ac_file : 'X\(//\)[^/]' \| \
24135          X$ac_file : 'X\(//\)$' \| \
24136          X$ac_file : 'X\(/\)' \| \
24137          .     : '\(.\)' 2>/dev/null ||
24138 echo X$ac_file |
24139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24140           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24141           /^X\(\/\/\)$/{ s//\1/; q; }
24142           /^X\(\/\).*/{ s//\1/; q; }
24143           s/.*/./; q'`/stamp-h$_am_stamp_count
24144 done
24145 _ACEOF
24146 cat >>$CONFIG_STATUS <<\_ACEOF
24147
24148 #
24149 # CONFIG_COMMANDS section.
24150 #
24151 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24152   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24153   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24154   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24155 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24156          X"$ac_dest" : 'X\(//\)[^/]' \| \
24157          X"$ac_dest" : 'X\(//\)$' \| \
24158          X"$ac_dest" : 'X\(/\)' \| \
24159          .     : '\(.\)' 2>/dev/null ||
24160 echo X"$ac_dest" |
24161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24163           /^X\(\/\/\)$/{ s//\1/; q; }
24164           /^X\(\/\).*/{ s//\1/; q; }
24165           s/.*/./; q'`
24166   { if $as_mkdir_p; then
24167     mkdir -p "$ac_dir"
24168   else
24169     as_dir="$ac_dir"
24170     as_dirs=
24171     while test ! -d "$as_dir"; do
24172       as_dirs="$as_dir $as_dirs"
24173       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24175          X"$as_dir" : 'X\(//\)[^/]' \| \
24176          X"$as_dir" : 'X\(//\)$' \| \
24177          X"$as_dir" : 'X\(/\)' \| \
24178          .     : '\(.\)' 2>/dev/null ||
24179 echo X"$as_dir" |
24180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24181           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24182           /^X\(\/\/\)$/{ s//\1/; q; }
24183           /^X\(\/\).*/{ s//\1/; q; }
24184           s/.*/./; q'`
24185     done
24186     test ! -n "$as_dirs" || mkdir $as_dirs
24187   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24189    { (exit 1); exit 1; }; }; }
24190
24191   ac_builddir=.
24192
24193 if test "$ac_dir" != .; then
24194   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24195   # A "../" for each directory in $ac_dir_suffix.
24196   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24197 else
24198   ac_dir_suffix= ac_top_builddir=
24199 fi
24200
24201 case $srcdir in
24202   .)  # No --srcdir option.  We are building in place.
24203     ac_srcdir=.
24204     if test -z "$ac_top_builddir"; then
24205        ac_top_srcdir=.
24206     else
24207        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24208     fi ;;
24209   [\\/]* | ?:[\\/]* )  # Absolute path.
24210     ac_srcdir=$srcdir$ac_dir_suffix;
24211     ac_top_srcdir=$srcdir ;;
24212   *) # Relative path.
24213     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24214     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24215 esac
24216
24217 # Do not use `cd foo && pwd` to compute absolute paths, because
24218 # the directories may not exist.
24219 case `pwd` in
24220 .) ac_abs_builddir="$ac_dir";;
24221 *)
24222   case "$ac_dir" in
24223   .) ac_abs_builddir=`pwd`;;
24224   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24225   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24226   esac;;
24227 esac
24228 case $ac_abs_builddir in
24229 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24230 *)
24231   case ${ac_top_builddir}. in
24232   .) ac_abs_top_builddir=$ac_abs_builddir;;
24233   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24234   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24235   esac;;
24236 esac
24237 case $ac_abs_builddir in
24238 .) ac_abs_srcdir=$ac_srcdir;;
24239 *)
24240   case $ac_srcdir in
24241   .) ac_abs_srcdir=$ac_abs_builddir;;
24242   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24243   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24244   esac;;
24245 esac
24246 case $ac_abs_builddir in
24247 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24248 *)
24249   case $ac_top_srcdir in
24250   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24251   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24252   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24253   esac;;
24254 esac
24255
24256
24257   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24258 echo "$as_me: executing $ac_dest commands" >&6;}
24259   case $ac_dest in
24260     default-1 )
24261 # Only add multilib support code if we just rebuilt the top-level
24262 # Makefile.
24263 case " $CONFIG_FILES " in
24264  *" Makefile "*)
24265    ac_file=Makefile . ${multi_basedir}/config-ml.in
24266    ;;
24267 esac ;;
24268     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24269   # Strip MF so we end up with the name of the file.
24270   mf=`echo "$mf" | sed -e 's/:.*$//'`
24271   # Check whether this is an Automake generated Makefile or not.
24272   # We used to match only the files named `Makefile.in', but
24273   # some people rename them; so instead we look at the file content.
24274   # Grep'ing the first line is not enough: some people post-process
24275   # each Makefile.in and add a new line on top of each file to say so.
24276   # So let's grep whole file.
24277   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24278     dirpart=`(dirname "$mf") 2>/dev/null ||
24279 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24280          X"$mf" : 'X\(//\)[^/]' \| \
24281          X"$mf" : 'X\(//\)$' \| \
24282          X"$mf" : 'X\(/\)' \| \
24283          .     : '\(.\)' 2>/dev/null ||
24284 echo X"$mf" |
24285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24287           /^X\(\/\/\)$/{ s//\1/; q; }
24288           /^X\(\/\).*/{ s//\1/; q; }
24289           s/.*/./; q'`
24290   else
24291     continue
24292   fi
24293   # Extract the definition of DEPDIR, am__include, and am__quote
24294   # from the Makefile without running `make'.
24295   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24296   test -z "$DEPDIR" && continue
24297   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24298   test -z "am__include" && continue
24299   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24300   # When using ansi2knr, U may be empty or an underscore; expand it
24301   U=`sed -n 's/^U = //p' < "$mf"`
24302   # Find all dependency output files, they are included files with
24303   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24304   # simplest approach to changing $(DEPDIR) to its actual value in the
24305   # expansion.
24306   for file in `sed -n "
24307     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24308        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24309     # Make sure the directory exists.
24310     test -f "$dirpart/$file" && continue
24311     fdir=`(dirname "$file") 2>/dev/null ||
24312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24313          X"$file" : 'X\(//\)[^/]' \| \
24314          X"$file" : 'X\(//\)$' \| \
24315          X"$file" : 'X\(/\)' \| \
24316          .     : '\(.\)' 2>/dev/null ||
24317 echo X"$file" |
24318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24319           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24320           /^X\(\/\/\)$/{ s//\1/; q; }
24321           /^X\(\/\).*/{ s//\1/; q; }
24322           s/.*/./; q'`
24323     { if $as_mkdir_p; then
24324     mkdir -p $dirpart/$fdir
24325   else
24326     as_dir=$dirpart/$fdir
24327     as_dirs=
24328     while test ! -d "$as_dir"; do
24329       as_dirs="$as_dir $as_dirs"
24330       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24332          X"$as_dir" : 'X\(//\)[^/]' \| \
24333          X"$as_dir" : 'X\(//\)$' \| \
24334          X"$as_dir" : 'X\(/\)' \| \
24335          .     : '\(.\)' 2>/dev/null ||
24336 echo X"$as_dir" |
24337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24339           /^X\(\/\/\)$/{ s//\1/; q; }
24340           /^X\(\/\).*/{ s//\1/; q; }
24341           s/.*/./; q'`
24342     done
24343     test ! -n "$as_dirs" || mkdir $as_dirs
24344   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24345 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24346    { (exit 1); exit 1; }; }; }
24347
24348     # echo "creating $dirpart/$file"
24349     echo '# dummy' > "$dirpart/$file"
24350   done
24351 done
24352  ;;
24353   esac
24354 done
24355 _ACEOF
24356
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24358
24359 { (exit 0); exit 0; }
24360 _ACEOF
24361 chmod +x $CONFIG_STATUS
24362 ac_clean_files=$ac_clean_files_save
24363
24364
24365 # configure is writing to config.log, and then calls config.status.
24366 # config.status does its own redirection, appending to config.log.
24367 # Unfortunately, on DOS this fails, as config.log is still kept open
24368 # by configure, so config.status won't be able to write to it; its
24369 # output is simply discarded.  So we exec the FD to /dev/null,
24370 # effectively closing config.log, so it can be properly (re)opened and
24371 # appended to by config.status.  When coming back to configure, we
24372 # need to make the FD available again.
24373 if test "$no_create" != yes; then
24374   ac_cs_success=:
24375   ac_config_status_args=
24376   test "$silent" = yes &&
24377     ac_config_status_args="$ac_config_status_args --quiet"
24378   exec 5>/dev/null
24379   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24380   exec 5>>config.log
24381   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24382   # would make configure fail if this is the last instruction.
24383   $ac_cs_success || { (exit 1); exit 1; }
24384 fi
24385