OSDN Git Service

2004-09-12 Michael Koch <konqueror@gmx.de>
[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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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   --disable-dependency-tracking  speeds up one-time build
1033   --enable-dependency-tracking   do not reject slow dependency extractors
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-ltdl-install   install libltdl
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051
1052 Some influential environment variables:
1053   CC          C compiler command
1054   CFLAGS      C compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CPP         C preprocessor
1060   CXX         C++ compiler command
1061   CXXFLAGS    C++ compiler flags
1062   CXXCPP      C++ preprocessor
1063   F77         Fortran 77 compiler command
1064   FFLAGS      Fortran 77 compiler flags
1065
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1068
1069 Report bugs to <bug-libtool@gnu.org>.
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074   # If there are subdirs, report their specific --help.
1075   ac_popdir=`pwd`
1076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077     test -d $ac_dir || continue
1078     ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082   # A "../" for each directory in $ac_dir_suffix.
1083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085   ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089   .)  # No --srcdir option.  We are building in place.
1090     ac_srcdir=.
1091     if test -z "$ac_top_builddir"; then
1092        ac_top_srcdir=.
1093     else
1094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095     fi ;;
1096   [\\/]* | ?:[\\/]* )  # Absolute path.
1097     ac_srcdir=$srcdir$ac_dir_suffix;
1098     ac_top_srcdir=$srcdir ;;
1099   *) # Relative path.
1100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109   case "$ac_dir" in
1110   .) ac_abs_builddir=`pwd`;;
1111   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113   esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118   case ${ac_top_builddir}. in
1119   .) ac_abs_top_builddir=$ac_abs_builddir;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127   case $ac_srcdir in
1128   .) ac_abs_srcdir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136   case $ac_top_srcdir in
1137   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140   esac;;
1141 esac
1142
1143     cd $ac_dir
1144     # Check for guested configure; otherwise get Cygnus style configure.
1145     if test -f $ac_srcdir/configure.gnu; then
1146       echo
1147       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148     elif test -f $ac_srcdir/configure; then
1149       echo
1150       $SHELL $ac_srcdir/configure  --help=recursive
1151     elif test -f $ac_srcdir/configure.ac ||
1152            test -f $ac_srcdir/configure.in; then
1153       echo
1154       $ac_configure --help
1155     else
1156       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157     fi
1158     cd "$ac_popdir"
1159   done
1160 fi
1161
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164   cat <<\_ACEOF
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1167
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172   exit 0
1173 fi
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1178
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59.  Invocation command line was
1181
1182   $ $0 $@
1183
1184 _ACEOF
1185 {
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1190
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1199
1200 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1201 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1204 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1205 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1206 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1207
1208 _ASUNAME
1209
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1212 do
1213   IFS=$as_save_IFS
1214   test -z "$as_dir" && as_dir=.
1215   echo "PATH: $as_dir"
1216 done
1217
1218 } >&5
1219
1220 cat >&5 <<_ACEOF
1221
1222
1223 ## ----------- ##
1224 ## Core tests. ##
1225 ## ----------- ##
1226
1227 _ACEOF
1228
1229
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1241 do
1242   for ac_arg
1243   do
1244     case $ac_arg in
1245     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247     | -silent | --silent | --silen | --sile | --sil)
1248       continue ;;
1249     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251     esac
1252     case $ac_pass in
1253     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254     2)
1255       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256       if test $ac_must_keep_next = true; then
1257         ac_must_keep_next=false # Got value, back to normal.
1258       else
1259         case $ac_arg in
1260           *=* | --config-cache | -C | -disable-* | --disable-* \
1261           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263           | -with-* | --with-* | -without-* | --without-* | --x)
1264             case "$ac_configure_args0 " in
1265               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266             esac
1267             ;;
1268           -* ) ac_must_keep_next=true ;;
1269         esac
1270       fi
1271       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272       # Get rid of the leading space.
1273       ac_sep=" "
1274       ;;
1275     esac
1276   done
1277 done
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log.  We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287   # Save into config.log some information that might help in debugging.
1288   {
1289     echo
1290
1291     cat <<\_ASBOX
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1295 _ASBOX
1296     echo
1297     # The following way of writing the cache mishandles newlines in values,
1298 {
1299   (set) 2>&1 |
1300     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301     *ac_space=\ *)
1302       sed -n \
1303         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305       ;;
1306     *)
1307       sed -n \
1308         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309       ;;
1310     esac;
1311 }
1312     echo
1313
1314     cat <<\_ASBOX
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1318 _ASBOX
1319     echo
1320     for ac_var in $ac_subst_vars
1321     do
1322       eval ac_val=$`echo $ac_var`
1323       echo "$ac_var='"'"'$ac_val'"'"'"
1324     done | sort
1325     echo
1326
1327     if test -n "$ac_subst_files"; then
1328       cat <<\_ASBOX
1329 ## ------------- ##
1330 ## Output files. ##
1331 ## ------------- ##
1332 _ASBOX
1333       echo
1334       for ac_var in $ac_subst_files
1335       do
1336         eval ac_val=$`echo $ac_var`
1337         echo "$ac_var='"'"'$ac_val'"'"'"
1338       done | sort
1339       echo
1340     fi
1341
1342     if test -s confdefs.h; then
1343       cat <<\_ASBOX
1344 ## ----------- ##
1345 ## confdefs.h. ##
1346 ## ----------- ##
1347 _ASBOX
1348       echo
1349       sed "/^$/d" confdefs.h | sort
1350       echo
1351     fi
1352     test "$ac_signal" != 0 &&
1353       echo "$as_me: caught signal $ac_signal"
1354     echo "$as_me: exit $exit_status"
1355   } >&5
1356   rm -f core *.core &&
1357   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358     exit $exit_status
1359      ' 0
1360 for ac_signal in 1 2 13 15; do
1361   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1364
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1369
1370 # Predefined preprocessor variables.
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 _ACEOF
1395
1396
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400   if test "x$prefix" != xNONE; then
1401     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402   else
1403     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404   fi
1405 fi
1406 for ac_site_file in $CONFIG_SITE; do
1407   if test -r "$ac_site_file"; then
1408     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410     sed 's/^/| /' "$ac_site_file" >&5
1411     . "$ac_site_file"
1412   fi
1413 done
1414
1415 if test -r "$cache_file"; then
1416   # Some versions of bash will fail to source /dev/null (special
1417   # files actually), so we avoid doing that.
1418   if test -f "$cache_file"; then
1419     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421     case $cache_file in
1422       [\\/]* | ?:[\\/]* ) . $cache_file;;
1423       *)                      . ./$cache_file;;
1424     esac
1425   fi
1426 else
1427   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429   >$cache_file
1430 fi
1431
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438   eval ac_new_set=\$ac_env_${ac_var}_set
1439   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440   eval ac_new_val="\$ac_env_${ac_var}_value"
1441   case $ac_old_set,$ac_new_set in
1442     set,)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,set)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,);;
1451     *)
1452       if test "x$ac_old_val" != "x$ac_new_val"; then
1453         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1456 echo "$as_me:   former value:  $ac_old_val" >&2;}
1457         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1458 echo "$as_me:   current value: $ac_new_val" >&2;}
1459         ac_cache_corrupted=:
1460       fi;;
1461   esac
1462   # Pass precious variables to config.status.
1463   if test "$ac_new_set" = set; then
1464     case $ac_new_val in
1465     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467     *) ac_arg=$ac_var=$ac_new_val ;;
1468     esac
1469     case " $ac_configure_args " in
1470       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1471       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472     esac
1473   fi
1474 done
1475 if $ac_cache_corrupted; then
1476   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480    { (exit 1); exit 1; }; }
1481 fi
1482
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516           ac_config_files="$ac_config_files config.h:config-h.in"
1517
1518
1519
1520 ## ------------------------------- ##
1521 ## Libltdl specific configuration. ##
1522 ## ------------------------------- ##
1523
1524 ac_aux_dir=
1525 for ac_dir in . $srcdir/.; do
1526   if test -f $ac_dir/install-sh; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/install-sh -c"
1529     break
1530   elif test -f $ac_dir/install.sh; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/install.sh -c"
1533     break
1534   elif test -f $ac_dir/shtool; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/shtool install -c"
1537     break
1538   fi
1539 done
1540 if test -z "$ac_aux_dir"; then
1541   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1542 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1543    { (exit 1); exit 1; }; }
1544 fi
1545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1547 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1548
1549
1550 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1551   if test -f ${srcdir}/ltmain.sh; then
1552     # if libltdl is libtoolized, it is assumed to be stand-alone and
1553     # installed unless the command line overrides it (tested above)
1554     enable_ltdl_install=yes
1555   else
1556     { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1557 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1558     { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1559 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1560     { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1561 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1562    { (exit 1); exit 1; }; }
1563   fi
1564 fi
1565
1566
1567 ## ------------------------ ##
1568 ## Automake Initialisation. ##
1569 ## ------------------------ ##
1570 am__api_version="1.9"
1571 # Find a good install program.  We prefer a C program (faster),
1572 # so one script is as good as another.  But avoid the broken or
1573 # incompatible versions:
1574 # SysV /etc/install, /usr/sbin/install
1575 # SunOS /usr/etc/install
1576 # IRIX /sbin/install
1577 # AIX /bin/install
1578 # AmigaOS /C/install, which installs bootblocks on floppy discs
1579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1582 # OS/2's system install, which has a completely different semantic
1583 # ./install, which can be erroneously created by make from ./install.sh.
1584 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1585 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1586 if test -z "$INSTALL"; then
1587 if test "${ac_cv_path_install+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593   IFS=$as_save_IFS
1594   test -z "$as_dir" && as_dir=.
1595   # Account for people who put trailing slashes in PATH elements.
1596 case $as_dir/ in
1597   ./ | .// | /cC/* | \
1598   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1599   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1600   /usr/ucb/* ) ;;
1601   *)
1602     # OSF1 and SCO ODT 3.0 have their own names for install.
1603     # Don't use installbsd from OSF since it installs stuff as root
1604     # by default.
1605     for ac_prog in ginstall scoinst install; do
1606       for ac_exec_ext in '' $ac_executable_extensions; do
1607         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1608           if test $ac_prog = install &&
1609             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610             # AIX install.  It has an incompatible calling convention.
1611             :
1612           elif test $ac_prog = install &&
1613             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614             # program-specific install script used by HP pwplus--don't use.
1615             :
1616           else
1617             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1618             break 3
1619           fi
1620         fi
1621       done
1622     done
1623     ;;
1624 esac
1625 done
1626
1627
1628 fi
1629   if test "${ac_cv_path_install+set}" = set; then
1630     INSTALL=$ac_cv_path_install
1631   else
1632     # As a last resort, use the slow shell script.  We don't cache a
1633     # path for INSTALL within a source directory, because that will
1634     # break other packages using the cache if that directory is
1635     # removed, or if the path is relative.
1636     INSTALL=$ac_install_sh
1637   fi
1638 fi
1639 echo "$as_me:$LINENO: result: $INSTALL" >&5
1640 echo "${ECHO_T}$INSTALL" >&6
1641
1642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1643 # It thinks the first close brace ends the variable substitution.
1644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645
1646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1647
1648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1649
1650 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1651 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1652 # Just in case
1653 sleep 1
1654 echo timestamp > conftest.file
1655 # Do `set' in a subshell so we don't clobber the current shell's
1656 # arguments.  Must try -L first in case configure is actually a
1657 # symlink; some systems play weird games with the mod time of symlinks
1658 # (eg FreeBSD returns the mod time of the symlink's containing
1659 # directory).
1660 if (
1661    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1662    if test "$*" = "X"; then
1663       # -L didn't work.
1664       set X `ls -t $srcdir/configure conftest.file`
1665    fi
1666    rm -f conftest.file
1667    if test "$*" != "X $srcdir/configure conftest.file" \
1668       && test "$*" != "X conftest.file $srcdir/configure"; then
1669
1670       # If neither matched, then we have a broken ls.  This can happen
1671       # if, for instance, CONFIG_SHELL is bash and it inherits a
1672       # broken ls alias from the environment.  This has actually
1673       # happened.  Such a system could not be considered "sane".
1674       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1675 alias in your environment" >&5
1676 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1677 alias in your environment" >&2;}
1678    { (exit 1); exit 1; }; }
1679    fi
1680
1681    test "$2" = conftest.file
1682    )
1683 then
1684    # Ok.
1685    :
1686 else
1687    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1688 Check your system clock" >&5
1689 echo "$as_me: error: newly created file is older than distributed files!
1690 Check your system clock" >&2;}
1691    { (exit 1); exit 1; }; }
1692 fi
1693 echo "$as_me:$LINENO: result: yes" >&5
1694 echo "${ECHO_T}yes" >&6
1695 test "$program_prefix" != NONE &&
1696   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1697 # Use a double $ so make ignores it.
1698 test "$program_suffix" != NONE &&
1699   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1700 # Double any \ or $.  echo might interpret backslashes.
1701 # By default was `s,x,x', remove it if useless.
1702 cat <<\_ACEOF >conftest.sed
1703 s/[\\$]/&&/g;s/;s,x,x,$//
1704 _ACEOF
1705 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1706 rm conftest.sed
1707
1708 # expand $ac_aux_dir to an absolute path
1709 am_aux_dir=`cd $ac_aux_dir && pwd`
1710
1711 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1712 # Use eval to expand $SHELL
1713 if eval "$MISSING --run true"; then
1714   am_missing_run="$MISSING --run "
1715 else
1716   am_missing_run=
1717   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1719 fi
1720
1721 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1722   # We used to keeping the `.' as first argument, in order to
1723   # allow $(mkdir_p) to be used without argument.  As in
1724   #   $(mkdir_p) $(somedir)
1725   # where $(somedir) is conditionally defined.  However this is wrong
1726   # for two reasons:
1727   #  1. if the package is installed by a user who cannot write `.'
1728   #     make install will fail,
1729   #  2. the above comment should most certainly read
1730   #     $(mkdir_p) $(DESTDIR)$(somedir)
1731   #     so it does not work when $(somedir) is undefined and
1732   #     $(DESTDIR) is not.
1733   #  To support the latter case, we have to write
1734   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1735   #  so the `.' trick is pointless.
1736   mkdir_p='mkdir -p --'
1737 else
1738   # On NextStep and OpenStep, the `mkdir' command does not
1739   # recognize any option.  It will interpret all options as
1740   # directories to create, and then abort because `.' already
1741   # exists.
1742   for d in ./-p ./--version;
1743   do
1744     test -d $d && rmdir $d
1745   done
1746   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1747   if test -f "$ac_aux_dir/mkinstalldirs"; then
1748     mkdir_p='$(mkinstalldirs)'
1749   else
1750     mkdir_p='$(install_sh) -d'
1751   fi
1752 fi
1753
1754 for ac_prog in gawk mawk nawk awk
1755 do
1756   # Extract the first word of "$ac_prog", so it can be a program name with args.
1757 set dummy $ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_AWK+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$AWK"; then
1764   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773     ac_cv_prog_AWK="$ac_prog"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 AWK=$ac_cv_prog_AWK
1783 if test -n "$AWK"; then
1784   echo "$as_me:$LINENO: result: $AWK" >&5
1785 echo "${ECHO_T}$AWK" >&6
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791   test -n "$AWK" && break
1792 done
1793
1794 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1795 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1796 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1797 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   cat >conftest.make <<\_ACEOF
1801 all:
1802         @echo 'ac_maketemp="$(MAKE)"'
1803 _ACEOF
1804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1805 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1806 if test -n "$ac_maketemp"; then
1807   eval ac_cv_prog_make_${ac_make}_set=yes
1808 else
1809   eval ac_cv_prog_make_${ac_make}_set=no
1810 fi
1811 rm -f conftest.make
1812 fi
1813 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1814   echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816   SET_MAKE=
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820   SET_MAKE="MAKE=${MAKE-make}"
1821 fi
1822
1823 rm -rf .tst 2>/dev/null
1824 mkdir .tst 2>/dev/null
1825 if test -d .tst; then
1826   am__leading_dot=.
1827 else
1828   am__leading_dot=_
1829 fi
1830 rmdir .tst 2>/dev/null
1831
1832 # test to see if srcdir already configured
1833 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1834    test -f $srcdir/config.status; then
1835   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1836 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1837    { (exit 1); exit 1; }; }
1838 fi
1839
1840 # test whether we have cygpath
1841 if test -z "$CYGPATH_W"; then
1842   if (cygpath --version) >/dev/null 2>/dev/null; then
1843     CYGPATH_W='cygpath -w'
1844   else
1845     CYGPATH_W=echo
1846   fi
1847 fi
1848
1849
1850 # Define the identity of the package.
1851  PACKAGE='libltdl'
1852  VERSION='1.2'
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE "$PACKAGE"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define VERSION "$VERSION"
1862 _ACEOF
1863
1864 # Some tools Automake needs.
1865
1866 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1867
1868
1869 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1870
1871
1872 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1873
1874
1875 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1876
1877
1878 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1879
1880 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881
1882 # Installed binaries are usually stripped using `strip' when the user
1883 # run `make install-strip'.  However `strip' might not be the right
1884 # tool to use in cross-compilation environments, therefore Automake
1885 # will honor the `STRIP' environment variable to overrule this program.
1886 if test "$cross_compiling" != no; then
1887   if test -n "$ac_tool_prefix"; then
1888   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1889 set dummy ${ac_tool_prefix}strip; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_STRIP+set}" = set; then
1893   echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895   if test -n "$STRIP"; then
1896   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901   IFS=$as_save_IFS
1902   test -z "$as_dir" && as_dir=.
1903   for ac_exec_ext in '' $ac_executable_extensions; do
1904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907     break 2
1908   fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 STRIP=$ac_cv_prog_STRIP
1915 if test -n "$STRIP"; then
1916   echo "$as_me:$LINENO: result: $STRIP" >&5
1917 echo "${ECHO_T}$STRIP" >&6
1918 else
1919   echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 fi
1924 if test -z "$ac_cv_prog_STRIP"; then
1925   ac_ct_STRIP=$STRIP
1926   # Extract the first word of "strip", so it can be a program name with args.
1927 set dummy strip; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1931   echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933   if test -n "$ac_ct_STRIP"; then
1934   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1935 else
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939   IFS=$as_save_IFS
1940   test -z "$as_dir" && as_dir=.
1941   for ac_exec_ext in '' $ac_executable_extensions; do
1942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943     ac_cv_prog_ac_ct_STRIP="strip"
1944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945     break 2
1946   fi
1947 done
1948 done
1949
1950   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1951 fi
1952 fi
1953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1954 if test -n "$ac_ct_STRIP"; then
1955   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1956 echo "${ECHO_T}$ac_ct_STRIP" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962   STRIP=$ac_ct_STRIP
1963 else
1964   STRIP="$ac_cv_prog_STRIP"
1965 fi
1966
1967 fi
1968 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1969
1970 # We need awk for the "check" target.  The system "awk" is bad on
1971 # some platforms.
1972 # Always define AMTAR for backward compatibility.
1973
1974 AMTAR=${AMTAR-"${am_missing_run}tar"}
1975
1976 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1977
1978
1979
1980
1981
1982 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1983 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1984     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986   enableval="$enable_maintainer_mode"
1987   USE_MAINTAINER_MODE=$enableval
1988 else
1989   USE_MAINTAINER_MODE=no
1990 fi;
1991   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1992 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1993
1994
1995 if test $USE_MAINTAINER_MODE = yes; then
1996   MAINTAINER_MODE_TRUE=
1997   MAINTAINER_MODE_FALSE='#'
1998 else
1999   MAINTAINER_MODE_TRUE='#'
2000   MAINTAINER_MODE_FALSE=
2001 fi
2002
2003   MAINT=$MAINTAINER_MODE_TRUE
2004
2005
2006
2007
2008 ## ------------------ ##
2009 ## C compiler checks. ##
2010 ## ------------------ ##
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then
2017   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   if test -n "$CC"; then
2025   ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030   IFS=$as_save_IFS
2031   test -z "$as_dir" && as_dir=.
2032   for ac_exec_ext in '' $ac_executable_extensions; do
2033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036     break 2
2037   fi
2038 done
2039 done
2040
2041 fi
2042 fi
2043 CC=$ac_cv_prog_CC
2044 if test -n "$CC"; then
2045   echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2047 else
2048   echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2050 fi
2051
2052 fi
2053 if test -z "$ac_cv_prog_CC"; then
2054   ac_ct_CC=$CC
2055   # Extract the first word of "gcc", so it can be a program name with args.
2056 set dummy gcc; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test -n "$ac_ct_CC"; then
2063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072     ac_cv_prog_ac_ct_CC="gcc"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078
2079 fi
2080 fi
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6
2085 else
2086   echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2088 fi
2089
2090   CC=$ac_ct_CC
2091 else
2092   CC="$ac_cv_prog_CC"
2093 fi
2094
2095 if test -z "$CC"; then
2096   if test -n "$ac_tool_prefix"; then
2097   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}cc; ac_word=$2
2099 echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test -n "$CC"; then
2105   ac_cv_prog_CC="$CC" # Let the user override the test.
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   for ac_exec_ext in '' $ac_executable_extensions; do
2113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114     ac_cv_prog_CC="${ac_tool_prefix}cc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120
2121 fi
2122 fi
2123 CC=$ac_cv_prog_CC
2124 if test -n "$CC"; then
2125   echo "$as_me:$LINENO: result: $CC" >&5
2126 echo "${ECHO_T}$CC" >&6
2127 else
2128   echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6
2130 fi
2131
2132 fi
2133 if test -z "$ac_cv_prog_CC"; then
2134   ac_ct_CC=$CC
2135   # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$ac_ct_CC"; then
2143   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152     ac_cv_prog_ac_ct_CC="cc"
2153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158
2159 fi
2160 fi
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6
2165 else
2166   echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6
2168 fi
2169
2170   CC=$ac_ct_CC
2171 else
2172   CC="$ac_cv_prog_CC"
2173 fi
2174
2175 fi
2176 if test -z "$CC"; then
2177   # Extract the first word of "cc", so it can be a program name with args.
2178 set dummy cc; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test -n "$CC"; then
2185   ac_cv_prog_CC="$CC" # Let the user override the test.
2186 else
2187   ac_prog_rejected=no
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193   for ac_exec_ext in '' $ac_executable_extensions; do
2194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2196        ac_prog_rejected=yes
2197        continue
2198      fi
2199     ac_cv_prog_CC="cc"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 if test $ac_prog_rejected = yes; then
2207   # We found a bogon in the path, so make sure we never use it.
2208   set dummy $ac_cv_prog_CC
2209   shift
2210   if test $# != 0; then
2211     # We chose a different compiler from the bogus one.
2212     # However, it has the same basename, so the bogon will be chosen
2213     # first if we set CC to just the basename; use the full file name.
2214     shift
2215     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216   fi
2217 fi
2218 fi
2219 fi
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222   echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6
2224 else
2225   echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229 fi
2230 if test -z "$CC"; then
2231   if test -n "$ac_tool_prefix"; then
2232   for ac_prog in cl
2233   do
2234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236 echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test -n "$CC"; then
2242   ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257
2258 fi
2259 fi
2260 CC=$ac_cv_prog_CC
2261 if test -n "$CC"; then
2262   echo "$as_me:$LINENO: result: $CC" >&5
2263 echo "${ECHO_T}$CC" >&6
2264 else
2265   echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2267 fi
2268
2269     test -n "$CC" && break
2270   done
2271 fi
2272 if test -z "$CC"; then
2273   ac_ct_CC=$CC
2274   for ac_prog in cl
2275 do
2276   # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   if test -n "$ac_ct_CC"; then
2284   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293     ac_cv_prog_ac_ct_CC="$ac_prog"
2294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295     break 2
2296   fi
2297 done
2298 done
2299
2300 fi
2301 fi
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6
2306 else
2307   echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2309 fi
2310
2311   test -n "$ac_ct_CC" && break
2312 done
2313
2314   CC=$ac_ct_CC
2315 fi
2316
2317 fi
2318
2319
2320 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: no acceptable C compiler found in \$PATH
2323 See \`config.log' for more details." >&2;}
2324    { (exit 1); exit 1; }; }
2325
2326 # Provide some information about the compiler.
2327 echo "$as_me:$LINENO:" \
2328      "checking for C compiler version" >&5
2329 ac_compiler=`set X $ac_compile; echo $2`
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2331   (eval $ac_compiler --version </dev/null >&5) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2336   (eval $ac_compiler -v </dev/null >&5) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }
2340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2341   (eval $ac_compiler -V </dev/null >&5) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }
2345
2346 cat >conftest.$ac_ext <<_ACEOF
2347 /* confdefs.h.  */
2348 _ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h.  */
2352
2353 int
2354 main ()
2355 {
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 ac_clean_files_save=$ac_clean_files
2362 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2363 # Try to create an executable without -o first, disregard a.out.
2364 # It will help us diagnose broken compilers, and finding out an intuition
2365 # of exeext.
2366 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2367 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2368 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2369 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2370   (eval $ac_link_default) 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }; then
2374   # Find the output, starting from the most likely.  This scheme is
2375 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2376 # resort.
2377
2378 # Be careful to initialize this variable, since it used to be cached.
2379 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2380 ac_cv_exeext=
2381 # b.out is created by i960 compilers.
2382 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2383 do
2384   test -f "$ac_file" || continue
2385   case $ac_file in
2386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2387         ;;
2388     conftest.$ac_ext )
2389         # This is the source file.
2390         ;;
2391     [ab].out )
2392         # We found the default executable, but exeext='' is most
2393         # certainly right.
2394         break;;
2395     *.* )
2396         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397         # FIXME: I believe we export ac_cv_exeext for Libtool,
2398         # but it would be cool to find out if it's true.  Does anybody
2399         # maintain Libtool? --akim.
2400         export ac_cv_exeext
2401         break;;
2402     * )
2403         break;;
2404   esac
2405 done
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&2;}
2414    { (exit 77); exit 77; }; }
2415 fi
2416
2417 ac_exeext=$ac_cv_exeext
2418 echo "$as_me:$LINENO: result: $ac_file" >&5
2419 echo "${ECHO_T}$ac_file" >&6
2420
2421 # Check the compiler produces executables we can run.  If not, either
2422 # the compiler is broken, or we cross compile.
2423 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2426 # If not cross compiling, check that we can run a simple program.
2427 if test "$cross_compiling" != yes; then
2428   if { ac_try='./$ac_file'
2429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430   (eval $ac_try) 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }; }; then
2434     cross_compiling=no
2435   else
2436     if test "$cross_compiling" = maybe; then
2437         cross_compiling=yes
2438     else
2439         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: cannot run C compiled programs.
2443 If you meant to cross compile, use \`--host'.
2444 See \`config.log' for more details." >&2;}
2445    { (exit 1); exit 1; }; }
2446     fi
2447   fi
2448 fi
2449 echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2451
2452 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2453 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2457 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2458 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2459 echo "${ECHO_T}$cross_compiling" >&6
2460
2461 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2462 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2464   (eval $ac_link) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; then
2468   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2469 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2470 # work properly (i.e., refer to `conftest.exe'), while it won't with
2471 # `rm'.
2472 for ac_file in conftest.exe conftest conftest.*; do
2473   test -f "$ac_file" || continue
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2476     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477           export ac_cv_exeext
2478           break;;
2479     * ) break;;
2480   esac
2481 done
2482 else
2483   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2486 See \`config.log' for more details." >&2;}
2487    { (exit 1); exit 1; }; }
2488 fi
2489
2490 rm -f conftest$ac_cv_exeext
2491 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2492 echo "${ECHO_T}$ac_cv_exeext" >&6
2493
2494 rm -f conftest.$ac_ext
2495 EXEEXT=$ac_cv_exeext
2496 ac_exeext=$EXEEXT
2497 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2498 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2499 if test "${ac_cv_objext+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.o conftest.obj
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519   (eval $ac_compile) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; then
2523   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2524   case $ac_file in
2525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2526     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2527        break;;
2528   esac
2529 done
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&2;}
2538    { (exit 1); exit 1; }; }
2539 fi
2540
2541 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2542 fi
2543 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2544 echo "${ECHO_T}$ac_cv_objext" >&6
2545 OBJEXT=$ac_cv_objext
2546 ac_objext=$OBJEXT
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2549 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562 #ifndef __GNUC__
2563        choke me
2564 #endif
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_compiler_gnu=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2604 GCC=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CFLAGS=${CFLAGS+set}
2606 ac_save_CFLAGS=$CFLAGS
2607 CFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2609 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cc_g+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h.  */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h.  */
2619
2620 int
2621 main ()
2622 {
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630   (eval $ac_compile) 2>conftest.er1
2631   ac_status=$?
2632   grep -v '^ *+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_prog_cc_g=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ac_cv_prog_cc_g=no
2655 fi
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2660 if test "$ac_test_CFLAGS" = set; then
2661   CFLAGS=$ac_save_CFLAGS
2662 elif test $ac_cv_prog_cc_g = yes; then
2663   if test "$GCC" = yes; then
2664     CFLAGS="-g -O2"
2665   else
2666     CFLAGS="-g"
2667   fi
2668 else
2669   if test "$GCC" = yes; then
2670     CFLAGS="-O2"
2671   else
2672     CFLAGS=
2673   fi
2674 fi
2675 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2676 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2677 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   ac_cv_prog_cc_stdc=no
2681 ac_save_CC=$CC
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 #include <stdarg.h>
2689 #include <stdio.h>
2690 #include <sys/types.h>
2691 #include <sys/stat.h>
2692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2693 struct buf { int x; };
2694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2695 static char *e (p, i)
2696      char **p;
2697      int i;
2698 {
2699   return p[i];
2700 }
2701 static char *f (char * (*g) (char **, int), char **p, ...)
2702 {
2703   char *s;
2704   va_list v;
2705   va_start (v,p);
2706   s = g (p, va_arg (v,int));
2707   va_end (v);
2708   return s;
2709 }
2710
2711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2712    function prototypes and stuff, but not '\xHH' hex character constants.
2713    These don't provoke an error unfortunately, instead are silently treated
2714    as 'x'.  The following induces an error, until -std1 is added to get
2715    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2716    array size at least.  It's necessary to write '\x00'==0 to get something
2717    that's true only with -std1.  */
2718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2719
2720 int test (int i, double x);
2721 struct s1 {int (*f) (int a);};
2722 struct s2 {int (*f) (double a);};
2723 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2724 int argc;
2725 char **argv;
2726 int
2727 main ()
2728 {
2729 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 # Don't try gcc -ansi; that turns off useful extensions and
2735 # breaks some systems' header files.
2736 # AIX                   -qlanglvl=ansi
2737 # Ultrix and OSF/1      -std1
2738 # HP-UX 10.20 and later -Ae
2739 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2740 # SVR4                  -Xc -D__EXTENSIONS__
2741 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2742 do
2743   CC="$ac_save_CC $ac_arg"
2744   rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   ac_cv_prog_cc_stdc=$ac_arg
2766 break
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 fi
2772 rm -f conftest.err conftest.$ac_objext
2773 done
2774 rm -f conftest.$ac_ext conftest.$ac_objext
2775 CC=$ac_save_CC
2776
2777 fi
2778
2779 case "x$ac_cv_prog_cc_stdc" in
2780   x|xno)
2781     echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6 ;;
2783   *)
2784     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2786     CC="$CC $ac_cv_prog_cc_stdc" ;;
2787 esac
2788
2789 # Some people use a C++ compiler to compile C.  Since we use `exit',
2790 # in C++ we need to declare it.  In case someone uses the same compiler
2791 # for both compiling C and C++ we need to have the C++ compiler decide
2792 # the declaration of exit, since it's the most demanding environment.
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #ifndef __cplusplus
2795   choke me
2796 #endif
2797 _ACEOF
2798 rm -f conftest.$ac_objext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800   (eval $ac_compile) 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   for ac_declaration in \
2820    '' \
2821    'extern "C" void std::exit (int) throw (); using std::exit;' \
2822    'extern "C" void std::exit (int); using std::exit;' \
2823    'extern "C" void exit (int) throw ();' \
2824    'extern "C" void exit (int);' \
2825    'void exit (int);'
2826 do
2827   cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833 $ac_declaration
2834 #include <stdlib.h>
2835 int
2836 main ()
2837 {
2838 exit (42);
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845   (eval $ac_compile) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   :
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 continue
2870 fi
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 $ac_declaration
2879 int
2880 main ()
2881 {
2882 exit (42);
2883   ;
2884   return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889   (eval $ac_compile) 2>conftest.er1
2890   ac_status=$?
2891   grep -v '^ *+' conftest.er1 >conftest.err
2892   rm -f conftest.er1
2893   cat conftest.err >&5
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); } &&
2896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2902          { ac_try='test -s conftest.$ac_objext'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; }; then
2908   break
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 fi
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 done
2916 rm -f conftest*
2917 if test -n "$ac_declaration"; then
2918   echo '#ifdef __cplusplus' >>confdefs.h
2919   echo $ac_declaration      >>confdefs.h
2920   echo '#endif'             >>confdefs.h
2921 fi
2922
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 fi
2928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 DEPDIR="${am__leading_dot}deps"
2935
2936           ac_config_commands="$ac_config_commands depfiles"
2937
2938
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2941 am__doit:
2942         @echo done
2943 .PHONY: am__doit
2944 END
2945 # If we don't find an include directive, just comment out the code.
2946 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2948 am__include="#"
2949 am__quote=
2950 _am_result=none
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # We grep out `Entering directory' and `Leaving directory'
2954 # messages which can occur if `w' ends up in MAKEFLAGS.
2955 # In particular we don't look at `^make:' because GNU make might
2956 # be invoked under some other name (usually "gmake"), in which
2957 # case it prints its new name instead of `make'.
2958 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2959    am__include=include
2960    am__quote=
2961    _am_result=GNU
2962 fi
2963 # Now try BSD make style include.
2964 if test "$am__include" = "#"; then
2965    echo '.include "confinc"' > confmf
2966    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967       am__include=.include
2968       am__quote="\""
2969       _am_result=BSD
2970    fi
2971 fi
2972
2973
2974 echo "$as_me:$LINENO: result: $_am_result" >&5
2975 echo "${ECHO_T}$_am_result" >&6
2976 rm -f confinc confmf
2977
2978 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then
2980   enableval="$enable_dependency_tracking"
2981
2982 fi;
2983 if test "x$enable_dependency_tracking" != xno; then
2984   am_depcomp="$ac_aux_dir/depcomp"
2985   AMDEPBACKSLASH='\'
2986 fi
2987
2988
2989 if test "x$enable_dependency_tracking" != xno; then
2990   AMDEP_TRUE=
2991   AMDEP_FALSE='#'
2992 else
2993   AMDEP_TRUE='#'
2994   AMDEP_FALSE=
2995 fi
2996
2997
2998
2999
3000 depcc="$CC"   am_compiler_list=
3001
3002 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3003 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3004 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3008   # We make a subdir and do the tests there.  Otherwise we can end up
3009   # making bogus files that we don't know about and never remove.  For
3010   # instance it was reported that on HP-UX the gcc test will end up
3011   # making a dummy file named `D' -- because `-MD' means `put the output
3012   # in D'.
3013   mkdir conftest.dir
3014   # Copy depcomp to subdir because otherwise we won't find it if we're
3015   # using a relative directory.
3016   cp "$am_depcomp" conftest.dir
3017   cd conftest.dir
3018   # We will build objects and dependencies in a subdirectory because
3019   # it helps to detect inapplicable dependency modes.  For instance
3020   # both Tru64's cc and ICC support -MD to output dependencies as a
3021   # side effect of compilation, but ICC will put the dependencies in
3022   # the current directory while Tru64 will put them in the object
3023   # directory.
3024   mkdir sub
3025
3026   am_cv_CC_dependencies_compiler_type=none
3027   if test "$am_compiler_list" = ""; then
3028      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3029   fi
3030   for depmode in $am_compiler_list; do
3031     # Setup a source with many dependencies, because some compilers
3032     # like to wrap large dependency lists on column 80 (with \), and
3033     # we should not choose a depcomp mode which is confused by this.
3034     #
3035     # We need to recreate these files for each test, as the compiler may
3036     # overwrite some of them when testing with obscure command lines.
3037     # This happens at least with the AIX C compiler.
3038     : > sub/conftest.c
3039     for i in 1 2 3 4 5 6; do
3040       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3041       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3042       # Solaris 8's {/usr,}/bin/sh.
3043       touch sub/conftst$i.h
3044     done
3045     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3046
3047     case $depmode in
3048     nosideeffect)
3049       # after this tag, mechanisms are not by side-effect, so they'll
3050       # only be used when explicitly requested
3051       if test "x$enable_dependency_tracking" = xyes; then
3052         continue
3053       else
3054         break
3055       fi
3056       ;;
3057     none) break ;;
3058     esac
3059     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3060     # mode.  It turns out that the SunPro C++ compiler does not properly
3061     # handle `-M -o', and we need to detect this.
3062     if depmode=$depmode \
3063        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3064        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3065        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3066          >/dev/null 2>conftest.err &&
3067        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3068        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3069        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3070       # icc doesn't choke on unknown options, it will just issue warnings
3071       # or remarks (even with -Werror).  So we grep stderr for any message
3072       # that says an option was ignored or not supported.
3073       # When given -MP, icc 7.0 and 7.1 complain thusly:
3074       #   icc: Command line warning: ignoring option '-M'; no argument required
3075       # The diagnosis changed in icc 8.0:
3076       #   icc: Command line remark: option '-MP' not supported
3077       if (grep 'ignoring option' conftest.err ||
3078           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3079         am_cv_CC_dependencies_compiler_type=$depmode
3080         break
3081       fi
3082     fi
3083   done
3084
3085   cd ..
3086   rm -rf conftest.dir
3087 else
3088   am_cv_CC_dependencies_compiler_type=none
3089 fi
3090
3091 fi
3092 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3093 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3094 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3095
3096
3097
3098 if
3099   test "x$enable_dependency_tracking" != xno \
3100   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3101   am__fastdepCC_TRUE=
3102   am__fastdepCC_FALSE='#'
3103 else
3104   am__fastdepCC_TRUE='#'
3105   am__fastdepCC_FALSE=
3106 fi
3107
3108
3109
3110 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3111 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3112 if test "${ac_cv_c_const+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125 /* FIXME: Include the comments suggested by Paul. */
3126 #ifndef __cplusplus
3127   /* Ultrix mips cc rejects this.  */
3128   typedef int charset[2];
3129   const charset x;
3130   /* SunOS 4.1.1 cc rejects this.  */
3131   char const *const *ccp;
3132   char **p;
3133   /* NEC SVR4.0.2 mips cc rejects this.  */
3134   struct point {int x, y;};
3135   static struct point const zero = {0,0};
3136   /* AIX XL C 1.02.0.0 rejects this.
3137      It does not let you subtract one const X* pointer from another in
3138      an arm of an if-expression whose if-part is not a constant
3139      expression */
3140   const char *g = "string";
3141   ccp = &g + (g ? g-g : 0);
3142   /* HPUX 7.0 cc rejects these. */
3143   ++ccp;
3144   p = (char**) ccp;
3145   ccp = (char const *const *) p;
3146   { /* SCO 3.2v4 cc rejects this.  */
3147     char *t;
3148     char const *s = 0 ? (char *) 0 : (char const *) 0;
3149
3150     *t++ = 0;
3151   }
3152   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3153     int x[] = {25, 17};
3154     const int *foo = &x[0];
3155     ++foo;
3156   }
3157   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3158     typedef const int *iptr;
3159     iptr p = 0;
3160     ++p;
3161   }
3162   { /* AIX XL C 1.02.0.0 rejects this saying
3163        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3164     struct s { int j; const int *ap[3]; };
3165     struct s *b; b->j = 5;
3166   }
3167   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3168     const int foo = 10;
3169   }
3170 #endif
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178   (eval $ac_compile) 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } &&
3185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187   (eval $ac_try) 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; } &&
3191          { ac_try='test -s conftest.$ac_objext'
3192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193   (eval $ac_try) 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; }; then
3197   ac_cv_c_const=yes
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_cv_c_const=no
3203 fi
3204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3207 echo "${ECHO_T}$ac_cv_c_const" >&6
3208 if test $ac_cv_c_const = no; then
3209
3210 cat >>confdefs.h <<\_ACEOF
3211 #define const
3212 _ACEOF
3213
3214 fi
3215
3216 echo "$as_me:$LINENO: checking for inline" >&5
3217 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3218 if test "${ac_cv_c_inline+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   ac_cv_c_inline=no
3222 for ac_kw in inline __inline__ __inline; do
3223   cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #ifndef __cplusplus
3230 typedef int foo_t;
3231 static $ac_kw foo_t static_foo () {return 0; }
3232 $ac_kw foo_t foo () {return 0; }
3233 #endif
3234
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238   (eval $ac_compile) 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253   (eval $ac_try) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }; }; then
3257   ac_cv_c_inline=$ac_kw; break
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 done
3265
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3268 echo "${ECHO_T}$ac_cv_c_inline" >&6
3269
3270
3271 case $ac_cv_c_inline in
3272   inline | yes) ;;
3273   *)
3274     case $ac_cv_c_inline in
3275       no) ac_val=;;
3276       *) ac_val=$ac_cv_c_inline;;
3277     esac
3278     cat >>confdefs.h <<_ACEOF
3279 #ifndef __cplusplus
3280 #define inline $ac_val
3281 #endif
3282 _ACEOF
3283     ;;
3284 esac
3285
3286
3287
3288 ## ----------------------- ##
3289 ## Libtool initialisation. ##
3290 ## ----------------------- ##
3291
3292
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295   enableval="$enable_shared"
3296   p=${PACKAGE-default}
3297     case $enableval in
3298     yes) enable_shared=yes ;;
3299     no) enable_shared=no ;;
3300     *)
3301       enable_shared=no
3302       # Look at the argument we got.  We use all the common list separators.
3303       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304       for pkg in $enableval; do
3305         IFS="$lt_save_ifs"
3306         if test "X$pkg" = "X$p"; then
3307           enable_shared=yes
3308         fi
3309       done
3310       IFS="$lt_save_ifs"
3311       ;;
3312     esac
3313 else
3314   enable_shared=yes
3315 fi;
3316
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319   enableval="$enable_static"
3320   p=${PACKAGE-default}
3321     case $enableval in
3322     yes) enable_static=yes ;;
3323     no) enable_static=no ;;
3324     *)
3325      enable_static=no
3326       # Look at the argument we got.  We use all the common list separators.
3327       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328       for pkg in $enableval; do
3329         IFS="$lt_save_ifs"
3330         if test "X$pkg" = "X$p"; then
3331           enable_static=yes
3332         fi
3333       done
3334       IFS="$lt_save_ifs"
3335       ;;
3336     esac
3337 else
3338   enable_static=yes
3339 fi;
3340
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343   enableval="$enable_fast_install"
3344   p=${PACKAGE-default}
3345     case $enableval in
3346     yes) enable_fast_install=yes ;;
3347     no) enable_fast_install=no ;;
3348     *)
3349       enable_fast_install=no
3350       # Look at the argument we got.  We use all the common list separators.
3351       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352       for pkg in $enableval; do
3353         IFS="$lt_save_ifs"
3354         if test "X$pkg" = "X$p"; then
3355           enable_fast_install=yes
3356         fi
3357       done
3358       IFS="$lt_save_ifs"
3359       ;;
3360     esac
3361 else
3362   enable_fast_install=yes
3363 fi;
3364
3365 # Make sure we can run config.sub.
3366 $ac_config_sub sun4 >/dev/null 2>&1 ||
3367   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3368 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3369    { (exit 1); exit 1; }; }
3370
3371 echo "$as_me:$LINENO: checking build system type" >&5
3372 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3373 if test "${ac_cv_build+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   ac_cv_build_alias=$build_alias
3377 test -z "$ac_cv_build_alias" &&
3378   ac_cv_build_alias=`$ac_config_guess`
3379 test -z "$ac_cv_build_alias" &&
3380   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3382    { (exit 1); exit 1; }; }
3383 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3384   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3385 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3386    { (exit 1); exit 1; }; }
3387
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3390 echo "${ECHO_T}$ac_cv_build" >&6
3391 build=$ac_cv_build
3392 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3393 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3394 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3395
3396
3397 echo "$as_me:$LINENO: checking host system type" >&5
3398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3399 if test "${ac_cv_host+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   ac_cv_host_alias=$host_alias
3403 test -z "$ac_cv_host_alias" &&
3404   ac_cv_host_alias=$ac_cv_build_alias
3405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3406   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3408    { (exit 1); exit 1; }; }
3409
3410 fi
3411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3412 echo "${ECHO_T}$ac_cv_host" >&6
3413 host=$ac_cv_host
3414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3417
3418
3419 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3420 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3421 if test "${lt_cv_path_SED+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   # Loop through the user's path and test for sed and gsed.
3425 # Then use that list of sed's as ones to test for truncation.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for lt_ac_prog in sed gsed; do
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3434         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3435       fi
3436     done
3437   done
3438 done
3439 lt_ac_max=0
3440 lt_ac_count=0
3441 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3442 # along with /bin/sed that truncates output.
3443 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3444   test ! -f $lt_ac_sed && break
3445   cat /dev/null > conftest.in
3446   lt_ac_count=0
3447   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3448   # Check for GNU sed and select it if it is found.
3449   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3450     lt_cv_path_SED=$lt_ac_sed
3451     break
3452   fi
3453   while true; do
3454     cat conftest.in conftest.in >conftest.tmp
3455     mv conftest.tmp conftest.in
3456     cp conftest.in conftest.nl
3457     echo >>conftest.nl
3458     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3459     cmp -s conftest.out conftest.nl || break
3460     # 10000 chars as input seems more than enough
3461     test $lt_ac_count -gt 10 && break
3462     lt_ac_count=`expr $lt_ac_count + 1`
3463     if test $lt_ac_count -gt $lt_ac_max; then
3464       lt_ac_max=$lt_ac_count
3465       lt_cv_path_SED=$lt_ac_sed
3466     fi
3467   done
3468 done
3469 SED=$lt_cv_path_SED
3470
3471 fi
3472
3473 echo "$as_me:$LINENO: result: $SED" >&5
3474 echo "${ECHO_T}$SED" >&6
3475
3476 echo "$as_me:$LINENO: checking for egrep" >&5
3477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3478 if test "${ac_cv_prog_egrep+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3482     then ac_cv_prog_egrep='grep -E'
3483     else ac_cv_prog_egrep='egrep'
3484     fi
3485 fi
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3488  EGREP=$ac_cv_prog_egrep
3489
3490
3491
3492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3493 if test "${with_gnu_ld+set}" = set; then
3494   withval="$with_gnu_ld"
3495   test "$withval" = no || with_gnu_ld=yes
3496 else
3497   with_gnu_ld=no
3498 fi;
3499 ac_prog=ld
3500 if test "$GCC" = yes; then
3501   # Check if gcc -print-prog-name=ld gives a path.
3502   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3504   case $host in
3505   *-*-mingw*)
3506     # gcc leaves a trailing carriage return which upsets mingw
3507     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3508   *)
3509     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3510   esac
3511   case $ac_prog in
3512     # Accept absolute paths.
3513     [\\/]* | ?:[\\/]*)
3514       re_direlt='/[^/][^/]*/\.\./'
3515       # Canonicalize the path of ld
3516       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3517       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3518         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3519       done
3520       test -z "$LD" && LD="$ac_prog"
3521       ;;
3522   "")
3523     # If it fails, then pretend we aren't using GCC.
3524     ac_prog=ld
3525     ;;
3526   *)
3527     # If it is relative, then search for the first ld in PATH.
3528     with_gnu_ld=unknown
3529     ;;
3530   esac
3531 elif test "$with_gnu_ld" = yes; then
3532   echo "$as_me:$LINENO: checking for GNU ld" >&5
3533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3534 else
3535   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3537 fi
3538 if test "${lt_cv_path_LD+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   if test -z "$LD"; then
3542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3543   for ac_dir in $PATH; do
3544     IFS="$lt_save_ifs"
3545     test -z "$ac_dir" && ac_dir=.
3546     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3547       lt_cv_path_LD="$ac_dir/$ac_prog"
3548       # Check to see if the program is GNU ld.  I'd rather use --version,
3549       # but apparently some GNU ld's only accept -v.
3550       # Break only if it was the GNU/non-GNU ld that we prefer.
3551       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3552       *GNU* | *'with BFD'*)
3553         test "$with_gnu_ld" != no && break
3554         ;;
3555       *)
3556         test "$with_gnu_ld" != yes && break
3557         ;;
3558       esac
3559     fi
3560   done
3561   IFS="$lt_save_ifs"
3562 else
3563   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3564 fi
3565 fi
3566
3567 LD="$lt_cv_path_LD"
3568 if test -n "$LD"; then
3569   echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577    { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 case `"$LD" -v 2>&1 </dev/null` in
3585 *GNU* | *'with BFD'*)
3586   lt_cv_prog_gnu_ld=yes
3587   ;;
3588 *)
3589   lt_cv_prog_gnu_ld=no
3590   ;;
3591 esac
3592 fi
3593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3595 with_gnu_ld=$lt_cv_prog_gnu_ld
3596
3597
3598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3600 if test "${lt_cv_ld_reload_flag+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   lt_cv_ld_reload_flag='-r'
3604 fi
3605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3607 reload_flag=$lt_cv_ld_reload_flag
3608 case $reload_flag in
3609 "" | " "*) ;;
3610 *) reload_flag=" $reload_flag" ;;
3611 esac
3612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3613
3614 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3615 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3616 if test "${lt_cv_path_NM+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -n "$NM"; then
3620   # Let the user override the test.
3621   lt_cv_path_NM="$NM"
3622 else
3623   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3624   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3625     IFS="$lt_save_ifs"
3626     test -z "$ac_dir" && ac_dir=.
3627     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3628     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3629       # Check to see if the nm accepts a BSD-compat flag.
3630       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3631       #   nm: unknown option "B" ignored
3632       # Tru64's nm complains that /dev/null is an invalid object file
3633       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3634       */dev/null* | *'Invalid file or object type'*)
3635         lt_cv_path_NM="$tmp_nm -B"
3636         break
3637         ;;
3638       *)
3639         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3640         */dev/null*)
3641           lt_cv_path_NM="$tmp_nm -p"
3642           break
3643           ;;
3644         *)
3645           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3646           continue # so that we can try to find one that supports BSD flags
3647           ;;
3648         esac
3649       esac
3650     fi
3651   done
3652   IFS="$lt_save_ifs"
3653   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3654 fi
3655 fi
3656 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3657 echo "${ECHO_T}$lt_cv_path_NM" >&6
3658 NM="$lt_cv_path_NM"
3659
3660 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3662 LN_S=$as_ln_s
3663 if test "$LN_S" = "ln -s"; then
3664   echo "$as_me:$LINENO: result: yes" >&5
3665 echo "${ECHO_T}yes" >&6
3666 else
3667   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3668 echo "${ECHO_T}no, using $LN_S" >&6
3669 fi
3670
3671 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3672 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3673 if test "${lt_cv_deplibs_check_method+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   lt_cv_file_magic_cmd='$MAGIC_CMD'
3677 lt_cv_file_magic_test_file=
3678 lt_cv_deplibs_check_method='unknown'
3679 # Need to set the preceding variable on all platforms that support
3680 # interlibrary dependencies.
3681 # 'none' -- dependencies not supported.
3682 # `unknown' -- same as none, but documents that we really don't know.
3683 # 'pass_all' -- all dependencies passed with no checks.
3684 # 'test_compile' -- check by making test program.
3685 # 'file_magic [[regex]]' -- check by looking for files in library path
3686 # which responds to the $file_magic_cmd with a given extended regex.
3687 # If you have `file' or equivalent on your system and you're not sure
3688 # whether `pass_all' will *always* work, you probably want this one.
3689
3690 case $host_os in
3691 aix4* | aix5*)
3692   lt_cv_deplibs_check_method=pass_all
3693   ;;
3694
3695 beos*)
3696   lt_cv_deplibs_check_method=pass_all
3697   ;;
3698
3699 bsdi4*)
3700   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3701   lt_cv_file_magic_cmd='/usr/bin/file -L'
3702   lt_cv_file_magic_test_file=/shlib/libc.so
3703   ;;
3704
3705 cygwin* | mingw* | pw32*)
3706   # win32_libid is a shell function defined in ltmain.sh
3707   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3708   lt_cv_file_magic_cmd='win32_libid'
3709   ;;
3710
3711 darwin* | rhapsody*)
3712   # this will be overwritten by pass_all, but leave it in just in case
3713   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3714   lt_cv_file_magic_cmd='/usr/bin/file -L'
3715   case "$host_os" in
3716   rhapsody* | darwin1.[012])
3717     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3718     ;;
3719   *) # Darwin 1.3 on
3720     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3721     ;;
3722   esac
3723   lt_cv_deplibs_check_method=pass_all
3724   ;;
3725
3726 freebsd*)
3727   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3728     case $host_cpu in
3729     i*86 )
3730       # Not sure whether the presence of OpenBSD here was a mistake.
3731       # Let's accept both of them until this is cleared up.
3732       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3733       lt_cv_file_magic_cmd=/usr/bin/file
3734       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3735       ;;
3736     esac
3737   else
3738     lt_cv_deplibs_check_method=pass_all
3739   fi
3740   ;;
3741
3742 gnu*)
3743   lt_cv_deplibs_check_method=pass_all
3744   ;;
3745
3746 hpux10.20* | hpux11*)
3747   lt_cv_file_magic_cmd=/usr/bin/file
3748   case "$host_cpu" in
3749   ia64*)
3750     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3751     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3752     ;;
3753   hppa*64*)
3754     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]'
3755     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3756     ;;
3757   *)
3758     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3759     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3760     ;;
3761   esac
3762   ;;
3763
3764 irix5* | irix6* | nonstopux*)
3765   case $host_os in
3766   irix5* | nonstopux*)
3767     # this will be overridden with pass_all, but let us keep it just in case
3768     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3769     ;;
3770   *)
3771     case $LD in
3772     *-32|*"-32 ") libmagic=32-bit;;
3773     *-n32|*"-n32 ") libmagic=N32;;
3774     *-64|*"-64 ") libmagic=64-bit;;
3775     *) libmagic=never-match;;
3776     esac
3777     # this will be overridden with pass_all, but let us keep it just in case
3778     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3779     ;;
3780   esac
3781   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3782   lt_cv_deplibs_check_method=pass_all
3783   ;;
3784
3785 # This must be Linux ELF.
3786 linux*)
3787   case $host_cpu in
3788   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3789     lt_cv_deplibs_check_method=pass_all ;;
3790   *)
3791     # glibc up to 2.1.1 does not perform some relocations on ARM
3792     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3793   esac
3794   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3795   ;;
3796
3797 netbsd*)
3798   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3799     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3800   else
3801     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3802   fi
3803   ;;
3804
3805 newos6*)
3806   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3807   lt_cv_file_magic_cmd=/usr/bin/file
3808   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3809   ;;
3810
3811 nto-qnx)
3812   lt_cv_deplibs_check_method=unknown
3813   ;;
3814
3815 openbsd*)
3816   lt_cv_file_magic_cmd=/usr/bin/file
3817   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3818   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3819     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3820   else
3821     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3822   fi
3823   ;;
3824
3825 osf3* | osf4* | osf5*)
3826   # this will be overridden with pass_all, but let us keep it just in case
3827   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3828   lt_cv_file_magic_test_file=/shlib/libc.so
3829   lt_cv_deplibs_check_method=pass_all
3830   ;;
3831
3832 sco3.2v5*)
3833   lt_cv_deplibs_check_method=pass_all
3834   ;;
3835
3836 solaris*)
3837   lt_cv_deplibs_check_method=pass_all
3838   lt_cv_file_magic_test_file=/lib/libc.so
3839   ;;
3840
3841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3842   case $host_vendor in
3843   motorola)
3844     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]'
3845     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3846     ;;
3847   ncr)
3848     lt_cv_deplibs_check_method=pass_all
3849     ;;
3850   sequent)
3851     lt_cv_file_magic_cmd='/bin/file'
3852     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3853     ;;
3854   sni)
3855     lt_cv_file_magic_cmd='/bin/file'
3856     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3857     lt_cv_file_magic_test_file=/lib/libc.so
3858     ;;
3859   siemens)
3860     lt_cv_deplibs_check_method=pass_all
3861     ;;
3862   esac
3863   ;;
3864
3865 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3866   lt_cv_deplibs_check_method=pass_all
3867   ;;
3868 esac
3869
3870 fi
3871 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3873 file_magic_cmd=$lt_cv_file_magic_cmd
3874 deplibs_check_method=$lt_cv_deplibs_check_method
3875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3876
3877
3878
3879
3880 # If no C compiler was specified, use CC.
3881 LTCC=${LTCC-"$CC"}
3882
3883 # Allow CC to be a program name with arguments.
3884 compiler=$CC
3885
3886 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3887 if test "${enable_libtool_lock+set}" = set; then
3888   enableval="$enable_libtool_lock"
3889
3890 fi;
3891 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3892
3893 # Some flags need to be propagated to the compiler or linker for good
3894 # libtool support.
3895 case $host in
3896 ia64-*-hpux*)
3897   # Find out which ABI we are using.
3898   echo 'int i;' > conftest.$ac_ext
3899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900   (eval $ac_compile) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; then
3904     case `/usr/bin/file conftest.$ac_objext` in
3905     *ELF-32*)
3906       HPUX_IA64_MODE="32"
3907       ;;
3908     *ELF-64*)
3909       HPUX_IA64_MODE="64"
3910       ;;
3911     esac
3912   fi
3913   rm -rf conftest*
3914   ;;
3915 *-*-irix6*)
3916   # Find out which ABI we are using.
3917   echo '#line 3917 "configure"' > conftest.$ac_ext
3918   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919   (eval $ac_compile) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; then
3923    if test "$lt_cv_prog_gnu_ld" = yes; then
3924     case `/usr/bin/file conftest.$ac_objext` in
3925     *32-bit*)
3926       LD="${LD-ld} -melf32bsmip"
3927       ;;
3928     *N32*)
3929       LD="${LD-ld} -melf32bmipn32"
3930       ;;
3931     *64-bit*)
3932       LD="${LD-ld} -melf64bmip"
3933       ;;
3934     esac
3935    else
3936     case `/usr/bin/file conftest.$ac_objext` in
3937     *32-bit*)
3938       LD="${LD-ld} -32"
3939       ;;
3940     *N32*)
3941       LD="${LD-ld} -n32"
3942       ;;
3943     *64-bit*)
3944       LD="${LD-ld} -64"
3945       ;;
3946     esac
3947    fi
3948   fi
3949   rm -rf conftest*
3950   ;;
3951
3952 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3953   # Find out which ABI we are using.
3954   echo 'int i;' > conftest.$ac_ext
3955   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956   (eval $ac_compile) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }; then
3960     case "`/usr/bin/file conftest.o`" in
3961     *32-bit*)
3962       case $host in
3963         x86_64-*linux*)
3964           LD="${LD-ld} -m elf_i386"
3965           ;;
3966         ppc64-*linux*)
3967           LD="${LD-ld} -m elf32ppclinux"
3968           ;;
3969         s390x-*linux*)
3970           LD="${LD-ld} -m elf_s390"
3971           ;;
3972         sparc64-*linux*)
3973           LD="${LD-ld} -m elf32_sparc"
3974           ;;
3975       esac
3976       ;;
3977     *64-bit*)
3978       case $host in
3979         x86_64-*linux*)
3980           LD="${LD-ld} -m elf_x86_64"
3981           ;;
3982         ppc*-*linux*|powerpc*-*linux*)
3983           LD="${LD-ld} -m elf64ppc"
3984           ;;
3985         s390*-*linux*)
3986           LD="${LD-ld} -m elf64_s390"
3987           ;;
3988         sparc*-*linux*)
3989           LD="${LD-ld} -m elf64_sparc"
3990           ;;
3991       esac
3992       ;;
3993     esac
3994   fi
3995   rm -rf conftest*
3996   ;;
3997
3998 *-*-sco3.2v5*)
3999   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4000   SAVE_CFLAGS="$CFLAGS"
4001   CFLAGS="$CFLAGS -belf"
4002   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4003 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4004 if test "${lt_cv_cc_needs_belf+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013      cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030   (eval $ac_link) 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; } &&
4043          { ac_try='test -s conftest$ac_exeext'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   lt_cv_cc_needs_belf=yes
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 lt_cv_cc_needs_belf=no
4055 fi
4056 rm -f conftest.err conftest.$ac_objext \
4057       conftest$ac_exeext conftest.$ac_ext
4058      ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064 fi
4065 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4066 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4067   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4068     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4069     CFLAGS="$SAVE_CFLAGS"
4070   fi
4071   ;;
4072 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4073   if test -n "$ac_tool_prefix"; then
4074   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4076 echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   if test -n "$DLLTOOL"; then
4082   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089   for ac_exec_ext in '' $ac_executable_extensions; do
4090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4093     break 2
4094   fi
4095 done
4096 done
4097
4098 fi
4099 fi
4100 DLLTOOL=$ac_cv_prog_DLLTOOL
4101 if test -n "$DLLTOOL"; then
4102   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4103 echo "${ECHO_T}$DLLTOOL" >&6
4104 else
4105   echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107 fi
4108
4109 fi
4110 if test -z "$ac_cv_prog_DLLTOOL"; then
4111   ac_ct_DLLTOOL=$DLLTOOL
4112   # Extract the first word of "dlltool", so it can be a program name with args.
4113 set dummy dlltool; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   if test -n "$ac_ct_DLLTOOL"; then
4120   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135
4136   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4137 fi
4138 fi
4139 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4140 if test -n "$ac_ct_DLLTOOL"; then
4141   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4142 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148   DLLTOOL=$ac_ct_DLLTOOL
4149 else
4150   DLLTOOL="$ac_cv_prog_DLLTOOL"
4151 fi
4152
4153   if test -n "$ac_tool_prefix"; then
4154   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}as; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_AS+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -n "$AS"; then
4162   ac_cv_prog_AS="$AS" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167   IFS=$as_save_IFS
4168   test -z "$as_dir" && as_dir=.
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171     ac_cv_prog_AS="${ac_tool_prefix}as"
4172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177
4178 fi
4179 fi
4180 AS=$ac_cv_prog_AS
4181 if test -n "$AS"; then
4182   echo "$as_me:$LINENO: result: $AS" >&5
4183 echo "${ECHO_T}$AS" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189 fi
4190 if test -z "$ac_cv_prog_AS"; then
4191   ac_ct_AS=$AS
4192   # Extract the first word of "as", so it can be a program name with args.
4193 set dummy as; ac_word=$2
4194 echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4196 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199   if test -n "$ac_ct_AS"; then
4200   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207   for ac_exec_ext in '' $ac_executable_extensions; do
4208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209     ac_cv_prog_ac_ct_AS="as"
4210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211     break 2
4212   fi
4213 done
4214 done
4215
4216   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4217 fi
4218 fi
4219 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4220 if test -n "$ac_ct_AS"; then
4221   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4222 echo "${ECHO_T}$ac_ct_AS" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228   AS=$ac_ct_AS
4229 else
4230   AS="$ac_cv_prog_AS"
4231 fi
4232
4233   if test -n "$ac_tool_prefix"; then
4234   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   if test -n "$OBJDUMP"; then
4242   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   for ac_exec_ext in '' $ac_executable_extensions; do
4250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256 done
4257
4258 fi
4259 fi
4260 OBJDUMP=$ac_cv_prog_OBJDUMP
4261 if test -n "$OBJDUMP"; then
4262   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4263 echo "${ECHO_T}$OBJDUMP" >&6
4264 else
4265   echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267 fi
4268
4269 fi
4270 if test -z "$ac_cv_prog_OBJDUMP"; then
4271   ac_ct_OBJDUMP=$OBJDUMP
4272   # Extract the first word of "objdump", so it can be a program name with args.
4273 set dummy objdump; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   if test -n "$ac_ct_OBJDUMP"; then
4280   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4297 fi
4298 fi
4299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4300 if test -n "$ac_ct_OBJDUMP"; then
4301   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4302 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4303 else
4304   echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306 fi
4307
4308   OBJDUMP=$ac_ct_OBJDUMP
4309 else
4310   OBJDUMP="$ac_cv_prog_OBJDUMP"
4311 fi
4312
4313   ;;
4314
4315 esac
4316
4317 need_locks="$enable_libtool_lock"
4318
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4327 # On Suns, sometimes $CPP names a directory.
4328 if test -n "$CPP" && test -d "$CPP"; then
4329   CPP=
4330 fi
4331 if test -z "$CPP"; then
4332   if test "${ac_cv_prog_CPP+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335       # Double quotes because CPP needs to be expanded
4336     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4337     do
4338       ac_preproc_ok=false
4339 for ac_c_preproc_warn_flag in '' yes
4340 do
4341   # Use a header file that comes with gcc, so configuring glibc
4342   # with a fresh cross-compiler works.
4343   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4344   # <limits.h> exists even on freestanding compilers.
4345   # On the NeXT, cc -E runs the code through the compiler's parser,
4346   # not just through cpp. "Syntax error" is here to catch this case.
4347   cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353 #ifdef __STDC__
4354 # include <limits.h>
4355 #else
4356 # include <assert.h>
4357 #endif
4358                      Syntax error
4359 _ACEOF
4360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } >/dev/null; then
4368   if test -s conftest.err; then
4369     ac_cpp_err=$ac_c_preproc_warn_flag
4370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4371   else
4372     ac_cpp_err=
4373   fi
4374 else
4375   ac_cpp_err=yes
4376 fi
4377 if test -z "$ac_cpp_err"; then
4378   :
4379 else
4380   echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383   # Broken: fails on valid input.
4384 continue
4385 fi
4386 rm -f conftest.err conftest.$ac_ext
4387
4388   # OK, works on sane cases.  Now check whether non-existent headers
4389   # can be detected and how.
4390   cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <ac_nonexistent.h>
4397 _ACEOF
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } >/dev/null; then
4406   if test -s conftest.err; then
4407     ac_cpp_err=$ac_c_preproc_warn_flag
4408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409   else
4410     ac_cpp_err=
4411   fi
4412 else
4413   ac_cpp_err=yes
4414 fi
4415 if test -z "$ac_cpp_err"; then
4416   # Broken: success on invalid input.
4417 continue
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422   # Passes both tests.
4423 ac_preproc_ok=:
4424 break
4425 fi
4426 rm -f conftest.err conftest.$ac_ext
4427
4428 done
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then
4432   break
4433 fi
4434
4435     done
4436     ac_cv_prog_CPP=$CPP
4437
4438 fi
4439   CPP=$ac_cv_prog_CPP
4440 else
4441   ac_cv_prog_CPP=$CPP
4442 fi
4443 echo "$as_me:$LINENO: result: $CPP" >&5
4444 echo "${ECHO_T}$CPP" >&6
4445 ac_preproc_ok=false
4446 for ac_c_preproc_warn_flag in '' yes
4447 do
4448   # Use a header file that comes with gcc, so configuring glibc
4449   # with a fresh cross-compiler works.
4450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451   # <limits.h> exists even on freestanding compilers.
4452   # On the NeXT, cc -E runs the code through the compiler's parser,
4453   # not just through cpp. "Syntax error" is here to catch this case.
4454   cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 #ifdef __STDC__
4461 # include <limits.h>
4462 #else
4463 # include <assert.h>
4464 #endif
4465                      Syntax error
4466 _ACEOF
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } >/dev/null; then
4475   if test -s conftest.err; then
4476     ac_cpp_err=$ac_c_preproc_warn_flag
4477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4478   else
4479     ac_cpp_err=
4480   fi
4481 else
4482   ac_cpp_err=yes
4483 fi
4484 if test -z "$ac_cpp_err"; then
4485   :
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490   # Broken: fails on valid input.
4491 continue
4492 fi
4493 rm -f conftest.err conftest.$ac_ext
4494
4495   # OK, works on sane cases.  Now check whether non-existent headers
4496   # can be detected and how.
4497   cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } >/dev/null; then
4513   if test -s conftest.err; then
4514     ac_cpp_err=$ac_c_preproc_warn_flag
4515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516   else
4517     ac_cpp_err=
4518   fi
4519 else
4520   ac_cpp_err=yes
4521 fi
4522 if test -z "$ac_cpp_err"; then
4523   # Broken: success on invalid input.
4524 continue
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529   # Passes both tests.
4530 ac_preproc_ok=:
4531 break
4532 fi
4533 rm -f conftest.err conftest.$ac_ext
4534
4535 done
4536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4537 rm -f conftest.err conftest.$ac_ext
4538 if $ac_preproc_ok; then
4539   :
4540 else
4541   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4542 See \`config.log' for more details." >&5
4543 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4544 See \`config.log' for more details." >&2;}
4545    { (exit 1); exit 1; }; }
4546 fi
4547
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554
4555 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4557 if test "${ac_cv_header_stdc+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <stdlib.h>
4567 #include <stdarg.h>
4568 #include <string.h>
4569 #include <float.h>
4570
4571 int
4572 main ()
4573 {
4574
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581   (eval $ac_compile) 2>conftest.er1
4582   ac_status=$?
4583   grep -v '^ *+' conftest.er1 >conftest.err
4584   rm -f conftest.er1
4585   cat conftest.err >&5
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } &&
4588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590   (eval $ac_try) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; } &&
4594          { ac_try='test -s conftest.$ac_objext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   ac_cv_header_stdc=yes
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 ac_cv_header_stdc=no
4606 fi
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608
4609 if test $ac_cv_header_stdc = yes; then
4610   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611   cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617 #include <string.h>
4618
4619 _ACEOF
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621   $EGREP "memchr" >/dev/null 2>&1; then
4622   :
4623 else
4624   ac_cv_header_stdc=no
4625 fi
4626 rm -f conftest*
4627
4628 fi
4629
4630 if test $ac_cv_header_stdc = yes; then
4631   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 #include <stdlib.h>
4639
4640 _ACEOF
4641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642   $EGREP "free" >/dev/null 2>&1; then
4643   :
4644 else
4645   ac_cv_header_stdc=no
4646 fi
4647 rm -f conftest*
4648
4649 fi
4650
4651 if test $ac_cv_header_stdc = yes; then
4652   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4653   if test "$cross_compiling" = yes; then
4654   :
4655 else
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 <ctype.h>
4663 #if ((' ' & 0x0FF) == 0x020)
4664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666 #else
4667 # define ISLOWER(c) \
4668                    (('a' <= (c) && (c) <= 'i') \
4669                      || ('j' <= (c) && (c) <= 'r') \
4670                      || ('s' <= (c) && (c) <= 'z'))
4671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672 #endif
4673
4674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4675 int
4676 main ()
4677 {
4678   int i;
4679   for (i = 0; i < 256; i++)
4680     if (XOR (islower (i), ISLOWER (i))
4681         || toupper (i) != TOUPPER (i))
4682       exit(2);
4683   exit (0);
4684 }
4685 _ACEOF
4686 rm -f conftest$ac_exeext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688   (eval $ac_link) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   :
4698 else
4699   echo "$as_me: program exited with status $ac_status" >&5
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ( exit $ac_status )
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4707 fi
4708 fi
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4711 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4712 if test $ac_cv_header_stdc = yes; then
4713
4714 cat >>confdefs.h <<\_ACEOF
4715 #define STDC_HEADERS 1
4716 _ACEOF
4717
4718 fi
4719
4720 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4731                   inttypes.h stdint.h unistd.h
4732 do
4733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734 echo "$as_me:$LINENO: checking for $ac_header" >&5
4735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 $ac_includes_default
4746
4747 #include <$ac_header>
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751   (eval $ac_compile) 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } &&
4758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; } &&
4764          { ac_try='test -s conftest.$ac_objext'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; }; then
4770   eval "$as_ac_Header=yes"
4771 else
4772   echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 eval "$as_ac_Header=no"
4776 fi
4777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4782   cat >>confdefs.h <<_ACEOF
4783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784 _ACEOF
4785
4786 fi
4787
4788 done
4789
4790
4791
4792 for ac_header in dlfcn.h
4793 do
4794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4796   echo "$as_me:$LINENO: checking for $ac_header" >&5
4797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 fi
4801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4803 else
4804   # Is the header compilable?
4805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 $ac_includes_default
4814 #include <$ac_header>
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818   (eval $ac_compile) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; } &&
4831          { ac_try='test -s conftest.$ac_objext'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; }; then
4837   ac_header_compiler=yes
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_header_compiler=no
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846 echo "${ECHO_T}$ac_header_compiler" >&6
4847
4848 # Is the header present?
4849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #include <$ac_header>
4858 _ACEOF
4859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } >/dev/null; then
4867   if test -s conftest.err; then
4868     ac_cpp_err=$ac_c_preproc_warn_flag
4869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4870   else
4871     ac_cpp_err=
4872   fi
4873 else
4874   ac_cpp_err=yes
4875 fi
4876 if test -z "$ac_cpp_err"; then
4877   ac_header_preproc=yes
4878 else
4879   echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882   ac_header_preproc=no
4883 fi
4884 rm -f conftest.err conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886 echo "${ECHO_T}$ac_header_preproc" >&6
4887
4888 # So?  What about this header?
4889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4890   yes:no: )
4891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4895     ac_header_preproc=yes
4896     ;;
4897   no:yes:* )
4898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4910     (
4911       cat <<\_ASBOX
4912 ## ---------------------------------- ##
4913 ## Report this to bug-libtool@gnu.org ##
4914 ## ---------------------------------- ##
4915 _ASBOX
4916     ) |
4917       sed "s/^/$as_me: WARNING:     /" >&2
4918     ;;
4919 esac
4920 echo "$as_me:$LINENO: checking for $ac_header" >&5
4921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   eval "$as_ac_Header=\$ac_header_preproc"
4926 fi
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4929
4930 fi
4931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4932   cat >>confdefs.h <<_ACEOF
4933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 _ACEOF
4935
4936 fi
4937
4938 done
4939
4940 ac_ext=cc
4941 ac_cpp='$CXXCPP $CPPFLAGS'
4942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4945 if test -n "$ac_tool_prefix"; then
4946   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4947   do
4948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4950 echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4952 if test "${ac_cv_prog_CXX+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   if test -n "$CXX"; then
4956   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   for ac_exec_ext in '' $ac_executable_extensions; do
4964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970 done
4971
4972 fi
4973 fi
4974 CXX=$ac_cv_prog_CXX
4975 if test -n "$CXX"; then
4976   echo "$as_me:$LINENO: result: $CXX" >&5
4977 echo "${ECHO_T}$CXX" >&6
4978 else
4979   echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4981 fi
4982
4983     test -n "$CXX" && break
4984   done
4985 fi
4986 if test -z "$CXX"; then
4987   ac_ct_CXX=$CXX
4988   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4989 do
4990   # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   if test -n "$ac_ct_CXX"; then
4998   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005   for ac_exec_ext in '' $ac_executable_extensions; do
5006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_prog_ac_ct_CXX="$ac_prog"
5008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012 done
5013
5014 fi
5015 fi
5016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5017 if test -n "$ac_ct_CXX"; then
5018   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5019 echo "${ECHO_T}$ac_ct_CXX" >&6
5020 else
5021   echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5023 fi
5024
5025   test -n "$ac_ct_CXX" && break
5026 done
5027 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5028
5029   CXX=$ac_ct_CXX
5030 fi
5031
5032
5033 # Provide some information about the compiler.
5034 echo "$as_me:$LINENO:" \
5035      "checking for C++ compiler version" >&5
5036 ac_compiler=`set X $ac_compile; echo $2`
5037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5038   (eval $ac_compiler --version </dev/null >&5) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }
5042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5043   (eval $ac_compiler -v </dev/null >&5) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }
5047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5048   (eval $ac_compiler -V </dev/null >&5) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }
5052
5053 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5054 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5055 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064
5065 int
5066 main ()
5067 {
5068 #ifndef __GNUC__
5069        choke me
5070 #endif
5071
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>conftest.er1
5079   ac_status=$?
5080   grep -v '^ *+' conftest.er1 >conftest.err
5081   rm -f conftest.er1
5082   cat conftest.err >&5
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; } &&
5091          { ac_try='test -s conftest.$ac_objext'
5092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093   (eval $ac_try) 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); }; }; then
5097   ac_compiler_gnu=yes
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 ac_compiler_gnu=no
5103 fi
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5106
5107 fi
5108 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5109 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5110 GXX=`test $ac_compiler_gnu = yes && echo yes`
5111 ac_test_CXXFLAGS=${CXXFLAGS+set}
5112 ac_save_CXXFLAGS=$CXXFLAGS
5113 CXXFLAGS="-g"
5114 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5115 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5116 if test "${ac_cv_prog_cxx_g+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125
5126 int
5127 main ()
5128 {
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136   (eval $ac_compile) 2>conftest.er1
5137   ac_status=$?
5138   grep -v '^ *+' conftest.er1 >conftest.err
5139   rm -f conftest.er1
5140   cat conftest.err >&5
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); } &&
5143          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; } &&
5149          { ac_try='test -s conftest.$ac_objext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   ac_cv_prog_cxx_g=yes
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_cv_prog_cxx_g=no
5161 fi
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 fi
5164 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5166 if test "$ac_test_CXXFLAGS" = set; then
5167   CXXFLAGS=$ac_save_CXXFLAGS
5168 elif test $ac_cv_prog_cxx_g = yes; then
5169   if test "$GXX" = yes; then
5170     CXXFLAGS="-g -O2"
5171   else
5172     CXXFLAGS="-g"
5173   fi
5174 else
5175   if test "$GXX" = yes; then
5176     CXXFLAGS="-O2"
5177   else
5178     CXXFLAGS=
5179   fi
5180 fi
5181 for ac_declaration in \
5182    '' \
5183    'extern "C" void std::exit (int) throw (); using std::exit;' \
5184    'extern "C" void std::exit (int); using std::exit;' \
5185    'extern "C" void exit (int) throw ();' \
5186    'extern "C" void exit (int);' \
5187    'void exit (int);'
5188 do
5189   cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h.  */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h.  */
5195 $ac_declaration
5196 #include <stdlib.h>
5197 int
5198 main ()
5199 {
5200 exit (42);
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207   (eval $ac_compile) 2>conftest.er1
5208   ac_status=$?
5209   grep -v '^ *+' conftest.er1 >conftest.err
5210   rm -f conftest.er1
5211   cat conftest.err >&5
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; } &&
5220          { ac_try='test -s conftest.$ac_objext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   :
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 continue
5232 fi
5233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5234   cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 $ac_declaration
5241 int
5242 main ()
5243 {
5244 exit (42);
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251   (eval $ac_compile) 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260   (eval $ac_try) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }; } &&
5264          { ac_try='test -s conftest.$ac_objext'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; }; then
5270   break
5271 else
5272   echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 fi
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 done
5278 rm -f conftest*
5279 if test -n "$ac_declaration"; then
5280   echo '#ifdef __cplusplus' >>confdefs.h
5281   echo $ac_declaration      >>confdefs.h
5282   echo '#endif'             >>confdefs.h
5283 fi
5284
5285 ac_ext=cc
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290
5291 depcc="$CXX"  am_compiler_list=
5292
5293 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5294 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5295 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5299   # We make a subdir and do the tests there.  Otherwise we can end up
5300   # making bogus files that we don't know about and never remove.  For
5301   # instance it was reported that on HP-UX the gcc test will end up
5302   # making a dummy file named `D' -- because `-MD' means `put the output
5303   # in D'.
5304   mkdir conftest.dir
5305   # Copy depcomp to subdir because otherwise we won't find it if we're
5306   # using a relative directory.
5307   cp "$am_depcomp" conftest.dir
5308   cd conftest.dir
5309   # We will build objects and dependencies in a subdirectory because
5310   # it helps to detect inapplicable dependency modes.  For instance
5311   # both Tru64's cc and ICC support -MD to output dependencies as a
5312   # side effect of compilation, but ICC will put the dependencies in
5313   # the current directory while Tru64 will put them in the object
5314   # directory.
5315   mkdir sub
5316
5317   am_cv_CXX_dependencies_compiler_type=none
5318   if test "$am_compiler_list" = ""; then
5319      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5320   fi
5321   for depmode in $am_compiler_list; do
5322     # Setup a source with many dependencies, because some compilers
5323     # like to wrap large dependency lists on column 80 (with \), and
5324     # we should not choose a depcomp mode which is confused by this.
5325     #
5326     # We need to recreate these files for each test, as the compiler may
5327     # overwrite some of them when testing with obscure command lines.
5328     # This happens at least with the AIX C compiler.
5329     : > sub/conftest.c
5330     for i in 1 2 3 4 5 6; do
5331       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5332       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5333       # Solaris 8's {/usr,}/bin/sh.
5334       touch sub/conftst$i.h
5335     done
5336     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5337
5338     case $depmode in
5339     nosideeffect)
5340       # after this tag, mechanisms are not by side-effect, so they'll
5341       # only be used when explicitly requested
5342       if test "x$enable_dependency_tracking" = xyes; then
5343         continue
5344       else
5345         break
5346       fi
5347       ;;
5348     none) break ;;
5349     esac
5350     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5351     # mode.  It turns out that the SunPro C++ compiler does not properly
5352     # handle `-M -o', and we need to detect this.
5353     if depmode=$depmode \
5354        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5355        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5356        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5357          >/dev/null 2>conftest.err &&
5358        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5359        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5360        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5361       # icc doesn't choke on unknown options, it will just issue warnings
5362       # or remarks (even with -Werror).  So we grep stderr for any message
5363       # that says an option was ignored or not supported.
5364       # When given -MP, icc 7.0 and 7.1 complain thusly:
5365       #   icc: Command line warning: ignoring option '-M'; no argument required
5366       # The diagnosis changed in icc 8.0:
5367       #   icc: Command line remark: option '-MP' not supported
5368       if (grep 'ignoring option' conftest.err ||
5369           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5370         am_cv_CXX_dependencies_compiler_type=$depmode
5371         break
5372       fi
5373     fi
5374   done
5375
5376   cd ..
5377   rm -rf conftest.dir
5378 else
5379   am_cv_CXX_dependencies_compiler_type=none
5380 fi
5381
5382 fi
5383 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5384 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5385 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5386
5387
5388
5389 if
5390   test "x$enable_dependency_tracking" != xno \
5391   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5392   am__fastdepCXX_TRUE=
5393   am__fastdepCXX_FALSE='#'
5394 else
5395   am__fastdepCXX_TRUE='#'
5396   am__fastdepCXX_FALSE=
5397 fi
5398
5399
5400 ac_ext=cc
5401 ac_cpp='$CXXCPP $CPPFLAGS'
5402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5405 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5407 if test -z "$CXXCPP"; then
5408   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411       # Double quotes because CXXCPP needs to be expanded
5412     for CXXCPP in "$CXX -E" "/lib/cpp"
5413     do
5414       ac_preproc_ok=false
5415 for ac_cxx_preproc_warn_flag in '' yes
5416 do
5417   # Use a header file that comes with gcc, so configuring glibc
5418   # with a fresh cross-compiler works.
5419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420   # <limits.h> exists even on freestanding compilers.
5421   # On the NeXT, cc -E runs the code through the compiler's parser,
5422   # not just through cpp. "Syntax error" is here to catch this case.
5423   cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434                      Syntax error
5435 _ACEOF
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438   ac_status=$?
5439   grep -v '^ *+' conftest.er1 >conftest.err
5440   rm -f conftest.er1
5441   cat conftest.err >&5
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } >/dev/null; then
5444   if test -s conftest.err; then
5445     ac_cpp_err=$ac_cxx_preproc_warn_flag
5446     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5447   else
5448     ac_cpp_err=
5449   fi
5450 else
5451   ac_cpp_err=yes
5452 fi
5453 if test -z "$ac_cpp_err"; then
5454   :
5455 else
5456   echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459   # Broken: fails on valid input.
5460 continue
5461 fi
5462 rm -f conftest.err conftest.$ac_ext
5463
5464   # OK, works on sane cases.  Now check whether non-existent headers
5465   # can be detected and how.
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472 #include <ac_nonexistent.h>
5473 _ACEOF
5474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } >/dev/null; then
5482   if test -s conftest.err; then
5483     ac_cpp_err=$ac_cxx_preproc_warn_flag
5484     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5485   else
5486     ac_cpp_err=
5487   fi
5488 else
5489   ac_cpp_err=yes
5490 fi
5491 if test -z "$ac_cpp_err"; then
5492   # Broken: success on invalid input.
5493 continue
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498   # Passes both tests.
5499 ac_preproc_ok=:
5500 break
5501 fi
5502 rm -f conftest.err conftest.$ac_ext
5503
5504 done
5505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506 rm -f conftest.err conftest.$ac_ext
5507 if $ac_preproc_ok; then
5508   break
5509 fi
5510
5511     done
5512     ac_cv_prog_CXXCPP=$CXXCPP
5513
5514 fi
5515   CXXCPP=$ac_cv_prog_CXXCPP
5516 else
5517   ac_cv_prog_CXXCPP=$CXXCPP
5518 fi
5519 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5520 echo "${ECHO_T}$CXXCPP" >&6
5521 ac_preproc_ok=false
5522 for ac_cxx_preproc_warn_flag in '' yes
5523 do
5524   # Use a header file that comes with gcc, so configuring glibc
5525   # with a fresh cross-compiler works.
5526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527   # <limits.h> exists even on freestanding compilers.
5528   # On the NeXT, cc -E runs the code through the compiler's parser,
5529   # not just through cpp. "Syntax error" is here to catch this case.
5530   cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h.  */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h.  */
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541                      Syntax error
5542 _ACEOF
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545   ac_status=$?
5546   grep -v '^ *+' conftest.er1 >conftest.err
5547   rm -f conftest.er1
5548   cat conftest.err >&5
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } >/dev/null; then
5551   if test -s conftest.err; then
5552     ac_cpp_err=$ac_cxx_preproc_warn_flag
5553     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5554   else
5555     ac_cpp_err=
5556   fi
5557 else
5558   ac_cpp_err=yes
5559 fi
5560 if test -z "$ac_cpp_err"; then
5561   :
5562 else
5563   echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566   # Broken: fails on valid input.
5567 continue
5568 fi
5569 rm -f conftest.err conftest.$ac_ext
5570
5571   # OK, works on sane cases.  Now check whether non-existent headers
5572   # can be detected and how.
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } >/dev/null; then
5589   if test -s conftest.err; then
5590     ac_cpp_err=$ac_cxx_preproc_warn_flag
5591     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5592   else
5593     ac_cpp_err=
5594   fi
5595 else
5596   ac_cpp_err=yes
5597 fi
5598 if test -z "$ac_cpp_err"; then
5599   # Broken: success on invalid input.
5600 continue
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605   # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5608 fi
5609 rm -f conftest.err conftest.$ac_ext
5610
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then
5615   :
5616 else
5617   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5620 See \`config.log' for more details." >&2;}
5621    { (exit 1); exit 1; }; }
5622 fi
5623
5624 ac_ext=cc
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629
5630
5631 ac_ext=f
5632 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5633 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5635 if test -n "$ac_tool_prefix"; then
5636   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5637   do
5638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5640 echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5642 if test "${ac_cv_prog_F77+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   if test -n "$F77"; then
5646   ac_cv_prog_F77="$F77" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653   for ac_exec_ext in '' $ac_executable_extensions; do
5654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660 done
5661
5662 fi
5663 fi
5664 F77=$ac_cv_prog_F77
5665 if test -n "$F77"; then
5666   echo "$as_me:$LINENO: result: $F77" >&5
5667 echo "${ECHO_T}$F77" >&6
5668 else
5669   echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5671 fi
5672
5673     test -n "$F77" && break
5674   done
5675 fi
5676 if test -z "$F77"; then
5677   ac_ct_F77=$F77
5678   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5679 do
5680   # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   if test -n "$ac_ct_F77"; then
5688   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695   for ac_exec_ext in '' $ac_executable_extensions; do
5696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697     ac_cv_prog_ac_ct_F77="$ac_prog"
5698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702 done
5703
5704 fi
5705 fi
5706 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5707 if test -n "$ac_ct_F77"; then
5708   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5709 echo "${ECHO_T}$ac_ct_F77" >&6
5710 else
5711   echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 fi
5714
5715   test -n "$ac_ct_F77" && break
5716 done
5717
5718   F77=$ac_ct_F77
5719 fi
5720
5721
5722 # Provide some information about the compiler.
5723 echo "$as_me:5723:" \
5724      "checking for Fortran 77 compiler version" >&5
5725 ac_compiler=`set X $ac_compile; echo $2`
5726 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5727   (eval $ac_compiler --version </dev/null >&5) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }
5731 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5732   (eval $ac_compiler -v </dev/null >&5) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }
5736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5737   (eval $ac_compiler -V </dev/null >&5) 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }
5741 rm -f a.out
5742
5743 # If we don't use `.F' as extension, the preprocessor is not run on the
5744 # input file.  (Note that this only needs to work for GNU compilers.)
5745 ac_save_ext=$ac_ext
5746 ac_ext=F
5747 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5748 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5749 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   cat >conftest.$ac_ext <<_ACEOF
5753       program main
5754 #ifndef __GNUC__
5755        choke me
5756 #endif
5757
5758       end
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762   (eval $ac_compile) 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } &&
5769          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; } &&
5775          { ac_try='test -s conftest.$ac_objext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_compiler_gnu=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_compiler_gnu=no
5787 fi
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5790
5791 fi
5792 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5793 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5794 ac_ext=$ac_save_ext
5795 ac_test_FFLAGS=${FFLAGS+set}
5796 ac_save_FFLAGS=$FFLAGS
5797 FFLAGS=
5798 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5799 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5800 if test "${ac_cv_prog_f77_g+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   FFLAGS=-g
5804 cat >conftest.$ac_ext <<_ACEOF
5805       program main
5806
5807       end
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811   (eval $ac_compile) 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } &&
5818          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; } &&
5824          { ac_try='test -s conftest.$ac_objext'
5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; }; then
5830   ac_cv_prog_f77_g=yes
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 ac_cv_prog_f77_g=no
5836 fi
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838
5839 fi
5840 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5841 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5842 if test "$ac_test_FFLAGS" = set; then
5843   FFLAGS=$ac_save_FFLAGS
5844 elif test $ac_cv_prog_f77_g = yes; then
5845   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5846     FFLAGS="-g -O2"
5847   else
5848     FFLAGS="-g"
5849   fi
5850 else
5851   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5852     FFLAGS="-O2"
5853   else
5854     FFLAGS=
5855   fi
5856 fi
5857
5858 G77=`test $ac_compiler_gnu = yes && echo yes`
5859 ac_ext=c
5860 ac_cpp='$CPP $CPPFLAGS'
5861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864
5865
5866
5867 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5868
5869 # find the maximum length of command line arguments
5870 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5871 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5872 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875     i=0
5876   testring="ABCD"
5877
5878   case $build_os in
5879   msdosdjgpp*)
5880     # On DJGPP, this test can blow up pretty badly due to problems in libc
5881     # (any single argument exceeding 2000 bytes causes a buffer overrun
5882     # during glob expansion).  Even if it were fixed, the result of this
5883     # check would be larger than it should be.
5884     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5885     ;;
5886
5887   gnu*)
5888     # Under GNU Hurd, this test is not required because there is
5889     # no limit to the length of command line arguments.
5890     # Libtool will interpret -1 as no limit whatsoever
5891     lt_cv_sys_max_cmd_len=-1;
5892     ;;
5893
5894   cygwin* | mingw*)
5895     # On Win9x/ME, this test blows up -- it succeeds, but takes
5896     # about 5 minutes as the teststring grows exponentially.
5897     # Worse, since 9x/ME are not pre-emptively multitasking,
5898     # you end up with a "frozen" computer, even though with patience
5899     # the test eventually succeeds (with a max line length of 256k).
5900     # Instead, let's just punt: use the minimum linelength reported by
5901     # all of the supported platforms: 8192 (on NT/2K/XP).
5902     lt_cv_sys_max_cmd_len=8192;
5903     ;;
5904
5905  *)
5906     # If test is not a shell built-in, we'll probably end up computing a
5907     # maximum length that is only half of the actual maximum length, but
5908     # we can't tell.
5909     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5910                = "XX$testring") >/dev/null 2>&1 &&
5911             new_result=`expr "X$testring" : ".*" 2>&1` &&
5912             lt_cv_sys_max_cmd_len=$new_result &&
5913             test $i != 17 # 1/2 MB should be enough
5914     do
5915       i=`expr $i + 1`
5916       testring=$testring$testring
5917     done
5918     testring=
5919     # Add a significant safety factor because C++ compilers can tack on massive
5920     # amounts of additional arguments before passing them to the linker.
5921     # It appears as though 1/2 is a usable value.
5922     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5923     ;;
5924   esac
5925
5926 fi
5927
5928 if test -n $lt_cv_sys_max_cmd_len ; then
5929   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5930 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5931 else
5932   echo "$as_me:$LINENO: result: none" >&5
5933 echo "${ECHO_T}none" >&6
5934 fi
5935
5936
5937
5938
5939 # Check for command to grab the raw symbol name followed by C symbol from nm.
5940 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945
5946 # These are sane defaults that work on at least a few old systems.
5947 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5948
5949 # Character class describing NM global symbol codes.
5950 symcode='[BCDEGRST]'
5951
5952 # Regexp to match symbols that can be accessed directly from C.
5953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5954
5955 # Transform the above into a raw symbol and a C symbol.
5956 symxfrm='\1 \2\3 \3'
5957
5958 # Transform an extracted symbol line into a proper C declaration
5959 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5960
5961 # Transform an extracted symbol line into symbol name and symbol address
5962 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'"
5963
5964 # Define system-specific variables.
5965 case $host_os in
5966 aix*)
5967   symcode='[BCDT]'
5968   ;;
5969 cygwin* | mingw* | pw32*)
5970   symcode='[ABCDGISTW]'
5971   ;;
5972 hpux*) # Its linker distinguishes data from code symbols
5973   if test "$host_cpu" = ia64; then
5974     symcode='[ABCDEGRST]'
5975   fi
5976   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5977   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'"
5978   ;;
5979 irix* | nonstopux*)
5980   symcode='[BCDEGRST]'
5981   ;;
5982 osf*)
5983   symcode='[BCDEGQRST]'
5984   ;;
5985 solaris* | sysv5*)
5986   symcode='[BDT]'
5987   ;;
5988 sysv4)
5989   symcode='[DFNSTU]'
5990   ;;
5991 esac
5992
5993 # Handle CRLF in mingw tool chain
5994 opt_cr=
5995 case $build_os in
5996 mingw*)
5997   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5998   ;;
5999 esac
6000
6001 # If we're using GNU nm, then use its standard symbol codes.
6002 case `$NM -V 2>&1` in
6003 *GNU* | *'with BFD'*)
6004   symcode='[ABCDGISTW]' ;;
6005 esac
6006
6007 # Try without a prefix undercore, then with it.
6008 for ac_symprfx in "" "_"; do
6009
6010   # Write the raw and C identifiers.
6011   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6012
6013   # Check to see that the pipe works correctly.
6014   pipe_works=no
6015
6016   rm -f conftest*
6017   cat > conftest.$ac_ext <<EOF
6018 #ifdef __cplusplus
6019 extern "C" {
6020 #endif
6021 char nm_test_var;
6022 void nm_test_func(){}
6023 #ifdef __cplusplus
6024 }
6025 #endif
6026 int main(){nm_test_var='a';nm_test_func();return(0);}
6027 EOF
6028
6029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030   (eval $ac_compile) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; then
6034     # Now try to grab the symbols.
6035     nlist=conftest.nm
6036     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6037   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6038   ac_status=$?
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); } && test -s "$nlist"; then
6041       # Try sorting and uniquifying the output.
6042       if sort "$nlist" | uniq > "$nlist"T; then
6043         mv -f "$nlist"T "$nlist"
6044       else
6045         rm -f "$nlist"T
6046       fi
6047
6048       # Make sure that we snagged all the symbols we need.
6049       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6050         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6051           cat <<EOF > conftest.$ac_ext
6052 #ifdef __cplusplus
6053 extern "C" {
6054 #endif
6055
6056 EOF
6057           # Now generate the symbol file.
6058           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6059
6060           cat <<EOF >> conftest.$ac_ext
6061 #if defined (__STDC__) && __STDC__
6062 # define lt_ptr_t void *
6063 #else
6064 # define lt_ptr_t char *
6065 # define const
6066 #endif
6067
6068 /* The mapping between symbol names and symbols. */
6069 const struct {
6070   const char *name;
6071   lt_ptr_t address;
6072 }
6073 lt_preloaded_symbols[] =
6074 {
6075 EOF
6076           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6077           cat <<\EOF >> conftest.$ac_ext
6078   {0, (lt_ptr_t) 0}
6079 };
6080
6081 #ifdef __cplusplus
6082 }
6083 #endif
6084 EOF
6085           # Now try linking the two files.
6086           mv conftest.$ac_objext conftstm.$ac_objext
6087           lt_save_LIBS="$LIBS"
6088           lt_save_CFLAGS="$CFLAGS"
6089           LIBS="conftstm.$ac_objext"
6090           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6091           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6096             pipe_works=yes
6097           fi
6098           LIBS="$lt_save_LIBS"
6099           CFLAGS="$lt_save_CFLAGS"
6100         else
6101           echo "cannot find nm_test_func in $nlist" >&5
6102         fi
6103       else
6104         echo "cannot find nm_test_var in $nlist" >&5
6105       fi
6106     else
6107       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6108     fi
6109   else
6110     echo "$progname: failed program was:" >&5
6111     cat conftest.$ac_ext >&5
6112   fi
6113   rm -f conftest* conftst*
6114
6115   # Do not use the global_symbol_pipe unless it works.
6116   if test "$pipe_works" = yes; then
6117     break
6118   else
6119     lt_cv_sys_global_symbol_pipe=
6120   fi
6121 done
6122
6123 fi
6124
6125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6126   lt_cv_sys_global_symbol_to_cdecl=
6127 fi
6128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6129   echo "$as_me:$LINENO: result: failed" >&5
6130 echo "${ECHO_T}failed" >&6
6131 else
6132   echo "$as_me:$LINENO: result: ok" >&5
6133 echo "${ECHO_T}ok" >&6
6134 fi
6135
6136 echo "$as_me:$LINENO: checking for objdir" >&5
6137 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6138 if test "${lt_cv_objdir+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   rm -f .libs 2>/dev/null
6142 mkdir .libs 2>/dev/null
6143 if test -d .libs; then
6144   lt_cv_objdir=.libs
6145 else
6146   # MS-DOS does not allow filenames that begin with a dot.
6147   lt_cv_objdir=_libs
6148 fi
6149 rmdir .libs 2>/dev/null
6150 fi
6151 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6152 echo "${ECHO_T}$lt_cv_objdir" >&6
6153 objdir=$lt_cv_objdir
6154
6155
6156
6157
6158
6159 case $host_os in
6160 aix3*)
6161   # AIX sometimes has problems with the GCC collect2 program.  For some
6162   # reason, if we set the COLLECT_NAMES environment variable, the problems
6163   # vanish in a puff of smoke.
6164   if test "X${COLLECT_NAMES+set}" != Xset; then
6165     COLLECT_NAMES=
6166     export COLLECT_NAMES
6167   fi
6168   ;;
6169 esac
6170
6171 # Sed substitution that helps us do robust quoting.  It backslashifies
6172 # metacharacters that are still active within double-quoted strings.
6173 Xsed='sed -e s/^X//'
6174 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6175
6176 # Same as above, but do not quote variable references.
6177 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6178
6179 # Sed substitution to delay expansion of an escaped shell variable in a
6180 # double_quote_subst'ed string.
6181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6182
6183 # Sed substitution to avoid accidental globbing in evaled expressions
6184 no_glob_subst='s/\*/\\\*/g'
6185
6186 # Constants:
6187 rm="rm -f"
6188
6189 # Global variables:
6190 default_ofile=libtool
6191 can_build_shared=yes
6192
6193 # All known linkers require a `.a' archive for static linking (except M$VC,
6194 # which needs '.lib').
6195 libext=a
6196 ltmain="$ac_aux_dir/ltmain.sh"
6197 ofile="$default_ofile"
6198 with_gnu_ld="$lt_cv_prog_gnu_ld"
6199
6200 if test -n "$ac_tool_prefix"; then
6201   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}ar; ac_word=$2
6203 echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6205 if test "${ac_cv_prog_AR+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   if test -n "$AR"; then
6209   ac_cv_prog_AR="$AR" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216   for ac_exec_ext in '' $ac_executable_extensions; do
6217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218     ac_cv_prog_AR="${ac_tool_prefix}ar"
6219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223 done
6224
6225 fi
6226 fi
6227 AR=$ac_cv_prog_AR
6228 if test -n "$AR"; then
6229   echo "$as_me:$LINENO: result: $AR" >&5
6230 echo "${ECHO_T}$AR" >&6
6231 else
6232   echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6
6234 fi
6235
6236 fi
6237 if test -z "$ac_cv_prog_AR"; then
6238   ac_ct_AR=$AR
6239   # Extract the first word of "ar", so it can be a program name with args.
6240 set dummy ar; ac_word=$2
6241 echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   if test -n "$ac_ct_AR"; then
6247   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254   for ac_exec_ext in '' $ac_executable_extensions; do
6255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256     ac_cv_prog_ac_ct_AR="ar"
6257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261 done
6262
6263   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6264 fi
6265 fi
6266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6267 if test -n "$ac_ct_AR"; then
6268   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6269 echo "${ECHO_T}$ac_ct_AR" >&6
6270 else
6271   echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6
6273 fi
6274
6275   AR=$ac_ct_AR
6276 else
6277   AR="$ac_cv_prog_AR"
6278 fi
6279
6280 if test -n "$ac_tool_prefix"; then
6281   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6283 echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285 if test "${ac_cv_prog_RANLIB+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   if test -n "$RANLIB"; then
6289   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296   for ac_exec_ext in '' $ac_executable_extensions; do
6297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303 done
6304
6305 fi
6306 fi
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309   echo "$as_me:$LINENO: result: $RANLIB" >&5
6310 echo "${ECHO_T}$RANLIB" >&6
6311 else
6312   echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6
6314 fi
6315
6316 fi
6317 if test -z "$ac_cv_prog_RANLIB"; then
6318   ac_ct_RANLIB=$RANLIB
6319   # Extract the first word of "ranlib", so it can be a program name with args.
6320 set dummy ranlib; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   if test -n "$ac_ct_RANLIB"; then
6327   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336     ac_cv_prog_ac_ct_RANLIB="ranlib"
6337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342
6343   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6344 fi
6345 fi
6346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6347 if test -n "$ac_ct_RANLIB"; then
6348   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6349 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6350 else
6351   echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6353 fi
6354
6355   RANLIB=$ac_ct_RANLIB
6356 else
6357   RANLIB="$ac_cv_prog_RANLIB"
6358 fi
6359
6360 if test -n "$ac_tool_prefix"; then
6361   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}strip; ac_word=$2
6363 echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6365 if test "${ac_cv_prog_STRIP+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   if test -n "$STRIP"; then
6369   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376   for ac_exec_ext in '' $ac_executable_extensions; do
6377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383 done
6384
6385 fi
6386 fi
6387 STRIP=$ac_cv_prog_STRIP
6388 if test -n "$STRIP"; then
6389   echo "$as_me:$LINENO: result: $STRIP" >&5
6390 echo "${ECHO_T}$STRIP" >&6
6391 else
6392   echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6
6394 fi
6395
6396 fi
6397 if test -z "$ac_cv_prog_STRIP"; then
6398   ac_ct_STRIP=$STRIP
6399   # Extract the first word of "strip", so it can be a program name with args.
6400 set dummy strip; ac_word=$2
6401 echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   if test -n "$ac_ct_STRIP"; then
6407   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414   for ac_exec_ext in '' $ac_executable_extensions; do
6415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416     ac_cv_prog_ac_ct_STRIP="strip"
6417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421 done
6422
6423   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6424 fi
6425 fi
6426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6427 if test -n "$ac_ct_STRIP"; then
6428   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6429 echo "${ECHO_T}$ac_ct_STRIP" >&6
6430 else
6431   echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6
6433 fi
6434
6435   STRIP=$ac_ct_STRIP
6436 else
6437   STRIP="$ac_cv_prog_STRIP"
6438 fi
6439
6440
6441 old_CC="$CC"
6442 old_CFLAGS="$CFLAGS"
6443
6444 # Set sane defaults for various variables
6445 test -z "$AR" && AR=ar
6446 test -z "$AR_FLAGS" && AR_FLAGS=cru
6447 test -z "$AS" && AS=as
6448 test -z "$CC" && CC=cc
6449 test -z "$LTCC" && LTCC=$CC
6450 test -z "$DLLTOOL" && DLLTOOL=dlltool
6451 test -z "$LD" && LD=ld
6452 test -z "$LN_S" && LN_S="ln -s"
6453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6454 test -z "$NM" && NM=nm
6455 test -z "$SED" && SED=sed
6456 test -z "$OBJDUMP" && OBJDUMP=objdump
6457 test -z "$RANLIB" && RANLIB=:
6458 test -z "$STRIP" && STRIP=:
6459 test -z "$ac_objext" && ac_objext=o
6460
6461 # Determine commands to create old-style static archives.
6462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6463 old_postinstall_cmds='chmod 644 $oldlib'
6464 old_postuninstall_cmds=
6465
6466 if test -n "$RANLIB"; then
6467   case $host_os in
6468   openbsd*)
6469     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6470     ;;
6471   *)
6472     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6473     ;;
6474   esac
6475   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6476 fi
6477
6478 # Only perform the check for file, if the check method requires it
6479 case $deplibs_check_method in
6480 file_magic*)
6481   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6482     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6483 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6484 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   case $MAGIC_CMD in
6488 [\\/*] |  ?:[\\/]*)
6489   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6490   ;;
6491 *)
6492   lt_save_MAGIC_CMD="$MAGIC_CMD"
6493   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6495   for ac_dir in $ac_dummy; do
6496     IFS="$lt_save_ifs"
6497     test -z "$ac_dir" && ac_dir=.
6498     if test -f $ac_dir/${ac_tool_prefix}file; then
6499       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6500       if test -n "$file_magic_test_file"; then
6501         case $deplibs_check_method in
6502         "file_magic "*)
6503           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6504           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6506             $EGREP "$file_magic_regex" > /dev/null; then
6507             :
6508           else
6509             cat <<EOF 1>&2
6510
6511 *** Warning: the command libtool uses to detect shared libraries,
6512 *** $file_magic_cmd, produces output that libtool cannot recognize.
6513 *** The result is that libtool may fail to recognize shared libraries
6514 *** as such.  This will affect the creation of libtool libraries that
6515 *** depend on shared libraries, but programs linked with such libtool
6516 *** libraries will work regardless of this problem.  Nevertheless, you
6517 *** may want to report the problem to your system manager and/or to
6518 *** bug-libtool@gnu.org
6519
6520 EOF
6521           fi ;;
6522         esac
6523       fi
6524       break
6525     fi
6526   done
6527   IFS="$lt_save_ifs"
6528   MAGIC_CMD="$lt_save_MAGIC_CMD"
6529   ;;
6530 esac
6531 fi
6532
6533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6534 if test -n "$MAGIC_CMD"; then
6535   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6536 echo "${ECHO_T}$MAGIC_CMD" >&6
6537 else
6538   echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6540 fi
6541
6542 if test -z "$lt_cv_path_MAGIC_CMD"; then
6543   if test -n "$ac_tool_prefix"; then
6544     echo "$as_me:$LINENO: checking for file" >&5
6545 echo $ECHO_N "checking for file... $ECHO_C" >&6
6546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   case $MAGIC_CMD in
6550 [\\/*] |  ?:[\\/]*)
6551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6552   ;;
6553 *)
6554   lt_save_MAGIC_CMD="$MAGIC_CMD"
6555   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6556   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6557   for ac_dir in $ac_dummy; do
6558     IFS="$lt_save_ifs"
6559     test -z "$ac_dir" && ac_dir=.
6560     if test -f $ac_dir/file; then
6561       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6562       if test -n "$file_magic_test_file"; then
6563         case $deplibs_check_method in
6564         "file_magic "*)
6565           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6566           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6568             $EGREP "$file_magic_regex" > /dev/null; then
6569             :
6570           else
6571             cat <<EOF 1>&2
6572
6573 *** Warning: the command libtool uses to detect shared libraries,
6574 *** $file_magic_cmd, produces output that libtool cannot recognize.
6575 *** The result is that libtool may fail to recognize shared libraries
6576 *** as such.  This will affect the creation of libtool libraries that
6577 *** depend on shared libraries, but programs linked with such libtool
6578 *** libraries will work regardless of this problem.  Nevertheless, you
6579 *** may want to report the problem to your system manager and/or to
6580 *** bug-libtool@gnu.org
6581
6582 EOF
6583           fi ;;
6584         esac
6585       fi
6586       break
6587     fi
6588   done
6589   IFS="$lt_save_ifs"
6590   MAGIC_CMD="$lt_save_MAGIC_CMD"
6591   ;;
6592 esac
6593 fi
6594
6595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6596 if test -n "$MAGIC_CMD"; then
6597   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6598 echo "${ECHO_T}$MAGIC_CMD" >&6
6599 else
6600   echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6
6602 fi
6603
6604   else
6605     MAGIC_CMD=:
6606   fi
6607 fi
6608
6609   fi
6610   ;;
6611 esac
6612
6613 enable_dlopen=no
6614 enable_win32_dll=yes
6615
6616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6617 if test "${enable_libtool_lock+set}" = set; then
6618   enableval="$enable_libtool_lock"
6619
6620 fi;
6621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6622
6623
6624 # Check whether --with-pic or --without-pic was given.
6625 if test "${with_pic+set}" = set; then
6626   withval="$with_pic"
6627   pic_mode="$withval"
6628 else
6629   pic_mode=default
6630 fi;
6631 test -z "$pic_mode" && pic_mode=default
6632
6633 # Use C for the default configuration in the libtool script
6634 tagname=
6635 lt_save_CC="$CC"
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642
6643 # Source file extension for C test sources.
6644 ac_ext=c
6645
6646 # Object file extension for compiled C test sources.
6647 objext=o
6648 objext=$objext
6649
6650 # Code to be used in simple compile tests
6651 lt_simple_compile_test_code="int some_variable = 0;\n"
6652
6653 # Code to be used in simple link tests
6654 lt_simple_link_test_code='int main(){return(0);}\n'
6655
6656
6657 # If no C compiler was specified, use CC.
6658 LTCC=${LTCC-"$CC"}
6659
6660 # Allow CC to be a program name with arguments.
6661 compiler=$CC
6662
6663
6664 #
6665 # Check for any special shared library compilation flags.
6666 #
6667 lt_prog_cc_shlib=
6668 if test "$GCC" = no; then
6669   case $host_os in
6670   sco3.2v5*)
6671     lt_prog_cc_shlib='-belf'
6672     ;;
6673   esac
6674 fi
6675 if test -n "$lt_prog_cc_shlib"; then
6676   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6677 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6678   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6679   else
6680     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6681 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6682     lt_cv_prog_cc_can_build_shared=no
6683   fi
6684 fi
6685
6686
6687 #
6688 # Check to make sure the static flag actually works.
6689 #
6690 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6691 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6692 if test "${lt_prog_compiler_static_works+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   lt_prog_compiler_static_works=no
6696    save_LDFLAGS="$LDFLAGS"
6697    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6698    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6699    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6700      # The compiler can only warn and ignore the option if not recognized
6701      # So say no if there are warnings
6702      if test -s conftest.err; then
6703        # Append any errors to the config.log.
6704        cat conftest.err 1>&5
6705      else
6706        lt_prog_compiler_static_works=yes
6707      fi
6708    fi
6709    $rm conftest*
6710    LDFLAGS="$save_LDFLAGS"
6711
6712 fi
6713 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6714 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6715
6716 if test x"$lt_prog_compiler_static_works" = xyes; then
6717     :
6718 else
6719     lt_prog_compiler_static=
6720 fi
6721
6722
6723
6724 ## CAVEAT EMPTOR:
6725 ## There is no encapsulation within the following macros, do not change
6726 ## the running order or otherwise move them around unless you know exactly
6727 ## what you are doing...
6728
6729 lt_prog_compiler_no_builtin_flag=
6730
6731 if test "$GCC" = yes; then
6732   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6733
6734   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6735 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6736 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   lt_cv_prog_compiler_rtti_exceptions=no
6740   ac_outfile=conftest.$ac_objext
6741    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6742    lt_compiler_flag="-fno-rtti -fno-exceptions"
6743    # Insert the option either (1) after the last *FLAGS variable, or
6744    # (2) before a word containing "conftest.", or (3) at the end.
6745    # Note that $ac_compile itself does not contain backslashes and begins
6746    # with a dollar sign (not a hyphen), so the echo should work correctly.
6747    # The option is referenced via a variable to avoid confusing sed.
6748    lt_compile=`echo "$ac_compile" | $SED \
6749    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6751    -e 's:$: $lt_compiler_flag:'`
6752    (eval echo "\"\$as_me:6752: $lt_compile\"" >&5)
6753    (eval "$lt_compile" 2>conftest.err)
6754    ac_status=$?
6755    cat conftest.err >&5
6756    echo "$as_me:6756: \$? = $ac_status" >&5
6757    if (exit $ac_status) && test -s "$ac_outfile"; then
6758      # The compiler can only warn and ignore the option if not recognized
6759      # So say no if there are warnings
6760      if test ! -s conftest.err; then
6761        lt_cv_prog_compiler_rtti_exceptions=yes
6762      fi
6763    fi
6764    $rm conftest*
6765
6766 fi
6767 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6768 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6769
6770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6771     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6772 else
6773     :
6774 fi
6775
6776 fi
6777
6778 lt_prog_compiler_wl=
6779 lt_prog_compiler_pic=
6780 lt_prog_compiler_static=
6781
6782 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6783 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6784
6785   if test "$GCC" = yes; then
6786     lt_prog_compiler_wl='-Wl,'
6787     lt_prog_compiler_static='-static'
6788
6789     case $host_os in
6790       aix*)
6791       # All AIX code is PIC.
6792       if test "$host_cpu" = ia64; then
6793         # AIX 5 now supports IA64 processor
6794         lt_prog_compiler_static='-Bstatic'
6795       fi
6796       ;;
6797
6798     amigaos*)
6799       # FIXME: we need at least 68020 code to build shared libraries, but
6800       # adding the `-m68020' flag to GCC prevents building anything better,
6801       # like `-m68040'.
6802       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6803       ;;
6804
6805     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6806       # PIC is the default for these OSes.
6807       ;;
6808
6809     mingw* | pw32* | os2*)
6810       # This hack is so that the source file can tell whether it is being
6811       # built for inclusion in a dll (and should export symbols for example).
6812       lt_prog_compiler_pic='-DDLL_EXPORT'
6813       ;;
6814
6815     darwin* | rhapsody*)
6816       # PIC is the default on this platform
6817       # Common symbols not allowed in MH_DYLIB files
6818       lt_prog_compiler_pic='-fno-common'
6819       ;;
6820
6821     msdosdjgpp*)
6822       # Just because we use GCC doesn't mean we suddenly get shared libraries
6823       # on systems that don't support them.
6824       lt_prog_compiler_can_build_shared=no
6825       enable_shared=no
6826       ;;
6827
6828     sysv4*MP*)
6829       if test -d /usr/nec; then
6830         lt_prog_compiler_pic=-Kconform_pic
6831       fi
6832       ;;
6833
6834     hpux*)
6835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6836       # not for PA HP-UX.
6837       case "$host_cpu" in
6838       hppa*64*|ia64*)
6839         # +Z the default
6840         ;;
6841       *)
6842         lt_prog_compiler_pic='-fPIC'
6843         ;;
6844       esac
6845       ;;
6846
6847     *)
6848       lt_prog_compiler_pic='-fPIC'
6849       ;;
6850     esac
6851   else
6852     # PORTME Check for flag to pass linker flags through the system compiler.
6853     case $host_os in
6854     aix*)
6855       lt_prog_compiler_wl='-Wl,'
6856       if test "$host_cpu" = ia64; then
6857         # AIX 5 now supports IA64 processor
6858         lt_prog_compiler_static='-Bstatic'
6859       else
6860         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6861       fi
6862       ;;
6863
6864     mingw* | pw32* | os2*)
6865       # This hack is so that the source file can tell whether it is being
6866       # built for inclusion in a dll (and should export symbols for example).
6867       lt_prog_compiler_pic='-DDLL_EXPORT'
6868       ;;
6869
6870     hpux9* | hpux10* | hpux11*)
6871       lt_prog_compiler_wl='-Wl,'
6872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6873       # not for PA HP-UX.
6874       case "$host_cpu" in
6875       hppa*64*|ia64*)
6876         # +Z the default
6877         ;;
6878       *)
6879         lt_prog_compiler_pic='+Z'
6880         ;;
6881       esac
6882       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6883       lt_prog_compiler_static='${wl}-a ${wl}archive'
6884       ;;
6885
6886     irix5* | irix6* | nonstopux*)
6887       lt_prog_compiler_wl='-Wl,'
6888       # PIC (with -KPIC) is the default.
6889       lt_prog_compiler_static='-non_shared'
6890       ;;
6891
6892     newsos6)
6893       lt_prog_compiler_pic='-KPIC'
6894       lt_prog_compiler_static='-Bstatic'
6895       ;;
6896
6897     linux*)
6898       case $CC in
6899       icc|ecc)
6900         lt_prog_compiler_wl='-Wl,'
6901         lt_prog_compiler_pic='-KPIC'
6902         lt_prog_compiler_static='-static'
6903         ;;
6904       ccc)
6905         lt_prog_compiler_wl='-Wl,'
6906         # All Alpha code is PIC.
6907         lt_prog_compiler_static='-non_shared'
6908         ;;
6909       esac
6910       ;;
6911
6912     osf3* | osf4* | osf5*)
6913       lt_prog_compiler_wl='-Wl,'
6914       # All OSF/1 code is PIC.
6915       lt_prog_compiler_static='-non_shared'
6916       ;;
6917
6918     sco3.2v5*)
6919       lt_prog_compiler_pic='-Kpic'
6920       lt_prog_compiler_static='-dn'
6921       ;;
6922
6923     solaris*)
6924       lt_prog_compiler_wl='-Wl,'
6925       lt_prog_compiler_pic='-KPIC'
6926       lt_prog_compiler_static='-Bstatic'
6927       ;;
6928
6929     sunos4*)
6930       lt_prog_compiler_wl='-Qoption ld '
6931       lt_prog_compiler_pic='-PIC'
6932       lt_prog_compiler_static='-Bstatic'
6933       ;;
6934
6935     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6936       lt_prog_compiler_wl='-Wl,'
6937       lt_prog_compiler_pic='-KPIC'
6938       lt_prog_compiler_static='-Bstatic'
6939       ;;
6940
6941     sysv4*MP*)
6942       if test -d /usr/nec ;then
6943         lt_prog_compiler_pic='-Kconform_pic'
6944         lt_prog_compiler_static='-Bstatic'
6945       fi
6946       ;;
6947
6948     uts4*)
6949       lt_prog_compiler_pic='-pic'
6950       lt_prog_compiler_static='-Bstatic'
6951       ;;
6952
6953     *)
6954       lt_prog_compiler_can_build_shared=no
6955       ;;
6956     esac
6957   fi
6958
6959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6960 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6961
6962 #
6963 # Check to make sure the PIC flag actually works.
6964 #
6965 if test -n "$lt_prog_compiler_pic"; then
6966   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6968 if test "${lt_prog_compiler_pic_works+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   lt_prog_compiler_pic_works=no
6972   ac_outfile=conftest.$ac_objext
6973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6974    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6975    # Insert the option either (1) after the last *FLAGS variable, or
6976    # (2) before a word containing "conftest.", or (3) at the end.
6977    # Note that $ac_compile itself does not contain backslashes and begins
6978    # with a dollar sign (not a hyphen), so the echo should work correctly.
6979    # The option is referenced via a variable to avoid confusing sed.
6980    lt_compile=`echo "$ac_compile" | $SED \
6981    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6983    -e 's:$: $lt_compiler_flag:'`
6984    (eval echo "\"\$as_me:6984: $lt_compile\"" >&5)
6985    (eval "$lt_compile" 2>conftest.err)
6986    ac_status=$?
6987    cat conftest.err >&5
6988    echo "$as_me:6988: \$? = $ac_status" >&5
6989    if (exit $ac_status) && test -s "$ac_outfile"; then
6990      # The compiler can only warn and ignore the option if not recognized
6991      # So say no if there are warnings
6992      if test ! -s conftest.err; then
6993        lt_prog_compiler_pic_works=yes
6994      fi
6995    fi
6996    $rm conftest*
6997
6998 fi
6999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7000 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7001
7002 if test x"$lt_prog_compiler_pic_works" = xyes; then
7003     case $lt_prog_compiler_pic in
7004      "" | " "*) ;;
7005      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7006      esac
7007 else
7008     lt_prog_compiler_pic=
7009      lt_prog_compiler_can_build_shared=no
7010 fi
7011
7012 fi
7013 case "$host_os" in
7014   # For platforms which do not support PIC, -DPIC is meaningless:
7015   *djgpp*)
7016     lt_prog_compiler_pic=
7017     ;;
7018   *)
7019     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7020     ;;
7021 esac
7022
7023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7025 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   lt_cv_prog_compiler_c_o=no
7029    $rm -r conftest 2>/dev/null
7030    mkdir conftest
7031    cd conftest
7032    mkdir out
7033    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7034
7035    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7036    # that will create temporary files in the current directory regardless of
7037    # the output directory.  Thus, making CWD read-only will cause this test
7038    # to fail, enabling locking or at least warning the user not to do parallel
7039    # builds.
7040    chmod -w .
7041
7042    lt_compiler_flag="-o out/conftest2.$ac_objext"
7043    # Insert the option either (1) after the last *FLAGS variable, or
7044    # (2) before a word containing "conftest.", or (3) at the end.
7045    # Note that $ac_compile itself does not contain backslashes and begins
7046    # with a dollar sign (not a hyphen), so the echo should work correctly.
7047    lt_compile=`echo "$ac_compile" | $SED \
7048    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050    -e 's:$: $lt_compiler_flag:'`
7051    (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052    (eval "$lt_compile" 2>out/conftest.err)
7053    ac_status=$?
7054    cat out/conftest.err >&5
7055    echo "$as_me:7055: \$? = $ac_status" >&5
7056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7057    then
7058      # The compiler can only warn and ignore the option if not recognized
7059      # So say no if there are warnings
7060      if test ! -s out/conftest.err; then
7061        lt_cv_prog_compiler_c_o=yes
7062      fi
7063    fi
7064    chmod u+w .
7065    $rm conftest* out/*
7066    rmdir out
7067    cd ..
7068    rmdir conftest
7069    $rm conftest*
7070
7071 fi
7072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7074
7075
7076 hard_links="nottested"
7077 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7078   # do not overwrite the value of need_locks provided by the user
7079   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7081   hard_links=yes
7082   $rm conftest*
7083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7084   touch conftest.a
7085   ln conftest.a conftest.b 2>&5 || hard_links=no
7086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7087   echo "$as_me:$LINENO: result: $hard_links" >&5
7088 echo "${ECHO_T}$hard_links" >&6
7089   if test "$hard_links" = no; then
7090     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7092     need_locks=warn
7093   fi
7094 else
7095   need_locks=no
7096 fi
7097
7098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7100
7101   runpath_var=
7102   allow_undefined_flag=
7103   enable_shared_with_static_runtimes=no
7104   archive_cmds=
7105   archive_expsym_cmds=
7106   old_archive_From_new_cmds=
7107   old_archive_from_expsyms_cmds=
7108   export_dynamic_flag_spec=
7109   whole_archive_flag_spec=
7110   thread_safe_flag_spec=
7111   hardcode_libdir_flag_spec=
7112   hardcode_libdir_flag_spec_ld=
7113   hardcode_libdir_separator=
7114   hardcode_direct=no
7115   hardcode_minus_L=no
7116   hardcode_shlibpath_var=unsupported
7117   link_all_deplibs=unknown
7118   hardcode_automatic=no
7119   module_cmds=
7120   module_expsym_cmds=
7121   always_export_symbols=no
7122   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7123   # include_expsyms should be a list of space-separated symbols to be *always*
7124   # included in the symbol list
7125   include_expsyms=
7126   # exclude_expsyms can be an extended regexp of symbols to exclude
7127   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7128   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7129   # as well as any symbol that contains `d'.
7130   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7131   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7132   # platforms (ab)use it in PIC code, but their linkers get confused if
7133   # the symbol is explicitly referenced.  Since portable code cannot
7134   # rely on this symbol name, it's probably fine to never include it in
7135   # preloaded symbol tables.
7136   extract_expsyms_cmds=
7137
7138   case $host_os in
7139   cygwin* | mingw* | pw32*)
7140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7141     # When not using gcc, we currently assume that we are using
7142     # Microsoft Visual C++.
7143     if test "$GCC" != yes; then
7144       with_gnu_ld=no
7145     fi
7146     ;;
7147   openbsd*)
7148     with_gnu_ld=no
7149     ;;
7150   esac
7151
7152   ld_shlibs=yes
7153   if test "$with_gnu_ld" = yes; then
7154     # If archive_cmds runs LD, not CC, wlarc should be empty
7155     wlarc='${wl}'
7156
7157     # See if GNU ld supports shared libraries.
7158     case $host_os in
7159     aix3* | aix4* | aix5*)
7160       # On AIX/PPC, the GNU linker is very broken
7161       if test "$host_cpu" != ia64; then
7162         ld_shlibs=no
7163         cat <<EOF 1>&2
7164
7165 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7166 *** to be unable to reliably create shared libraries on AIX.
7167 *** Therefore, libtool is disabling shared libraries support.  If you
7168 *** really care for shared libraries, you may want to modify your PATH
7169 *** so that a non-GNU linker is found, and then restart.
7170
7171 EOF
7172       fi
7173       ;;
7174
7175     amigaos*)
7176       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)'
7177       hardcode_libdir_flag_spec='-L$libdir'
7178       hardcode_minus_L=yes
7179
7180       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7181       # that the semantics of dynamic libraries on AmigaOS, at least up
7182       # to version 4, is to share data among multiple programs linked
7183       # with the same dynamic library.  Since this doesn't match the
7184       # behavior of shared libraries on other platforms, we can't use
7185       # them.
7186       ld_shlibs=no
7187       ;;
7188
7189     beos*)
7190       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7191         allow_undefined_flag=unsupported
7192         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7193         # support --undefined.  This deserves some investigation.  FIXME
7194         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7195       else
7196         ld_shlibs=no
7197       fi
7198       ;;
7199
7200     cygwin* | mingw* | pw32*)
7201       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7202       # as there is no search path for DLLs.
7203       hardcode_libdir_flag_spec='-L$libdir'
7204       allow_undefined_flag=unsupported
7205       always_export_symbols=no
7206       enable_shared_with_static_runtimes=yes
7207       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7208
7209       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7211         # If the export-symbols file already is a .def file (1st line
7212         # is EXPORTS), use it as is; otherwise, prepend...
7213         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7214           cp $export_symbols $output_objdir/$soname.def;
7215         else
7216           echo EXPORTS > $output_objdir/$soname.def;
7217           cat $export_symbols >> $output_objdir/$soname.def;
7218         fi~
7219         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7220       else
7221         ld_shlibs=no
7222       fi
7223       ;;
7224
7225     netbsd*)
7226       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7227         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7228         wlarc=
7229       else
7230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7231         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7232       fi
7233       ;;
7234
7235     solaris* | sysv5*)
7236       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7237         ld_shlibs=no
7238         cat <<EOF 1>&2
7239
7240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7241 *** create shared libraries on Solaris systems.  Therefore, libtool
7242 *** is disabling shared libraries support.  We urge you to upgrade GNU
7243 *** binutils to release 2.9.1 or newer.  Another option is to modify
7244 *** your PATH or compiler configuration so that the native linker is
7245 *** used, and then restart.
7246
7247 EOF
7248       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7251       else
7252         ld_shlibs=no
7253       fi
7254       ;;
7255
7256     sunos4*)
7257       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7258       wlarc=
7259       hardcode_direct=yes
7260       hardcode_shlibpath_var=no
7261       ;;
7262
7263     *)
7264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7266         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7267       else
7268         ld_shlibs=no
7269       fi
7270       ;;
7271     esac
7272
7273     if test "$ld_shlibs" = yes; then
7274       runpath_var=LD_RUN_PATH
7275       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7276       export_dynamic_flag_spec='${wl}--export-dynamic'
7277       # ancient GNU ld didn't support --whole-archive et. al.
7278       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7279         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7280       else
7281         whole_archive_flag_spec=
7282       fi
7283     fi
7284   else
7285     # PORTME fill in a description of your system's linker (not GNU ld)
7286     case $host_os in
7287     aix3*)
7288       allow_undefined_flag=unsupported
7289       always_export_symbols=yes
7290       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'
7291       # Note: this linker hardcodes the directories in LIBPATH if there
7292       # are no directories specified by -L.
7293       hardcode_minus_L=yes
7294       if test "$GCC" = yes && test -z "$link_static_flag"; then
7295         # Neither direct hardcoding nor static linking is supported with a
7296         # broken collect2.
7297         hardcode_direct=unsupported
7298       fi
7299       ;;
7300
7301     aix4* | aix5*)
7302       if test "$host_cpu" = ia64; then
7303         # On IA64, the linker does run time linking by default, so we don't
7304         # have to do anything special.
7305         aix_use_runtimelinking=no
7306         exp_sym_flag='-Bexport'
7307         no_entry_flag=""
7308       else
7309         # If we're using GNU nm, then we don't want the "-C" option.
7310         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7311         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7312           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'
7313         else
7314           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'
7315         fi
7316         aix_use_runtimelinking=no
7317
7318         # Test if we are trying to use run time linking or normal
7319         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7320         # need to do runtime linking.
7321         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7322           for ld_flag in $LDFLAGS; do
7323           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7324             aix_use_runtimelinking=yes
7325             break
7326           fi
7327           done
7328         esac
7329
7330         exp_sym_flag='-bexport'
7331         no_entry_flag='-bnoentry'
7332       fi
7333
7334       # When large executables or shared objects are built, AIX ld can
7335       # have problems creating the table of contents.  If linking a library
7336       # or program results in "error TOC overflow" add -mminimal-toc to
7337       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7338       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7339
7340       archive_cmds=''
7341       hardcode_direct=yes
7342       hardcode_libdir_separator=':'
7343       link_all_deplibs=yes
7344
7345       if test "$GCC" = yes; then
7346         case $host_os in aix4.012|aix4.012.*)
7347         # We only want to do this on AIX 4.2 and lower, the check
7348         # below for broken collect2 doesn't work under 4.3+
7349           collect2name=`${CC} -print-prog-name=collect2`
7350           if test -f "$collect2name" && \
7351            strings "$collect2name" | grep resolve_lib_name >/dev/null
7352           then
7353           # We have reworked collect2
7354           hardcode_direct=yes
7355           else
7356           # We have old collect2
7357           hardcode_direct=unsupported
7358           # It fails to find uninstalled libraries when the uninstalled
7359           # path is not listed in the libpath.  Setting hardcode_minus_L
7360           # to unsupported forces relinking
7361           hardcode_minus_L=yes
7362           hardcode_libdir_flag_spec='-L$libdir'
7363           hardcode_libdir_separator=
7364           fi
7365         esac
7366         shared_flag='-shared'
7367       else
7368         # not using gcc
7369         if test "$host_cpu" = ia64; then
7370         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7371         # chokes on -Wl,-G. The following line is correct:
7372           shared_flag='-G'
7373         else
7374         if test "$aix_use_runtimelinking" = yes; then
7375             shared_flag='${wl}-G'
7376           else
7377             shared_flag='${wl}-bM:SRE'
7378         fi
7379         fi
7380       fi
7381
7382       # It seems that -bexpall does not export symbols beginning with
7383       # underscore (_), so it is better to generate a list of symbols to export.
7384       always_export_symbols=yes
7385       if test "$aix_use_runtimelinking" = yes; then
7386         # Warning - without using the other runtime loading flags (-brtl),
7387         # -berok will link without error, but may produce a broken library.
7388         allow_undefined_flag='-berok'
7389        # Determine the default libpath from the value encoded in an empty executable.
7390        cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396
7397 int
7398 main ()
7399 {
7400
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407   (eval $ac_link) 2>conftest.er1
7408   ac_status=$?
7409   grep -v '^ *+' conftest.er1 >conftest.err
7410   rm -f conftest.er1
7411   cat conftest.err >&5
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } &&
7414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416   (eval $ac_try) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); }; } &&
7420          { ac_try='test -s conftest$ac_exeext'
7421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422   (eval $ac_try) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); }; }; then
7426
7427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7428 }'`
7429 # Check for a 64-bit object if we didn't find anything.
7430 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; }
7431 }'`; fi
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 fi
7437 rm -f conftest.err conftest.$ac_objext \
7438       conftest$ac_exeext conftest.$ac_ext
7439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7440
7441        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7442         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"
7443        else
7444         if test "$host_cpu" = ia64; then
7445           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7446           allow_undefined_flag="-z nodefs"
7447           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"
7448         else
7449          # Determine the default libpath from the value encoded in an empty executable.
7450          cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456
7457 int
7458 main ()
7459 {
7460
7461   ;
7462   return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7467   (eval $ac_link) 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } &&
7474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; } &&
7480          { ac_try='test -s conftest$ac_exeext'
7481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482   (eval $ac_try) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486
7487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7488 }'`
7489 # Check for a 64-bit object if we didn't find anything.
7490 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; }
7491 }'`; fi
7492 else
7493   echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496 fi
7497 rm -f conftest.err conftest.$ac_objext \
7498       conftest$ac_exeext conftest.$ac_ext
7499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7500
7501          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7502           # Warning - without using the other run time loading flags,
7503           # -berok will link without error, but may produce a broken library.
7504           no_undefined_flag=' ${wl}-bernotok'
7505           allow_undefined_flag=' ${wl}-berok'
7506           # -bexpall does not export symbols beginning with underscore (_)
7507           always_export_symbols=yes
7508           # Exported symbols can be pulled into shared objects from archives
7509           whole_archive_flag_spec=' '
7510           archive_cmds_need_lc=yes
7511           # This is similar to how AIX traditionally builds it's shared libraries.
7512           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'
7513         fi
7514       fi
7515       ;;
7516
7517     amigaos*)
7518       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)'
7519       hardcode_libdir_flag_spec='-L$libdir'
7520       hardcode_minus_L=yes
7521       # see comment about different semantics on the GNU ld section
7522       ld_shlibs=no
7523       ;;
7524
7525     bsdi4*)
7526       export_dynamic_flag_spec=-rdynamic
7527       ;;
7528
7529     cygwin* | mingw* | pw32*)
7530       # When not using gcc, we currently assume that we are using
7531       # Microsoft Visual C++.
7532       # hardcode_libdir_flag_spec is actually meaningless, as there is
7533       # no search path for DLLs.
7534       hardcode_libdir_flag_spec=' '
7535       allow_undefined_flag=unsupported
7536       # Tell ltmain to make .lib files, not .a files.
7537       libext=lib
7538       # Tell ltmain to make .dll files, not .so files.
7539       shrext=".dll"
7540       # FIXME: Setting linknames here is a bad hack.
7541       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7542       # The linker will automatically build a .lib file if we build a DLL.
7543       old_archive_From_new_cmds='true'
7544       # FIXME: Should let the user specify the lib program.
7545       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7546       fix_srcfile_path='`cygpath -w "$srcfile"`'
7547       enable_shared_with_static_runtimes=yes
7548       ;;
7549
7550     darwin* | rhapsody*)
7551     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7552       archive_cmds_need_lc=no
7553       case "$host_os" in
7554       rhapsody* | darwin1.[012])
7555         allow_undefined_flag='-undefined suppress'
7556         ;;
7557       *) # Darwin 1.3 on
7558         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7559         ;;
7560       esac
7561       # FIXME: Relying on posixy $() will cause problems for
7562       #        cross-compilation, but unfortunately the echo tests do not
7563       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7564       #        `"' quotes if we put them in here... so don't!
7565         lt_int_apple_cc_single_mod=no
7566         output_verbose_link_cmd='echo'
7567         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7568           lt_int_apple_cc_single_mod=yes
7569         fi
7570         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7571           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7572         else
7573         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7574       fi
7575       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7576       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7577         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7578           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7579         else
7580           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7581         fi
7582           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7583       hardcode_direct=no
7584       hardcode_automatic=yes
7585       hardcode_shlibpath_var=unsupported
7586       whole_archive_flag_spec='-all_load $convenience'
7587       link_all_deplibs=yes
7588     fi
7589       ;;
7590
7591     dgux*)
7592       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7593       hardcode_libdir_flag_spec='-L$libdir'
7594       hardcode_shlibpath_var=no
7595       ;;
7596
7597     freebsd1*)
7598       ld_shlibs=no
7599       ;;
7600
7601     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7602     # support.  Future versions do this automatically, but an explicit c++rt0.o
7603     # does not break anything, and helps significantly (at the cost of a little
7604     # extra space).
7605     freebsd2.2*)
7606       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7607       hardcode_libdir_flag_spec='-R$libdir'
7608       hardcode_direct=yes
7609       hardcode_shlibpath_var=no
7610       ;;
7611
7612     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7613     freebsd2*)
7614       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7615       hardcode_direct=yes
7616       hardcode_minus_L=yes
7617       hardcode_shlibpath_var=no
7618       ;;
7619
7620     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7621     freebsd*)
7622       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7623       hardcode_libdir_flag_spec='-R$libdir'
7624       hardcode_direct=yes
7625       hardcode_shlibpath_var=no
7626       ;;
7627
7628     hpux9*)
7629       if test "$GCC" = yes; then
7630         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'
7631       else
7632         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'
7633       fi
7634       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7635       hardcode_libdir_separator=:
7636       hardcode_direct=yes
7637
7638       # hardcode_minus_L: Not really in the search PATH,
7639       # but as the default location of the library.
7640       hardcode_minus_L=yes
7641       export_dynamic_flag_spec='${wl}-E'
7642       ;;
7643
7644     hpux10* | hpux11*)
7645       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7646         case "$host_cpu" in
7647         hppa*64*|ia64*)
7648           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7649           ;;
7650         *)
7651           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7652           ;;
7653         esac
7654       else
7655         case "$host_cpu" in
7656         hppa*64*|ia64*)
7657           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7658           ;;
7659         *)
7660           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7661           ;;
7662         esac
7663       fi
7664       if test "$with_gnu_ld" = no; then
7665         case "$host_cpu" in
7666         hppa*64*)
7667           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7668           hardcode_libdir_flag_spec_ld='+b $libdir'
7669           hardcode_libdir_separator=:
7670           hardcode_direct=no
7671           hardcode_shlibpath_var=no
7672           ;;
7673         ia64*)
7674           hardcode_libdir_flag_spec='-L$libdir'
7675           hardcode_direct=no
7676           hardcode_shlibpath_var=no
7677
7678           # hardcode_minus_L: Not really in the search PATH,
7679           # but as the default location of the library.
7680           hardcode_minus_L=yes
7681           ;;
7682         *)
7683           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7684           hardcode_libdir_separator=:
7685           hardcode_direct=yes
7686           export_dynamic_flag_spec='${wl}-E'
7687
7688           # hardcode_minus_L: Not really in the search PATH,
7689           # but as the default location of the library.
7690           hardcode_minus_L=yes
7691           ;;
7692         esac
7693       fi
7694       ;;
7695
7696     irix5* | irix6* | nonstopux*)
7697       if test "$GCC" = yes; then
7698         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'
7699       else
7700         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'
7701         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7702       fi
7703       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7704       hardcode_libdir_separator=:
7705       link_all_deplibs=yes
7706       ;;
7707
7708     netbsd*)
7709       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7710         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7711       else
7712         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7713       fi
7714       hardcode_libdir_flag_spec='-R$libdir'
7715       hardcode_direct=yes
7716       hardcode_shlibpath_var=no
7717       ;;
7718
7719     newsos6)
7720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721       hardcode_direct=yes
7722       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7723       hardcode_libdir_separator=:
7724       hardcode_shlibpath_var=no
7725       ;;
7726
7727     openbsd*)
7728       hardcode_direct=yes
7729       hardcode_shlibpath_var=no
7730       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7731         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7732         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7733         export_dynamic_flag_spec='${wl}-E'
7734       else
7735        case $host_os in
7736          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7737            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7738            hardcode_libdir_flag_spec='-R$libdir'
7739            ;;
7740          *)
7741            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7742            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7743            ;;
7744        esac
7745       fi
7746       ;;
7747
7748     os2*)
7749       hardcode_libdir_flag_spec='-L$libdir'
7750       hardcode_minus_L=yes
7751       allow_undefined_flag=unsupported
7752       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'
7753       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7754       ;;
7755
7756     osf3*)
7757       if test "$GCC" = yes; then
7758         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7759         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'
7760       else
7761         allow_undefined_flag=' -expect_unresolved \*'
7762         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'
7763       fi
7764       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7765       hardcode_libdir_separator=:
7766       ;;
7767
7768     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7769       if test "$GCC" = yes; then
7770         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7771         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'
7772         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7773       else
7774         allow_undefined_flag=' -expect_unresolved \*'
7775         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'
7776         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7777         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7778
7779         # Both c and cxx compiler support -rpath directly
7780         hardcode_libdir_flag_spec='-rpath $libdir'
7781       fi
7782       hardcode_libdir_separator=:
7783       ;;
7784
7785     sco3.2v5*)
7786       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7787       hardcode_shlibpath_var=no
7788       export_dynamic_flag_spec='${wl}-Bexport'
7789       runpath_var=LD_RUN_PATH
7790       hardcode_runpath_var=yes
7791       ;;
7792
7793     solaris*)
7794       no_undefined_flag=' -z text'
7795       if test "$GCC" = yes; then
7796         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7797         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7798           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7799       else
7800         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7801         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7802         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7803       fi
7804       hardcode_libdir_flag_spec='-R$libdir'
7805       hardcode_shlibpath_var=no
7806       case $host_os in
7807       solaris2.[0-5] | solaris2.[0-5].*) ;;
7808       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7809         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7810       esac
7811       link_all_deplibs=yes
7812       ;;
7813
7814     sunos4*)
7815       if test "x$host_vendor" = xsequent; then
7816         # Use $CC to link under sequent, because it throws in some extra .o
7817         # files that make .init and .fini sections work.
7818         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7819       else
7820         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7821       fi
7822       hardcode_libdir_flag_spec='-L$libdir'
7823       hardcode_direct=yes
7824       hardcode_minus_L=yes
7825       hardcode_shlibpath_var=no
7826       ;;
7827
7828     sysv4)
7829       case $host_vendor in
7830         sni)
7831           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832           hardcode_direct=yes # is this really true???
7833         ;;
7834         siemens)
7835           ## LD is ld it makes a PLAMLIB
7836           ## CC just makes a GrossModule.
7837           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7838           reload_cmds='$CC -r -o $output$reload_objs'
7839           hardcode_direct=no
7840         ;;
7841         motorola)
7842           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7844         ;;
7845       esac
7846       runpath_var='LD_RUN_PATH'
7847       hardcode_shlibpath_var=no
7848       ;;
7849
7850     sysv4.3*)
7851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7852       hardcode_shlibpath_var=no
7853       export_dynamic_flag_spec='-Bexport'
7854       ;;
7855
7856     sysv4*MP*)
7857       if test -d /usr/nec; then
7858         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7859         hardcode_shlibpath_var=no
7860         runpath_var=LD_RUN_PATH
7861         hardcode_runpath_var=yes
7862         ld_shlibs=yes
7863       fi
7864       ;;
7865
7866     sysv4.2uw2*)
7867       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7868       hardcode_direct=yes
7869       hardcode_minus_L=no
7870       hardcode_shlibpath_var=no
7871       hardcode_runpath_var=yes
7872       runpath_var=LD_RUN_PATH
7873       ;;
7874
7875    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7876       no_undefined_flag='${wl}-z ${wl}text'
7877       if test "$GCC" = yes; then
7878         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879       else
7880         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7881       fi
7882       runpath_var='LD_RUN_PATH'
7883       hardcode_shlibpath_var=no
7884       ;;
7885
7886     sysv5*)
7887       no_undefined_flag=' -z text'
7888       # $CC -shared without GNU ld will not create a library from C++
7889       # object files and a static libstdc++, better avoid it by now
7890       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893       hardcode_libdir_flag_spec=
7894       hardcode_shlibpath_var=no
7895       runpath_var='LD_RUN_PATH'
7896       ;;
7897
7898     uts4*)
7899       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7900       hardcode_libdir_flag_spec='-L$libdir'
7901       hardcode_shlibpath_var=no
7902       ;;
7903
7904     *)
7905       ld_shlibs=no
7906       ;;
7907     esac
7908   fi
7909
7910 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7911 echo "${ECHO_T}$ld_shlibs" >&6
7912 test "$ld_shlibs" = no && can_build_shared=no
7913
7914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7915 if test "$GCC" = yes; then
7916   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7917 fi
7918
7919 #
7920 # Do we need to explicitly link libc?
7921 #
7922 case "x$archive_cmds_need_lc" in
7923 x|xyes)
7924   # Assume -lc should be added
7925   archive_cmds_need_lc=yes
7926
7927   if test "$enable_shared" = yes && test "$GCC" = yes; then
7928     case $archive_cmds in
7929     *'~'*)
7930       # FIXME: we may have to deal with multi-command sequences.
7931       ;;
7932     '$CC '*)
7933       # Test whether the compiler implicitly links with -lc since on some
7934       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7935       # to ld, don't add -lc before -lgcc.
7936       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7937 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7938       $rm conftest*
7939       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7940
7941       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942   (eval $ac_compile) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } 2>conftest.err; then
7946         soname=conftest
7947         lib=conftest
7948         libobjs=conftest.$ac_objext
7949         deplibs=
7950         wl=$lt_prog_compiler_wl
7951         compiler_flags=-v
7952         linker_flags=-v
7953         verstring=
7954         output_objdir=.
7955         libname=conftest
7956         lt_save_allow_undefined_flag=$allow_undefined_flag
7957         allow_undefined_flag=
7958         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7959   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }
7963         then
7964           archive_cmds_need_lc=no
7965         else
7966           archive_cmds_need_lc=yes
7967         fi
7968         allow_undefined_flag=$lt_save_allow_undefined_flag
7969       else
7970         cat conftest.err 1>&5
7971       fi
7972       $rm conftest*
7973       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7974 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7975       ;;
7976     esac
7977   fi
7978   ;;
7979 esac
7980
7981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7983 hardcode_action=
7984 if test -n "$hardcode_libdir_flag_spec" || \
7985    test -n "$runpath_var " || \
7986    test "X$hardcode_automatic"="Xyes" ; then
7987
7988   # We can hardcode non-existant directories.
7989   if test "$hardcode_direct" != no &&
7990      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7991      # have to relink, otherwise we might link with an installed library
7992      # when we should be linking with a yet-to-be-installed one
7993      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7994      test "$hardcode_minus_L" != no; then
7995     # Linking always hardcodes the temporary library directory.
7996     hardcode_action=relink
7997   else
7998     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7999     hardcode_action=immediate
8000   fi
8001 else
8002   # We cannot hardcode anything, or else we can only hardcode existing
8003   # directories.
8004   hardcode_action=unsupported
8005 fi
8006 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8007 echo "${ECHO_T}$hardcode_action" >&6
8008
8009 if test "$hardcode_action" = relink; then
8010   # Fast installation is not supported
8011   enable_fast_install=no
8012 elif test "$shlibpath_overrides_runpath" = yes ||
8013      test "$enable_shared" = no; then
8014   # Fast installation is not necessary
8015   enable_fast_install=needless
8016 fi
8017
8018 striplib=
8019 old_striplib=
8020 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8023   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8024   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8025   echo "$as_me:$LINENO: result: yes" >&5
8026 echo "${ECHO_T}yes" >&6
8027 else
8028 # FIXME - insert some real tests, host_os isn't really good enough
8029   case $host_os in
8030    darwin*)
8031        if test -n "$STRIP" ; then
8032          striplib="$STRIP -x"
8033          echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8035        else
8036   echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8038 fi
8039        ;;
8040    *)
8041   echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8043     ;;
8044   esac
8045 fi
8046
8047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8049 library_names_spec=
8050 libname_spec='lib$name'
8051 soname_spec=
8052 shrext=".so"
8053 postinstall_cmds=
8054 postuninstall_cmds=
8055 finish_cmds=
8056 finish_eval=
8057 shlibpath_var=
8058 shlibpath_overrides_runpath=unknown
8059 version_type=none
8060 dynamic_linker="$host_os ld.so"
8061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8062 if test "$GCC" = yes; then
8063   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8064   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8065     # if the path contains ";" then we assume it to be the separator
8066     # otherwise default to the standard path separator (i.e. ":") - it is
8067     # assumed that no part of a normal pathname contains ";" but that should
8068     # okay in the real world where ";" in dirpaths is itself problematic.
8069     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8070   else
8071     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8072   fi
8073 else
8074   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8075 fi
8076 need_lib_prefix=unknown
8077 hardcode_into_libs=no
8078
8079 # when you set need_version to no, make sure it does not cause -set_version
8080 # flags to be left without arguments
8081 need_version=unknown
8082
8083 case $host_os in
8084 aix3*)
8085   version_type=linux
8086   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8087   shlibpath_var=LIBPATH
8088
8089   # AIX 3 has no versioning support, so we append a major version to the name.
8090   soname_spec='${libname}${release}${shared_ext}$major'
8091   ;;
8092
8093 aix4* | aix5*)
8094   version_type=linux
8095   need_lib_prefix=no
8096   need_version=no
8097   hardcode_into_libs=yes
8098   if test "$host_cpu" = ia64; then
8099     # AIX 5 supports IA64
8100     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8101     shlibpath_var=LD_LIBRARY_PATH
8102   else
8103     # With GCC up to 2.95.x, collect2 would create an import file
8104     # for dependence libraries.  The import file would start with
8105     # the line `#! .'.  This would cause the generated library to
8106     # depend on `.', always an invalid library.  This was fixed in
8107     # development snapshots of GCC prior to 3.0.
8108     case $host_os in
8109       aix4 | aix4.[01] | aix4.[01].*)
8110       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8111            echo ' yes '
8112            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8113         :
8114       else
8115         can_build_shared=no
8116       fi
8117       ;;
8118     esac
8119     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8120     # soname into executable. Probably we can add versioning support to
8121     # collect2, so additional links can be useful in future.
8122     if test "$aix_use_runtimelinking" = yes; then
8123       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8124       # instead of lib<name>.a to let people know that these are not
8125       # typical AIX shared libraries.
8126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127     else
8128       # We preserve .a as extension for shared libraries through AIX4.2
8129       # and later when we are not doing run time linking.
8130       library_names_spec='${libname}${release}.a $libname.a'
8131       soname_spec='${libname}${release}${shared_ext}$major'
8132     fi
8133     shlibpath_var=LIBPATH
8134   fi
8135   ;;
8136
8137 amigaos*)
8138   library_names_spec='$libname.ixlibrary $libname.a'
8139   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8140   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'
8141   ;;
8142
8143 beos*)
8144   library_names_spec='${libname}${shared_ext}'
8145   dynamic_linker="$host_os ld.so"
8146   shlibpath_var=LIBRARY_PATH
8147   ;;
8148
8149 bsdi4*)
8150   version_type=linux
8151   need_version=no
8152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8153   soname_spec='${libname}${release}${shared_ext}$major'
8154   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8155   shlibpath_var=LD_LIBRARY_PATH
8156   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8157   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8158   # the default ld.so.conf also contains /usr/contrib/lib and
8159   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8160   # libtool to hard-code these into programs
8161   ;;
8162
8163 cygwin* | mingw* | pw32*)
8164   version_type=windows
8165   shrext=".dll"
8166   need_version=no
8167   need_lib_prefix=no
8168
8169   case $GCC,$host_os in
8170   yes,cygwin* | yes,mingw* | yes,pw32*)
8171     library_names_spec='$libname.dll.a'
8172     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8173     postinstall_cmds='base_file=`basename \${file}`~
8174       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8175       dldir=$destdir/`dirname \$dlpath`~
8176       test -d \$dldir || mkdir -p \$dldir~
8177       $install_prog $dir/$dlname \$dldir/$dlname'
8178     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8179       dlpath=$dir/\$dldll~
8180        $rm \$dlpath'
8181     shlibpath_overrides_runpath=yes
8182
8183     case $host_os in
8184     cygwin*)
8185       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8186       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8187       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8188       ;;
8189     mingw*)
8190       # MinGW DLLs use traditional 'lib' prefix
8191       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8192       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8193       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8194         # It is most probably a Windows format PATH printed by
8195         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8196         # path with ; separators, and with drive letters. We can handle the
8197         # drive letters (cygwin fileutils understands them), so leave them,
8198         # especially as we might pass files found there to a mingw objdump,
8199         # which wouldn't understand a cygwinified path. Ahh.
8200         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8201       else
8202         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8203       fi
8204       ;;
8205     pw32*)
8206       # pw32 DLLs use 'pw' prefix rather than 'lib'
8207       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8208       ;;
8209     esac
8210     ;;
8211
8212   *)
8213     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8214     ;;
8215   esac
8216   dynamic_linker='Win32 ld.exe'
8217   # FIXME: first we should search . and the directory the executable is in
8218   shlibpath_var=PATH
8219   ;;
8220
8221 darwin* | rhapsody*)
8222   dynamic_linker="$host_os dyld"
8223   version_type=darwin
8224   need_lib_prefix=no
8225   need_version=no
8226   # FIXME: Relying on posixy $() will cause problems for
8227   #        cross-compilation, but unfortunately the echo tests do not
8228   #        yet detect zsh echo's removal of \ escapes.
8229   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8230   soname_spec='${libname}${release}${major}$shared_ext'
8231   shlibpath_overrides_runpath=yes
8232   shlibpath_var=DYLD_LIBRARY_PATH
8233   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8234   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8235   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8236   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"`
8237   fi
8238   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8239   ;;
8240
8241 dgux*)
8242   version_type=linux
8243   need_lib_prefix=no
8244   need_version=no
8245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8246   soname_spec='${libname}${release}${shared_ext}$major'
8247   shlibpath_var=LD_LIBRARY_PATH
8248   ;;
8249
8250 freebsd1*)
8251   dynamic_linker=no
8252   ;;
8253
8254 freebsd*)
8255   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8256   version_type=freebsd-$objformat
8257   case $version_type in
8258     freebsd-elf*)
8259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8260       need_version=no
8261       need_lib_prefix=no
8262       ;;
8263     freebsd-*)
8264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8265       need_version=yes
8266       ;;
8267   esac
8268   shlibpath_var=LD_LIBRARY_PATH
8269   case $host_os in
8270   freebsd2*)
8271     shlibpath_overrides_runpath=yes
8272     ;;
8273   freebsd3.01* | freebsdelf3.01*)
8274     shlibpath_overrides_runpath=yes
8275     hardcode_into_libs=yes
8276     ;;
8277   *) # from 3.2 on
8278     shlibpath_overrides_runpath=no
8279     hardcode_into_libs=yes
8280     ;;
8281   esac
8282   ;;
8283
8284 gnu*)
8285   version_type=linux
8286   need_lib_prefix=no
8287   need_version=no
8288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8289   soname_spec='${libname}${release}${shared_ext}$major'
8290   shlibpath_var=LD_LIBRARY_PATH
8291   hardcode_into_libs=yes
8292   ;;
8293
8294 hpux9* | hpux10* | hpux11*)
8295   # Give a soname corresponding to the major version so that dld.sl refuses to
8296   # link against other versions.
8297   version_type=sunos
8298   need_lib_prefix=no
8299   need_version=no
8300   case "$host_cpu" in
8301   ia64*)
8302     shrext='.so'
8303     hardcode_into_libs=yes
8304     dynamic_linker="$host_os dld.so"
8305     shlibpath_var=LD_LIBRARY_PATH
8306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8308     soname_spec='${libname}${release}${shared_ext}$major'
8309     if test "X$HPUX_IA64_MODE" = X32; then
8310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8311     else
8312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8313     fi
8314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8315     ;;
8316    hppa*64*)
8317      shrext='.sl'
8318      hardcode_into_libs=yes
8319      dynamic_linker="$host_os dld.sl"
8320      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8321      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8322      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8323      soname_spec='${libname}${release}${shared_ext}$major'
8324      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8325      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8326      ;;
8327    *)
8328     shrext='.sl'
8329     dynamic_linker="$host_os dld.sl"
8330     shlibpath_var=SHLIB_PATH
8331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333     soname_spec='${libname}${release}${shared_ext}$major'
8334     ;;
8335   esac
8336   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8337   postinstall_cmds='chmod 555 $lib'
8338   ;;
8339
8340 irix5* | irix6* | nonstopux*)
8341   case $host_os in
8342     nonstopux*) version_type=nonstopux ;;
8343     *)
8344         if test "$lt_cv_prog_gnu_ld" = yes; then
8345                 version_type=linux
8346         else
8347                 version_type=irix
8348         fi ;;
8349   esac
8350   need_lib_prefix=no
8351   need_version=no
8352   soname_spec='${libname}${release}${shared_ext}$major'
8353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8354   case $host_os in
8355   irix5* | nonstopux*)
8356     libsuff= shlibsuff=
8357     ;;
8358   *)
8359     case $LD in # libtool.m4 will add one of these switches to LD
8360     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8361       libsuff= shlibsuff= libmagic=32-bit;;
8362     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8363       libsuff=32 shlibsuff=N32 libmagic=N32;;
8364     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8365       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8366     *) libsuff= shlibsuff= libmagic=never-match;;
8367     esac
8368     ;;
8369   esac
8370   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8371   shlibpath_overrides_runpath=no
8372   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8373   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8374   hardcode_into_libs=yes
8375   ;;
8376
8377 # No shared lib support for Linux oldld, aout, or coff.
8378 linux*oldld* | linux*aout* | linux*coff*)
8379   dynamic_linker=no
8380   ;;
8381
8382 # This must be Linux ELF.
8383 linux*)
8384   version_type=linux
8385   need_lib_prefix=no
8386   need_version=no
8387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388   soname_spec='${libname}${release}${shared_ext}$major'
8389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8390   shlibpath_var=LD_LIBRARY_PATH
8391   shlibpath_overrides_runpath=no
8392   # This implies no fast_install, which is unacceptable.
8393   # Some rework will be needed to allow for fast_install
8394   # before this can be enabled.
8395   hardcode_into_libs=yes
8396
8397   # We used to test for /lib/ld.so.1 and disable shared libraries on
8398   # powerpc, because MkLinux only supported shared libraries with the
8399   # GNU dynamic linker.  Since this was broken with cross compilers,
8400   # most powerpc-linux boxes support dynamic linking these days and
8401   # people can always --disable-shared, the test was removed, and we
8402   # assume the GNU/Linux dynamic linker is in use.
8403   dynamic_linker='GNU/Linux ld.so'
8404   ;;
8405
8406 netbsd*)
8407   version_type=sunos
8408   need_lib_prefix=no
8409   need_version=no
8410   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8412     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8413     dynamic_linker='NetBSD (a.out) ld.so'
8414   else
8415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8416     soname_spec='${libname}${release}${shared_ext}$major'
8417     dynamic_linker='NetBSD ld.elf_so'
8418   fi
8419   shlibpath_var=LD_LIBRARY_PATH
8420   shlibpath_overrides_runpath=yes
8421   hardcode_into_libs=yes
8422   ;;
8423
8424 newsos6)
8425   version_type=linux
8426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8427   shlibpath_var=LD_LIBRARY_PATH
8428   shlibpath_overrides_runpath=yes
8429   ;;
8430
8431 nto-qnx)
8432   version_type=linux
8433   need_lib_prefix=no
8434   need_version=no
8435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8436   soname_spec='${libname}${release}${shared_ext}$major'
8437   shlibpath_var=LD_LIBRARY_PATH
8438   shlibpath_overrides_runpath=yes
8439   ;;
8440
8441 openbsd*)
8442   version_type=sunos
8443   need_lib_prefix=no
8444   need_version=no
8445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8446   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8447   shlibpath_var=LD_LIBRARY_PATH
8448   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8449     case $host_os in
8450       openbsd2.[89] | openbsd2.[89].*)
8451         shlibpath_overrides_runpath=no
8452         ;;
8453       *)
8454         shlibpath_overrides_runpath=yes
8455         ;;
8456       esac
8457   else
8458     shlibpath_overrides_runpath=yes
8459   fi
8460   ;;
8461
8462 os2*)
8463   libname_spec='$name'
8464   shrext=".dll"
8465   need_lib_prefix=no
8466   library_names_spec='$libname${shared_ext} $libname.a'
8467   dynamic_linker='OS/2 ld.exe'
8468   shlibpath_var=LIBPATH
8469   ;;
8470
8471 osf3* | osf4* | osf5*)
8472   version_type=osf
8473   need_lib_prefix=no
8474   need_version=no
8475   soname_spec='${libname}${release}${shared_ext}$major'
8476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477   shlibpath_var=LD_LIBRARY_PATH
8478   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8479   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8480   ;;
8481
8482 sco3.2v5*)
8483   version_type=osf
8484   soname_spec='${libname}${release}${shared_ext}$major'
8485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486   shlibpath_var=LD_LIBRARY_PATH
8487   ;;
8488
8489 solaris*)
8490   version_type=linux
8491   need_lib_prefix=no
8492   need_version=no
8493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494   soname_spec='${libname}${release}${shared_ext}$major'
8495   shlibpath_var=LD_LIBRARY_PATH
8496   shlibpath_overrides_runpath=yes
8497   hardcode_into_libs=yes
8498   # ldd complains unless libraries are executable
8499   postinstall_cmds='chmod +x $lib'
8500   ;;
8501
8502 sunos4*)
8503   version_type=sunos
8504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8505   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8506   shlibpath_var=LD_LIBRARY_PATH
8507   shlibpath_overrides_runpath=yes
8508   if test "$with_gnu_ld" = yes; then
8509     need_lib_prefix=no
8510   fi
8511   need_version=yes
8512   ;;
8513
8514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8515   version_type=linux
8516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517   soname_spec='${libname}${release}${shared_ext}$major'
8518   shlibpath_var=LD_LIBRARY_PATH
8519   case $host_vendor in
8520     sni)
8521       shlibpath_overrides_runpath=no
8522       need_lib_prefix=no
8523       export_dynamic_flag_spec='${wl}-Blargedynsym'
8524       runpath_var=LD_RUN_PATH
8525       ;;
8526     siemens)
8527       need_lib_prefix=no
8528       ;;
8529     motorola)
8530       need_lib_prefix=no
8531       need_version=no
8532       shlibpath_overrides_runpath=no
8533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8534       ;;
8535   esac
8536   ;;
8537
8538 sysv4*MP*)
8539   if test -d /usr/nec ;then
8540     version_type=linux
8541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8542     soname_spec='$libname${shared_ext}.$major'
8543     shlibpath_var=LD_LIBRARY_PATH
8544   fi
8545   ;;
8546
8547 uts4*)
8548   version_type=linux
8549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550   soname_spec='${libname}${release}${shared_ext}$major'
8551   shlibpath_var=LD_LIBRARY_PATH
8552   ;;
8553
8554 *)
8555   dynamic_linker=no
8556   ;;
8557 esac
8558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8559 echo "${ECHO_T}$dynamic_linker" >&6
8560 test "$dynamic_linker" = no && can_build_shared=no
8561
8562 if test "x$enable_dlopen" != xyes; then
8563   enable_dlopen=unknown
8564   enable_dlopen_self=unknown
8565   enable_dlopen_self_static=unknown
8566 else
8567   lt_cv_dlopen=no
8568   lt_cv_dlopen_libs=
8569
8570   case $host_os in
8571   beos*)
8572     lt_cv_dlopen="load_add_on"
8573     lt_cv_dlopen_libs=
8574     lt_cv_dlopen_self=yes
8575     ;;
8576
8577   mingw* | pw32*)
8578     lt_cv_dlopen="LoadLibrary"
8579     lt_cv_dlopen_libs=
8580    ;;
8581
8582   cygwin*)
8583     lt_cv_dlopen="dlopen"
8584     lt_cv_dlopen_libs=
8585    ;;
8586
8587   darwin*)
8588   # if libdl is installed we need to link against it
8589     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   ac_check_lib_save_LIBS=$LIBS
8595 LIBS="-ldl  $LIBS"
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602
8603 /* Override any gcc2 internal prototype to avoid an error.  */
8604 #ifdef __cplusplus
8605 extern "C"
8606 #endif
8607 /* We use char because int might match the return type of a gcc2
8608    builtin and then its argument prototype would still apply.  */
8609 char dlopen ();
8610 int
8611 main ()
8612 {
8613 dlopen ();
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620   (eval $ac_link) 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; } &&
8633          { ac_try='test -s conftest$ac_exeext'
8634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635   (eval $ac_try) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; }; then
8639   ac_cv_lib_dl_dlopen=yes
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ac_cv_lib_dl_dlopen=no
8645 fi
8646 rm -f conftest.err conftest.$ac_objext \
8647       conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8649 fi
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8652 if test $ac_cv_lib_dl_dlopen = yes; then
8653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8654 else
8655
8656     lt_cv_dlopen="dyld"
8657     lt_cv_dlopen_libs=
8658     lt_cv_dlopen_self=yes
8659
8660 fi
8661
8662    ;;
8663
8664   *)
8665     echo "$as_me:$LINENO: checking for shl_load" >&5
8666 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8667 if test "${ac_cv_func_shl_load+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670   cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8678 #define shl_load innocuous_shl_load
8679
8680 /* System header to define __stub macros and hopefully few prototypes,
8681     which can conflict with char shl_load (); below.
8682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8683     <limits.h> exists even on freestanding compilers.  */
8684
8685 #ifdef __STDC__
8686 # include <limits.h>
8687 #else
8688 # include <assert.h>
8689 #endif
8690
8691 #undef shl_load
8692
8693 /* Override any gcc2 internal prototype to avoid an error.  */
8694 #ifdef __cplusplus
8695 extern "C"
8696 {
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699    builtin and then its argument prototype would still apply.  */
8700 char shl_load ();
8701 /* The GNU C library defines this for functions which it implements
8702     to always fail with ENOSYS.  Some functions are actually named
8703     something starting with __ and the normal name is an alias.  */
8704 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8705 choke me
8706 #else
8707 char (*f) () = shl_load;
8708 #endif
8709 #ifdef __cplusplus
8710 }
8711 #endif
8712
8713 int
8714 main ()
8715 {
8716 return f != shl_load;
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723   (eval $ac_link) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; } &&
8736          { ac_try='test -s conftest$ac_exeext'
8737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738   (eval $ac_try) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; }; then
8742   ac_cv_func_shl_load=yes
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 ac_cv_func_shl_load=no
8748 fi
8749 rm -f conftest.err conftest.$ac_objext \
8750       conftest$ac_exeext conftest.$ac_ext
8751 fi
8752 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8753 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8754 if test $ac_cv_func_shl_load = yes; then
8755   lt_cv_dlopen="shl_load"
8756 else
8757   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8758 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8759 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   ac_check_lib_save_LIBS=$LIBS
8763 LIBS="-ldld  $LIBS"
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770
8771 /* Override any gcc2 internal prototype to avoid an error.  */
8772 #ifdef __cplusplus
8773 extern "C"
8774 #endif
8775 /* We use char because int might match the return type of a gcc2
8776    builtin and then its argument prototype would still apply.  */
8777 char shl_load ();
8778 int
8779 main ()
8780 {
8781 shl_load ();
8782   ;
8783   return 0;
8784 }
8785 _ACEOF
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788   (eval $ac_link) 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797   (eval $ac_try) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; } &&
8801          { ac_try='test -s conftest$ac_exeext'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; }; then
8807   ac_cv_lib_dld_shl_load=yes
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812 ac_cv_lib_dld_shl_load=no
8813 fi
8814 rm -f conftest.err conftest.$ac_objext \
8815       conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8817 fi
8818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8819 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8820 if test $ac_cv_lib_dld_shl_load = yes; then
8821   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8822 else
8823   echo "$as_me:$LINENO: checking for dlopen" >&5
8824 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8825 if test "${ac_cv_func_dlopen+set}" = set; then
8826   echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828   cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8836 #define dlopen innocuous_dlopen
8837
8838 /* System header to define __stub macros and hopefully few prototypes,
8839     which can conflict with char dlopen (); below.
8840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8841     <limits.h> exists even on freestanding compilers.  */
8842
8843 #ifdef __STDC__
8844 # include <limits.h>
8845 #else
8846 # include <assert.h>
8847 #endif
8848
8849 #undef dlopen
8850
8851 /* Override any gcc2 internal prototype to avoid an error.  */
8852 #ifdef __cplusplus
8853 extern "C"
8854 {
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857    builtin and then its argument prototype would still apply.  */
8858 char dlopen ();
8859 /* The GNU C library defines this for functions which it implements
8860     to always fail with ENOSYS.  Some functions are actually named
8861     something starting with __ and the normal name is an alias.  */
8862 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8863 choke me
8864 #else
8865 char (*f) () = dlopen;
8866 #endif
8867 #ifdef __cplusplus
8868 }
8869 #endif
8870
8871 int
8872 main ()
8873 {
8874 return f != dlopen;
8875   ;
8876   return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881   (eval $ac_link) 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } &&
8888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890   (eval $ac_try) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; }; then
8900   ac_cv_func_dlopen=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_cv_func_dlopen=no
8906 fi
8907 rm -f conftest.err conftest.$ac_objext \
8908       conftest$ac_exeext conftest.$ac_ext
8909 fi
8910 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8911 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8912 if test $ac_cv_func_dlopen = yes; then
8913   lt_cv_dlopen="dlopen"
8914 else
8915   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920   ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-ldl  $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928
8929 /* Override any gcc2 internal prototype to avoid an error.  */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934    builtin and then its argument prototype would still apply.  */
8935 char dlopen ();
8936 int
8937 main ()
8938 {
8939 dlopen ();
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946   (eval $ac_link) 2>conftest.er1
8947   ac_status=$?
8948   grep -v '^ *+' conftest.er1 >conftest.err
8949   rm -f conftest.er1
8950   cat conftest.err >&5
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } &&
8953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; } &&
8959          { ac_try='test -s conftest$ac_exeext'
8960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961   (eval $ac_try) 2>&5
8962   ac_status=$?
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); }; }; then
8965   ac_cv_lib_dl_dlopen=yes
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 ac_cv_lib_dl_dlopen=no
8971 fi
8972 rm -f conftest.err conftest.$ac_objext \
8973       conftest$ac_exeext conftest.$ac_ext
8974 LIBS=$ac_check_lib_save_LIBS
8975 fi
8976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8978 if test $ac_cv_lib_dl_dlopen = yes; then
8979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8980 else
8981   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986   ac_check_lib_save_LIBS=$LIBS
8987 LIBS="-lsvld  $LIBS"
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h.  */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h.  */
8994
8995 /* Override any gcc2 internal prototype to avoid an error.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000    builtin and then its argument prototype would still apply.  */
9001 char dlopen ();
9002 int
9003 main ()
9004 {
9005 dlopen ();
9006   ;
9007   return 0;
9008 }
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012   (eval $ac_link) 2>conftest.er1
9013   ac_status=$?
9014   grep -v '^ *+' conftest.er1 >conftest.err
9015   rm -f conftest.er1
9016   cat conftest.err >&5
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); } &&
9019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; } &&
9025          { ac_try='test -s conftest$ac_exeext'
9026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027   (eval $ac_try) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); }; }; then
9031   ac_cv_lib_svld_dlopen=yes
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_cv_lib_svld_dlopen=no
9037 fi
9038 rm -f conftest.err conftest.$ac_objext \
9039       conftest$ac_exeext conftest.$ac_ext
9040 LIBS=$ac_check_lib_save_LIBS
9041 fi
9042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9044 if test $ac_cv_lib_svld_dlopen = yes; then
9045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9046 else
9047   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   ac_check_lib_save_LIBS=$LIBS
9053 LIBS="-ldld  $LIBS"
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060
9061 /* Override any gcc2 internal prototype to avoid an error.  */
9062 #ifdef __cplusplus
9063 extern "C"
9064 #endif
9065 /* We use char because int might match the return type of a gcc2
9066    builtin and then its argument prototype would still apply.  */
9067 char dld_link ();
9068 int
9069 main ()
9070 {
9071 dld_link ();
9072   ;
9073   return 0;
9074 }
9075 _ACEOF
9076 rm -f conftest.$ac_objext conftest$ac_exeext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078   (eval $ac_link) 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } &&
9085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087   (eval $ac_try) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); }; } &&
9091          { ac_try='test -s conftest$ac_exeext'
9092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093   (eval $ac_try) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_cv_lib_dld_dld_link=yes
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9101
9102 ac_cv_lib_dld_dld_link=no
9103 fi
9104 rm -f conftest.err conftest.$ac_objext \
9105       conftest$ac_exeext conftest.$ac_ext
9106 LIBS=$ac_check_lib_save_LIBS
9107 fi
9108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9109 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9110 if test $ac_cv_lib_dld_dld_link = yes; then
9111   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9112 fi
9113
9114
9115 fi
9116
9117
9118 fi
9119
9120
9121 fi
9122
9123
9124 fi
9125
9126
9127 fi
9128
9129     ;;
9130   esac
9131
9132   if test "x$lt_cv_dlopen" != xno; then
9133     enable_dlopen=yes
9134   else
9135     enable_dlopen=no
9136   fi
9137
9138   case $lt_cv_dlopen in
9139   dlopen)
9140     save_CPPFLAGS="$CPPFLAGS"
9141     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9142
9143     save_LDFLAGS="$LDFLAGS"
9144     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9145
9146     save_LIBS="$LIBS"
9147     LIBS="$lt_cv_dlopen_libs $LIBS"
9148
9149     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9150 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9151 if test "${lt_cv_dlopen_self+set}" = set; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154           if test "$cross_compiling" = yes; then :
9155   lt_cv_dlopen_self=cross
9156 else
9157   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9158   lt_status=$lt_dlunknown
9159   cat > conftest.$ac_ext <<EOF
9160 #line 9160 "configure"
9161 #include "confdefs.h"
9162
9163 #if HAVE_DLFCN_H
9164 #include <dlfcn.h>
9165 #endif
9166
9167 #include <stdio.h>
9168
9169 #ifdef RTLD_GLOBAL
9170 #  define LT_DLGLOBAL           RTLD_GLOBAL
9171 #else
9172 #  ifdef DL_GLOBAL
9173 #    define LT_DLGLOBAL         DL_GLOBAL
9174 #  else
9175 #    define LT_DLGLOBAL         0
9176 #  endif
9177 #endif
9178
9179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9180    find out it does not work in some platform. */
9181 #ifndef LT_DLLAZY_OR_NOW
9182 #  ifdef RTLD_LAZY
9183 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9184 #  else
9185 #    ifdef DL_LAZY
9186 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9187 #    else
9188 #      ifdef RTLD_NOW
9189 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9190 #      else
9191 #        ifdef DL_NOW
9192 #          define LT_DLLAZY_OR_NOW      DL_NOW
9193 #        else
9194 #          define LT_DLLAZY_OR_NOW      0
9195 #        endif
9196 #      endif
9197 #    endif
9198 #  endif
9199 #endif
9200
9201 #ifdef __cplusplus
9202 extern "C" void exit (int);
9203 #endif
9204
9205 void fnord() { int i=42;}
9206 int main ()
9207 {
9208   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9209   int status = $lt_dlunknown;
9210
9211   if (self)
9212     {
9213       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9214       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9215       /* dlclose (self); */
9216     }
9217
9218     exit (status);
9219 }
9220 EOF
9221   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222   (eval $ac_link) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9226     (./conftest; exit; ) 2>/dev/null
9227     lt_status=$?
9228     case x$lt_status in
9229       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9230       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9231       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9232     esac
9233   else :
9234     # compilation failed
9235     lt_cv_dlopen_self=no
9236   fi
9237 fi
9238 rm -fr conftest*
9239
9240
9241 fi
9242 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9243 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9244
9245     if test "x$lt_cv_dlopen_self" = xyes; then
9246       LDFLAGS="$LDFLAGS $link_static_flag"
9247       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9248 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9249 if test "${lt_cv_dlopen_self_static+set}" = set; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252           if test "$cross_compiling" = yes; then :
9253   lt_cv_dlopen_self_static=cross
9254 else
9255   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9256   lt_status=$lt_dlunknown
9257   cat > conftest.$ac_ext <<EOF
9258 #line 9258 "configure"
9259 #include "confdefs.h"
9260
9261 #if HAVE_DLFCN_H
9262 #include <dlfcn.h>
9263 #endif
9264
9265 #include <stdio.h>
9266
9267 #ifdef RTLD_GLOBAL
9268 #  define LT_DLGLOBAL           RTLD_GLOBAL
9269 #else
9270 #  ifdef DL_GLOBAL
9271 #    define LT_DLGLOBAL         DL_GLOBAL
9272 #  else
9273 #    define LT_DLGLOBAL         0
9274 #  endif
9275 #endif
9276
9277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9278    find out it does not work in some platform. */
9279 #ifndef LT_DLLAZY_OR_NOW
9280 #  ifdef RTLD_LAZY
9281 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9282 #  else
9283 #    ifdef DL_LAZY
9284 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9285 #    else
9286 #      ifdef RTLD_NOW
9287 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9288 #      else
9289 #        ifdef DL_NOW
9290 #          define LT_DLLAZY_OR_NOW      DL_NOW
9291 #        else
9292 #          define LT_DLLAZY_OR_NOW      0
9293 #        endif
9294 #      endif
9295 #    endif
9296 #  endif
9297 #endif
9298
9299 #ifdef __cplusplus
9300 extern "C" void exit (int);
9301 #endif
9302
9303 void fnord() { int i=42;}
9304 int main ()
9305 {
9306   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9307   int status = $lt_dlunknown;
9308
9309   if (self)
9310     {
9311       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9312       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9313       /* dlclose (self); */
9314     }
9315
9316     exit (status);
9317 }
9318 EOF
9319   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9324     (./conftest; exit; ) 2>/dev/null
9325     lt_status=$?
9326     case x$lt_status in
9327       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9328       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9329       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9330     esac
9331   else :
9332     # compilation failed
9333     lt_cv_dlopen_self_static=no
9334   fi
9335 fi
9336 rm -fr conftest*
9337
9338
9339 fi
9340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9341 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9342     fi
9343
9344     CPPFLAGS="$save_CPPFLAGS"
9345     LDFLAGS="$save_LDFLAGS"
9346     LIBS="$save_LIBS"
9347     ;;
9348   esac
9349
9350   case $lt_cv_dlopen_self in
9351   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9352   *) enable_dlopen_self=unknown ;;
9353   esac
9354
9355   case $lt_cv_dlopen_self_static in
9356   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9357   *) enable_dlopen_self_static=unknown ;;
9358   esac
9359 fi
9360
9361
9362 # Report which librarie types wil actually be built
9363 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9364 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9365 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9366 echo "${ECHO_T}$can_build_shared" >&6
9367
9368 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9369 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9370 test "$can_build_shared" = "no" && enable_shared=no
9371
9372 # On AIX, shared libraries and static libraries use the same namespace, and
9373 # are all built from PIC.
9374 case "$host_os" in
9375 aix3*)
9376   test "$enable_shared" = yes && enable_static=no
9377   if test -n "$RANLIB"; then
9378     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9379     postinstall_cmds='$RANLIB $lib'
9380   fi
9381   ;;
9382
9383 aix4*)
9384   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9385     test "$enable_shared" = yes && enable_static=no
9386   fi
9387   ;;
9388   darwin* | rhapsody*)
9389   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9390     archive_cmds_need_lc=no
9391     case "$host_os" in
9392     rhapsody* | darwin1.[012])
9393       allow_undefined_flag='-undefined suppress'
9394       ;;
9395     *) # Darwin 1.3 on
9396       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9397       ;;
9398     esac
9399     # FIXME: Relying on posixy $() will cause problems for
9400     #        cross-compilation, but unfortunately the echo tests do not
9401     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
9402     #          `"' quotes if we put them in here... so don't!
9403                 output_verbose_link_cmd='echo'
9404     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9405     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9406     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9407                   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}'
9408                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9409     hardcode_direct=no
9410     hardcode_automatic=yes
9411     hardcode_shlibpath_var=unsupported
9412     whole_archive_flag_spec='-all_load $convenience'
9413     link_all_deplibs=yes
9414     fi
9415     ;;
9416 esac
9417 echo "$as_me:$LINENO: result: $enable_shared" >&5
9418 echo "${ECHO_T}$enable_shared" >&6
9419
9420 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9421 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9422 # Make sure either enable_shared or enable_static is yes.
9423 test "$enable_shared" = yes || enable_static=yes
9424 echo "$as_me:$LINENO: result: $enable_static" >&5
9425 echo "${ECHO_T}$enable_static" >&6
9426
9427 # The else clause should only fire when bootstrapping the
9428 # libtool distribution, otherwise you forgot to ship ltmain.sh
9429 # with your package, and you will get complaints that there are
9430 # no rules to generate ltmain.sh.
9431 if test -f "$ltmain"; then
9432   # See if we are running on zsh, and set the options which allow our commands through
9433   # without removal of \ escapes.
9434   if test -n "${ZSH_VERSION+set}" ; then
9435     setopt NO_GLOB_SUBST
9436   fi
9437   # Now quote all the things that may contain metacharacters while being
9438   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9439   # variables and quote the copies for generation of the libtool script.
9440   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9441     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9442     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9443     deplibs_check_method reload_flag reload_cmds need_locks \
9444     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9445     lt_cv_sys_global_symbol_to_c_name_address \
9446     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9447     old_postinstall_cmds old_postuninstall_cmds \
9448     compiler \
9449     CC \
9450     LD \
9451     lt_prog_compiler_wl \
9452     lt_prog_compiler_pic \
9453     lt_prog_compiler_static \
9454     lt_prog_compiler_no_builtin_flag \
9455     export_dynamic_flag_spec \
9456     thread_safe_flag_spec \
9457     whole_archive_flag_spec \
9458     enable_shared_with_static_runtimes \
9459     old_archive_cmds \
9460     old_archive_from_new_cmds \
9461     predep_objects \
9462     postdep_objects \
9463     predeps \
9464     postdeps \
9465     compiler_lib_search_path \
9466     archive_cmds \
9467     archive_expsym_cmds \
9468     postinstall_cmds \
9469     postuninstall_cmds \
9470     old_archive_from_expsyms_cmds \
9471     allow_undefined_flag \
9472     no_undefined_flag \
9473     export_symbols_cmds \
9474     hardcode_libdir_flag_spec \
9475     hardcode_libdir_flag_spec_ld \
9476     hardcode_libdir_separator \
9477     hardcode_automatic \
9478     module_cmds \
9479     module_expsym_cmds \
9480     lt_cv_prog_compiler_c_o \
9481     exclude_expsyms \
9482     include_expsyms; do
9483
9484     case $var in
9485     old_archive_cmds | \
9486     old_archive_from_new_cmds | \
9487     archive_cmds | \
9488     archive_expsym_cmds | \
9489     module_cmds | \
9490     module_expsym_cmds | \
9491     old_archive_from_expsyms_cmds | \
9492     export_symbols_cmds | \
9493     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9494     postinstall_cmds | postuninstall_cmds | \
9495     old_postinstall_cmds | old_postuninstall_cmds | \
9496     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9497       # Double-quote double-evaled strings.
9498       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9499       ;;
9500     *)
9501       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9502       ;;
9503     esac
9504   done
9505
9506   case $lt_echo in
9507   *'\$0 --fallback-echo"')
9508     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9509     ;;
9510   esac
9511
9512 cfgfile="${ofile}T"
9513   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9514   $rm -f "$cfgfile"
9515   { echo "$as_me:$LINENO: creating $ofile" >&5
9516 echo "$as_me: creating $ofile" >&6;}
9517
9518   cat <<__EOF__ >> "$cfgfile"
9519 #! $SHELL
9520
9521 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9522 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9523 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9524 #
9525 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9526 # Free Software Foundation, Inc.
9527 #
9528 # This file is part of GNU Libtool:
9529 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9530 #
9531 # This program is free software; you can redistribute it and/or modify
9532 # it under the terms of the GNU General Public License as published by
9533 # the Free Software Foundation; either version 2 of the License, or
9534 # (at your option) any later version.
9535 #
9536 # This program is distributed in the hope that it will be useful, but
9537 # WITHOUT ANY WARRANTY; without even the implied warranty of
9538 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9539 # General Public License for more details.
9540 #
9541 # You should have received a copy of the GNU General Public License
9542 # along with this program; if not, write to the Free Software
9543 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9544 #
9545 # As a special exception to the GNU General Public License, if you
9546 # distribute this file as part of a program that contains a
9547 # configuration script generated by Autoconf, you may include it under
9548 # the same distribution terms that you use for the rest of that program.
9549
9550 # A sed program that does not truncate output.
9551 SED=$lt_SED
9552
9553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9554 Xsed="$SED -e s/^X//"
9555
9556 # The HP-UX ksh and POSIX shell print the target directory to stdout
9557 # if CDPATH is set.
9558 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9559
9560 # The names of the tagged configurations supported by this script.
9561 available_tags=
9562
9563 # ### BEGIN LIBTOOL CONFIG
9564
9565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9566
9567 # Shell to use when invoking shell scripts.
9568 SHELL=$lt_SHELL
9569
9570 # Whether or not to build shared libraries.
9571 build_libtool_libs=$enable_shared
9572
9573 # Whether or not to build static libraries.
9574 build_old_libs=$enable_static
9575
9576 # Whether or not to add -lc for building shared libraries.
9577 build_libtool_need_lc=$archive_cmds_need_lc
9578
9579 # Whether or not to disallow shared libs when runtime libs are static
9580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9581
9582 # Whether or not to optimize for fast installation.
9583 fast_install=$enable_fast_install
9584
9585 # The host system.
9586 host_alias=$host_alias
9587 host=$host
9588
9589 # An echo program that does not interpret backslashes.
9590 echo=$lt_echo
9591
9592 # The archiver.
9593 AR=$lt_AR
9594 AR_FLAGS=$lt_AR_FLAGS
9595
9596 # A C compiler.
9597 LTCC=$lt_LTCC
9598
9599 # A language-specific compiler.
9600 CC=$lt_compiler
9601
9602 # Is the compiler the GNU C compiler?
9603 with_gcc=$GCC
9604
9605 # An ERE matcher.
9606 EGREP=$lt_EGREP
9607
9608 # The linker used to build libraries.
9609 LD=$lt_LD
9610
9611 # Whether we need hard or soft links.
9612 LN_S=$lt_LN_S
9613
9614 # A BSD-compatible nm program.
9615 NM=$lt_NM
9616
9617 # A symbol stripping program
9618 STRIP=$STRIP
9619
9620 # Used to examine libraries when file_magic_cmd begins "file"
9621 MAGIC_CMD=$MAGIC_CMD
9622
9623 # Used on cygwin: DLL creation program.
9624 DLLTOOL="$DLLTOOL"
9625
9626 # Used on cygwin: object dumper.
9627 OBJDUMP="$OBJDUMP"
9628
9629 # Used on cygwin: assembler.
9630 AS="$AS"
9631
9632 # The name of the directory that contains temporary libtool files.
9633 objdir=$objdir
9634
9635 # How to create reloadable object files.
9636 reload_flag=$lt_reload_flag
9637 reload_cmds=$lt_reload_cmds
9638
9639 # How to pass a linker flag through the compiler.
9640 wl=$lt_lt_prog_compiler_wl
9641
9642 # Object file suffix (normally "o").
9643 objext="$ac_objext"
9644
9645 # Old archive suffix (normally "a").
9646 libext="$libext"
9647
9648 # Shared library suffix (normally ".so").
9649 shrext='$shrext'
9650
9651 # Executable file suffix (normally "").
9652 exeext="$exeext"
9653
9654 # Additional compiler flags for building library objects.
9655 pic_flag=$lt_lt_prog_compiler_pic
9656 pic_mode=$pic_mode
9657
9658 # What is the maximum length of a command?
9659 max_cmd_len=$lt_cv_sys_max_cmd_len
9660
9661 # Does compiler simultaneously support -c and -o options?
9662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9663
9664 # Must we lock files when doing compilation ?
9665 need_locks=$lt_need_locks
9666
9667 # Do we need the lib prefix for modules?
9668 need_lib_prefix=$need_lib_prefix
9669
9670 # Do we need a version for libraries?
9671 need_version=$need_version
9672
9673 # Whether dlopen is supported.
9674 dlopen_support=$enable_dlopen
9675
9676 # Whether dlopen of programs is supported.
9677 dlopen_self=$enable_dlopen_self
9678
9679 # Whether dlopen of statically linked programs is supported.
9680 dlopen_self_static=$enable_dlopen_self_static
9681
9682 # Compiler flag to prevent dynamic linking.
9683 link_static_flag=$lt_lt_prog_compiler_static
9684
9685 # Compiler flag to turn off builtin functions.
9686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9687
9688 # Compiler flag to allow reflexive dlopens.
9689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9690
9691 # Compiler flag to generate shared objects directly from archives.
9692 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9693
9694 # Compiler flag to generate thread-safe objects.
9695 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9696
9697 # Library versioning type.
9698 version_type=$version_type
9699
9700 # Format of library name prefix.
9701 libname_spec=$lt_libname_spec
9702
9703 # List of archive names.  First name is the real one, the rest are links.
9704 # The last name is the one that the linker finds with -lNAME.
9705 library_names_spec=$lt_library_names_spec
9706
9707 # The coded name of the library, if different from the real name.
9708 soname_spec=$lt_soname_spec
9709
9710 # Commands used to build and install an old-style archive.
9711 RANLIB=$lt_RANLIB
9712 old_archive_cmds=$lt_old_archive_cmds
9713 old_postinstall_cmds=$lt_old_postinstall_cmds
9714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9715
9716 # Create an old-style archive from a shared archive.
9717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9718
9719 # Create a temporary old-style archive to link instead of a shared archive.
9720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9721
9722 # Commands used to build and install a shared archive.
9723 archive_cmds=$lt_archive_cmds
9724 archive_expsym_cmds=$lt_archive_expsym_cmds
9725 postinstall_cmds=$lt_postinstall_cmds
9726 postuninstall_cmds=$lt_postuninstall_cmds
9727
9728 # Commands used to build a loadable module (assumed same as above if empty)
9729 module_cmds=$lt_module_cmds
9730 module_expsym_cmds=$lt_module_expsym_cmds
9731
9732 # Commands to strip libraries.
9733 old_striplib=$lt_old_striplib
9734 striplib=$lt_striplib
9735
9736 # Dependencies to place before the objects being linked to create a
9737 # shared library.
9738 predep_objects=$lt_predep_objects
9739
9740 # Dependencies to place after the objects being linked to create a
9741 # shared library.
9742 postdep_objects=$lt_postdep_objects
9743
9744 # Dependencies to place before the objects being linked to create a
9745 # shared library.
9746 predeps=$lt_predeps
9747
9748 # Dependencies to place after the objects being linked to create a
9749 # shared library.
9750 postdeps=$lt_postdeps
9751
9752 # The library search path used internally by the compiler when linking
9753 # a shared library.
9754 compiler_lib_search_path=$lt_compiler_lib_search_path
9755
9756 # Method to check whether dependent libraries are shared objects.
9757 deplibs_check_method=$lt_deplibs_check_method
9758
9759 # Command to use when deplibs_check_method == file_magic.
9760 file_magic_cmd=$lt_file_magic_cmd
9761
9762 # Flag that allows shared libraries with undefined symbols to be built.
9763 allow_undefined_flag=$lt_allow_undefined_flag
9764
9765 # Flag that forces no undefined symbols.
9766 no_undefined_flag=$lt_no_undefined_flag
9767
9768 # Commands used to finish a libtool library installation in a directory.
9769 finish_cmds=$lt_finish_cmds
9770
9771 # Same as above, but a single script fragment to be evaled but not shown.
9772 finish_eval=$lt_finish_eval
9773
9774 # Take the output of nm and produce a listing of raw symbols and C names.
9775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9776
9777 # Transform the output of nm in a proper C declaration
9778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9779
9780 # Transform the output of nm in a C name address pair
9781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9782
9783 # This is the shared library runtime path variable.
9784 runpath_var=$runpath_var
9785
9786 # This is the shared library path variable.
9787 shlibpath_var=$shlibpath_var
9788
9789 # Is shlibpath searched before the hard-coded library search path?
9790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9791
9792 # How to hardcode a shared library path into an executable.
9793 hardcode_action=$hardcode_action
9794
9795 # Whether we should hardcode library paths into libraries.
9796 hardcode_into_libs=$hardcode_into_libs
9797
9798 # Flag to hardcode \$libdir into a binary during linking.
9799 # This must work even if \$libdir does not exist.
9800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9801
9802 # If ld is used when linking, flag to hardcode \$libdir into
9803 # a binary during linking. This must work even if \$libdir does
9804 # not exist.
9805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9806
9807 # Whether we need a single -rpath flag with a separated argument.
9808 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9809
9810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9811 # resulting binary.
9812 hardcode_direct=$hardcode_direct
9813
9814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9815 # resulting binary.
9816 hardcode_minus_L=$hardcode_minus_L
9817
9818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9819 # the resulting binary.
9820 hardcode_shlibpath_var=$hardcode_shlibpath_var
9821
9822 # Set to yes if building a shared library automatically hardcodes DIR into the library
9823 # and all subsequent libraries and executables linked against it.
9824 hardcode_automatic=$hardcode_automatic
9825
9826 # Variables whose values should be saved in libtool wrapper scripts and
9827 # restored at relink time.
9828 variables_saved_for_relink="$variables_saved_for_relink"
9829
9830 # Whether libtool must link a program against all its dependency libraries.
9831 link_all_deplibs=$link_all_deplibs
9832
9833 # Compile-time system search path for libraries
9834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9835
9836 # Run-time system search path for libraries
9837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9838
9839 # Fix the shell variable \$srcfile for the compiler.
9840 fix_srcfile_path="$fix_srcfile_path"
9841
9842 # Set to yes if exported symbols are required.
9843 always_export_symbols=$always_export_symbols
9844
9845 # The commands to list exported symbols.
9846 export_symbols_cmds=$lt_export_symbols_cmds
9847
9848 # The commands to extract the exported symbol list from a shared archive.
9849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9850
9851 # Symbols that should not be listed in the preloaded symbols.
9852 exclude_expsyms=$lt_exclude_expsyms
9853
9854 # Symbols that must always be exported.
9855 include_expsyms=$lt_include_expsyms
9856
9857 # ### END LIBTOOL CONFIG
9858
9859 __EOF__
9860
9861
9862   case $host_os in
9863   aix3*)
9864     cat <<\EOF >> "$cfgfile"
9865
9866 # AIX sometimes has problems with the GCC collect2 program.  For some
9867 # reason, if we set the COLLECT_NAMES environment variable, the problems
9868 # vanish in a puff of smoke.
9869 if test "X${COLLECT_NAMES+set}" != Xset; then
9870   COLLECT_NAMES=
9871   export COLLECT_NAMES
9872 fi
9873 EOF
9874     ;;
9875   esac
9876
9877   # We use sed instead of cat because bash on DJGPP gets confused if
9878   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9879   # text mode, it properly converts lines to CR/LF.  This bash problem
9880   # is reportedly fixed, but why not run on old versions too?
9881   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9882
9883   mv -f "$cfgfile" "$ofile" || \
9884     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9885   chmod +x "$ofile"
9886
9887 else
9888   # If there is no Makefile yet, we rely on a make rule to execute
9889   # `config.status --recheck' to rerun these tests and create the
9890   # libtool script then.
9891   test -f Makefile && make "$ltmain"
9892 fi
9893
9894
9895 ac_ext=c
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9900
9901 CC="$lt_save_CC"
9902
9903
9904 # Check whether --with-tags or --without-tags was given.
9905 if test "${with_tags+set}" = set; then
9906   withval="$with_tags"
9907   tagnames="$withval"
9908 fi;
9909
9910 if test -f "$ltmain" && test -n "$tagnames"; then
9911   if test ! -f "${ofile}"; then
9912     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9913 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9914   fi
9915
9916   if test -z "$LTCC"; then
9917     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9918     if test -z "$LTCC"; then
9919       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9920 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9921     else
9922       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9923 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9924     fi
9925   fi
9926
9927   # Extract list of available tagged configurations in $ofile.
9928   # Note that this assumes the entire list is on one line.
9929   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9930
9931   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932   for tagname in $tagnames; do
9933     IFS="$lt_save_ifs"
9934     # Check whether tagname contains only valid characters
9935     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9936     "") ;;
9937     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9938 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9939    { (exit 1); exit 1; }; }
9940         ;;
9941     esac
9942
9943     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9944     then
9945       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9946 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9947    { (exit 1); exit 1; }; }
9948     fi
9949
9950     # Update the list of available tags.
9951     if test -n "$tagname"; then
9952       echo appending configuration tag \"$tagname\" to $ofile
9953
9954       case $tagname in
9955       CXX)
9956         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9957           ac_ext=cc
9958 ac_cpp='$CXXCPP $CPPFLAGS'
9959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9962
9963
9964
9965
9966 archive_cmds_need_lc_CXX=no
9967 allow_undefined_flag_CXX=
9968 always_export_symbols_CXX=no
9969 archive_expsym_cmds_CXX=
9970 export_dynamic_flag_spec_CXX=
9971 hardcode_direct_CXX=no
9972 hardcode_libdir_flag_spec_CXX=
9973 hardcode_libdir_flag_spec_ld_CXX=
9974 hardcode_libdir_separator_CXX=
9975 hardcode_minus_L_CXX=no
9976 hardcode_automatic_CXX=no
9977 module_cmds_CXX=
9978 module_expsym_cmds_CXX=
9979 link_all_deplibs_CXX=unknown
9980 old_archive_cmds_CXX=$old_archive_cmds
9981 no_undefined_flag_CXX=
9982 whole_archive_flag_spec_CXX=
9983 enable_shared_with_static_runtimes_CXX=no
9984
9985 # Dependencies to place before and after the object being linked:
9986 predep_objects_CXX=
9987 postdep_objects_CXX=
9988 predeps_CXX=
9989 postdeps_CXX=
9990 compiler_lib_search_path_CXX=
9991
9992 # Source file extension for C++ test sources.
9993 ac_ext=cc
9994
9995 # Object file extension for compiled C++ test sources.
9996 objext=o
9997 objext_CXX=$objext
9998
9999 # Code to be used in simple compile tests
10000 lt_simple_compile_test_code="int some_variable = 0;\n"
10001
10002 # Code to be used in simple link tests
10003 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10004
10005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10006
10007 # If no C compiler was specified, use CC.
10008 LTCC=${LTCC-"$CC"}
10009
10010 # Allow CC to be a program name with arguments.
10011 compiler=$CC
10012
10013
10014 # Allow CC to be a program name with arguments.
10015 lt_save_CC=$CC
10016 lt_save_LD=$LD
10017 lt_save_GCC=$GCC
10018 GCC=$GXX
10019 lt_save_with_gnu_ld=$with_gnu_ld
10020 lt_save_path_LD=$lt_cv_path_LD
10021 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10022   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10023 else
10024   unset lt_cv_prog_gnu_ld
10025 fi
10026 if test -n "${lt_cv_path_LDCXX+set}"; then
10027   lt_cv_path_LD=$lt_cv_path_LDCXX
10028 else
10029   unset lt_cv_path_LD
10030 fi
10031 test -z "${LDCXX+set}" || LD=$LDCXX
10032 CC=${CXX-"c++"}
10033 compiler=$CC
10034 compiler_CXX=$CC
10035 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10036
10037 # We don't want -fno-exception wen compiling C++ code, so set the
10038 # no_builtin_flag separately
10039 if test "$GXX" = yes; then
10040   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10041 else
10042   lt_prog_compiler_no_builtin_flag_CXX=
10043 fi
10044
10045 if test "$GXX" = yes; then
10046   # Set up default GNU C++ configuration
10047
10048
10049 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10050 if test "${with_gnu_ld+set}" = set; then
10051   withval="$with_gnu_ld"
10052   test "$withval" = no || with_gnu_ld=yes
10053 else
10054   with_gnu_ld=no
10055 fi;
10056 ac_prog=ld
10057 if test "$GCC" = yes; then
10058   # Check if gcc -print-prog-name=ld gives a path.
10059   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10061   case $host in
10062   *-*-mingw*)
10063     # gcc leaves a trailing carriage return which upsets mingw
10064     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10065   *)
10066     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10067   esac
10068   case $ac_prog in
10069     # Accept absolute paths.
10070     [\\/]* | ?:[\\/]*)
10071       re_direlt='/[^/][^/]*/\.\./'
10072       # Canonicalize the path of ld
10073       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10074       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10075         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10076       done
10077       test -z "$LD" && LD="$ac_prog"
10078       ;;
10079   "")
10080     # If it fails, then pretend we aren't using GCC.
10081     ac_prog=ld
10082     ;;
10083   *)
10084     # If it is relative, then search for the first ld in PATH.
10085     with_gnu_ld=unknown
10086     ;;
10087   esac
10088 elif test "$with_gnu_ld" = yes; then
10089   echo "$as_me:$LINENO: checking for GNU ld" >&5
10090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10091 else
10092   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10094 fi
10095 if test "${lt_cv_path_LD+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   if test -z "$LD"; then
10099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10100   for ac_dir in $PATH; do
10101     IFS="$lt_save_ifs"
10102     test -z "$ac_dir" && ac_dir=.
10103     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10104       lt_cv_path_LD="$ac_dir/$ac_prog"
10105       # Check to see if the program is GNU ld.  I'd rather use --version,
10106       # but apparently some GNU ld's only accept -v.
10107       # Break only if it was the GNU/non-GNU ld that we prefer.
10108       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10109       *GNU* | *'with BFD'*)
10110         test "$with_gnu_ld" != no && break
10111         ;;
10112       *)
10113         test "$with_gnu_ld" != yes && break
10114         ;;
10115       esac
10116     fi
10117   done
10118   IFS="$lt_save_ifs"
10119 else
10120   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10121 fi
10122 fi
10123
10124 LD="$lt_cv_path_LD"
10125 if test -n "$LD"; then
10126   echo "$as_me:$LINENO: result: $LD" >&5
10127 echo "${ECHO_T}$LD" >&6
10128 else
10129   echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6
10131 fi
10132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10134    { (exit 1); exit 1; }; }
10135 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10141 case `"$LD" -v 2>&1 </dev/null` in
10142 *GNU* | *'with BFD'*)
10143   lt_cv_prog_gnu_ld=yes
10144   ;;
10145 *)
10146   lt_cv_prog_gnu_ld=no
10147   ;;
10148 esac
10149 fi
10150 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10152 with_gnu_ld=$lt_cv_prog_gnu_ld
10153
10154
10155
10156   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10157   # archiving commands below assume that GNU ld is being used.
10158   if test "$with_gnu_ld" = yes; then
10159     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160     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'
10161
10162     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10163     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10164
10165     # If archive_cmds runs LD, not CC, wlarc should be empty
10166     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10167     #     investigate it a little bit more. (MM)
10168     wlarc='${wl}'
10169
10170     # ancient GNU ld didn't support --whole-archive et. al.
10171     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10172         grep 'no-whole-archive' > /dev/null; then
10173       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10174     else
10175       whole_archive_flag_spec_CXX=
10176     fi
10177   else
10178     with_gnu_ld=no
10179     wlarc=
10180
10181     # A generic and very simple default shared library creation
10182     # command for GNU C++ for the case where it uses the native
10183     # linker, instead of GNU ld.  If possible, this setting should
10184     # overridden to take advantage of the native linker features on
10185     # the platform it is being used on.
10186     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10187   fi
10188
10189   # Commands to make compiler produce verbose output that lists
10190   # what "hidden" libraries, object files and flags are used when
10191   # linking a shared library.
10192   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10193
10194 else
10195   GXX=no
10196   with_gnu_ld=no
10197   wlarc=
10198 fi
10199
10200 # PORTME: fill in a description of your system's C++ link characteristics
10201 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10203 ld_shlibs_CXX=yes
10204 case $host_os in
10205   aix3*)
10206     # FIXME: insert proper C++ library support
10207     ld_shlibs_CXX=no
10208     ;;
10209   aix4* | aix5*)
10210     if test "$host_cpu" = ia64; then
10211       # On IA64, the linker does run time linking by default, so we don't
10212       # have to do anything special.
10213       aix_use_runtimelinking=no
10214       exp_sym_flag='-Bexport'
10215       no_entry_flag=""
10216     else
10217       aix_use_runtimelinking=no
10218
10219       # Test if we are trying to use run time linking or normal
10220       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221       # need to do runtime linking.
10222       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10223         for ld_flag in $LDFLAGS; do
10224           case $ld_flag in
10225           *-brtl*)
10226             aix_use_runtimelinking=yes
10227             break
10228             ;;
10229           esac
10230         done
10231       esac
10232
10233       exp_sym_flag='-bexport'
10234       no_entry_flag='-bnoentry'
10235     fi
10236
10237     # When large executables or shared objects are built, AIX ld can
10238     # have problems creating the table of contents.  If linking a library
10239     # or program results in "error TOC overflow" add -mminimal-toc to
10240     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10241     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10242
10243     archive_cmds_CXX=''
10244     hardcode_direct_CXX=yes
10245     hardcode_libdir_separator_CXX=':'
10246     link_all_deplibs_CXX=yes
10247
10248     if test "$GXX" = yes; then
10249       case $host_os in aix4.012|aix4.012.*)
10250       # We only want to do this on AIX 4.2 and lower, the check
10251       # below for broken collect2 doesn't work under 4.3+
10252         collect2name=`${CC} -print-prog-name=collect2`
10253         if test -f "$collect2name" && \
10254            strings "$collect2name" | grep resolve_lib_name >/dev/null
10255         then
10256           # We have reworked collect2
10257           hardcode_direct_CXX=yes
10258         else
10259           # We have old collect2
10260           hardcode_direct_CXX=unsupported
10261           # It fails to find uninstalled libraries when the uninstalled
10262           # path is not listed in the libpath.  Setting hardcode_minus_L
10263           # to unsupported forces relinking
10264           hardcode_minus_L_CXX=yes
10265           hardcode_libdir_flag_spec_CXX='-L$libdir'
10266           hardcode_libdir_separator_CXX=
10267         fi
10268       esac
10269       shared_flag='-shared'
10270     else
10271       # not using gcc
10272       if test "$host_cpu" = ia64; then
10273         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10274         # chokes on -Wl,-G. The following line is correct:
10275         shared_flag='-G'
10276       else
10277         if test "$aix_use_runtimelinking" = yes; then
10278           shared_flag='${wl}-G'
10279         else
10280           shared_flag='${wl}-bM:SRE'
10281         fi
10282       fi
10283     fi
10284
10285     # It seems that -bexpall does not export symbols beginning with
10286     # underscore (_), so it is better to generate a list of symbols to export.
10287     always_export_symbols_CXX=yes
10288     if test "$aix_use_runtimelinking" = yes; then
10289       # Warning - without using the other runtime loading flags (-brtl),
10290       # -berok will link without error, but may produce a broken library.
10291       allow_undefined_flag_CXX='-berok'
10292       # Determine the default libpath from the value encoded in an empty executable.
10293       cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300 int
10301 main ()
10302 {
10303
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310   (eval $ac_link) 2>conftest.er1
10311   ac_status=$?
10312   grep -v '^ *+' conftest.er1 >conftest.err
10313   rm -f conftest.er1
10314   cat conftest.err >&5
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10331 }'`
10332 # Check for a 64-bit object if we didn't find anything.
10333 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10334 }'`; fi
10335 else
10336   echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341       conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10343
10344       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345
10346       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"
10347      else
10348       if test "$host_cpu" = ia64; then
10349         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10350         allow_undefined_flag_CXX="-z nodefs"
10351         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"
10352       else
10353         # Determine the default libpath from the value encoded in an empty executable.
10354         cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h.  */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h.  */
10360
10361 int
10362 main ()
10363 {
10364
10365   ;
10366   return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371   (eval $ac_link) 2>conftest.er1
10372   ac_status=$?
10373   grep -v '^ *+' conftest.er1 >conftest.err
10374   rm -f conftest.er1
10375   cat conftest.err >&5
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } &&
10378          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380   (eval $ac_try) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; } &&
10384          { ac_try='test -s conftest$ac_exeext'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; }; then
10390
10391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10392 }'`
10393 # Check for a 64-bit object if we didn't find anything.
10394 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; }
10395 }'`; fi
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 fi
10401 rm -f conftest.err conftest.$ac_objext \
10402       conftest$ac_exeext conftest.$ac_ext
10403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10404
10405         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10406         # Warning - without using the other run time loading flags,
10407         # -berok will link without error, but may produce a broken library.
10408         no_undefined_flag_CXX=' ${wl}-bernotok'
10409         allow_undefined_flag_CXX=' ${wl}-berok'
10410         # -bexpall does not export symbols beginning with underscore (_)
10411         always_export_symbols_CXX=yes
10412         # Exported symbols can be pulled into shared objects from archives
10413         whole_archive_flag_spec_CXX=' '
10414         archive_cmds_need_lc_CXX=yes
10415         # This is similar to how AIX traditionally builds it's shared libraries.
10416         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'
10417       fi
10418     fi
10419     ;;
10420   chorus*)
10421     case $cc_basename in
10422       *)
10423         # FIXME: insert proper C++ library support
10424         ld_shlibs_CXX=no
10425         ;;
10426     esac
10427     ;;
10428
10429   cygwin* | mingw* | pw32*)
10430     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10431     # as there is no search path for DLLs.
10432     hardcode_libdir_flag_spec_CXX='-L$libdir'
10433     allow_undefined_flag_CXX=unsupported
10434     always_export_symbols_CXX=no
10435     enable_shared_with_static_runtimes_CXX=yes
10436
10437     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10438       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'
10439       # If the export-symbols file already is a .def file (1st line
10440       # is EXPORTS), use it as is; otherwise, prepend...
10441       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10442         cp $export_symbols $output_objdir/$soname.def;
10443       else
10444         echo EXPORTS > $output_objdir/$soname.def;
10445         cat $export_symbols >> $output_objdir/$soname.def;
10446       fi~
10447       $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'
10448     else
10449       ld_shlibs_CXX=no
10450     fi
10451   ;;
10452
10453   darwin* | rhapsody*)
10454    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10455     archive_cmds_need_lc_CXX=no
10456     case "$host_os" in
10457     rhapsody* | darwin1.[012])
10458       allow_undefined_flag_CXX='-undefined suppress'
10459       ;;
10460     *) # Darwin 1.3 on
10461       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10462       ;;
10463     esac
10464         lt_int_apple_cc_single_mod=no
10465         output_verbose_link_cmd='echo'
10466         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10467           lt_int_apple_cc_single_mod=yes
10468         fi
10469         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10470           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10471         else
10472         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10473       fi
10474       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10475
10476     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10477       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10478         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}'
10479       else
10480         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10481       fi
10482         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10483     hardcode_direct_CXX=no
10484     hardcode_automatic_CXX=yes
10485     hardcode_shlibpath_var_CXX=unsupported
10486     whole_archive_flag_spec_CXX='-all_load $convenience'
10487     link_all_deplibs_CXX=yes
10488    fi
10489     ;;
10490
10491   dgux*)
10492     case $cc_basename in
10493       ec++)
10494         # FIXME: insert proper C++ library support
10495         ld_shlibs_CXX=no
10496         ;;
10497       ghcx)
10498         # Green Hills C++ Compiler
10499         # FIXME: insert proper C++ library support
10500         ld_shlibs_CXX=no
10501         ;;
10502       *)
10503         # FIXME: insert proper C++ library support
10504         ld_shlibs_CXX=no
10505         ;;
10506     esac
10507     ;;
10508   freebsd12*)
10509     # C++ shared libraries reported to be fairly broken before switch to ELF
10510     ld_shlibs_CXX=no
10511     ;;
10512   freebsd-elf*)
10513     archive_cmds_need_lc_CXX=no
10514     ;;
10515   freebsd*)
10516     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10517     # conventions
10518     ld_shlibs_CXX=yes
10519     ;;
10520   gnu*)
10521     ;;
10522   hpux9*)
10523     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10524     hardcode_libdir_separator_CXX=:
10525     export_dynamic_flag_spec_CXX='${wl}-E'
10526     hardcode_direct_CXX=yes
10527     hardcode_minus_L_CXX=yes # Not in the search PATH,
10528                                 # but as the default
10529                                 # location of the library.
10530
10531     case $cc_basename in
10532     CC)
10533       # FIXME: insert proper C++ library support
10534       ld_shlibs_CXX=no
10535       ;;
10536     aCC)
10537       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'
10538       # Commands to make compiler produce verbose output that lists
10539       # what "hidden" libraries, object files and flags are used when
10540       # linking a shared library.
10541       #
10542       # There doesn't appear to be a way to prevent this compiler from
10543       # explicitly linking system object files so we need to strip them
10544       # from the output so that they don't get included in the library
10545       # dependencies.
10546       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10547       ;;
10548     *)
10549       if test "$GXX" = yes; then
10550         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'
10551       else
10552         # FIXME: insert proper C++ library support
10553         ld_shlibs_CXX=no
10554       fi
10555       ;;
10556     esac
10557     ;;
10558   hpux10*|hpux11*)
10559     if test $with_gnu_ld = no; then
10560       case "$host_cpu" in
10561       hppa*64*)
10562         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10563         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10564         hardcode_libdir_separator_CXX=:
10565         ;;
10566       ia64*)
10567         hardcode_libdir_flag_spec_CXX='-L$libdir'
10568         ;;
10569       *)
10570         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10571         hardcode_libdir_separator_CXX=:
10572         export_dynamic_flag_spec_CXX='${wl}-E'
10573         ;;
10574       esac
10575     fi
10576     case "$host_cpu" in
10577     hppa*64*)
10578       hardcode_direct_CXX=no
10579       hardcode_shlibpath_var_CXX=no
10580       ;;
10581     ia64*)
10582       hardcode_direct_CXX=no
10583       hardcode_shlibpath_var_CXX=no
10584       hardcode_minus_L_CXX=yes # Not in the search PATH,
10585                                               # but as the default
10586                                               # location of the library.
10587       ;;
10588     *)
10589       hardcode_direct_CXX=yes
10590       hardcode_minus_L_CXX=yes # Not in the search PATH,
10591                                               # but as the default
10592                                               # location of the library.
10593       ;;
10594     esac
10595
10596     case $cc_basename in
10597       CC)
10598         # FIXME: insert proper C++ library support
10599         ld_shlibs_CXX=no
10600         ;;
10601       aCC)
10602         case "$host_cpu" in
10603         hppa*64*|ia64*)
10604           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10605           ;;
10606         *)
10607           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10608           ;;
10609         esac
10610         # Commands to make compiler produce verbose output that lists
10611         # what "hidden" libraries, object files and flags are used when
10612         # linking a shared library.
10613         #
10614         # There doesn't appear to be a way to prevent this compiler from
10615         # explicitly linking system object files so we need to strip them
10616         # from the output so that they don't get included in the library
10617         # dependencies.
10618         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'
10619         ;;
10620       *)
10621         if test "$GXX" = yes; then
10622           if test $with_gnu_ld = no; then
10623             case "$host_cpu" in
10624             ia64*|hppa*64*)
10625               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10626               ;;
10627             *)
10628               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'
10629               ;;
10630             esac
10631           fi
10632         else
10633           # FIXME: insert proper C++ library support
10634           ld_shlibs_CXX=no
10635         fi
10636         ;;
10637     esac
10638     ;;
10639   irix5* | irix6*)
10640     case $cc_basename in
10641       CC)
10642         # SGI C++
10643         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10644
10645         # Archives containing C++ object files must be created using
10646         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10647         # necessary to make sure instantiated templates are included
10648         # in the archive.
10649         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10650         ;;
10651       *)
10652         if test "$GXX" = yes; then
10653           if test "$with_gnu_ld" = no; then
10654             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10655           else
10656             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'
10657           fi
10658         fi
10659         link_all_deplibs_CXX=yes
10660         ;;
10661     esac
10662     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10663     hardcode_libdir_separator_CXX=:
10664     ;;
10665   linux*)
10666     case $cc_basename in
10667       KCC)
10668         # Kuck and Associates, Inc. (KAI) C++ Compiler
10669
10670         # KCC will only create a shared library if the output file
10671         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10672         # to its proper name (with version) after linking.
10673         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'
10674         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'
10675         # Commands to make compiler produce verbose output that lists
10676         # what "hidden" libraries, object files and flags are used when
10677         # linking a shared library.
10678         #
10679         # There doesn't appear to be a way to prevent this compiler from
10680         # explicitly linking system object files so we need to strip them
10681         # from the output so that they don't get included in the library
10682         # dependencies.
10683         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'
10684
10685         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10686         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10687
10688         # Archives containing C++ object files must be created using
10689         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10690         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10691         ;;
10692       icpc)
10693         # Intel C++
10694         with_gnu_ld=yes
10695         archive_cmds_need_lc_CXX=no
10696         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697         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'
10698         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10699         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10700         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10701         ;;
10702       cxx)
10703         # Compaq C++
10704         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705         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'
10706
10707         runpath_var=LD_RUN_PATH
10708         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10709         hardcode_libdir_separator_CXX=:
10710
10711         # Commands to make compiler produce verbose output that lists
10712         # what "hidden" libraries, object files and flags are used when
10713         # linking a shared library.
10714         #
10715         # There doesn't appear to be a way to prevent this compiler from
10716         # explicitly linking system object files so we need to strip them
10717         # from the output so that they don't get included in the library
10718         # dependencies.
10719         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'
10720         ;;
10721     esac
10722     ;;
10723   lynxos*)
10724     # FIXME: insert proper C++ library support
10725     ld_shlibs_CXX=no
10726     ;;
10727   m88k*)
10728     # FIXME: insert proper C++ library support
10729     ld_shlibs_CXX=no
10730     ;;
10731   mvs*)
10732     case $cc_basename in
10733       cxx)
10734         # FIXME: insert proper C++ library support
10735         ld_shlibs_CXX=no
10736         ;;
10737       *)
10738         # FIXME: insert proper C++ library support
10739         ld_shlibs_CXX=no
10740         ;;
10741     esac
10742     ;;
10743   netbsd*)
10744     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10745       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10746       wlarc=
10747       hardcode_libdir_flag_spec_CXX='-R$libdir'
10748       hardcode_direct_CXX=yes
10749       hardcode_shlibpath_var_CXX=no
10750     fi
10751     # Workaround some broken pre-1.5 toolchains
10752     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10753     ;;
10754   osf3*)
10755     case $cc_basename in
10756       KCC)
10757         # Kuck and Associates, Inc. (KAI) C++ Compiler
10758
10759         # KCC will only create a shared library if the output file
10760         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10761         # to its proper name (with version) after linking.
10762         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'
10763
10764         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10765         hardcode_libdir_separator_CXX=:
10766
10767         # Archives containing C++ object files must be created using
10768         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10769         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10770
10771         ;;
10772       RCC)
10773         # Rational C++ 2.4.1
10774         # FIXME: insert proper C++ library support
10775         ld_shlibs_CXX=no
10776         ;;
10777       cxx)
10778         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10779         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10780
10781         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10782         hardcode_libdir_separator_CXX=:
10783
10784         # Commands to make compiler produce verbose output that lists
10785         # what "hidden" libraries, object files and flags are used when
10786         # linking a shared library.
10787         #
10788         # There doesn't appear to be a way to prevent this compiler from
10789         # explicitly linking system object files so we need to strip them
10790         # from the output so that they don't get included in the library
10791         # dependencies.
10792         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'
10793         ;;
10794       *)
10795         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10796           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10797           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10798
10799           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10800           hardcode_libdir_separator_CXX=:
10801
10802           # Commands to make compiler produce verbose output that lists
10803           # what "hidden" libraries, object files and flags are used when
10804           # linking a shared library.
10805           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10806
10807         else
10808           # FIXME: insert proper C++ library support
10809           ld_shlibs_CXX=no
10810         fi
10811         ;;
10812     esac
10813     ;;
10814   osf4* | osf5*)
10815     case $cc_basename in
10816       KCC)
10817         # Kuck and Associates, Inc. (KAI) C++ Compiler
10818
10819         # KCC will only create a shared library if the output file
10820         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10821         # to its proper name (with version) after linking.
10822         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'
10823
10824         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10825         hardcode_libdir_separator_CXX=:
10826
10827         # Archives containing C++ object files must be created using
10828         # the KAI C++ compiler.
10829         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10830         ;;
10831       RCC)
10832         # Rational C++ 2.4.1
10833         # FIXME: insert proper C++ library support
10834         ld_shlibs_CXX=no
10835         ;;
10836       cxx)
10837         allow_undefined_flag_CXX=' -expect_unresolved \*'
10838         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10839         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10840           echo "-hidden">> $lib.exp~
10841           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10842           $rm $lib.exp'
10843
10844         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10845         hardcode_libdir_separator_CXX=:
10846
10847         # Commands to make compiler produce verbose output that lists
10848         # what "hidden" libraries, object files and flags are used when
10849         # linking a shared library.
10850         #
10851         # There doesn't appear to be a way to prevent this compiler from
10852         # explicitly linking system object files so we need to strip them
10853         # from the output so that they don't get included in the library
10854         # dependencies.
10855         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'
10856         ;;
10857       *)
10858         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10859           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10860          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10861
10862           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10863           hardcode_libdir_separator_CXX=:
10864
10865           # Commands to make compiler produce verbose output that lists
10866           # what "hidden" libraries, object files and flags are used when
10867           # linking a shared library.
10868           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10869
10870         else
10871           # FIXME: insert proper C++ library support
10872           ld_shlibs_CXX=no
10873         fi
10874         ;;
10875     esac
10876     ;;
10877   psos*)
10878     # FIXME: insert proper C++ library support
10879     ld_shlibs_CXX=no
10880     ;;
10881   sco*)
10882     archive_cmds_need_lc_CXX=no
10883     case $cc_basename in
10884       CC)
10885         # FIXME: insert proper C++ library support
10886         ld_shlibs_CXX=no
10887         ;;
10888       *)
10889         # FIXME: insert proper C++ library support
10890         ld_shlibs_CXX=no
10891         ;;
10892     esac
10893     ;;
10894   sunos4*)
10895     case $cc_basename in
10896       CC)
10897         # Sun C++ 4.x
10898         # FIXME: insert proper C++ library support
10899         ld_shlibs_CXX=no
10900         ;;
10901       lcc)
10902         # Lucid
10903         # FIXME: insert proper C++ library support
10904         ld_shlibs_CXX=no
10905         ;;
10906       *)
10907         # FIXME: insert proper C++ library support
10908         ld_shlibs_CXX=no
10909         ;;
10910     esac
10911     ;;
10912   solaris*)
10913     case $cc_basename in
10914       CC)
10915         # Sun C++ 4.2, 5.x and Centerline C++
10916         no_undefined_flag_CXX=' -zdefs'
10917         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10918         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10919         $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'
10920
10921         hardcode_libdir_flag_spec_CXX='-R$libdir'
10922         hardcode_shlibpath_var_CXX=no
10923         case $host_os in
10924           solaris2.0-5 | solaris2.0-5.*) ;;
10925           *)
10926             # The C++ compiler is used as linker so we must use $wl
10927             # flag to pass the commands to the underlying system
10928             # linker.
10929             # Supported since Solaris 2.6 (maybe 2.5.1?)
10930             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10931             ;;
10932         esac
10933         link_all_deplibs_CXX=yes
10934
10935         # Commands to make compiler produce verbose output that lists
10936         # what "hidden" libraries, object files and flags are used when
10937         # linking a shared library.
10938         #
10939         # There doesn't appear to be a way to prevent this compiler from
10940         # explicitly linking system object files so we need to strip them
10941         # from the output so that they don't get included in the library
10942         # dependencies.
10943         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'
10944
10945         # Archives containing C++ object files must be created using
10946         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10947         # necessary to make sure instantiated templates are included
10948         # in the archive.
10949         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10950         ;;
10951       gcx)
10952         # Green Hills C++ Compiler
10953         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10954
10955         # The C++ compiler must be used to create the archive.
10956         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10957         ;;
10958       *)
10959         # GNU C++ compiler with Solaris linker
10960         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10961           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10962           if $CC --version | grep -v '^2\.7' > /dev/null; then
10963             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10964             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10965                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10966
10967             # Commands to make compiler produce verbose output that lists
10968             # what "hidden" libraries, object files and flags are used when
10969             # linking a shared library.
10970             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10971           else
10972             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10973             # platform.
10974             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10976                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10977
10978             # Commands to make compiler produce verbose output that lists
10979             # what "hidden" libraries, object files and flags are used when
10980             # linking a shared library.
10981             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10982           fi
10983
10984           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10985         fi
10986         ;;
10987     esac
10988     ;;
10989   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10990     archive_cmds_need_lc_CXX=no
10991     ;;
10992   tandem*)
10993     case $cc_basename in
10994       NCC)
10995         # NonStop-UX NCC 3.20
10996         # FIXME: insert proper C++ library support
10997         ld_shlibs_CXX=no
10998         ;;
10999       *)
11000         # FIXME: insert proper C++ library support
11001         ld_shlibs_CXX=no
11002         ;;
11003     esac
11004     ;;
11005   vxworks*)
11006     # FIXME: insert proper C++ library support
11007     ld_shlibs_CXX=no
11008     ;;
11009   *)
11010     # FIXME: insert proper C++ library support
11011     ld_shlibs_CXX=no
11012     ;;
11013 esac
11014 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11015 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11016 test "$ld_shlibs_CXX" = no && can_build_shared=no
11017
11018 GCC_CXX="$GXX"
11019 LD_CXX="$LD"
11020
11021 ## CAVEAT EMPTOR:
11022 ## There is no encapsulation within the following macros, do not change
11023 ## the running order or otherwise move them around unless you know exactly
11024 ## what you are doing...
11025
11026 cat > conftest.$ac_ext <<EOF
11027 class Foo
11028 {
11029 public:
11030   Foo (void) { a = 0; }
11031 private:
11032   int a;
11033 };
11034 EOF
11035
11036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11037   (eval $ac_compile) 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; then
11041   # Parse the compiler output and extract the necessary
11042   # objects, libraries and library flags.
11043
11044   # Sentinel used to keep track of whether or not we are before
11045   # the conftest object file.
11046   pre_test_object_deps_done=no
11047
11048   # The `*' in the case matches for architectures that use `case' in
11049   # $output_verbose_cmd can trigger glob expansion during the loop
11050   # eval without this substitution.
11051   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11052
11053   for p in `eval $output_verbose_link_cmd`; do
11054     case $p in
11055
11056     -L* | -R* | -l*)
11057        # Some compilers place space between "-{L,R}" and the path.
11058        # Remove the space.
11059        if test $p = "-L" \
11060           || test $p = "-R"; then
11061          prev=$p
11062          continue
11063        else
11064          prev=
11065        fi
11066
11067        if test "$pre_test_object_deps_done" = no; then
11068          case $p in
11069          -L* | -R*)
11070            # Internal compiler library paths should come after those
11071            # provided the user.  The postdeps already come after the
11072            # user supplied libs so there is no need to process them.
11073            if test -z "$compiler_lib_search_path_CXX"; then
11074              compiler_lib_search_path_CXX="${prev}${p}"
11075            else
11076              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11077            fi
11078            ;;
11079          # The "-l" case would never come before the object being
11080          # linked, so don't bother handling this case.
11081          esac
11082        else
11083          if test -z "$postdeps_CXX"; then
11084            postdeps_CXX="${prev}${p}"
11085          else
11086            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11087          fi
11088        fi
11089        ;;
11090
11091     *.$objext)
11092        # This assumes that the test object file only shows up
11093        # once in the compiler output.
11094        if test "$p" = "conftest.$objext"; then
11095          pre_test_object_deps_done=yes
11096          continue
11097        fi
11098
11099        if test "$pre_test_object_deps_done" = no; then
11100          if test -z "$predep_objects_CXX"; then
11101            predep_objects_CXX="$p"
11102          else
11103            predep_objects_CXX="$predep_objects_CXX $p"
11104          fi
11105        else
11106          if test -z "$postdep_objects_CXX"; then
11107            postdep_objects_CXX="$p"
11108          else
11109            postdep_objects_CXX="$postdep_objects_CXX $p"
11110          fi
11111        fi
11112        ;;
11113
11114     *) ;; # Ignore the rest.
11115
11116     esac
11117   done
11118
11119   # Clean up.
11120   rm -f a.out a.exe
11121 else
11122   echo "libtool.m4: error: problem compiling CXX test program"
11123 fi
11124
11125 $rm -f confest.$objext
11126
11127 case " $postdeps_CXX " in
11128 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11129 esac
11130
11131 lt_prog_compiler_wl_CXX=
11132 lt_prog_compiler_pic_CXX=
11133 lt_prog_compiler_static_CXX=
11134
11135 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11136 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11137
11138   # C++ specific cases for pic, static, wl, etc.
11139   if test "$GXX" = yes; then
11140     lt_prog_compiler_wl_CXX='-Wl,'
11141     lt_prog_compiler_static_CXX='-static'
11142
11143     case $host_os in
11144     aix*)
11145       # All AIX code is PIC.
11146       if test "$host_cpu" = ia64; then
11147         # AIX 5 now supports IA64 processor
11148         lt_prog_compiler_static_CXX='-Bstatic'
11149       fi
11150       ;;
11151     amigaos*)
11152       # FIXME: we need at least 68020 code to build shared libraries, but
11153       # adding the `-m68020' flag to GCC prevents building anything better,
11154       # like `-m68040'.
11155       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11156       ;;
11157     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11158       # PIC is the default for these OSes.
11159       ;;
11160     mingw* | os2* | pw32*)
11161       # This hack is so that the source file can tell whether it is being
11162       # built for inclusion in a dll (and should export symbols for example).
11163       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11164       ;;
11165     darwin* | rhapsody*)
11166       # PIC is the default on this platform
11167       # Common symbols not allowed in MH_DYLIB files
11168       lt_prog_compiler_pic_CXX='-fno-common'
11169       ;;
11170     *djgpp*)
11171       # DJGPP does not support shared libraries at all
11172       lt_prog_compiler_pic_CXX=
11173       ;;
11174     sysv4*MP*)
11175       if test -d /usr/nec; then
11176         lt_prog_compiler_pic_CXX=-Kconform_pic
11177       fi
11178       ;;
11179     hpux*)
11180       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11181       # not for PA HP-UX.
11182       case "$host_cpu" in
11183       hppa*64*|ia64*)
11184         ;;
11185       *)
11186         lt_prog_compiler_pic_CXX='-fPIC'
11187         ;;
11188       esac
11189       ;;
11190     *)
11191       lt_prog_compiler_pic_CXX='-fPIC'
11192       ;;
11193     esac
11194   else
11195     case $host_os in
11196       aix4* | aix5*)
11197         # All AIX code is PIC.
11198         if test "$host_cpu" = ia64; then
11199           # AIX 5 now supports IA64 processor
11200           lt_prog_compiler_static_CXX='-Bstatic'
11201         else
11202           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11203         fi
11204         ;;
11205       chorus*)
11206         case $cc_basename in
11207         cxch68)
11208           # Green Hills C++ Compiler
11209           # _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"
11210           ;;
11211         esac
11212         ;;
11213       dgux*)
11214         case $cc_basename in
11215           ec++)
11216             lt_prog_compiler_pic_CXX='-KPIC'
11217             ;;
11218           ghcx)
11219             # Green Hills C++ Compiler
11220             lt_prog_compiler_pic_CXX='-pic'
11221             ;;
11222           *)
11223             ;;
11224         esac
11225         ;;
11226       freebsd*)
11227         # FreeBSD uses GNU C++
11228         ;;
11229       hpux9* | hpux10* | hpux11*)
11230         case $cc_basename in
11231           CC)
11232             lt_prog_compiler_wl_CXX='-Wl,'
11233             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11234             if test "$host_cpu" != ia64; then
11235               lt_prog_compiler_pic_CXX='+Z'
11236             fi
11237             ;;
11238           aCC)
11239             lt_prog_compiler_wl_CXX='-Wl,'
11240             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11241             case "$host_cpu" in
11242             hppa*64*|ia64*)
11243               # +Z the default
11244               ;;
11245             *)
11246               lt_prog_compiler_pic_CXX='+Z'
11247               ;;
11248             esac
11249             ;;
11250           *)
11251             ;;
11252         esac
11253         ;;
11254       irix5* | irix6* | nonstopux*)
11255         case $cc_basename in
11256           CC)
11257             lt_prog_compiler_wl_CXX='-Wl,'
11258             lt_prog_compiler_static_CXX='-non_shared'
11259             # CC pic flag -KPIC is the default.
11260             ;;
11261           *)
11262             ;;
11263         esac
11264         ;;
11265       linux*)
11266         case $cc_basename in
11267           KCC)
11268             # KAI C++ Compiler
11269             lt_prog_compiler_wl_CXX='--backend -Wl,'
11270             lt_prog_compiler_pic_CXX='-fPIC'
11271             ;;
11272           icpc)
11273             # Intel C++
11274             lt_prog_compiler_wl_CXX='-Wl,'
11275             lt_prog_compiler_pic_CXX='-KPIC'
11276             lt_prog_compiler_static_CXX='-static'
11277             ;;
11278           cxx)
11279             # Compaq C++
11280             # Make sure the PIC flag is empty.  It appears that all Alpha
11281             # Linux and Compaq Tru64 Unix objects are PIC.
11282             lt_prog_compiler_pic_CXX=
11283             lt_prog_compiler_static_CXX='-non_shared'
11284             ;;
11285           *)
11286             ;;
11287         esac
11288         ;;
11289       lynxos*)
11290         ;;
11291       m88k*)
11292         ;;
11293       mvs*)
11294         case $cc_basename in
11295           cxx)
11296             lt_prog_compiler_pic_CXX='-Wextra c,exportall'
11297             ;;
11298           *)
11299             ;;
11300         esac
11301         ;;
11302       netbsd*)
11303         ;;
11304       osf3* | osf4* | osf5*)
11305         case $cc_basename in
11306           KCC)
11307             lt_prog_compiler_wl_CXX='--backend -Wl,'
11308             ;;
11309           RCC)
11310             # Rational C++ 2.4.1
11311             lt_prog_compiler_pic_CXX='-pic'
11312             ;;
11313           cxx)
11314             # Digital/Compaq C++
11315             lt_prog_compiler_wl_CXX='-Wl,'
11316             # Make sure the PIC flag is empty.  It appears that all Alpha
11317             # Linux and Compaq Tru64 Unix objects are PIC.
11318             lt_prog_compiler_pic_CXX=
11319             lt_prog_compiler_static_CXX='-non_shared'
11320             ;;
11321           *)
11322             ;;
11323         esac
11324         ;;
11325       psos*)
11326         ;;
11327       sco*)
11328         case $cc_basename in
11329           CC)
11330             lt_prog_compiler_pic_CXX='-fPIC'
11331             ;;
11332           *)
11333             ;;
11334         esac
11335         ;;
11336       solaris*)
11337         case $cc_basename in
11338           CC)
11339             # Sun C++ 4.2, 5.x and Centerline C++
11340             lt_prog_compiler_pic_CXX='-KPIC'
11341             lt_prog_compiler_static_CXX='-Bstatic'
11342             lt_prog_compiler_wl_CXX='-Qoption ld '
11343             ;;
11344           gcx)
11345             # Green Hills C++ Compiler
11346             lt_prog_compiler_pic_CXX='-PIC'
11347             ;;
11348           *)
11349             ;;
11350         esac
11351         ;;
11352       sunos4*)
11353         case $cc_basename in
11354           CC)
11355             # Sun C++ 4.x
11356             lt_prog_compiler_pic_CXX='-pic'
11357             lt_prog_compiler_static_CXX='-Bstatic'
11358             ;;
11359           lcc)
11360             # Lucid
11361             lt_prog_compiler_pic_CXX='-pic'
11362             ;;
11363           *)
11364             ;;
11365         esac
11366         ;;
11367       tandem*)
11368         case $cc_basename in
11369           NCC)
11370             # NonStop-UX NCC 3.20
11371             lt_prog_compiler_pic_CXX='-KPIC'
11372             ;;
11373           *)
11374             ;;
11375         esac
11376         ;;
11377       unixware*)
11378         ;;
11379       vxworks*)
11380         ;;
11381       *)
11382         lt_prog_compiler_can_build_shared_CXX=no
11383         ;;
11384     esac
11385   fi
11386
11387 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11388 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11389
11390 #
11391 # Check to make sure the PIC flag actually works.
11392 #
11393 if test -n "$lt_prog_compiler_pic_CXX"; then
11394   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11396 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399   lt_prog_compiler_pic_works_CXX=no
11400   ac_outfile=conftest.$ac_objext
11401    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11402    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11403    # Insert the option either (1) after the last *FLAGS variable, or
11404    # (2) before a word containing "conftest.", or (3) at the end.
11405    # Note that $ac_compile itself does not contain backslashes and begins
11406    # with a dollar sign (not a hyphen), so the echo should work correctly.
11407    # The option is referenced via a variable to avoid confusing sed.
11408    lt_compile=`echo "$ac_compile" | $SED \
11409    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11411    -e 's:$: $lt_compiler_flag:'`
11412    (eval echo "\"\$as_me:11412: $lt_compile\"" >&5)
11413    (eval "$lt_compile" 2>conftest.err)
11414    ac_status=$?
11415    cat conftest.err >&5
11416    echo "$as_me:11416: \$? = $ac_status" >&5
11417    if (exit $ac_status) && test -s "$ac_outfile"; then
11418      # The compiler can only warn and ignore the option if not recognized
11419      # So say no if there are warnings
11420      if test ! -s conftest.err; then
11421        lt_prog_compiler_pic_works_CXX=yes
11422      fi
11423    fi
11424    $rm conftest*
11425
11426 fi
11427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11428 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11429
11430 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11431     case $lt_prog_compiler_pic_CXX in
11432      "" | " "*) ;;
11433      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11434      esac
11435 else
11436     lt_prog_compiler_pic_CXX=
11437      lt_prog_compiler_can_build_shared_CXX=no
11438 fi
11439
11440 fi
11441 case "$host_os" in
11442   # For platforms which do not support PIC, -DPIC is meaningless:
11443   *djgpp*)
11444     lt_prog_compiler_pic_CXX=
11445     ;;
11446   *)
11447     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11448     ;;
11449 esac
11450
11451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11453 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   lt_cv_prog_compiler_c_o_CXX=no
11457    $rm -r conftest 2>/dev/null
11458    mkdir conftest
11459    cd conftest
11460    mkdir out
11461    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11462
11463    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11464    # that will create temporary files in the current directory regardless of
11465    # the output directory.  Thus, making CWD read-only will cause this test
11466    # to fail, enabling locking or at least warning the user not to do parallel
11467    # builds.
11468    chmod -w .
11469
11470    lt_compiler_flag="-o out/conftest2.$ac_objext"
11471    # Insert the option either (1) after the last *FLAGS variable, or
11472    # (2) before a word containing "conftest.", or (3) at the end.
11473    # Note that $ac_compile itself does not contain backslashes and begins
11474    # with a dollar sign (not a hyphen), so the echo should work correctly.
11475    lt_compile=`echo "$ac_compile" | $SED \
11476    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11478    -e 's:$: $lt_compiler_flag:'`
11479    (eval echo "\"\$as_me:11479: $lt_compile\"" >&5)
11480    (eval "$lt_compile" 2>out/conftest.err)
11481    ac_status=$?
11482    cat out/conftest.err >&5
11483    echo "$as_me:11483: \$? = $ac_status" >&5
11484    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11485    then
11486      # The compiler can only warn and ignore the option if not recognized
11487      # So say no if there are warnings
11488      if test ! -s out/conftest.err; then
11489        lt_cv_prog_compiler_c_o_CXX=yes
11490      fi
11491    fi
11492    chmod u+w .
11493    $rm conftest* out/*
11494    rmdir out
11495    cd ..
11496    rmdir conftest
11497    $rm conftest*
11498
11499 fi
11500 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11501 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11502
11503
11504 hard_links="nottested"
11505 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11506   # do not overwrite the value of need_locks provided by the user
11507   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11508 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11509   hard_links=yes
11510   $rm conftest*
11511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11512   touch conftest.a
11513   ln conftest.a conftest.b 2>&5 || hard_links=no
11514   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11515   echo "$as_me:$LINENO: result: $hard_links" >&5
11516 echo "${ECHO_T}$hard_links" >&6
11517   if test "$hard_links" = no; then
11518     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11519 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11520     need_locks=warn
11521   fi
11522 else
11523   need_locks=no
11524 fi
11525
11526 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11527 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11528
11529   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11530   case $host_os in
11531   aix4* | aix5*)
11532     # If we're using GNU nm, then we don't want the "-C" option.
11533     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11534     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11535       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'
11536     else
11537       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'
11538     fi
11539     ;;
11540   pw32*)
11541     export_symbols_cmds_CXX="$ltdll_cmds"
11542   ;;
11543   cygwin* | mingw*)
11544     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11545   ;;
11546   *)
11547     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11548   ;;
11549   esac
11550
11551 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11552 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11553 test "$ld_shlibs_CXX" = no && can_build_shared=no
11554
11555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11556 if test "$GCC" = yes; then
11557   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11558 fi
11559
11560 #
11561 # Do we need to explicitly link libc?
11562 #
11563 case "x$archive_cmds_need_lc_CXX" in
11564 x|xyes)
11565   # Assume -lc should be added
11566   archive_cmds_need_lc_CXX=yes
11567
11568   if test "$enable_shared" = yes && test "$GCC" = yes; then
11569     case $archive_cmds_CXX in
11570     *'~'*)
11571       # FIXME: we may have to deal with multi-command sequences.
11572       ;;
11573     '$CC '*)
11574       # Test whether the compiler implicitly links with -lc since on some
11575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11576       # to ld, don't add -lc before -lgcc.
11577       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11579       $rm conftest*
11580       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11581
11582       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583   (eval $ac_compile) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } 2>conftest.err; then
11587         soname=conftest
11588         lib=conftest
11589         libobjs=conftest.$ac_objext
11590         deplibs=
11591         wl=$lt_prog_compiler_wl_CXX
11592         compiler_flags=-v
11593         linker_flags=-v
11594         verstring=
11595         output_objdir=.
11596         libname=conftest
11597         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11598         allow_undefined_flag_CXX=
11599         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11600   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }
11604         then
11605           archive_cmds_need_lc_CXX=no
11606         else
11607           archive_cmds_need_lc_CXX=yes
11608         fi
11609         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11610       else
11611         cat conftest.err 1>&5
11612       fi
11613       $rm conftest*
11614       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11615 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11616       ;;
11617     esac
11618   fi
11619   ;;
11620 esac
11621
11622 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11623 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11624 hardcode_action_CXX=
11625 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11626    test -n "$runpath_var CXX" || \
11627    test "X$hardcode_automatic_CXX"="Xyes" ; then
11628
11629   # We can hardcode non-existant directories.
11630   if test "$hardcode_direct_CXX" != no &&
11631      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11632      # have to relink, otherwise we might link with an installed library
11633      # when we should be linking with a yet-to-be-installed one
11634      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11635      test "$hardcode_minus_L_CXX" != no; then
11636     # Linking always hardcodes the temporary library directory.
11637     hardcode_action_CXX=relink
11638   else
11639     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11640     hardcode_action_CXX=immediate
11641   fi
11642 else
11643   # We cannot hardcode anything, or else we can only hardcode existing
11644   # directories.
11645   hardcode_action_CXX=unsupported
11646 fi
11647 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11648 echo "${ECHO_T}$hardcode_action_CXX" >&6
11649
11650 if test "$hardcode_action_CXX" = relink; then
11651   # Fast installation is not supported
11652   enable_fast_install=no
11653 elif test "$shlibpath_overrides_runpath" = yes ||
11654      test "$enable_shared" = no; then
11655   # Fast installation is not necessary
11656   enable_fast_install=needless
11657 fi
11658
11659 striplib=
11660 old_striplib=
11661 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11662 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11663 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11664   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11665   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11666   echo "$as_me:$LINENO: result: yes" >&5
11667 echo "${ECHO_T}yes" >&6
11668 else
11669 # FIXME - insert some real tests, host_os isn't really good enough
11670   case $host_os in
11671    darwin*)
11672        if test -n "$STRIP" ; then
11673          striplib="$STRIP -x"
11674          echo "$as_me:$LINENO: result: yes" >&5
11675 echo "${ECHO_T}yes" >&6
11676        else
11677   echo "$as_me:$LINENO: result: no" >&5
11678 echo "${ECHO_T}no" >&6
11679 fi
11680        ;;
11681    *)
11682   echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11684     ;;
11685   esac
11686 fi
11687
11688 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11689 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11690 library_names_spec=
11691 libname_spec='lib$name'
11692 soname_spec=
11693 shrext=".so"
11694 postinstall_cmds=
11695 postuninstall_cmds=
11696 finish_cmds=
11697 finish_eval=
11698 shlibpath_var=
11699 shlibpath_overrides_runpath=unknown
11700 version_type=none
11701 dynamic_linker="$host_os ld.so"
11702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11703 if test "$GCC" = yes; then
11704   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11705   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11706     # if the path contains ";" then we assume it to be the separator
11707     # otherwise default to the standard path separator (i.e. ":") - it is
11708     # assumed that no part of a normal pathname contains ";" but that should
11709     # okay in the real world where ";" in dirpaths is itself problematic.
11710     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11711   else
11712     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11713   fi
11714 else
11715   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11716 fi
11717 need_lib_prefix=unknown
11718 hardcode_into_libs=no
11719
11720 # when you set need_version to no, make sure it does not cause -set_version
11721 # flags to be left without arguments
11722 need_version=unknown
11723
11724 case $host_os in
11725 aix3*)
11726   version_type=linux
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11728   shlibpath_var=LIBPATH
11729
11730   # AIX 3 has no versioning support, so we append a major version to the name.
11731   soname_spec='${libname}${release}${shared_ext}$major'
11732   ;;
11733
11734 aix4* | aix5*)
11735   version_type=linux
11736   need_lib_prefix=no
11737   need_version=no
11738   hardcode_into_libs=yes
11739   if test "$host_cpu" = ia64; then
11740     # AIX 5 supports IA64
11741     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11742     shlibpath_var=LD_LIBRARY_PATH
11743   else
11744     # With GCC up to 2.95.x, collect2 would create an import file
11745     # for dependence libraries.  The import file would start with
11746     # the line `#! .'.  This would cause the generated library to
11747     # depend on `.', always an invalid library.  This was fixed in
11748     # development snapshots of GCC prior to 3.0.
11749     case $host_os in
11750       aix4 | aix4.[01] | aix4.[01].*)
11751       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11752            echo ' yes '
11753            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11754         :
11755       else
11756         can_build_shared=no
11757       fi
11758       ;;
11759     esac
11760     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11761     # soname into executable. Probably we can add versioning support to
11762     # collect2, so additional links can be useful in future.
11763     if test "$aix_use_runtimelinking" = yes; then
11764       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11765       # instead of lib<name>.a to let people know that these are not
11766       # typical AIX shared libraries.
11767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768     else
11769       # We preserve .a as extension for shared libraries through AIX4.2
11770       # and later when we are not doing run time linking.
11771       library_names_spec='${libname}${release}.a $libname.a'
11772       soname_spec='${libname}${release}${shared_ext}$major'
11773     fi
11774     shlibpath_var=LIBPATH
11775   fi
11776   ;;
11777
11778 amigaos*)
11779   library_names_spec='$libname.ixlibrary $libname.a'
11780   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11781   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'
11782   ;;
11783
11784 beos*)
11785   library_names_spec='${libname}${shared_ext}'
11786   dynamic_linker="$host_os ld.so"
11787   shlibpath_var=LIBRARY_PATH
11788   ;;
11789
11790 bsdi4*)
11791   version_type=linux
11792   need_version=no
11793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794   soname_spec='${libname}${release}${shared_ext}$major'
11795   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11798   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11799   # the default ld.so.conf also contains /usr/contrib/lib and
11800   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11801   # libtool to hard-code these into programs
11802   ;;
11803
11804 cygwin* | mingw* | pw32*)
11805   version_type=windows
11806   shrext=".dll"
11807   need_version=no
11808   need_lib_prefix=no
11809
11810   case $GCC,$host_os in
11811   yes,cygwin* | yes,mingw* | yes,pw32*)
11812     library_names_spec='$libname.dll.a'
11813     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11814     postinstall_cmds='base_file=`basename \${file}`~
11815       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11816       dldir=$destdir/`dirname \$dlpath`~
11817       test -d \$dldir || mkdir -p \$dldir~
11818       $install_prog $dir/$dlname \$dldir/$dlname'
11819     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11820       dlpath=$dir/\$dldll~
11821        $rm \$dlpath'
11822     shlibpath_overrides_runpath=yes
11823
11824     case $host_os in
11825     cygwin*)
11826       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11827       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11828       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11829       ;;
11830     mingw*)
11831       # MinGW DLLs use traditional 'lib' prefix
11832       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11833       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11834       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11835         # It is most probably a Windows format PATH printed by
11836         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11837         # path with ; separators, and with drive letters. We can handle the
11838         # drive letters (cygwin fileutils understands them), so leave them,
11839         # especially as we might pass files found there to a mingw objdump,
11840         # which wouldn't understand a cygwinified path. Ahh.
11841         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11842       else
11843         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11844       fi
11845       ;;
11846     pw32*)
11847       # pw32 DLLs use 'pw' prefix rather than 'lib'
11848       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11849       ;;
11850     esac
11851     ;;
11852
11853   *)
11854     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11855     ;;
11856   esac
11857   dynamic_linker='Win32 ld.exe'
11858   # FIXME: first we should search . and the directory the executable is in
11859   shlibpath_var=PATH
11860   ;;
11861
11862 darwin* | rhapsody*)
11863   dynamic_linker="$host_os dyld"
11864   version_type=darwin
11865   need_lib_prefix=no
11866   need_version=no
11867   # FIXME: Relying on posixy $() will cause problems for
11868   #        cross-compilation, but unfortunately the echo tests do not
11869   #        yet detect zsh echo's removal of \ escapes.
11870   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11871   soname_spec='${libname}${release}${major}$shared_ext'
11872   shlibpath_overrides_runpath=yes
11873   shlibpath_var=DYLD_LIBRARY_PATH
11874   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11875   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11876   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11877   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"`
11878   fi
11879   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11880   ;;
11881
11882 dgux*)
11883   version_type=linux
11884   need_lib_prefix=no
11885   need_version=no
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11887   soname_spec='${libname}${release}${shared_ext}$major'
11888   shlibpath_var=LD_LIBRARY_PATH
11889   ;;
11890
11891 freebsd1*)
11892   dynamic_linker=no
11893   ;;
11894
11895 freebsd*)
11896   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11897   version_type=freebsd-$objformat
11898   case $version_type in
11899     freebsd-elf*)
11900       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11901       need_version=no
11902       need_lib_prefix=no
11903       ;;
11904     freebsd-*)
11905       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11906       need_version=yes
11907       ;;
11908   esac
11909   shlibpath_var=LD_LIBRARY_PATH
11910   case $host_os in
11911   freebsd2*)
11912     shlibpath_overrides_runpath=yes
11913     ;;
11914   freebsd3.01* | freebsdelf3.01*)
11915     shlibpath_overrides_runpath=yes
11916     hardcode_into_libs=yes
11917     ;;
11918   *) # from 3.2 on
11919     shlibpath_overrides_runpath=no
11920     hardcode_into_libs=yes
11921     ;;
11922   esac
11923   ;;
11924
11925 gnu*)
11926   version_type=linux
11927   need_lib_prefix=no
11928   need_version=no
11929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11930   soname_spec='${libname}${release}${shared_ext}$major'
11931   shlibpath_var=LD_LIBRARY_PATH
11932   hardcode_into_libs=yes
11933   ;;
11934
11935 hpux9* | hpux10* | hpux11*)
11936   # Give a soname corresponding to the major version so that dld.sl refuses to
11937   # link against other versions.
11938   version_type=sunos
11939   need_lib_prefix=no
11940   need_version=no
11941   case "$host_cpu" in
11942   ia64*)
11943     shrext='.so'
11944     hardcode_into_libs=yes
11945     dynamic_linker="$host_os dld.so"
11946     shlibpath_var=LD_LIBRARY_PATH
11947     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949     soname_spec='${libname}${release}${shared_ext}$major'
11950     if test "X$HPUX_IA64_MODE" = X32; then
11951       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11952     else
11953       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11954     fi
11955     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11956     ;;
11957    hppa*64*)
11958      shrext='.sl'
11959      hardcode_into_libs=yes
11960      dynamic_linker="$host_os dld.sl"
11961      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11962      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11963      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964      soname_spec='${libname}${release}${shared_ext}$major'
11965      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11966      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11967      ;;
11968    *)
11969     shrext='.sl'
11970     dynamic_linker="$host_os dld.sl"
11971     shlibpath_var=SHLIB_PATH
11972     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974     soname_spec='${libname}${release}${shared_ext}$major'
11975     ;;
11976   esac
11977   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11978   postinstall_cmds='chmod 555 $lib'
11979   ;;
11980
11981 irix5* | irix6* | nonstopux*)
11982   case $host_os in
11983     nonstopux*) version_type=nonstopux ;;
11984     *)
11985         if test "$lt_cv_prog_gnu_ld" = yes; then
11986                 version_type=linux
11987         else
11988                 version_type=irix
11989         fi ;;
11990   esac
11991   need_lib_prefix=no
11992   need_version=no
11993   soname_spec='${libname}${release}${shared_ext}$major'
11994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11995   case $host_os in
11996   irix5* | nonstopux*)
11997     libsuff= shlibsuff=
11998     ;;
11999   *)
12000     case $LD in # libtool.m4 will add one of these switches to LD
12001     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12002       libsuff= shlibsuff= libmagic=32-bit;;
12003     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12004       libsuff=32 shlibsuff=N32 libmagic=N32;;
12005     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12006       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12007     *) libsuff= shlibsuff= libmagic=never-match;;
12008     esac
12009     ;;
12010   esac
12011   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12012   shlibpath_overrides_runpath=no
12013   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12014   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12015   hardcode_into_libs=yes
12016   ;;
12017
12018 # No shared lib support for Linux oldld, aout, or coff.
12019 linux*oldld* | linux*aout* | linux*coff*)
12020   dynamic_linker=no
12021   ;;
12022
12023 # This must be Linux ELF.
12024 linux*)
12025   version_type=linux
12026   need_lib_prefix=no
12027   need_version=no
12028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029   soname_spec='${libname}${release}${shared_ext}$major'
12030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12031   shlibpath_var=LD_LIBRARY_PATH
12032   shlibpath_overrides_runpath=no
12033   # This implies no fast_install, which is unacceptable.
12034   # Some rework will be needed to allow for fast_install
12035   # before this can be enabled.
12036   hardcode_into_libs=yes
12037
12038   # We used to test for /lib/ld.so.1 and disable shared libraries on
12039   # powerpc, because MkLinux only supported shared libraries with the
12040   # GNU dynamic linker.  Since this was broken with cross compilers,
12041   # most powerpc-linux boxes support dynamic linking these days and
12042   # people can always --disable-shared, the test was removed, and we
12043   # assume the GNU/Linux dynamic linker is in use.
12044   dynamic_linker='GNU/Linux ld.so'
12045   ;;
12046
12047 netbsd*)
12048   version_type=sunos
12049   need_lib_prefix=no
12050   need_version=no
12051   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12054     dynamic_linker='NetBSD (a.out) ld.so'
12055   else
12056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12057     soname_spec='${libname}${release}${shared_ext}$major'
12058     dynamic_linker='NetBSD ld.elf_so'
12059   fi
12060   shlibpath_var=LD_LIBRARY_PATH
12061   shlibpath_overrides_runpath=yes
12062   hardcode_into_libs=yes
12063   ;;
12064
12065 newsos6)
12066   version_type=linux
12067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068   shlibpath_var=LD_LIBRARY_PATH
12069   shlibpath_overrides_runpath=yes
12070   ;;
12071
12072 nto-qnx)
12073   version_type=linux
12074   need_lib_prefix=no
12075   need_version=no
12076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077   soname_spec='${libname}${release}${shared_ext}$major'
12078   shlibpath_var=LD_LIBRARY_PATH
12079   shlibpath_overrides_runpath=yes
12080   ;;
12081
12082 openbsd*)
12083   version_type=sunos
12084   need_lib_prefix=no
12085   need_version=no
12086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12087   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12088   shlibpath_var=LD_LIBRARY_PATH
12089   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12090     case $host_os in
12091       openbsd2.[89] | openbsd2.[89].*)
12092         shlibpath_overrides_runpath=no
12093         ;;
12094       *)
12095         shlibpath_overrides_runpath=yes
12096         ;;
12097       esac
12098   else
12099     shlibpath_overrides_runpath=yes
12100   fi
12101   ;;
12102
12103 os2*)
12104   libname_spec='$name'
12105   shrext=".dll"
12106   need_lib_prefix=no
12107   library_names_spec='$libname${shared_ext} $libname.a'
12108   dynamic_linker='OS/2 ld.exe'
12109   shlibpath_var=LIBPATH
12110   ;;
12111
12112 osf3* | osf4* | osf5*)
12113   version_type=osf
12114   need_lib_prefix=no
12115   need_version=no
12116   soname_spec='${libname}${release}${shared_ext}$major'
12117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12120   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12121   ;;
12122
12123 sco3.2v5*)
12124   version_type=osf
12125   soname_spec='${libname}${release}${shared_ext}$major'
12126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12127   shlibpath_var=LD_LIBRARY_PATH
12128   ;;
12129
12130 solaris*)
12131   version_type=linux
12132   need_lib_prefix=no
12133   need_version=no
12134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135   soname_spec='${libname}${release}${shared_ext}$major'
12136   shlibpath_var=LD_LIBRARY_PATH
12137   shlibpath_overrides_runpath=yes
12138   hardcode_into_libs=yes
12139   # ldd complains unless libraries are executable
12140   postinstall_cmds='chmod +x $lib'
12141   ;;
12142
12143 sunos4*)
12144   version_type=sunos
12145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12146   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12147   shlibpath_var=LD_LIBRARY_PATH
12148   shlibpath_overrides_runpath=yes
12149   if test "$with_gnu_ld" = yes; then
12150     need_lib_prefix=no
12151   fi
12152   need_version=yes
12153   ;;
12154
12155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12156   version_type=linux
12157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158   soname_spec='${libname}${release}${shared_ext}$major'
12159   shlibpath_var=LD_LIBRARY_PATH
12160   case $host_vendor in
12161     sni)
12162       shlibpath_overrides_runpath=no
12163       need_lib_prefix=no
12164       export_dynamic_flag_spec='${wl}-Blargedynsym'
12165       runpath_var=LD_RUN_PATH
12166       ;;
12167     siemens)
12168       need_lib_prefix=no
12169       ;;
12170     motorola)
12171       need_lib_prefix=no
12172       need_version=no
12173       shlibpath_overrides_runpath=no
12174       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12175       ;;
12176   esac
12177   ;;
12178
12179 sysv4*MP*)
12180   if test -d /usr/nec ;then
12181     version_type=linux
12182     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12183     soname_spec='$libname${shared_ext}.$major'
12184     shlibpath_var=LD_LIBRARY_PATH
12185   fi
12186   ;;
12187
12188 uts4*)
12189   version_type=linux
12190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191   soname_spec='${libname}${release}${shared_ext}$major'
12192   shlibpath_var=LD_LIBRARY_PATH
12193   ;;
12194
12195 *)
12196   dynamic_linker=no
12197   ;;
12198 esac
12199 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12200 echo "${ECHO_T}$dynamic_linker" >&6
12201 test "$dynamic_linker" = no && can_build_shared=no
12202
12203 if test "x$enable_dlopen" != xyes; then
12204   enable_dlopen=unknown
12205   enable_dlopen_self=unknown
12206   enable_dlopen_self_static=unknown
12207 else
12208   lt_cv_dlopen=no
12209   lt_cv_dlopen_libs=
12210
12211   case $host_os in
12212   beos*)
12213     lt_cv_dlopen="load_add_on"
12214     lt_cv_dlopen_libs=
12215     lt_cv_dlopen_self=yes
12216     ;;
12217
12218   mingw* | pw32*)
12219     lt_cv_dlopen="LoadLibrary"
12220     lt_cv_dlopen_libs=
12221    ;;
12222
12223   cygwin*)
12224     lt_cv_dlopen="dlopen"
12225     lt_cv_dlopen_libs=
12226    ;;
12227
12228   darwin*)
12229   # if libdl is installed we need to link against it
12230     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-ldl  $LIBS"
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243
12244 /* Override any gcc2 internal prototype to avoid an error.  */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 /* We use char because int might match the return type of a gcc2
12249    builtin and then its argument prototype would still apply.  */
12250 char dlopen ();
12251 int
12252 main ()
12253 {
12254 dlopen ();
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261   (eval $ac_link) 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; } &&
12274          { ac_try='test -s conftest$ac_exeext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   ac_cv_lib_dl_dlopen=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 ac_cv_lib_dl_dlopen=no
12286 fi
12287 rm -f conftest.err conftest.$ac_objext \
12288       conftest$ac_exeext conftest.$ac_ext
12289 LIBS=$ac_check_lib_save_LIBS
12290 fi
12291 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12293 if test $ac_cv_lib_dl_dlopen = yes; then
12294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12295 else
12296
12297     lt_cv_dlopen="dyld"
12298     lt_cv_dlopen_libs=
12299     lt_cv_dlopen_self=yes
12300
12301 fi
12302
12303    ;;
12304
12305   *)
12306     echo "$as_me:$LINENO: checking for shl_load" >&5
12307 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12308 if test "${ac_cv_func_shl_load+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12319 #define shl_load innocuous_shl_load
12320
12321 /* System header to define __stub macros and hopefully few prototypes,
12322     which can conflict with char shl_load (); below.
12323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12324     <limits.h> exists even on freestanding compilers.  */
12325
12326 #ifdef __STDC__
12327 # include <limits.h>
12328 #else
12329 # include <assert.h>
12330 #endif
12331
12332 #undef shl_load
12333
12334 /* Override any gcc2 internal prototype to avoid an error.  */
12335 #ifdef __cplusplus
12336 extern "C"
12337 {
12338 #endif
12339 /* We use char because int might match the return type of a gcc2
12340    builtin and then its argument prototype would still apply.  */
12341 char shl_load ();
12342 /* The GNU C library defines this for functions which it implements
12343     to always fail with ENOSYS.  Some functions are actually named
12344     something starting with __ and the normal name is an alias.  */
12345 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12346 choke me
12347 #else
12348 char (*f) () = shl_load;
12349 #endif
12350 #ifdef __cplusplus
12351 }
12352 #endif
12353
12354 int
12355 main ()
12356 {
12357 return f != shl_load;
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364   (eval $ac_link) 2>conftest.er1
12365   ac_status=$?
12366   grep -v '^ *+' conftest.er1 >conftest.err
12367   rm -f conftest.er1
12368   cat conftest.err >&5
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } &&
12371          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; } &&
12377          { ac_try='test -s conftest$ac_exeext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   ac_cv_func_shl_load=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_func_shl_load=no
12389 fi
12390 rm -f conftest.err conftest.$ac_objext \
12391       conftest$ac_exeext conftest.$ac_ext
12392 fi
12393 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12394 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12395 if test $ac_cv_func_shl_load = yes; then
12396   lt_cv_dlopen="shl_load"
12397 else
12398   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12399 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12400 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12401   echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403   ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldld  $LIBS"
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411
12412 /* Override any gcc2 internal prototype to avoid an error.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 /* We use char because int might match the return type of a gcc2
12417    builtin and then its argument prototype would still apply.  */
12418 char shl_load ();
12419 int
12420 main ()
12421 {
12422 shl_load ();
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429   (eval $ac_link) 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; } &&
12442          { ac_try='test -s conftest$ac_exeext'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; }; then
12448   ac_cv_lib_dld_shl_load=yes
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 ac_cv_lib_dld_shl_load=no
12454 fi
12455 rm -f conftest.err conftest.$ac_objext \
12456       conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12460 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12461 if test $ac_cv_lib_dld_shl_load = yes; then
12462   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12463 else
12464   echo "$as_me:$LINENO: checking for dlopen" >&5
12465 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12466 if test "${ac_cv_func_dlopen+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h.  */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h.  */
12475 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12477 #define dlopen innocuous_dlopen
12478
12479 /* System header to define __stub macros and hopefully few prototypes,
12480     which can conflict with char dlopen (); below.
12481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482     <limits.h> exists even on freestanding compilers.  */
12483
12484 #ifdef __STDC__
12485 # include <limits.h>
12486 #else
12487 # include <assert.h>
12488 #endif
12489
12490 #undef dlopen
12491
12492 /* Override any gcc2 internal prototype to avoid an error.  */
12493 #ifdef __cplusplus
12494 extern "C"
12495 {
12496 #endif
12497 /* We use char because int might match the return type of a gcc2
12498    builtin and then its argument prototype would still apply.  */
12499 char dlopen ();
12500 /* The GNU C library defines this for functions which it implements
12501     to always fail with ENOSYS.  Some functions are actually named
12502     something starting with __ and the normal name is an alias.  */
12503 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12504 choke me
12505 #else
12506 char (*f) () = dlopen;
12507 #endif
12508 #ifdef __cplusplus
12509 }
12510 #endif
12511
12512 int
12513 main ()
12514 {
12515 return f != dlopen;
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522   (eval $ac_link) 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } &&
12529          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest$ac_exeext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   ac_cv_func_dlopen=yes
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_cv_func_dlopen=no
12547 fi
12548 rm -f conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext conftest.$ac_ext
12550 fi
12551 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12553 if test $ac_cv_func_dlopen = yes; then
12554   lt_cv_dlopen="dlopen"
12555 else
12556   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-ldl  $LIBS"
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569
12570 /* Override any gcc2 internal prototype to avoid an error.  */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 /* We use char because int might match the return type of a gcc2
12575    builtin and then its argument prototype would still apply.  */
12576 char dlopen ();
12577 int
12578 main ()
12579 {
12580 dlopen ();
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587   (eval $ac_link) 2>conftest.er1
12588   ac_status=$?
12589   grep -v '^ *+' conftest.er1 >conftest.err
12590   rm -f conftest.er1
12591   cat conftest.err >&5
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } &&
12594          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; } &&
12600          { ac_try='test -s conftest$ac_exeext'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606   ac_cv_lib_dl_dlopen=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_cv_lib_dl_dlopen=no
12612 fi
12613 rm -f conftest.err conftest.$ac_objext \
12614       conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12619 if test $ac_cv_lib_dl_dlopen = yes; then
12620   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12621 else
12622   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12623 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12624 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-lsvld  $LIBS"
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 /* Override any gcc2 internal prototype to avoid an error.  */
12637 #ifdef __cplusplus
12638 extern "C"
12639 #endif
12640 /* We use char because int might match the return type of a gcc2
12641    builtin and then its argument prototype would still apply.  */
12642 char dlopen ();
12643 int
12644 main ()
12645 {
12646 dlopen ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; } &&
12666          { ac_try='test -s conftest$ac_exeext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_lib_svld_dlopen=yes
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_lib_svld_dlopen=no
12678 fi
12679 rm -f conftest.err conftest.$ac_objext \
12680       conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12684 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12685 if test $ac_cv_lib_svld_dlopen = yes; then
12686   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12687 else
12688   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12689 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-ldld  $LIBS"
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701
12702 /* Override any gcc2 internal prototype to avoid an error.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 /* We use char because int might match the return type of a gcc2
12707    builtin and then its argument prototype would still apply.  */
12708 char dld_link ();
12709 int
12710 main ()
12711 {
12712 dld_link ();
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 rm -f conftest.$ac_objext conftest$ac_exeext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719   (eval $ac_link) 2>conftest.er1
12720   ac_status=$?
12721   grep -v '^ *+' conftest.er1 >conftest.err
12722   rm -f conftest.er1
12723   cat conftest.err >&5
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); } &&
12726          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728   (eval $ac_try) 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; } &&
12732          { ac_try='test -s conftest$ac_exeext'
12733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734   (eval $ac_try) 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; }; then
12738   ac_cv_lib_dld_dld_link=yes
12739 else
12740   echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12742
12743 ac_cv_lib_dld_dld_link=no
12744 fi
12745 rm -f conftest.err conftest.$ac_objext \
12746       conftest$ac_exeext conftest.$ac_ext
12747 LIBS=$ac_check_lib_save_LIBS
12748 fi
12749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12750 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12751 if test $ac_cv_lib_dld_dld_link = yes; then
12752   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12753 fi
12754
12755
12756 fi
12757
12758
12759 fi
12760
12761
12762 fi
12763
12764
12765 fi
12766
12767
12768 fi
12769
12770     ;;
12771   esac
12772
12773   if test "x$lt_cv_dlopen" != xno; then
12774     enable_dlopen=yes
12775   else
12776     enable_dlopen=no
12777   fi
12778
12779   case $lt_cv_dlopen in
12780   dlopen)
12781     save_CPPFLAGS="$CPPFLAGS"
12782     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12783
12784     save_LDFLAGS="$LDFLAGS"
12785     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12786
12787     save_LIBS="$LIBS"
12788     LIBS="$lt_cv_dlopen_libs $LIBS"
12789
12790     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12791 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12792 if test "${lt_cv_dlopen_self+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795           if test "$cross_compiling" = yes; then :
12796   lt_cv_dlopen_self=cross
12797 else
12798   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12799   lt_status=$lt_dlunknown
12800   cat > conftest.$ac_ext <<EOF
12801 #line 12801 "configure"
12802 #include "confdefs.h"
12803
12804 #if HAVE_DLFCN_H
12805 #include <dlfcn.h>
12806 #endif
12807
12808 #include <stdio.h>
12809
12810 #ifdef RTLD_GLOBAL
12811 #  define LT_DLGLOBAL           RTLD_GLOBAL
12812 #else
12813 #  ifdef DL_GLOBAL
12814 #    define LT_DLGLOBAL         DL_GLOBAL
12815 #  else
12816 #    define LT_DLGLOBAL         0
12817 #  endif
12818 #endif
12819
12820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12821    find out it does not work in some platform. */
12822 #ifndef LT_DLLAZY_OR_NOW
12823 #  ifdef RTLD_LAZY
12824 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12825 #  else
12826 #    ifdef DL_LAZY
12827 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12828 #    else
12829 #      ifdef RTLD_NOW
12830 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12831 #      else
12832 #        ifdef DL_NOW
12833 #          define LT_DLLAZY_OR_NOW      DL_NOW
12834 #        else
12835 #          define LT_DLLAZY_OR_NOW      0
12836 #        endif
12837 #      endif
12838 #    endif
12839 #  endif
12840 #endif
12841
12842 #ifdef __cplusplus
12843 extern "C" void exit (int);
12844 #endif
12845
12846 void fnord() { int i=42;}
12847 int main ()
12848 {
12849   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12850   int status = $lt_dlunknown;
12851
12852   if (self)
12853     {
12854       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12855       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12856       /* dlclose (self); */
12857     }
12858
12859     exit (status);
12860 }
12861 EOF
12862   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863   (eval $ac_link) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12867     (./conftest; exit; ) 2>/dev/null
12868     lt_status=$?
12869     case x$lt_status in
12870       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12871       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12872       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12873     esac
12874   else :
12875     # compilation failed
12876     lt_cv_dlopen_self=no
12877   fi
12878 fi
12879 rm -fr conftest*
12880
12881
12882 fi
12883 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12884 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12885
12886     if test "x$lt_cv_dlopen_self" = xyes; then
12887       LDFLAGS="$LDFLAGS $link_static_flag"
12888       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12889 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12890 if test "${lt_cv_dlopen_self_static+set}" = set; then
12891   echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893           if test "$cross_compiling" = yes; then :
12894   lt_cv_dlopen_self_static=cross
12895 else
12896   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12897   lt_status=$lt_dlunknown
12898   cat > conftest.$ac_ext <<EOF
12899 #line 12899 "configure"
12900 #include "confdefs.h"
12901
12902 #if HAVE_DLFCN_H
12903 #include <dlfcn.h>
12904 #endif
12905
12906 #include <stdio.h>
12907
12908 #ifdef RTLD_GLOBAL
12909 #  define LT_DLGLOBAL           RTLD_GLOBAL
12910 #else
12911 #  ifdef DL_GLOBAL
12912 #    define LT_DLGLOBAL         DL_GLOBAL
12913 #  else
12914 #    define LT_DLGLOBAL         0
12915 #  endif
12916 #endif
12917
12918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12919    find out it does not work in some platform. */
12920 #ifndef LT_DLLAZY_OR_NOW
12921 #  ifdef RTLD_LAZY
12922 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12923 #  else
12924 #    ifdef DL_LAZY
12925 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12926 #    else
12927 #      ifdef RTLD_NOW
12928 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12929 #      else
12930 #        ifdef DL_NOW
12931 #          define LT_DLLAZY_OR_NOW      DL_NOW
12932 #        else
12933 #          define LT_DLLAZY_OR_NOW      0
12934 #        endif
12935 #      endif
12936 #    endif
12937 #  endif
12938 #endif
12939
12940 #ifdef __cplusplus
12941 extern "C" void exit (int);
12942 #endif
12943
12944 void fnord() { int i=42;}
12945 int main ()
12946 {
12947   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12948   int status = $lt_dlunknown;
12949
12950   if (self)
12951     {
12952       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12953       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12954       /* dlclose (self); */
12955     }
12956
12957     exit (status);
12958 }
12959 EOF
12960   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12961   (eval $ac_link) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12965     (./conftest; exit; ) 2>/dev/null
12966     lt_status=$?
12967     case x$lt_status in
12968       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12969       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12970       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12971     esac
12972   else :
12973     # compilation failed
12974     lt_cv_dlopen_self_static=no
12975   fi
12976 fi
12977 rm -fr conftest*
12978
12979
12980 fi
12981 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12982 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12983     fi
12984
12985     CPPFLAGS="$save_CPPFLAGS"
12986     LDFLAGS="$save_LDFLAGS"
12987     LIBS="$save_LIBS"
12988     ;;
12989   esac
12990
12991   case $lt_cv_dlopen_self in
12992   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12993   *) enable_dlopen_self=unknown ;;
12994   esac
12995
12996   case $lt_cv_dlopen_self_static in
12997   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12998   *) enable_dlopen_self_static=unknown ;;
12999   esac
13000 fi
13001
13002
13003 # The else clause should only fire when bootstrapping the
13004 # libtool distribution, otherwise you forgot to ship ltmain.sh
13005 # with your package, and you will get complaints that there are
13006 # no rules to generate ltmain.sh.
13007 if test -f "$ltmain"; then
13008   # See if we are running on zsh, and set the options which allow our commands through
13009   # without removal of \ escapes.
13010   if test -n "${ZSH_VERSION+set}" ; then
13011     setopt NO_GLOB_SUBST
13012   fi
13013   # Now quote all the things that may contain metacharacters while being
13014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13015   # variables and quote the copies for generation of the libtool script.
13016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13017     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13018     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13019     deplibs_check_method reload_flag reload_cmds need_locks \
13020     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13021     lt_cv_sys_global_symbol_to_c_name_address \
13022     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13023     old_postinstall_cmds old_postuninstall_cmds \
13024     compiler_CXX \
13025     CC_CXX \
13026     LD_CXX \
13027     lt_prog_compiler_wl_CXX \
13028     lt_prog_compiler_pic_CXX \
13029     lt_prog_compiler_static_CXX \
13030     lt_prog_compiler_no_builtin_flag_CXX \
13031     export_dynamic_flag_spec_CXX \
13032     thread_safe_flag_spec_CXX \
13033     whole_archive_flag_spec_CXX \
13034     enable_shared_with_static_runtimes_CXX \
13035     old_archive_cmds_CXX \
13036     old_archive_from_new_cmds_CXX \
13037     predep_objects_CXX \
13038     postdep_objects_CXX \
13039     predeps_CXX \
13040     postdeps_CXX \
13041     compiler_lib_search_path_CXX \
13042     archive_cmds_CXX \
13043     archive_expsym_cmds_CXX \
13044     postinstall_cmds_CXX \
13045     postuninstall_cmds_CXX \
13046     old_archive_from_expsyms_cmds_CXX \
13047     allow_undefined_flag_CXX \
13048     no_undefined_flag_CXX \
13049     export_symbols_cmds_CXX \
13050     hardcode_libdir_flag_spec_CXX \
13051     hardcode_libdir_flag_spec_ld_CXX \
13052     hardcode_libdir_separator_CXX \
13053     hardcode_automatic_CXX \
13054     module_cmds_CXX \
13055     module_expsym_cmds_CXX \
13056     lt_cv_prog_compiler_c_o_CXX \
13057     exclude_expsyms_CXX \
13058     include_expsyms_CXX; do
13059
13060     case $var in
13061     old_archive_cmds_CXX | \
13062     old_archive_from_new_cmds_CXX | \
13063     archive_cmds_CXX | \
13064     archive_expsym_cmds_CXX | \
13065     module_cmds_CXX | \
13066     module_expsym_cmds_CXX | \
13067     old_archive_from_expsyms_cmds_CXX | \
13068     export_symbols_cmds_CXX | \
13069     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13070     postinstall_cmds | postuninstall_cmds | \
13071     old_postinstall_cmds | old_postuninstall_cmds | \
13072     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13073       # Double-quote double-evaled strings.
13074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13075       ;;
13076     *)
13077       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13078       ;;
13079     esac
13080   done
13081
13082   case $lt_echo in
13083   *'\$0 --fallback-echo"')
13084     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13085     ;;
13086   esac
13087
13088 cfgfile="$ofile"
13089
13090   cat <<__EOF__ >> "$cfgfile"
13091 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13092
13093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13094
13095 # Shell to use when invoking shell scripts.
13096 SHELL=$lt_SHELL
13097
13098 # Whether or not to build shared libraries.
13099 build_libtool_libs=$enable_shared
13100
13101 # Whether or not to build static libraries.
13102 build_old_libs=$enable_static
13103
13104 # Whether or not to add -lc for building shared libraries.
13105 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13106
13107 # Whether or not to disallow shared libs when runtime libs are static
13108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13109
13110 # Whether or not to optimize for fast installation.
13111 fast_install=$enable_fast_install
13112
13113 # The host system.
13114 host_alias=$host_alias
13115 host=$host
13116
13117 # An echo program that does not interpret backslashes.
13118 echo=$lt_echo
13119
13120 # The archiver.
13121 AR=$lt_AR
13122 AR_FLAGS=$lt_AR_FLAGS
13123
13124 # A C compiler.
13125 LTCC=$lt_LTCC
13126
13127 # A language-specific compiler.
13128 CC=$lt_compiler_CXX
13129
13130 # Is the compiler the GNU C compiler?
13131 with_gcc=$GCC_CXX
13132
13133 # An ERE matcher.
13134 EGREP=$lt_EGREP
13135
13136 # The linker used to build libraries.
13137 LD=$lt_LD_CXX
13138
13139 # Whether we need hard or soft links.
13140 LN_S=$lt_LN_S
13141
13142 # A BSD-compatible nm program.
13143 NM=$lt_NM
13144
13145 # A symbol stripping program
13146 STRIP=$STRIP
13147
13148 # Used to examine libraries when file_magic_cmd begins "file"
13149 MAGIC_CMD=$MAGIC_CMD
13150
13151 # Used on cygwin: DLL creation program.
13152 DLLTOOL="$DLLTOOL"
13153
13154 # Used on cygwin: object dumper.
13155 OBJDUMP="$OBJDUMP"
13156
13157 # Used on cygwin: assembler.
13158 AS="$AS"
13159
13160 # The name of the directory that contains temporary libtool files.
13161 objdir=$objdir
13162
13163 # How to create reloadable object files.
13164 reload_flag=$lt_reload_flag
13165 reload_cmds=$lt_reload_cmds
13166
13167 # How to pass a linker flag through the compiler.
13168 wl=$lt_lt_prog_compiler_wl_CXX
13169
13170 # Object file suffix (normally "o").
13171 objext="$ac_objext"
13172
13173 # Old archive suffix (normally "a").
13174 libext="$libext"
13175
13176 # Shared library suffix (normally ".so").
13177 shrext='$shrext'
13178
13179 # Executable file suffix (normally "").
13180 exeext="$exeext"
13181
13182 # Additional compiler flags for building library objects.
13183 pic_flag=$lt_lt_prog_compiler_pic_CXX
13184 pic_mode=$pic_mode
13185
13186 # What is the maximum length of a command?
13187 max_cmd_len=$lt_cv_sys_max_cmd_len
13188
13189 # Does compiler simultaneously support -c and -o options?
13190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13191
13192 # Must we lock files when doing compilation ?
13193 need_locks=$lt_need_locks
13194
13195 # Do we need the lib prefix for modules?
13196 need_lib_prefix=$need_lib_prefix
13197
13198 # Do we need a version for libraries?
13199 need_version=$need_version
13200
13201 # Whether dlopen is supported.
13202 dlopen_support=$enable_dlopen
13203
13204 # Whether dlopen of programs is supported.
13205 dlopen_self=$enable_dlopen_self
13206
13207 # Whether dlopen of statically linked programs is supported.
13208 dlopen_self_static=$enable_dlopen_self_static
13209
13210 # Compiler flag to prevent dynamic linking.
13211 link_static_flag=$lt_lt_prog_compiler_static_CXX
13212
13213 # Compiler flag to turn off builtin functions.
13214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13215
13216 # Compiler flag to allow reflexive dlopens.
13217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13218
13219 # Compiler flag to generate shared objects directly from archives.
13220 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13221
13222 # Compiler flag to generate thread-safe objects.
13223 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13224
13225 # Library versioning type.
13226 version_type=$version_type
13227
13228 # Format of library name prefix.
13229 libname_spec=$lt_libname_spec
13230
13231 # List of archive names.  First name is the real one, the rest are links.
13232 # The last name is the one that the linker finds with -lNAME.
13233 library_names_spec=$lt_library_names_spec
13234
13235 # The coded name of the library, if different from the real name.
13236 soname_spec=$lt_soname_spec
13237
13238 # Commands used to build and install an old-style archive.
13239 RANLIB=$lt_RANLIB
13240 old_archive_cmds=$lt_old_archive_cmds_CXX
13241 old_postinstall_cmds=$lt_old_postinstall_cmds
13242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13243
13244 # Create an old-style archive from a shared archive.
13245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13246
13247 # Create a temporary old-style archive to link instead of a shared archive.
13248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13249
13250 # Commands used to build and install a shared archive.
13251 archive_cmds=$lt_archive_cmds_CXX
13252 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13253 postinstall_cmds=$lt_postinstall_cmds
13254 postuninstall_cmds=$lt_postuninstall_cmds
13255
13256 # Commands used to build a loadable module (assumed same as above if empty)
13257 module_cmds=$lt_module_cmds_CXX
13258 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13259
13260 # Commands to strip libraries.
13261 old_striplib=$lt_old_striplib
13262 striplib=$lt_striplib
13263
13264 # Dependencies to place before the objects being linked to create a
13265 # shared library.
13266 predep_objects=$lt_predep_objects_CXX
13267
13268 # Dependencies to place after the objects being linked to create a
13269 # shared library.
13270 postdep_objects=$lt_postdep_objects_CXX
13271
13272 # Dependencies to place before the objects being linked to create a
13273 # shared library.
13274 predeps=$lt_predeps_CXX
13275
13276 # Dependencies to place after the objects being linked to create a
13277 # shared library.
13278 postdeps=$lt_postdeps_CXX
13279
13280 # The library search path used internally by the compiler when linking
13281 # a shared library.
13282 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13283
13284 # Method to check whether dependent libraries are shared objects.
13285 deplibs_check_method=$lt_deplibs_check_method
13286
13287 # Command to use when deplibs_check_method == file_magic.
13288 file_magic_cmd=$lt_file_magic_cmd
13289
13290 # Flag that allows shared libraries with undefined symbols to be built.
13291 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13292
13293 # Flag that forces no undefined symbols.
13294 no_undefined_flag=$lt_no_undefined_flag_CXX
13295
13296 # Commands used to finish a libtool library installation in a directory.
13297 finish_cmds=$lt_finish_cmds
13298
13299 # Same as above, but a single script fragment to be evaled but not shown.
13300 finish_eval=$lt_finish_eval
13301
13302 # Take the output of nm and produce a listing of raw symbols and C names.
13303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13304
13305 # Transform the output of nm in a proper C declaration
13306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13307
13308 # Transform the output of nm in a C name address pair
13309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13310
13311 # This is the shared library runtime path variable.
13312 runpath_var=$runpath_var
13313
13314 # This is the shared library path variable.
13315 shlibpath_var=$shlibpath_var
13316
13317 # Is shlibpath searched before the hard-coded library search path?
13318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13319
13320 # How to hardcode a shared library path into an executable.
13321 hardcode_action=$hardcode_action_CXX
13322
13323 # Whether we should hardcode library paths into libraries.
13324 hardcode_into_libs=$hardcode_into_libs
13325
13326 # Flag to hardcode \$libdir into a binary during linking.
13327 # This must work even if \$libdir does not exist.
13328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13329
13330 # If ld is used when linking, flag to hardcode \$libdir into
13331 # a binary during linking. This must work even if \$libdir does
13332 # not exist.
13333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13334
13335 # Whether we need a single -rpath flag with a separated argument.
13336 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13337
13338 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13339 # resulting binary.
13340 hardcode_direct=$hardcode_direct_CXX
13341
13342 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13343 # resulting binary.
13344 hardcode_minus_L=$hardcode_minus_L_CXX
13345
13346 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13347 # the resulting binary.
13348 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13349
13350 # Set to yes if building a shared library automatically hardcodes DIR into the library
13351 # and all subsequent libraries and executables linked against it.
13352 hardcode_automatic=$hardcode_automatic_CXX
13353
13354 # Variables whose values should be saved in libtool wrapper scripts and
13355 # restored at relink time.
13356 variables_saved_for_relink="$variables_saved_for_relink"
13357
13358 # Whether libtool must link a program against all its dependency libraries.
13359 link_all_deplibs=$link_all_deplibs_CXX
13360
13361 # Compile-time system search path for libraries
13362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13363
13364 # Run-time system search path for libraries
13365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13366
13367 # Fix the shell variable \$srcfile for the compiler.
13368 fix_srcfile_path="$fix_srcfile_path_CXX"
13369
13370 # Set to yes if exported symbols are required.
13371 always_export_symbols=$always_export_symbols_CXX
13372
13373 # The commands to list exported symbols.
13374 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13375
13376 # The commands to extract the exported symbol list from a shared archive.
13377 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13378
13379 # Symbols that should not be listed in the preloaded symbols.
13380 exclude_expsyms=$lt_exclude_expsyms_CXX
13381
13382 # Symbols that must always be exported.
13383 include_expsyms=$lt_include_expsyms_CXX
13384
13385 # ### END LIBTOOL TAG CONFIG: $tagname
13386
13387 __EOF__
13388
13389
13390 else
13391   # If there is no Makefile yet, we rely on a make rule to execute
13392   # `config.status --recheck' to rerun these tests and create the
13393   # libtool script then.
13394   test -f Makefile && make "$ltmain"
13395 fi
13396
13397
13398 ac_ext=c
13399 ac_cpp='$CPP $CPPFLAGS'
13400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13403
13404 CC=$lt_save_CC
13405 LDCXX=$LD
13406 LD=$lt_save_LD
13407 GCC=$lt_save_GCC
13408 with_gnu_ldcxx=$with_gnu_ld
13409 with_gnu_ld=$lt_save_with_gnu_ld
13410 lt_cv_path_LDCXX=$lt_cv_path_LD
13411 lt_cv_path_LD=$lt_save_path_LD
13412 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13413 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13414
13415         else
13416           tagname=""
13417         fi
13418         ;;
13419
13420       F77)
13421         if test -n "$F77" && test "X$F77" != "Xno"; then
13422
13423 ac_ext=f
13424 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13425 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13427
13428
13429 archive_cmds_need_lc_F77=no
13430 allow_undefined_flag_F77=
13431 always_export_symbols_F77=no
13432 archive_expsym_cmds_F77=
13433 export_dynamic_flag_spec_F77=
13434 hardcode_direct_F77=no
13435 hardcode_libdir_flag_spec_F77=
13436 hardcode_libdir_flag_spec_ld_F77=
13437 hardcode_libdir_separator_F77=
13438 hardcode_minus_L_F77=no
13439 hardcode_automatic_F77=no
13440 module_cmds_F77=
13441 module_expsym_cmds_F77=
13442 link_all_deplibs_F77=unknown
13443 old_archive_cmds_F77=$old_archive_cmds
13444 no_undefined_flag_F77=
13445 whole_archive_flag_spec_F77=
13446 enable_shared_with_static_runtimes_F77=no
13447
13448 # Source file extension for f77 test sources.
13449 ac_ext=f
13450
13451 # Object file extension for compiled f77 test sources.
13452 objext=o
13453 objext_F77=$objext
13454
13455 # Code to be used in simple compile tests
13456 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13457
13458 # Code to be used in simple link tests
13459 lt_simple_link_test_code="      program t\n      end\n"
13460
13461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13462
13463 # If no C compiler was specified, use CC.
13464 LTCC=${LTCC-"$CC"}
13465
13466 # Allow CC to be a program name with arguments.
13467 compiler=$CC
13468
13469
13470 # Allow CC to be a program name with arguments.
13471 lt_save_CC="$CC"
13472 CC=${F77-"f77"}
13473 compiler=$CC
13474 compiler_F77=$CC
13475 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13476
13477 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13478 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13479 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13480 echo "${ECHO_T}$can_build_shared" >&6
13481
13482 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13483 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13484 test "$can_build_shared" = "no" && enable_shared=no
13485
13486 # On AIX, shared libraries and static libraries use the same namespace, and
13487 # are all built from PIC.
13488 case "$host_os" in
13489 aix3*)
13490   test "$enable_shared" = yes && enable_static=no
13491   if test -n "$RANLIB"; then
13492     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13493     postinstall_cmds='$RANLIB $lib'
13494   fi
13495   ;;
13496 aix4*)
13497   test "$enable_shared" = yes && enable_static=no
13498   ;;
13499 esac
13500 echo "$as_me:$LINENO: result: $enable_shared" >&5
13501 echo "${ECHO_T}$enable_shared" >&6
13502
13503 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13504 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13505 # Make sure either enable_shared or enable_static is yes.
13506 test "$enable_shared" = yes || enable_static=yes
13507 echo "$as_me:$LINENO: result: $enable_static" >&5
13508 echo "${ECHO_T}$enable_static" >&6
13509
13510 test "$ld_shlibs_F77" = no && can_build_shared=no
13511
13512 GCC_F77="$G77"
13513 LD_F77="$LD"
13514
13515 lt_prog_compiler_wl_F77=
13516 lt_prog_compiler_pic_F77=
13517 lt_prog_compiler_static_F77=
13518
13519 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13521
13522   if test "$GCC" = yes; then
13523     lt_prog_compiler_wl_F77='-Wl,'
13524     lt_prog_compiler_static_F77='-static'
13525
13526     case $host_os in
13527       aix*)
13528       # All AIX code is PIC.
13529       if test "$host_cpu" = ia64; then
13530         # AIX 5 now supports IA64 processor
13531         lt_prog_compiler_static_F77='-Bstatic'
13532       fi
13533       ;;
13534
13535     amigaos*)
13536       # FIXME: we need at least 68020 code to build shared libraries, but
13537       # adding the `-m68020' flag to GCC prevents building anything better,
13538       # like `-m68040'.
13539       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13540       ;;
13541
13542     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13543       # PIC is the default for these OSes.
13544       ;;
13545
13546     mingw* | pw32* | os2*)
13547       # This hack is so that the source file can tell whether it is being
13548       # built for inclusion in a dll (and should export symbols for example).
13549       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13550       ;;
13551
13552     darwin* | rhapsody*)
13553       # PIC is the default on this platform
13554       # Common symbols not allowed in MH_DYLIB files
13555       lt_prog_compiler_pic_F77='-fno-common'
13556       ;;
13557
13558     msdosdjgpp*)
13559       # Just because we use GCC doesn't mean we suddenly get shared libraries
13560       # on systems that don't support them.
13561       lt_prog_compiler_can_build_shared_F77=no
13562       enable_shared=no
13563       ;;
13564
13565     sysv4*MP*)
13566       if test -d /usr/nec; then
13567         lt_prog_compiler_pic_F77=-Kconform_pic
13568       fi
13569       ;;
13570
13571     hpux*)
13572       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13573       # not for PA HP-UX.
13574       case "$host_cpu" in
13575       hppa*64*|ia64*)
13576         # +Z the default
13577         ;;
13578       *)
13579         lt_prog_compiler_pic_F77='-fPIC'
13580         ;;
13581       esac
13582       ;;
13583
13584     *)
13585       lt_prog_compiler_pic_F77='-fPIC'
13586       ;;
13587     esac
13588   else
13589     # PORTME Check for flag to pass linker flags through the system compiler.
13590     case $host_os in
13591     aix*)
13592       lt_prog_compiler_wl_F77='-Wl,'
13593       if test "$host_cpu" = ia64; then
13594         # AIX 5 now supports IA64 processor
13595         lt_prog_compiler_static_F77='-Bstatic'
13596       else
13597         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13598       fi
13599       ;;
13600
13601     mingw* | pw32* | os2*)
13602       # This hack is so that the source file can tell whether it is being
13603       # built for inclusion in a dll (and should export symbols for example).
13604       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13605       ;;
13606
13607     hpux9* | hpux10* | hpux11*)
13608       lt_prog_compiler_wl_F77='-Wl,'
13609       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13610       # not for PA HP-UX.
13611       case "$host_cpu" in
13612       hppa*64*|ia64*)
13613         # +Z the default
13614         ;;
13615       *)
13616         lt_prog_compiler_pic_F77='+Z'
13617         ;;
13618       esac
13619       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13620       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13621       ;;
13622
13623     irix5* | irix6* | nonstopux*)
13624       lt_prog_compiler_wl_F77='-Wl,'
13625       # PIC (with -KPIC) is the default.
13626       lt_prog_compiler_static_F77='-non_shared'
13627       ;;
13628
13629     newsos6)
13630       lt_prog_compiler_pic_F77='-KPIC'
13631       lt_prog_compiler_static_F77='-Bstatic'
13632       ;;
13633
13634     linux*)
13635       case $CC in
13636       icc|ecc)
13637         lt_prog_compiler_wl_F77='-Wl,'
13638         lt_prog_compiler_pic_F77='-KPIC'
13639         lt_prog_compiler_static_F77='-static'
13640         ;;
13641       ccc)
13642         lt_prog_compiler_wl_F77='-Wl,'
13643         # All Alpha code is PIC.
13644         lt_prog_compiler_static_F77='-non_shared'
13645         ;;
13646       esac
13647       ;;
13648
13649     osf3* | osf4* | osf5*)
13650       lt_prog_compiler_wl_F77='-Wl,'
13651       # All OSF/1 code is PIC.
13652       lt_prog_compiler_static_F77='-non_shared'
13653       ;;
13654
13655     sco3.2v5*)
13656       lt_prog_compiler_pic_F77='-Kpic'
13657       lt_prog_compiler_static_F77='-dn'
13658       ;;
13659
13660     solaris*)
13661       lt_prog_compiler_wl_F77='-Wl,'
13662       lt_prog_compiler_pic_F77='-KPIC'
13663       lt_prog_compiler_static_F77='-Bstatic'
13664       ;;
13665
13666     sunos4*)
13667       lt_prog_compiler_wl_F77='-Qoption ld '
13668       lt_prog_compiler_pic_F77='-PIC'
13669       lt_prog_compiler_static_F77='-Bstatic'
13670       ;;
13671
13672     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13673       lt_prog_compiler_wl_F77='-Wl,'
13674       lt_prog_compiler_pic_F77='-KPIC'
13675       lt_prog_compiler_static_F77='-Bstatic'
13676       ;;
13677
13678     sysv4*MP*)
13679       if test -d /usr/nec ;then
13680         lt_prog_compiler_pic_F77='-Kconform_pic'
13681         lt_prog_compiler_static_F77='-Bstatic'
13682       fi
13683       ;;
13684
13685     uts4*)
13686       lt_prog_compiler_pic_F77='-pic'
13687       lt_prog_compiler_static_F77='-Bstatic'
13688       ;;
13689
13690     *)
13691       lt_prog_compiler_can_build_shared_F77=no
13692       ;;
13693     esac
13694   fi
13695
13696 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13697 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13698
13699 #
13700 # Check to make sure the PIC flag actually works.
13701 #
13702 if test -n "$lt_prog_compiler_pic_F77"; then
13703   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13704 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13705 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   lt_prog_compiler_pic_works_F77=no
13709   ac_outfile=conftest.$ac_objext
13710    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13711    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13712    # Insert the option either (1) after the last *FLAGS variable, or
13713    # (2) before a word containing "conftest.", or (3) at the end.
13714    # Note that $ac_compile itself does not contain backslashes and begins
13715    # with a dollar sign (not a hyphen), so the echo should work correctly.
13716    # The option is referenced via a variable to avoid confusing sed.
13717    lt_compile=`echo "$ac_compile" | $SED \
13718    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13719    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13720    -e 's:$: $lt_compiler_flag:'`
13721    (eval echo "\"\$as_me:13721: $lt_compile\"" >&5)
13722    (eval "$lt_compile" 2>conftest.err)
13723    ac_status=$?
13724    cat conftest.err >&5
13725    echo "$as_me:13725: \$? = $ac_status" >&5
13726    if (exit $ac_status) && test -s "$ac_outfile"; then
13727      # The compiler can only warn and ignore the option if not recognized
13728      # So say no if there are warnings
13729      if test ! -s conftest.err; then
13730        lt_prog_compiler_pic_works_F77=yes
13731      fi
13732    fi
13733    $rm conftest*
13734
13735 fi
13736 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13737 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13738
13739 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13740     case $lt_prog_compiler_pic_F77 in
13741      "" | " "*) ;;
13742      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13743      esac
13744 else
13745     lt_prog_compiler_pic_F77=
13746      lt_prog_compiler_can_build_shared_F77=no
13747 fi
13748
13749 fi
13750 case "$host_os" in
13751   # For platforms which do not support PIC, -DPIC is meaningless:
13752   *djgpp*)
13753     lt_prog_compiler_pic_F77=
13754     ;;
13755   *)
13756     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13757     ;;
13758 esac
13759
13760 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13761 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13762 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   lt_cv_prog_compiler_c_o_F77=no
13766    $rm -r conftest 2>/dev/null
13767    mkdir conftest
13768    cd conftest
13769    mkdir out
13770    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13771
13772    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13773    # that will create temporary files in the current directory regardless of
13774    # the output directory.  Thus, making CWD read-only will cause this test
13775    # to fail, enabling locking or at least warning the user not to do parallel
13776    # builds.
13777    chmod -w .
13778
13779    lt_compiler_flag="-o out/conftest2.$ac_objext"
13780    # Insert the option either (1) after the last *FLAGS variable, or
13781    # (2) before a word containing "conftest.", or (3) at the end.
13782    # Note that $ac_compile itself does not contain backslashes and begins
13783    # with a dollar sign (not a hyphen), so the echo should work correctly.
13784    lt_compile=`echo "$ac_compile" | $SED \
13785    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13787    -e 's:$: $lt_compiler_flag:'`
13788    (eval echo "\"\$as_me:13788: $lt_compile\"" >&5)
13789    (eval "$lt_compile" 2>out/conftest.err)
13790    ac_status=$?
13791    cat out/conftest.err >&5
13792    echo "$as_me:13792: \$? = $ac_status" >&5
13793    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13794    then
13795      # The compiler can only warn and ignore the option if not recognized
13796      # So say no if there are warnings
13797      if test ! -s out/conftest.err; then
13798        lt_cv_prog_compiler_c_o_F77=yes
13799      fi
13800    fi
13801    chmod u+w .
13802    $rm conftest* out/*
13803    rmdir out
13804    cd ..
13805    rmdir conftest
13806    $rm conftest*
13807
13808 fi
13809 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13810 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13811
13812
13813 hard_links="nottested"
13814 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13815   # do not overwrite the value of need_locks provided by the user
13816   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13817 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13818   hard_links=yes
13819   $rm conftest*
13820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13821   touch conftest.a
13822   ln conftest.a conftest.b 2>&5 || hard_links=no
13823   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13824   echo "$as_me:$LINENO: result: $hard_links" >&5
13825 echo "${ECHO_T}$hard_links" >&6
13826   if test "$hard_links" = no; then
13827     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13828 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13829     need_locks=warn
13830   fi
13831 else
13832   need_locks=no
13833 fi
13834
13835 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13836 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13837
13838   runpath_var=
13839   allow_undefined_flag_F77=
13840   enable_shared_with_static_runtimes_F77=no
13841   archive_cmds_F77=
13842   archive_expsym_cmds_F77=
13843   old_archive_From_new_cmds_F77=
13844   old_archive_from_expsyms_cmds_F77=
13845   export_dynamic_flag_spec_F77=
13846   whole_archive_flag_spec_F77=
13847   thread_safe_flag_spec_F77=
13848   hardcode_libdir_flag_spec_F77=
13849   hardcode_libdir_flag_spec_ld_F77=
13850   hardcode_libdir_separator_F77=
13851   hardcode_direct_F77=no
13852   hardcode_minus_L_F77=no
13853   hardcode_shlibpath_var_F77=unsupported
13854   link_all_deplibs_F77=unknown
13855   hardcode_automatic_F77=no
13856   module_cmds_F77=
13857   module_expsym_cmds_F77=
13858   always_export_symbols_F77=no
13859   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13860   # include_expsyms should be a list of space-separated symbols to be *always*
13861   # included in the symbol list
13862   include_expsyms_F77=
13863   # exclude_expsyms can be an extended regexp of symbols to exclude
13864   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13865   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13866   # as well as any symbol that contains `d'.
13867   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13868   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13869   # platforms (ab)use it in PIC code, but their linkers get confused if
13870   # the symbol is explicitly referenced.  Since portable code cannot
13871   # rely on this symbol name, it's probably fine to never include it in
13872   # preloaded symbol tables.
13873   extract_expsyms_cmds=
13874
13875   case $host_os in
13876   cygwin* | mingw* | pw32*)
13877     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13878     # When not using gcc, we currently assume that we are using
13879     # Microsoft Visual C++.
13880     if test "$GCC" != yes; then
13881       with_gnu_ld=no
13882     fi
13883     ;;
13884   openbsd*)
13885     with_gnu_ld=no
13886     ;;
13887   esac
13888
13889   ld_shlibs_F77=yes
13890   if test "$with_gnu_ld" = yes; then
13891     # If archive_cmds runs LD, not CC, wlarc should be empty
13892     wlarc='${wl}'
13893
13894     # See if GNU ld supports shared libraries.
13895     case $host_os in
13896     aix3* | aix4* | aix5*)
13897       # On AIX/PPC, the GNU linker is very broken
13898       if test "$host_cpu" != ia64; then
13899         ld_shlibs_F77=no
13900         cat <<EOF 1>&2
13901
13902 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13903 *** to be unable to reliably create shared libraries on AIX.
13904 *** Therefore, libtool is disabling shared libraries support.  If you
13905 *** really care for shared libraries, you may want to modify your PATH
13906 *** so that a non-GNU linker is found, and then restart.
13907
13908 EOF
13909       fi
13910       ;;
13911
13912     amigaos*)
13913       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)'
13914       hardcode_libdir_flag_spec_F77='-L$libdir'
13915       hardcode_minus_L_F77=yes
13916
13917       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13918       # that the semantics of dynamic libraries on AmigaOS, at least up
13919       # to version 4, is to share data among multiple programs linked
13920       # with the same dynamic library.  Since this doesn't match the
13921       # behavior of shared libraries on other platforms, we can't use
13922       # them.
13923       ld_shlibs_F77=no
13924       ;;
13925
13926     beos*)
13927       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13928         allow_undefined_flag_F77=unsupported
13929         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13930         # support --undefined.  This deserves some investigation.  FIXME
13931         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13932       else
13933         ld_shlibs_F77=no
13934       fi
13935       ;;
13936
13937     cygwin* | mingw* | pw32*)
13938       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13939       # as there is no search path for DLLs.
13940       hardcode_libdir_flag_spec_F77='-L$libdir'
13941       allow_undefined_flag_F77=unsupported
13942       always_export_symbols_F77=no
13943       enable_shared_with_static_runtimes_F77=yes
13944       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13945
13946       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13947         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13948         # If the export-symbols file already is a .def file (1st line
13949         # is EXPORTS), use it as is; otherwise, prepend...
13950         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13951           cp $export_symbols $output_objdir/$soname.def;
13952         else
13953           echo EXPORTS > $output_objdir/$soname.def;
13954           cat $export_symbols >> $output_objdir/$soname.def;
13955         fi~
13956         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13957       else
13958         ld_shlibs=no
13959       fi
13960       ;;
13961
13962     netbsd*)
13963       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13964         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13965         wlarc=
13966       else
13967         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13969       fi
13970       ;;
13971
13972     solaris* | sysv5*)
13973       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13974         ld_shlibs_F77=no
13975         cat <<EOF 1>&2
13976
13977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13978 *** create shared libraries on Solaris systems.  Therefore, libtool
13979 *** is disabling shared libraries support.  We urge you to upgrade GNU
13980 *** binutils to release 2.9.1 or newer.  Another option is to modify
13981 *** your PATH or compiler configuration so that the native linker is
13982 *** used, and then restart.
13983
13984 EOF
13985       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13988       else
13989         ld_shlibs_F77=no
13990       fi
13991       ;;
13992
13993     sunos4*)
13994       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13995       wlarc=
13996       hardcode_direct_F77=yes
13997       hardcode_shlibpath_var_F77=no
13998       ;;
13999
14000     *)
14001       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14004       else
14005         ld_shlibs_F77=no
14006       fi
14007       ;;
14008     esac
14009
14010     if test "$ld_shlibs_F77" = yes; then
14011       runpath_var=LD_RUN_PATH
14012       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14013       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14014       # ancient GNU ld didn't support --whole-archive et. al.
14015       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14016         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14017       else
14018         whole_archive_flag_spec_F77=
14019       fi
14020     fi
14021   else
14022     # PORTME fill in a description of your system's linker (not GNU ld)
14023     case $host_os in
14024     aix3*)
14025       allow_undefined_flag_F77=unsupported
14026       always_export_symbols_F77=yes
14027       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'
14028       # Note: this linker hardcodes the directories in LIBPATH if there
14029       # are no directories specified by -L.
14030       hardcode_minus_L_F77=yes
14031       if test "$GCC" = yes && test -z "$link_static_flag"; then
14032         # Neither direct hardcoding nor static linking is supported with a
14033         # broken collect2.
14034         hardcode_direct_F77=unsupported
14035       fi
14036       ;;
14037
14038     aix4* | aix5*)
14039       if test "$host_cpu" = ia64; then
14040         # On IA64, the linker does run time linking by default, so we don't
14041         # have to do anything special.
14042         aix_use_runtimelinking=no
14043         exp_sym_flag='-Bexport'
14044         no_entry_flag=""
14045       else
14046         # If we're using GNU nm, then we don't want the "-C" option.
14047         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14048         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14049           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'
14050         else
14051           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'
14052         fi
14053         aix_use_runtimelinking=no
14054
14055         # Test if we are trying to use run time linking or normal
14056         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14057         # need to do runtime linking.
14058         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14059           for ld_flag in $LDFLAGS; do
14060           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14061             aix_use_runtimelinking=yes
14062             break
14063           fi
14064           done
14065         esac
14066
14067         exp_sym_flag='-bexport'
14068         no_entry_flag='-bnoentry'
14069       fi
14070
14071       # When large executables or shared objects are built, AIX ld can
14072       # have problems creating the table of contents.  If linking a library
14073       # or program results in "error TOC overflow" add -mminimal-toc to
14074       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14075       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14076
14077       archive_cmds_F77=''
14078       hardcode_direct_F77=yes
14079       hardcode_libdir_separator_F77=':'
14080       link_all_deplibs_F77=yes
14081
14082       if test "$GCC" = yes; then
14083         case $host_os in aix4.012|aix4.012.*)
14084         # We only want to do this on AIX 4.2 and lower, the check
14085         # below for broken collect2 doesn't work under 4.3+
14086           collect2name=`${CC} -print-prog-name=collect2`
14087           if test -f "$collect2name" && \
14088            strings "$collect2name" | grep resolve_lib_name >/dev/null
14089           then
14090           # We have reworked collect2
14091           hardcode_direct_F77=yes
14092           else
14093           # We have old collect2
14094           hardcode_direct_F77=unsupported
14095           # It fails to find uninstalled libraries when the uninstalled
14096           # path is not listed in the libpath.  Setting hardcode_minus_L
14097           # to unsupported forces relinking
14098           hardcode_minus_L_F77=yes
14099           hardcode_libdir_flag_spec_F77='-L$libdir'
14100           hardcode_libdir_separator_F77=
14101           fi
14102         esac
14103         shared_flag='-shared'
14104       else
14105         # not using gcc
14106         if test "$host_cpu" = ia64; then
14107         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14108         # chokes on -Wl,-G. The following line is correct:
14109           shared_flag='-G'
14110         else
14111         if test "$aix_use_runtimelinking" = yes; then
14112             shared_flag='${wl}-G'
14113           else
14114             shared_flag='${wl}-bM:SRE'
14115         fi
14116         fi
14117       fi
14118
14119       # It seems that -bexpall does not export symbols beginning with
14120       # underscore (_), so it is better to generate a list of symbols to export.
14121       always_export_symbols_F77=yes
14122       if test "$aix_use_runtimelinking" = yes; then
14123         # Warning - without using the other runtime loading flags (-brtl),
14124         # -berok will link without error, but may produce a broken library.
14125         allow_undefined_flag_F77='-berok'
14126        # Determine the default libpath from the value encoded in an empty executable.
14127        cat >conftest.$ac_ext <<_ACEOF
14128       program main
14129
14130       end
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134   (eval $ac_link) 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; } &&
14147          { ac_try='test -s conftest$ac_exeext'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153
14154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14155 }'`
14156 # Check for a 64-bit object if we didn't find anything.
14157 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; }
14158 }'`; fi
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 fi
14164 rm -f conftest.err conftest.$ac_objext \
14165       conftest$ac_exeext conftest.$ac_ext
14166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14167
14168        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14169         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"
14170        else
14171         if test "$host_cpu" = ia64; then
14172           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14173           allow_undefined_flag_F77="-z nodefs"
14174           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"
14175         else
14176          # Determine the default libpath from the value encoded in an empty executable.
14177          cat >conftest.$ac_ext <<_ACEOF
14178       program main
14179
14180       end
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; } &&
14197          { ac_try='test -s conftest$ac_exeext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203
14204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14205 }'`
14206 # Check for a 64-bit object if we didn't find anything.
14207 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; }
14208 }'`; fi
14209 else
14210   echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14212
14213 fi
14214 rm -f conftest.err conftest.$ac_objext \
14215       conftest$ac_exeext conftest.$ac_ext
14216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14217
14218          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14219           # Warning - without using the other run time loading flags,
14220           # -berok will link without error, but may produce a broken library.
14221           no_undefined_flag_F77=' ${wl}-bernotok'
14222           allow_undefined_flag_F77=' ${wl}-berok'
14223           # -bexpall does not export symbols beginning with underscore (_)
14224           always_export_symbols_F77=yes
14225           # Exported symbols can be pulled into shared objects from archives
14226           whole_archive_flag_spec_F77=' '
14227           archive_cmds_need_lc_F77=yes
14228           # This is similar to how AIX traditionally builds it's shared libraries.
14229           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'
14230         fi
14231       fi
14232       ;;
14233
14234     amigaos*)
14235       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)'
14236       hardcode_libdir_flag_spec_F77='-L$libdir'
14237       hardcode_minus_L_F77=yes
14238       # see comment about different semantics on the GNU ld section
14239       ld_shlibs_F77=no
14240       ;;
14241
14242     bsdi4*)
14243       export_dynamic_flag_spec_F77=-rdynamic
14244       ;;
14245
14246     cygwin* | mingw* | pw32*)
14247       # When not using gcc, we currently assume that we are using
14248       # Microsoft Visual C++.
14249       # hardcode_libdir_flag_spec is actually meaningless, as there is
14250       # no search path for DLLs.
14251       hardcode_libdir_flag_spec_F77=' '
14252       allow_undefined_flag_F77=unsupported
14253       # Tell ltmain to make .lib files, not .a files.
14254       libext=lib
14255       # Tell ltmain to make .dll files, not .so files.
14256       shrext=".dll"
14257       # FIXME: Setting linknames here is a bad hack.
14258       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14259       # The linker will automatically build a .lib file if we build a DLL.
14260       old_archive_From_new_cmds_F77='true'
14261       # FIXME: Should let the user specify the lib program.
14262       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14263       fix_srcfile_path='`cygpath -w "$srcfile"`'
14264       enable_shared_with_static_runtimes_F77=yes
14265       ;;
14266
14267     darwin* | rhapsody*)
14268     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14269       archive_cmds_need_lc_F77=no
14270       case "$host_os" in
14271       rhapsody* | darwin1.[012])
14272         allow_undefined_flag_F77='-undefined suppress'
14273         ;;
14274       *) # Darwin 1.3 on
14275         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14276         ;;
14277       esac
14278       # FIXME: Relying on posixy $() will cause problems for
14279       #        cross-compilation, but unfortunately the echo tests do not
14280       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14281       #        `"' quotes if we put them in here... so don't!
14282         lt_int_apple_cc_single_mod=no
14283         output_verbose_link_cmd='echo'
14284         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14285           lt_int_apple_cc_single_mod=yes
14286         fi
14287         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14288           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14289         else
14290         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14291       fi
14292       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14293       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14294         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14295           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14296         else
14297           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14298         fi
14299           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14300       hardcode_direct_F77=no
14301       hardcode_automatic_F77=yes
14302       hardcode_shlibpath_var_F77=unsupported
14303       whole_archive_flag_spec_F77='-all_load $convenience'
14304       link_all_deplibs_F77=yes
14305     fi
14306       ;;
14307
14308     dgux*)
14309       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14310       hardcode_libdir_flag_spec_F77='-L$libdir'
14311       hardcode_shlibpath_var_F77=no
14312       ;;
14313
14314     freebsd1*)
14315       ld_shlibs_F77=no
14316       ;;
14317
14318     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14319     # support.  Future versions do this automatically, but an explicit c++rt0.o
14320     # does not break anything, and helps significantly (at the cost of a little
14321     # extra space).
14322     freebsd2.2*)
14323       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14324       hardcode_libdir_flag_spec_F77='-R$libdir'
14325       hardcode_direct_F77=yes
14326       hardcode_shlibpath_var_F77=no
14327       ;;
14328
14329     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14330     freebsd2*)
14331       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14332       hardcode_direct_F77=yes
14333       hardcode_minus_L_F77=yes
14334       hardcode_shlibpath_var_F77=no
14335       ;;
14336
14337     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14338     freebsd*)
14339       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14340       hardcode_libdir_flag_spec_F77='-R$libdir'
14341       hardcode_direct_F77=yes
14342       hardcode_shlibpath_var_F77=no
14343       ;;
14344
14345     hpux9*)
14346       if test "$GCC" = yes; then
14347         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'
14348       else
14349         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'
14350       fi
14351       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14352       hardcode_libdir_separator_F77=:
14353       hardcode_direct_F77=yes
14354
14355       # hardcode_minus_L: Not really in the search PATH,
14356       # but as the default location of the library.
14357       hardcode_minus_L_F77=yes
14358       export_dynamic_flag_spec_F77='${wl}-E'
14359       ;;
14360
14361     hpux10* | hpux11*)
14362       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14363         case "$host_cpu" in
14364         hppa*64*|ia64*)
14365           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14366           ;;
14367         *)
14368           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14369           ;;
14370         esac
14371       else
14372         case "$host_cpu" in
14373         hppa*64*|ia64*)
14374           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14375           ;;
14376         *)
14377           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14378           ;;
14379         esac
14380       fi
14381       if test "$with_gnu_ld" = no; then
14382         case "$host_cpu" in
14383         hppa*64*)
14384           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14385           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14386           hardcode_libdir_separator_F77=:
14387           hardcode_direct_F77=no
14388           hardcode_shlibpath_var_F77=no
14389           ;;
14390         ia64*)
14391           hardcode_libdir_flag_spec_F77='-L$libdir'
14392           hardcode_direct_F77=no
14393           hardcode_shlibpath_var_F77=no
14394
14395           # hardcode_minus_L: Not really in the search PATH,
14396           # but as the default location of the library.
14397           hardcode_minus_L_F77=yes
14398           ;;
14399         *)
14400           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14401           hardcode_libdir_separator_F77=:
14402           hardcode_direct_F77=yes
14403           export_dynamic_flag_spec_F77='${wl}-E'
14404
14405           # hardcode_minus_L: Not really in the search PATH,
14406           # but as the default location of the library.
14407           hardcode_minus_L_F77=yes
14408           ;;
14409         esac
14410       fi
14411       ;;
14412
14413     irix5* | irix6* | nonstopux*)
14414       if test "$GCC" = yes; then
14415         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'
14416       else
14417         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'
14418         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14419       fi
14420       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14421       hardcode_libdir_separator_F77=:
14422       link_all_deplibs_F77=yes
14423       ;;
14424
14425     netbsd*)
14426       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14427         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14428       else
14429         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14430       fi
14431       hardcode_libdir_flag_spec_F77='-R$libdir'
14432       hardcode_direct_F77=yes
14433       hardcode_shlibpath_var_F77=no
14434       ;;
14435
14436     newsos6)
14437       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438       hardcode_direct_F77=yes
14439       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14440       hardcode_libdir_separator_F77=:
14441       hardcode_shlibpath_var_F77=no
14442       ;;
14443
14444     openbsd*)
14445       hardcode_direct_F77=yes
14446       hardcode_shlibpath_var_F77=no
14447       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14448         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14449         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450         export_dynamic_flag_spec_F77='${wl}-E'
14451       else
14452        case $host_os in
14453          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14454            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14455            hardcode_libdir_flag_spec_F77='-R$libdir'
14456            ;;
14457          *)
14458            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14459            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14460            ;;
14461        esac
14462       fi
14463       ;;
14464
14465     os2*)
14466       hardcode_libdir_flag_spec_F77='-L$libdir'
14467       hardcode_minus_L_F77=yes
14468       allow_undefined_flag_F77=unsupported
14469       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'
14470       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14471       ;;
14472
14473     osf3*)
14474       if test "$GCC" = yes; then
14475         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14476         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'
14477       else
14478         allow_undefined_flag_F77=' -expect_unresolved \*'
14479         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'
14480       fi
14481       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14482       hardcode_libdir_separator_F77=:
14483       ;;
14484
14485     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14486       if test "$GCC" = yes; then
14487         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14488         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'
14489         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14490       else
14491         allow_undefined_flag_F77=' -expect_unresolved \*'
14492         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'
14493         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~
14494         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14495
14496         # Both c and cxx compiler support -rpath directly
14497         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14498       fi
14499       hardcode_libdir_separator_F77=:
14500       ;;
14501
14502     sco3.2v5*)
14503       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14504       hardcode_shlibpath_var_F77=no
14505       export_dynamic_flag_spec_F77='${wl}-Bexport'
14506       runpath_var=LD_RUN_PATH
14507       hardcode_runpath_var=yes
14508       ;;
14509
14510     solaris*)
14511       no_undefined_flag_F77=' -z text'
14512       if test "$GCC" = yes; then
14513         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14514         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14515           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14516       else
14517         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14518         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14519         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14520       fi
14521       hardcode_libdir_flag_spec_F77='-R$libdir'
14522       hardcode_shlibpath_var_F77=no
14523       case $host_os in
14524       solaris2.[0-5] | solaris2.[0-5].*) ;;
14525       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14526         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14527       esac
14528       link_all_deplibs_F77=yes
14529       ;;
14530
14531     sunos4*)
14532       if test "x$host_vendor" = xsequent; then
14533         # Use $CC to link under sequent, because it throws in some extra .o
14534         # files that make .init and .fini sections work.
14535         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14536       else
14537         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14538       fi
14539       hardcode_libdir_flag_spec_F77='-L$libdir'
14540       hardcode_direct_F77=yes
14541       hardcode_minus_L_F77=yes
14542       hardcode_shlibpath_var_F77=no
14543       ;;
14544
14545     sysv4)
14546       case $host_vendor in
14547         sni)
14548           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549           hardcode_direct_F77=yes # is this really true???
14550         ;;
14551         siemens)
14552           ## LD is ld it makes a PLAMLIB
14553           ## CC just makes a GrossModule.
14554           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14555           reload_cmds_F77='$CC -r -o $output$reload_objs'
14556           hardcode_direct_F77=no
14557         ;;
14558         motorola)
14559           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14561         ;;
14562       esac
14563       runpath_var='LD_RUN_PATH'
14564       hardcode_shlibpath_var_F77=no
14565       ;;
14566
14567     sysv4.3*)
14568       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14569       hardcode_shlibpath_var_F77=no
14570       export_dynamic_flag_spec_F77='-Bexport'
14571       ;;
14572
14573     sysv4*MP*)
14574       if test -d /usr/nec; then
14575         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14576         hardcode_shlibpath_var_F77=no
14577         runpath_var=LD_RUN_PATH
14578         hardcode_runpath_var=yes
14579         ld_shlibs_F77=yes
14580       fi
14581       ;;
14582
14583     sysv4.2uw2*)
14584       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14585       hardcode_direct_F77=yes
14586       hardcode_minus_L_F77=no
14587       hardcode_shlibpath_var_F77=no
14588       hardcode_runpath_var=yes
14589       runpath_var=LD_RUN_PATH
14590       ;;
14591
14592    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14593       no_undefined_flag_F77='${wl}-z ${wl}text'
14594       if test "$GCC" = yes; then
14595         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14596       else
14597         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14598       fi
14599       runpath_var='LD_RUN_PATH'
14600       hardcode_shlibpath_var_F77=no
14601       ;;
14602
14603     sysv5*)
14604       no_undefined_flag_F77=' -z text'
14605       # $CC -shared without GNU ld will not create a library from C++
14606       # object files and a static libstdc++, better avoid it by now
14607       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14609                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14610       hardcode_libdir_flag_spec_F77=
14611       hardcode_shlibpath_var_F77=no
14612       runpath_var='LD_RUN_PATH'
14613       ;;
14614
14615     uts4*)
14616       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14617       hardcode_libdir_flag_spec_F77='-L$libdir'
14618       hardcode_shlibpath_var_F77=no
14619       ;;
14620
14621     *)
14622       ld_shlibs_F77=no
14623       ;;
14624     esac
14625   fi
14626
14627 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14628 echo "${ECHO_T}$ld_shlibs_F77" >&6
14629 test "$ld_shlibs_F77" = no && can_build_shared=no
14630
14631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14632 if test "$GCC" = yes; then
14633   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14634 fi
14635
14636 #
14637 # Do we need to explicitly link libc?
14638 #
14639 case "x$archive_cmds_need_lc_F77" in
14640 x|xyes)
14641   # Assume -lc should be added
14642   archive_cmds_need_lc_F77=yes
14643
14644   if test "$enable_shared" = yes && test "$GCC" = yes; then
14645     case $archive_cmds_F77 in
14646     *'~'*)
14647       # FIXME: we may have to deal with multi-command sequences.
14648       ;;
14649     '$CC '*)
14650       # Test whether the compiler implicitly links with -lc since on some
14651       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14652       # to ld, don't add -lc before -lgcc.
14653       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14655       $rm conftest*
14656       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14657
14658       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659   (eval $ac_compile) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); } 2>conftest.err; then
14663         soname=conftest
14664         lib=conftest
14665         libobjs=conftest.$ac_objext
14666         deplibs=
14667         wl=$lt_prog_compiler_wl_F77
14668         compiler_flags=-v
14669         linker_flags=-v
14670         verstring=
14671         output_objdir=.
14672         libname=conftest
14673         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14674         allow_undefined_flag_F77=
14675         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14676   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }
14680         then
14681           archive_cmds_need_lc_F77=no
14682         else
14683           archive_cmds_need_lc_F77=yes
14684         fi
14685         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14686       else
14687         cat conftest.err 1>&5
14688       fi
14689       $rm conftest*
14690       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14691 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14692       ;;
14693     esac
14694   fi
14695   ;;
14696 esac
14697
14698 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14699 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14700 hardcode_action_F77=
14701 if test -n "$hardcode_libdir_flag_spec_F77" || \
14702    test -n "$runpath_var F77" || \
14703    test "X$hardcode_automatic_F77"="Xyes" ; then
14704
14705   # We can hardcode non-existant directories.
14706   if test "$hardcode_direct_F77" != no &&
14707      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14708      # have to relink, otherwise we might link with an installed library
14709      # when we should be linking with a yet-to-be-installed one
14710      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14711      test "$hardcode_minus_L_F77" != no; then
14712     # Linking always hardcodes the temporary library directory.
14713     hardcode_action_F77=relink
14714   else
14715     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14716     hardcode_action_F77=immediate
14717   fi
14718 else
14719   # We cannot hardcode anything, or else we can only hardcode existing
14720   # directories.
14721   hardcode_action_F77=unsupported
14722 fi
14723 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14724 echo "${ECHO_T}$hardcode_action_F77" >&6
14725
14726 if test "$hardcode_action_F77" = relink; then
14727   # Fast installation is not supported
14728   enable_fast_install=no
14729 elif test "$shlibpath_overrides_runpath" = yes ||
14730      test "$enable_shared" = no; then
14731   # Fast installation is not necessary
14732   enable_fast_install=needless
14733 fi
14734
14735 striplib=
14736 old_striplib=
14737 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14738 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14739 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14740   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14741   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14742   echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6
14744 else
14745 # FIXME - insert some real tests, host_os isn't really good enough
14746   case $host_os in
14747    darwin*)
14748        if test -n "$STRIP" ; then
14749          striplib="$STRIP -x"
14750          echo "$as_me:$LINENO: result: yes" >&5
14751 echo "${ECHO_T}yes" >&6
14752        else
14753   echo "$as_me:$LINENO: result: no" >&5
14754 echo "${ECHO_T}no" >&6
14755 fi
14756        ;;
14757    *)
14758   echo "$as_me:$LINENO: result: no" >&5
14759 echo "${ECHO_T}no" >&6
14760     ;;
14761   esac
14762 fi
14763
14764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14766 library_names_spec=
14767 libname_spec='lib$name'
14768 soname_spec=
14769 shrext=".so"
14770 postinstall_cmds=
14771 postuninstall_cmds=
14772 finish_cmds=
14773 finish_eval=
14774 shlibpath_var=
14775 shlibpath_overrides_runpath=unknown
14776 version_type=none
14777 dynamic_linker="$host_os ld.so"
14778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14779 if test "$GCC" = yes; then
14780   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14781   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14782     # if the path contains ";" then we assume it to be the separator
14783     # otherwise default to the standard path separator (i.e. ":") - it is
14784     # assumed that no part of a normal pathname contains ";" but that should
14785     # okay in the real world where ";" in dirpaths is itself problematic.
14786     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14787   else
14788     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14789   fi
14790 else
14791   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14792 fi
14793 need_lib_prefix=unknown
14794 hardcode_into_libs=no
14795
14796 # when you set need_version to no, make sure it does not cause -set_version
14797 # flags to be left without arguments
14798 need_version=unknown
14799
14800 case $host_os in
14801 aix3*)
14802   version_type=linux
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14804   shlibpath_var=LIBPATH
14805
14806   # AIX 3 has no versioning support, so we append a major version to the name.
14807   soname_spec='${libname}${release}${shared_ext}$major'
14808   ;;
14809
14810 aix4* | aix5*)
14811   version_type=linux
14812   need_lib_prefix=no
14813   need_version=no
14814   hardcode_into_libs=yes
14815   if test "$host_cpu" = ia64; then
14816     # AIX 5 supports IA64
14817     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14818     shlibpath_var=LD_LIBRARY_PATH
14819   else
14820     # With GCC up to 2.95.x, collect2 would create an import file
14821     # for dependence libraries.  The import file would start with
14822     # the line `#! .'.  This would cause the generated library to
14823     # depend on `.', always an invalid library.  This was fixed in
14824     # development snapshots of GCC prior to 3.0.
14825     case $host_os in
14826       aix4 | aix4.[01] | aix4.[01].*)
14827       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14828            echo ' yes '
14829            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14830         :
14831       else
14832         can_build_shared=no
14833       fi
14834       ;;
14835     esac
14836     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14837     # soname into executable. Probably we can add versioning support to
14838     # collect2, so additional links can be useful in future.
14839     if test "$aix_use_runtimelinking" = yes; then
14840       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14841       # instead of lib<name>.a to let people know that these are not
14842       # typical AIX shared libraries.
14843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844     else
14845       # We preserve .a as extension for shared libraries through AIX4.2
14846       # and later when we are not doing run time linking.
14847       library_names_spec='${libname}${release}.a $libname.a'
14848       soname_spec='${libname}${release}${shared_ext}$major'
14849     fi
14850     shlibpath_var=LIBPATH
14851   fi
14852   ;;
14853
14854 amigaos*)
14855   library_names_spec='$libname.ixlibrary $libname.a'
14856   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14857   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'
14858   ;;
14859
14860 beos*)
14861   library_names_spec='${libname}${shared_ext}'
14862   dynamic_linker="$host_os ld.so"
14863   shlibpath_var=LIBRARY_PATH
14864   ;;
14865
14866 bsdi4*)
14867   version_type=linux
14868   need_version=no
14869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870   soname_spec='${libname}${release}${shared_ext}$major'
14871   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14874   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14875   # the default ld.so.conf also contains /usr/contrib/lib and
14876   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14877   # libtool to hard-code these into programs
14878   ;;
14879
14880 cygwin* | mingw* | pw32*)
14881   version_type=windows
14882   shrext=".dll"
14883   need_version=no
14884   need_lib_prefix=no
14885
14886   case $GCC,$host_os in
14887   yes,cygwin* | yes,mingw* | yes,pw32*)
14888     library_names_spec='$libname.dll.a'
14889     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14890     postinstall_cmds='base_file=`basename \${file}`~
14891       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14892       dldir=$destdir/`dirname \$dlpath`~
14893       test -d \$dldir || mkdir -p \$dldir~
14894       $install_prog $dir/$dlname \$dldir/$dlname'
14895     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14896       dlpath=$dir/\$dldll~
14897        $rm \$dlpath'
14898     shlibpath_overrides_runpath=yes
14899
14900     case $host_os in
14901     cygwin*)
14902       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14903       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14904       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14905       ;;
14906     mingw*)
14907       # MinGW DLLs use traditional 'lib' prefix
14908       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14909       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14910       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14911         # It is most probably a Windows format PATH printed by
14912         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14913         # path with ; separators, and with drive letters. We can handle the
14914         # drive letters (cygwin fileutils understands them), so leave them,
14915         # especially as we might pass files found there to a mingw objdump,
14916         # which wouldn't understand a cygwinified path. Ahh.
14917         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14918       else
14919         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14920       fi
14921       ;;
14922     pw32*)
14923       # pw32 DLLs use 'pw' prefix rather than 'lib'
14924       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14925       ;;
14926     esac
14927     ;;
14928
14929   *)
14930     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14931     ;;
14932   esac
14933   dynamic_linker='Win32 ld.exe'
14934   # FIXME: first we should search . and the directory the executable is in
14935   shlibpath_var=PATH
14936   ;;
14937
14938 darwin* | rhapsody*)
14939   dynamic_linker="$host_os dyld"
14940   version_type=darwin
14941   need_lib_prefix=no
14942   need_version=no
14943   # FIXME: Relying on posixy $() will cause problems for
14944   #        cross-compilation, but unfortunately the echo tests do not
14945   #        yet detect zsh echo's removal of \ escapes.
14946   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14947   soname_spec='${libname}${release}${major}$shared_ext'
14948   shlibpath_overrides_runpath=yes
14949   shlibpath_var=DYLD_LIBRARY_PATH
14950   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14951   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14952   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14953   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"`
14954   fi
14955   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14956   ;;
14957
14958 dgux*)
14959   version_type=linux
14960   need_lib_prefix=no
14961   need_version=no
14962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14963   soname_spec='${libname}${release}${shared_ext}$major'
14964   shlibpath_var=LD_LIBRARY_PATH
14965   ;;
14966
14967 freebsd1*)
14968   dynamic_linker=no
14969   ;;
14970
14971 freebsd*)
14972   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14973   version_type=freebsd-$objformat
14974   case $version_type in
14975     freebsd-elf*)
14976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14977       need_version=no
14978       need_lib_prefix=no
14979       ;;
14980     freebsd-*)
14981       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14982       need_version=yes
14983       ;;
14984   esac
14985   shlibpath_var=LD_LIBRARY_PATH
14986   case $host_os in
14987   freebsd2*)
14988     shlibpath_overrides_runpath=yes
14989     ;;
14990   freebsd3.01* | freebsdelf3.01*)
14991     shlibpath_overrides_runpath=yes
14992     hardcode_into_libs=yes
14993     ;;
14994   *) # from 3.2 on
14995     shlibpath_overrides_runpath=no
14996     hardcode_into_libs=yes
14997     ;;
14998   esac
14999   ;;
15000
15001 gnu*)
15002   version_type=linux
15003   need_lib_prefix=no
15004   need_version=no
15005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15006   soname_spec='${libname}${release}${shared_ext}$major'
15007   shlibpath_var=LD_LIBRARY_PATH
15008   hardcode_into_libs=yes
15009   ;;
15010
15011 hpux9* | hpux10* | hpux11*)
15012   # Give a soname corresponding to the major version so that dld.sl refuses to
15013   # link against other versions.
15014   version_type=sunos
15015   need_lib_prefix=no
15016   need_version=no
15017   case "$host_cpu" in
15018   ia64*)
15019     shrext='.so'
15020     hardcode_into_libs=yes
15021     dynamic_linker="$host_os dld.so"
15022     shlibpath_var=LD_LIBRARY_PATH
15023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025     soname_spec='${libname}${release}${shared_ext}$major'
15026     if test "X$HPUX_IA64_MODE" = X32; then
15027       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15028     else
15029       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15030     fi
15031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15032     ;;
15033    hppa*64*)
15034      shrext='.sl'
15035      hardcode_into_libs=yes
15036      dynamic_linker="$host_os dld.sl"
15037      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15038      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040      soname_spec='${libname}${release}${shared_ext}$major'
15041      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15042      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15043      ;;
15044    *)
15045     shrext='.sl'
15046     dynamic_linker="$host_os dld.sl"
15047     shlibpath_var=SHLIB_PATH
15048     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050     soname_spec='${libname}${release}${shared_ext}$major'
15051     ;;
15052   esac
15053   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15054   postinstall_cmds='chmod 555 $lib'
15055   ;;
15056
15057 irix5* | irix6* | nonstopux*)
15058   case $host_os in
15059     nonstopux*) version_type=nonstopux ;;
15060     *)
15061         if test "$lt_cv_prog_gnu_ld" = yes; then
15062                 version_type=linux
15063         else
15064                 version_type=irix
15065         fi ;;
15066   esac
15067   need_lib_prefix=no
15068   need_version=no
15069   soname_spec='${libname}${release}${shared_ext}$major'
15070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15071   case $host_os in
15072   irix5* | nonstopux*)
15073     libsuff= shlibsuff=
15074     ;;
15075   *)
15076     case $LD in # libtool.m4 will add one of these switches to LD
15077     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15078       libsuff= shlibsuff= libmagic=32-bit;;
15079     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15080       libsuff=32 shlibsuff=N32 libmagic=N32;;
15081     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15082       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15083     *) libsuff= shlibsuff= libmagic=never-match;;
15084     esac
15085     ;;
15086   esac
15087   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15088   shlibpath_overrides_runpath=no
15089   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15090   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15091   hardcode_into_libs=yes
15092   ;;
15093
15094 # No shared lib support for Linux oldld, aout, or coff.
15095 linux*oldld* | linux*aout* | linux*coff*)
15096   dynamic_linker=no
15097   ;;
15098
15099 # This must be Linux ELF.
15100 linux*)
15101   version_type=linux
15102   need_lib_prefix=no
15103   need_version=no
15104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105   soname_spec='${libname}${release}${shared_ext}$major'
15106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   shlibpath_overrides_runpath=no
15109   # This implies no fast_install, which is unacceptable.
15110   # Some rework will be needed to allow for fast_install
15111   # before this can be enabled.
15112   hardcode_into_libs=yes
15113
15114   # We used to test for /lib/ld.so.1 and disable shared libraries on
15115   # powerpc, because MkLinux only supported shared libraries with the
15116   # GNU dynamic linker.  Since this was broken with cross compilers,
15117   # most powerpc-linux boxes support dynamic linking these days and
15118   # people can always --disable-shared, the test was removed, and we
15119   # assume the GNU/Linux dynamic linker is in use.
15120   dynamic_linker='GNU/Linux ld.so'
15121   ;;
15122
15123 netbsd*)
15124   version_type=sunos
15125   need_lib_prefix=no
15126   need_version=no
15127   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15129     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15130     dynamic_linker='NetBSD (a.out) ld.so'
15131   else
15132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15133     soname_spec='${libname}${release}${shared_ext}$major'
15134     dynamic_linker='NetBSD ld.elf_so'
15135   fi
15136   shlibpath_var=LD_LIBRARY_PATH
15137   shlibpath_overrides_runpath=yes
15138   hardcode_into_libs=yes
15139   ;;
15140
15141 newsos6)
15142   version_type=linux
15143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144   shlibpath_var=LD_LIBRARY_PATH
15145   shlibpath_overrides_runpath=yes
15146   ;;
15147
15148 nto-qnx)
15149   version_type=linux
15150   need_lib_prefix=no
15151   need_version=no
15152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   shlibpath_var=LD_LIBRARY_PATH
15155   shlibpath_overrides_runpath=yes
15156   ;;
15157
15158 openbsd*)
15159   version_type=sunos
15160   need_lib_prefix=no
15161   need_version=no
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15164   shlibpath_var=LD_LIBRARY_PATH
15165   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15166     case $host_os in
15167       openbsd2.[89] | openbsd2.[89].*)
15168         shlibpath_overrides_runpath=no
15169         ;;
15170       *)
15171         shlibpath_overrides_runpath=yes
15172         ;;
15173       esac
15174   else
15175     shlibpath_overrides_runpath=yes
15176   fi
15177   ;;
15178
15179 os2*)
15180   libname_spec='$name'
15181   shrext=".dll"
15182   need_lib_prefix=no
15183   library_names_spec='$libname${shared_ext} $libname.a'
15184   dynamic_linker='OS/2 ld.exe'
15185   shlibpath_var=LIBPATH
15186   ;;
15187
15188 osf3* | osf4* | osf5*)
15189   version_type=osf
15190   need_lib_prefix=no
15191   need_version=no
15192   soname_spec='${libname}${release}${shared_ext}$major'
15193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15196   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15197   ;;
15198
15199 sco3.2v5*)
15200   version_type=osf
15201   soname_spec='${libname}${release}${shared_ext}$major'
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203   shlibpath_var=LD_LIBRARY_PATH
15204   ;;
15205
15206 solaris*)
15207   version_type=linux
15208   need_lib_prefix=no
15209   need_version=no
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   shlibpath_var=LD_LIBRARY_PATH
15213   shlibpath_overrides_runpath=yes
15214   hardcode_into_libs=yes
15215   # ldd complains unless libraries are executable
15216   postinstall_cmds='chmod +x $lib'
15217   ;;
15218
15219 sunos4*)
15220   version_type=sunos
15221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15223   shlibpath_var=LD_LIBRARY_PATH
15224   shlibpath_overrides_runpath=yes
15225   if test "$with_gnu_ld" = yes; then
15226     need_lib_prefix=no
15227   fi
15228   need_version=yes
15229   ;;
15230
15231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15232   version_type=linux
15233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234   soname_spec='${libname}${release}${shared_ext}$major'
15235   shlibpath_var=LD_LIBRARY_PATH
15236   case $host_vendor in
15237     sni)
15238       shlibpath_overrides_runpath=no
15239       need_lib_prefix=no
15240       export_dynamic_flag_spec='${wl}-Blargedynsym'
15241       runpath_var=LD_RUN_PATH
15242       ;;
15243     siemens)
15244       need_lib_prefix=no
15245       ;;
15246     motorola)
15247       need_lib_prefix=no
15248       need_version=no
15249       shlibpath_overrides_runpath=no
15250       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15251       ;;
15252   esac
15253   ;;
15254
15255 sysv4*MP*)
15256   if test -d /usr/nec ;then
15257     version_type=linux
15258     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15259     soname_spec='$libname${shared_ext}.$major'
15260     shlibpath_var=LD_LIBRARY_PATH
15261   fi
15262   ;;
15263
15264 uts4*)
15265   version_type=linux
15266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267   soname_spec='${libname}${release}${shared_ext}$major'
15268   shlibpath_var=LD_LIBRARY_PATH
15269   ;;
15270
15271 *)
15272   dynamic_linker=no
15273   ;;
15274 esac
15275 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15276 echo "${ECHO_T}$dynamic_linker" >&6
15277 test "$dynamic_linker" = no && can_build_shared=no
15278
15279
15280 # The else clause should only fire when bootstrapping the
15281 # libtool distribution, otherwise you forgot to ship ltmain.sh
15282 # with your package, and you will get complaints that there are
15283 # no rules to generate ltmain.sh.
15284 if test -f "$ltmain"; then
15285   # See if we are running on zsh, and set the options which allow our commands through
15286   # without removal of \ escapes.
15287   if test -n "${ZSH_VERSION+set}" ; then
15288     setopt NO_GLOB_SUBST
15289   fi
15290   # Now quote all the things that may contain metacharacters while being
15291   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15292   # variables and quote the copies for generation of the libtool script.
15293   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15294     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15295     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15296     deplibs_check_method reload_flag reload_cmds need_locks \
15297     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15298     lt_cv_sys_global_symbol_to_c_name_address \
15299     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15300     old_postinstall_cmds old_postuninstall_cmds \
15301     compiler_F77 \
15302     CC_F77 \
15303     LD_F77 \
15304     lt_prog_compiler_wl_F77 \
15305     lt_prog_compiler_pic_F77 \
15306     lt_prog_compiler_static_F77 \
15307     lt_prog_compiler_no_builtin_flag_F77 \
15308     export_dynamic_flag_spec_F77 \
15309     thread_safe_flag_spec_F77 \
15310     whole_archive_flag_spec_F77 \
15311     enable_shared_with_static_runtimes_F77 \
15312     old_archive_cmds_F77 \
15313     old_archive_from_new_cmds_F77 \
15314     predep_objects_F77 \
15315     postdep_objects_F77 \
15316     predeps_F77 \
15317     postdeps_F77 \
15318     compiler_lib_search_path_F77 \
15319     archive_cmds_F77 \
15320     archive_expsym_cmds_F77 \
15321     postinstall_cmds_F77 \
15322     postuninstall_cmds_F77 \
15323     old_archive_from_expsyms_cmds_F77 \
15324     allow_undefined_flag_F77 \
15325     no_undefined_flag_F77 \
15326     export_symbols_cmds_F77 \
15327     hardcode_libdir_flag_spec_F77 \
15328     hardcode_libdir_flag_spec_ld_F77 \
15329     hardcode_libdir_separator_F77 \
15330     hardcode_automatic_F77 \
15331     module_cmds_F77 \
15332     module_expsym_cmds_F77 \
15333     lt_cv_prog_compiler_c_o_F77 \
15334     exclude_expsyms_F77 \
15335     include_expsyms_F77; do
15336
15337     case $var in
15338     old_archive_cmds_F77 | \
15339     old_archive_from_new_cmds_F77 | \
15340     archive_cmds_F77 | \
15341     archive_expsym_cmds_F77 | \
15342     module_cmds_F77 | \
15343     module_expsym_cmds_F77 | \
15344     old_archive_from_expsyms_cmds_F77 | \
15345     export_symbols_cmds_F77 | \
15346     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15347     postinstall_cmds | postuninstall_cmds | \
15348     old_postinstall_cmds | old_postuninstall_cmds | \
15349     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15350       # Double-quote double-evaled strings.
15351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15352       ;;
15353     *)
15354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15355       ;;
15356     esac
15357   done
15358
15359   case $lt_echo in
15360   *'\$0 --fallback-echo"')
15361     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15362     ;;
15363   esac
15364
15365 cfgfile="$ofile"
15366
15367   cat <<__EOF__ >> "$cfgfile"
15368 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15369
15370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15371
15372 # Shell to use when invoking shell scripts.
15373 SHELL=$lt_SHELL
15374
15375 # Whether or not to build shared libraries.
15376 build_libtool_libs=$enable_shared
15377
15378 # Whether or not to build static libraries.
15379 build_old_libs=$enable_static
15380
15381 # Whether or not to add -lc for building shared libraries.
15382 build_libtool_need_lc=$archive_cmds_need_lc_F77
15383
15384 # Whether or not to disallow shared libs when runtime libs are static
15385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15386
15387 # Whether or not to optimize for fast installation.
15388 fast_install=$enable_fast_install
15389
15390 # The host system.
15391 host_alias=$host_alias
15392 host=$host
15393
15394 # An echo program that does not interpret backslashes.
15395 echo=$lt_echo
15396
15397 # The archiver.
15398 AR=$lt_AR
15399 AR_FLAGS=$lt_AR_FLAGS
15400
15401 # A C compiler.
15402 LTCC=$lt_LTCC
15403
15404 # A language-specific compiler.
15405 CC=$lt_compiler_F77
15406
15407 # Is the compiler the GNU C compiler?
15408 with_gcc=$GCC_F77
15409
15410 # An ERE matcher.
15411 EGREP=$lt_EGREP
15412
15413 # The linker used to build libraries.
15414 LD=$lt_LD_F77
15415
15416 # Whether we need hard or soft links.
15417 LN_S=$lt_LN_S
15418
15419 # A BSD-compatible nm program.
15420 NM=$lt_NM
15421
15422 # A symbol stripping program
15423 STRIP=$STRIP
15424
15425 # Used to examine libraries when file_magic_cmd begins "file"
15426 MAGIC_CMD=$MAGIC_CMD
15427
15428 # Used on cygwin: DLL creation program.
15429 DLLTOOL="$DLLTOOL"
15430
15431 # Used on cygwin: object dumper.
15432 OBJDUMP="$OBJDUMP"
15433
15434 # Used on cygwin: assembler.
15435 AS="$AS"
15436
15437 # The name of the directory that contains temporary libtool files.
15438 objdir=$objdir
15439
15440 # How to create reloadable object files.
15441 reload_flag=$lt_reload_flag
15442 reload_cmds=$lt_reload_cmds
15443
15444 # How to pass a linker flag through the compiler.
15445 wl=$lt_lt_prog_compiler_wl_F77
15446
15447 # Object file suffix (normally "o").
15448 objext="$ac_objext"
15449
15450 # Old archive suffix (normally "a").
15451 libext="$libext"
15452
15453 # Shared library suffix (normally ".so").
15454 shrext='$shrext'
15455
15456 # Executable file suffix (normally "").
15457 exeext="$exeext"
15458
15459 # Additional compiler flags for building library objects.
15460 pic_flag=$lt_lt_prog_compiler_pic_F77
15461 pic_mode=$pic_mode
15462
15463 # What is the maximum length of a command?
15464 max_cmd_len=$lt_cv_sys_max_cmd_len
15465
15466 # Does compiler simultaneously support -c and -o options?
15467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15468
15469 # Must we lock files when doing compilation ?
15470 need_locks=$lt_need_locks
15471
15472 # Do we need the lib prefix for modules?
15473 need_lib_prefix=$need_lib_prefix
15474
15475 # Do we need a version for libraries?
15476 need_version=$need_version
15477
15478 # Whether dlopen is supported.
15479 dlopen_support=$enable_dlopen
15480
15481 # Whether dlopen of programs is supported.
15482 dlopen_self=$enable_dlopen_self
15483
15484 # Whether dlopen of statically linked programs is supported.
15485 dlopen_self_static=$enable_dlopen_self_static
15486
15487 # Compiler flag to prevent dynamic linking.
15488 link_static_flag=$lt_lt_prog_compiler_static_F77
15489
15490 # Compiler flag to turn off builtin functions.
15491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15492
15493 # Compiler flag to allow reflexive dlopens.
15494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15495
15496 # Compiler flag to generate shared objects directly from archives.
15497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15498
15499 # Compiler flag to generate thread-safe objects.
15500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15501
15502 # Library versioning type.
15503 version_type=$version_type
15504
15505 # Format of library name prefix.
15506 libname_spec=$lt_libname_spec
15507
15508 # List of archive names.  First name is the real one, the rest are links.
15509 # The last name is the one that the linker finds with -lNAME.
15510 library_names_spec=$lt_library_names_spec
15511
15512 # The coded name of the library, if different from the real name.
15513 soname_spec=$lt_soname_spec
15514
15515 # Commands used to build and install an old-style archive.
15516 RANLIB=$lt_RANLIB
15517 old_archive_cmds=$lt_old_archive_cmds_F77
15518 old_postinstall_cmds=$lt_old_postinstall_cmds
15519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15520
15521 # Create an old-style archive from a shared archive.
15522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15523
15524 # Create a temporary old-style archive to link instead of a shared archive.
15525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15526
15527 # Commands used to build and install a shared archive.
15528 archive_cmds=$lt_archive_cmds_F77
15529 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15530 postinstall_cmds=$lt_postinstall_cmds
15531 postuninstall_cmds=$lt_postuninstall_cmds
15532
15533 # Commands used to build a loadable module (assumed same as above if empty)
15534 module_cmds=$lt_module_cmds_F77
15535 module_expsym_cmds=$lt_module_expsym_cmds_F77
15536
15537 # Commands to strip libraries.
15538 old_striplib=$lt_old_striplib
15539 striplib=$lt_striplib
15540
15541 # Dependencies to place before the objects being linked to create a
15542 # shared library.
15543 predep_objects=$lt_predep_objects_F77
15544
15545 # Dependencies to place after the objects being linked to create a
15546 # shared library.
15547 postdep_objects=$lt_postdep_objects_F77
15548
15549 # Dependencies to place before the objects being linked to create a
15550 # shared library.
15551 predeps=$lt_predeps_F77
15552
15553 # Dependencies to place after the objects being linked to create a
15554 # shared library.
15555 postdeps=$lt_postdeps_F77
15556
15557 # The library search path used internally by the compiler when linking
15558 # a shared library.
15559 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15560
15561 # Method to check whether dependent libraries are shared objects.
15562 deplibs_check_method=$lt_deplibs_check_method
15563
15564 # Command to use when deplibs_check_method == file_magic.
15565 file_magic_cmd=$lt_file_magic_cmd
15566
15567 # Flag that allows shared libraries with undefined symbols to be built.
15568 allow_undefined_flag=$lt_allow_undefined_flag_F77
15569
15570 # Flag that forces no undefined symbols.
15571 no_undefined_flag=$lt_no_undefined_flag_F77
15572
15573 # Commands used to finish a libtool library installation in a directory.
15574 finish_cmds=$lt_finish_cmds
15575
15576 # Same as above, but a single script fragment to be evaled but not shown.
15577 finish_eval=$lt_finish_eval
15578
15579 # Take the output of nm and produce a listing of raw symbols and C names.
15580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15581
15582 # Transform the output of nm in a proper C declaration
15583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15584
15585 # Transform the output of nm in a C name address pair
15586 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15587
15588 # This is the shared library runtime path variable.
15589 runpath_var=$runpath_var
15590
15591 # This is the shared library path variable.
15592 shlibpath_var=$shlibpath_var
15593
15594 # Is shlibpath searched before the hard-coded library search path?
15595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15596
15597 # How to hardcode a shared library path into an executable.
15598 hardcode_action=$hardcode_action_F77
15599
15600 # Whether we should hardcode library paths into libraries.
15601 hardcode_into_libs=$hardcode_into_libs
15602
15603 # Flag to hardcode \$libdir into a binary during linking.
15604 # This must work even if \$libdir does not exist.
15605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15606
15607 # If ld is used when linking, flag to hardcode \$libdir into
15608 # a binary during linking. This must work even if \$libdir does
15609 # not exist.
15610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15611
15612 # Whether we need a single -rpath flag with a separated argument.
15613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15614
15615 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15616 # resulting binary.
15617 hardcode_direct=$hardcode_direct_F77
15618
15619 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15620 # resulting binary.
15621 hardcode_minus_L=$hardcode_minus_L_F77
15622
15623 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15624 # the resulting binary.
15625 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15626
15627 # Set to yes if building a shared library automatically hardcodes DIR into the library
15628 # and all subsequent libraries and executables linked against it.
15629 hardcode_automatic=$hardcode_automatic_F77
15630
15631 # Variables whose values should be saved in libtool wrapper scripts and
15632 # restored at relink time.
15633 variables_saved_for_relink="$variables_saved_for_relink"
15634
15635 # Whether libtool must link a program against all its dependency libraries.
15636 link_all_deplibs=$link_all_deplibs_F77
15637
15638 # Compile-time system search path for libraries
15639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15640
15641 # Run-time system search path for libraries
15642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15643
15644 # Fix the shell variable \$srcfile for the compiler.
15645 fix_srcfile_path="$fix_srcfile_path_F77"
15646
15647 # Set to yes if exported symbols are required.
15648 always_export_symbols=$always_export_symbols_F77
15649
15650 # The commands to list exported symbols.
15651 export_symbols_cmds=$lt_export_symbols_cmds_F77
15652
15653 # The commands to extract the exported symbol list from a shared archive.
15654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15655
15656 # Symbols that should not be listed in the preloaded symbols.
15657 exclude_expsyms=$lt_exclude_expsyms_F77
15658
15659 # Symbols that must always be exported.
15660 include_expsyms=$lt_include_expsyms_F77
15661
15662 # ### END LIBTOOL TAG CONFIG: $tagname
15663
15664 __EOF__
15665
15666
15667 else
15668   # If there is no Makefile yet, we rely on a make rule to execute
15669   # `config.status --recheck' to rerun these tests and create the
15670   # libtool script then.
15671   test -f Makefile && make "$ltmain"
15672 fi
15673
15674
15675 ac_ext=c
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15680
15681 CC="$lt_save_CC"
15682
15683         else
15684           tagname=""
15685         fi
15686         ;;
15687
15688       GCJ)
15689         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15690
15691
15692
15693 # Source file extension for Java test sources.
15694 ac_ext=java
15695
15696 # Object file extension for compiled Java test sources.
15697 objext=o
15698 objext_GCJ=$objext
15699
15700 # Code to be used in simple compile tests
15701 lt_simple_compile_test_code="class foo {}\n"
15702
15703 # Code to be used in simple link tests
15704 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15705
15706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15707
15708 # If no C compiler was specified, use CC.
15709 LTCC=${LTCC-"$CC"}
15710
15711 # Allow CC to be a program name with arguments.
15712 compiler=$CC
15713
15714
15715 # Allow CC to be a program name with arguments.
15716 lt_save_CC="$CC"
15717 CC=${GCJ-"gcj"}
15718 compiler=$CC
15719 compiler_GCJ=$CC
15720
15721 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15722 archive_cmds_need_lc_GCJ=no
15723
15724 ## CAVEAT EMPTOR:
15725 ## There is no encapsulation within the following macros, do not change
15726 ## the running order or otherwise move them around unless you know exactly
15727 ## what you are doing...
15728
15729 lt_prog_compiler_no_builtin_flag_GCJ=
15730
15731 if test "$GCC" = yes; then
15732   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15733
15734   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15735 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15736 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15737   echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739   lt_cv_prog_compiler_rtti_exceptions=no
15740   ac_outfile=conftest.$ac_objext
15741    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15742    lt_compiler_flag="-fno-rtti -fno-exceptions"
15743    # Insert the option either (1) after the last *FLAGS variable, or
15744    # (2) before a word containing "conftest.", or (3) at the end.
15745    # Note that $ac_compile itself does not contain backslashes and begins
15746    # with a dollar sign (not a hyphen), so the echo should work correctly.
15747    # The option is referenced via a variable to avoid confusing sed.
15748    lt_compile=`echo "$ac_compile" | $SED \
15749    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15751    -e 's:$: $lt_compiler_flag:'`
15752    (eval echo "\"\$as_me:15752: $lt_compile\"" >&5)
15753    (eval "$lt_compile" 2>conftest.err)
15754    ac_status=$?
15755    cat conftest.err >&5
15756    echo "$as_me:15756: \$? = $ac_status" >&5
15757    if (exit $ac_status) && test -s "$ac_outfile"; then
15758      # The compiler can only warn and ignore the option if not recognized
15759      # So say no if there are warnings
15760      if test ! -s conftest.err; then
15761        lt_cv_prog_compiler_rtti_exceptions=yes
15762      fi
15763    fi
15764    $rm conftest*
15765
15766 fi
15767 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15768 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15769
15770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15771     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15772 else
15773     :
15774 fi
15775
15776 fi
15777
15778 lt_prog_compiler_wl_GCJ=
15779 lt_prog_compiler_pic_GCJ=
15780 lt_prog_compiler_static_GCJ=
15781
15782 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15783 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15784
15785   if test "$GCC" = yes; then
15786     lt_prog_compiler_wl_GCJ='-Wl,'
15787     lt_prog_compiler_static_GCJ='-static'
15788
15789     case $host_os in
15790       aix*)
15791       # All AIX code is PIC.
15792       if test "$host_cpu" = ia64; then
15793         # AIX 5 now supports IA64 processor
15794         lt_prog_compiler_static_GCJ='-Bstatic'
15795       fi
15796       ;;
15797
15798     amigaos*)
15799       # FIXME: we need at least 68020 code to build shared libraries, but
15800       # adding the `-m68020' flag to GCC prevents building anything better,
15801       # like `-m68040'.
15802       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15803       ;;
15804
15805     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15806       # PIC is the default for these OSes.
15807       ;;
15808
15809     mingw* | pw32* | os2*)
15810       # This hack is so that the source file can tell whether it is being
15811       # built for inclusion in a dll (and should export symbols for example).
15812       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15813       ;;
15814
15815     darwin* | rhapsody*)
15816       # PIC is the default on this platform
15817       # Common symbols not allowed in MH_DYLIB files
15818       lt_prog_compiler_pic_GCJ='-fno-common'
15819       ;;
15820
15821     msdosdjgpp*)
15822       # Just because we use GCC doesn't mean we suddenly get shared libraries
15823       # on systems that don't support them.
15824       lt_prog_compiler_can_build_shared_GCJ=no
15825       enable_shared=no
15826       ;;
15827
15828     sysv4*MP*)
15829       if test -d /usr/nec; then
15830         lt_prog_compiler_pic_GCJ=-Kconform_pic
15831       fi
15832       ;;
15833
15834     hpux*)
15835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15836       # not for PA HP-UX.
15837       case "$host_cpu" in
15838       hppa*64*|ia64*)
15839         # +Z the default
15840         ;;
15841       *)
15842         lt_prog_compiler_pic_GCJ='-fPIC'
15843         ;;
15844       esac
15845       ;;
15846
15847     *)
15848       lt_prog_compiler_pic_GCJ='-fPIC'
15849       ;;
15850     esac
15851   else
15852     # PORTME Check for flag to pass linker flags through the system compiler.
15853     case $host_os in
15854     aix*)
15855       lt_prog_compiler_wl_GCJ='-Wl,'
15856       if test "$host_cpu" = ia64; then
15857         # AIX 5 now supports IA64 processor
15858         lt_prog_compiler_static_GCJ='-Bstatic'
15859       else
15860         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15861       fi
15862       ;;
15863
15864     mingw* | pw32* | os2*)
15865       # This hack is so that the source file can tell whether it is being
15866       # built for inclusion in a dll (and should export symbols for example).
15867       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15868       ;;
15869
15870     hpux9* | hpux10* | hpux11*)
15871       lt_prog_compiler_wl_GCJ='-Wl,'
15872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15873       # not for PA HP-UX.
15874       case "$host_cpu" in
15875       hppa*64*|ia64*)
15876         # +Z the default
15877         ;;
15878       *)
15879         lt_prog_compiler_pic_GCJ='+Z'
15880         ;;
15881       esac
15882       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15883       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15884       ;;
15885
15886     irix5* | irix6* | nonstopux*)
15887       lt_prog_compiler_wl_GCJ='-Wl,'
15888       # PIC (with -KPIC) is the default.
15889       lt_prog_compiler_static_GCJ='-non_shared'
15890       ;;
15891
15892     newsos6)
15893       lt_prog_compiler_pic_GCJ='-KPIC'
15894       lt_prog_compiler_static_GCJ='-Bstatic'
15895       ;;
15896
15897     linux*)
15898       case $CC in
15899       icc|ecc)
15900         lt_prog_compiler_wl_GCJ='-Wl,'
15901         lt_prog_compiler_pic_GCJ='-KPIC'
15902         lt_prog_compiler_static_GCJ='-static'
15903         ;;
15904       ccc)
15905         lt_prog_compiler_wl_GCJ='-Wl,'
15906         # All Alpha code is PIC.
15907         lt_prog_compiler_static_GCJ='-non_shared'
15908         ;;
15909       esac
15910       ;;
15911
15912     osf3* | osf4* | osf5*)
15913       lt_prog_compiler_wl_GCJ='-Wl,'
15914       # All OSF/1 code is PIC.
15915       lt_prog_compiler_static_GCJ='-non_shared'
15916       ;;
15917
15918     sco3.2v5*)
15919       lt_prog_compiler_pic_GCJ='-Kpic'
15920       lt_prog_compiler_static_GCJ='-dn'
15921       ;;
15922
15923     solaris*)
15924       lt_prog_compiler_wl_GCJ='-Wl,'
15925       lt_prog_compiler_pic_GCJ='-KPIC'
15926       lt_prog_compiler_static_GCJ='-Bstatic'
15927       ;;
15928
15929     sunos4*)
15930       lt_prog_compiler_wl_GCJ='-Qoption ld '
15931       lt_prog_compiler_pic_GCJ='-PIC'
15932       lt_prog_compiler_static_GCJ='-Bstatic'
15933       ;;
15934
15935     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15936       lt_prog_compiler_wl_GCJ='-Wl,'
15937       lt_prog_compiler_pic_GCJ='-KPIC'
15938       lt_prog_compiler_static_GCJ='-Bstatic'
15939       ;;
15940
15941     sysv4*MP*)
15942       if test -d /usr/nec ;then
15943         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15944         lt_prog_compiler_static_GCJ='-Bstatic'
15945       fi
15946       ;;
15947
15948     uts4*)
15949       lt_prog_compiler_pic_GCJ='-pic'
15950       lt_prog_compiler_static_GCJ='-Bstatic'
15951       ;;
15952
15953     *)
15954       lt_prog_compiler_can_build_shared_GCJ=no
15955       ;;
15956     esac
15957   fi
15958
15959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15960 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15961
15962 #
15963 # Check to make sure the PIC flag actually works.
15964 #
15965 if test -n "$lt_prog_compiler_pic_GCJ"; then
15966   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15968 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15969   echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971   lt_prog_compiler_pic_works_GCJ=no
15972   ac_outfile=conftest.$ac_objext
15973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15974    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15975    # Insert the option either (1) after the last *FLAGS variable, or
15976    # (2) before a word containing "conftest.", or (3) at the end.
15977    # Note that $ac_compile itself does not contain backslashes and begins
15978    # with a dollar sign (not a hyphen), so the echo should work correctly.
15979    # The option is referenced via a variable to avoid confusing sed.
15980    lt_compile=`echo "$ac_compile" | $SED \
15981    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15983    -e 's:$: $lt_compiler_flag:'`
15984    (eval echo "\"\$as_me:15984: $lt_compile\"" >&5)
15985    (eval "$lt_compile" 2>conftest.err)
15986    ac_status=$?
15987    cat conftest.err >&5
15988    echo "$as_me:15988: \$? = $ac_status" >&5
15989    if (exit $ac_status) && test -s "$ac_outfile"; then
15990      # The compiler can only warn and ignore the option if not recognized
15991      # So say no if there are warnings
15992      if test ! -s conftest.err; then
15993        lt_prog_compiler_pic_works_GCJ=yes
15994      fi
15995    fi
15996    $rm conftest*
15997
15998 fi
15999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16000 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16001
16002 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16003     case $lt_prog_compiler_pic_GCJ in
16004      "" | " "*) ;;
16005      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16006      esac
16007 else
16008     lt_prog_compiler_pic_GCJ=
16009      lt_prog_compiler_can_build_shared_GCJ=no
16010 fi
16011
16012 fi
16013 case "$host_os" in
16014   # For platforms which do not support PIC, -DPIC is meaningless:
16015   *djgpp*)
16016     lt_prog_compiler_pic_GCJ=
16017     ;;
16018   *)
16019     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16020     ;;
16021 esac
16022
16023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16025 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   lt_cv_prog_compiler_c_o_GCJ=no
16029    $rm -r conftest 2>/dev/null
16030    mkdir conftest
16031    cd conftest
16032    mkdir out
16033    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
16035    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16036    # that will create temporary files in the current directory regardless of
16037    # the output directory.  Thus, making CWD read-only will cause this test
16038    # to fail, enabling locking or at least warning the user not to do parallel
16039    # builds.
16040    chmod -w .
16041
16042    lt_compiler_flag="-o out/conftest2.$ac_objext"
16043    # Insert the option either (1) after the last *FLAGS variable, or
16044    # (2) before a word containing "conftest.", or (3) at the end.
16045    # Note that $ac_compile itself does not contain backslashes and begins
16046    # with a dollar sign (not a hyphen), so the echo should work correctly.
16047    lt_compile=`echo "$ac_compile" | $SED \
16048    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16050    -e 's:$: $lt_compiler_flag:'`
16051    (eval echo "\"\$as_me:16051: $lt_compile\"" >&5)
16052    (eval "$lt_compile" 2>out/conftest.err)
16053    ac_status=$?
16054    cat out/conftest.err >&5
16055    echo "$as_me:16055: \$? = $ac_status" >&5
16056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16057    then
16058      # The compiler can only warn and ignore the option if not recognized
16059      # So say no if there are warnings
16060      if test ! -s out/conftest.err; then
16061        lt_cv_prog_compiler_c_o_GCJ=yes
16062      fi
16063    fi
16064    chmod u+w .
16065    $rm conftest* out/*
16066    rmdir out
16067    cd ..
16068    rmdir conftest
16069    $rm conftest*
16070
16071 fi
16072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16074
16075
16076 hard_links="nottested"
16077 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16078   # do not overwrite the value of need_locks provided by the user
16079   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16081   hard_links=yes
16082   $rm conftest*
16083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16084   touch conftest.a
16085   ln conftest.a conftest.b 2>&5 || hard_links=no
16086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087   echo "$as_me:$LINENO: result: $hard_links" >&5
16088 echo "${ECHO_T}$hard_links" >&6
16089   if test "$hard_links" = no; then
16090     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16092     need_locks=warn
16093   fi
16094 else
16095   need_locks=no
16096 fi
16097
16098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16100
16101   runpath_var=
16102   allow_undefined_flag_GCJ=
16103   enable_shared_with_static_runtimes_GCJ=no
16104   archive_cmds_GCJ=
16105   archive_expsym_cmds_GCJ=
16106   old_archive_From_new_cmds_GCJ=
16107   old_archive_from_expsyms_cmds_GCJ=
16108   export_dynamic_flag_spec_GCJ=
16109   whole_archive_flag_spec_GCJ=
16110   thread_safe_flag_spec_GCJ=
16111   hardcode_libdir_flag_spec_GCJ=
16112   hardcode_libdir_flag_spec_ld_GCJ=
16113   hardcode_libdir_separator_GCJ=
16114   hardcode_direct_GCJ=no
16115   hardcode_minus_L_GCJ=no
16116   hardcode_shlibpath_var_GCJ=unsupported
16117   link_all_deplibs_GCJ=unknown
16118   hardcode_automatic_GCJ=no
16119   module_cmds_GCJ=
16120   module_expsym_cmds_GCJ=
16121   always_export_symbols_GCJ=no
16122   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16123   # include_expsyms should be a list of space-separated symbols to be *always*
16124   # included in the symbol list
16125   include_expsyms_GCJ=
16126   # exclude_expsyms can be an extended regexp of symbols to exclude
16127   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16128   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16129   # as well as any symbol that contains `d'.
16130   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16131   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16132   # platforms (ab)use it in PIC code, but their linkers get confused if
16133   # the symbol is explicitly referenced.  Since portable code cannot
16134   # rely on this symbol name, it's probably fine to never include it in
16135   # preloaded symbol tables.
16136   extract_expsyms_cmds=
16137
16138   case $host_os in
16139   cygwin* | mingw* | pw32*)
16140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16141     # When not using gcc, we currently assume that we are using
16142     # Microsoft Visual C++.
16143     if test "$GCC" != yes; then
16144       with_gnu_ld=no
16145     fi
16146     ;;
16147   openbsd*)
16148     with_gnu_ld=no
16149     ;;
16150   esac
16151
16152   ld_shlibs_GCJ=yes
16153   if test "$with_gnu_ld" = yes; then
16154     # If archive_cmds runs LD, not CC, wlarc should be empty
16155     wlarc='${wl}'
16156
16157     # See if GNU ld supports shared libraries.
16158     case $host_os in
16159     aix3* | aix4* | aix5*)
16160       # On AIX/PPC, the GNU linker is very broken
16161       if test "$host_cpu" != ia64; then
16162         ld_shlibs_GCJ=no
16163         cat <<EOF 1>&2
16164
16165 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16166 *** to be unable to reliably create shared libraries on AIX.
16167 *** Therefore, libtool is disabling shared libraries support.  If you
16168 *** really care for shared libraries, you may want to modify your PATH
16169 *** so that a non-GNU linker is found, and then restart.
16170
16171 EOF
16172       fi
16173       ;;
16174
16175     amigaos*)
16176       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)'
16177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16178       hardcode_minus_L_GCJ=yes
16179
16180       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16181       # that the semantics of dynamic libraries on AmigaOS, at least up
16182       # to version 4, is to share data among multiple programs linked
16183       # with the same dynamic library.  Since this doesn't match the
16184       # behavior of shared libraries on other platforms, we can't use
16185       # them.
16186       ld_shlibs_GCJ=no
16187       ;;
16188
16189     beos*)
16190       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16191         allow_undefined_flag_GCJ=unsupported
16192         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16193         # support --undefined.  This deserves some investigation.  FIXME
16194         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195       else
16196         ld_shlibs_GCJ=no
16197       fi
16198       ;;
16199
16200     cygwin* | mingw* | pw32*)
16201       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16202       # as there is no search path for DLLs.
16203       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16204       allow_undefined_flag_GCJ=unsupported
16205       always_export_symbols_GCJ=no
16206       enable_shared_with_static_runtimes_GCJ=yes
16207       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16208
16209       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16210         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16211         # If the export-symbols file already is a .def file (1st line
16212         # is EXPORTS), use it as is; otherwise, prepend...
16213         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16214           cp $export_symbols $output_objdir/$soname.def;
16215         else
16216           echo EXPORTS > $output_objdir/$soname.def;
16217           cat $export_symbols >> $output_objdir/$soname.def;
16218         fi~
16219         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16220       else
16221         ld_shlibs=no
16222       fi
16223       ;;
16224
16225     netbsd*)
16226       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16227         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16228         wlarc=
16229       else
16230         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16232       fi
16233       ;;
16234
16235     solaris* | sysv5*)
16236       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16237         ld_shlibs_GCJ=no
16238         cat <<EOF 1>&2
16239
16240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16241 *** create shared libraries on Solaris systems.  Therefore, libtool
16242 *** is disabling shared libraries support.  We urge you to upgrade GNU
16243 *** binutils to release 2.9.1 or newer.  Another option is to modify
16244 *** your PATH or compiler configuration so that the native linker is
16245 *** used, and then restart.
16246
16247 EOF
16248       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16249         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251       else
16252         ld_shlibs_GCJ=no
16253       fi
16254       ;;
16255
16256     sunos4*)
16257       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16258       wlarc=
16259       hardcode_direct_GCJ=yes
16260       hardcode_shlibpath_var_GCJ=no
16261       ;;
16262
16263     *)
16264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16265         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16267       else
16268         ld_shlibs_GCJ=no
16269       fi
16270       ;;
16271     esac
16272
16273     if test "$ld_shlibs_GCJ" = yes; then
16274       runpath_var=LD_RUN_PATH
16275       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16276       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16277       # ancient GNU ld didn't support --whole-archive et. al.
16278       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16279         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16280       else
16281         whole_archive_flag_spec_GCJ=
16282       fi
16283     fi
16284   else
16285     # PORTME fill in a description of your system's linker (not GNU ld)
16286     case $host_os in
16287     aix3*)
16288       allow_undefined_flag_GCJ=unsupported
16289       always_export_symbols_GCJ=yes
16290       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'
16291       # Note: this linker hardcodes the directories in LIBPATH if there
16292       # are no directories specified by -L.
16293       hardcode_minus_L_GCJ=yes
16294       if test "$GCC" = yes && test -z "$link_static_flag"; then
16295         # Neither direct hardcoding nor static linking is supported with a
16296         # broken collect2.
16297         hardcode_direct_GCJ=unsupported
16298       fi
16299       ;;
16300
16301     aix4* | aix5*)
16302       if test "$host_cpu" = ia64; then
16303         # On IA64, the linker does run time linking by default, so we don't
16304         # have to do anything special.
16305         aix_use_runtimelinking=no
16306         exp_sym_flag='-Bexport'
16307         no_entry_flag=""
16308       else
16309         # If we're using GNU nm, then we don't want the "-C" option.
16310         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16311         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16312           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'
16313         else
16314           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'
16315         fi
16316         aix_use_runtimelinking=no
16317
16318         # Test if we are trying to use run time linking or normal
16319         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16320         # need to do runtime linking.
16321         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16322           for ld_flag in $LDFLAGS; do
16323           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16324             aix_use_runtimelinking=yes
16325             break
16326           fi
16327           done
16328         esac
16329
16330         exp_sym_flag='-bexport'
16331         no_entry_flag='-bnoentry'
16332       fi
16333
16334       # When large executables or shared objects are built, AIX ld can
16335       # have problems creating the table of contents.  If linking a library
16336       # or program results in "error TOC overflow" add -mminimal-toc to
16337       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16338       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16339
16340       archive_cmds_GCJ=''
16341       hardcode_direct_GCJ=yes
16342       hardcode_libdir_separator_GCJ=':'
16343       link_all_deplibs_GCJ=yes
16344
16345       if test "$GCC" = yes; then
16346         case $host_os in aix4.012|aix4.012.*)
16347         # We only want to do this on AIX 4.2 and lower, the check
16348         # below for broken collect2 doesn't work under 4.3+
16349           collect2name=`${CC} -print-prog-name=collect2`
16350           if test -f "$collect2name" && \
16351            strings "$collect2name" | grep resolve_lib_name >/dev/null
16352           then
16353           # We have reworked collect2
16354           hardcode_direct_GCJ=yes
16355           else
16356           # We have old collect2
16357           hardcode_direct_GCJ=unsupported
16358           # It fails to find uninstalled libraries when the uninstalled
16359           # path is not listed in the libpath.  Setting hardcode_minus_L
16360           # to unsupported forces relinking
16361           hardcode_minus_L_GCJ=yes
16362           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16363           hardcode_libdir_separator_GCJ=
16364           fi
16365         esac
16366         shared_flag='-shared'
16367       else
16368         # not using gcc
16369         if test "$host_cpu" = ia64; then
16370         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16371         # chokes on -Wl,-G. The following line is correct:
16372           shared_flag='-G'
16373         else
16374         if test "$aix_use_runtimelinking" = yes; then
16375             shared_flag='${wl}-G'
16376           else
16377             shared_flag='${wl}-bM:SRE'
16378         fi
16379         fi
16380       fi
16381
16382       # It seems that -bexpall does not export symbols beginning with
16383       # underscore (_), so it is better to generate a list of symbols to export.
16384       always_export_symbols_GCJ=yes
16385       if test "$aix_use_runtimelinking" = yes; then
16386         # Warning - without using the other runtime loading flags (-brtl),
16387         # -berok will link without error, but may produce a broken library.
16388         allow_undefined_flag_GCJ='-berok'
16389        # Determine the default libpath from the value encoded in an empty executable.
16390        cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396
16397 int
16398 main ()
16399 {
16400
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 rm -f conftest.$ac_objext conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407   (eval $ac_link) 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } &&
16414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416   (eval $ac_try) 2>&5
16417   ac_status=$?
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); }; } &&
16420          { ac_try='test -s conftest$ac_exeext'
16421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422   (eval $ac_try) 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; }; then
16426
16427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16428 }'`
16429 # Check for a 64-bit object if we didn't find anything.
16430 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; }
16431 }'`; fi
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 fi
16437 rm -f conftest.err conftest.$ac_objext \
16438       conftest$ac_exeext conftest.$ac_ext
16439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16440
16441        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16442         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"
16443        else
16444         if test "$host_cpu" = ia64; then
16445           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16446           allow_undefined_flag_GCJ="-z nodefs"
16447           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"
16448         else
16449          # Determine the default libpath from the value encoded in an empty executable.
16450          cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456
16457 int
16458 main ()
16459 {
16460
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16467   (eval $ac_link) 2>conftest.er1
16468   ac_status=$?
16469   grep -v '^ *+' conftest.er1 >conftest.err
16470   rm -f conftest.er1
16471   cat conftest.err >&5
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); } &&
16474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest$ac_exeext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486
16487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16488 }'`
16489 # Check for a 64-bit object if we didn't find anything.
16490 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; }
16491 }'`; fi
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496 fi
16497 rm -f conftest.err conftest.$ac_objext \
16498       conftest$ac_exeext conftest.$ac_ext
16499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16500
16501          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16502           # Warning - without using the other run time loading flags,
16503           # -berok will link without error, but may produce a broken library.
16504           no_undefined_flag_GCJ=' ${wl}-bernotok'
16505           allow_undefined_flag_GCJ=' ${wl}-berok'
16506           # -bexpall does not export symbols beginning with underscore (_)
16507           always_export_symbols_GCJ=yes
16508           # Exported symbols can be pulled into shared objects from archives
16509           whole_archive_flag_spec_GCJ=' '
16510           archive_cmds_need_lc_GCJ=yes
16511           # This is similar to how AIX traditionally builds it's shared libraries.
16512           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'
16513         fi
16514       fi
16515       ;;
16516
16517     amigaos*)
16518       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)'
16519       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16520       hardcode_minus_L_GCJ=yes
16521       # see comment about different semantics on the GNU ld section
16522       ld_shlibs_GCJ=no
16523       ;;
16524
16525     bsdi4*)
16526       export_dynamic_flag_spec_GCJ=-rdynamic
16527       ;;
16528
16529     cygwin* | mingw* | pw32*)
16530       # When not using gcc, we currently assume that we are using
16531       # Microsoft Visual C++.
16532       # hardcode_libdir_flag_spec is actually meaningless, as there is
16533       # no search path for DLLs.
16534       hardcode_libdir_flag_spec_GCJ=' '
16535       allow_undefined_flag_GCJ=unsupported
16536       # Tell ltmain to make .lib files, not .a files.
16537       libext=lib
16538       # Tell ltmain to make .dll files, not .so files.
16539       shrext=".dll"
16540       # FIXME: Setting linknames here is a bad hack.
16541       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16542       # The linker will automatically build a .lib file if we build a DLL.
16543       old_archive_From_new_cmds_GCJ='true'
16544       # FIXME: Should let the user specify the lib program.
16545       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16546       fix_srcfile_path='`cygpath -w "$srcfile"`'
16547       enable_shared_with_static_runtimes_GCJ=yes
16548       ;;
16549
16550     darwin* | rhapsody*)
16551     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16552       archive_cmds_need_lc_GCJ=no
16553       case "$host_os" in
16554       rhapsody* | darwin1.[012])
16555         allow_undefined_flag_GCJ='-undefined suppress'
16556         ;;
16557       *) # Darwin 1.3 on
16558         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16559         ;;
16560       esac
16561       # FIXME: Relying on posixy $() will cause problems for
16562       #        cross-compilation, but unfortunately the echo tests do not
16563       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
16564       #        `"' quotes if we put them in here... so don't!
16565         lt_int_apple_cc_single_mod=no
16566         output_verbose_link_cmd='echo'
16567         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16568           lt_int_apple_cc_single_mod=yes
16569         fi
16570         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16571           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16572         else
16573         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16574       fi
16575       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16576       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16577         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16578           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16579         else
16580           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16581         fi
16582           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16583       hardcode_direct_GCJ=no
16584       hardcode_automatic_GCJ=yes
16585       hardcode_shlibpath_var_GCJ=unsupported
16586       whole_archive_flag_spec_GCJ='-all_load $convenience'
16587       link_all_deplibs_GCJ=yes
16588     fi
16589       ;;
16590
16591     dgux*)
16592       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16593       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16594       hardcode_shlibpath_var_GCJ=no
16595       ;;
16596
16597     freebsd1*)
16598       ld_shlibs_GCJ=no
16599       ;;
16600
16601     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16602     # support.  Future versions do this automatically, but an explicit c++rt0.o
16603     # does not break anything, and helps significantly (at the cost of a little
16604     # extra space).
16605     freebsd2.2*)
16606       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16607       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608       hardcode_direct_GCJ=yes
16609       hardcode_shlibpath_var_GCJ=no
16610       ;;
16611
16612     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16613     freebsd2*)
16614       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615       hardcode_direct_GCJ=yes
16616       hardcode_minus_L_GCJ=yes
16617       hardcode_shlibpath_var_GCJ=no
16618       ;;
16619
16620     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16621     freebsd*)
16622       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16623       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16624       hardcode_direct_GCJ=yes
16625       hardcode_shlibpath_var_GCJ=no
16626       ;;
16627
16628     hpux9*)
16629       if test "$GCC" = yes; then
16630         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'
16631       else
16632         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'
16633       fi
16634       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16635       hardcode_libdir_separator_GCJ=:
16636       hardcode_direct_GCJ=yes
16637
16638       # hardcode_minus_L: Not really in the search PATH,
16639       # but as the default location of the library.
16640       hardcode_minus_L_GCJ=yes
16641       export_dynamic_flag_spec_GCJ='${wl}-E'
16642       ;;
16643
16644     hpux10* | hpux11*)
16645       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16646         case "$host_cpu" in
16647         hppa*64*|ia64*)
16648           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16649           ;;
16650         *)
16651           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16652           ;;
16653         esac
16654       else
16655         case "$host_cpu" in
16656         hppa*64*|ia64*)
16657           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16658           ;;
16659         *)
16660           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16661           ;;
16662         esac
16663       fi
16664       if test "$with_gnu_ld" = no; then
16665         case "$host_cpu" in
16666         hppa*64*)
16667           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16668           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16669           hardcode_libdir_separator_GCJ=:
16670           hardcode_direct_GCJ=no
16671           hardcode_shlibpath_var_GCJ=no
16672           ;;
16673         ia64*)
16674           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16675           hardcode_direct_GCJ=no
16676           hardcode_shlibpath_var_GCJ=no
16677
16678           # hardcode_minus_L: Not really in the search PATH,
16679           # but as the default location of the library.
16680           hardcode_minus_L_GCJ=yes
16681           ;;
16682         *)
16683           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16684           hardcode_libdir_separator_GCJ=:
16685           hardcode_direct_GCJ=yes
16686           export_dynamic_flag_spec_GCJ='${wl}-E'
16687
16688           # hardcode_minus_L: Not really in the search PATH,
16689           # but as the default location of the library.
16690           hardcode_minus_L_GCJ=yes
16691           ;;
16692         esac
16693       fi
16694       ;;
16695
16696     irix5* | irix6* | nonstopux*)
16697       if test "$GCC" = yes; then
16698         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'
16699       else
16700         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'
16701         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16702       fi
16703       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16704       hardcode_libdir_separator_GCJ=:
16705       link_all_deplibs_GCJ=yes
16706       ;;
16707
16708     netbsd*)
16709       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16710         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16711       else
16712         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16713       fi
16714       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16715       hardcode_direct_GCJ=yes
16716       hardcode_shlibpath_var_GCJ=no
16717       ;;
16718
16719     newsos6)
16720       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721       hardcode_direct_GCJ=yes
16722       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16723       hardcode_libdir_separator_GCJ=:
16724       hardcode_shlibpath_var_GCJ=no
16725       ;;
16726
16727     openbsd*)
16728       hardcode_direct_GCJ=yes
16729       hardcode_shlibpath_var_GCJ=no
16730       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16731         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16732         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16733         export_dynamic_flag_spec_GCJ='${wl}-E'
16734       else
16735        case $host_os in
16736          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16737            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16738            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16739            ;;
16740          *)
16741            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16742            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16743            ;;
16744        esac
16745       fi
16746       ;;
16747
16748     os2*)
16749       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16750       hardcode_minus_L_GCJ=yes
16751       allow_undefined_flag_GCJ=unsupported
16752       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'
16753       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16754       ;;
16755
16756     osf3*)
16757       if test "$GCC" = yes; then
16758         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16759         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'
16760       else
16761         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16762         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'
16763       fi
16764       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16765       hardcode_libdir_separator_GCJ=:
16766       ;;
16767
16768     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16769       if test "$GCC" = yes; then
16770         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16771         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'
16772         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16773       else
16774         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16775         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'
16776         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~
16777         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16778
16779         # Both c and cxx compiler support -rpath directly
16780         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16781       fi
16782       hardcode_libdir_separator_GCJ=:
16783       ;;
16784
16785     sco3.2v5*)
16786       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16787       hardcode_shlibpath_var_GCJ=no
16788       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16789       runpath_var=LD_RUN_PATH
16790       hardcode_runpath_var=yes
16791       ;;
16792
16793     solaris*)
16794       no_undefined_flag_GCJ=' -z text'
16795       if test "$GCC" = yes; then
16796         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16798           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16799       else
16800         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16802         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16803       fi
16804       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16805       hardcode_shlibpath_var_GCJ=no
16806       case $host_os in
16807       solaris2.[0-5] | solaris2.[0-5].*) ;;
16808       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16809         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16810       esac
16811       link_all_deplibs_GCJ=yes
16812       ;;
16813
16814     sunos4*)
16815       if test "x$host_vendor" = xsequent; then
16816         # Use $CC to link under sequent, because it throws in some extra .o
16817         # files that make .init and .fini sections work.
16818         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16819       else
16820         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16821       fi
16822       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16823       hardcode_direct_GCJ=yes
16824       hardcode_minus_L_GCJ=yes
16825       hardcode_shlibpath_var_GCJ=no
16826       ;;
16827
16828     sysv4)
16829       case $host_vendor in
16830         sni)
16831           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832           hardcode_direct_GCJ=yes # is this really true???
16833         ;;
16834         siemens)
16835           ## LD is ld it makes a PLAMLIB
16836           ## CC just makes a GrossModule.
16837           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16838           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16839           hardcode_direct_GCJ=no
16840         ;;
16841         motorola)
16842           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16844         ;;
16845       esac
16846       runpath_var='LD_RUN_PATH'
16847       hardcode_shlibpath_var_GCJ=no
16848       ;;
16849
16850     sysv4.3*)
16851       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852       hardcode_shlibpath_var_GCJ=no
16853       export_dynamic_flag_spec_GCJ='-Bexport'
16854       ;;
16855
16856     sysv4*MP*)
16857       if test -d /usr/nec; then
16858         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859         hardcode_shlibpath_var_GCJ=no
16860         runpath_var=LD_RUN_PATH
16861         hardcode_runpath_var=yes
16862         ld_shlibs_GCJ=yes
16863       fi
16864       ;;
16865
16866     sysv4.2uw2*)
16867       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16868       hardcode_direct_GCJ=yes
16869       hardcode_minus_L_GCJ=no
16870       hardcode_shlibpath_var_GCJ=no
16871       hardcode_runpath_var=yes
16872       runpath_var=LD_RUN_PATH
16873       ;;
16874
16875    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16876       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16877       if test "$GCC" = yes; then
16878         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16879       else
16880         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16881       fi
16882       runpath_var='LD_RUN_PATH'
16883       hardcode_shlibpath_var_GCJ=no
16884       ;;
16885
16886     sysv5*)
16887       no_undefined_flag_GCJ=' -z text'
16888       # $CC -shared without GNU ld will not create a library from C++
16889       # object files and a static libstdc++, better avoid it by now
16890       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16892                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16893       hardcode_libdir_flag_spec_GCJ=
16894       hardcode_shlibpath_var_GCJ=no
16895       runpath_var='LD_RUN_PATH'
16896       ;;
16897
16898     uts4*)
16899       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16901       hardcode_shlibpath_var_GCJ=no
16902       ;;
16903
16904     *)
16905       ld_shlibs_GCJ=no
16906       ;;
16907     esac
16908   fi
16909
16910 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16911 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16912 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16913
16914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16915 if test "$GCC" = yes; then
16916   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16917 fi
16918
16919 #
16920 # Do we need to explicitly link libc?
16921 #
16922 case "x$archive_cmds_need_lc_GCJ" in
16923 x|xyes)
16924   # Assume -lc should be added
16925   archive_cmds_need_lc_GCJ=yes
16926
16927   if test "$enable_shared" = yes && test "$GCC" = yes; then
16928     case $archive_cmds_GCJ in
16929     *'~'*)
16930       # FIXME: we may have to deal with multi-command sequences.
16931       ;;
16932     '$CC '*)
16933       # Test whether the compiler implicitly links with -lc since on some
16934       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16935       # to ld, don't add -lc before -lgcc.
16936       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16937 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16938       $rm conftest*
16939       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16940
16941       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942   (eval $ac_compile) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } 2>conftest.err; then
16946         soname=conftest
16947         lib=conftest
16948         libobjs=conftest.$ac_objext
16949         deplibs=
16950         wl=$lt_prog_compiler_wl_GCJ
16951         compiler_flags=-v
16952         linker_flags=-v
16953         verstring=
16954         output_objdir=.
16955         libname=conftest
16956         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16957         allow_undefined_flag_GCJ=
16958         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16959   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }
16963         then
16964           archive_cmds_need_lc_GCJ=no
16965         else
16966           archive_cmds_need_lc_GCJ=yes
16967         fi
16968         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16969       else
16970         cat conftest.err 1>&5
16971       fi
16972       $rm conftest*
16973       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16974 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16975       ;;
16976     esac
16977   fi
16978   ;;
16979 esac
16980
16981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16983 hardcode_action_GCJ=
16984 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16985    test -n "$runpath_var GCJ" || \
16986    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16987
16988   # We can hardcode non-existant directories.
16989   if test "$hardcode_direct_GCJ" != no &&
16990      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16991      # have to relink, otherwise we might link with an installed library
16992      # when we should be linking with a yet-to-be-installed one
16993      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16994      test "$hardcode_minus_L_GCJ" != no; then
16995     # Linking always hardcodes the temporary library directory.
16996     hardcode_action_GCJ=relink
16997   else
16998     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16999     hardcode_action_GCJ=immediate
17000   fi
17001 else
17002   # We cannot hardcode anything, or else we can only hardcode existing
17003   # directories.
17004   hardcode_action_GCJ=unsupported
17005 fi
17006 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17007 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17008
17009 if test "$hardcode_action_GCJ" = relink; then
17010   # Fast installation is not supported
17011   enable_fast_install=no
17012 elif test "$shlibpath_overrides_runpath" = yes ||
17013      test "$enable_shared" = no; then
17014   # Fast installation is not necessary
17015   enable_fast_install=needless
17016 fi
17017
17018 striplib=
17019 old_striplib=
17020 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17023   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17024   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17025   echo "$as_me:$LINENO: result: yes" >&5
17026 echo "${ECHO_T}yes" >&6
17027 else
17028 # FIXME - insert some real tests, host_os isn't really good enough
17029   case $host_os in
17030    darwin*)
17031        if test -n "$STRIP" ; then
17032          striplib="$STRIP -x"
17033          echo "$as_me:$LINENO: result: yes" >&5
17034 echo "${ECHO_T}yes" >&6
17035        else
17036   echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6
17038 fi
17039        ;;
17040    *)
17041   echo "$as_me:$LINENO: result: no" >&5
17042 echo "${ECHO_T}no" >&6
17043     ;;
17044   esac
17045 fi
17046
17047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17049 library_names_spec=
17050 libname_spec='lib$name'
17051 soname_spec=
17052 shrext=".so"
17053 postinstall_cmds=
17054 postuninstall_cmds=
17055 finish_cmds=
17056 finish_eval=
17057 shlibpath_var=
17058 shlibpath_overrides_runpath=unknown
17059 version_type=none
17060 dynamic_linker="$host_os ld.so"
17061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17062 if test "$GCC" = yes; then
17063   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17064   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17065     # if the path contains ";" then we assume it to be the separator
17066     # otherwise default to the standard path separator (i.e. ":") - it is
17067     # assumed that no part of a normal pathname contains ";" but that should
17068     # okay in the real world where ";" in dirpaths is itself problematic.
17069     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17070   else
17071     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17072   fi
17073 else
17074   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17075 fi
17076 need_lib_prefix=unknown
17077 hardcode_into_libs=no
17078
17079 # when you set need_version to no, make sure it does not cause -set_version
17080 # flags to be left without arguments
17081 need_version=unknown
17082
17083 case $host_os in
17084 aix3*)
17085   version_type=linux
17086   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17087   shlibpath_var=LIBPATH
17088
17089   # AIX 3 has no versioning support, so we append a major version to the name.
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   ;;
17092
17093 aix4* | aix5*)
17094   version_type=linux
17095   need_lib_prefix=no
17096   need_version=no
17097   hardcode_into_libs=yes
17098   if test "$host_cpu" = ia64; then
17099     # AIX 5 supports IA64
17100     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17101     shlibpath_var=LD_LIBRARY_PATH
17102   else
17103     # With GCC up to 2.95.x, collect2 would create an import file
17104     # for dependence libraries.  The import file would start with
17105     # the line `#! .'.  This would cause the generated library to
17106     # depend on `.', always an invalid library.  This was fixed in
17107     # development snapshots of GCC prior to 3.0.
17108     case $host_os in
17109       aix4 | aix4.[01] | aix4.[01].*)
17110       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17111            echo ' yes '
17112            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17113         :
17114       else
17115         can_build_shared=no
17116       fi
17117       ;;
17118     esac
17119     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17120     # soname into executable. Probably we can add versioning support to
17121     # collect2, so additional links can be useful in future.
17122     if test "$aix_use_runtimelinking" = yes; then
17123       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17124       # instead of lib<name>.a to let people know that these are not
17125       # typical AIX shared libraries.
17126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127     else
17128       # We preserve .a as extension for shared libraries through AIX4.2
17129       # and later when we are not doing run time linking.
17130       library_names_spec='${libname}${release}.a $libname.a'
17131       soname_spec='${libname}${release}${shared_ext}$major'
17132     fi
17133     shlibpath_var=LIBPATH
17134   fi
17135   ;;
17136
17137 amigaos*)
17138   library_names_spec='$libname.ixlibrary $libname.a'
17139   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17140   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'
17141   ;;
17142
17143 beos*)
17144   library_names_spec='${libname}${shared_ext}'
17145   dynamic_linker="$host_os ld.so"
17146   shlibpath_var=LIBRARY_PATH
17147   ;;
17148
17149 bsdi4*)
17150   version_type=linux
17151   need_version=no
17152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17155   shlibpath_var=LD_LIBRARY_PATH
17156   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17157   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17158   # the default ld.so.conf also contains /usr/contrib/lib and
17159   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17160   # libtool to hard-code these into programs
17161   ;;
17162
17163 cygwin* | mingw* | pw32*)
17164   version_type=windows
17165   shrext=".dll"
17166   need_version=no
17167   need_lib_prefix=no
17168
17169   case $GCC,$host_os in
17170   yes,cygwin* | yes,mingw* | yes,pw32*)
17171     library_names_spec='$libname.dll.a'
17172     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17173     postinstall_cmds='base_file=`basename \${file}`~
17174       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17175       dldir=$destdir/`dirname \$dlpath`~
17176       test -d \$dldir || mkdir -p \$dldir~
17177       $install_prog $dir/$dlname \$dldir/$dlname'
17178     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17179       dlpath=$dir/\$dldll~
17180        $rm \$dlpath'
17181     shlibpath_overrides_runpath=yes
17182
17183     case $host_os in
17184     cygwin*)
17185       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17186       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17188       ;;
17189     mingw*)
17190       # MinGW DLLs use traditional 'lib' prefix
17191       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17193       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17194         # It is most probably a Windows format PATH printed by
17195         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17196         # path with ; separators, and with drive letters. We can handle the
17197         # drive letters (cygwin fileutils understands them), so leave them,
17198         # especially as we might pass files found there to a mingw objdump,
17199         # which wouldn't understand a cygwinified path. Ahh.
17200         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17201       else
17202         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17203       fi
17204       ;;
17205     pw32*)
17206       # pw32 DLLs use 'pw' prefix rather than 'lib'
17207       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17208       ;;
17209     esac
17210     ;;
17211
17212   *)
17213     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17214     ;;
17215   esac
17216   dynamic_linker='Win32 ld.exe'
17217   # FIXME: first we should search . and the directory the executable is in
17218   shlibpath_var=PATH
17219   ;;
17220
17221 darwin* | rhapsody*)
17222   dynamic_linker="$host_os dyld"
17223   version_type=darwin
17224   need_lib_prefix=no
17225   need_version=no
17226   # FIXME: Relying on posixy $() will cause problems for
17227   #        cross-compilation, but unfortunately the echo tests do not
17228   #        yet detect zsh echo's removal of \ escapes.
17229   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17230   soname_spec='${libname}${release}${major}$shared_ext'
17231   shlibpath_overrides_runpath=yes
17232   shlibpath_var=DYLD_LIBRARY_PATH
17233   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17234   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17235   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17236   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"`
17237   fi
17238   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17239   ;;
17240
17241 dgux*)
17242   version_type=linux
17243   need_lib_prefix=no
17244   need_version=no
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17246   soname_spec='${libname}${release}${shared_ext}$major'
17247   shlibpath_var=LD_LIBRARY_PATH
17248   ;;
17249
17250 freebsd1*)
17251   dynamic_linker=no
17252   ;;
17253
17254 freebsd*)
17255   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17256   version_type=freebsd-$objformat
17257   case $version_type in
17258     freebsd-elf*)
17259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17260       need_version=no
17261       need_lib_prefix=no
17262       ;;
17263     freebsd-*)
17264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17265       need_version=yes
17266       ;;
17267   esac
17268   shlibpath_var=LD_LIBRARY_PATH
17269   case $host_os in
17270   freebsd2*)
17271     shlibpath_overrides_runpath=yes
17272     ;;
17273   freebsd3.01* | freebsdelf3.01*)
17274     shlibpath_overrides_runpath=yes
17275     hardcode_into_libs=yes
17276     ;;
17277   *) # from 3.2 on
17278     shlibpath_overrides_runpath=no
17279     hardcode_into_libs=yes
17280     ;;
17281   esac
17282   ;;
17283
17284 gnu*)
17285   version_type=linux
17286   need_lib_prefix=no
17287   need_version=no
17288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17289   soname_spec='${libname}${release}${shared_ext}$major'
17290   shlibpath_var=LD_LIBRARY_PATH
17291   hardcode_into_libs=yes
17292   ;;
17293
17294 hpux9* | hpux10* | hpux11*)
17295   # Give a soname corresponding to the major version so that dld.sl refuses to
17296   # link against other versions.
17297   version_type=sunos
17298   need_lib_prefix=no
17299   need_version=no
17300   case "$host_cpu" in
17301   ia64*)
17302     shrext='.so'
17303     hardcode_into_libs=yes
17304     dynamic_linker="$host_os dld.so"
17305     shlibpath_var=LD_LIBRARY_PATH
17306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308     soname_spec='${libname}${release}${shared_ext}$major'
17309     if test "X$HPUX_IA64_MODE" = X32; then
17310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17311     else
17312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17313     fi
17314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17315     ;;
17316    hppa*64*)
17317      shrext='.sl'
17318      hardcode_into_libs=yes
17319      dynamic_linker="$host_os dld.sl"
17320      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17321      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17322      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323      soname_spec='${libname}${release}${shared_ext}$major'
17324      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17325      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17326      ;;
17327    *)
17328     shrext='.sl'
17329     dynamic_linker="$host_os dld.sl"
17330     shlibpath_var=SHLIB_PATH
17331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333     soname_spec='${libname}${release}${shared_ext}$major'
17334     ;;
17335   esac
17336   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17337   postinstall_cmds='chmod 555 $lib'
17338   ;;
17339
17340 irix5* | irix6* | nonstopux*)
17341   case $host_os in
17342     nonstopux*) version_type=nonstopux ;;
17343     *)
17344         if test "$lt_cv_prog_gnu_ld" = yes; then
17345                 version_type=linux
17346         else
17347                 version_type=irix
17348         fi ;;
17349   esac
17350   need_lib_prefix=no
17351   need_version=no
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17354   case $host_os in
17355   irix5* | nonstopux*)
17356     libsuff= shlibsuff=
17357     ;;
17358   *)
17359     case $LD in # libtool.m4 will add one of these switches to LD
17360     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361       libsuff= shlibsuff= libmagic=32-bit;;
17362     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363       libsuff=32 shlibsuff=N32 libmagic=N32;;
17364     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366     *) libsuff= shlibsuff= libmagic=never-match;;
17367     esac
17368     ;;
17369   esac
17370   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17371   shlibpath_overrides_runpath=no
17372   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17373   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17374   hardcode_into_libs=yes
17375   ;;
17376
17377 # No shared lib support for Linux oldld, aout, or coff.
17378 linux*oldld* | linux*aout* | linux*coff*)
17379   dynamic_linker=no
17380   ;;
17381
17382 # This must be Linux ELF.
17383 linux*)
17384   version_type=linux
17385   need_lib_prefix=no
17386   need_version=no
17387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388   soname_spec='${libname}${release}${shared_ext}$major'
17389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17390   shlibpath_var=LD_LIBRARY_PATH
17391   shlibpath_overrides_runpath=no
17392   # This implies no fast_install, which is unacceptable.
17393   # Some rework will be needed to allow for fast_install
17394   # before this can be enabled.
17395   hardcode_into_libs=yes
17396
17397   # We used to test for /lib/ld.so.1 and disable shared libraries on
17398   # powerpc, because MkLinux only supported shared libraries with the
17399   # GNU dynamic linker.  Since this was broken with cross compilers,
17400   # most powerpc-linux boxes support dynamic linking these days and
17401   # people can always --disable-shared, the test was removed, and we
17402   # assume the GNU/Linux dynamic linker is in use.
17403   dynamic_linker='GNU/Linux ld.so'
17404   ;;
17405
17406 netbsd*)
17407   version_type=sunos
17408   need_lib_prefix=no
17409   need_version=no
17410   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17412     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17413     dynamic_linker='NetBSD (a.out) ld.so'
17414   else
17415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17416     soname_spec='${libname}${release}${shared_ext}$major'
17417     dynamic_linker='NetBSD ld.elf_so'
17418   fi
17419   shlibpath_var=LD_LIBRARY_PATH
17420   shlibpath_overrides_runpath=yes
17421   hardcode_into_libs=yes
17422   ;;
17423
17424 newsos6)
17425   version_type=linux
17426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427   shlibpath_var=LD_LIBRARY_PATH
17428   shlibpath_overrides_runpath=yes
17429   ;;
17430
17431 nto-qnx)
17432   version_type=linux
17433   need_lib_prefix=no
17434   need_version=no
17435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436   soname_spec='${libname}${release}${shared_ext}$major'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   shlibpath_overrides_runpath=yes
17439   ;;
17440
17441 openbsd*)
17442   version_type=sunos
17443   need_lib_prefix=no
17444   need_version=no
17445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17446   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17447   shlibpath_var=LD_LIBRARY_PATH
17448   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17449     case $host_os in
17450       openbsd2.[89] | openbsd2.[89].*)
17451         shlibpath_overrides_runpath=no
17452         ;;
17453       *)
17454         shlibpath_overrides_runpath=yes
17455         ;;
17456       esac
17457   else
17458     shlibpath_overrides_runpath=yes
17459   fi
17460   ;;
17461
17462 os2*)
17463   libname_spec='$name'
17464   shrext=".dll"
17465   need_lib_prefix=no
17466   library_names_spec='$libname${shared_ext} $libname.a'
17467   dynamic_linker='OS/2 ld.exe'
17468   shlibpath_var=LIBPATH
17469   ;;
17470
17471 osf3* | osf4* | osf5*)
17472   version_type=osf
17473   need_lib_prefix=no
17474   need_version=no
17475   soname_spec='${libname}${release}${shared_ext}$major'
17476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477   shlibpath_var=LD_LIBRARY_PATH
17478   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17479   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17480   ;;
17481
17482 sco3.2v5*)
17483   version_type=osf
17484   soname_spec='${libname}${release}${shared_ext}$major'
17485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486   shlibpath_var=LD_LIBRARY_PATH
17487   ;;
17488
17489 solaris*)
17490   version_type=linux
17491   need_lib_prefix=no
17492   need_version=no
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494   soname_spec='${libname}${release}${shared_ext}$major'
17495   shlibpath_var=LD_LIBRARY_PATH
17496   shlibpath_overrides_runpath=yes
17497   hardcode_into_libs=yes
17498   # ldd complains unless libraries are executable
17499   postinstall_cmds='chmod +x $lib'
17500   ;;
17501
17502 sunos4*)
17503   version_type=sunos
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17505   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17506   shlibpath_var=LD_LIBRARY_PATH
17507   shlibpath_overrides_runpath=yes
17508   if test "$with_gnu_ld" = yes; then
17509     need_lib_prefix=no
17510   fi
17511   need_version=yes
17512   ;;
17513
17514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17515   version_type=linux
17516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517   soname_spec='${libname}${release}${shared_ext}$major'
17518   shlibpath_var=LD_LIBRARY_PATH
17519   case $host_vendor in
17520     sni)
17521       shlibpath_overrides_runpath=no
17522       need_lib_prefix=no
17523       export_dynamic_flag_spec='${wl}-Blargedynsym'
17524       runpath_var=LD_RUN_PATH
17525       ;;
17526     siemens)
17527       need_lib_prefix=no
17528       ;;
17529     motorola)
17530       need_lib_prefix=no
17531       need_version=no
17532       shlibpath_overrides_runpath=no
17533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17534       ;;
17535   esac
17536   ;;
17537
17538 sysv4*MP*)
17539   if test -d /usr/nec ;then
17540     version_type=linux
17541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17542     soname_spec='$libname${shared_ext}.$major'
17543     shlibpath_var=LD_LIBRARY_PATH
17544   fi
17545   ;;
17546
17547 uts4*)
17548   version_type=linux
17549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550   soname_spec='${libname}${release}${shared_ext}$major'
17551   shlibpath_var=LD_LIBRARY_PATH
17552   ;;
17553
17554 *)
17555   dynamic_linker=no
17556   ;;
17557 esac
17558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17559 echo "${ECHO_T}$dynamic_linker" >&6
17560 test "$dynamic_linker" = no && can_build_shared=no
17561
17562 if test "x$enable_dlopen" != xyes; then
17563   enable_dlopen=unknown
17564   enable_dlopen_self=unknown
17565   enable_dlopen_self_static=unknown
17566 else
17567   lt_cv_dlopen=no
17568   lt_cv_dlopen_libs=
17569
17570   case $host_os in
17571   beos*)
17572     lt_cv_dlopen="load_add_on"
17573     lt_cv_dlopen_libs=
17574     lt_cv_dlopen_self=yes
17575     ;;
17576
17577   mingw* | pw32*)
17578     lt_cv_dlopen="LoadLibrary"
17579     lt_cv_dlopen_libs=
17580    ;;
17581
17582   cygwin*)
17583     lt_cv_dlopen="dlopen"
17584     lt_cv_dlopen_libs=
17585    ;;
17586
17587   darwin*)
17588   # if libdl is installed we need to link against it
17589     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594   ac_check_lib_save_LIBS=$LIBS
17595 LIBS="-ldl  $LIBS"
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602
17603 /* Override any gcc2 internal prototype to avoid an error.  */
17604 #ifdef __cplusplus
17605 extern "C"
17606 #endif
17607 /* We use char because int might match the return type of a gcc2
17608    builtin and then its argument prototype would still apply.  */
17609 char dlopen ();
17610 int
17611 main ()
17612 {
17613 dlopen ();
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620   (eval $ac_link) 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } &&
17633          { ac_try='test -s conftest$ac_exeext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_lib_dl_dlopen=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_lib_dl_dlopen=no
17645 fi
17646 rm -f conftest.err conftest.$ac_objext \
17647       conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17649 fi
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652 if test $ac_cv_lib_dl_dlopen = yes; then
17653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17654 else
17655
17656     lt_cv_dlopen="dyld"
17657     lt_cv_dlopen_libs=
17658     lt_cv_dlopen_self=yes
17659
17660 fi
17661
17662    ;;
17663
17664   *)
17665     echo "$as_me:$LINENO: checking for shl_load" >&5
17666 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17667 if test "${ac_cv_func_shl_load+set}" = set; then
17668   echo $ECHO_N "(cached) $ECHO_C" >&6
17669 else
17670   cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h.  */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h.  */
17676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17678 #define shl_load innocuous_shl_load
17679
17680 /* System header to define __stub macros and hopefully few prototypes,
17681     which can conflict with char shl_load (); below.
17682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17683     <limits.h> exists even on freestanding compilers.  */
17684
17685 #ifdef __STDC__
17686 # include <limits.h>
17687 #else
17688 # include <assert.h>
17689 #endif
17690
17691 #undef shl_load
17692
17693 /* Override any gcc2 internal prototype to avoid an error.  */
17694 #ifdef __cplusplus
17695 extern "C"
17696 {
17697 #endif
17698 /* We use char because int might match the return type of a gcc2
17699    builtin and then its argument prototype would still apply.  */
17700 char shl_load ();
17701 /* The GNU C library defines this for functions which it implements
17702     to always fail with ENOSYS.  Some functions are actually named
17703     something starting with __ and the normal name is an alias.  */
17704 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17705 choke me
17706 #else
17707 char (*f) () = shl_load;
17708 #endif
17709 #ifdef __cplusplus
17710 }
17711 #endif
17712
17713 int
17714 main ()
17715 {
17716 return f != shl_load;
17717   ;
17718   return 0;
17719 }
17720 _ACEOF
17721 rm -f conftest.$ac_objext conftest$ac_exeext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17723   (eval $ac_link) 2>conftest.er1
17724   ac_status=$?
17725   grep -v '^ *+' conftest.er1 >conftest.err
17726   rm -f conftest.er1
17727   cat conftest.err >&5
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); } &&
17730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732   (eval $ac_try) 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; } &&
17736          { ac_try='test -s conftest$ac_exeext'
17737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738   (eval $ac_try) 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; }; then
17742   ac_cv_func_shl_load=yes
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747 ac_cv_func_shl_load=no
17748 fi
17749 rm -f conftest.err conftest.$ac_objext \
17750       conftest$ac_exeext conftest.$ac_ext
17751 fi
17752 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17753 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17754 if test $ac_cv_func_shl_load = yes; then
17755   lt_cv_dlopen="shl_load"
17756 else
17757   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17758 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17759 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-ldld  $LIBS"
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770
17771 /* Override any gcc2 internal prototype to avoid an error.  */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 /* We use char because int might match the return type of a gcc2
17776    builtin and then its argument prototype would still apply.  */
17777 char shl_load ();
17778 int
17779 main ()
17780 {
17781 shl_load ();
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788   (eval $ac_link) 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797   (eval $ac_try) 2>&5
17798   ac_status=$?
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }; } &&
17801          { ac_try='test -s conftest$ac_exeext'
17802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803   (eval $ac_try) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }; }; then
17807   ac_cv_lib_dld_shl_load=yes
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 ac_cv_lib_dld_shl_load=no
17813 fi
17814 rm -f conftest.err conftest.$ac_objext \
17815       conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17817 fi
17818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17819 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17820 if test $ac_cv_lib_dld_shl_load = yes; then
17821   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17822 else
17823   echo "$as_me:$LINENO: checking for dlopen" >&5
17824 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17825 if test "${ac_cv_func_dlopen+set}" = set; then
17826   echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17836 #define dlopen innocuous_dlopen
17837
17838 /* System header to define __stub macros and hopefully few prototypes,
17839     which can conflict with char dlopen (); below.
17840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841     <limits.h> exists even on freestanding compilers.  */
17842
17843 #ifdef __STDC__
17844 # include <limits.h>
17845 #else
17846 # include <assert.h>
17847 #endif
17848
17849 #undef dlopen
17850
17851 /* Override any gcc2 internal prototype to avoid an error.  */
17852 #ifdef __cplusplus
17853 extern "C"
17854 {
17855 #endif
17856 /* We use char because int might match the return type of a gcc2
17857    builtin and then its argument prototype would still apply.  */
17858 char dlopen ();
17859 /* The GNU C library defines this for functions which it implements
17860     to always fail with ENOSYS.  Some functions are actually named
17861     something starting with __ and the normal name is an alias.  */
17862 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17863 choke me
17864 #else
17865 char (*f) () = dlopen;
17866 #endif
17867 #ifdef __cplusplus
17868 }
17869 #endif
17870
17871 int
17872 main ()
17873 {
17874 return f != dlopen;
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881   (eval $ac_link) 2>conftest.er1
17882   ac_status=$?
17883   grep -v '^ *+' conftest.er1 >conftest.err
17884   rm -f conftest.er1
17885   cat conftest.err >&5
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } &&
17888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; } &&
17894          { ac_try='test -s conftest$ac_exeext'
17895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896   (eval $ac_try) 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; }; then
17900   ac_cv_func_dlopen=yes
17901 else
17902   echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17904
17905 ac_cv_func_dlopen=no
17906 fi
17907 rm -f conftest.err conftest.$ac_objext \
17908       conftest$ac_exeext conftest.$ac_ext
17909 fi
17910 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17911 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17912 if test $ac_cv_func_dlopen = yes; then
17913   lt_cv_dlopen="dlopen"
17914 else
17915   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17918   echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920   ac_check_lib_save_LIBS=$LIBS
17921 LIBS="-ldl  $LIBS"
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928
17929 /* Override any gcc2 internal prototype to avoid an error.  */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 /* We use char because int might match the return type of a gcc2
17934    builtin and then its argument prototype would still apply.  */
17935 char dlopen ();
17936 int
17937 main ()
17938 {
17939 dlopen ();
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946   (eval $ac_link) 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } &&
17953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955   (eval $ac_try) 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); }; } &&
17959          { ac_try='test -s conftest$ac_exeext'
17960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961   (eval $ac_try) 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; }; then
17965   ac_cv_lib_dl_dlopen=yes
17966 else
17967   echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 ac_cv_lib_dl_dlopen=no
17971 fi
17972 rm -f conftest.err conftest.$ac_objext \
17973       conftest$ac_exeext conftest.$ac_ext
17974 LIBS=$ac_check_lib_save_LIBS
17975 fi
17976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17978 if test $ac_cv_lib_dl_dlopen = yes; then
17979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17980 else
17981   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17984   echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986   ac_check_lib_save_LIBS=$LIBS
17987 LIBS="-lsvld  $LIBS"
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994
17995 /* Override any gcc2 internal prototype to avoid an error.  */
17996 #ifdef __cplusplus
17997 extern "C"
17998 #endif
17999 /* We use char because int might match the return type of a gcc2
18000    builtin and then its argument prototype would still apply.  */
18001 char dlopen ();
18002 int
18003 main ()
18004 {
18005 dlopen ();
18006   ;
18007   return 0;
18008 }
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012   (eval $ac_link) 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } &&
18019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021   (eval $ac_try) 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; } &&
18025          { ac_try='test -s conftest$ac_exeext'
18026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027   (eval $ac_try) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; }; then
18031   ac_cv_lib_svld_dlopen=yes
18032 else
18033   echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 ac_cv_lib_svld_dlopen=no
18037 fi
18038 rm -f conftest.err conftest.$ac_objext \
18039       conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18041 fi
18042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18044 if test $ac_cv_lib_svld_dlopen = yes; then
18045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18046 else
18047   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18050   echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052   ac_check_lib_save_LIBS=$LIBS
18053 LIBS="-ldld  $LIBS"
18054 cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060
18061 /* Override any gcc2 internal prototype to avoid an error.  */
18062 #ifdef __cplusplus
18063 extern "C"
18064 #endif
18065 /* We use char because int might match the return type of a gcc2
18066    builtin and then its argument prototype would still apply.  */
18067 char dld_link ();
18068 int
18069 main ()
18070 {
18071 dld_link ();
18072   ;
18073   return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078   (eval $ac_link) 2>conftest.er1
18079   ac_status=$?
18080   grep -v '^ *+' conftest.er1 >conftest.err
18081   rm -f conftest.er1
18082   cat conftest.err >&5
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } &&
18085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087   (eval $ac_try) 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); }; } &&
18091          { ac_try='test -s conftest$ac_exeext'
18092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093   (eval $ac_try) 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; }; then
18097   ac_cv_lib_dld_dld_link=yes
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 ac_cv_lib_dld_dld_link=no
18103 fi
18104 rm -f conftest.err conftest.$ac_objext \
18105       conftest$ac_exeext conftest.$ac_ext
18106 LIBS=$ac_check_lib_save_LIBS
18107 fi
18108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18109 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18110 if test $ac_cv_lib_dld_dld_link = yes; then
18111   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18112 fi
18113
18114
18115 fi
18116
18117
18118 fi
18119
18120
18121 fi
18122
18123
18124 fi
18125
18126
18127 fi
18128
18129     ;;
18130   esac
18131
18132   if test "x$lt_cv_dlopen" != xno; then
18133     enable_dlopen=yes
18134   else
18135     enable_dlopen=no
18136   fi
18137
18138   case $lt_cv_dlopen in
18139   dlopen)
18140     save_CPPFLAGS="$CPPFLAGS"
18141     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18142
18143     save_LDFLAGS="$LDFLAGS"
18144     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18145
18146     save_LIBS="$LIBS"
18147     LIBS="$lt_cv_dlopen_libs $LIBS"
18148
18149     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18150 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18151 if test "${lt_cv_dlopen_self+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154           if test "$cross_compiling" = yes; then :
18155   lt_cv_dlopen_self=cross
18156 else
18157   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18158   lt_status=$lt_dlunknown
18159   cat > conftest.$ac_ext <<EOF
18160 #line 18160 "configure"
18161 #include "confdefs.h"
18162
18163 #if HAVE_DLFCN_H
18164 #include <dlfcn.h>
18165 #endif
18166
18167 #include <stdio.h>
18168
18169 #ifdef RTLD_GLOBAL
18170 #  define LT_DLGLOBAL           RTLD_GLOBAL
18171 #else
18172 #  ifdef DL_GLOBAL
18173 #    define LT_DLGLOBAL         DL_GLOBAL
18174 #  else
18175 #    define LT_DLGLOBAL         0
18176 #  endif
18177 #endif
18178
18179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18180    find out it does not work in some platform. */
18181 #ifndef LT_DLLAZY_OR_NOW
18182 #  ifdef RTLD_LAZY
18183 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18184 #  else
18185 #    ifdef DL_LAZY
18186 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18187 #    else
18188 #      ifdef RTLD_NOW
18189 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18190 #      else
18191 #        ifdef DL_NOW
18192 #          define LT_DLLAZY_OR_NOW      DL_NOW
18193 #        else
18194 #          define LT_DLLAZY_OR_NOW      0
18195 #        endif
18196 #      endif
18197 #    endif
18198 #  endif
18199 #endif
18200
18201 #ifdef __cplusplus
18202 extern "C" void exit (int);
18203 #endif
18204
18205 void fnord() { int i=42;}
18206 int main ()
18207 {
18208   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18209   int status = $lt_dlunknown;
18210
18211   if (self)
18212     {
18213       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18214       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18215       /* dlclose (self); */
18216     }
18217
18218     exit (status);
18219 }
18220 EOF
18221   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18222   (eval $ac_link) 2>&5
18223   ac_status=$?
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18226     (./conftest; exit; ) 2>/dev/null
18227     lt_status=$?
18228     case x$lt_status in
18229       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18230       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18231       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18232     esac
18233   else :
18234     # compilation failed
18235     lt_cv_dlopen_self=no
18236   fi
18237 fi
18238 rm -fr conftest*
18239
18240
18241 fi
18242 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18243 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18244
18245     if test "x$lt_cv_dlopen_self" = xyes; then
18246       LDFLAGS="$LDFLAGS $link_static_flag"
18247       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18248 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18249 if test "${lt_cv_dlopen_self_static+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252           if test "$cross_compiling" = yes; then :
18253   lt_cv_dlopen_self_static=cross
18254 else
18255   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18256   lt_status=$lt_dlunknown
18257   cat > conftest.$ac_ext <<EOF
18258 #line 18258 "configure"
18259 #include "confdefs.h"
18260
18261 #if HAVE_DLFCN_H
18262 #include <dlfcn.h>
18263 #endif
18264
18265 #include <stdio.h>
18266
18267 #ifdef RTLD_GLOBAL
18268 #  define LT_DLGLOBAL           RTLD_GLOBAL
18269 #else
18270 #  ifdef DL_GLOBAL
18271 #    define LT_DLGLOBAL         DL_GLOBAL
18272 #  else
18273 #    define LT_DLGLOBAL         0
18274 #  endif
18275 #endif
18276
18277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18278    find out it does not work in some platform. */
18279 #ifndef LT_DLLAZY_OR_NOW
18280 #  ifdef RTLD_LAZY
18281 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18282 #  else
18283 #    ifdef DL_LAZY
18284 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18285 #    else
18286 #      ifdef RTLD_NOW
18287 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18288 #      else
18289 #        ifdef DL_NOW
18290 #          define LT_DLLAZY_OR_NOW      DL_NOW
18291 #        else
18292 #          define LT_DLLAZY_OR_NOW      0
18293 #        endif
18294 #      endif
18295 #    endif
18296 #  endif
18297 #endif
18298
18299 #ifdef __cplusplus
18300 extern "C" void exit (int);
18301 #endif
18302
18303 void fnord() { int i=42;}
18304 int main ()
18305 {
18306   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18307   int status = $lt_dlunknown;
18308
18309   if (self)
18310     {
18311       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18312       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18313       /* dlclose (self); */
18314     }
18315
18316     exit (status);
18317 }
18318 EOF
18319   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320   (eval $ac_link) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18324     (./conftest; exit; ) 2>/dev/null
18325     lt_status=$?
18326     case x$lt_status in
18327       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18328       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18329       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18330     esac
18331   else :
18332     # compilation failed
18333     lt_cv_dlopen_self_static=no
18334   fi
18335 fi
18336 rm -fr conftest*
18337
18338
18339 fi
18340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18341 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18342     fi
18343
18344     CPPFLAGS="$save_CPPFLAGS"
18345     LDFLAGS="$save_LDFLAGS"
18346     LIBS="$save_LIBS"
18347     ;;
18348   esac
18349
18350   case $lt_cv_dlopen_self in
18351   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18352   *) enable_dlopen_self=unknown ;;
18353   esac
18354
18355   case $lt_cv_dlopen_self_static in
18356   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18357   *) enable_dlopen_self_static=unknown ;;
18358   esac
18359 fi
18360
18361
18362 # The else clause should only fire when bootstrapping the
18363 # libtool distribution, otherwise you forgot to ship ltmain.sh
18364 # with your package, and you will get complaints that there are
18365 # no rules to generate ltmain.sh.
18366 if test -f "$ltmain"; then
18367   # See if we are running on zsh, and set the options which allow our commands through
18368   # without removal of \ escapes.
18369   if test -n "${ZSH_VERSION+set}" ; then
18370     setopt NO_GLOB_SUBST
18371   fi
18372   # Now quote all the things that may contain metacharacters while being
18373   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18374   # variables and quote the copies for generation of the libtool script.
18375   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18376     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18377     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18378     deplibs_check_method reload_flag reload_cmds need_locks \
18379     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18380     lt_cv_sys_global_symbol_to_c_name_address \
18381     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18382     old_postinstall_cmds old_postuninstall_cmds \
18383     compiler_GCJ \
18384     CC_GCJ \
18385     LD_GCJ \
18386     lt_prog_compiler_wl_GCJ \
18387     lt_prog_compiler_pic_GCJ \
18388     lt_prog_compiler_static_GCJ \
18389     lt_prog_compiler_no_builtin_flag_GCJ \
18390     export_dynamic_flag_spec_GCJ \
18391     thread_safe_flag_spec_GCJ \
18392     whole_archive_flag_spec_GCJ \
18393     enable_shared_with_static_runtimes_GCJ \
18394     old_archive_cmds_GCJ \
18395     old_archive_from_new_cmds_GCJ \
18396     predep_objects_GCJ \
18397     postdep_objects_GCJ \
18398     predeps_GCJ \
18399     postdeps_GCJ \
18400     compiler_lib_search_path_GCJ \
18401     archive_cmds_GCJ \
18402     archive_expsym_cmds_GCJ \
18403     postinstall_cmds_GCJ \
18404     postuninstall_cmds_GCJ \
18405     old_archive_from_expsyms_cmds_GCJ \
18406     allow_undefined_flag_GCJ \
18407     no_undefined_flag_GCJ \
18408     export_symbols_cmds_GCJ \
18409     hardcode_libdir_flag_spec_GCJ \
18410     hardcode_libdir_flag_spec_ld_GCJ \
18411     hardcode_libdir_separator_GCJ \
18412     hardcode_automatic_GCJ \
18413     module_cmds_GCJ \
18414     module_expsym_cmds_GCJ \
18415     lt_cv_prog_compiler_c_o_GCJ \
18416     exclude_expsyms_GCJ \
18417     include_expsyms_GCJ; do
18418
18419     case $var in
18420     old_archive_cmds_GCJ | \
18421     old_archive_from_new_cmds_GCJ | \
18422     archive_cmds_GCJ | \
18423     archive_expsym_cmds_GCJ | \
18424     module_cmds_GCJ | \
18425     module_expsym_cmds_GCJ | \
18426     old_archive_from_expsyms_cmds_GCJ | \
18427     export_symbols_cmds_GCJ | \
18428     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18429     postinstall_cmds | postuninstall_cmds | \
18430     old_postinstall_cmds | old_postuninstall_cmds | \
18431     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18432       # Double-quote double-evaled strings.
18433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18434       ;;
18435     *)
18436       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18437       ;;
18438     esac
18439   done
18440
18441   case $lt_echo in
18442   *'\$0 --fallback-echo"')
18443     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18444     ;;
18445   esac
18446
18447 cfgfile="$ofile"
18448
18449   cat <<__EOF__ >> "$cfgfile"
18450 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18451
18452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18453
18454 # Shell to use when invoking shell scripts.
18455 SHELL=$lt_SHELL
18456
18457 # Whether or not to build shared libraries.
18458 build_libtool_libs=$enable_shared
18459
18460 # Whether or not to build static libraries.
18461 build_old_libs=$enable_static
18462
18463 # Whether or not to add -lc for building shared libraries.
18464 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18465
18466 # Whether or not to disallow shared libs when runtime libs are static
18467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18468
18469 # Whether or not to optimize for fast installation.
18470 fast_install=$enable_fast_install
18471
18472 # The host system.
18473 host_alias=$host_alias
18474 host=$host
18475
18476 # An echo program that does not interpret backslashes.
18477 echo=$lt_echo
18478
18479 # The archiver.
18480 AR=$lt_AR
18481 AR_FLAGS=$lt_AR_FLAGS
18482
18483 # A C compiler.
18484 LTCC=$lt_LTCC
18485
18486 # A language-specific compiler.
18487 CC=$lt_compiler_GCJ
18488
18489 # Is the compiler the GNU C compiler?
18490 with_gcc=$GCC_GCJ
18491
18492 # An ERE matcher.
18493 EGREP=$lt_EGREP
18494
18495 # The linker used to build libraries.
18496 LD=$lt_LD_GCJ
18497
18498 # Whether we need hard or soft links.
18499 LN_S=$lt_LN_S
18500
18501 # A BSD-compatible nm program.
18502 NM=$lt_NM
18503
18504 # A symbol stripping program
18505 STRIP=$STRIP
18506
18507 # Used to examine libraries when file_magic_cmd begins "file"
18508 MAGIC_CMD=$MAGIC_CMD
18509
18510 # Used on cygwin: DLL creation program.
18511 DLLTOOL="$DLLTOOL"
18512
18513 # Used on cygwin: object dumper.
18514 OBJDUMP="$OBJDUMP"
18515
18516 # Used on cygwin: assembler.
18517 AS="$AS"
18518
18519 # The name of the directory that contains temporary libtool files.
18520 objdir=$objdir
18521
18522 # How to create reloadable object files.
18523 reload_flag=$lt_reload_flag
18524 reload_cmds=$lt_reload_cmds
18525
18526 # How to pass a linker flag through the compiler.
18527 wl=$lt_lt_prog_compiler_wl_GCJ
18528
18529 # Object file suffix (normally "o").
18530 objext="$ac_objext"
18531
18532 # Old archive suffix (normally "a").
18533 libext="$libext"
18534
18535 # Shared library suffix (normally ".so").
18536 shrext='$shrext'
18537
18538 # Executable file suffix (normally "").
18539 exeext="$exeext"
18540
18541 # Additional compiler flags for building library objects.
18542 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18543 pic_mode=$pic_mode
18544
18545 # What is the maximum length of a command?
18546 max_cmd_len=$lt_cv_sys_max_cmd_len
18547
18548 # Does compiler simultaneously support -c and -o options?
18549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18550
18551 # Must we lock files when doing compilation ?
18552 need_locks=$lt_need_locks
18553
18554 # Do we need the lib prefix for modules?
18555 need_lib_prefix=$need_lib_prefix
18556
18557 # Do we need a version for libraries?
18558 need_version=$need_version
18559
18560 # Whether dlopen is supported.
18561 dlopen_support=$enable_dlopen
18562
18563 # Whether dlopen of programs is supported.
18564 dlopen_self=$enable_dlopen_self
18565
18566 # Whether dlopen of statically linked programs is supported.
18567 dlopen_self_static=$enable_dlopen_self_static
18568
18569 # Compiler flag to prevent dynamic linking.
18570 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18571
18572 # Compiler flag to turn off builtin functions.
18573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18574
18575 # Compiler flag to allow reflexive dlopens.
18576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18577
18578 # Compiler flag to generate shared objects directly from archives.
18579 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18580
18581 # Compiler flag to generate thread-safe objects.
18582 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18583
18584 # Library versioning type.
18585 version_type=$version_type
18586
18587 # Format of library name prefix.
18588 libname_spec=$lt_libname_spec
18589
18590 # List of archive names.  First name is the real one, the rest are links.
18591 # The last name is the one that the linker finds with -lNAME.
18592 library_names_spec=$lt_library_names_spec
18593
18594 # The coded name of the library, if different from the real name.
18595 soname_spec=$lt_soname_spec
18596
18597 # Commands used to build and install an old-style archive.
18598 RANLIB=$lt_RANLIB
18599 old_archive_cmds=$lt_old_archive_cmds_GCJ
18600 old_postinstall_cmds=$lt_old_postinstall_cmds
18601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18602
18603 # Create an old-style archive from a shared archive.
18604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18605
18606 # Create a temporary old-style archive to link instead of a shared archive.
18607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18608
18609 # Commands used to build and install a shared archive.
18610 archive_cmds=$lt_archive_cmds_GCJ
18611 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18612 postinstall_cmds=$lt_postinstall_cmds
18613 postuninstall_cmds=$lt_postuninstall_cmds
18614
18615 # Commands used to build a loadable module (assumed same as above if empty)
18616 module_cmds=$lt_module_cmds_GCJ
18617 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18618
18619 # Commands to strip libraries.
18620 old_striplib=$lt_old_striplib
18621 striplib=$lt_striplib
18622
18623 # Dependencies to place before the objects being linked to create a
18624 # shared library.
18625 predep_objects=$lt_predep_objects_GCJ
18626
18627 # Dependencies to place after the objects being linked to create a
18628 # shared library.
18629 postdep_objects=$lt_postdep_objects_GCJ
18630
18631 # Dependencies to place before the objects being linked to create a
18632 # shared library.
18633 predeps=$lt_predeps_GCJ
18634
18635 # Dependencies to place after the objects being linked to create a
18636 # shared library.
18637 postdeps=$lt_postdeps_GCJ
18638
18639 # The library search path used internally by the compiler when linking
18640 # a shared library.
18641 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18642
18643 # Method to check whether dependent libraries are shared objects.
18644 deplibs_check_method=$lt_deplibs_check_method
18645
18646 # Command to use when deplibs_check_method == file_magic.
18647 file_magic_cmd=$lt_file_magic_cmd
18648
18649 # Flag that allows shared libraries with undefined symbols to be built.
18650 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18651
18652 # Flag that forces no undefined symbols.
18653 no_undefined_flag=$lt_no_undefined_flag_GCJ
18654
18655 # Commands used to finish a libtool library installation in a directory.
18656 finish_cmds=$lt_finish_cmds
18657
18658 # Same as above, but a single script fragment to be evaled but not shown.
18659 finish_eval=$lt_finish_eval
18660
18661 # Take the output of nm and produce a listing of raw symbols and C names.
18662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18663
18664 # Transform the output of nm in a proper C declaration
18665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18666
18667 # Transform the output of nm in a C name address pair
18668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18669
18670 # This is the shared library runtime path variable.
18671 runpath_var=$runpath_var
18672
18673 # This is the shared library path variable.
18674 shlibpath_var=$shlibpath_var
18675
18676 # Is shlibpath searched before the hard-coded library search path?
18677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18678
18679 # How to hardcode a shared library path into an executable.
18680 hardcode_action=$hardcode_action_GCJ
18681
18682 # Whether we should hardcode library paths into libraries.
18683 hardcode_into_libs=$hardcode_into_libs
18684
18685 # Flag to hardcode \$libdir into a binary during linking.
18686 # This must work even if \$libdir does not exist.
18687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18688
18689 # If ld is used when linking, flag to hardcode \$libdir into
18690 # a binary during linking. This must work even if \$libdir does
18691 # not exist.
18692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18693
18694 # Whether we need a single -rpath flag with a separated argument.
18695 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18696
18697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18698 # resulting binary.
18699 hardcode_direct=$hardcode_direct_GCJ
18700
18701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18702 # resulting binary.
18703 hardcode_minus_L=$hardcode_minus_L_GCJ
18704
18705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18706 # the resulting binary.
18707 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18708
18709 # Set to yes if building a shared library automatically hardcodes DIR into the library
18710 # and all subsequent libraries and executables linked against it.
18711 hardcode_automatic=$hardcode_automatic_GCJ
18712
18713 # Variables whose values should be saved in libtool wrapper scripts and
18714 # restored at relink time.
18715 variables_saved_for_relink="$variables_saved_for_relink"
18716
18717 # Whether libtool must link a program against all its dependency libraries.
18718 link_all_deplibs=$link_all_deplibs_GCJ
18719
18720 # Compile-time system search path for libraries
18721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18722
18723 # Run-time system search path for libraries
18724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18725
18726 # Fix the shell variable \$srcfile for the compiler.
18727 fix_srcfile_path="$fix_srcfile_path_GCJ"
18728
18729 # Set to yes if exported symbols are required.
18730 always_export_symbols=$always_export_symbols_GCJ
18731
18732 # The commands to list exported symbols.
18733 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18734
18735 # The commands to extract the exported symbol list from a shared archive.
18736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18737
18738 # Symbols that should not be listed in the preloaded symbols.
18739 exclude_expsyms=$lt_exclude_expsyms_GCJ
18740
18741 # Symbols that must always be exported.
18742 include_expsyms=$lt_include_expsyms_GCJ
18743
18744 # ### END LIBTOOL TAG CONFIG: $tagname
18745
18746 __EOF__
18747
18748
18749 else
18750   # If there is no Makefile yet, we rely on a make rule to execute
18751   # `config.status --recheck' to rerun these tests and create the
18752   # libtool script then.
18753   test -f Makefile && make "$ltmain"
18754 fi
18755
18756
18757 ac_ext=c
18758 ac_cpp='$CPP $CPPFLAGS'
18759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18762
18763 CC="$lt_save_CC"
18764
18765         else
18766           tagname=""
18767         fi
18768         ;;
18769
18770       RC)
18771
18772
18773
18774 # Source file extension for RC test sources.
18775 ac_ext=rc
18776
18777 # Object file extension for compiled RC test sources.
18778 objext=o
18779 objext_RC=$objext
18780
18781 # Code to be used in simple compile tests
18782 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18783
18784 # Code to be used in simple link tests
18785 lt_simple_link_test_code="$lt_simple_compile_test_code"
18786
18787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18788
18789 # If no C compiler was specified, use CC.
18790 LTCC=${LTCC-"$CC"}
18791
18792 # Allow CC to be a program name with arguments.
18793 compiler=$CC
18794
18795
18796 # Allow CC to be a program name with arguments.
18797 lt_save_CC="$CC"
18798 CC=${RC-"windres"}
18799 compiler=$CC
18800 compiler_RC=$CC
18801 lt_cv_prog_compiler_c_o_RC=yes
18802
18803 # The else clause should only fire when bootstrapping the
18804 # libtool distribution, otherwise you forgot to ship ltmain.sh
18805 # with your package, and you will get complaints that there are
18806 # no rules to generate ltmain.sh.
18807 if test -f "$ltmain"; then
18808   # See if we are running on zsh, and set the options which allow our commands through
18809   # without removal of \ escapes.
18810   if test -n "${ZSH_VERSION+set}" ; then
18811     setopt NO_GLOB_SUBST
18812   fi
18813   # Now quote all the things that may contain metacharacters while being
18814   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18815   # variables and quote the copies for generation of the libtool script.
18816   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18817     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18818     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18819     deplibs_check_method reload_flag reload_cmds need_locks \
18820     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18821     lt_cv_sys_global_symbol_to_c_name_address \
18822     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18823     old_postinstall_cmds old_postuninstall_cmds \
18824     compiler_RC \
18825     CC_RC \
18826     LD_RC \
18827     lt_prog_compiler_wl_RC \
18828     lt_prog_compiler_pic_RC \
18829     lt_prog_compiler_static_RC \
18830     lt_prog_compiler_no_builtin_flag_RC \
18831     export_dynamic_flag_spec_RC \
18832     thread_safe_flag_spec_RC \
18833     whole_archive_flag_spec_RC \
18834     enable_shared_with_static_runtimes_RC \
18835     old_archive_cmds_RC \
18836     old_archive_from_new_cmds_RC \
18837     predep_objects_RC \
18838     postdep_objects_RC \
18839     predeps_RC \
18840     postdeps_RC \
18841     compiler_lib_search_path_RC \
18842     archive_cmds_RC \
18843     archive_expsym_cmds_RC \
18844     postinstall_cmds_RC \
18845     postuninstall_cmds_RC \
18846     old_archive_from_expsyms_cmds_RC \
18847     allow_undefined_flag_RC \
18848     no_undefined_flag_RC \
18849     export_symbols_cmds_RC \
18850     hardcode_libdir_flag_spec_RC \
18851     hardcode_libdir_flag_spec_ld_RC \
18852     hardcode_libdir_separator_RC \
18853     hardcode_automatic_RC \
18854     module_cmds_RC \
18855     module_expsym_cmds_RC \
18856     lt_cv_prog_compiler_c_o_RC \
18857     exclude_expsyms_RC \
18858     include_expsyms_RC; do
18859
18860     case $var in
18861     old_archive_cmds_RC | \
18862     old_archive_from_new_cmds_RC | \
18863     archive_cmds_RC | \
18864     archive_expsym_cmds_RC | \
18865     module_cmds_RC | \
18866     module_expsym_cmds_RC | \
18867     old_archive_from_expsyms_cmds_RC | \
18868     export_symbols_cmds_RC | \
18869     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18870     postinstall_cmds | postuninstall_cmds | \
18871     old_postinstall_cmds | old_postuninstall_cmds | \
18872     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18873       # Double-quote double-evaled strings.
18874       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18875       ;;
18876     *)
18877       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18878       ;;
18879     esac
18880   done
18881
18882   case $lt_echo in
18883   *'\$0 --fallback-echo"')
18884     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18885     ;;
18886   esac
18887
18888 cfgfile="$ofile"
18889
18890   cat <<__EOF__ >> "$cfgfile"
18891 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18892
18893 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18894
18895 # Shell to use when invoking shell scripts.
18896 SHELL=$lt_SHELL
18897
18898 # Whether or not to build shared libraries.
18899 build_libtool_libs=$enable_shared
18900
18901 # Whether or not to build static libraries.
18902 build_old_libs=$enable_static
18903
18904 # Whether or not to add -lc for building shared libraries.
18905 build_libtool_need_lc=$archive_cmds_need_lc_RC
18906
18907 # Whether or not to disallow shared libs when runtime libs are static
18908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18909
18910 # Whether or not to optimize for fast installation.
18911 fast_install=$enable_fast_install
18912
18913 # The host system.
18914 host_alias=$host_alias
18915 host=$host
18916
18917 # An echo program that does not interpret backslashes.
18918 echo=$lt_echo
18919
18920 # The archiver.
18921 AR=$lt_AR
18922 AR_FLAGS=$lt_AR_FLAGS
18923
18924 # A C compiler.
18925 LTCC=$lt_LTCC
18926
18927 # A language-specific compiler.
18928 CC=$lt_compiler_RC
18929
18930 # Is the compiler the GNU C compiler?
18931 with_gcc=$GCC_RC
18932
18933 # An ERE matcher.
18934 EGREP=$lt_EGREP
18935
18936 # The linker used to build libraries.
18937 LD=$lt_LD_RC
18938
18939 # Whether we need hard or soft links.
18940 LN_S=$lt_LN_S
18941
18942 # A BSD-compatible nm program.
18943 NM=$lt_NM
18944
18945 # A symbol stripping program
18946 STRIP=$STRIP
18947
18948 # Used to examine libraries when file_magic_cmd begins "file"
18949 MAGIC_CMD=$MAGIC_CMD
18950
18951 # Used on cygwin: DLL creation program.
18952 DLLTOOL="$DLLTOOL"
18953
18954 # Used on cygwin: object dumper.
18955 OBJDUMP="$OBJDUMP"
18956
18957 # Used on cygwin: assembler.
18958 AS="$AS"
18959
18960 # The name of the directory that contains temporary libtool files.
18961 objdir=$objdir
18962
18963 # How to create reloadable object files.
18964 reload_flag=$lt_reload_flag
18965 reload_cmds=$lt_reload_cmds
18966
18967 # How to pass a linker flag through the compiler.
18968 wl=$lt_lt_prog_compiler_wl_RC
18969
18970 # Object file suffix (normally "o").
18971 objext="$ac_objext"
18972
18973 # Old archive suffix (normally "a").
18974 libext="$libext"
18975
18976 # Shared library suffix (normally ".so").
18977 shrext='$shrext'
18978
18979 # Executable file suffix (normally "").
18980 exeext="$exeext"
18981
18982 # Additional compiler flags for building library objects.
18983 pic_flag=$lt_lt_prog_compiler_pic_RC
18984 pic_mode=$pic_mode
18985
18986 # What is the maximum length of a command?
18987 max_cmd_len=$lt_cv_sys_max_cmd_len
18988
18989 # Does compiler simultaneously support -c and -o options?
18990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18991
18992 # Must we lock files when doing compilation ?
18993 need_locks=$lt_need_locks
18994
18995 # Do we need the lib prefix for modules?
18996 need_lib_prefix=$need_lib_prefix
18997
18998 # Do we need a version for libraries?
18999 need_version=$need_version
19000
19001 # Whether dlopen is supported.
19002 dlopen_support=$enable_dlopen
19003
19004 # Whether dlopen of programs is supported.
19005 dlopen_self=$enable_dlopen_self
19006
19007 # Whether dlopen of statically linked programs is supported.
19008 dlopen_self_static=$enable_dlopen_self_static
19009
19010 # Compiler flag to prevent dynamic linking.
19011 link_static_flag=$lt_lt_prog_compiler_static_RC
19012
19013 # Compiler flag to turn off builtin functions.
19014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19015
19016 # Compiler flag to allow reflexive dlopens.
19017 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19018
19019 # Compiler flag to generate shared objects directly from archives.
19020 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19021
19022 # Compiler flag to generate thread-safe objects.
19023 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19024
19025 # Library versioning type.
19026 version_type=$version_type
19027
19028 # Format of library name prefix.
19029 libname_spec=$lt_libname_spec
19030
19031 # List of archive names.  First name is the real one, the rest are links.
19032 # The last name is the one that the linker finds with -lNAME.
19033 library_names_spec=$lt_library_names_spec
19034
19035 # The coded name of the library, if different from the real name.
19036 soname_spec=$lt_soname_spec
19037
19038 # Commands used to build and install an old-style archive.
19039 RANLIB=$lt_RANLIB
19040 old_archive_cmds=$lt_old_archive_cmds_RC
19041 old_postinstall_cmds=$lt_old_postinstall_cmds
19042 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19043
19044 # Create an old-style archive from a shared archive.
19045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19046
19047 # Create a temporary old-style archive to link instead of a shared archive.
19048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19049
19050 # Commands used to build and install a shared archive.
19051 archive_cmds=$lt_archive_cmds_RC
19052 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19053 postinstall_cmds=$lt_postinstall_cmds
19054 postuninstall_cmds=$lt_postuninstall_cmds
19055
19056 # Commands used to build a loadable module (assumed same as above if empty)
19057 module_cmds=$lt_module_cmds_RC
19058 module_expsym_cmds=$lt_module_expsym_cmds_RC
19059
19060 # Commands to strip libraries.
19061 old_striplib=$lt_old_striplib
19062 striplib=$lt_striplib
19063
19064 # Dependencies to place before the objects being linked to create a
19065 # shared library.
19066 predep_objects=$lt_predep_objects_RC
19067
19068 # Dependencies to place after the objects being linked to create a
19069 # shared library.
19070 postdep_objects=$lt_postdep_objects_RC
19071
19072 # Dependencies to place before the objects being linked to create a
19073 # shared library.
19074 predeps=$lt_predeps_RC
19075
19076 # Dependencies to place after the objects being linked to create a
19077 # shared library.
19078 postdeps=$lt_postdeps_RC
19079
19080 # The library search path used internally by the compiler when linking
19081 # a shared library.
19082 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19083
19084 # Method to check whether dependent libraries are shared objects.
19085 deplibs_check_method=$lt_deplibs_check_method
19086
19087 # Command to use when deplibs_check_method == file_magic.
19088 file_magic_cmd=$lt_file_magic_cmd
19089
19090 # Flag that allows shared libraries with undefined symbols to be built.
19091 allow_undefined_flag=$lt_allow_undefined_flag_RC
19092
19093 # Flag that forces no undefined symbols.
19094 no_undefined_flag=$lt_no_undefined_flag_RC
19095
19096 # Commands used to finish a libtool library installation in a directory.
19097 finish_cmds=$lt_finish_cmds
19098
19099 # Same as above, but a single script fragment to be evaled but not shown.
19100 finish_eval=$lt_finish_eval
19101
19102 # Take the output of nm and produce a listing of raw symbols and C names.
19103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19104
19105 # Transform the output of nm in a proper C declaration
19106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19107
19108 # Transform the output of nm in a C name address pair
19109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19110
19111 # This is the shared library runtime path variable.
19112 runpath_var=$runpath_var
19113
19114 # This is the shared library path variable.
19115 shlibpath_var=$shlibpath_var
19116
19117 # Is shlibpath searched before the hard-coded library search path?
19118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19119
19120 # How to hardcode a shared library path into an executable.
19121 hardcode_action=$hardcode_action_RC
19122
19123 # Whether we should hardcode library paths into libraries.
19124 hardcode_into_libs=$hardcode_into_libs
19125
19126 # Flag to hardcode \$libdir into a binary during linking.
19127 # This must work even if \$libdir does not exist.
19128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19129
19130 # If ld is used when linking, flag to hardcode \$libdir into
19131 # a binary during linking. This must work even if \$libdir does
19132 # not exist.
19133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19134
19135 # Whether we need a single -rpath flag with a separated argument.
19136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19137
19138 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19139 # resulting binary.
19140 hardcode_direct=$hardcode_direct_RC
19141
19142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19143 # resulting binary.
19144 hardcode_minus_L=$hardcode_minus_L_RC
19145
19146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19147 # the resulting binary.
19148 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19149
19150 # Set to yes if building a shared library automatically hardcodes DIR into the library
19151 # and all subsequent libraries and executables linked against it.
19152 hardcode_automatic=$hardcode_automatic_RC
19153
19154 # Variables whose values should be saved in libtool wrapper scripts and
19155 # restored at relink time.
19156 variables_saved_for_relink="$variables_saved_for_relink"
19157
19158 # Whether libtool must link a program against all its dependency libraries.
19159 link_all_deplibs=$link_all_deplibs_RC
19160
19161 # Compile-time system search path for libraries
19162 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19163
19164 # Run-time system search path for libraries
19165 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19166
19167 # Fix the shell variable \$srcfile for the compiler.
19168 fix_srcfile_path="$fix_srcfile_path_RC"
19169
19170 # Set to yes if exported symbols are required.
19171 always_export_symbols=$always_export_symbols_RC
19172
19173 # The commands to list exported symbols.
19174 export_symbols_cmds=$lt_export_symbols_cmds_RC
19175
19176 # The commands to extract the exported symbol list from a shared archive.
19177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19178
19179 # Symbols that should not be listed in the preloaded symbols.
19180 exclude_expsyms=$lt_exclude_expsyms_RC
19181
19182 # Symbols that must always be exported.
19183 include_expsyms=$lt_include_expsyms_RC
19184
19185 # ### END LIBTOOL TAG CONFIG: $tagname
19186
19187 __EOF__
19188
19189
19190 else
19191   # If there is no Makefile yet, we rely on a make rule to execute
19192   # `config.status --recheck' to rerun these tests and create the
19193   # libtool script then.
19194   test -f Makefile && make "$ltmain"
19195 fi
19196
19197
19198 ac_ext=c
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19203
19204 CC="$lt_save_CC"
19205
19206         ;;
19207
19208       *)
19209         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19210 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19211    { (exit 1); exit 1; }; }
19212         ;;
19213       esac
19214
19215       # Append the new tag name to the list of available tags.
19216       if test -n "$tagname" ; then
19217       available_tags="$available_tags $tagname"
19218     fi
19219     fi
19220   done
19221   IFS="$lt_save_ifs"
19222
19223   # Now substitute the updated list of available tags.
19224   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19225     mv "${ofile}T" "$ofile"
19226     chmod +x "$ofile"
19227   else
19228     rm -f "${ofile}T"
19229     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19230 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19231    { (exit 1); exit 1; }; }
19232   fi
19233 fi
19234
19235
19236
19237 # This can be used to rebuild libtool when needed
19238 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19239
19240 # Always use our own libtool.
19241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19242
19243 # Prevent multiple expansion
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271 ac_header_dirent=no
19272 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19273   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19274 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19275 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19277   echo $ECHO_N "(cached) $ECHO_C" >&6
19278 else
19279   cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 #include <sys/types.h>
19286 #include <$ac_hdr>
19287
19288 int
19289 main ()
19290 {
19291 if ((DIR *) 0)
19292 return 0;
19293   ;
19294   return 0;
19295 }
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299   (eval $ac_compile) 2>conftest.er1
19300   ac_status=$?
19301   grep -v '^ *+' conftest.er1 >conftest.err
19302   rm -f conftest.er1
19303   cat conftest.err >&5
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); } &&
19306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; } &&
19312          { ac_try='test -s conftest.$ac_objext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   eval "$as_ac_Header=yes"
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323 eval "$as_ac_Header=no"
19324 fi
19325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19326 fi
19327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19330   cat >>confdefs.h <<_ACEOF
19331 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19332 _ACEOF
19333
19334 ac_header_dirent=$ac_hdr; break
19335 fi
19336
19337 done
19338 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19339 if test $ac_header_dirent = dirent.h; then
19340   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19341 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19342 if test "${ac_cv_search_opendir+set}" = set; then
19343   echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345   ac_func_search_save_LIBS=$LIBS
19346 ac_cv_search_opendir=no
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353
19354 /* Override any gcc2 internal prototype to avoid an error.  */
19355 #ifdef __cplusplus
19356 extern "C"
19357 #endif
19358 /* We use char because int might match the return type of a gcc2
19359    builtin and then its argument prototype would still apply.  */
19360 char opendir ();
19361 int
19362 main ()
19363 {
19364 opendir ();
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19371   (eval $ac_link) 2>conftest.er1
19372   ac_status=$?
19373   grep -v '^ *+' conftest.er1 >conftest.err
19374   rm -f conftest.er1
19375   cat conftest.err >&5
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); } &&
19378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380   (eval $ac_try) 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; } &&
19384          { ac_try='test -s conftest$ac_exeext'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_cv_search_opendir="none required"
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 fi
19396 rm -f conftest.err conftest.$ac_objext \
19397       conftest$ac_exeext conftest.$ac_ext
19398 if test "$ac_cv_search_opendir" = no; then
19399   for ac_lib in dir; do
19400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19401     cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407
19408 /* Override any gcc2 internal prototype to avoid an error.  */
19409 #ifdef __cplusplus
19410 extern "C"
19411 #endif
19412 /* We use char because int might match the return type of a gcc2
19413    builtin and then its argument prototype would still apply.  */
19414 char opendir ();
19415 int
19416 main ()
19417 {
19418 opendir ();
19419   ;
19420   return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425   (eval $ac_link) 2>conftest.er1
19426   ac_status=$?
19427   grep -v '^ *+' conftest.er1 >conftest.err
19428   rm -f conftest.er1
19429   cat conftest.err >&5
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); } &&
19432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; } &&
19438          { ac_try='test -s conftest$ac_exeext'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; }; then
19444   ac_cv_search_opendir="-l$ac_lib"
19445 break
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 fi
19451 rm -f conftest.err conftest.$ac_objext \
19452       conftest$ac_exeext conftest.$ac_ext
19453   done
19454 fi
19455 LIBS=$ac_func_search_save_LIBS
19456 fi
19457 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19458 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19459 if test "$ac_cv_search_opendir" != no; then
19460   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19461
19462 fi
19463
19464 else
19465   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19466 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19467 if test "${ac_cv_search_opendir+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   ac_func_search_save_LIBS=$LIBS
19471 ac_cv_search_opendir=no
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478
19479 /* Override any gcc2 internal prototype to avoid an error.  */
19480 #ifdef __cplusplus
19481 extern "C"
19482 #endif
19483 /* We use char because int might match the return type of a gcc2
19484    builtin and then its argument prototype would still apply.  */
19485 char opendir ();
19486 int
19487 main ()
19488 {
19489 opendir ();
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19496   (eval $ac_link) 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } &&
19503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505   (eval $ac_try) 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; } &&
19509          { ac_try='test -s conftest$ac_exeext'
19510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511   (eval $ac_try) 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; }; then
19515   ac_cv_search_opendir="none required"
19516 else
19517   echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19519
19520 fi
19521 rm -f conftest.err conftest.$ac_objext \
19522       conftest$ac_exeext conftest.$ac_ext
19523 if test "$ac_cv_search_opendir" = no; then
19524   for ac_lib in x; do
19525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19526     cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532
19533 /* Override any gcc2 internal prototype to avoid an error.  */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char opendir ();
19540 int
19541 main ()
19542 {
19543 opendir ();
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550   (eval $ac_link) 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } &&
19557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559   (eval $ac_try) 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; } &&
19563          { ac_try='test -s conftest$ac_exeext'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   ac_cv_search_opendir="-l$ac_lib"
19570 break
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 fi
19576 rm -f conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578   done
19579 fi
19580 LIBS=$ac_func_search_save_LIBS
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19583 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19584 if test "$ac_cv_search_opendir" != no; then
19585   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19586
19587 fi
19588
19589 fi
19590
19591 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19592 if test "${enable_ltdl_install+set}" = set; then
19593   enableval="$enable_ltdl_install"
19594
19595 fi;
19596
19597
19598
19599 if test x"${enable_ltdl_install-no}" != xno; then
19600   INSTALL_LTDL_TRUE=
19601   INSTALL_LTDL_FALSE='#'
19602 else
19603   INSTALL_LTDL_TRUE='#'
19604   INSTALL_LTDL_FALSE=
19605 fi
19606
19607
19608
19609 if test x"${enable_ltdl_convenience-no}" != xno; then
19610   CONVENIENCE_LTDL_TRUE=
19611   CONVENIENCE_LTDL_FALSE='#'
19612 else
19613   CONVENIENCE_LTDL_TRUE='#'
19614   CONVENIENCE_LTDL_FALSE=
19615 fi
19616
19617
19618
19619 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19620 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19621 if test "${libltdl_cv_shlibext+set}" = set; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624
19625 # Here in libltdl for libgcj we don't build modules for darwin.
19626 # So we say no. Then the extension gets .dylib which is the right
19627 # thing for shared libraries on darwin.
19628 case "$host_os" in
19629 darwin*)
19630         module=no
19631         ;;
19632 *)
19633         module=yes
19634         ;;
19635 esac
19636 eval libltdl_cv_shlibext=$shrext
19637
19638 fi
19639 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19640 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19641 if test -n "$libltdl_cv_shlibext"; then
19642
19643 cat >>confdefs.h <<_ACEOF
19644 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19645 _ACEOF
19646
19647 fi
19648
19649
19650 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19651 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19652 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655   libltdl_cv_shlibpath_var="$shlibpath_var"
19656 fi
19657 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19658 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19659 if test -n "$libltdl_cv_shlibpath_var"; then
19660
19661 cat >>confdefs.h <<_ACEOF
19662 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19663 _ACEOF
19664
19665 fi
19666
19667
19668 echo "$as_me:$LINENO: checking for the default library search path" >&5
19669 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19670 if test "${libltdl_cv_sys_search_path+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19674 fi
19675 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19676 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19677 if test -n "$libltdl_cv_sys_search_path"; then
19678   sys_search_path=
19679   for dir in $libltdl_cv_sys_search_path; do
19680     if test -z "$sys_search_path"; then
19681       sys_search_path="$dir"
19682     else
19683       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19684     fi
19685   done
19686
19687 cat >>confdefs.h <<_ACEOF
19688 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19689 _ACEOF
19690
19691 fi
19692
19693 echo "$as_me:$LINENO: checking for objdir" >&5
19694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19695 if test "${libltdl_cv_objdir+set}" = set; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   libltdl_cv_objdir="$objdir"
19699   if test -n "$objdir"; then
19700     :
19701   else
19702     rm -f .libs 2>/dev/null
19703     mkdir .libs 2>/dev/null
19704     if test -d .libs; then
19705       libltdl_cv_objdir=.libs
19706     else
19707       # MS-DOS does not allow filenames that begin with a dot.
19708       libltdl_cv_objdir=_libs
19709     fi
19710   rmdir .libs 2>/dev/null
19711   fi
19712
19713 fi
19714 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19715 echo "${ECHO_T}$libltdl_cv_objdir" >&6
19716
19717 cat >>confdefs.h <<_ACEOF
19718 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19719 _ACEOF
19720
19721
19722
19723 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19724 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19725 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19729     libltdl_cv_preloaded_symbols=yes
19730   else
19731     libltdl_cv_preloaded_symbols=no
19732   fi
19733
19734 fi
19735 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19736 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19737 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19738
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_PRELOADED_SYMBOLS 1
19741 _ACEOF
19742
19743 fi
19744
19745 LIBADD_DL=
19746
19747 ac_ext=c
19748 ac_cpp='$CPP $CPPFLAGS'
19749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19752
19753
19754 echo "$as_me:$LINENO: checking for shl_load" >&5
19755 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19756 if test "${ac_cv_func_shl_load+set}" = set; then
19757   echo $ECHO_N "(cached) $ECHO_C" >&6
19758 else
19759   cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19767 #define shl_load innocuous_shl_load
19768
19769 /* System header to define __stub macros and hopefully few prototypes,
19770     which can conflict with char shl_load (); below.
19771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19772     <limits.h> exists even on freestanding compilers.  */
19773
19774 #ifdef __STDC__
19775 # include <limits.h>
19776 #else
19777 # include <assert.h>
19778 #endif
19779
19780 #undef shl_load
19781
19782 /* Override any gcc2 internal prototype to avoid an error.  */
19783 #ifdef __cplusplus
19784 extern "C"
19785 {
19786 #endif
19787 /* We use char because int might match the return type of a gcc2
19788    builtin and then its argument prototype would still apply.  */
19789 char shl_load ();
19790 /* The GNU C library defines this for functions which it implements
19791     to always fail with ENOSYS.  Some functions are actually named
19792     something starting with __ and the normal name is an alias.  */
19793 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19794 choke me
19795 #else
19796 char (*f) () = shl_load;
19797 #endif
19798 #ifdef __cplusplus
19799 }
19800 #endif
19801
19802 int
19803 main ()
19804 {
19805 return f != shl_load;
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812   (eval $ac_link) 2>conftest.er1
19813   ac_status=$?
19814   grep -v '^ *+' conftest.er1 >conftest.err
19815   rm -f conftest.er1
19816   cat conftest.err >&5
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } &&
19819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest$ac_exeext'
19826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827   (eval $ac_try) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   ac_cv_func_shl_load=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836 ac_cv_func_shl_load=no
19837 fi
19838 rm -f conftest.err conftest.$ac_objext \
19839       conftest$ac_exeext conftest.$ac_ext
19840 fi
19841 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19843 if test $ac_cv_func_shl_load = yes; then
19844
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_SHL_LOAD 1
19847 _ACEOF
19848
19849 else
19850   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   ac_check_lib_save_LIBS=$LIBS
19856 LIBS="-ldld  $LIBS"
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863
19864 /* Override any gcc2 internal prototype to avoid an error.  */
19865 #ifdef __cplusplus
19866 extern "C"
19867 #endif
19868 /* We use char because int might match the return type of a gcc2
19869    builtin and then its argument prototype would still apply.  */
19870 char shl_load ();
19871 int
19872 main ()
19873 {
19874 shl_load ();
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881   (eval $ac_link) 2>conftest.er1
19882   ac_status=$?
19883   grep -v '^ *+' conftest.er1 >conftest.err
19884   rm -f conftest.er1
19885   cat conftest.err >&5
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } &&
19888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890   (eval $ac_try) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; } &&
19894          { ac_try='test -s conftest$ac_exeext'
19895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896   (eval $ac_try) 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }; }; then
19900   ac_cv_lib_dld_shl_load=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ac_cv_lib_dld_shl_load=no
19906 fi
19907 rm -f conftest.err conftest.$ac_objext \
19908       conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19910 fi
19911 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19912 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19913 if test $ac_cv_lib_dld_shl_load = yes; then
19914
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE_SHL_LOAD 1
19917 _ACEOF
19918
19919         LIBADD_DL="$LIBADD_DL -ldld"
19920 else
19921   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19922 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926   ac_check_lib_save_LIBS=$LIBS
19927 LIBS="-ldl  $LIBS"
19928 cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934
19935 /* Override any gcc2 internal prototype to avoid an error.  */
19936 #ifdef __cplusplus
19937 extern "C"
19938 #endif
19939 /* We use char because int might match the return type of a gcc2
19940    builtin and then its argument prototype would still apply.  */
19941 char dlopen ();
19942 int
19943 main ()
19944 {
19945 dlopen ();
19946   ;
19947   return 0;
19948 }
19949 _ACEOF
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19952   (eval $ac_link) 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } &&
19959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961   (eval $ac_try) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; } &&
19965          { ac_try='test -s conftest$ac_exeext'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_cv_lib_dl_dlopen=yes
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_cv_lib_dl_dlopen=no
19977 fi
19978 rm -f conftest.err conftest.$ac_objext \
19979       conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19981 fi
19982 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19984 if test $ac_cv_lib_dl_dlopen = yes; then
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_LIBDL 1
19988 _ACEOF
19989
19990                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19991 else
19992   cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 #if HAVE_DLFCN_H
19999 #  include <dlfcn.h>
20000 #endif
20001
20002 int
20003 main ()
20004 {
20005 dlopen(0, 0);
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012   (eval $ac_link) 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } &&
20019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021   (eval $ac_try) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); }; } &&
20025          { ac_try='test -s conftest$ac_exeext'
20026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027   (eval $ac_try) 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; }; then
20031
20032 cat >>confdefs.h <<\_ACEOF
20033 #define HAVE_LIBDL 1
20034 _ACEOF
20035  libltdl_cv_func_dlopen="yes"
20036 else
20037   echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20041 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045   ac_check_lib_save_LIBS=$LIBS
20046 LIBS="-lsvld  $LIBS"
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h.  */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h.  */
20053
20054 /* Override any gcc2 internal prototype to avoid an error.  */
20055 #ifdef __cplusplus
20056 extern "C"
20057 #endif
20058 /* We use char because int might match the return type of a gcc2
20059    builtin and then its argument prototype would still apply.  */
20060 char dlopen ();
20061 int
20062 main ()
20063 {
20064 dlopen ();
20065   ;
20066   return 0;
20067 }
20068 _ACEOF
20069 rm -f conftest.$ac_objext conftest$ac_exeext
20070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20071   (eval $ac_link) 2>conftest.er1
20072   ac_status=$?
20073   grep -v '^ *+' conftest.er1 >conftest.err
20074   rm -f conftest.er1
20075   cat conftest.err >&5
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } &&
20078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; } &&
20084          { ac_try='test -s conftest$ac_exeext'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   ac_cv_lib_svld_dlopen=yes
20091 else
20092   echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_cv_lib_svld_dlopen=no
20096 fi
20097 rm -f conftest.err conftest.$ac_objext \
20098       conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20100 fi
20101 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20102 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20103 if test $ac_cv_lib_svld_dlopen = yes; then
20104
20105 cat >>confdefs.h <<\_ACEOF
20106 #define HAVE_LIBDL 1
20107 _ACEOF
20108
20109                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20110 else
20111   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20112 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20113 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116   ac_check_lib_save_LIBS=$LIBS
20117 LIBS="-ldld  $LIBS"
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124
20125 /* Override any gcc2 internal prototype to avoid an error.  */
20126 #ifdef __cplusplus
20127 extern "C"
20128 #endif
20129 /* We use char because int might match the return type of a gcc2
20130    builtin and then its argument prototype would still apply.  */
20131 char dld_link ();
20132 int
20133 main ()
20134 {
20135 dld_link ();
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142   (eval $ac_link) 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest$ac_exeext'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   ac_cv_lib_dld_dld_link=yes
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 ac_cv_lib_dld_dld_link=no
20167 fi
20168 rm -f conftest.err conftest.$ac_objext \
20169       conftest$ac_exeext conftest.$ac_ext
20170 LIBS=$ac_check_lib_save_LIBS
20171 fi
20172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20173 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20174 if test $ac_cv_lib_dld_dld_link = yes; then
20175
20176 cat >>confdefs.h <<\_ACEOF
20177 #define HAVE_DLD 1
20178 _ACEOF
20179
20180                 LIBADD_DL="$LIBADD_DL -ldld"
20181 else
20182   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20183 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20184 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20185   echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20195 #define _dyld_func_lookup innocuous__dyld_func_lookup
20196
20197 /* System header to define __stub macros and hopefully few prototypes,
20198     which can conflict with char _dyld_func_lookup (); below.
20199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20200     <limits.h> exists even on freestanding compilers.  */
20201
20202 #ifdef __STDC__
20203 # include <limits.h>
20204 #else
20205 # include <assert.h>
20206 #endif
20207
20208 #undef _dyld_func_lookup
20209
20210 /* Override any gcc2 internal prototype to avoid an error.  */
20211 #ifdef __cplusplus
20212 extern "C"
20213 {
20214 #endif
20215 /* We use char because int might match the return type of a gcc2
20216    builtin and then its argument prototype would still apply.  */
20217 char _dyld_func_lookup ();
20218 /* The GNU C library defines this for functions which it implements
20219     to always fail with ENOSYS.  Some functions are actually named
20220     something starting with __ and the normal name is an alias.  */
20221 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20222 choke me
20223 #else
20224 char (*f) () = _dyld_func_lookup;
20225 #endif
20226 #ifdef __cplusplus
20227 }
20228 #endif
20229
20230 int
20231 main ()
20232 {
20233 return f != _dyld_func_lookup;
20234   ;
20235   return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240   (eval $ac_link) 2>conftest.er1
20241   ac_status=$?
20242   grep -v '^ *+' conftest.er1 >conftest.err
20243   rm -f conftest.er1
20244   cat conftest.err >&5
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } &&
20247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249   (eval $ac_try) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; } &&
20253          { ac_try='test -s conftest$ac_exeext'
20254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255   (eval $ac_try) 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; }; then
20259   ac_cv_func__dyld_func_lookup=yes
20260 else
20261   echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20263
20264 ac_cv_func__dyld_func_lookup=no
20265 fi
20266 rm -f conftest.err conftest.$ac_objext \
20267       conftest$ac_exeext conftest.$ac_ext
20268 fi
20269 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20270 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20271 if test $ac_cv_func__dyld_func_lookup = yes; then
20272
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_DYLD 1
20275 _ACEOF
20276
20277 fi
20278
20279
20280 fi
20281
20282
20283 fi
20284
20285
20286 fi
20287 rm -f conftest.err conftest.$ac_objext \
20288       conftest$ac_exeext conftest.$ac_ext
20289
20290 fi
20291
20292
20293 fi
20294
20295
20296 fi
20297
20298
20299 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20300 then
20301   lt_save_LIBS="$LIBS"
20302   LIBS="$LIBS $LIBADD_DL"
20303
20304 for ac_func in dlerror
20305 do
20306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20307 echo "$as_me:$LINENO: checking for $ac_func" >&5
20308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20309 if eval "test \"\${$as_ac_var+set}\" = set"; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20320 #define $ac_func innocuous_$ac_func
20321
20322 /* System header to define __stub macros and hopefully few prototypes,
20323     which can conflict with char $ac_func (); below.
20324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20325     <limits.h> exists even on freestanding compilers.  */
20326
20327 #ifdef __STDC__
20328 # include <limits.h>
20329 #else
20330 # include <assert.h>
20331 #endif
20332
20333 #undef $ac_func
20334
20335 /* Override any gcc2 internal prototype to avoid an error.  */
20336 #ifdef __cplusplus
20337 extern "C"
20338 {
20339 #endif
20340 /* We use char because int might match the return type of a gcc2
20341    builtin and then its argument prototype would still apply.  */
20342 char $ac_func ();
20343 /* The GNU C library defines this for functions which it implements
20344     to always fail with ENOSYS.  Some functions are actually named
20345     something starting with __ and the normal name is an alias.  */
20346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20347 choke me
20348 #else
20349 char (*f) () = $ac_func;
20350 #endif
20351 #ifdef __cplusplus
20352 }
20353 #endif
20354
20355 int
20356 main ()
20357 {
20358 return f != $ac_func;
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20365   (eval $ac_link) 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; } &&
20378          { ac_try='test -s conftest$ac_exeext'
20379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380   (eval $ac_try) 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); }; }; then
20384   eval "$as_ac_var=yes"
20385 else
20386   echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 eval "$as_ac_var=no"
20390 fi
20391 rm -f conftest.err conftest.$ac_objext \
20392       conftest$ac_exeext conftest.$ac_ext
20393 fi
20394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20396 if test `eval echo '${'$as_ac_var'}'` = yes; then
20397   cat >>confdefs.h <<_ACEOF
20398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20399 _ACEOF
20400
20401 fi
20402 done
20403
20404   LIBS="$lt_save_LIBS"
20405 fi
20406 ac_ext=c
20407 ac_cpp='$CPP $CPPFLAGS'
20408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411
20412
20413
20414 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20415 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20416 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419   ac_cv_sys_symbol_underscore=no
20420   cat > conftest.$ac_ext <<EOF
20421 void nm_test_func(){}
20422 int main(){nm_test_func;return 0;}
20423 EOF
20424   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425   (eval $ac_compile) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; then
20429     # Now try to grab the symbols.
20430     ac_nlist=conftest.nm
20431     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20432   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && test -s "$ac_nlist"; then
20436       # See whether the symbols have a leading underscore.
20437       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20438         ac_cv_sys_symbol_underscore=yes
20439       else
20440         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20441           :
20442         else
20443           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20444         fi
20445       fi
20446     else
20447       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20448     fi
20449   else
20450     echo "configure: failed program was:" >&5
20451     cat conftest.c >&5
20452   fi
20453   rm -rf conftest*
20454
20455 fi
20456 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20457 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20458
20459
20460 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20461   if test x"$libltdl_cv_func_dlopen" = xyes ||
20462      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20463         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20464 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20465 if test "${libltdl_cv_need_uscore+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   libltdl_cv_need_uscore=unknown
20469           save_LIBS="$LIBS"
20470           LIBS="$LIBS $LIBADD_DL"
20471           if test "$cross_compiling" = yes; then :
20472   libltdl_cv_need_uscore=cross
20473 else
20474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20475   lt_status=$lt_dlunknown
20476   cat > conftest.$ac_ext <<EOF
20477 #line 20477 "configure"
20478 #include "confdefs.h"
20479
20480 #if HAVE_DLFCN_H
20481 #include <dlfcn.h>
20482 #endif
20483
20484 #include <stdio.h>
20485
20486 #ifdef RTLD_GLOBAL
20487 #  define LT_DLGLOBAL           RTLD_GLOBAL
20488 #else
20489 #  ifdef DL_GLOBAL
20490 #    define LT_DLGLOBAL         DL_GLOBAL
20491 #  else
20492 #    define LT_DLGLOBAL         0
20493 #  endif
20494 #endif
20495
20496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20497    find out it does not work in some platform. */
20498 #ifndef LT_DLLAZY_OR_NOW
20499 #  ifdef RTLD_LAZY
20500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20501 #  else
20502 #    ifdef DL_LAZY
20503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20504 #    else
20505 #      ifdef RTLD_NOW
20506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20507 #      else
20508 #        ifdef DL_NOW
20509 #          define LT_DLLAZY_OR_NOW      DL_NOW
20510 #        else
20511 #          define LT_DLLAZY_OR_NOW      0
20512 #        endif
20513 #      endif
20514 #    endif
20515 #  endif
20516 #endif
20517
20518 #ifdef __cplusplus
20519 extern "C" void exit (int);
20520 #endif
20521
20522 void fnord() { int i=42;}
20523 int main ()
20524 {
20525   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20526   int status = $lt_dlunknown;
20527
20528   if (self)
20529     {
20530       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20531       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20532       /* dlclose (self); */
20533     }
20534
20535     exit (status);
20536 }
20537 EOF
20538   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20539   (eval $ac_link) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20543     (./conftest; exit; ) 2>/dev/null
20544     lt_status=$?
20545     case x$lt_status in
20546       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20547       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20548       x$lt_unknown|x*)  ;;
20549     esac
20550   else :
20551     # compilation failed
20552
20553   fi
20554 fi
20555 rm -fr conftest*
20556
20557           LIBS="$save_LIBS"
20558
20559 fi
20560 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20561 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20562   fi
20563 fi
20564
20565 if test x"$libltdl_cv_need_uscore" = xyes; then
20566
20567 cat >>confdefs.h <<\_ACEOF
20568 #define NEED_USCORE 1
20569 _ACEOF
20570
20571 fi
20572
20573
20574 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20575 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20576 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   # PORTME does your system automatically load deplibs for dlopen?
20580   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20581   # For now, we just catch OSes we know something about -- in the
20582   # future, we'll try test this programmatically.
20583   libltdl_cv_sys_dlopen_deplibs=unknown
20584   case "$host_os" in
20585   aix3*|aix4.1.*|aix4.2.*)
20586     # Unknown whether this is true for these versions of AIX, but
20587     # we want this `case' here to explicitly catch those versions.
20588     libltdl_cv_sys_dlopen_deplibs=unknown
20589     ;;
20590   aix[45]*)
20591     libltdl_cv_sys_dlopen_deplibs=yes
20592     ;;
20593   darwin*)
20594     # Assuming the user has installed a libdl from somewhere, this is true
20595     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20596     libltdl_cv_sys_dlopen_deplibs=yes
20597     ;;
20598   gnu*)
20599     libltdl_cv_sys_dlopen_deplibs=yes
20600     ;;
20601   hpux10*|hpux11*)
20602     libltdl_cv_sys_dlopen_deplibs=yes
20603     ;;
20604   irix[12345]*|irix6.[01]*)
20605     # Catch all versions of IRIX before 6.2, and indicate that we don't
20606     # know how it worked for any of those versions.
20607     libltdl_cv_sys_dlopen_deplibs=unknown
20608     ;;
20609   irix*)
20610     # The case above catches anything before 6.2, and it's known that
20611     # at 6.2 and later dlopen does load deplibs.
20612     libltdl_cv_sys_dlopen_deplibs=yes
20613     ;;
20614   linux*)
20615     libltdl_cv_sys_dlopen_deplibs=yes
20616     ;;
20617   netbsd*)
20618     libltdl_cv_sys_dlopen_deplibs=yes
20619     ;;
20620   openbsd*)
20621     libltdl_cv_sys_dlopen_deplibs=yes
20622     ;;
20623   osf[1234]*)
20624     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20625     # it did *not* use an RPATH in a shared library to find objects the
20626     # library depends on, so we explictly say `no'.
20627     libltdl_cv_sys_dlopen_deplibs=no
20628     ;;
20629   osf5.0|osf5.0a|osf5.1)
20630     # dlopen *does* load deplibs and with the right loader patch applied
20631     # it even uses RPATH in a shared library to search for shared objects
20632     # that the library depends on, but there's no easy way to know if that
20633     # patch is installed.  Since this is the case, all we can really
20634     # say is unknown -- it depends on the patch being installed.  If
20635     # it is, this changes to `yes'.  Without it, it would be `no'.
20636     libltdl_cv_sys_dlopen_deplibs=unknown
20637     ;;
20638   osf*)
20639     # the two cases above should catch all versions of osf <= 5.1.  Read
20640     # the comments above for what we know about them.
20641     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20642     # is used to find them so we can finally say `yes'.
20643     libltdl_cv_sys_dlopen_deplibs=yes
20644     ;;
20645   solaris*)
20646     libltdl_cv_sys_dlopen_deplibs=yes
20647     ;;
20648   esac
20649
20650 fi
20651 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20652 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20653 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20654
20655 cat >>confdefs.h <<\_ACEOF
20656 #define LTDL_DLOPEN_DEPLIBS 1
20657 _ACEOF
20658
20659 fi
20660
20661
20662 for ac_header in argz.h
20663 do
20664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20666   echo "$as_me:$LINENO: checking for $ac_header" >&5
20667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 fi
20671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20673 else
20674   # Is the header compilable?
20675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 $ac_includes_default
20684 #include <$ac_header>
20685 _ACEOF
20686 rm -f conftest.$ac_objext
20687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20688   (eval $ac_compile) 2>conftest.er1
20689   ac_status=$?
20690   grep -v '^ *+' conftest.er1 >conftest.err
20691   rm -f conftest.er1
20692   cat conftest.err >&5
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); } &&
20695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697   (eval $ac_try) 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; } &&
20701          { ac_try='test -s conftest.$ac_objext'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ac_header_compiler=yes
20708 else
20709   echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712 ac_header_compiler=no
20713 fi
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20716 echo "${ECHO_T}$ac_header_compiler" >&6
20717
20718 # Is the header present?
20719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #include <$ac_header>
20728 _ACEOF
20729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20731   ac_status=$?
20732   grep -v '^ *+' conftest.er1 >conftest.err
20733   rm -f conftest.er1
20734   cat conftest.err >&5
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } >/dev/null; then
20737   if test -s conftest.err; then
20738     ac_cpp_err=$ac_c_preproc_warn_flag
20739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20740   else
20741     ac_cpp_err=
20742   fi
20743 else
20744   ac_cpp_err=yes
20745 fi
20746 if test -z "$ac_cpp_err"; then
20747   ac_header_preproc=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752   ac_header_preproc=no
20753 fi
20754 rm -f conftest.err conftest.$ac_ext
20755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20756 echo "${ECHO_T}$ac_header_preproc" >&6
20757
20758 # So?  What about this header?
20759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20760   yes:no: )
20761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20765     ac_header_preproc=yes
20766     ;;
20767   no:yes:* )
20768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20780     (
20781       cat <<\_ASBOX
20782 ## ---------------------------------- ##
20783 ## Report this to bug-libtool@gnu.org ##
20784 ## ---------------------------------- ##
20785 _ASBOX
20786     ) |
20787       sed "s/^/$as_me: WARNING:     /" >&2
20788     ;;
20789 esac
20790 echo "$as_me:$LINENO: checking for $ac_header" >&5
20791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   eval "$as_ac_Header=\$ac_header_preproc"
20796 fi
20797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20799
20800 fi
20801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20802   cat >>confdefs.h <<_ACEOF
20803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20804 _ACEOF
20805
20806 fi
20807
20808 done
20809
20810
20811 echo "$as_me:$LINENO: checking for error_t" >&5
20812 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20813 if test "${ac_cv_type_error_t+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 #if HAVE_ARGZ_H
20823 #  include <argz.h>
20824 #endif
20825
20826 int
20827 main ()
20828 {
20829 if ((error_t *) 0)
20830   return 0;
20831 if (sizeof (error_t))
20832   return 0;
20833   ;
20834   return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20839   (eval $ac_compile) 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } &&
20846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848   (eval $ac_try) 2>&5
20849   ac_status=$?
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); }; } &&
20852          { ac_try='test -s conftest.$ac_objext'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858   ac_cv_type_error_t=yes
20859 else
20860   echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ac_cv_type_error_t=no
20864 fi
20865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20866 fi
20867 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20868 echo "${ECHO_T}$ac_cv_type_error_t" >&6
20869 if test $ac_cv_type_error_t = yes; then
20870
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_ERROR_T 1
20873 _ACEOF
20874
20875
20876 else
20877
20878 cat >>confdefs.h <<\_ACEOF
20879 #define error_t int
20880 _ACEOF
20881
20882 fi
20883
20884
20885
20886
20887
20888
20889
20890 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20891 do
20892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20893 echo "$as_me:$LINENO: checking for $ac_func" >&5
20894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20895 if eval "test \"\${$as_ac_var+set}\" = set"; then
20896   echo $ECHO_N "(cached) $ECHO_C" >&6
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20906 #define $ac_func innocuous_$ac_func
20907
20908 /* System header to define __stub macros and hopefully few prototypes,
20909     which can conflict with char $ac_func (); below.
20910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20911     <limits.h> exists even on freestanding compilers.  */
20912
20913 #ifdef __STDC__
20914 # include <limits.h>
20915 #else
20916 # include <assert.h>
20917 #endif
20918
20919 #undef $ac_func
20920
20921 /* Override any gcc2 internal prototype to avoid an error.  */
20922 #ifdef __cplusplus
20923 extern "C"
20924 {
20925 #endif
20926 /* We use char because int might match the return type of a gcc2
20927    builtin and then its argument prototype would still apply.  */
20928 char $ac_func ();
20929 /* The GNU C library defines this for functions which it implements
20930     to always fail with ENOSYS.  Some functions are actually named
20931     something starting with __ and the normal name is an alias.  */
20932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20933 choke me
20934 #else
20935 char (*f) () = $ac_func;
20936 #endif
20937 #ifdef __cplusplus
20938 }
20939 #endif
20940
20941 int
20942 main ()
20943 {
20944 return f != $ac_func;
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951   (eval $ac_link) 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } &&
20958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; } &&
20964          { ac_try='test -s conftest$ac_exeext'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   eval "$as_ac_var=yes"
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 eval "$as_ac_var=no"
20976 fi
20977 rm -f conftest.err conftest.$ac_objext \
20978       conftest$ac_exeext conftest.$ac_ext
20979 fi
20980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20982 if test `eval echo '${'$as_ac_var'}'` = yes; then
20983   cat >>confdefs.h <<_ACEOF
20984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20985 _ACEOF
20986
20987 fi
20988 done
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21018                   stdio.h unistd.h
21019 do
21020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21022   echo "$as_me:$LINENO: checking for $ac_header" >&5
21023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 fi
21027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21029 else
21030   # Is the header compilable?
21031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h.  */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h.  */
21039 $ac_includes_default
21040 #include <$ac_header>
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044   (eval $ac_compile) 2>conftest.er1
21045   ac_status=$?
21046   grep -v '^ *+' conftest.er1 >conftest.err
21047   rm -f conftest.er1
21048   cat conftest.err >&5
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } &&
21051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; } &&
21057          { ac_try='test -s conftest.$ac_objext'
21058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059   (eval $ac_try) 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); }; }; then
21063   ac_header_compiler=yes
21064 else
21065   echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 ac_header_compiler=no
21069 fi
21070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21072 echo "${ECHO_T}$ac_header_compiler" >&6
21073
21074 # Is the header present?
21075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h.  */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h.  */
21083 #include <$ac_header>
21084 _ACEOF
21085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21087   ac_status=$?
21088   grep -v '^ *+' conftest.er1 >conftest.err
21089   rm -f conftest.er1
21090   cat conftest.err >&5
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); } >/dev/null; then
21093   if test -s conftest.err; then
21094     ac_cpp_err=$ac_c_preproc_warn_flag
21095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21096   else
21097     ac_cpp_err=
21098   fi
21099 else
21100   ac_cpp_err=yes
21101 fi
21102 if test -z "$ac_cpp_err"; then
21103   ac_header_preproc=yes
21104 else
21105   echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21107
21108   ac_header_preproc=no
21109 fi
21110 rm -f conftest.err conftest.$ac_ext
21111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21112 echo "${ECHO_T}$ac_header_preproc" >&6
21113
21114 # So?  What about this header?
21115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21116   yes:no: )
21117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21121     ac_header_preproc=yes
21122     ;;
21123   no:yes:* )
21124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21136     (
21137       cat <<\_ASBOX
21138 ## ---------------------------------- ##
21139 ## Report this to bug-libtool@gnu.org ##
21140 ## ---------------------------------- ##
21141 _ASBOX
21142     ) |
21143       sed "s/^/$as_me: WARNING:     /" >&2
21144     ;;
21145 esac
21146 echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   eval "$as_ac_Header=\$ac_header_preproc"
21152 fi
21153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21155
21156 fi
21157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21158   cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 fi
21163
21164 done
21165
21166
21167
21168
21169
21170 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21171 do
21172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21174   echo "$as_me:$LINENO: checking for $ac_header" >&5
21175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 fi
21179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21181 else
21182   # Is the header compilable?
21183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h.  */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h.  */
21191 $ac_includes_default
21192 #include <$ac_header>
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196   (eval $ac_compile) 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } &&
21203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205   (eval $ac_try) 2>&5
21206   ac_status=$?
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); }; } &&
21209          { ac_try='test -s conftest.$ac_objext'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; }; then
21215   ac_header_compiler=yes
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 ac_header_compiler=no
21221 fi
21222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21224 echo "${ECHO_T}$ac_header_compiler" >&6
21225
21226 # Is the header present?
21227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235 #include <$ac_header>
21236 _ACEOF
21237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } >/dev/null; then
21245   if test -s conftest.err; then
21246     ac_cpp_err=$ac_c_preproc_warn_flag
21247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21248   else
21249     ac_cpp_err=
21250   fi
21251 else
21252   ac_cpp_err=yes
21253 fi
21254 if test -z "$ac_cpp_err"; then
21255   ac_header_preproc=yes
21256 else
21257   echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21259
21260   ac_header_preproc=no
21261 fi
21262 rm -f conftest.err conftest.$ac_ext
21263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21264 echo "${ECHO_T}$ac_header_preproc" >&6
21265
21266 # So?  What about this header?
21267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21268   yes:no: )
21269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21273     ac_header_preproc=yes
21274     ;;
21275   no:yes:* )
21276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21288     (
21289       cat <<\_ASBOX
21290 ## ---------------------------------- ##
21291 ## Report this to bug-libtool@gnu.org ##
21292 ## ---------------------------------- ##
21293 _ASBOX
21294     ) |
21295       sed "s/^/$as_me: WARNING:     /" >&2
21296     ;;
21297 esac
21298 echo "$as_me:$LINENO: checking for $ac_header" >&5
21299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   eval "$as_ac_Header=\$ac_header_preproc"
21304 fi
21305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21307
21308 fi
21309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21310   cat >>confdefs.h <<_ACEOF
21311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21312 _ACEOF
21313
21314 fi
21315
21316 done
21317
21318
21319
21320 for ac_header in string.h strings.h
21321 do
21322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21324   echo "$as_me:$LINENO: checking for $ac_header" >&5
21325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 fi
21329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21331 else
21332   # Is the header compilable?
21333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 $ac_includes_default
21342 #include <$ac_header>
21343 _ACEOF
21344 rm -f conftest.$ac_objext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21346   (eval $ac_compile) 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } &&
21353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355   (eval $ac_try) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; } &&
21359          { ac_try='test -s conftest.$ac_objext'
21360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361   (eval $ac_try) 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); }; }; then
21365   ac_header_compiler=yes
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370 ac_header_compiler=no
21371 fi
21372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21374 echo "${ECHO_T}$ac_header_compiler" >&6
21375
21376 # Is the header present?
21377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 #include <$ac_header>
21386 _ACEOF
21387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21389   ac_status=$?
21390   grep -v '^ *+' conftest.er1 >conftest.err
21391   rm -f conftest.er1
21392   cat conftest.err >&5
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } >/dev/null; then
21395   if test -s conftest.err; then
21396     ac_cpp_err=$ac_c_preproc_warn_flag
21397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21398   else
21399     ac_cpp_err=
21400   fi
21401 else
21402   ac_cpp_err=yes
21403 fi
21404 if test -z "$ac_cpp_err"; then
21405   ac_header_preproc=yes
21406 else
21407   echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410   ac_header_preproc=no
21411 fi
21412 rm -f conftest.err conftest.$ac_ext
21413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21414 echo "${ECHO_T}$ac_header_preproc" >&6
21415
21416 # So?  What about this header?
21417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21418   yes:no: )
21419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21423     ac_header_preproc=yes
21424     ;;
21425   no:yes:* )
21426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21438     (
21439       cat <<\_ASBOX
21440 ## ---------------------------------- ##
21441 ## Report this to bug-libtool@gnu.org ##
21442 ## ---------------------------------- ##
21443 _ASBOX
21444     ) |
21445       sed "s/^/$as_me: WARNING:     /" >&2
21446     ;;
21447 esac
21448 echo "$as_me:$LINENO: checking for $ac_header" >&5
21449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   eval "$as_ac_Header=\$ac_header_preproc"
21454 fi
21455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21457
21458 fi
21459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21460   cat >>confdefs.h <<_ACEOF
21461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21462 _ACEOF
21463  break
21464 fi
21465
21466 done
21467
21468
21469
21470
21471 for ac_func in strchr index
21472 do
21473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21474 echo "$as_me:$LINENO: checking for $ac_func" >&5
21475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21476 if eval "test \"\${$as_ac_var+set}\" = set"; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21487 #define $ac_func innocuous_$ac_func
21488
21489 /* System header to define __stub macros and hopefully few prototypes,
21490     which can conflict with char $ac_func (); below.
21491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21492     <limits.h> exists even on freestanding compilers.  */
21493
21494 #ifdef __STDC__
21495 # include <limits.h>
21496 #else
21497 # include <assert.h>
21498 #endif
21499
21500 #undef $ac_func
21501
21502 /* Override any gcc2 internal prototype to avoid an error.  */
21503 #ifdef __cplusplus
21504 extern "C"
21505 {
21506 #endif
21507 /* We use char because int might match the return type of a gcc2
21508    builtin and then its argument prototype would still apply.  */
21509 char $ac_func ();
21510 /* The GNU C library defines this for functions which it implements
21511     to always fail with ENOSYS.  Some functions are actually named
21512     something starting with __ and the normal name is an alias.  */
21513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21514 choke me
21515 #else
21516 char (*f) () = $ac_func;
21517 #endif
21518 #ifdef __cplusplus
21519 }
21520 #endif
21521
21522 int
21523 main ()
21524 {
21525 return f != $ac_func;
21526   ;
21527   return 0;
21528 }
21529 _ACEOF
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532   (eval $ac_link) 2>conftest.er1
21533   ac_status=$?
21534   grep -v '^ *+' conftest.er1 >conftest.err
21535   rm -f conftest.er1
21536   cat conftest.err >&5
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); } &&
21539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541   (eval $ac_try) 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); }; } &&
21545          { ac_try='test -s conftest$ac_exeext'
21546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547   (eval $ac_try) 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; }; then
21551   eval "$as_ac_var=yes"
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 eval "$as_ac_var=no"
21557 fi
21558 rm -f conftest.err conftest.$ac_objext \
21559       conftest$ac_exeext conftest.$ac_ext
21560 fi
21561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21563 if test `eval echo '${'$as_ac_var'}'` = yes; then
21564   cat >>confdefs.h <<_ACEOF
21565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21566 _ACEOF
21567  break
21568 fi
21569 done
21570
21571
21572
21573 for ac_func in strrchr rindex
21574 do
21575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576 echo "$as_me:$LINENO: checking for $ac_func" >&5
21577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21578 if eval "test \"\${$as_ac_var+set}\" = set"; then
21579   echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21589 #define $ac_func innocuous_$ac_func
21590
21591 /* System header to define __stub macros and hopefully few prototypes,
21592     which can conflict with char $ac_func (); below.
21593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21594     <limits.h> exists even on freestanding compilers.  */
21595
21596 #ifdef __STDC__
21597 # include <limits.h>
21598 #else
21599 # include <assert.h>
21600 #endif
21601
21602 #undef $ac_func
21603
21604 /* Override any gcc2 internal prototype to avoid an error.  */
21605 #ifdef __cplusplus
21606 extern "C"
21607 {
21608 #endif
21609 /* We use char because int might match the return type of a gcc2
21610    builtin and then its argument prototype would still apply.  */
21611 char $ac_func ();
21612 /* The GNU C library defines this for functions which it implements
21613     to always fail with ENOSYS.  Some functions are actually named
21614     something starting with __ and the normal name is an alias.  */
21615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21616 choke me
21617 #else
21618 char (*f) () = $ac_func;
21619 #endif
21620 #ifdef __cplusplus
21621 }
21622 #endif
21623
21624 int
21625 main ()
21626 {
21627 return f != $ac_func;
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634   (eval $ac_link) 2>conftest.er1
21635   ac_status=$?
21636   grep -v '^ *+' conftest.er1 >conftest.err
21637   rm -f conftest.er1
21638   cat conftest.err >&5
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); } &&
21641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; } &&
21647          { ac_try='test -s conftest$ac_exeext'
21648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649   (eval $ac_try) 2>&5
21650   ac_status=$?
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); }; }; then
21653   eval "$as_ac_var=yes"
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658 eval "$as_ac_var=no"
21659 fi
21660 rm -f conftest.err conftest.$ac_objext \
21661       conftest$ac_exeext conftest.$ac_ext
21662 fi
21663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21665 if test `eval echo '${'$as_ac_var'}'` = yes; then
21666   cat >>confdefs.h <<_ACEOF
21667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21668 _ACEOF
21669  break
21670 fi
21671 done
21672
21673
21674
21675 for ac_func in memcpy bcopy
21676 do
21677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21678 echo "$as_me:$LINENO: checking for $ac_func" >&5
21679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21680 if eval "test \"\${$as_ac_var+set}\" = set"; then
21681   echo $ECHO_N "(cached) $ECHO_C" >&6
21682 else
21683   cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21691 #define $ac_func innocuous_$ac_func
21692
21693 /* System header to define __stub macros and hopefully few prototypes,
21694     which can conflict with char $ac_func (); below.
21695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21696     <limits.h> exists even on freestanding compilers.  */
21697
21698 #ifdef __STDC__
21699 # include <limits.h>
21700 #else
21701 # include <assert.h>
21702 #endif
21703
21704 #undef $ac_func
21705
21706 /* Override any gcc2 internal prototype to avoid an error.  */
21707 #ifdef __cplusplus
21708 extern "C"
21709 {
21710 #endif
21711 /* We use char because int might match the return type of a gcc2
21712    builtin and then its argument prototype would still apply.  */
21713 char $ac_func ();
21714 /* The GNU C library defines this for functions which it implements
21715     to always fail with ENOSYS.  Some functions are actually named
21716     something starting with __ and the normal name is an alias.  */
21717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21718 choke me
21719 #else
21720 char (*f) () = $ac_func;
21721 #endif
21722 #ifdef __cplusplus
21723 }
21724 #endif
21725
21726 int
21727 main ()
21728 {
21729 return f != $ac_func;
21730   ;
21731   return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736   (eval $ac_link) 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } &&
21743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745   (eval $ac_try) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; } &&
21749          { ac_try='test -s conftest$ac_exeext'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; }; then
21755   eval "$as_ac_var=yes"
21756 else
21757   echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760 eval "$as_ac_var=no"
21761 fi
21762 rm -f conftest.err conftest.$ac_objext \
21763       conftest$ac_exeext conftest.$ac_ext
21764 fi
21765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21767 if test `eval echo '${'$as_ac_var'}'` = yes; then
21768   cat >>confdefs.h <<_ACEOF
21769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21770 _ACEOF
21771  break
21772 fi
21773 done
21774
21775
21776
21777 for ac_func in memmove strcmp
21778 do
21779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780 echo "$as_me:$LINENO: checking for $ac_func" >&5
21781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21782 if eval "test \"\${$as_ac_var+set}\" = set"; then
21783   echo $ECHO_N "(cached) $ECHO_C" >&6
21784 else
21785   cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h.  */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h.  */
21791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21793 #define $ac_func innocuous_$ac_func
21794
21795 /* System header to define __stub macros and hopefully few prototypes,
21796     which can conflict with char $ac_func (); below.
21797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21798     <limits.h> exists even on freestanding compilers.  */
21799
21800 #ifdef __STDC__
21801 # include <limits.h>
21802 #else
21803 # include <assert.h>
21804 #endif
21805
21806 #undef $ac_func
21807
21808 /* Override any gcc2 internal prototype to avoid an error.  */
21809 #ifdef __cplusplus
21810 extern "C"
21811 {
21812 #endif
21813 /* We use char because int might match the return type of a gcc2
21814    builtin and then its argument prototype would still apply.  */
21815 char $ac_func ();
21816 /* The GNU C library defines this for functions which it implements
21817     to always fail with ENOSYS.  Some functions are actually named
21818     something starting with __ and the normal name is an alias.  */
21819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21820 choke me
21821 #else
21822 char (*f) () = $ac_func;
21823 #endif
21824 #ifdef __cplusplus
21825 }
21826 #endif
21827
21828 int
21829 main ()
21830 {
21831 return f != $ac_func;
21832   ;
21833   return 0;
21834 }
21835 _ACEOF
21836 rm -f conftest.$ac_objext conftest$ac_exeext
21837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21838   (eval $ac_link) 2>conftest.er1
21839   ac_status=$?
21840   grep -v '^ *+' conftest.er1 >conftest.err
21841   rm -f conftest.er1
21842   cat conftest.err >&5
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } &&
21845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847   (eval $ac_try) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; } &&
21851          { ac_try='test -s conftest$ac_exeext'
21852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853   (eval $ac_try) 2>&5
21854   ac_status=$?
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); }; }; then
21857   eval "$as_ac_var=yes"
21858 else
21859   echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 eval "$as_ac_var=no"
21863 fi
21864 rm -f conftest.err conftest.$ac_objext \
21865       conftest$ac_exeext conftest.$ac_ext
21866 fi
21867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21869 if test `eval echo '${'$as_ac_var'}'` = yes; then
21870   cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21872 _ACEOF
21873
21874 fi
21875 done
21876
21877
21878
21879
21880 for ac_func in closedir opendir readdir
21881 do
21882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21883 echo "$as_me:$LINENO: checking for $ac_func" >&5
21884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21885 if eval "test \"\${$as_ac_var+set}\" = set"; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888   cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21896 #define $ac_func innocuous_$ac_func
21897
21898 /* System header to define __stub macros and hopefully few prototypes,
21899     which can conflict with char $ac_func (); below.
21900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901     <limits.h> exists even on freestanding compilers.  */
21902
21903 #ifdef __STDC__
21904 # include <limits.h>
21905 #else
21906 # include <assert.h>
21907 #endif
21908
21909 #undef $ac_func
21910
21911 /* Override any gcc2 internal prototype to avoid an error.  */
21912 #ifdef __cplusplus
21913 extern "C"
21914 {
21915 #endif
21916 /* We use char because int might match the return type of a gcc2
21917    builtin and then its argument prototype would still apply.  */
21918 char $ac_func ();
21919 /* The GNU C library defines this for functions which it implements
21920     to always fail with ENOSYS.  Some functions are actually named
21921     something starting with __ and the normal name is an alias.  */
21922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21923 choke me
21924 #else
21925 char (*f) () = $ac_func;
21926 #endif
21927 #ifdef __cplusplus
21928 }
21929 #endif
21930
21931 int
21932 main ()
21933 {
21934 return f != $ac_func;
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21941   (eval $ac_link) 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } &&
21948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950   (eval $ac_try) 2>&5
21951   ac_status=$?
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); }; } &&
21954          { ac_try='test -s conftest$ac_exeext'
21955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956   (eval $ac_try) 2>&5
21957   ac_status=$?
21958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959   (exit $ac_status); }; }; then
21960   eval "$as_ac_var=yes"
21961 else
21962   echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965 eval "$as_ac_var=no"
21966 fi
21967 rm -f conftest.err conftest.$ac_objext \
21968       conftest$ac_exeext conftest.$ac_ext
21969 fi
21970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21972 if test `eval echo '${'$as_ac_var'}'` = yes; then
21973   cat >>confdefs.h <<_ACEOF
21974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21975 _ACEOF
21976
21977 fi
21978 done
21979
21980
21981
21982
21983 ## -------- ##
21984 ## Outputs. ##
21985 ## -------- ##
21986           ac_config_files="$ac_config_files Makefile"
21987
21988 cat >confcache <<\_ACEOF
21989 # This file is a shell script that caches the results of configure
21990 # tests run on this system so they can be shared between configure
21991 # scripts and configure runs, see configure's option --config-cache.
21992 # It is not useful on other systems.  If it contains results you don't
21993 # want to keep, you may remove or edit it.
21994 #
21995 # config.status only pays attention to the cache file if you give it
21996 # the --recheck option to rerun configure.
21997 #
21998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22000 # following values.
22001
22002 _ACEOF
22003
22004 # The following way of writing the cache mishandles newlines in values,
22005 # but we know of no workaround that is simple, portable, and efficient.
22006 # So, don't put newlines in cache variables' values.
22007 # Ultrix sh set writes to stderr and can't be redirected directly,
22008 # and sets the high bit in the cache file unless we assign to the vars.
22009 {
22010   (set) 2>&1 |
22011     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22012     *ac_space=\ *)
22013       # `set' does not quote correctly, so add quotes (double-quote
22014       # substitution turns \\\\ into \\, and sed turns \\ into \).
22015       sed -n \
22016         "s/'/'\\\\''/g;
22017           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22018       ;;
22019     *)
22020       # `set' quotes correctly as required by POSIX, so do not add quotes.
22021       sed -n \
22022         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22023       ;;
22024     esac;
22025 } |
22026   sed '
22027      t clear
22028      : clear
22029      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22030      t end
22031      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22032      : end' >>confcache
22033 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22034   if test -w $cache_file; then
22035     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22036     cat confcache >$cache_file
22037   else
22038     echo "not updating unwritable cache $cache_file"
22039   fi
22040 fi
22041 rm -f confcache
22042
22043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22044 # Let make expand exec_prefix.
22045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22046
22047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22049 # trailing colons and then remove the whole line if VPATH becomes empty
22050 # (actually we leave an empty line to preserve line numbers).
22051 if test "x$srcdir" = x.; then
22052   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22053 s/:*\$(srcdir):*/:/;
22054 s/:*\${srcdir}:*/:/;
22055 s/:*@srcdir@:*/:/;
22056 s/^\([^=]*=[     ]*\):*/\1/;
22057 s/:*$//;
22058 s/^[^=]*=[       ]*$//;
22059 }'
22060 fi
22061
22062 # Transform confdefs.h into DEFS.
22063 # Protect against shell expansion while executing Makefile rules.
22064 # Protect against Makefile macro expansion.
22065 #
22066 # If the first sed substitution is executed (which looks for macros that
22067 # take arguments), then we branch to the quote section.  Otherwise,
22068 # look for a macro that doesn't take arguments.
22069 cat >confdef2opt.sed <<\_ACEOF
22070 t clear
22071 : clear
22072 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
22073 t quote
22074 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
22075 t quote
22076 d
22077 : quote
22078 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
22079 s,\[,\\&,g
22080 s,\],\\&,g
22081 s,\$,$$,g
22082 p
22083 _ACEOF
22084 # We use echo to avoid assuming a particular line-breaking character.
22085 # The extra dot is to prevent the shell from consuming trailing
22086 # line-breaks from the sub-command output.  A line-break within
22087 # single-quotes doesn't work because, if this script is created in a
22088 # platform that uses two characters for line-breaks (e.g., DOS), tr
22089 # would break.
22090 ac_LF_and_DOT=`echo; echo .`
22091 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22092 rm -f confdef2opt.sed
22093
22094
22095 ac_libobjs=
22096 ac_ltlibobjs=
22097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22098   # 1. Remove the extension, and $U if already installed.
22099   ac_i=`echo "$ac_i" |
22100          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22101   # 2. Add them.
22102   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22103   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22104 done
22105 LIBOBJS=$ac_libobjs
22106
22107 LTLIBOBJS=$ac_ltlibobjs
22108
22109
22110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22111   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22112 Usually this means the macro was only invoked conditionally." >&5
22113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22114 Usually this means the macro was only invoked conditionally." >&2;}
22115    { (exit 1); exit 1; }; }
22116 fi
22117 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22118   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22119 Usually this means the macro was only invoked conditionally." >&5
22120 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22121 Usually this means the macro was only invoked conditionally." >&2;}
22122    { (exit 1); exit 1; }; }
22123 fi
22124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22125   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22126 Usually this means the macro was only invoked conditionally." >&5
22127 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22128 Usually this means the macro was only invoked conditionally." >&2;}
22129    { (exit 1); exit 1; }; }
22130 fi
22131 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22132   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22133 Usually this means the macro was only invoked conditionally." >&5
22134 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22135 Usually this means the macro was only invoked conditionally." >&2;}
22136    { (exit 1); exit 1; }; }
22137 fi
22138 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22139   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22140 Usually this means the macro was only invoked conditionally." >&5
22141 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22142 Usually this means the macro was only invoked conditionally." >&2;}
22143    { (exit 1); exit 1; }; }
22144 fi
22145 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22146   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22147 Usually this means the macro was only invoked conditionally." >&5
22148 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22149 Usually this means the macro was only invoked conditionally." >&2;}
22150    { (exit 1); exit 1; }; }
22151 fi
22152
22153 : ${CONFIG_STATUS=./config.status}
22154 ac_clean_files_save=$ac_clean_files
22155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22156 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22157 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22158 cat >$CONFIG_STATUS <<_ACEOF
22159 #! $SHELL
22160 # Generated by $as_me.
22161 # Run this file to recreate the current configuration.
22162 # Compiler output produced by configure, useful for debugging
22163 # configure, is in config.log if it exists.
22164
22165 debug=false
22166 ac_cs_recheck=false
22167 ac_cs_silent=false
22168 SHELL=\${CONFIG_SHELL-$SHELL}
22169 _ACEOF
22170
22171 cat >>$CONFIG_STATUS <<\_ACEOF
22172 ## --------------------- ##
22173 ## M4sh Initialization.  ##
22174 ## --------------------- ##
22175
22176 # Be Bourne compatible
22177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22178   emulate sh
22179   NULLCMD=:
22180   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22181   # is contrary to our usage.  Disable this feature.
22182   alias -g '${1+"$@"}'='"$@"'
22183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22184   set -o posix
22185 fi
22186 DUALCASE=1; export DUALCASE # for MKS sh
22187
22188 # Support unset when possible.
22189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22190   as_unset=unset
22191 else
22192   as_unset=false
22193 fi
22194
22195
22196 # Work around bugs in pre-3.0 UWIN ksh.
22197 $as_unset ENV MAIL MAILPATH
22198 PS1='$ '
22199 PS2='> '
22200 PS4='+ '
22201
22202 # NLS nuisances.
22203 for as_var in \
22204   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22205   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22206   LC_TELEPHONE LC_TIME
22207 do
22208   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22209     eval $as_var=C; export $as_var
22210   else
22211     $as_unset $as_var
22212   fi
22213 done
22214
22215 # Required to use basename.
22216 if expr a : '\(a\)' >/dev/null 2>&1; then
22217   as_expr=expr
22218 else
22219   as_expr=false
22220 fi
22221
22222 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22223   as_basename=basename
22224 else
22225   as_basename=false
22226 fi
22227
22228
22229 # Name of the executable.
22230 as_me=`$as_basename "$0" ||
22231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22232          X"$0" : 'X\(//\)$' \| \
22233          X"$0" : 'X\(/\)$' \| \
22234          .     : '\(.\)' 2>/dev/null ||
22235 echo X/"$0" |
22236     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22237           /^X\/\(\/\/\)$/{ s//\1/; q; }
22238           /^X\/\(\/\).*/{ s//\1/; q; }
22239           s/.*/./; q'`
22240
22241
22242 # PATH needs CR, and LINENO needs CR and PATH.
22243 # Avoid depending upon Character Ranges.
22244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22247 as_cr_digits='0123456789'
22248 as_cr_alnum=$as_cr_Letters$as_cr_digits
22249
22250 # The user is always right.
22251 if test "${PATH_SEPARATOR+set}" != set; then
22252   echo "#! /bin/sh" >conf$$.sh
22253   echo  "exit 0"   >>conf$$.sh
22254   chmod +x conf$$.sh
22255   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22256     PATH_SEPARATOR=';'
22257   else
22258     PATH_SEPARATOR=:
22259   fi
22260   rm -f conf$$.sh
22261 fi
22262
22263
22264   as_lineno_1=$LINENO
22265   as_lineno_2=$LINENO
22266   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22267   test "x$as_lineno_1" != "x$as_lineno_2" &&
22268   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22269   # Find who we are.  Look in the path if we contain no path at all
22270   # relative or not.
22271   case $0 in
22272     *[\\/]* ) as_myself=$0 ;;
22273     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22274 for as_dir in $PATH
22275 do
22276   IFS=$as_save_IFS
22277   test -z "$as_dir" && as_dir=.
22278   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22279 done
22280
22281        ;;
22282   esac
22283   # We did not find ourselves, most probably we were run as `sh COMMAND'
22284   # in which case we are not to be found in the path.
22285   if test "x$as_myself" = x; then
22286     as_myself=$0
22287   fi
22288   if test ! -f "$as_myself"; then
22289     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22290 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22291    { (exit 1); exit 1; }; }
22292   fi
22293   case $CONFIG_SHELL in
22294   '')
22295     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22296 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22297 do
22298   IFS=$as_save_IFS
22299   test -z "$as_dir" && as_dir=.
22300   for as_base in sh bash ksh sh5; do
22301          case $as_dir in
22302          /*)
22303            if ("$as_dir/$as_base" -c '
22304   as_lineno_1=$LINENO
22305   as_lineno_2=$LINENO
22306   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22307   test "x$as_lineno_1" != "x$as_lineno_2" &&
22308   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22309              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22310              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22311              CONFIG_SHELL=$as_dir/$as_base
22312              export CONFIG_SHELL
22313              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22314            fi;;
22315          esac
22316        done
22317 done
22318 ;;
22319   esac
22320
22321   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22322   # uniformly replaced by the line number.  The first 'sed' inserts a
22323   # line-number line before each line; the second 'sed' does the real
22324   # work.  The second script uses 'N' to pair each line-number line
22325   # with the numbered line, and appends trailing '-' during
22326   # substitution so that $LINENO is not a special case at line end.
22327   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22328   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22329   sed '=' <$as_myself |
22330     sed '
22331       N
22332       s,$,-,
22333       : loop
22334       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22335       t loop
22336       s,-$,,
22337       s,^['$as_cr_digits']*\n,,
22338     ' >$as_me.lineno &&
22339   chmod +x $as_me.lineno ||
22340     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22341 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22342    { (exit 1); exit 1; }; }
22343
22344   # Don't try to exec as it changes $[0], causing all sort of problems
22345   # (the dirname of $[0] is not the place where we might find the
22346   # original and so on.  Autoconf is especially sensible to this).
22347   . ./$as_me.lineno
22348   # Exit status is that of the last command.
22349   exit
22350 }
22351
22352
22353 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22354   *c*,-n*) ECHO_N= ECHO_C='
22355 ' ECHO_T='      ' ;;
22356   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22357   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22358 esac
22359
22360 if expr a : '\(a\)' >/dev/null 2>&1; then
22361   as_expr=expr
22362 else
22363   as_expr=false
22364 fi
22365
22366 rm -f conf$$ conf$$.exe conf$$.file
22367 echo >conf$$.file
22368 if ln -s conf$$.file conf$$ 2>/dev/null; then
22369   # We could just check for DJGPP; but this test a) works b) is more generic
22370   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22371   if test -f conf$$.exe; then
22372     # Don't use ln at all; we don't have any links
22373     as_ln_s='cp -p'
22374   else
22375     as_ln_s='ln -s'
22376   fi
22377 elif ln conf$$.file conf$$ 2>/dev/null; then
22378   as_ln_s=ln
22379 else
22380   as_ln_s='cp -p'
22381 fi
22382 rm -f conf$$ conf$$.exe conf$$.file
22383
22384 if mkdir -p . 2>/dev/null; then
22385   as_mkdir_p=:
22386 else
22387   test -d ./-p && rmdir ./-p
22388   as_mkdir_p=false
22389 fi
22390
22391 as_executable_p="test -f"
22392
22393 # Sed expression to map a string onto a valid CPP name.
22394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22395
22396 # Sed expression to map a string onto a valid variable name.
22397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22398
22399
22400 # IFS
22401 # We need space, tab and new line, in precisely that order.
22402 as_nl='
22403 '
22404 IFS="   $as_nl"
22405
22406 # CDPATH.
22407 $as_unset CDPATH
22408
22409 exec 6>&1
22410
22411 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22412 # report actual input values of CONFIG_FILES etc. instead of their
22413 # values after options handling.  Logging --version etc. is OK.
22414 exec 5>>config.log
22415 {
22416   echo
22417   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22418 ## Running $as_me. ##
22419 _ASBOX
22420 } >&5
22421 cat >&5 <<_CSEOF
22422
22423 This file was extended by libltdl $as_me 1.2, which was
22424 generated by GNU Autoconf 2.59.  Invocation command line was
22425
22426   CONFIG_FILES    = $CONFIG_FILES
22427   CONFIG_HEADERS  = $CONFIG_HEADERS
22428   CONFIG_LINKS    = $CONFIG_LINKS
22429   CONFIG_COMMANDS = $CONFIG_COMMANDS
22430   $ $0 $@
22431
22432 _CSEOF
22433 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22434 echo >&5
22435 _ACEOF
22436
22437 # Files that config.status was made for.
22438 if test -n "$ac_config_files"; then
22439   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22440 fi
22441
22442 if test -n "$ac_config_headers"; then
22443   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22444 fi
22445
22446 if test -n "$ac_config_links"; then
22447   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22448 fi
22449
22450 if test -n "$ac_config_commands"; then
22451   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22452 fi
22453
22454 cat >>$CONFIG_STATUS <<\_ACEOF
22455
22456 ac_cs_usage="\
22457 \`$as_me' instantiates files from templates according to the
22458 current configuration.
22459
22460 Usage: $0 [OPTIONS] [FILE]...
22461
22462   -h, --help       print this help, then exit
22463   -V, --version    print version number, then exit
22464   -q, --quiet      do not print progress messages
22465   -d, --debug      don't remove temporary files
22466       --recheck    update $as_me by reconfiguring in the same conditions
22467   --file=FILE[:TEMPLATE]
22468                    instantiate the configuration file FILE
22469
22470 Configuration files:
22471 $config_files
22472
22473 Configuration commands:
22474 $config_commands
22475
22476 Report bugs to <bug-autoconf@gnu.org>."
22477 _ACEOF
22478
22479 cat >>$CONFIG_STATUS <<_ACEOF
22480 ac_cs_version="\\
22481 libltdl config.status 1.2
22482 configured by $0, generated by GNU Autoconf 2.59,
22483   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22484
22485 Copyright (C) 2003 Free Software Foundation, Inc.
22486 This config.status script is free software; the Free Software Foundation
22487 gives unlimited permission to copy, distribute and modify it."
22488 srcdir=$srcdir
22489 INSTALL="$INSTALL"
22490 _ACEOF
22491
22492 cat >>$CONFIG_STATUS <<\_ACEOF
22493 # If no file are specified by the user, then we need to provide default
22494 # value.  By we need to know if files were specified by the user.
22495 ac_need_defaults=:
22496 while test $# != 0
22497 do
22498   case $1 in
22499   --*=*)
22500     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22501     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22502     ac_shift=:
22503     ;;
22504   -*)
22505     ac_option=$1
22506     ac_optarg=$2
22507     ac_shift=shift
22508     ;;
22509   *) # This is not an option, so the user has probably given explicit
22510      # arguments.
22511      ac_option=$1
22512      ac_need_defaults=false;;
22513   esac
22514
22515   case $ac_option in
22516   # Handling of the options.
22517 _ACEOF
22518 cat >>$CONFIG_STATUS <<\_ACEOF
22519   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22520     ac_cs_recheck=: ;;
22521   --version | --vers* | -V )
22522     echo "$ac_cs_version"; exit 0 ;;
22523   --he | --h)
22524     # Conflict between --help and --header
22525     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22526 Try \`$0 --help' for more information." >&5
22527 echo "$as_me: error: ambiguous option: $1
22528 Try \`$0 --help' for more information." >&2;}
22529    { (exit 1); exit 1; }; };;
22530   --help | --hel | -h )
22531     echo "$ac_cs_usage"; exit 0 ;;
22532   --debug | --d* | -d )
22533     debug=: ;;
22534   --file | --fil | --fi | --f )
22535     $ac_shift
22536     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22537     ac_need_defaults=false;;
22538   --header | --heade | --head | --hea )
22539     $ac_shift
22540     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22541     ac_need_defaults=false;;
22542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22543   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22544     ac_cs_silent=: ;;
22545
22546   # This is an error.
22547   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22548 Try \`$0 --help' for more information." >&5
22549 echo "$as_me: error: unrecognized option: $1
22550 Try \`$0 --help' for more information." >&2;}
22551    { (exit 1); exit 1; }; } ;;
22552
22553   *) ac_config_targets="$ac_config_targets $1" ;;
22554
22555   esac
22556   shift
22557 done
22558
22559 ac_configure_extra_args=
22560
22561 if $ac_cs_silent; then
22562   exec 6>/dev/null
22563   ac_configure_extra_args="$ac_configure_extra_args --silent"
22564 fi
22565
22566 _ACEOF
22567 cat >>$CONFIG_STATUS <<_ACEOF
22568 if \$ac_cs_recheck; then
22569   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22570   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22571 fi
22572
22573 _ACEOF
22574
22575 cat >>$CONFIG_STATUS <<_ACEOF
22576 #
22577 # INIT-COMMANDS section.
22578 #
22579
22580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22581
22582 _ACEOF
22583
22584
22585
22586 cat >>$CONFIG_STATUS <<\_ACEOF
22587 for ac_config_target in $ac_config_targets
22588 do
22589   case "$ac_config_target" in
22590   # Handling of arguments.
22591   "config.h" ) CONFIG_FILES="$CONFIG_FILES config.h:config-h.in" ;;
22592   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22593   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22594   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22596    { (exit 1); exit 1; }; };;
22597   esac
22598 done
22599
22600 # If the user did not use the arguments to specify the items to instantiate,
22601 # then the envvar interface is used.  Set only those that are not.
22602 # We use the long form for the default assignment because of an extremely
22603 # bizarre bug on SunOS 4.1.3.
22604 if $ac_need_defaults; then
22605   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22606   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22607 fi
22608
22609 # Have a temporary directory for convenience.  Make it in the build tree
22610 # simply because there is no reason to put it here, and in addition,
22611 # creating and moving files from /tmp can sometimes cause problems.
22612 # Create a temporary directory, and hook for its removal unless debugging.
22613 $debug ||
22614 {
22615   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22616   trap '{ (exit 1); exit 1; }' 1 2 13 15
22617 }
22618
22619 # Create a (secure) tmp directory for tmp files.
22620
22621 {
22622   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22623   test -n "$tmp" && test -d "$tmp"
22624 }  ||
22625 {
22626   tmp=./confstat$$-$RANDOM
22627   (umask 077 && mkdir $tmp)
22628 } ||
22629 {
22630    echo "$me: cannot create a temporary directory in ." >&2
22631    { (exit 1); exit 1; }
22632 }
22633
22634 _ACEOF
22635
22636 cat >>$CONFIG_STATUS <<_ACEOF
22637
22638 #
22639 # CONFIG_FILES section.
22640 #
22641
22642 # No need to generate the scripts if there are no CONFIG_FILES.
22643 # This happens for instance when ./config.status config.h
22644 if test -n "\$CONFIG_FILES"; then
22645   # Protect against being on the right side of a sed subst in config.status.
22646   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22647    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22648 s,@SHELL@,$SHELL,;t t
22649 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22655 s,@exec_prefix@,$exec_prefix,;t t
22656 s,@prefix@,$prefix,;t t
22657 s,@program_transform_name@,$program_transform_name,;t t
22658 s,@bindir@,$bindir,;t t
22659 s,@sbindir@,$sbindir,;t t
22660 s,@libexecdir@,$libexecdir,;t t
22661 s,@datadir@,$datadir,;t t
22662 s,@sysconfdir@,$sysconfdir,;t t
22663 s,@sharedstatedir@,$sharedstatedir,;t t
22664 s,@localstatedir@,$localstatedir,;t t
22665 s,@libdir@,$libdir,;t t
22666 s,@includedir@,$includedir,;t t
22667 s,@oldincludedir@,$oldincludedir,;t t
22668 s,@infodir@,$infodir,;t t
22669 s,@mandir@,$mandir,;t t
22670 s,@build_alias@,$build_alias,;t t
22671 s,@host_alias@,$host_alias,;t t
22672 s,@target_alias@,$target_alias,;t t
22673 s,@DEFS@,$DEFS,;t t
22674 s,@ECHO_C@,$ECHO_C,;t t
22675 s,@ECHO_N@,$ECHO_N,;t t
22676 s,@ECHO_T@,$ECHO_T,;t t
22677 s,@LIBS@,$LIBS,;t t
22678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22681 s,@CYGPATH_W@,$CYGPATH_W,;t t
22682 s,@PACKAGE@,$PACKAGE,;t t
22683 s,@VERSION@,$VERSION,;t t
22684 s,@ACLOCAL@,$ACLOCAL,;t t
22685 s,@AUTOCONF@,$AUTOCONF,;t t
22686 s,@AUTOMAKE@,$AUTOMAKE,;t t
22687 s,@AUTOHEADER@,$AUTOHEADER,;t t
22688 s,@MAKEINFO@,$MAKEINFO,;t t
22689 s,@install_sh@,$install_sh,;t t
22690 s,@STRIP@,$STRIP,;t t
22691 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22692 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22693 s,@mkdir_p@,$mkdir_p,;t t
22694 s,@AWK@,$AWK,;t t
22695 s,@SET_MAKE@,$SET_MAKE,;t t
22696 s,@am__leading_dot@,$am__leading_dot,;t t
22697 s,@AMTAR@,$AMTAR,;t t
22698 s,@am__tar@,$am__tar,;t t
22699 s,@am__untar@,$am__untar,;t t
22700 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22701 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22702 s,@MAINT@,$MAINT,;t t
22703 s,@CC@,$CC,;t t
22704 s,@CFLAGS@,$CFLAGS,;t t
22705 s,@LDFLAGS@,$LDFLAGS,;t t
22706 s,@CPPFLAGS@,$CPPFLAGS,;t t
22707 s,@ac_ct_CC@,$ac_ct_CC,;t t
22708 s,@EXEEXT@,$EXEEXT,;t t
22709 s,@OBJEXT@,$OBJEXT,;t t
22710 s,@DEPDIR@,$DEPDIR,;t t
22711 s,@am__include@,$am__include,;t t
22712 s,@am__quote@,$am__quote,;t t
22713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22716 s,@CCDEPMODE@,$CCDEPMODE,;t t
22717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22719 s,@build@,$build,;t t
22720 s,@build_cpu@,$build_cpu,;t t
22721 s,@build_vendor@,$build_vendor,;t t
22722 s,@build_os@,$build_os,;t t
22723 s,@host@,$host,;t t
22724 s,@host_cpu@,$host_cpu,;t t
22725 s,@host_vendor@,$host_vendor,;t t
22726 s,@host_os@,$host_os,;t t
22727 s,@EGREP@,$EGREP,;t t
22728 s,@LN_S@,$LN_S,;t t
22729 s,@ECHO@,$ECHO,;t t
22730 s,@AR@,$AR,;t t
22731 s,@ac_ct_AR@,$ac_ct_AR,;t t
22732 s,@RANLIB@,$RANLIB,;t t
22733 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22734 s,@DLLTOOL@,$DLLTOOL,;t t
22735 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22736 s,@AS@,$AS,;t t
22737 s,@ac_ct_AS@,$ac_ct_AS,;t t
22738 s,@OBJDUMP@,$OBJDUMP,;t t
22739 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22740 s,@CPP@,$CPP,;t t
22741 s,@CXX@,$CXX,;t t
22742 s,@CXXFLAGS@,$CXXFLAGS,;t t
22743 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22744 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22745 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22746 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22747 s,@CXXCPP@,$CXXCPP,;t t
22748 s,@F77@,$F77,;t t
22749 s,@FFLAGS@,$FFLAGS,;t t
22750 s,@ac_ct_F77@,$ac_ct_F77,;t t
22751 s,@LIBTOOL@,$LIBTOOL,;t t
22752 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22753 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22754 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22755 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22756 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22757 s,@LIBADD_DL@,$LIBADD_DL,;t t
22758 s,@LIBOBJS@,$LIBOBJS,;t t
22759 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22760 CEOF
22761
22762 _ACEOF
22763
22764   cat >>$CONFIG_STATUS <<\_ACEOF
22765   # Split the substitutions into bite-sized pieces for seds with
22766   # small command number limits, like on Digital OSF/1 and HP-UX.
22767   ac_max_sed_lines=48
22768   ac_sed_frag=1 # Number of current file.
22769   ac_beg=1 # First line for current file.
22770   ac_end=$ac_max_sed_lines # Line after last line for current file.
22771   ac_more_lines=:
22772   ac_sed_cmds=
22773   while $ac_more_lines; do
22774     if test $ac_beg -gt 1; then
22775       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22776     else
22777       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22778     fi
22779     if test ! -s $tmp/subs.frag; then
22780       ac_more_lines=false
22781     else
22782       # The purpose of the label and of the branching condition is to
22783       # speed up the sed processing (if there are no `@' at all, there
22784       # is no need to browse any of the substitutions).
22785       # These are the two extra sed commands mentioned above.
22786       (echo ':t
22787   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22788       if test -z "$ac_sed_cmds"; then
22789         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22790       else
22791         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22792       fi
22793       ac_sed_frag=`expr $ac_sed_frag + 1`
22794       ac_beg=$ac_end
22795       ac_end=`expr $ac_end + $ac_max_sed_lines`
22796     fi
22797   done
22798   if test -z "$ac_sed_cmds"; then
22799     ac_sed_cmds=cat
22800   fi
22801 fi # test -n "$CONFIG_FILES"
22802
22803 _ACEOF
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22806   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22807   case $ac_file in
22808   - | *:- | *:-:* ) # input from stdin
22809         cat >$tmp/stdin
22810         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22811         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22812   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22813         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22814   * )   ac_file_in=$ac_file.in ;;
22815   esac
22816
22817   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22818   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22820          X"$ac_file" : 'X\(//\)[^/]' \| \
22821          X"$ac_file" : 'X\(//\)$' \| \
22822          X"$ac_file" : 'X\(/\)' \| \
22823          .     : '\(.\)' 2>/dev/null ||
22824 echo X"$ac_file" |
22825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22827           /^X\(\/\/\)$/{ s//\1/; q; }
22828           /^X\(\/\).*/{ s//\1/; q; }
22829           s/.*/./; q'`
22830   { if $as_mkdir_p; then
22831     mkdir -p "$ac_dir"
22832   else
22833     as_dir="$ac_dir"
22834     as_dirs=
22835     while test ! -d "$as_dir"; do
22836       as_dirs="$as_dir $as_dirs"
22837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22839          X"$as_dir" : 'X\(//\)[^/]' \| \
22840          X"$as_dir" : 'X\(//\)$' \| \
22841          X"$as_dir" : 'X\(/\)' \| \
22842          .     : '\(.\)' 2>/dev/null ||
22843 echo X"$as_dir" |
22844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22846           /^X\(\/\/\)$/{ s//\1/; q; }
22847           /^X\(\/\).*/{ s//\1/; q; }
22848           s/.*/./; q'`
22849     done
22850     test ! -n "$as_dirs" || mkdir $as_dirs
22851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22853    { (exit 1); exit 1; }; }; }
22854
22855   ac_builddir=.
22856
22857 if test "$ac_dir" != .; then
22858   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22859   # A "../" for each directory in $ac_dir_suffix.
22860   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22861 else
22862   ac_dir_suffix= ac_top_builddir=
22863 fi
22864
22865 case $srcdir in
22866   .)  # No --srcdir option.  We are building in place.
22867     ac_srcdir=.
22868     if test -z "$ac_top_builddir"; then
22869        ac_top_srcdir=.
22870     else
22871        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22872     fi ;;
22873   [\\/]* | ?:[\\/]* )  # Absolute path.
22874     ac_srcdir=$srcdir$ac_dir_suffix;
22875     ac_top_srcdir=$srcdir ;;
22876   *) # Relative path.
22877     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22878     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22879 esac
22880
22881 # Do not use `cd foo && pwd` to compute absolute paths, because
22882 # the directories may not exist.
22883 case `pwd` in
22884 .) ac_abs_builddir="$ac_dir";;
22885 *)
22886   case "$ac_dir" in
22887   .) ac_abs_builddir=`pwd`;;
22888   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22889   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22890   esac;;
22891 esac
22892 case $ac_abs_builddir in
22893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22894 *)
22895   case ${ac_top_builddir}. in
22896   .) ac_abs_top_builddir=$ac_abs_builddir;;
22897   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22898   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22899   esac;;
22900 esac
22901 case $ac_abs_builddir in
22902 .) ac_abs_srcdir=$ac_srcdir;;
22903 *)
22904   case $ac_srcdir in
22905   .) ac_abs_srcdir=$ac_abs_builddir;;
22906   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22907   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22908   esac;;
22909 esac
22910 case $ac_abs_builddir in
22911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22912 *)
22913   case $ac_top_srcdir in
22914   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22915   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22916   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22917   esac;;
22918 esac
22919
22920
22921   case $INSTALL in
22922   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22923   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22924   esac
22925
22926   # Let's still pretend it is `configure' which instantiates (i.e., don't
22927   # use $as_me), people would be surprised to read:
22928   #    /* config.h.  Generated by config.status.  */
22929   if test x"$ac_file" = x-; then
22930     configure_input=
22931   else
22932     configure_input="$ac_file.  "
22933   fi
22934   configure_input=$configure_input"Generated from `echo $ac_file_in |
22935                                      sed 's,.*/,,'` by configure."
22936
22937   # First look for the input files in the build tree, otherwise in the
22938   # src tree.
22939   ac_file_inputs=`IFS=:
22940     for f in $ac_file_in; do
22941       case $f in
22942       -) echo $tmp/stdin ;;
22943       [\\/$]*)
22944          # Absolute (can't be DOS-style, as IFS=:)
22945          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22946 echo "$as_me: error: cannot find input file: $f" >&2;}
22947    { (exit 1); exit 1; }; }
22948          echo "$f";;
22949       *) # Relative
22950          if test -f "$f"; then
22951            # Build tree
22952            echo "$f"
22953          elif test -f "$srcdir/$f"; then
22954            # Source tree
22955            echo "$srcdir/$f"
22956          else
22957            # /dev/null tree
22958            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22959 echo "$as_me: error: cannot find input file: $f" >&2;}
22960    { (exit 1); exit 1; }; }
22961          fi;;
22962       esac
22963     done` || { (exit 1); exit 1; }
22964
22965   if test x"$ac_file" != x-; then
22966     { echo "$as_me:$LINENO: creating $ac_file" >&5
22967 echo "$as_me: creating $ac_file" >&6;}
22968     rm -f "$ac_file"
22969   fi
22970 _ACEOF
22971 cat >>$CONFIG_STATUS <<_ACEOF
22972   sed "$ac_vpsub
22973 $extrasub
22974 _ACEOF
22975 cat >>$CONFIG_STATUS <<\_ACEOF
22976 :t
22977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22978 s,@configure_input@,$configure_input,;t t
22979 s,@srcdir@,$ac_srcdir,;t t
22980 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22981 s,@top_srcdir@,$ac_top_srcdir,;t t
22982 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22983 s,@builddir@,$ac_builddir,;t t
22984 s,@abs_builddir@,$ac_abs_builddir,;t t
22985 s,@top_builddir@,$ac_top_builddir,;t t
22986 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22987 s,@INSTALL@,$ac_INSTALL,;t t
22988 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22989   rm -f $tmp/stdin
22990   if test x"$ac_file" != x-; then
22991     mv $tmp/out $ac_file
22992   else
22993     cat $tmp/out
22994     rm -f $tmp/out
22995   fi
22996
22997 done
22998 _ACEOF
22999 cat >>$CONFIG_STATUS <<\_ACEOF
23000
23001 #
23002 # CONFIG_COMMANDS section.
23003 #
23004 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23005   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23006   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23007   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23008 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23009          X"$ac_dest" : 'X\(//\)[^/]' \| \
23010          X"$ac_dest" : 'X\(//\)$' \| \
23011          X"$ac_dest" : 'X\(/\)' \| \
23012          .     : '\(.\)' 2>/dev/null ||
23013 echo X"$ac_dest" |
23014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23015           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23016           /^X\(\/\/\)$/{ s//\1/; q; }
23017           /^X\(\/\).*/{ s//\1/; q; }
23018           s/.*/./; q'`
23019   { if $as_mkdir_p; then
23020     mkdir -p "$ac_dir"
23021   else
23022     as_dir="$ac_dir"
23023     as_dirs=
23024     while test ! -d "$as_dir"; do
23025       as_dirs="$as_dir $as_dirs"
23026       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23028          X"$as_dir" : 'X\(//\)[^/]' \| \
23029          X"$as_dir" : 'X\(//\)$' \| \
23030          X"$as_dir" : 'X\(/\)' \| \
23031          .     : '\(.\)' 2>/dev/null ||
23032 echo X"$as_dir" |
23033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23035           /^X\(\/\/\)$/{ s//\1/; q; }
23036           /^X\(\/\).*/{ s//\1/; q; }
23037           s/.*/./; q'`
23038     done
23039     test ! -n "$as_dirs" || mkdir $as_dirs
23040   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23041 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23042    { (exit 1); exit 1; }; }; }
23043
23044   ac_builddir=.
23045
23046 if test "$ac_dir" != .; then
23047   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23048   # A "../" for each directory in $ac_dir_suffix.
23049   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23050 else
23051   ac_dir_suffix= ac_top_builddir=
23052 fi
23053
23054 case $srcdir in
23055   .)  # No --srcdir option.  We are building in place.
23056     ac_srcdir=.
23057     if test -z "$ac_top_builddir"; then
23058        ac_top_srcdir=.
23059     else
23060        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23061     fi ;;
23062   [\\/]* | ?:[\\/]* )  # Absolute path.
23063     ac_srcdir=$srcdir$ac_dir_suffix;
23064     ac_top_srcdir=$srcdir ;;
23065   *) # Relative path.
23066     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23067     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23068 esac
23069
23070 # Do not use `cd foo && pwd` to compute absolute paths, because
23071 # the directories may not exist.
23072 case `pwd` in
23073 .) ac_abs_builddir="$ac_dir";;
23074 *)
23075   case "$ac_dir" in
23076   .) ac_abs_builddir=`pwd`;;
23077   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23078   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23079   esac;;
23080 esac
23081 case $ac_abs_builddir in
23082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23083 *)
23084   case ${ac_top_builddir}. in
23085   .) ac_abs_top_builddir=$ac_abs_builddir;;
23086   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23087   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23088   esac;;
23089 esac
23090 case $ac_abs_builddir in
23091 .) ac_abs_srcdir=$ac_srcdir;;
23092 *)
23093   case $ac_srcdir in
23094   .) ac_abs_srcdir=$ac_abs_builddir;;
23095   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23096   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23097   esac;;
23098 esac
23099 case $ac_abs_builddir in
23100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23101 *)
23102   case $ac_top_srcdir in
23103   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23104   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23105   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23106   esac;;
23107 esac
23108
23109
23110   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23111 echo "$as_me: executing $ac_dest commands" >&6;}
23112   case $ac_dest in
23113     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23114   # Strip MF so we end up with the name of the file.
23115   mf=`echo "$mf" | sed -e 's/:.*$//'`
23116   # Check whether this is an Automake generated Makefile or not.
23117   # We used to match only the files named `Makefile.in', but
23118   # some people rename them; so instead we look at the file content.
23119   # Grep'ing the first line is not enough: some people post-process
23120   # each Makefile.in and add a new line on top of each file to say so.
23121   # So let's grep whole file.
23122   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23123     dirpart=`(dirname "$mf") 2>/dev/null ||
23124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23125          X"$mf" : 'X\(//\)[^/]' \| \
23126          X"$mf" : 'X\(//\)$' \| \
23127          X"$mf" : 'X\(/\)' \| \
23128          .     : '\(.\)' 2>/dev/null ||
23129 echo X"$mf" |
23130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23132           /^X\(\/\/\)$/{ s//\1/; q; }
23133           /^X\(\/\).*/{ s//\1/; q; }
23134           s/.*/./; q'`
23135   else
23136     continue
23137   fi
23138   # Extract the definition of DEPDIR, am__include, and am__quote
23139   # from the Makefile without running `make'.
23140   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23141   test -z "$DEPDIR" && continue
23142   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23143   test -z "am__include" && continue
23144   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23145   # When using ansi2knr, U may be empty or an underscore; expand it
23146   U=`sed -n 's/^U = //p' < "$mf"`
23147   # Find all dependency output files, they are included files with
23148   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23149   # simplest approach to changing $(DEPDIR) to its actual value in the
23150   # expansion.
23151   for file in `sed -n "
23152     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23153        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23154     # Make sure the directory exists.
23155     test -f "$dirpart/$file" && continue
23156     fdir=`(dirname "$file") 2>/dev/null ||
23157 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158          X"$file" : 'X\(//\)[^/]' \| \
23159          X"$file" : 'X\(//\)$' \| \
23160          X"$file" : 'X\(/\)' \| \
23161          .     : '\(.\)' 2>/dev/null ||
23162 echo X"$file" |
23163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23165           /^X\(\/\/\)$/{ s//\1/; q; }
23166           /^X\(\/\).*/{ s//\1/; q; }
23167           s/.*/./; q'`
23168     { if $as_mkdir_p; then
23169     mkdir -p $dirpart/$fdir
23170   else
23171     as_dir=$dirpart/$fdir
23172     as_dirs=
23173     while test ! -d "$as_dir"; do
23174       as_dirs="$as_dir $as_dirs"
23175       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177          X"$as_dir" : 'X\(//\)[^/]' \| \
23178          X"$as_dir" : 'X\(//\)$' \| \
23179          X"$as_dir" : 'X\(/\)' \| \
23180          .     : '\(.\)' 2>/dev/null ||
23181 echo X"$as_dir" |
23182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23184           /^X\(\/\/\)$/{ s//\1/; q; }
23185           /^X\(\/\).*/{ s//\1/; q; }
23186           s/.*/./; q'`
23187     done
23188     test ! -n "$as_dirs" || mkdir $as_dirs
23189   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23190 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23191    { (exit 1); exit 1; }; }; }
23192
23193     # echo "creating $dirpart/$file"
23194     echo '# dummy' > "$dirpart/$file"
23195   done
23196 done
23197  ;;
23198   esac
23199 done
23200 _ACEOF
23201
23202 cat >>$CONFIG_STATUS <<\_ACEOF
23203
23204 { (exit 0); exit 0; }
23205 _ACEOF
23206 chmod +x $CONFIG_STATUS
23207 ac_clean_files=$ac_clean_files_save
23208
23209
23210 # configure is writing to config.log, and then calls config.status.
23211 # config.status does its own redirection, appending to config.log.
23212 # Unfortunately, on DOS this fails, as config.log is still kept open
23213 # by configure, so config.status won't be able to write to it; its
23214 # output is simply discarded.  So we exec the FD to /dev/null,
23215 # effectively closing config.log, so it can be properly (re)opened and
23216 # appended to by config.status.  When coming back to configure, we
23217 # need to make the FD available again.
23218 if test "$no_create" != yes; then
23219   ac_cs_success=:
23220   ac_config_status_args=
23221   test "$silent" = yes &&
23222     ac_config_status_args="$ac_config_status_args --quiet"
23223   exec 5>/dev/null
23224   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23225   exec 5>>config.log
23226   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23227   # would make configure fail if this is the last instruction.
23228   $ac_cs_success || { (exit 1); exit 1; }
23229 fi
23230