]> andersk Git - moira.git/blob - configure
Command line printer manipulation client, and build goo.
[moira.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="patchlevel.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subdirs_all="$ac_subdirs_all util/et"
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SO_LDFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EGREP LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SET_MAKE mrbindir subdirs COM_ERR_SUBDIR COMPILE_ET REG_SVR_DEFS REG_SVR_INCLUDES REG_SVR_LIBS RSAREF_CPPFLAGS RSAREF_LIBS RSAREF_SUBDIRS RSAREF_LIBDEP PRO_C PRO_C_DEFS PRO_C_INCLUDES PRO_C_OPTS SQL_LIBS SVRSUBDIRS JAVA_CPPFLAGS WEBMOIRA_SUBDIRS LDAP_CPPFLAGS LDAP_LIBS WINAD_SUBDIRS AFS_CPPFLAGS AFS_PRO_C_INCLUDES AFS_LIBS AFS_DIR AFS_SUBDIRS AFS_SYNCDIR READLINE_CPPFLAGS READLINE_LIBS CURSES_CPPFLAGS CURSES_LIBS CURSES_SUBDIRS MR_LIBDEP KLIBS LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016
1017   cat <<\_ACEOF
1018
1019 Optional Features:
1020   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1021   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1022   --enable-shared[=PKGS]
1023                           build shared libraries [default=yes]
1024   --enable-static[=PKGS]
1025                           build static libraries [default=yes]
1026   --enable-fast-install[=PKGS]
1027                           optimize for fast installation [default=yes]
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029   --enable-athena         Enable Athena-specific policy decisions
1030
1031 Optional Packages:
1032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1035   --with-pic              try to use only PIC/non-PIC objects [default=use
1036                           both]
1037   --with-tags[=TAGS]
1038                           include additional configurations [automatic]
1039   --with-com_err=PREFIX   Specify location of com_err
1040   --with-krb4=PREFIX      Specify location of krb4
1041   --with-krb5=PREFIX      Specify location of krb5
1042   --with-hesiod=PREFIX    Specify location of Hesiod
1043   --with-zephyr=PREFIX    Specify location of Zephyr
1044   --with-rsaref=PREFIX      Specify location of RSAREF
1045   --with-oracle=PREFIX    Specify location of Oracle (for server)
1046  --with-java=PREFIX       Specify location of Java libs and headers
1047   --with-ldap=PREFIX      Specify location of LDAP libs (for server)
1048   --with-afs=PREFIX       Specify location of AFS libs (for server)
1049   --with-readline=PREFIX  Specify location of GNU readline
1050
1051 Some influential environment variables:
1052   CC          C compiler command
1053   CFLAGS      C compiler flags
1054   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055               nonstandard directory <lib dir>
1056   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057               headers in a nonstandard directory <include dir>
1058   CPP         C preprocessor
1059   CXX         C++ compiler command
1060   CXXFLAGS    C++ compiler flags
1061   CXXCPP      C++ preprocessor
1062   F77         Fortran 77 compiler command
1063   FFLAGS      Fortran 77 compiler flags
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107   case "$ac_dir" in
1108   .) ac_abs_builddir=`pwd`;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116   case ${ac_top_builddir}. in
1117   .) ac_abs_top_builddir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125   case $ac_srcdir in
1126   .) ac_abs_srcdir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134   case $ac_top_srcdir in
1135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138   esac;;
1139 esac
1140
1141     cd $ac_dir
1142     # Check for guested configure; otherwise get Cygnus style configure.
1143     if test -f $ac_srcdir/configure.gnu; then
1144       echo
1145       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146     elif test -f $ac_srcdir/configure; then
1147       echo
1148       $SHELL $ac_srcdir/configure  --help=recursive
1149     elif test -f $ac_srcdir/configure.ac ||
1150            test -f $ac_srcdir/configure.in; then
1151       echo
1152       $ac_configure --help
1153     else
1154       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155     fi
1156     cd $ac_popdir
1157   done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162   cat <<\_ACEOF
1163
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1167 _ACEOF
1168   exit 0
1169 fi
1170 exec 5>config.log
1171 cat >&5 <<_ACEOF
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1174
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178   $ $0 $@
1179
1180 _ACEOF
1181 {
1182 cat <<_ASUNAME
1183 ## --------- ##
1184 ## Platform. ##
1185 ## --------- ##
1186
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204 _ASUNAME
1205
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 for as_dir in $PATH
1208 do
1209   IFS=$as_save_IFS
1210   test -z "$as_dir" && as_dir=.
1211   echo "PATH: $as_dir"
1212 done
1213
1214 } >&5
1215
1216 cat >&5 <<_ACEOF
1217
1218
1219 ## ----------- ##
1220 ## Core tests. ##
1221 ## ----------- ##
1222
1223 _ACEOF
1224
1225
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_configure_args=
1232 ac_configure_args0=
1233 ac_configure_args1=
1234 ac_sep=
1235 ac_must_keep_next=false
1236 for ac_pass in 1 2
1237 do
1238   for ac_arg
1239   do
1240     case $ac_arg in
1241     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243     | -silent | --silent | --silen | --sile | --sil)
1244       continue ;;
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     esac
1248     case $ac_pass in
1249     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250     2)
1251       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252       if test $ac_must_keep_next = true; then
1253         ac_must_keep_next=false # Got value, back to normal.
1254       else
1255         case $ac_arg in
1256           *=* | --config-cache | -C | -disable-* | --disable-* \
1257           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259           | -with-* | --with-* | -without-* | --without-* | --x)
1260             case "$ac_configure_args0 " in
1261               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262             esac
1263             ;;
1264           -* ) ac_must_keep_next=true ;;
1265         esac
1266       fi
1267       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268       # Get rid of the leading space.
1269       ac_sep=" "
1270       ;;
1271     esac
1272   done
1273 done
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log.  We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283   # Save into config.log some information that might help in debugging.
1284   {
1285     echo
1286
1287     cat <<\_ASBOX
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1291 _ASBOX
1292     echo
1293     # The following way of writing the cache mishandles newlines in values,
1294 {
1295   (set) 2>&1 |
1296     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297     *ac_space=\ *)
1298       sed -n \
1299         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301       ;;
1302     *)
1303       sed -n \
1304         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305       ;;
1306     esac;
1307 }
1308     echo
1309
1310     cat <<\_ASBOX
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1314 _ASBOX
1315     echo
1316     for ac_var in $ac_subst_vars
1317     do
1318       eval ac_val=$`echo $ac_var`
1319       echo "$ac_var='"'"'$ac_val'"'"'"
1320     done | sort
1321     echo
1322
1323     if test -n "$ac_subst_files"; then
1324       cat <<\_ASBOX
1325 ## ------------- ##
1326 ## Output files. ##
1327 ## ------------- ##
1328 _ASBOX
1329       echo
1330       for ac_var in $ac_subst_files
1331       do
1332         eval ac_val=$`echo $ac_var`
1333         echo "$ac_var='"'"'$ac_val'"'"'"
1334       done | sort
1335       echo
1336     fi
1337
1338     if test -s confdefs.h; then
1339       cat <<\_ASBOX
1340 ## ----------- ##
1341 ## confdefs.h. ##
1342 ## ----------- ##
1343 _ASBOX
1344       echo
1345       sed "/^$/d" confdefs.h | sort
1346       echo
1347     fi
1348     test "$ac_signal" != 0 &&
1349       echo "$as_me: caught signal $ac_signal"
1350     echo "$as_me: exit $exit_status"
1351   } >&5
1352   rm -f core *.core &&
1353   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354     exit $exit_status
1355      ' 0
1356 for ac_signal in 1 2 13 15; do
1357   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 done
1359 ac_signal=0
1360
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 echo >confdefs.h
1365
1366 # Predefined preprocessor variables.
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 _ACEOF
1371
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 _ACEOF
1391
1392
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396   if test "x$prefix" != xNONE; then
1397     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398   else
1399     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400   fi
1401 fi
1402 for ac_site_file in $CONFIG_SITE; do
1403   if test -r "$ac_site_file"; then
1404     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406     sed 's/^/| /' "$ac_site_file" >&5
1407     . "$ac_site_file"
1408   fi
1409 done
1410
1411 if test -r "$cache_file"; then
1412   # Some versions of bash will fail to source /dev/null (special
1413   # files actually), so we avoid doing that.
1414   if test -f "$cache_file"; then
1415     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1417     case $cache_file in
1418       [\\/]* | ?:[\\/]* ) . $cache_file;;
1419       *)                      . ./$cache_file;;
1420     esac
1421   fi
1422 else
1423   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1425   >$cache_file
1426 fi
1427
1428 # Check that the precious variables saved in the cache have kept the same
1429 # value.
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434   eval ac_new_set=\$ac_env_${ac_var}_set
1435   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436   eval ac_new_val="\$ac_env_${ac_var}_value"
1437   case $ac_old_set,$ac_new_set in
1438     set,)
1439       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441       ac_cache_corrupted=: ;;
1442     ,set)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,);;
1447     *)
1448       if test "x$ac_old_val" != "x$ac_new_val"; then
1449         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452 echo "$as_me:   former value:  $ac_old_val" >&2;}
1453         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454 echo "$as_me:   current value: $ac_new_val" >&2;}
1455         ac_cache_corrupted=:
1456       fi;;
1457   esac
1458   # Pass precious variables to config.status.
1459   if test "$ac_new_set" = set; then
1460     case $ac_new_val in
1461     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463     *) ac_arg=$ac_var=$ac_new_val ;;
1464     esac
1465     case " $ac_configure_args " in
1466       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468     esac
1469   fi
1470 done
1471 if $ac_cache_corrupted; then
1472   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476    { (exit 1); exit 1; }; }
1477 fi
1478
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506 ac_aux_dir=
1507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508   if test -f $ac_dir/install-sh; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/install-sh -c"
1511     break
1512   elif test -f $ac_dir/install.sh; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/install.sh -c"
1515     break
1516   elif test -f $ac_dir/shtool; then
1517     ac_aux_dir=$ac_dir
1518     ac_install_sh="$ac_aux_dir/shtool install -c"
1519     break
1520   fi
1521 done
1522 if test -z "$ac_aux_dir"; then
1523   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525    { (exit 1); exit 1; }; }
1526 fi
1527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544   ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548    { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552    { (exit 1); exit 1; }; }
1553
1554 fi
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1557 build=$ac_cv_build
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570   ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1579 host=$ac_cv_host
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585 # SO_LDFLAGS setting below is a great big ick.
1586 # But it beats sucking in libtool for one small part of the source tree.
1587 case $host_os in
1588 solaris*)
1589         short_os=solaris
1590         SO_LDFLAGS="-G"
1591         ;;
1592 irix*)
1593         short_os=irix
1594         SO_LDFLAGS="-shared"
1595         ;;
1596 linux*)
1597         short_os=linux
1598         SO_LDFLAGS="-shared"
1599         ;;
1600 esac
1601
1602
1603
1604
1605
1606
1607
1608
1609 ac_ext=c
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   if test -n "$CC"; then
1623   ac_cv_prog_CC="$CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   for ac_exec_ext in '' $ac_executable_extensions; do
1631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634     break 2
1635   fi
1636 done
1637 done
1638
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643   echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if test -z "$ac_cv_prog_CC"; then
1652   ac_ct_CC=$CC
1653   # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   if test -n "$ac_ct_CC"; then
1661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   for ac_exec_ext in '' $ac_executable_extensions; do
1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670     ac_cv_prog_ac_ct_CC="gcc"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1683 else
1684   echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688   CC=$ac_ct_CC
1689 else
1690   CC="$ac_cv_prog_CC"
1691 fi
1692
1693 if test -z "$CC"; then
1694   if test -n "$ac_tool_prefix"; then
1695   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="${ac_tool_prefix}cc"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$ac_cv_prog_CC"; then
1732   ac_ct_CC=$CC
1733   # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="cc"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   CC=$ac_ct_CC
1769 else
1770   CC="$ac_cv_prog_CC"
1771 fi
1772
1773 fi
1774 if test -z "$CC"; then
1775   # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$CC"; then
1783   ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785   ac_prog_rejected=no
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789   IFS=$as_save_IFS
1790   test -z "$as_dir" && as_dir=.
1791   for ac_exec_ext in '' $ac_executable_extensions; do
1792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794        ac_prog_rejected=yes
1795        continue
1796      fi
1797     ac_cv_prog_CC="cc"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 if test $ac_prog_rejected = yes; then
1805   # We found a bogon in the path, so make sure we never use it.
1806   set dummy $ac_cv_prog_CC
1807   shift
1808   if test $# != 0; then
1809     # We chose a different compiler from the bogus one.
1810     # However, it has the same basename, so the bogon will be chosen
1811     # first if we set CC to just the basename; use the full file name.
1812     shift
1813     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814   fi
1815 fi
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820   echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$CC"; then
1829   if test -n "$ac_tool_prefix"; then
1830   for ac_prog in cl
1831   do
1832     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837   echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839   if test -n "$CC"; then
1840   ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845   IFS=$as_save_IFS
1846   test -z "$as_dir" && as_dir=.
1847   for ac_exec_ext in '' $ac_executable_extensions; do
1848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851     break 2
1852   fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860   echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863   echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867     test -n "$CC" && break
1868   done
1869 fi
1870 if test -z "$CC"; then
1871   ac_ct_CC=$CC
1872   for ac_prog in cl
1873 do
1874   # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_CC"; then
1882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_CC="$ac_prog"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   test -n "$ac_ct_CC" && break
1910 done
1911
1912   CC=$ac_ct_CC
1913 fi
1914
1915 fi
1916
1917
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&2;}
1922    { (exit 1); exit 1; }; }
1923
1924 # Provide some information about the compiler.
1925 echo "$as_me:$LINENO:" \
1926      "checking for C compiler version" >&5
1927 ac_compiler=`set X $ac_compile; echo $2`
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1929   (eval $ac_compiler --version </dev/null >&5) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1934   (eval $ac_compiler -v </dev/null >&5) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); }
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1939   (eval $ac_compiler -V </dev/null >&5) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }
1943
1944 cat >conftest.$ac_ext <<_ACEOF
1945 /* confdefs.h.  */
1946 _ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h.  */
1950
1951 int
1952 main ()
1953 {
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 ac_clean_files_save=$ac_clean_files
1960 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1961 # Try to create an executable without -o first, disregard a.out.
1962 # It will help us diagnose broken compilers, and finding out an intuition
1963 # of exeext.
1964 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1965 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1966 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1968   (eval $ac_link_default) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }; then
1972   # Find the output, starting from the most likely.  This scheme is
1973 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1974 # resort.
1975
1976 # Be careful to initialize this variable, since it used to be cached.
1977 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1978 ac_cv_exeext=
1979 # b.out is created by i960 compilers.
1980 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1981 do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1985         ;;
1986     conftest.$ac_ext )
1987         # This is the source file.
1988         ;;
1989     [ab].out )
1990         # We found the default executable, but exeext='' is most
1991         # certainly right.
1992         break;;
1993     *.* )
1994         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995         # FIXME: I believe we export ac_cv_exeext for Libtool,
1996         # but it would be cool to find out if it's true.  Does anybody
1997         # maintain Libtool? --akim.
1998         export ac_cv_exeext
1999         break;;
2000     * )
2001         break;;
2002   esac
2003 done
2004 else
2005   echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: C compiler cannot create executables
2011 See \`config.log' for more details." >&2;}
2012    { (exit 77); exit 77; }; }
2013 fi
2014
2015 ac_exeext=$ac_cv_exeext
2016 echo "$as_me:$LINENO: result: $ac_file" >&5
2017 echo "${ECHO_T}$ac_file" >&6
2018
2019 # Check the compiler produces executables we can run.  If not, either
2020 # the compiler is broken, or we cross compile.
2021 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2022 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2023 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2024 # If not cross compiling, check that we can run a simple program.
2025 if test "$cross_compiling" != yes; then
2026   if { ac_try='./$ac_file'
2027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028   (eval $ac_try) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; }; then
2032     cross_compiling=no
2033   else
2034     if test "$cross_compiling" = maybe; then
2035         cross_compiling=yes
2036     else
2037         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot run C compiled programs.
2041 If you meant to cross compile, use \`--host'.
2042 See \`config.log' for more details." >&2;}
2043    { (exit 1); exit 1; }; }
2044     fi
2045   fi
2046 fi
2047 echo "$as_me:$LINENO: result: yes" >&5
2048 echo "${ECHO_T}yes" >&6
2049
2050 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2051 ac_clean_files=$ac_clean_files_save
2052 # Check the compiler produces executables we can run.  If not, either
2053 # the compiler is broken, or we cross compile.
2054 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2055 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2056 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2057 echo "${ECHO_T}$cross_compiling" >&6
2058
2059 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2060 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2062   (eval $ac_link) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }; then
2066   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2067 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2068 # work properly (i.e., refer to `conftest.exe'), while it won't with
2069 # `rm'.
2070 for ac_file in conftest.exe conftest conftest.*; do
2071   test -f "$ac_file" || continue
2072   case $ac_file in
2073     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2074     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075           export ac_cv_exeext
2076           break;;
2077     * ) break;;
2078   esac
2079 done
2080 else
2081   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084 See \`config.log' for more details." >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087
2088 rm -f conftest$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090 echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092 rm -f conftest.$ac_ext
2093 EXEEXT=$ac_cv_exeext
2094 ac_exeext=$EXEEXT
2095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097 if test "${ac_cv_objext+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106
2107 int
2108 main ()
2109 {
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 rm -f conftest.o conftest.obj
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117   (eval $ac_compile) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; then
2121   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122   case $ac_file in
2123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125        break;;
2126   esac
2127 done
2128 else
2129   echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&2;}
2136    { (exit 1); exit 1; }; }
2137 fi
2138
2139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140 fi
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$OBJEXT
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156
2157 int
2158 main ()
2159 {
2160 #ifndef __GNUC__
2161        choke me
2162 #endif
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170   (eval $ac_compile) 2>conftest.er1
2171   ac_status=$?
2172   grep -v '^ *+' conftest.er1 >conftest.err
2173   rm -f conftest.er1
2174   cat conftest.err >&5
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); } &&
2177          { ac_try='test -z "$ac_c_werror_flag"
2178                          || test ! -s conftest.err'
2179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180   (eval $ac_try) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_compiler_gnu=yes
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_compiler_gnu=no
2196 fi
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200 fi
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2206 CFLAGS="-g"
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2218
2219 int
2220 main ()
2221 {
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>conftest.er1
2230   ac_status=$?
2231   grep -v '^ *+' conftest.er1 >conftest.err
2232   rm -f conftest.er1
2233   cat conftest.err >&5
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); } &&
2236          { ac_try='test -z "$ac_c_werror_flag"
2237                          || test ! -s conftest.err'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; } &&
2243          { ac_try='test -s conftest.$ac_objext'
2244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245   (eval $ac_try) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; }; then
2249   ac_cv_prog_cc_g=yes
2250 else
2251   echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_cv_prog_cc_g=no
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261   CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263   if test "$GCC" = yes; then
2264     CFLAGS="-g -O2"
2265   else
2266     CFLAGS="-g"
2267   fi
2268 else
2269   if test "$GCC" = yes; then
2270     CFLAGS="-O2"
2271   else
2272     CFLAGS=
2273   fi
2274 fi
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   ac_cv_prog_cc_stdc=no
2281 ac_save_CC=$CC
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 #include <stdarg.h>
2289 #include <stdio.h>
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2296      char **p;
2297      int i;
2298 {
2299   return p[i];
2300 }
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2302 {
2303   char *s;
2304   va_list v;
2305   va_start (v,p);
2306   s = g (p, va_arg (v,int));
2307   va_end (v);
2308   return s;
2309 }
2310
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2312    function prototypes and stuff, but not '\xHH' hex character constants.
2313    These don't provoke an error unfortunately, instead are silently treated
2314    as 'x'.  The following induces an error, until -std1 is added to get
2315    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2316    array size at least.  It's necessary to write '\x00'==0 to get something
2317    that's true only with -std1.  */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324 int argc;
2325 char **argv;
2326 int
2327 main ()
2328 {
2329 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX                   -qlanglvl=ansi
2337 # Ultrix and OSF/1      -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2340 # SVR4                  -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 do
2343   CC="$ac_save_CC $ac_arg"
2344   rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346   (eval $ac_compile) 2>conftest.er1
2347   ac_status=$?
2348   grep -v '^ *+' conftest.er1 >conftest.err
2349   rm -f conftest.er1
2350   cat conftest.err >&5
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -z "$ac_c_werror_flag"
2354                          || test ! -s conftest.err'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   ac_cv_prog_cc_stdc=$ac_arg
2367 break
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.err conftest.$ac_objext
2374 done
2375 rm -f conftest.$ac_ext conftest.$ac_objext
2376 CC=$ac_save_CC
2377
2378 fi
2379
2380 case "x$ac_cv_prog_cc_stdc" in
2381   x|xno)
2382     echo "$as_me:$LINENO: result: none needed" >&5
2383 echo "${ECHO_T}none needed" >&6 ;;
2384   *)
2385     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387     CC="$CC $ac_cv_prog_cc_stdc" ;;
2388 esac
2389
2390 # Some people use a C++ compiler to compile C.  Since we use `exit',
2391 # in C++ we need to declare it.  In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2395 #ifndef __cplusplus
2396   choke me
2397 #endif
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   for ac_declaration in \
2422    '' \
2423    'extern "C" void std::exit (int) throw (); using std::exit;' \
2424    'extern "C" void std::exit (int); using std::exit;' \
2425    'extern "C" void exit (int) throw ();' \
2426    'extern "C" void exit (int);' \
2427    'void exit (int);'
2428 do
2429   cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435 $ac_declaration
2436 #include <stdlib.h>
2437 int
2438 main ()
2439 {
2440 exit (42);
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -z "$ac_c_werror_flag"
2455                          || test ! -s conftest.err'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; }; then
2467   :
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 continue
2473 fi
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475   cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481 $ac_declaration
2482 int
2483 main ()
2484 {
2485 exit (42);
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492   (eval $ac_compile) 2>conftest.er1
2493   ac_status=$?
2494   grep -v '^ *+' conftest.er1 >conftest.err
2495   rm -f conftest.er1
2496   cat conftest.err >&5
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); } &&
2499          { ac_try='test -z "$ac_c_werror_flag"
2500                          || test ! -s conftest.err'
2501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502   (eval $ac_try) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508   (eval $ac_try) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; }; then
2512   break
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 done
2520 rm -f conftest*
2521 if test -n "$ac_declaration"; then
2522   echo '#ifdef __cplusplus' >>confdefs.h
2523   echo $ac_declaration      >>confdefs.h
2524   echo '#endif'             >>confdefs.h
2525 fi
2526
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 fi
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539 # Find a good install program.  We prefer a C program (faster),
2540 # so one script is as good as another.  But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2545 # AIX /bin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2554 if test -z "$INSTALL"; then
2555 if test "${ac_cv_path_install+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563   # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in
2565   ./ | .// | /cC/* | \
2566   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2568   /usr/ucb/* ) ;;
2569   *)
2570     # OSF1 and SCO ODT 3.0 have their own names for install.
2571     # Don't use installbsd from OSF since it installs stuff as root
2572     # by default.
2573     for ac_prog in ginstall scoinst install; do
2574       for ac_exec_ext in '' $ac_executable_extensions; do
2575         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576           if test $ac_prog = install &&
2577             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578             # AIX install.  It has an incompatible calling convention.
2579             :
2580           elif test $ac_prog = install &&
2581             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582             # program-specific install script used by HP pwplus--don't use.
2583             :
2584           else
2585             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586             break 3
2587           fi
2588         fi
2589       done
2590     done
2591     ;;
2592 esac
2593 done
2594
2595
2596 fi
2597   if test "${ac_cv_path_install+set}" = set; then
2598     INSTALL=$ac_cv_path_install
2599   else
2600     # As a last resort, use the slow shell script.  We don't cache a
2601     # path for INSTALL within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the path is relative.
2604     INSTALL=$ac_install_sh
2605   fi
2606 fi
2607 echo "$as_me:$LINENO: result: $INSTALL" >&5
2608 echo "${ECHO_T}$INSTALL" >&6
2609
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618 if test -n "$ac_tool_prefix"; then
2619   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_RANLIB+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$RANLIB"; then
2627   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642
2643 fi
2644 fi
2645 RANLIB=$ac_cv_prog_RANLIB
2646 if test -n "$RANLIB"; then
2647   echo "$as_me:$LINENO: result: $RANLIB" >&5
2648 echo "${ECHO_T}$RANLIB" >&6
2649 else
2650   echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654 fi
2655 if test -z "$ac_cv_prog_RANLIB"; then
2656   ac_ct_RANLIB=$RANLIB
2657   # Extract the first word of "ranlib", so it can be a program name with args.
2658 set dummy ranlib; ac_word=$2
2659 echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   if test -n "$ac_ct_RANLIB"; then
2665   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672   for ac_exec_ext in '' $ac_executable_extensions; do
2673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674     ac_cv_prog_ac_ct_RANLIB="ranlib"
2675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679 done
2680
2681   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2682 fi
2683 fi
2684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2685 if test -n "$ac_ct_RANLIB"; then
2686   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2687 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2688 else
2689   echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2691 fi
2692
2693   RANLIB=$ac_ct_RANLIB
2694 else
2695   RANLIB="$ac_cv_prog_RANLIB"
2696 fi
2697
2698 # Check whether --enable-shared or --disable-shared was given.
2699 if test "${enable_shared+set}" = set; then
2700   enableval="$enable_shared"
2701   p=${PACKAGE-default}
2702     case $enableval in
2703     yes) enable_shared=yes ;;
2704     no) enable_shared=no ;;
2705     *)
2706       enable_shared=no
2707       # Look at the argument we got.  We use all the common list separators.
2708       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2709       for pkg in $enableval; do
2710         IFS="$lt_save_ifs"
2711         if test "X$pkg" = "X$p"; then
2712           enable_shared=yes
2713         fi
2714       done
2715       IFS="$lt_save_ifs"
2716       ;;
2717     esac
2718 else
2719   enable_shared=yes
2720 fi;
2721
2722 # Check whether --enable-static or --disable-static was given.
2723 if test "${enable_static+set}" = set; then
2724   enableval="$enable_static"
2725   p=${PACKAGE-default}
2726     case $enableval in
2727     yes) enable_static=yes ;;
2728     no) enable_static=no ;;
2729     *)
2730      enable_static=no
2731       # Look at the argument we got.  We use all the common list separators.
2732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2733       for pkg in $enableval; do
2734         IFS="$lt_save_ifs"
2735         if test "X$pkg" = "X$p"; then
2736           enable_static=yes
2737         fi
2738       done
2739       IFS="$lt_save_ifs"
2740       ;;
2741     esac
2742 else
2743   enable_static=yes
2744 fi;
2745
2746 # Check whether --enable-fast-install or --disable-fast-install was given.
2747 if test "${enable_fast_install+set}" = set; then
2748   enableval="$enable_fast_install"
2749   p=${PACKAGE-default}
2750     case $enableval in
2751     yes) enable_fast_install=yes ;;
2752     no) enable_fast_install=no ;;
2753     *)
2754       enable_fast_install=no
2755       # Look at the argument we got.  We use all the common list separators.
2756       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2757       for pkg in $enableval; do
2758         IFS="$lt_save_ifs"
2759         if test "X$pkg" = "X$p"; then
2760           enable_fast_install=yes
2761         fi
2762       done
2763       IFS="$lt_save_ifs"
2764       ;;
2765     esac
2766 else
2767   enable_fast_install=yes
2768 fi;
2769
2770 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2771 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2772 if test "${lt_cv_path_SED+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   # Loop through the user's path and test for sed and gsed.
2776 # Then use that list of sed's as ones to test for truncation.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for lt_ac_prog in sed gsed; do
2783     for ac_exec_ext in '' $ac_executable_extensions; do
2784       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2785         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2786       fi
2787     done
2788   done
2789 done
2790 lt_ac_max=0
2791 lt_ac_count=0
2792 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2793 # along with /bin/sed that truncates output.
2794 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2795   test ! -f $lt_ac_sed && break
2796   cat /dev/null > conftest.in
2797   lt_ac_count=0
2798   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2799   # Check for GNU sed and select it if it is found.
2800   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2801     lt_cv_path_SED=$lt_ac_sed
2802     break
2803   fi
2804   while true; do
2805     cat conftest.in conftest.in >conftest.tmp
2806     mv conftest.tmp conftest.in
2807     cp conftest.in conftest.nl
2808     echo >>conftest.nl
2809     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2810     cmp -s conftest.out conftest.nl || break
2811     # 10000 chars as input seems more than enough
2812     test $lt_ac_count -gt 10 && break
2813     lt_ac_count=`expr $lt_ac_count + 1`
2814     if test $lt_ac_count -gt $lt_ac_max; then
2815       lt_ac_max=$lt_ac_count
2816       lt_cv_path_SED=$lt_ac_sed
2817     fi
2818   done
2819 done
2820 SED=$lt_cv_path_SED
2821
2822 fi
2823
2824 echo "$as_me:$LINENO: result: $SED" >&5
2825 echo "${ECHO_T}$SED" >&6
2826
2827 echo "$as_me:$LINENO: checking for egrep" >&5
2828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2829 if test "${ac_cv_prog_egrep+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2833     then ac_cv_prog_egrep='grep -E'
2834     else ac_cv_prog_egrep='egrep'
2835     fi
2836 fi
2837 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2838 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2839  EGREP=$ac_cv_prog_egrep
2840
2841
2842
2843 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2844 if test "${with_gnu_ld+set}" = set; then
2845   withval="$with_gnu_ld"
2846   test "$withval" = no || with_gnu_ld=yes
2847 else
2848   with_gnu_ld=no
2849 fi;
2850 ac_prog=ld
2851 if test "$GCC" = yes; then
2852   # Check if gcc -print-prog-name=ld gives a path.
2853   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2854 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2855   case $host in
2856   *-*-mingw*)
2857     # gcc leaves a trailing carriage return which upsets mingw
2858     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2859   *)
2860     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2861   esac
2862   case $ac_prog in
2863     # Accept absolute paths.
2864     [\\/]* | ?:[\\/]*)
2865       re_direlt='/[^/][^/]*/\.\./'
2866       # Canonicalize the pathname of ld
2867       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2868       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2869         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2870       done
2871       test -z "$LD" && LD="$ac_prog"
2872       ;;
2873   "")
2874     # If it fails, then pretend we aren't using GCC.
2875     ac_prog=ld
2876     ;;
2877   *)
2878     # If it is relative, then search for the first ld in PATH.
2879     with_gnu_ld=unknown
2880     ;;
2881   esac
2882 elif test "$with_gnu_ld" = yes; then
2883   echo "$as_me:$LINENO: checking for GNU ld" >&5
2884 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2885 else
2886   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2887 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2888 fi
2889 if test "${lt_cv_path_LD+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   if test -z "$LD"; then
2893   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2894   for ac_dir in $PATH; do
2895     IFS="$lt_save_ifs"
2896     test -z "$ac_dir" && ac_dir=.
2897     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2898       lt_cv_path_LD="$ac_dir/$ac_prog"
2899       # Check to see if the program is GNU ld.  I'd rather use --version,
2900       # but apparently some GNU ld's only accept -v.
2901       # Break only if it was the GNU/non-GNU ld that we prefer.
2902       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2903       *GNU* | *'with BFD'*)
2904         test "$with_gnu_ld" != no && break
2905         ;;
2906       *)
2907         test "$with_gnu_ld" != yes && break
2908         ;;
2909       esac
2910     fi
2911   done
2912   IFS="$lt_save_ifs"
2913 else
2914   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2915 fi
2916 fi
2917
2918 LD="$lt_cv_path_LD"
2919 if test -n "$LD"; then
2920   echo "$as_me:$LINENO: result: $LD" >&5
2921 echo "${ECHO_T}$LD" >&6
2922 else
2923   echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2925 fi
2926 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2927 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2928    { (exit 1); exit 1; }; }
2929 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2930 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2931 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2935 case `$LD -v 2>&1 </dev/null` in
2936 *GNU* | *'with BFD'*)
2937   lt_cv_prog_gnu_ld=yes
2938   ;;
2939 *)
2940   lt_cv_prog_gnu_ld=no
2941   ;;
2942 esac
2943 fi
2944 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2945 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2946 with_gnu_ld=$lt_cv_prog_gnu_ld
2947
2948
2949 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2950 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2951 if test "${lt_cv_ld_reload_flag+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   lt_cv_ld_reload_flag='-r'
2955 fi
2956 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2957 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2958 reload_flag=$lt_cv_ld_reload_flag
2959 case $reload_flag in
2960 "" | " "*) ;;
2961 *) reload_flag=" $reload_flag" ;;
2962 esac
2963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2964
2965 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2966 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2967 if test "${lt_cv_path_NM+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   if test -n "$NM"; then
2971   # Let the user override the test.
2972   lt_cv_path_NM="$NM"
2973 else
2974   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2975   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2976     IFS="$lt_save_ifs"
2977     test -z "$ac_dir" && ac_dir=.
2978     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2979     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2980       # Check to see if the nm accepts a BSD-compat flag.
2981       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2982       #   nm: unknown option "B" ignored
2983       # Tru64's nm complains that /dev/null is an invalid object file
2984       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2985       */dev/null* | *'Invalid file or object type'*)
2986         lt_cv_path_NM="$tmp_nm -B"
2987         break
2988         ;;
2989       *)
2990         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2991         */dev/null*)
2992           lt_cv_path_NM="$tmp_nm -p"
2993           break
2994           ;;
2995         *)
2996           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2997           continue # so that we can try to find one that supports BSD flags
2998           ;;
2999         esac
3000       esac
3001     fi
3002   done
3003   IFS="$lt_save_ifs"
3004   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3005 fi
3006 fi
3007 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3008 echo "${ECHO_T}$lt_cv_path_NM" >&6
3009 NM="$lt_cv_path_NM"
3010
3011 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3013 LN_S=$as_ln_s
3014 if test "$LN_S" = "ln -s"; then
3015   echo "$as_me:$LINENO: result: yes" >&5
3016 echo "${ECHO_T}yes" >&6
3017 else
3018   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3019 echo "${ECHO_T}no, using $LN_S" >&6
3020 fi
3021
3022 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3023 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3024 if test "${lt_cv_deplibs_check_method+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   lt_cv_file_magic_cmd='$MAGIC_CMD'
3028 lt_cv_file_magic_test_file=
3029 lt_cv_deplibs_check_method='unknown'
3030 # Need to set the preceding variable on all platforms that support
3031 # interlibrary dependencies.
3032 # 'none' -- dependencies not supported.
3033 # `unknown' -- same as none, but documents that we really don't know.
3034 # 'pass_all' -- all dependencies passed with no checks.
3035 # 'test_compile' -- check by making test program.
3036 # 'file_magic [[regex]]' -- check by looking for files in library path
3037 # which responds to the $file_magic_cmd with a given extended regex.
3038 # If you have `file' or equivalent on your system and you're not sure
3039 # whether `pass_all' will *always* work, you probably want this one.
3040
3041 case $host_os in
3042 aix4* | aix5*)
3043   lt_cv_deplibs_check_method=pass_all
3044   ;;
3045
3046 beos*)
3047   lt_cv_deplibs_check_method=pass_all
3048   ;;
3049
3050 bsdi4*)
3051   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3052   lt_cv_file_magic_cmd='/usr/bin/file -L'
3053   lt_cv_file_magic_test_file=/shlib/libc.so
3054   ;;
3055
3056 cygwin*)
3057   # func_win32_libid is a shell function defined in ltmain.sh
3058   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3059   lt_cv_file_magic_cmd='func_win32_libid'
3060   ;;
3061
3062 mingw* | pw32*)
3063   # Base MSYS/MinGW do not provide the 'file' command needed by
3064   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3065   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3066   lt_cv_file_magic_cmd='$OBJDUMP -f'
3067   ;;
3068
3069 darwin* | rhapsody*)
3070   lt_cv_deplibs_check_method=pass_all
3071   ;;
3072
3073 freebsd* | kfreebsd*-gnu)
3074   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3075     case $host_cpu in
3076     i*86 )
3077       # Not sure whether the presence of OpenBSD here was a mistake.
3078       # Let's accept both of them until this is cleared up.
3079       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3080       lt_cv_file_magic_cmd=/usr/bin/file
3081       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3082       ;;
3083     esac
3084   else
3085     lt_cv_deplibs_check_method=pass_all
3086   fi
3087   ;;
3088
3089 gnu*)
3090   lt_cv_deplibs_check_method=pass_all
3091   ;;
3092
3093 hpux10.20* | hpux11*)
3094   lt_cv_file_magic_cmd=/usr/bin/file
3095   case "$host_cpu" in
3096   ia64*)
3097     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3098     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3099     ;;
3100   hppa*64*)
3101     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]'
3102     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3103     ;;
3104   *)
3105     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3106     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3107     ;;
3108   esac
3109   ;;
3110
3111 irix5* | irix6* | nonstopux*)
3112   case $LD in
3113   *-32|*"-32 ") libmagic=32-bit;;
3114   *-n32|*"-n32 ") libmagic=N32;;
3115   *-64|*"-64 ") libmagic=64-bit;;
3116   *) libmagic=never-match;;
3117   esac
3118   lt_cv_deplibs_check_method=pass_all
3119   ;;
3120
3121 # This must be Linux ELF.
3122 linux*)
3123   case $host_cpu in
3124   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3125     lt_cv_deplibs_check_method=pass_all ;;
3126   *)
3127     # glibc up to 2.1.1 does not perform some relocations on ARM
3128     # this will be overridden with pass_all, but let us keep it just in case
3129     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3130   esac
3131   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3132   lt_cv_deplibs_check_method=pass_all
3133   ;;
3134
3135 netbsd*)
3136   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3138   else
3139     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3140   fi
3141   ;;
3142
3143 newos6*)
3144   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3145   lt_cv_file_magic_cmd=/usr/bin/file
3146   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3147   ;;
3148
3149 nto-qnx*)
3150   lt_cv_deplibs_check_method=unknown
3151   ;;
3152
3153 openbsd*)
3154   lt_cv_file_magic_cmd=/usr/bin/file
3155   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3156   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3157     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3158   else
3159     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3160   fi
3161   ;;
3162
3163 osf3* | osf4* | osf5*)
3164   lt_cv_deplibs_check_method=pass_all
3165   ;;
3166
3167 sco3.2v5*)
3168   lt_cv_deplibs_check_method=pass_all
3169   ;;
3170
3171 solaris*)
3172   lt_cv_deplibs_check_method=pass_all
3173   ;;
3174
3175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3176   case $host_vendor in
3177   motorola)
3178     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]'
3179     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3180     ;;
3181   ncr)
3182     lt_cv_deplibs_check_method=pass_all
3183     ;;
3184   sequent)
3185     lt_cv_file_magic_cmd='/bin/file'
3186     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3187     ;;
3188   sni)
3189     lt_cv_file_magic_cmd='/bin/file'
3190     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3191     lt_cv_file_magic_test_file=/lib/libc.so
3192     ;;
3193   siemens)
3194     lt_cv_deplibs_check_method=pass_all
3195     ;;
3196   esac
3197   ;;
3198
3199 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3200   lt_cv_deplibs_check_method=pass_all
3201   ;;
3202 esac
3203
3204 fi
3205 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3206 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3207 file_magic_cmd=$lt_cv_file_magic_cmd
3208 deplibs_check_method=$lt_cv_deplibs_check_method
3209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3210
3211
3212
3213
3214 # If no C compiler was specified, use CC.
3215 LTCC=${LTCC-"$CC"}
3216
3217 # Allow CC to be a program name with arguments.
3218 compiler=$CC
3219
3220
3221 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3222 if test "${enable_libtool_lock+set}" = set; then
3223   enableval="$enable_libtool_lock"
3224
3225 fi;
3226 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3227
3228 # Some flags need to be propagated to the compiler or linker for good
3229 # libtool support.
3230 case $host in
3231 ia64-*-hpux*)
3232   # Find out which ABI we are using.
3233   echo 'int i;' > conftest.$ac_ext
3234   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235   (eval $ac_compile) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; then
3239     case `/usr/bin/file conftest.$ac_objext` in
3240     *ELF-32*)
3241       HPUX_IA64_MODE="32"
3242       ;;
3243     *ELF-64*)
3244       HPUX_IA64_MODE="64"
3245       ;;
3246     esac
3247   fi
3248   rm -rf conftest*
3249   ;;
3250 *-*-irix6*)
3251   # Find out which ABI we are using.
3252   echo '#line 3252 "configure"' > conftest.$ac_ext
3253   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254   (eval $ac_compile) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; then
3258    if test "$lt_cv_prog_gnu_ld" = yes; then
3259     case `/usr/bin/file conftest.$ac_objext` in
3260     *32-bit*)
3261       LD="${LD-ld} -melf32bsmip"
3262       ;;
3263     *N32*)
3264       LD="${LD-ld} -melf32bmipn32"
3265       ;;
3266     *64-bit*)
3267       LD="${LD-ld} -melf64bmip"
3268       ;;
3269     esac
3270    else
3271     case `/usr/bin/file conftest.$ac_objext` in
3272     *32-bit*)
3273       LD="${LD-ld} -32"
3274       ;;
3275     *N32*)
3276       LD="${LD-ld} -n32"
3277       ;;
3278     *64-bit*)
3279       LD="${LD-ld} -64"
3280       ;;
3281     esac
3282    fi
3283   fi
3284   rm -rf conftest*
3285   ;;
3286
3287 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3288   # Find out which ABI we are using.
3289   echo 'int i;' > conftest.$ac_ext
3290   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291   (eval $ac_compile) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; then
3295     case "`/usr/bin/file conftest.o`" in
3296     *32-bit*)
3297       case $host in
3298         x86_64-*linux*)
3299           LD="${LD-ld} -m elf_i386"
3300           ;;
3301         ppc64-*linux*|powerpc64-*linux*)
3302           LD="${LD-ld} -m elf32ppclinux"
3303           ;;
3304         s390x-*linux*)
3305           LD="${LD-ld} -m elf_s390"
3306           ;;
3307         sparc64-*linux*)
3308           LD="${LD-ld} -m elf32_sparc"
3309           ;;
3310       esac
3311       ;;
3312     *64-bit*)
3313       case $host in
3314         x86_64-*linux*)
3315           LD="${LD-ld} -m elf_x86_64"
3316           ;;
3317         ppc*-*linux*|powerpc*-*linux*)
3318           LD="${LD-ld} -m elf64ppc"
3319           ;;
3320         s390*-*linux*)
3321           LD="${LD-ld} -m elf64_s390"
3322           ;;
3323         sparc*-*linux*)
3324           LD="${LD-ld} -m elf64_sparc"
3325           ;;
3326       esac
3327       ;;
3328     esac
3329   fi
3330   rm -rf conftest*
3331   ;;
3332
3333 *-*-sco3.2v5*)
3334   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3335   SAVE_CFLAGS="$CFLAGS"
3336   CFLAGS="$CFLAGS -belf"
3337   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3338 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3339 if test "${lt_cv_cc_needs_belf+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348      cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354
3355 int
3356 main ()
3357 {
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext conftest$ac_exeext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365   (eval $ac_link) 2>conftest.er1
3366   ac_status=$?
3367   grep -v '^ *+' conftest.er1 >conftest.err
3368   rm -f conftest.er1
3369   cat conftest.err >&5
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } &&
3372          { ac_try='test -z "$ac_c_werror_flag"
3373                          || test ! -s conftest.err'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest$ac_exeext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385   lt_cv_cc_needs_belf=yes
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 lt_cv_cc_needs_belf=no
3391 fi
3392 rm -f conftest.err conftest.$ac_objext \
3393       conftest$ac_exeext conftest.$ac_ext
3394      ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400 fi
3401 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3402 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3403   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3404     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3405     CFLAGS="$SAVE_CFLAGS"
3406   fi
3407   ;;
3408
3409 esac
3410
3411 need_locks="$enable_libtool_lock"
3412
3413
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3420 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3421 # On Suns, sometimes $CPP names a directory.
3422 if test -n "$CPP" && test -d "$CPP"; then
3423   CPP=
3424 fi
3425 if test -z "$CPP"; then
3426   if test "${ac_cv_prog_CPP+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429       # Double quotes because CPP needs to be expanded
3430     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431     do
3432       ac_preproc_ok=false
3433 for ac_c_preproc_warn_flag in '' yes
3434 do
3435   # Use a header file that comes with gcc, so configuring glibc
3436   # with a fresh cross-compiler works.
3437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438   # <limits.h> exists even on freestanding compilers.
3439   # On the NeXT, cc -E runs the code through the compiler's parser,
3440   # not just through cpp. "Syntax error" is here to catch this case.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #ifdef __STDC__
3448 # include <limits.h>
3449 #else
3450 # include <assert.h>
3451 #endif
3452                      Syntax error
3453 _ACEOF
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3456   ac_status=$?
3457   grep -v '^ *+' conftest.er1 >conftest.err
3458   rm -f conftest.er1
3459   cat conftest.err >&5
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } >/dev/null; then
3462   if test -s conftest.err; then
3463     ac_cpp_err=$ac_c_preproc_warn_flag
3464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3465   else
3466     ac_cpp_err=
3467   fi
3468 else
3469   ac_cpp_err=yes
3470 fi
3471 if test -z "$ac_cpp_err"; then
3472   :
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477   # Broken: fails on valid input.
3478 continue
3479 fi
3480 rm -f conftest.err conftest.$ac_ext
3481
3482   # OK, works on sane cases.  Now check whether non-existent headers
3483   # can be detected and how.
3484   cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490 #include <ac_nonexistent.h>
3491 _ACEOF
3492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3494   ac_status=$?
3495   grep -v '^ *+' conftest.er1 >conftest.err
3496   rm -f conftest.er1
3497   cat conftest.err >&5
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } >/dev/null; then
3500   if test -s conftest.err; then
3501     ac_cpp_err=$ac_c_preproc_warn_flag
3502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3503   else
3504     ac_cpp_err=
3505   fi
3506 else
3507   ac_cpp_err=yes
3508 fi
3509 if test -z "$ac_cpp_err"; then
3510   # Broken: success on invalid input.
3511 continue
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516   # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3519 fi
3520 rm -f conftest.err conftest.$ac_ext
3521
3522 done
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then
3526   break
3527 fi
3528
3529     done
3530     ac_cv_prog_CPP=$CPP
3531
3532 fi
3533   CPP=$ac_cv_prog_CPP
3534 else
3535   ac_cv_prog_CPP=$CPP
3536 fi
3537 echo "$as_me:$LINENO: result: $CPP" >&5
3538 echo "${ECHO_T}$CPP" >&6
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3541 do
3542   # Use a header file that comes with gcc, so configuring glibc
3543   # with a fresh cross-compiler works.
3544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545   # <limits.h> exists even on freestanding compilers.
3546   # On the NeXT, cc -E runs the code through the compiler's parser,
3547   # not just through cpp. "Syntax error" is here to catch this case.
3548   cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554 #ifdef __STDC__
3555 # include <limits.h>
3556 #else
3557 # include <assert.h>
3558 #endif
3559                      Syntax error
3560 _ACEOF
3561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } >/dev/null; then
3569   if test -s conftest.err; then
3570     ac_cpp_err=$ac_c_preproc_warn_flag
3571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572   else
3573     ac_cpp_err=
3574   fi
3575 else
3576   ac_cpp_err=yes
3577 fi
3578 if test -z "$ac_cpp_err"; then
3579   :
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584   # Broken: fails on valid input.
3585 continue
3586 fi
3587 rm -f conftest.err conftest.$ac_ext
3588
3589   # OK, works on sane cases.  Now check whether non-existent headers
3590   # can be detected and how.
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597 #include <ac_nonexistent.h>
3598 _ACEOF
3599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } >/dev/null; then
3607   if test -s conftest.err; then
3608     ac_cpp_err=$ac_c_preproc_warn_flag
3609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610   else
3611     ac_cpp_err=
3612   fi
3613 else
3614   ac_cpp_err=yes
3615 fi
3616 if test -z "$ac_cpp_err"; then
3617   # Broken: success on invalid input.
3618 continue
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623   # Passes both tests.
3624 ac_preproc_ok=:
3625 break
3626 fi
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633   :
3634 else
3635   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&5
3637 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&2;}
3639    { (exit 1); exit 1; }; }
3640 fi
3641
3642 ac_ext=c
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3651 if test "${ac_cv_header_stdc+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660 #include <stdlib.h>
3661 #include <stdarg.h>
3662 #include <string.h>
3663 #include <float.h>
3664
3665 int
3666 main ()
3667 {
3668
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675   (eval $ac_compile) 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } &&
3682          { ac_try='test -z "$ac_c_werror_flag"
3683                          || test ! -s conftest.err'
3684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685   (eval $ac_try) 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; } &&
3689          { ac_try='test -s conftest.$ac_objext'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; }; then
3695   ac_cv_header_stdc=yes
3696 else
3697   echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 ac_cv_header_stdc=no
3701 fi
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703
3704 if test $ac_cv_header_stdc = yes; then
3705   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3706   cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #include <string.h>
3713
3714 _ACEOF
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716   $EGREP "memchr" >/dev/null 2>&1; then
3717   :
3718 else
3719   ac_cv_header_stdc=no
3720 fi
3721 rm -f conftest*
3722
3723 fi
3724
3725 if test $ac_cv_header_stdc = yes; then
3726   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727   cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733 #include <stdlib.h>
3734
3735 _ACEOF
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737   $EGREP "free" >/dev/null 2>&1; then
3738   :
3739 else
3740   ac_cv_header_stdc=no
3741 fi
3742 rm -f conftest*
3743
3744 fi
3745
3746 if test $ac_cv_header_stdc = yes; then
3747   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3748   if test "$cross_compiling" = yes; then
3749   :
3750 else
3751   cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #include <ctype.h>
3758 #if ((' ' & 0x0FF) == 0x020)
3759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3761 #else
3762 # define ISLOWER(c) \
3763                    (('a' <= (c) && (c) <= 'i') \
3764                      || ('j' <= (c) && (c) <= 'r') \
3765                      || ('s' <= (c) && (c) <= 'z'))
3766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3767 #endif
3768
3769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3770 int
3771 main ()
3772 {
3773   int i;
3774   for (i = 0; i < 256; i++)
3775     if (XOR (islower (i), ISLOWER (i))
3776         || toupper (i) != TOUPPER (i))
3777       exit(2);
3778   exit (0);
3779 }
3780 _ACEOF
3781 rm -f conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783   (eval $ac_link) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788   (eval $ac_try) 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; }; then
3792   :
3793 else
3794   echo "$as_me: program exited with status $ac_status" >&5
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 ( exit $ac_status )
3799 ac_cv_header_stdc=no
3800 fi
3801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 fi
3804 fi
3805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3806 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3807 if test $ac_cv_header_stdc = yes; then
3808
3809 cat >>confdefs.h <<\_ACEOF
3810 #define STDC_HEADERS 1
3811 _ACEOF
3812
3813 fi
3814
3815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3826                   inttypes.h stdint.h unistd.h
3827 do
3828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3829 echo "$as_me:$LINENO: checking for $ac_header" >&5
3830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 $ac_includes_default
3841
3842 #include <$ac_header>
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846   (eval $ac_compile) 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -z "$ac_c_werror_flag"
3854                          || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest.$ac_objext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   eval "$as_ac_Header=yes"
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 eval "$as_ac_Header=no"
3872 fi
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 fi
3875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3878   cat >>confdefs.h <<_ACEOF
3879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880 _ACEOF
3881
3882 fi
3883
3884 done
3885
3886
3887
3888 for ac_header in dlfcn.h
3889 do
3890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892   echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 fi
3897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3899 else
3900   # Is the header compilable?
3901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 $ac_includes_default
3910 #include <$ac_header>
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914   (eval $ac_compile) 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } &&
3921          { ac_try='test -z "$ac_c_werror_flag"
3922                          || test ! -s conftest.err'
3923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924   (eval $ac_try) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); }; } &&
3928          { ac_try='test -s conftest.$ac_objext'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   ac_header_compiler=yes
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_header_compiler=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943 echo "${ECHO_T}$ac_header_compiler" >&6
3944
3945 # Is the header present?
3946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <$ac_header>
3955 _ACEOF
3956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } >/dev/null; then
3964   if test -s conftest.err; then
3965     ac_cpp_err=$ac_c_preproc_warn_flag
3966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967   else
3968     ac_cpp_err=
3969   fi
3970 else
3971   ac_cpp_err=yes
3972 fi
3973 if test -z "$ac_cpp_err"; then
3974   ac_header_preproc=yes
3975 else
3976   echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979   ac_header_preproc=no
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983 echo "${ECHO_T}$ac_header_preproc" >&6
3984
3985 # So?  What about this header?
3986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3987   yes:no: )
3988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3992     ac_header_preproc=yes
3993     ;;
3994   no:yes:* )
3995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4007     (
4008       cat <<\_ASBOX
4009 ## ------------------------------------------ ##
4010 ## Report this to the AC_PACKAGE_NAME lists.  ##
4011 ## ------------------------------------------ ##
4012 _ASBOX
4013     ) |
4014       sed "s/^/$as_me: WARNING:     /" >&2
4015     ;;
4016 esac
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   eval "$as_ac_Header=\$ac_header_preproc"
4023 fi
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026
4027 fi
4028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4029   cat >>confdefs.h <<_ACEOF
4030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4031 _ACEOF
4032
4033 fi
4034
4035 done
4036
4037 ac_ext=cc
4038 ac_cpp='$CXXCPP $CPPFLAGS'
4039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4044   do
4045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_CXX+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -n "$CXX"; then
4053   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068
4069 fi
4070 fi
4071 CXX=$ac_cv_prog_CXX
4072 if test -n "$CXX"; then
4073   echo "$as_me:$LINENO: result: $CXX" >&5
4074 echo "${ECHO_T}$CXX" >&6
4075 else
4076   echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080     test -n "$CXX" && break
4081   done
4082 fi
4083 if test -z "$CXX"; then
4084   ac_ct_CXX=$CXX
4085   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4086 do
4087   # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   if test -n "$ac_ct_CXX"; then
4095   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102   for ac_exec_ext in '' $ac_executable_extensions; do
4103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104     ac_cv_prog_ac_ct_CXX="$ac_prog"
4105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109 done
4110
4111 fi
4112 fi
4113 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4114 if test -n "$ac_ct_CXX"; then
4115   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4116 echo "${ECHO_T}$ac_ct_CXX" >&6
4117 else
4118   echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4120 fi
4121
4122   test -n "$ac_ct_CXX" && break
4123 done
4124 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4125
4126   CXX=$ac_ct_CXX
4127 fi
4128
4129
4130 # Provide some information about the compiler.
4131 echo "$as_me:$LINENO:" \
4132      "checking for C++ compiler version" >&5
4133 ac_compiler=`set X $ac_compile; echo $2`
4134 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4135   (eval $ac_compiler --version </dev/null >&5) 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }
4139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4140   (eval $ac_compiler -v </dev/null >&5) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }
4144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4145   (eval $ac_compiler -V </dev/null >&5) 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }
4149
4150 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4151 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4152 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161
4162 int
4163 main ()
4164 {
4165 #ifndef __GNUC__
4166        choke me
4167 #endif
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175   (eval $ac_compile) 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } &&
4182          { ac_try='test -z "$ac_cxx_werror_flag"
4183                          || test ! -s conftest.err'
4184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185   (eval $ac_try) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; } &&
4189          { ac_try='test -s conftest.$ac_objext'
4190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191   (eval $ac_try) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; }; then
4195   ac_compiler_gnu=yes
4196 else
4197   echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 ac_compiler_gnu=no
4201 fi
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4204
4205 fi
4206 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4207 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4208 GXX=`test $ac_compiler_gnu = yes && echo yes`
4209 ac_test_CXXFLAGS=${CXXFLAGS+set}
4210 ac_save_CXXFLAGS=$CXXFLAGS
4211 CXXFLAGS="-g"
4212 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4213 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4214 if test "${ac_cv_prog_cxx_g+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223
4224 int
4225 main ()
4226 {
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234   (eval $ac_compile) 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } &&
4241          { ac_try='test -z "$ac_cxx_werror_flag"
4242                          || test ! -s conftest.err'
4243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244   (eval $ac_try) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); }; } &&
4248          { ac_try='test -s conftest.$ac_objext'
4249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250   (eval $ac_try) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); }; }; then
4254   ac_cv_prog_cxx_g=yes
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 ac_cv_prog_cxx_g=no
4260 fi
4261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4264 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4265 if test "$ac_test_CXXFLAGS" = set; then
4266   CXXFLAGS=$ac_save_CXXFLAGS
4267 elif test $ac_cv_prog_cxx_g = yes; then
4268   if test "$GXX" = yes; then
4269     CXXFLAGS="-g -O2"
4270   else
4271     CXXFLAGS="-g"
4272   fi
4273 else
4274   if test "$GXX" = yes; then
4275     CXXFLAGS="-O2"
4276   else
4277     CXXFLAGS=
4278   fi
4279 fi
4280 for ac_declaration in \
4281    '' \
4282    'extern "C" void std::exit (int) throw (); using std::exit;' \
4283    'extern "C" void std::exit (int); using std::exit;' \
4284    'extern "C" void exit (int) throw ();' \
4285    'extern "C" void exit (int);' \
4286    'void exit (int);'
4287 do
4288   cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 $ac_declaration
4295 #include <stdlib.h>
4296 int
4297 main ()
4298 {
4299 exit (42);
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306   (eval $ac_compile) 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } &&
4313          { ac_try='test -z "$ac_cxx_werror_flag"
4314                          || test ! -s conftest.err'
4315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316   (eval $ac_try) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; } &&
4320          { ac_try='test -s conftest.$ac_objext'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   :
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 continue
4332 fi
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 $ac_declaration
4341 int
4342 main ()
4343 {
4344 exit (42);
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351   (eval $ac_compile) 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_cxx_werror_flag"
4359                          || test ! -s conftest.err'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; } &&
4365          { ac_try='test -s conftest.$ac_objext'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; }; then
4371   break
4372 else
4373   echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376 fi
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378 done
4379 rm -f conftest*
4380 if test -n "$ac_declaration"; then
4381   echo '#ifdef __cplusplus' >>confdefs.h
4382   echo $ac_declaration      >>confdefs.h
4383   echo '#endif'             >>confdefs.h
4384 fi
4385
4386 ac_ext=cc
4387 ac_cpp='$CXXCPP $CPPFLAGS'
4388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391
4392 ac_ext=cc
4393 ac_cpp='$CXXCPP $CPPFLAGS'
4394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4397 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4398 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4399 if test -z "$CXXCPP"; then
4400   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403       # Double quotes because CXXCPP needs to be expanded
4404     for CXXCPP in "$CXX -E" "/lib/cpp"
4405     do
4406       ac_preproc_ok=false
4407 for ac_cxx_preproc_warn_flag in '' yes
4408 do
4409   # Use a header file that comes with gcc, so configuring glibc
4410   # with a fresh cross-compiler works.
4411   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4412   # <limits.h> exists even on freestanding compilers.
4413   # On the NeXT, cc -E runs the code through the compiler's parser,
4414   # not just through cpp. "Syntax error" is here to catch this case.
4415   cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 #ifdef __STDC__
4422 # include <limits.h>
4423 #else
4424 # include <assert.h>
4425 #endif
4426                      Syntax error
4427 _ACEOF
4428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } >/dev/null; then
4436   if test -s conftest.err; then
4437     ac_cpp_err=$ac_cxx_preproc_warn_flag
4438     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4439   else
4440     ac_cpp_err=
4441   fi
4442 else
4443   ac_cpp_err=yes
4444 fi
4445 if test -z "$ac_cpp_err"; then
4446   :
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451   # Broken: fails on valid input.
4452 continue
4453 fi
4454 rm -f conftest.err conftest.$ac_ext
4455
4456   # OK, works on sane cases.  Now check whether non-existent headers
4457   # can be detected and how.
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 #include <ac_nonexistent.h>
4465 _ACEOF
4466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } >/dev/null; then
4474   if test -s conftest.err; then
4475     ac_cpp_err=$ac_cxx_preproc_warn_flag
4476     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4477   else
4478     ac_cpp_err=
4479   fi
4480 else
4481   ac_cpp_err=yes
4482 fi
4483 if test -z "$ac_cpp_err"; then
4484   # Broken: success on invalid input.
4485 continue
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490   # Passes both tests.
4491 ac_preproc_ok=:
4492 break
4493 fi
4494 rm -f conftest.err conftest.$ac_ext
4495
4496 done
4497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498 rm -f conftest.err conftest.$ac_ext
4499 if $ac_preproc_ok; then
4500   break
4501 fi
4502
4503     done
4504     ac_cv_prog_CXXCPP=$CXXCPP
4505
4506 fi
4507   CXXCPP=$ac_cv_prog_CXXCPP
4508 else
4509   ac_cv_prog_CXXCPP=$CXXCPP
4510 fi
4511 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4512 echo "${ECHO_T}$CXXCPP" >&6
4513 ac_preproc_ok=false
4514 for ac_cxx_preproc_warn_flag in '' yes
4515 do
4516   # Use a header file that comes with gcc, so configuring glibc
4517   # with a fresh cross-compiler works.
4518   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519   # <limits.h> exists even on freestanding compilers.
4520   # On the NeXT, cc -E runs the code through the compiler's parser,
4521   # not just through cpp. "Syntax error" is here to catch this case.
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #ifdef __STDC__
4529 # include <limits.h>
4530 #else
4531 # include <assert.h>
4532 #endif
4533                      Syntax error
4534 _ACEOF
4535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } >/dev/null; then
4543   if test -s conftest.err; then
4544     ac_cpp_err=$ac_cxx_preproc_warn_flag
4545     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4546   else
4547     ac_cpp_err=
4548   fi
4549 else
4550   ac_cpp_err=yes
4551 fi
4552 if test -z "$ac_cpp_err"; then
4553   :
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558   # Broken: fails on valid input.
4559 continue
4560 fi
4561 rm -f conftest.err conftest.$ac_ext
4562
4563   # OK, works on sane cases.  Now check whether non-existent headers
4564   # can be detected and how.
4565   cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571 #include <ac_nonexistent.h>
4572 _ACEOF
4573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4575   ac_status=$?
4576   grep -v '^ *+' conftest.er1 >conftest.err
4577   rm -f conftest.er1
4578   cat conftest.err >&5
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } >/dev/null; then
4581   if test -s conftest.err; then
4582     ac_cpp_err=$ac_cxx_preproc_warn_flag
4583     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4584   else
4585     ac_cpp_err=
4586   fi
4587 else
4588   ac_cpp_err=yes
4589 fi
4590 if test -z "$ac_cpp_err"; then
4591   # Broken: success on invalid input.
4592 continue
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597   # Passes both tests.
4598 ac_preproc_ok=:
4599 break
4600 fi
4601 rm -f conftest.err conftest.$ac_ext
4602
4603 done
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then
4607   :
4608 else
4609   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4612 See \`config.log' for more details." >&2;}
4613    { (exit 1); exit 1; }; }
4614 fi
4615
4616 ac_ext=cc
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
4622
4623 ac_ext=f
4624 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4625 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4629   do
4630     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_prog_F77+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   if test -n "$F77"; then
4638   ac_cv_prog_F77="$F77" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645   for ac_exec_ext in '' $ac_executable_extensions; do
4646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649     break 2
4650   fi
4651 done
4652 done
4653
4654 fi
4655 fi
4656 F77=$ac_cv_prog_F77
4657 if test -n "$F77"; then
4658   echo "$as_me:$LINENO: result: $F77" >&5
4659 echo "${ECHO_T}$F77" >&6
4660 else
4661   echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4663 fi
4664
4665     test -n "$F77" && break
4666   done
4667 fi
4668 if test -z "$F77"; then
4669   ac_ct_F77=$F77
4670   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   if test -n "$ac_ct_F77"; then
4680   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689     ac_cv_prog_ac_ct_F77="$ac_prog"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695
4696 fi
4697 fi
4698 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4699 if test -n "$ac_ct_F77"; then
4700   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4701 echo "${ECHO_T}$ac_ct_F77" >&6
4702 else
4703   echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6
4705 fi
4706
4707   test -n "$ac_ct_F77" && break
4708 done
4709
4710   F77=$ac_ct_F77
4711 fi
4712
4713
4714 # Provide some information about the compiler.
4715 echo "$as_me:4715:" \
4716      "checking for Fortran 77 compiler version" >&5
4717 ac_compiler=`set X $ac_compile; echo $2`
4718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4719   (eval $ac_compiler --version </dev/null >&5) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }
4723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4724   (eval $ac_compiler -v </dev/null >&5) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }
4728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4729   (eval $ac_compiler -V </dev/null >&5) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }
4733 rm -f a.out
4734
4735 # If we don't use `.F' as extension, the preprocessor is not run on the
4736 # input file.  (Note that this only needs to work for GNU compilers.)
4737 ac_save_ext=$ac_ext
4738 ac_ext=F
4739 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4740 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4741 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   cat >conftest.$ac_ext <<_ACEOF
4745       program main
4746 #ifndef __GNUC__
4747        choke me
4748 #endif
4749
4750       end
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754   (eval $ac_compile) 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -z "$ac_f77_werror_flag"
4762                          || test ! -s conftest.err'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; } &&
4768          { ac_try='test -s conftest.$ac_objext'
4769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; }; then
4774   ac_compiler_gnu=yes
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 ac_compiler_gnu=no
4780 fi
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4783
4784 fi
4785 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4786 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4787 ac_ext=$ac_save_ext
4788 ac_test_FFLAGS=${FFLAGS+set}
4789 ac_save_FFLAGS=$FFLAGS
4790 FFLAGS=
4791 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4792 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4793 if test "${ac_cv_prog_f77_g+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   FFLAGS=-g
4797 cat >conftest.$ac_ext <<_ACEOF
4798       program main
4799
4800       end
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -z "$ac_f77_werror_flag"
4812                          || test ! -s conftest.err'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_cv_prog_f77_g=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_cv_prog_f77_g=no
4830 fi
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833 fi
4834 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4835 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4836 if test "$ac_test_FFLAGS" = set; then
4837   FFLAGS=$ac_save_FFLAGS
4838 elif test $ac_cv_prog_f77_g = yes; then
4839   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4840     FFLAGS="-g -O2"
4841   else
4842     FFLAGS="-g"
4843   fi
4844 else
4845   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4846     FFLAGS="-O2"
4847   else
4848     FFLAGS=
4849   fi
4850 fi
4851
4852 G77=`test $ac_compiler_gnu = yes && echo yes`
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860
4861 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4862
4863 # find the maximum length of command line arguments
4864 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4865 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4866 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869     i=0
4870   teststring="ABCD"
4871
4872   case $build_os in
4873   msdosdjgpp*)
4874     # On DJGPP, this test can blow up pretty badly due to problems in libc
4875     # (any single argument exceeding 2000 bytes causes a buffer overrun
4876     # during glob expansion).  Even if it were fixed, the result of this
4877     # check would be larger than it should be.
4878     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4879     ;;
4880
4881   gnu*)
4882     # Under GNU Hurd, this test is not required because there is
4883     # no limit to the length of command line arguments.
4884     # Libtool will interpret -1 as no limit whatsoever
4885     lt_cv_sys_max_cmd_len=-1;
4886     ;;
4887
4888   cygwin* | mingw*)
4889     # On Win9x/ME, this test blows up -- it succeeds, but takes
4890     # about 5 minutes as the teststring grows exponentially.
4891     # Worse, since 9x/ME are not pre-emptively multitasking,
4892     # you end up with a "frozen" computer, even though with patience
4893     # the test eventually succeeds (with a max line length of 256k).
4894     # Instead, let's just punt: use the minimum linelength reported by
4895     # all of the supported platforms: 8192 (on NT/2K/XP).
4896     lt_cv_sys_max_cmd_len=8192;
4897     ;;
4898
4899   amigaos*)
4900     # On AmigaOS with pdksh, this test takes hours, literally.
4901     # So we just punt and use a minimum line length of 8192.
4902     lt_cv_sys_max_cmd_len=8192;
4903     ;;
4904
4905  *)
4906     # If test is not a shell built-in, we'll probably end up computing a
4907     # maximum length that is only half of the actual maximum length, but
4908     # we can't tell.
4909     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4910                = "XX$teststring") >/dev/null 2>&1 &&
4911             new_result=`expr "X$teststring" : ".*" 2>&1` &&
4912             lt_cv_sys_max_cmd_len=$new_result &&
4913             test $i != 17 # 1/2 MB should be enough
4914     do
4915       i=`expr $i + 1`
4916       teststring=$teststring$teststring
4917     done
4918     teststring=
4919     # Add a significant safety factor because C++ compilers can tack on massive
4920     # amounts of additional arguments before passing them to the linker.
4921     # It appears as though 1/2 is a usable value.
4922     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4923     ;;
4924   esac
4925
4926 fi
4927
4928 if test -n $lt_cv_sys_max_cmd_len ; then
4929   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4930 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4931 else
4932   echo "$as_me:$LINENO: result: none" >&5
4933 echo "${ECHO_T}none" >&6
4934 fi
4935
4936
4937
4938
4939 # Check for command to grab the raw symbol name followed by C symbol from nm.
4940 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945
4946 # These are sane defaults that work on at least a few old systems.
4947 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4948
4949 # Character class describing NM global symbol codes.
4950 symcode='[BCDEGRST]'
4951
4952 # Regexp to match symbols that can be accessed directly from C.
4953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4954
4955 # Transform the above into a raw symbol and a C symbol.
4956 symxfrm='\1 \2\3 \3'
4957
4958 # Transform an extracted symbol line into a proper C declaration
4959 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4960
4961 # Transform an extracted symbol line into symbol name and symbol address
4962 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'"
4963
4964 # Define system-specific variables.
4965 case $host_os in
4966 aix*)
4967   symcode='[BCDT]'
4968   ;;
4969 cygwin* | mingw* | pw32*)
4970   symcode='[ABCDGISTW]'
4971   ;;
4972 hpux*) # Its linker distinguishes data from code symbols
4973   if test "$host_cpu" = ia64; then
4974     symcode='[ABCDEGRST]'
4975   fi
4976   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4977   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'"
4978   ;;
4979 irix* | nonstopux*)
4980   symcode='[BCDEGRST]'
4981   ;;
4982 osf*)
4983   symcode='[BCDEGQRST]'
4984   ;;
4985 solaris* | sysv5*)
4986   symcode='[BDRT]'
4987   ;;
4988 sysv4)
4989   symcode='[DFNSTU]'
4990   ;;
4991 esac
4992
4993 # Handle CRLF in mingw tool chain
4994 opt_cr=
4995 case $build_os in
4996 mingw*)
4997   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4998   ;;
4999 esac
5000
5001 # If we're using GNU nm, then use its standard symbol codes.
5002 case `$NM -V 2>&1` in
5003 *GNU* | *'with BFD'*)
5004   symcode='[ABCDGIRSTW]' ;;
5005 esac
5006
5007 # Try without a prefix undercore, then with it.
5008 for ac_symprfx in "" "_"; do
5009
5010   # Write the raw and C identifiers.
5011   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5012
5013   # Check to see that the pipe works correctly.
5014   pipe_works=no
5015
5016   rm -f conftest*
5017   cat > conftest.$ac_ext <<EOF
5018 #ifdef __cplusplus
5019 extern "C" {
5020 #endif
5021 char nm_test_var;
5022 void nm_test_func(){}
5023 #ifdef __cplusplus
5024 }
5025 #endif
5026 int main(){nm_test_var='a';nm_test_func();return(0);}
5027 EOF
5028
5029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030   (eval $ac_compile) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; then
5034     # Now try to grab the symbols.
5035     nlist=conftest.nm
5036     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5037   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } && test -s "$nlist"; then
5041       # Try sorting and uniquifying the output.
5042       if sort "$nlist" | uniq > "$nlist"T; then
5043         mv -f "$nlist"T "$nlist"
5044       else
5045         rm -f "$nlist"T
5046       fi
5047
5048       # Make sure that we snagged all the symbols we need.
5049       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5050         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5051           cat <<EOF > conftest.$ac_ext
5052 #ifdef __cplusplus
5053 extern "C" {
5054 #endif
5055
5056 EOF
5057           # Now generate the symbol file.
5058           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5059
5060           cat <<EOF >> conftest.$ac_ext
5061 #if defined (__STDC__) && __STDC__
5062 # define lt_ptr_t void *
5063 #else
5064 # define lt_ptr_t char *
5065 # define const
5066 #endif
5067
5068 /* The mapping between symbol names and symbols. */
5069 const struct {
5070   const char *name;
5071   lt_ptr_t address;
5072 }
5073 lt_preloaded_symbols[] =
5074 {
5075 EOF
5076           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5077           cat <<\EOF >> conftest.$ac_ext
5078   {0, (lt_ptr_t) 0}
5079 };
5080
5081 #ifdef __cplusplus
5082 }
5083 #endif
5084 EOF
5085           # Now try linking the two files.
5086           mv conftest.$ac_objext conftstm.$ac_objext
5087           lt_save_LIBS="$LIBS"
5088           lt_save_CFLAGS="$CFLAGS"
5089           LIBS="conftstm.$ac_objext"
5090           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5091           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092   (eval $ac_link) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5096             pipe_works=yes
5097           fi
5098           LIBS="$lt_save_LIBS"
5099           CFLAGS="$lt_save_CFLAGS"
5100         else
5101           echo "cannot find nm_test_func in $nlist" >&5
5102         fi
5103       else
5104         echo "cannot find nm_test_var in $nlist" >&5
5105       fi
5106     else
5107       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5108     fi
5109   else
5110     echo "$progname: failed program was:" >&5
5111     cat conftest.$ac_ext >&5
5112   fi
5113   rm -f conftest* conftst*
5114
5115   # Do not use the global_symbol_pipe unless it works.
5116   if test "$pipe_works" = yes; then
5117     break
5118   else
5119     lt_cv_sys_global_symbol_pipe=
5120   fi
5121 done
5122
5123 fi
5124
5125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5126   lt_cv_sys_global_symbol_to_cdecl=
5127 fi
5128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5129   echo "$as_me:$LINENO: result: failed" >&5
5130 echo "${ECHO_T}failed" >&6
5131 else
5132   echo "$as_me:$LINENO: result: ok" >&5
5133 echo "${ECHO_T}ok" >&6
5134 fi
5135
5136 echo "$as_me:$LINENO: checking for objdir" >&5
5137 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5138 if test "${lt_cv_objdir+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   rm -f .libs 2>/dev/null
5142 mkdir .libs 2>/dev/null
5143 if test -d .libs; then
5144   lt_cv_objdir=.libs
5145 else
5146   # MS-DOS does not allow filenames that begin with a dot.
5147   lt_cv_objdir=_libs
5148 fi
5149 rmdir .libs 2>/dev/null
5150 fi
5151 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5152 echo "${ECHO_T}$lt_cv_objdir" >&6
5153 objdir=$lt_cv_objdir
5154
5155
5156
5157
5158
5159 case $host_os in
5160 aix3*)
5161   # AIX sometimes has problems with the GCC collect2 program.  For some
5162   # reason, if we set the COLLECT_NAMES environment variable, the problems
5163   # vanish in a puff of smoke.
5164   if test "X${COLLECT_NAMES+set}" != Xset; then
5165     COLLECT_NAMES=
5166     export COLLECT_NAMES
5167   fi
5168   ;;
5169 esac
5170
5171 # Sed substitution that helps us do robust quoting.  It backslashifies
5172 # metacharacters that are still active within double-quoted strings.
5173 Xsed='sed -e s/^X//'
5174 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5175
5176 # Same as above, but do not quote variable references.
5177 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5178
5179 # Sed substitution to delay expansion of an escaped shell variable in a
5180 # double_quote_subst'ed string.
5181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5182
5183 # Sed substitution to avoid accidental globbing in evaled expressions
5184 no_glob_subst='s/\*/\\\*/g'
5185
5186 # Constants:
5187 rm="rm -f"
5188
5189 # Global variables:
5190 default_ofile=libtool
5191 can_build_shared=yes
5192
5193 # All known linkers require a `.a' archive for static linking (except M$VC,
5194 # which needs '.lib').
5195 libext=a
5196 ltmain="$ac_aux_dir/ltmain.sh"
5197 ofile="$default_ofile"
5198 with_gnu_ld="$lt_cv_prog_gnu_ld"
5199
5200 if test -n "$ac_tool_prefix"; then
5201   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}ar; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_AR+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   if test -n "$AR"; then
5209   ac_cv_prog_AR="$AR" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216   for ac_exec_ext in '' $ac_executable_extensions; do
5217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218     ac_cv_prog_AR="${ac_tool_prefix}ar"
5219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220     break 2
5221   fi
5222 done
5223 done
5224
5225 fi
5226 fi
5227 AR=$ac_cv_prog_AR
5228 if test -n "$AR"; then
5229   echo "$as_me:$LINENO: result: $AR" >&5
5230 echo "${ECHO_T}$AR" >&6
5231 else
5232   echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5234 fi
5235
5236 fi
5237 if test -z "$ac_cv_prog_AR"; then
5238   ac_ct_AR=$AR
5239   # Extract the first word of "ar", so it can be a program name with args.
5240 set dummy ar; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   if test -n "$ac_ct_AR"; then
5247   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254   for ac_exec_ext in '' $ac_executable_extensions; do
5255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256     ac_cv_prog_ac_ct_AR="ar"
5257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261 done
5262
5263   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5264 fi
5265 fi
5266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5267 if test -n "$ac_ct_AR"; then
5268   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5269 echo "${ECHO_T}$ac_ct_AR" >&6
5270 else
5271   echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5273 fi
5274
5275   AR=$ac_ct_AR
5276 else
5277   AR="$ac_cv_prog_AR"
5278 fi
5279
5280 if test -n "$ac_tool_prefix"; then
5281   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5283 echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5285 if test "${ac_cv_prog_RANLIB+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   if test -n "$RANLIB"; then
5289   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296   for ac_exec_ext in '' $ac_executable_extensions; do
5297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303 done
5304
5305 fi
5306 fi
5307 RANLIB=$ac_cv_prog_RANLIB
5308 if test -n "$RANLIB"; then
5309   echo "$as_me:$LINENO: result: $RANLIB" >&5
5310 echo "${ECHO_T}$RANLIB" >&6
5311 else
5312   echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6
5314 fi
5315
5316 fi
5317 if test -z "$ac_cv_prog_RANLIB"; then
5318   ac_ct_RANLIB=$RANLIB
5319   # Extract the first word of "ranlib", so it can be a program name with args.
5320 set dummy ranlib; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   if test -n "$ac_ct_RANLIB"; then
5327   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334   for ac_exec_ext in '' $ac_executable_extensions; do
5335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_prog_ac_ct_RANLIB="ranlib"
5337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341 done
5342
5343   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5344 fi
5345 fi
5346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5347 if test -n "$ac_ct_RANLIB"; then
5348   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5349 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5350 else
5351   echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5353 fi
5354
5355   RANLIB=$ac_ct_RANLIB
5356 else
5357   RANLIB="$ac_cv_prog_RANLIB"
5358 fi
5359
5360 if test -n "$ac_tool_prefix"; then
5361   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}strip; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_STRIP+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   if test -n "$STRIP"; then
5369   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376   for ac_exec_ext in '' $ac_executable_extensions; do
5377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383 done
5384
5385 fi
5386 fi
5387 STRIP=$ac_cv_prog_STRIP
5388 if test -n "$STRIP"; then
5389   echo "$as_me:$LINENO: result: $STRIP" >&5
5390 echo "${ECHO_T}$STRIP" >&6
5391 else
5392   echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394 fi
5395
5396 fi
5397 if test -z "$ac_cv_prog_STRIP"; then
5398   ac_ct_STRIP=$STRIP
5399   # Extract the first word of "strip", so it can be a program name with args.
5400 set dummy strip; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   if test -n "$ac_ct_STRIP"; then
5407   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414   for ac_exec_ext in '' $ac_executable_extensions; do
5415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416     ac_cv_prog_ac_ct_STRIP="strip"
5417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421 done
5422
5423   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5424 fi
5425 fi
5426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5427 if test -n "$ac_ct_STRIP"; then
5428   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5429 echo "${ECHO_T}$ac_ct_STRIP" >&6
5430 else
5431   echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5433 fi
5434
5435   STRIP=$ac_ct_STRIP
5436 else
5437   STRIP="$ac_cv_prog_STRIP"
5438 fi
5439
5440
5441 old_CC="$CC"
5442 old_CFLAGS="$CFLAGS"
5443
5444 # Set sane defaults for various variables
5445 test -z "$AR" && AR=ar
5446 test -z "$AR_FLAGS" && AR_FLAGS=cru
5447 test -z "$AS" && AS=as
5448 test -z "$CC" && CC=cc
5449 test -z "$LTCC" && LTCC=$CC
5450 test -z "$DLLTOOL" && DLLTOOL=dlltool
5451 test -z "$LD" && LD=ld
5452 test -z "$LN_S" && LN_S="ln -s"
5453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5454 test -z "$NM" && NM=nm
5455 test -z "$SED" && SED=sed
5456 test -z "$OBJDUMP" && OBJDUMP=objdump
5457 test -z "$RANLIB" && RANLIB=:
5458 test -z "$STRIP" && STRIP=:
5459 test -z "$ac_objext" && ac_objext=o
5460
5461 # Determine commands to create old-style static archives.
5462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5463 old_postinstall_cmds='chmod 644 $oldlib'
5464 old_postuninstall_cmds=
5465
5466 if test -n "$RANLIB"; then
5467   case $host_os in
5468   openbsd*)
5469     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5470     ;;
5471   *)
5472     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5473     ;;
5474   esac
5475   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5476 fi
5477
5478 # Only perform the check for file, if the check method requires it
5479 case $deplibs_check_method in
5480 file_magic*)
5481   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5482     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5483 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5484 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   case $MAGIC_CMD in
5488 [\\/*] |  ?:[\\/]*)
5489   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5490   ;;
5491 *)
5492   lt_save_MAGIC_CMD="$MAGIC_CMD"
5493   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5494   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5495   for ac_dir in $ac_dummy; do
5496     IFS="$lt_save_ifs"
5497     test -z "$ac_dir" && ac_dir=.
5498     if test -f $ac_dir/${ac_tool_prefix}file; then
5499       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5500       if test -n "$file_magic_test_file"; then
5501         case $deplibs_check_method in
5502         "file_magic "*)
5503           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5504           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5505           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5506             $EGREP "$file_magic_regex" > /dev/null; then
5507             :
5508           else
5509             cat <<EOF 1>&2
5510
5511 *** Warning: the command libtool uses to detect shared libraries,
5512 *** $file_magic_cmd, produces output that libtool cannot recognize.
5513 *** The result is that libtool may fail to recognize shared libraries
5514 *** as such.  This will affect the creation of libtool libraries that
5515 *** depend on shared libraries, but programs linked with such libtool
5516 *** libraries will work regardless of this problem.  Nevertheless, you
5517 *** may want to report the problem to your system manager and/or to
5518 *** bug-libtool@gnu.org
5519
5520 EOF
5521           fi ;;
5522         esac
5523       fi
5524       break
5525     fi
5526   done
5527   IFS="$lt_save_ifs"
5528   MAGIC_CMD="$lt_save_MAGIC_CMD"
5529   ;;
5530 esac
5531 fi
5532
5533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5534 if test -n "$MAGIC_CMD"; then
5535   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5536 echo "${ECHO_T}$MAGIC_CMD" >&6
5537 else
5538   echo "$as_me:$LINENO: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5540 fi
5541
5542 if test -z "$lt_cv_path_MAGIC_CMD"; then
5543   if test -n "$ac_tool_prefix"; then
5544     echo "$as_me:$LINENO: checking for file" >&5
5545 echo $ECHO_N "checking for file... $ECHO_C" >&6
5546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   case $MAGIC_CMD in
5550 [\\/*] |  ?:[\\/]*)
5551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5552   ;;
5553 *)
5554   lt_save_MAGIC_CMD="$MAGIC_CMD"
5555   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5557   for ac_dir in $ac_dummy; do
5558     IFS="$lt_save_ifs"
5559     test -z "$ac_dir" && ac_dir=.
5560     if test -f $ac_dir/file; then
5561       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5562       if test -n "$file_magic_test_file"; then
5563         case $deplibs_check_method in
5564         "file_magic "*)
5565           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5566           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5567           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5568             $EGREP "$file_magic_regex" > /dev/null; then
5569             :
5570           else
5571             cat <<EOF 1>&2
5572
5573 *** Warning: the command libtool uses to detect shared libraries,
5574 *** $file_magic_cmd, produces output that libtool cannot recognize.
5575 *** The result is that libtool may fail to recognize shared libraries
5576 *** as such.  This will affect the creation of libtool libraries that
5577 *** depend on shared libraries, but programs linked with such libtool
5578 *** libraries will work regardless of this problem.  Nevertheless, you
5579 *** may want to report the problem to your system manager and/or to
5580 *** bug-libtool@gnu.org
5581
5582 EOF
5583           fi ;;
5584         esac
5585       fi
5586       break
5587     fi
5588   done
5589   IFS="$lt_save_ifs"
5590   MAGIC_CMD="$lt_save_MAGIC_CMD"
5591   ;;
5592 esac
5593 fi
5594
5595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5596 if test -n "$MAGIC_CMD"; then
5597   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5598 echo "${ECHO_T}$MAGIC_CMD" >&6
5599 else
5600   echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5602 fi
5603
5604   else
5605     MAGIC_CMD=:
5606   fi
5607 fi
5608
5609   fi
5610   ;;
5611 esac
5612
5613 enable_dlopen=no
5614 enable_win32_dll=no
5615
5616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then
5618   enableval="$enable_libtool_lock"
5619
5620 fi;
5621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5622
5623
5624 # Check whether --with-pic or --without-pic was given.
5625 if test "${with_pic+set}" = set; then
5626   withval="$with_pic"
5627   pic_mode="$withval"
5628 else
5629   pic_mode=default
5630 fi;
5631 test -z "$pic_mode" && pic_mode=default
5632
5633 # Use C for the default configuration in the libtool script
5634 tagname=
5635 lt_save_CC="$CC"
5636 ac_ext=c
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642
5643 # Source file extension for C test sources.
5644 ac_ext=c
5645
5646 # Object file extension for compiled C test sources.
5647 objext=o
5648 objext=$objext
5649
5650 # Code to be used in simple compile tests
5651 lt_simple_compile_test_code="int some_variable = 0;\n"
5652
5653 # Code to be used in simple link tests
5654 lt_simple_link_test_code='int main(){return(0);}\n'
5655
5656
5657 # If no C compiler was specified, use CC.
5658 LTCC=${LTCC-"$CC"}
5659
5660 # Allow CC to be a program name with arguments.
5661 compiler=$CC
5662
5663
5664 #
5665 # Check for any special shared library compilation flags.
5666 #
5667 lt_prog_cc_shlib=
5668 if test "$GCC" = no; then
5669   case $host_os in
5670   sco3.2v5*)
5671     lt_prog_cc_shlib='-belf'
5672     ;;
5673   esac
5674 fi
5675 if test -n "$lt_prog_cc_shlib"; then
5676   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5677 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5678   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5679   else
5680     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5681 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5682     lt_cv_prog_cc_can_build_shared=no
5683   fi
5684 fi
5685
5686
5687 #
5688 # Check to make sure the static flag actually works.
5689 #
5690 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5691 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5692 if test "${lt_prog_compiler_static_works+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   lt_prog_compiler_static_works=no
5696    save_LDFLAGS="$LDFLAGS"
5697    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5698    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5699    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5700      # The compiler can only warn and ignore the option if not recognized
5701      # So say no if there are warnings
5702      if test -s conftest.err; then
5703        # Append any errors to the config.log.
5704        cat conftest.err 1>&5
5705      else
5706        lt_prog_compiler_static_works=yes
5707      fi
5708    fi
5709    $rm conftest*
5710    LDFLAGS="$save_LDFLAGS"
5711
5712 fi
5713 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5714 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5715
5716 if test x"$lt_prog_compiler_static_works" = xyes; then
5717     :
5718 else
5719     lt_prog_compiler_static=
5720 fi
5721
5722
5723
5724
5725 lt_prog_compiler_no_builtin_flag=
5726
5727 if test "$GCC" = yes; then
5728   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5729
5730
5731 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5732 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5733 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   lt_cv_prog_compiler_rtti_exceptions=no
5737   ac_outfile=conftest.$ac_objext
5738    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5739    lt_compiler_flag="-fno-rtti -fno-exceptions"
5740    # Insert the option either (1) after the last *FLAGS variable, or
5741    # (2) before a word containing "conftest.", or (3) at the end.
5742    # Note that $ac_compile itself does not contain backslashes and begins
5743    # with a dollar sign (not a hyphen), so the echo should work correctly.
5744    # The option is referenced via a variable to avoid confusing sed.
5745    lt_compile=`echo "$ac_compile" | $SED \
5746    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5748    -e 's:$: $lt_compiler_flag:'`
5749    (eval echo "\"\$as_me:5749: $lt_compile\"" >&5)
5750    (eval "$lt_compile" 2>conftest.err)
5751    ac_status=$?
5752    cat conftest.err >&5
5753    echo "$as_me:5753: \$? = $ac_status" >&5
5754    if (exit $ac_status) && test -s "$ac_outfile"; then
5755      # The compiler can only warn and ignore the option if not recognized
5756      # So say no if there are warnings
5757      if test ! -s conftest.err; then
5758        lt_cv_prog_compiler_rtti_exceptions=yes
5759      fi
5760    fi
5761    $rm conftest*
5762
5763 fi
5764 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5765 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5766
5767 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5768     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5769 else
5770     :
5771 fi
5772
5773 fi
5774
5775 lt_prog_compiler_wl=
5776 lt_prog_compiler_pic=
5777 lt_prog_compiler_static=
5778
5779 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5780 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5781
5782   if test "$GCC" = yes; then
5783     lt_prog_compiler_wl='-Wl,'
5784     lt_prog_compiler_static='-static'
5785
5786     case $host_os in
5787       aix*)
5788       # All AIX code is PIC.
5789       if test "$host_cpu" = ia64; then
5790         # AIX 5 now supports IA64 processor
5791         lt_prog_compiler_static='-Bstatic'
5792       fi
5793       ;;
5794
5795     amigaos*)
5796       # FIXME: we need at least 68020 code to build shared libraries, but
5797       # adding the `-m68020' flag to GCC prevents building anything better,
5798       # like `-m68040'.
5799       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5800       ;;
5801
5802     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5803       # PIC is the default for these OSes.
5804       ;;
5805
5806     mingw* | pw32* | os2*)
5807       # This hack is so that the source file can tell whether it is being
5808       # built for inclusion in a dll (and should export symbols for example).
5809       lt_prog_compiler_pic='-DDLL_EXPORT'
5810       ;;
5811
5812     darwin* | rhapsody*)
5813       # PIC is the default on this platform
5814       # Common symbols not allowed in MH_DYLIB files
5815       lt_prog_compiler_pic='-fno-common'
5816       ;;
5817
5818     msdosdjgpp*)
5819       # Just because we use GCC doesn't mean we suddenly get shared libraries
5820       # on systems that don't support them.
5821       lt_prog_compiler_can_build_shared=no
5822       enable_shared=no
5823       ;;
5824
5825     sysv4*MP*)
5826       if test -d /usr/nec; then
5827         lt_prog_compiler_pic=-Kconform_pic
5828       fi
5829       ;;
5830
5831     hpux*)
5832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5833       # not for PA HP-UX.
5834       case "$host_cpu" in
5835       hppa*64*|ia64*)
5836         # +Z the default
5837         ;;
5838       *)
5839         lt_prog_compiler_pic='-fPIC'
5840         ;;
5841       esac
5842       ;;
5843
5844     *)
5845       lt_prog_compiler_pic='-fPIC'
5846       ;;
5847     esac
5848   else
5849     # PORTME Check for flag to pass linker flags through the system compiler.
5850     case $host_os in
5851     aix*)
5852       lt_prog_compiler_wl='-Wl,'
5853       if test "$host_cpu" = ia64; then
5854         # AIX 5 now supports IA64 processor
5855         lt_prog_compiler_static='-Bstatic'
5856       else
5857         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5858       fi
5859       ;;
5860
5861     mingw* | pw32* | os2*)
5862       # This hack is so that the source file can tell whether it is being
5863       # built for inclusion in a dll (and should export symbols for example).
5864       lt_prog_compiler_pic='-DDLL_EXPORT'
5865       ;;
5866
5867     hpux9* | hpux10* | hpux11*)
5868       lt_prog_compiler_wl='-Wl,'
5869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5870       # not for PA HP-UX.
5871       case "$host_cpu" in
5872       hppa*64*|ia64*)
5873         # +Z the default
5874         ;;
5875       *)
5876         lt_prog_compiler_pic='+Z'
5877         ;;
5878       esac
5879       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5880       lt_prog_compiler_static='${wl}-a ${wl}archive'
5881       ;;
5882
5883     irix5* | irix6* | nonstopux*)
5884       lt_prog_compiler_wl='-Wl,'
5885       # PIC (with -KPIC) is the default.
5886       lt_prog_compiler_static='-non_shared'
5887       ;;
5888
5889     newsos6)
5890       lt_prog_compiler_pic='-KPIC'
5891       lt_prog_compiler_static='-Bstatic'
5892       ;;
5893
5894     linux*)
5895       case $CC in
5896       icc* | ecc*)
5897         lt_prog_compiler_wl='-Wl,'
5898         lt_prog_compiler_pic='-KPIC'
5899         lt_prog_compiler_static='-static'
5900         ;;
5901       ccc*)
5902         lt_prog_compiler_wl='-Wl,'
5903         # All Alpha code is PIC.
5904         lt_prog_compiler_static='-non_shared'
5905         ;;
5906       esac
5907       ;;
5908
5909     osf3* | osf4* | osf5*)
5910       lt_prog_compiler_wl='-Wl,'
5911       # All OSF/1 code is PIC.
5912       lt_prog_compiler_static='-non_shared'
5913       ;;
5914
5915     sco3.2v5*)
5916       lt_prog_compiler_pic='-Kpic'
5917       lt_prog_compiler_static='-dn'
5918       ;;
5919
5920     solaris*)
5921       lt_prog_compiler_wl='-Wl,'
5922       lt_prog_compiler_pic='-KPIC'
5923       lt_prog_compiler_static='-Bstatic'
5924       ;;
5925
5926     sunos4*)
5927       lt_prog_compiler_wl='-Qoption ld '
5928       lt_prog_compiler_pic='-PIC'
5929       lt_prog_compiler_static='-Bstatic'
5930       ;;
5931
5932     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5933       lt_prog_compiler_wl='-Wl,'
5934       lt_prog_compiler_pic='-KPIC'
5935       lt_prog_compiler_static='-Bstatic'
5936       ;;
5937
5938     sysv4*MP*)
5939       if test -d /usr/nec ;then
5940         lt_prog_compiler_pic='-Kconform_pic'
5941         lt_prog_compiler_static='-Bstatic'
5942       fi
5943       ;;
5944
5945     uts4*)
5946       lt_prog_compiler_pic='-pic'
5947       lt_prog_compiler_static='-Bstatic'
5948       ;;
5949
5950     *)
5951       lt_prog_compiler_can_build_shared=no
5952       ;;
5953     esac
5954   fi
5955
5956 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5957 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5958
5959 #
5960 # Check to make sure the PIC flag actually works.
5961 #
5962 if test -n "$lt_prog_compiler_pic"; then
5963
5964 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5965 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5966 if test "${lt_prog_compiler_pic_works+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   lt_prog_compiler_pic_works=no
5970   ac_outfile=conftest.$ac_objext
5971    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5972    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5973    # Insert the option either (1) after the last *FLAGS variable, or
5974    # (2) before a word containing "conftest.", or (3) at the end.
5975    # Note that $ac_compile itself does not contain backslashes and begins
5976    # with a dollar sign (not a hyphen), so the echo should work correctly.
5977    # The option is referenced via a variable to avoid confusing sed.
5978    lt_compile=`echo "$ac_compile" | $SED \
5979    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5981    -e 's:$: $lt_compiler_flag:'`
5982    (eval echo "\"\$as_me:5982: $lt_compile\"" >&5)
5983    (eval "$lt_compile" 2>conftest.err)
5984    ac_status=$?
5985    cat conftest.err >&5
5986    echo "$as_me:5986: \$? = $ac_status" >&5
5987    if (exit $ac_status) && test -s "$ac_outfile"; then
5988      # The compiler can only warn and ignore the option if not recognized
5989      # So say no if there are warnings
5990      if test ! -s conftest.err; then
5991        lt_prog_compiler_pic_works=yes
5992      fi
5993    fi
5994    $rm conftest*
5995
5996 fi
5997 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5998 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5999
6000 if test x"$lt_prog_compiler_pic_works" = xyes; then
6001     case $lt_prog_compiler_pic in
6002      "" | " "*) ;;
6003      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6004      esac
6005 else
6006     lt_prog_compiler_pic=
6007      lt_prog_compiler_can_build_shared=no
6008 fi
6009
6010 fi
6011 case "$host_os" in
6012   # For platforms which do not support PIC, -DPIC is meaningless:
6013   *djgpp*)
6014     lt_prog_compiler_pic=
6015     ;;
6016   *)
6017     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6018     ;;
6019 esac
6020
6021 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6023 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   lt_cv_prog_compiler_c_o=no
6027    $rm -r conftest 2>/dev/null
6028    mkdir conftest
6029    cd conftest
6030    mkdir out
6031    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6032
6033    lt_compiler_flag="-o out/conftest2.$ac_objext"
6034    # Insert the option either (1) after the last *FLAGS variable, or
6035    # (2) before a word containing "conftest.", or (3) at the end.
6036    # Note that $ac_compile itself does not contain backslashes and begins
6037    # with a dollar sign (not a hyphen), so the echo should work correctly.
6038    lt_compile=`echo "$ac_compile" | $SED \
6039    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6041    -e 's:$: $lt_compiler_flag:'`
6042    (eval echo "\"\$as_me:6042: $lt_compile\"" >&5)
6043    (eval "$lt_compile" 2>out/conftest.err)
6044    ac_status=$?
6045    cat out/conftest.err >&5
6046    echo "$as_me:6046: \$? = $ac_status" >&5
6047    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6048    then
6049      # The compiler can only warn and ignore the option if not recognized
6050      # So say no if there are warnings
6051      if test ! -s out/conftest.err; then
6052        lt_cv_prog_compiler_c_o=yes
6053      fi
6054    fi
6055    chmod u+w .
6056    $rm conftest*
6057    # SGI C++ compiler will create directory out/ii_files/ for
6058    # template instantiation
6059    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6060    $rm out/* && rmdir out
6061    cd ..
6062    rmdir conftest
6063    $rm conftest*
6064
6065 fi
6066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6068
6069
6070 hard_links="nottested"
6071 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6072   # do not overwrite the value of need_locks provided by the user
6073   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6074 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6075   hard_links=yes
6076   $rm conftest*
6077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6078   touch conftest.a
6079   ln conftest.a conftest.b 2>&5 || hard_links=no
6080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6081   echo "$as_me:$LINENO: result: $hard_links" >&5
6082 echo "${ECHO_T}$hard_links" >&6
6083   if test "$hard_links" = no; then
6084     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6085 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6086     need_locks=warn
6087   fi
6088 else
6089   need_locks=no
6090 fi
6091
6092 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6093 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6094
6095   runpath_var=
6096   allow_undefined_flag=
6097   enable_shared_with_static_runtimes=no
6098   archive_cmds=
6099   archive_expsym_cmds=
6100   old_archive_From_new_cmds=
6101   old_archive_from_expsyms_cmds=
6102   export_dynamic_flag_spec=
6103   whole_archive_flag_spec=
6104   thread_safe_flag_spec=
6105   hardcode_libdir_flag_spec=
6106   hardcode_libdir_flag_spec_ld=
6107   hardcode_libdir_separator=
6108   hardcode_direct=no
6109   hardcode_minus_L=no
6110   hardcode_shlibpath_var=unsupported
6111   link_all_deplibs=unknown
6112   hardcode_automatic=no
6113   module_cmds=
6114   module_expsym_cmds=
6115   always_export_symbols=no
6116   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6117   # include_expsyms should be a list of space-separated symbols to be *always*
6118   # included in the symbol list
6119   include_expsyms=
6120   # exclude_expsyms can be an extended regexp of symbols to exclude
6121   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6122   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6123   # as well as any symbol that contains `d'.
6124   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6125   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6126   # platforms (ab)use it in PIC code, but their linkers get confused if
6127   # the symbol is explicitly referenced.  Since portable code cannot
6128   # rely on this symbol name, it's probably fine to never include it in
6129   # preloaded symbol tables.
6130   extract_expsyms_cmds=
6131
6132   case $host_os in
6133   cygwin* | mingw* | pw32*)
6134     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6135     # When not using gcc, we currently assume that we are using
6136     # Microsoft Visual C++.
6137     if test "$GCC" != yes; then
6138       with_gnu_ld=no
6139     fi
6140     ;;
6141   openbsd*)
6142     with_gnu_ld=no
6143     ;;
6144   esac
6145
6146   ld_shlibs=yes
6147   if test "$with_gnu_ld" = yes; then
6148     # If archive_cmds runs LD, not CC, wlarc should be empty
6149     wlarc='${wl}'
6150
6151     # See if GNU ld supports shared libraries.
6152     case $host_os in
6153     aix3* | aix4* | aix5*)
6154       # On AIX/PPC, the GNU linker is very broken
6155       if test "$host_cpu" != ia64; then
6156         ld_shlibs=no
6157         cat <<EOF 1>&2
6158
6159 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6160 *** to be unable to reliably create shared libraries on AIX.
6161 *** Therefore, libtool is disabling shared libraries support.  If you
6162 *** really care for shared libraries, you may want to modify your PATH
6163 *** so that a non-GNU linker is found, and then restart.
6164
6165 EOF
6166       fi
6167       ;;
6168
6169     amigaos*)
6170       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)'
6171       hardcode_libdir_flag_spec='-L$libdir'
6172       hardcode_minus_L=yes
6173
6174       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6175       # that the semantics of dynamic libraries on AmigaOS, at least up
6176       # to version 4, is to share data among multiple programs linked
6177       # with the same dynamic library.  Since this doesn't match the
6178       # behavior of shared libraries on other platforms, we can't use
6179       # them.
6180       ld_shlibs=no
6181       ;;
6182
6183     beos*)
6184       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6185         allow_undefined_flag=unsupported
6186         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6187         # support --undefined.  This deserves some investigation.  FIXME
6188         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6189       else
6190         ld_shlibs=no
6191       fi
6192       ;;
6193
6194     cygwin* | mingw* | pw32*)
6195       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6196       # as there is no search path for DLLs.
6197       hardcode_libdir_flag_spec='-L$libdir'
6198       allow_undefined_flag=unsupported
6199       always_export_symbols=no
6200       enable_shared_with_static_runtimes=yes
6201       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6202
6203       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6204         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6205         # If the export-symbols file already is a .def file (1st line
6206         # is EXPORTS), use it as is; otherwise, prepend...
6207         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6208           cp $export_symbols $output_objdir/$soname.def;
6209         else
6210           echo EXPORTS > $output_objdir/$soname.def;
6211           cat $export_symbols >> $output_objdir/$soname.def;
6212         fi~
6213         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6214       else
6215         ld_shlibs=no
6216       fi
6217       ;;
6218
6219     netbsd*)
6220       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6221         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6222         wlarc=
6223       else
6224         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6225         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6226       fi
6227       ;;
6228
6229     solaris* | sysv5*)
6230       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6231         ld_shlibs=no
6232         cat <<EOF 1>&2
6233
6234 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6235 *** create shared libraries on Solaris systems.  Therefore, libtool
6236 *** is disabling shared libraries support.  We urge you to upgrade GNU
6237 *** binutils to release 2.9.1 or newer.  Another option is to modify
6238 *** your PATH or compiler configuration so that the native linker is
6239 *** used, and then restart.
6240
6241 EOF
6242       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6244         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6245       else
6246         ld_shlibs=no
6247       fi
6248       ;;
6249
6250     sunos4*)
6251       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6252       wlarc=
6253       hardcode_direct=yes
6254       hardcode_shlibpath_var=no
6255       ;;
6256
6257   linux*)
6258     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6259         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6260         archive_cmds="$tmp_archive_cmds"
6261       supports_anon_versioning=no
6262       case `$LD -v 2>/dev/null` in
6263         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6264         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6265         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6266         *\ 2.11.*) ;; # other 2.11 versions
6267         *) supports_anon_versioning=yes ;;
6268       esac
6269       if test $supports_anon_versioning = yes; then
6270         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6272 $echo "local: *; };" >> $output_objdir/$libname.ver~
6273         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6274       else
6275         archive_expsym_cmds="$tmp_archive_cmds"
6276       fi
6277     else
6278       ld_shlibs=no
6279     fi
6280     ;;
6281
6282     *)
6283       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6284         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6285         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6286       else
6287         ld_shlibs=no
6288       fi
6289       ;;
6290     esac
6291
6292     if test "$ld_shlibs" = yes; then
6293       runpath_var=LD_RUN_PATH
6294       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6295       export_dynamic_flag_spec='${wl}--export-dynamic'
6296       # ancient GNU ld didn't support --whole-archive et. al.
6297       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6298         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6299       else
6300         whole_archive_flag_spec=
6301       fi
6302     fi
6303   else
6304     # PORTME fill in a description of your system's linker (not GNU ld)
6305     case $host_os in
6306     aix3*)
6307       allow_undefined_flag=unsupported
6308       always_export_symbols=yes
6309       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'
6310       # Note: this linker hardcodes the directories in LIBPATH if there
6311       # are no directories specified by -L.
6312       hardcode_minus_L=yes
6313       if test "$GCC" = yes && test -z "$link_static_flag"; then
6314         # Neither direct hardcoding nor static linking is supported with a
6315         # broken collect2.
6316         hardcode_direct=unsupported
6317       fi
6318       ;;
6319
6320     aix4* | aix5*)
6321       if test "$host_cpu" = ia64; then
6322         # On IA64, the linker does run time linking by default, so we don't
6323         # have to do anything special.
6324         aix_use_runtimelinking=no
6325         exp_sym_flag='-Bexport'
6326         no_entry_flag=""
6327       else
6328         # If we're using GNU nm, then we don't want the "-C" option.
6329         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6330         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6331           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'
6332         else
6333           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'
6334         fi
6335         aix_use_runtimelinking=no
6336
6337         # Test if we are trying to use run time linking or normal
6338         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6339         # need to do runtime linking.
6340         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6341           for ld_flag in $LDFLAGS; do
6342           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6343             aix_use_runtimelinking=yes
6344             break
6345           fi
6346           done
6347         esac
6348
6349         exp_sym_flag='-bexport'
6350         no_entry_flag='-bnoentry'
6351       fi
6352
6353       # When large executables or shared objects are built, AIX ld can
6354       # have problems creating the table of contents.  If linking a library
6355       # or program results in "error TOC overflow" add -mminimal-toc to
6356       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6357       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6358
6359       archive_cmds=''
6360       hardcode_direct=yes
6361       hardcode_libdir_separator=':'
6362       link_all_deplibs=yes
6363
6364       if test "$GCC" = yes; then
6365         case $host_os in aix4.012|aix4.012.*)
6366         # We only want to do this on AIX 4.2 and lower, the check
6367         # below for broken collect2 doesn't work under 4.3+
6368           collect2name=`${CC} -print-prog-name=collect2`
6369           if test -f "$collect2name" && \
6370            strings "$collect2name" | grep resolve_lib_name >/dev/null
6371           then
6372           # We have reworked collect2
6373           hardcode_direct=yes
6374           else
6375           # We have old collect2
6376           hardcode_direct=unsupported
6377           # It fails to find uninstalled libraries when the uninstalled
6378           # path is not listed in the libpath.  Setting hardcode_minus_L
6379           # to unsupported forces relinking
6380           hardcode_minus_L=yes
6381           hardcode_libdir_flag_spec='-L$libdir'
6382           hardcode_libdir_separator=
6383           fi
6384         esac
6385         shared_flag='-shared'
6386       else
6387         # not using gcc
6388         if test "$host_cpu" = ia64; then
6389         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6390         # chokes on -Wl,-G. The following line is correct:
6391           shared_flag='-G'
6392         else
6393         if test "$aix_use_runtimelinking" = yes; then
6394             shared_flag='${wl}-G'
6395           else
6396             shared_flag='${wl}-bM:SRE'
6397         fi
6398         fi
6399       fi
6400
6401       # It seems that -bexpall does not export symbols beginning with
6402       # underscore (_), so it is better to generate a list of symbols to export.
6403       always_export_symbols=yes
6404       if test "$aix_use_runtimelinking" = yes; then
6405         # Warning - without using the other runtime loading flags (-brtl),
6406         # -berok will link without error, but may produce a broken library.
6407         allow_undefined_flag='-berok'
6408        # Determine the default libpath from the value encoded in an empty executable.
6409        cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416 int
6417 main ()
6418 {
6419
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -z "$ac_c_werror_flag"
6434                          || test ! -s conftest.err'
6435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436   (eval $ac_try) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; } &&
6440          { ac_try='test -s conftest$ac_exeext'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; }; then
6446
6447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6448 }'`
6449 # Check for a 64-bit object if we didn't find anything.
6450 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; }
6451 }'`; fi
6452 else
6453   echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 fi
6457 rm -f conftest.err conftest.$ac_objext \
6458       conftest$ac_exeext conftest.$ac_ext
6459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6460
6461        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6462         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"
6463        else
6464         if test "$host_cpu" = ia64; then
6465           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6466           allow_undefined_flag="-z nodefs"
6467           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"
6468         else
6469          # Determine the default libpath from the value encoded in an empty executable.
6470          cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h.  */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h.  */
6476
6477 int
6478 main ()
6479 {
6480
6481   ;
6482   return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487   (eval $ac_link) 2>conftest.er1
6488   ac_status=$?
6489   grep -v '^ *+' conftest.er1 >conftest.err
6490   rm -f conftest.er1
6491   cat conftest.err >&5
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } &&
6494          { ac_try='test -z "$ac_c_werror_flag"
6495                          || test ! -s conftest.err'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; } &&
6501          { ac_try='test -s conftest$ac_exeext'
6502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503   (eval $ac_try) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507
6508 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6509 }'`
6510 # Check for a 64-bit object if we didn't find anything.
6511 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; }
6512 }'`; fi
6513 else
6514   echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 fi
6518 rm -f conftest.err conftest.$ac_objext \
6519       conftest$ac_exeext conftest.$ac_ext
6520 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6521
6522          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6523           # Warning - without using the other run time loading flags,
6524           # -berok will link without error, but may produce a broken library.
6525           no_undefined_flag=' ${wl}-bernotok'
6526           allow_undefined_flag=' ${wl}-berok'
6527           # -bexpall does not export symbols beginning with underscore (_)
6528           always_export_symbols=yes
6529           # Exported symbols can be pulled into shared objects from archives
6530           whole_archive_flag_spec=' '
6531           archive_cmds_need_lc=yes
6532           # This is similar to how AIX traditionally builds it's shared libraries.
6533           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'
6534         fi
6535       fi
6536       ;;
6537
6538     amigaos*)
6539       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)'
6540       hardcode_libdir_flag_spec='-L$libdir'
6541       hardcode_minus_L=yes
6542       # see comment about different semantics on the GNU ld section
6543       ld_shlibs=no
6544       ;;
6545
6546     bsdi4*)
6547       export_dynamic_flag_spec=-rdynamic
6548       ;;
6549
6550     cygwin* | mingw* | pw32*)
6551       # When not using gcc, we currently assume that we are using
6552       # Microsoft Visual C++.
6553       # hardcode_libdir_flag_spec is actually meaningless, as there is
6554       # no search path for DLLs.
6555       hardcode_libdir_flag_spec=' '
6556       allow_undefined_flag=unsupported
6557       # Tell ltmain to make .lib files, not .a files.
6558       libext=lib
6559       # Tell ltmain to make .dll files, not .so files.
6560       shrext_cmds=".dll"
6561       # FIXME: Setting linknames here is a bad hack.
6562       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6563       # The linker will automatically build a .lib file if we build a DLL.
6564       old_archive_From_new_cmds='true'
6565       # FIXME: Should let the user specify the lib program.
6566       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6567       fix_srcfile_path='`cygpath -w "$srcfile"`'
6568       enable_shared_with_static_runtimes=yes
6569       ;;
6570
6571     darwin* | rhapsody*)
6572     if test "$GXX" = yes ; then
6573       archive_cmds_need_lc=no
6574       case "$host_os" in
6575       rhapsody* | darwin1.[012])
6576         allow_undefined_flag='-undefined suppress'
6577         ;;
6578       *) # Darwin 1.3 on
6579       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6580         allow_undefined_flag='-flat_namespace -undefined suppress'
6581       else
6582         case ${MACOSX_DEPLOYMENT_TARGET} in
6583           10.[012])
6584             allow_undefined_flag='-flat_namespace -undefined suppress'
6585             ;;
6586           10.*)
6587             allow_undefined_flag='-undefined dynamic_lookup'
6588             ;;
6589         esac
6590       fi
6591         ;;
6592       esac
6593         lt_int_apple_cc_single_mod=no
6594         output_verbose_link_cmd='echo'
6595         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6596           lt_int_apple_cc_single_mod=yes
6597         fi
6598         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6599           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6600         else
6601         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'
6602       fi
6603       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6604       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6605         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6606           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}'
6607         else
6608           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}'
6609         fi
6610           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6611       hardcode_direct=no
6612       hardcode_automatic=yes
6613       hardcode_shlibpath_var=unsupported
6614       whole_archive_flag_spec='-all_load $convenience'
6615       link_all_deplibs=yes
6616     else
6617       ld_shlibs=no
6618     fi
6619       ;;
6620
6621     dgux*)
6622       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6623       hardcode_libdir_flag_spec='-L$libdir'
6624       hardcode_shlibpath_var=no
6625       ;;
6626
6627     freebsd1*)
6628       ld_shlibs=no
6629       ;;
6630
6631     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6632     # support.  Future versions do this automatically, but an explicit c++rt0.o
6633     # does not break anything, and helps significantly (at the cost of a little
6634     # extra space).
6635     freebsd2.2*)
6636       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6637       hardcode_libdir_flag_spec='-R$libdir'
6638       hardcode_direct=yes
6639       hardcode_shlibpath_var=no
6640       ;;
6641
6642     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6643     freebsd2*)
6644       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6645       hardcode_direct=yes
6646       hardcode_minus_L=yes
6647       hardcode_shlibpath_var=no
6648       ;;
6649
6650     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6651     freebsd* | kfreebsd*-gnu)
6652       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6653       hardcode_libdir_flag_spec='-R$libdir'
6654       hardcode_direct=yes
6655       hardcode_shlibpath_var=no
6656       ;;
6657
6658     hpux9*)
6659       if test "$GCC" = yes; then
6660         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'
6661       else
6662         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'
6663       fi
6664       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6665       hardcode_libdir_separator=:
6666       hardcode_direct=yes
6667
6668       # hardcode_minus_L: Not really in the search PATH,
6669       # but as the default location of the library.
6670       hardcode_minus_L=yes
6671       export_dynamic_flag_spec='${wl}-E'
6672       ;;
6673
6674     hpux10* | hpux11*)
6675       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6676         case "$host_cpu" in
6677         hppa*64*|ia64*)
6678           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6679           ;;
6680         *)
6681           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6682           ;;
6683         esac
6684       else
6685         case "$host_cpu" in
6686         hppa*64*|ia64*)
6687           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6688           ;;
6689         *)
6690           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6691           ;;
6692         esac
6693       fi
6694       if test "$with_gnu_ld" = no; then
6695         case "$host_cpu" in
6696         hppa*64*)
6697           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6698           hardcode_libdir_flag_spec_ld='+b $libdir'
6699           hardcode_libdir_separator=:
6700           hardcode_direct=no
6701           hardcode_shlibpath_var=no
6702           ;;
6703         ia64*)
6704           hardcode_libdir_flag_spec='-L$libdir'
6705           hardcode_direct=no
6706           hardcode_shlibpath_var=no
6707
6708           # hardcode_minus_L: Not really in the search PATH,
6709           # but as the default location of the library.
6710           hardcode_minus_L=yes
6711           ;;
6712         *)
6713           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6714           hardcode_libdir_separator=:
6715           hardcode_direct=yes
6716           export_dynamic_flag_spec='${wl}-E'
6717
6718           # hardcode_minus_L: Not really in the search PATH,
6719           # but as the default location of the library.
6720           hardcode_minus_L=yes
6721           ;;
6722         esac
6723       fi
6724       ;;
6725
6726     irix5* | irix6* | nonstopux*)
6727       if test "$GCC" = yes; then
6728         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'
6729       else
6730         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'
6731         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6732       fi
6733       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6734       hardcode_libdir_separator=:
6735       link_all_deplibs=yes
6736       ;;
6737
6738     netbsd*)
6739       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6740         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6741       else
6742         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6743       fi
6744       hardcode_libdir_flag_spec='-R$libdir'
6745       hardcode_direct=yes
6746       hardcode_shlibpath_var=no
6747       ;;
6748
6749     newsos6)
6750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6751       hardcode_direct=yes
6752       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6753       hardcode_libdir_separator=:
6754       hardcode_shlibpath_var=no
6755       ;;
6756
6757     openbsd*)
6758       hardcode_direct=yes
6759       hardcode_shlibpath_var=no
6760       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6762         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6763         export_dynamic_flag_spec='${wl}-E'
6764       else
6765        case $host_os in
6766          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6767            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6768            hardcode_libdir_flag_spec='-R$libdir'
6769            ;;
6770          *)
6771            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6772            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6773            ;;
6774        esac
6775       fi
6776       ;;
6777
6778     os2*)
6779       hardcode_libdir_flag_spec='-L$libdir'
6780       hardcode_minus_L=yes
6781       allow_undefined_flag=unsupported
6782       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'
6783       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6784       ;;
6785
6786     osf3*)
6787       if test "$GCC" = yes; then
6788         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6789         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'
6790       else
6791         allow_undefined_flag=' -expect_unresolved \*'
6792         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'
6793       fi
6794       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6795       hardcode_libdir_separator=:
6796       ;;
6797
6798     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6799       if test "$GCC" = yes; then
6800         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6801         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'
6802         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6803       else
6804         allow_undefined_flag=' -expect_unresolved \*'
6805         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'
6806         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6807         $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'
6808
6809         # Both c and cxx compiler support -rpath directly
6810         hardcode_libdir_flag_spec='-rpath $libdir'
6811       fi
6812       hardcode_libdir_separator=:
6813       ;;
6814
6815     sco3.2v5*)
6816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6817       hardcode_shlibpath_var=no
6818       export_dynamic_flag_spec='${wl}-Bexport'
6819       runpath_var=LD_RUN_PATH
6820       hardcode_runpath_var=yes
6821       ;;
6822
6823     solaris*)
6824       no_undefined_flag=' -z text'
6825       if test "$GCC" = yes; then
6826         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6827         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6828           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6829       else
6830         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6831         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6832         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6833       fi
6834       hardcode_libdir_flag_spec='-R$libdir'
6835       hardcode_shlibpath_var=no
6836       case $host_os in
6837       solaris2.[0-5] | solaris2.[0-5].*) ;;
6838       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6839         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6840       esac
6841       link_all_deplibs=yes
6842       ;;
6843
6844     sunos4*)
6845       if test "x$host_vendor" = xsequent; then
6846         # Use $CC to link under sequent, because it throws in some extra .o
6847         # files that make .init and .fini sections work.
6848         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6849       else
6850         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6851       fi
6852       hardcode_libdir_flag_spec='-L$libdir'
6853       hardcode_direct=yes
6854       hardcode_minus_L=yes
6855       hardcode_shlibpath_var=no
6856       ;;
6857
6858     sysv4)
6859       case $host_vendor in
6860         sni)
6861           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6862           hardcode_direct=yes # is this really true???
6863         ;;
6864         siemens)
6865           ## LD is ld it makes a PLAMLIB
6866           ## CC just makes a GrossModule.
6867           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6868           reload_cmds='$CC -r -o $output$reload_objs'
6869           hardcode_direct=no
6870         ;;
6871         motorola)
6872           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6873           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6874         ;;
6875       esac
6876       runpath_var='LD_RUN_PATH'
6877       hardcode_shlibpath_var=no
6878       ;;
6879
6880     sysv4.3*)
6881       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6882       hardcode_shlibpath_var=no
6883       export_dynamic_flag_spec='-Bexport'
6884       ;;
6885
6886     sysv4*MP*)
6887       if test -d /usr/nec; then
6888         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6889         hardcode_shlibpath_var=no
6890         runpath_var=LD_RUN_PATH
6891         hardcode_runpath_var=yes
6892         ld_shlibs=yes
6893       fi
6894       ;;
6895
6896     sysv4.2uw2*)
6897       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6898       hardcode_direct=yes
6899       hardcode_minus_L=no
6900       hardcode_shlibpath_var=no
6901       hardcode_runpath_var=yes
6902       runpath_var=LD_RUN_PATH
6903       ;;
6904
6905    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6906       no_undefined_flag='${wl}-z ${wl}text'
6907       if test "$GCC" = yes; then
6908         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6909       else
6910         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6911       fi
6912       runpath_var='LD_RUN_PATH'
6913       hardcode_shlibpath_var=no
6914       ;;
6915
6916     sysv5*)
6917       no_undefined_flag=' -z text'
6918       # $CC -shared without GNU ld will not create a library from C++
6919       # object files and a static libstdc++, better avoid it by now
6920       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923       hardcode_libdir_flag_spec=
6924       hardcode_shlibpath_var=no
6925       runpath_var='LD_RUN_PATH'
6926       ;;
6927
6928     uts4*)
6929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6930       hardcode_libdir_flag_spec='-L$libdir'
6931       hardcode_shlibpath_var=no
6932       ;;
6933
6934     *)
6935       ld_shlibs=no
6936       ;;
6937     esac
6938   fi
6939
6940 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6941 echo "${ECHO_T}$ld_shlibs" >&6
6942 test "$ld_shlibs" = no && can_build_shared=no
6943
6944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6945 if test "$GCC" = yes; then
6946   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6947 fi
6948
6949 #
6950 # Do we need to explicitly link libc?
6951 #
6952 case "x$archive_cmds_need_lc" in
6953 x|xyes)
6954   # Assume -lc should be added
6955   archive_cmds_need_lc=yes
6956
6957   if test "$enable_shared" = yes && test "$GCC" = yes; then
6958     case $archive_cmds in
6959     *'~'*)
6960       # FIXME: we may have to deal with multi-command sequences.
6961       ;;
6962     '$CC '*)
6963       # Test whether the compiler implicitly links with -lc since on some
6964       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6965       # to ld, don't add -lc before -lgcc.
6966       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6968       $rm conftest*
6969       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6970
6971       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972   (eval $ac_compile) 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } 2>conftest.err; then
6976         soname=conftest
6977         lib=conftest
6978         libobjs=conftest.$ac_objext
6979         deplibs=
6980         wl=$lt_prog_compiler_wl
6981         compiler_flags=-v
6982         linker_flags=-v
6983         verstring=
6984         output_objdir=.
6985         libname=conftest
6986         lt_save_allow_undefined_flag=$allow_undefined_flag
6987         allow_undefined_flag=
6988         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6989   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }
6993         then
6994           archive_cmds_need_lc=no
6995         else
6996           archive_cmds_need_lc=yes
6997         fi
6998         allow_undefined_flag=$lt_save_allow_undefined_flag
6999       else
7000         cat conftest.err 1>&5
7001       fi
7002       $rm conftest*
7003       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7004 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7005       ;;
7006     esac
7007   fi
7008   ;;
7009 esac
7010
7011 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7012 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7013 library_names_spec=
7014 libname_spec='lib$name'
7015 soname_spec=
7016 shrext_cmds=".so"
7017 postinstall_cmds=
7018 postuninstall_cmds=
7019 finish_cmds=
7020 finish_eval=
7021 shlibpath_var=
7022 shlibpath_overrides_runpath=unknown
7023 version_type=none
7024 dynamic_linker="$host_os ld.so"
7025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7026 if test "$GCC" = yes; then
7027   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7028   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7029     # if the path contains ";" then we assume it to be the separator
7030     # otherwise default to the standard path separator (i.e. ":") - it is
7031     # assumed that no part of a normal pathname contains ";" but that should
7032     # okay in the real world where ";" in dirpaths is itself problematic.
7033     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7034   else
7035     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7036   fi
7037 else
7038   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7039 fi
7040 need_lib_prefix=unknown
7041 hardcode_into_libs=no
7042
7043 # when you set need_version to no, make sure it does not cause -set_version
7044 # flags to be left without arguments
7045 need_version=unknown
7046
7047 case $host_os in
7048 aix3*)
7049   version_type=linux
7050   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7051   shlibpath_var=LIBPATH
7052
7053   # AIX 3 has no versioning support, so we append a major version to the name.
7054   soname_spec='${libname}${release}${shared_ext}$major'
7055   ;;
7056
7057 aix4* | aix5*)
7058   version_type=linux
7059   need_lib_prefix=no
7060   need_version=no
7061   hardcode_into_libs=yes
7062   if test "$host_cpu" = ia64; then
7063     # AIX 5 supports IA64
7064     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7065     shlibpath_var=LD_LIBRARY_PATH
7066   else
7067     # With GCC up to 2.95.x, collect2 would create an import file
7068     # for dependence libraries.  The import file would start with
7069     # the line `#! .'.  This would cause the generated library to
7070     # depend on `.', always an invalid library.  This was fixed in
7071     # development snapshots of GCC prior to 3.0.
7072     case $host_os in
7073       aix4 | aix4.[01] | aix4.[01].*)
7074       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7075            echo ' yes '
7076            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7077         :
7078       else
7079         can_build_shared=no
7080       fi
7081       ;;
7082     esac
7083     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7084     # soname into executable. Probably we can add versioning support to
7085     # collect2, so additional links can be useful in future.
7086     if test "$aix_use_runtimelinking" = yes; then
7087       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7088       # instead of lib<name>.a to let people know that these are not
7089       # typical AIX shared libraries.
7090       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7091     else
7092       # We preserve .a as extension for shared libraries through AIX4.2
7093       # and later when we are not doing run time linking.
7094       library_names_spec='${libname}${release}.a $libname.a'
7095       soname_spec='${libname}${release}${shared_ext}$major'
7096     fi
7097     shlibpath_var=LIBPATH
7098   fi
7099   ;;
7100
7101 amigaos*)
7102   library_names_spec='$libname.ixlibrary $libname.a'
7103   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7104   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'
7105   ;;
7106
7107 beos*)
7108   library_names_spec='${libname}${shared_ext}'
7109   dynamic_linker="$host_os ld.so"
7110   shlibpath_var=LIBRARY_PATH
7111   ;;
7112
7113 bsdi4*)
7114   version_type=linux
7115   need_version=no
7116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7117   soname_spec='${libname}${release}${shared_ext}$major'
7118   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7119   shlibpath_var=LD_LIBRARY_PATH
7120   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7121   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7122   # the default ld.so.conf also contains /usr/contrib/lib and
7123   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7124   # libtool to hard-code these into programs
7125   ;;
7126
7127 cygwin* | mingw* | pw32*)
7128   version_type=windows
7129   shrext_cmds=".dll"
7130   need_version=no
7131   need_lib_prefix=no
7132
7133   case $GCC,$host_os in
7134   yes,cygwin* | yes,mingw* | yes,pw32*)
7135     library_names_spec='$libname.dll.a'
7136     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7137     postinstall_cmds='base_file=`basename \${file}`~
7138       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7139       dldir=$destdir/`dirname \$dlpath`~
7140       test -d \$dldir || mkdir -p \$dldir~
7141       $install_prog $dir/$dlname \$dldir/$dlname'
7142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7143       dlpath=$dir/\$dldll~
7144        $rm \$dlpath'
7145     shlibpath_overrides_runpath=yes
7146
7147     case $host_os in
7148     cygwin*)
7149       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7150       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7151       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7152       ;;
7153     mingw*)
7154       # MinGW DLLs use traditional 'lib' prefix
7155       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7156       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7157       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7158         # It is most probably a Windows format PATH printed by
7159         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7160         # path with ; separators, and with drive letters. We can handle the
7161         # drive letters (cygwin fileutils understands them), so leave them,
7162         # especially as we might pass files found there to a mingw objdump,
7163         # which wouldn't understand a cygwinified path. Ahh.
7164         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7165       else
7166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7167       fi
7168       ;;
7169     pw32*)
7170       # pw32 DLLs use 'pw' prefix rather than 'lib'
7171       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7172       ;;
7173     esac
7174     ;;
7175
7176   *)
7177     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7178     ;;
7179   esac
7180   dynamic_linker='Win32 ld.exe'
7181   # FIXME: first we should search . and the directory the executable is in
7182   shlibpath_var=PATH
7183   ;;
7184
7185 darwin* | rhapsody*)
7186   dynamic_linker="$host_os dyld"
7187   version_type=darwin
7188   need_lib_prefix=no
7189   need_version=no
7190   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7191   soname_spec='${libname}${release}${major}$shared_ext'
7192   shlibpath_overrides_runpath=yes
7193   shlibpath_var=DYLD_LIBRARY_PATH
7194   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7195   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7196   if test "$GCC" = yes; then
7197     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"`
7198   else
7199     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7200   fi
7201   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7202   ;;
7203
7204 dgux*)
7205   version_type=linux
7206   need_lib_prefix=no
7207   need_version=no
7208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7209   soname_spec='${libname}${release}${shared_ext}$major'
7210   shlibpath_var=LD_LIBRARY_PATH
7211   ;;
7212
7213 freebsd1*)
7214   dynamic_linker=no
7215   ;;
7216
7217 kfreebsd*-gnu)
7218   version_type=linux
7219   need_lib_prefix=no
7220   need_version=no
7221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7222   soname_spec='${libname}${release}${shared_ext}$major'
7223   shlibpath_var=LD_LIBRARY_PATH
7224   shlibpath_overrides_runpath=no
7225   hardcode_into_libs=yes
7226   dynamic_linker='GNU ld.so'
7227   ;;
7228
7229 freebsd*)
7230   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7231   version_type=freebsd-$objformat
7232   case $version_type in
7233     freebsd-elf*)
7234       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7235       need_version=no
7236       need_lib_prefix=no
7237       ;;
7238     freebsd-*)
7239       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7240       need_version=yes
7241       ;;
7242   esac
7243   shlibpath_var=LD_LIBRARY_PATH
7244   case $host_os in
7245   freebsd2*)
7246     shlibpath_overrides_runpath=yes
7247     ;;
7248   freebsd3.01* | freebsdelf3.01*)
7249     shlibpath_overrides_runpath=yes
7250     hardcode_into_libs=yes
7251     ;;
7252   *) # from 3.2 on
7253     shlibpath_overrides_runpath=no
7254     hardcode_into_libs=yes
7255     ;;
7256   esac
7257   ;;
7258
7259 gnu*)
7260   version_type=linux
7261   need_lib_prefix=no
7262   need_version=no
7263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7264   soname_spec='${libname}${release}${shared_ext}$major'
7265   shlibpath_var=LD_LIBRARY_PATH
7266   hardcode_into_libs=yes
7267   ;;
7268
7269 hpux9* | hpux10* | hpux11*)
7270   # Give a soname corresponding to the major version so that dld.sl refuses to
7271   # link against other versions.
7272   version_type=sunos
7273   need_lib_prefix=no
7274   need_version=no
7275   case "$host_cpu" in
7276   ia64*)
7277     shrext_cmds='.so'
7278     hardcode_into_libs=yes
7279     dynamic_linker="$host_os dld.so"
7280     shlibpath_var=LD_LIBRARY_PATH
7281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283     soname_spec='${libname}${release}${shared_ext}$major'
7284     if test "X$HPUX_IA64_MODE" = X32; then
7285       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7286     else
7287       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7288     fi
7289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7290     ;;
7291    hppa*64*)
7292      shrext_cmds='.sl'
7293      hardcode_into_libs=yes
7294      dynamic_linker="$host_os dld.sl"
7295      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7296      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7297      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7298      soname_spec='${libname}${release}${shared_ext}$major'
7299      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7300      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7301      ;;
7302    *)
7303     shrext_cmds='.sl'
7304     dynamic_linker="$host_os dld.sl"
7305     shlibpath_var=SHLIB_PATH
7306     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7308     soname_spec='${libname}${release}${shared_ext}$major'
7309     ;;
7310   esac
7311   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7312   postinstall_cmds='chmod 555 $lib'
7313   ;;
7314
7315 irix5* | irix6* | nonstopux*)
7316   case $host_os in
7317     nonstopux*) version_type=nonstopux ;;
7318     *)
7319         if test "$lt_cv_prog_gnu_ld" = yes; then
7320                 version_type=linux
7321         else
7322                 version_type=irix
7323         fi ;;
7324   esac
7325   need_lib_prefix=no
7326   need_version=no
7327   soname_spec='${libname}${release}${shared_ext}$major'
7328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7329   case $host_os in
7330   irix5* | nonstopux*)
7331     libsuff= shlibsuff=
7332     ;;
7333   *)
7334     case $LD in # libtool.m4 will add one of these switches to LD
7335     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7336       libsuff= shlibsuff= libmagic=32-bit;;
7337     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7338       libsuff=32 shlibsuff=N32 libmagic=N32;;
7339     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7340       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7341     *) libsuff= shlibsuff= libmagic=never-match;;
7342     esac
7343     ;;
7344   esac
7345   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7346   shlibpath_overrides_runpath=no
7347   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7348   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7349   hardcode_into_libs=yes
7350   ;;
7351
7352 # No shared lib support for Linux oldld, aout, or coff.
7353 linux*oldld* | linux*aout* | linux*coff*)
7354   dynamic_linker=no
7355   ;;
7356
7357 # This must be Linux ELF.
7358 linux*)
7359   version_type=linux
7360   need_lib_prefix=no
7361   need_version=no
7362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7363   soname_spec='${libname}${release}${shared_ext}$major'
7364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7365   shlibpath_var=LD_LIBRARY_PATH
7366   shlibpath_overrides_runpath=no
7367   # This implies no fast_install, which is unacceptable.
7368   # Some rework will be needed to allow for fast_install
7369   # before this can be enabled.
7370   hardcode_into_libs=yes
7371
7372   # find out which ABI we are using
7373   libsuff=
7374   case "$host_cpu" in
7375   x86_64*|s390x*|powerpc64*)
7376     echo '#line 7376 "configure"' > conftest.$ac_ext
7377     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378   (eval $ac_compile) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; then
7382       case `/usr/bin/file conftest.$ac_objext` in
7383       *64-bit*)
7384         libsuff=64
7385         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7386         ;;
7387       esac
7388     fi
7389     rm -rf conftest*
7390     ;;
7391   esac
7392
7393   # Append ld.so.conf contents to the search path
7394   if test -f /etc/ld.so.conf; then
7395     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7396     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7397   fi
7398
7399   # We used to test for /lib/ld.so.1 and disable shared libraries on
7400   # powerpc, because MkLinux only supported shared libraries with the
7401   # GNU dynamic linker.  Since this was broken with cross compilers,
7402   # most powerpc-linux boxes support dynamic linking these days and
7403   # people can always --disable-shared, the test was removed, and we
7404   # assume the GNU/Linux dynamic linker is in use.
7405   dynamic_linker='GNU/Linux ld.so'
7406   ;;
7407
7408 knetbsd*-gnu)
7409   version_type=linux
7410   need_lib_prefix=no
7411   need_version=no
7412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7413   soname_spec='${libname}${release}${shared_ext}$major'
7414   shlibpath_var=LD_LIBRARY_PATH
7415   shlibpath_overrides_runpath=no
7416   hardcode_into_libs=yes
7417   dynamic_linker='GNU ld.so'
7418   ;;
7419
7420 netbsd*)
7421   version_type=sunos
7422   need_lib_prefix=no
7423   need_version=no
7424   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7427     dynamic_linker='NetBSD (a.out) ld.so'
7428   else
7429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7430     soname_spec='${libname}${release}${shared_ext}$major'
7431     dynamic_linker='NetBSD ld.elf_so'
7432   fi
7433   shlibpath_var=LD_LIBRARY_PATH
7434   shlibpath_overrides_runpath=yes
7435   hardcode_into_libs=yes
7436   ;;
7437
7438 newsos6)
7439   version_type=linux
7440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7441   shlibpath_var=LD_LIBRARY_PATH
7442   shlibpath_overrides_runpath=yes
7443   ;;
7444
7445 nto-qnx*)
7446   version_type=linux
7447   need_lib_prefix=no
7448   need_version=no
7449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450   soname_spec='${libname}${release}${shared_ext}$major'
7451   shlibpath_var=LD_LIBRARY_PATH
7452   shlibpath_overrides_runpath=yes
7453   ;;
7454
7455 openbsd*)
7456   version_type=sunos
7457   need_lib_prefix=no
7458   need_version=yes
7459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7461   shlibpath_var=LD_LIBRARY_PATH
7462   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7463     case $host_os in
7464       openbsd2.[89] | openbsd2.[89].*)
7465         shlibpath_overrides_runpath=no
7466         ;;
7467       *)
7468         shlibpath_overrides_runpath=yes
7469         ;;
7470       esac
7471   else
7472     shlibpath_overrides_runpath=yes
7473   fi
7474   ;;
7475
7476 os2*)
7477   libname_spec='$name'
7478   shrext_cmds=".dll"
7479   need_lib_prefix=no
7480   library_names_spec='$libname${shared_ext} $libname.a'
7481   dynamic_linker='OS/2 ld.exe'
7482   shlibpath_var=LIBPATH
7483   ;;
7484
7485 osf3* | osf4* | osf5*)
7486   version_type=osf
7487   need_lib_prefix=no
7488   need_version=no
7489   soname_spec='${libname}${release}${shared_ext}$major'
7490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7491   shlibpath_var=LD_LIBRARY_PATH
7492   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7493   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7494   ;;
7495
7496 sco3.2v5*)
7497   version_type=osf
7498   soname_spec='${libname}${release}${shared_ext}$major'
7499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7500   shlibpath_var=LD_LIBRARY_PATH
7501   ;;
7502
7503 solaris*)
7504   version_type=linux
7505   need_lib_prefix=no
7506   need_version=no
7507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508   soname_spec='${libname}${release}${shared_ext}$major'
7509   shlibpath_var=LD_LIBRARY_PATH
7510   shlibpath_overrides_runpath=yes
7511   hardcode_into_libs=yes
7512   # ldd complains unless libraries are executable
7513   postinstall_cmds='chmod +x $lib'
7514   ;;
7515
7516 sunos4*)
7517   version_type=sunos
7518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7519   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7520   shlibpath_var=LD_LIBRARY_PATH
7521   shlibpath_overrides_runpath=yes
7522   if test "$with_gnu_ld" = yes; then
7523     need_lib_prefix=no
7524   fi
7525   need_version=yes
7526   ;;
7527
7528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7529   version_type=linux
7530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7531   soname_spec='${libname}${release}${shared_ext}$major'
7532   shlibpath_var=LD_LIBRARY_PATH
7533   case $host_vendor in
7534     sni)
7535       shlibpath_overrides_runpath=no
7536       need_lib_prefix=no
7537       export_dynamic_flag_spec='${wl}-Blargedynsym'
7538       runpath_var=LD_RUN_PATH
7539       ;;
7540     siemens)
7541       need_lib_prefix=no
7542       ;;
7543     motorola)
7544       need_lib_prefix=no
7545       need_version=no
7546       shlibpath_overrides_runpath=no
7547       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7548       ;;
7549   esac
7550   ;;
7551
7552 sysv4*MP*)
7553   if test -d /usr/nec ;then
7554     version_type=linux
7555     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7556     soname_spec='$libname${shared_ext}.$major'
7557     shlibpath_var=LD_LIBRARY_PATH
7558   fi
7559   ;;
7560
7561 uts4*)
7562   version_type=linux
7563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564   soname_spec='${libname}${release}${shared_ext}$major'
7565   shlibpath_var=LD_LIBRARY_PATH
7566   ;;
7567
7568 *)
7569   dynamic_linker=no
7570   ;;
7571 esac
7572 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7573 echo "${ECHO_T}$dynamic_linker" >&6
7574 test "$dynamic_linker" = no && can_build_shared=no
7575
7576 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7577 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7578 hardcode_action=
7579 if test -n "$hardcode_libdir_flag_spec" || \
7580    test -n "$runpath_var " || \
7581    test "X$hardcode_automatic"="Xyes" ; then
7582
7583   # We can hardcode non-existant directories.
7584   if test "$hardcode_direct" != no &&
7585      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7586      # have to relink, otherwise we might link with an installed library
7587      # when we should be linking with a yet-to-be-installed one
7588      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7589      test "$hardcode_minus_L" != no; then
7590     # Linking always hardcodes the temporary library directory.
7591     hardcode_action=relink
7592   else
7593     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7594     hardcode_action=immediate
7595   fi
7596 else
7597   # We cannot hardcode anything, or else we can only hardcode existing
7598   # directories.
7599   hardcode_action=unsupported
7600 fi
7601 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7602 echo "${ECHO_T}$hardcode_action" >&6
7603
7604 if test "$hardcode_action" = relink; then
7605   # Fast installation is not supported
7606   enable_fast_install=no
7607 elif test "$shlibpath_overrides_runpath" = yes ||
7608      test "$enable_shared" = no; then
7609   # Fast installation is not necessary
7610   enable_fast_install=needless
7611 fi
7612
7613 striplib=
7614 old_striplib=
7615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7617 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7618   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7619   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7620   echo "$as_me:$LINENO: result: yes" >&5
7621 echo "${ECHO_T}yes" >&6
7622 else
7623 # FIXME - insert some real tests, host_os isn't really good enough
7624   case $host_os in
7625    darwin*)
7626        if test -n "$STRIP" ; then
7627          striplib="$STRIP -x"
7628          echo "$as_me:$LINENO: result: yes" >&5
7629 echo "${ECHO_T}yes" >&6
7630        else
7631   echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7633 fi
7634        ;;
7635    *)
7636   echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6
7638     ;;
7639   esac
7640 fi
7641
7642 if test "x$enable_dlopen" != xyes; then
7643   enable_dlopen=unknown
7644   enable_dlopen_self=unknown
7645   enable_dlopen_self_static=unknown
7646 else
7647   lt_cv_dlopen=no
7648   lt_cv_dlopen_libs=
7649
7650   case $host_os in
7651   beos*)
7652     lt_cv_dlopen="load_add_on"
7653     lt_cv_dlopen_libs=
7654     lt_cv_dlopen_self=yes
7655     ;;
7656
7657   mingw* | pw32*)
7658     lt_cv_dlopen="LoadLibrary"
7659     lt_cv_dlopen_libs=
7660    ;;
7661
7662   cygwin*)
7663     lt_cv_dlopen="dlopen"
7664     lt_cv_dlopen_libs=
7665    ;;
7666
7667   darwin*)
7668   # if libdl is installed we need to link against it
7669     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   ac_check_lib_save_LIBS=$LIBS
7675 LIBS="-ldl  $LIBS"
7676 cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682
7683 /* Override any gcc2 internal prototype to avoid an error.  */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 /* We use char because int might match the return type of a gcc2
7688    builtin and then its argument prototype would still apply.  */
7689 char dlopen ();
7690 int
7691 main ()
7692 {
7693 dlopen ();
7694   ;
7695   return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7700   (eval $ac_link) 2>conftest.er1
7701   ac_status=$?
7702   grep -v '^ *+' conftest.er1 >conftest.err
7703   rm -f conftest.er1
7704   cat conftest.err >&5
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); } &&
7707          { ac_try='test -z "$ac_c_werror_flag"
7708                          || test ! -s conftest.err'
7709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710   (eval $ac_try) 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; } &&
7714          { ac_try='test -s conftest$ac_exeext'
7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716   (eval $ac_try) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; }; then
7720   ac_cv_lib_dl_dlopen=yes
7721 else
7722   echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 ac_cv_lib_dl_dlopen=no
7726 fi
7727 rm -f conftest.err conftest.$ac_objext \
7728       conftest$ac_exeext conftest.$ac_ext
7729 LIBS=$ac_check_lib_save_LIBS
7730 fi
7731 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7733 if test $ac_cv_lib_dl_dlopen = yes; then
7734   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7735 else
7736
7737     lt_cv_dlopen="dyld"
7738     lt_cv_dlopen_libs=
7739     lt_cv_dlopen_self=yes
7740
7741 fi
7742
7743    ;;
7744
7745   *)
7746     echo "$as_me:$LINENO: checking for shl_load" >&5
7747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7748 if test "${ac_cv_func_shl_load+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7759 #define shl_load innocuous_shl_load
7760
7761 /* System header to define __stub macros and hopefully few prototypes,
7762     which can conflict with char shl_load (); below.
7763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764     <limits.h> exists even on freestanding compilers.  */
7765
7766 #ifdef __STDC__
7767 # include <limits.h>
7768 #else
7769 # include <assert.h>
7770 #endif
7771
7772 #undef shl_load
7773
7774 /* Override any gcc2 internal prototype to avoid an error.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 {
7778 #endif
7779 /* We use char because int might match the return type of a gcc2
7780    builtin and then its argument prototype would still apply.  */
7781 char shl_load ();
7782 /* The GNU C library defines this for functions which it implements
7783     to always fail with ENOSYS.  Some functions are actually named
7784     something starting with __ and the normal name is an alias.  */
7785 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7786 choke me
7787 #else
7788 char (*f) () = shl_load;
7789 #endif
7790 #ifdef __cplusplus
7791 }
7792 #endif
7793
7794 int
7795 main ()
7796 {
7797 return f != shl_load;
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804   (eval $ac_link) 2>conftest.er1
7805   ac_status=$?
7806   grep -v '^ *+' conftest.er1 >conftest.err
7807   rm -f conftest.er1
7808   cat conftest.err >&5
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); } &&
7811          { ac_try='test -z "$ac_c_werror_flag"
7812                          || test ! -s conftest.err'
7813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814   (eval $ac_try) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); }; } &&
7818          { ac_try='test -s conftest$ac_exeext'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   ac_cv_func_shl_load=yes
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 ac_cv_func_shl_load=no
7830 fi
7831 rm -f conftest.err conftest.$ac_objext \
7832       conftest$ac_exeext conftest.$ac_ext
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7835 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7836 if test $ac_cv_func_shl_load = yes; then
7837   lt_cv_dlopen="shl_load"
7838 else
7839   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   ac_check_lib_save_LIBS=$LIBS
7845 LIBS="-ldld  $LIBS"
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h.  */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h.  */
7852
7853 /* Override any gcc2 internal prototype to avoid an error.  */
7854 #ifdef __cplusplus
7855 extern "C"
7856 #endif
7857 /* We use char because int might match the return type of a gcc2
7858    builtin and then its argument prototype would still apply.  */
7859 char shl_load ();
7860 int
7861 main ()
7862 {
7863 shl_load ();
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870   (eval $ac_link) 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } &&
7877          { ac_try='test -z "$ac_c_werror_flag"
7878                          || test ! -s conftest.err'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; } &&
7884          { ac_try='test -s conftest$ac_exeext'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; }; then
7890   ac_cv_lib_dld_shl_load=yes
7891 else
7892   echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ac_cv_lib_dld_shl_load=no
7896 fi
7897 rm -f conftest.err conftest.$ac_objext \
7898       conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7900 fi
7901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7903 if test $ac_cv_lib_dld_shl_load = yes; then
7904   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7905 else
7906   echo "$as_me:$LINENO: checking for dlopen" >&5
7907 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7908 if test "${ac_cv_func_dlopen+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7919 #define dlopen innocuous_dlopen
7920
7921 /* System header to define __stub macros and hopefully few prototypes,
7922     which can conflict with char dlopen (); below.
7923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924     <limits.h> exists even on freestanding compilers.  */
7925
7926 #ifdef __STDC__
7927 # include <limits.h>
7928 #else
7929 # include <assert.h>
7930 #endif
7931
7932 #undef dlopen
7933
7934 /* Override any gcc2 internal prototype to avoid an error.  */
7935 #ifdef __cplusplus
7936 extern "C"
7937 {
7938 #endif
7939 /* We use char because int might match the return type of a gcc2
7940    builtin and then its argument prototype would still apply.  */
7941 char dlopen ();
7942 /* The GNU C library defines this for functions which it implements
7943     to always fail with ENOSYS.  Some functions are actually named
7944     something starting with __ and the normal name is an alias.  */
7945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7946 choke me
7947 #else
7948 char (*f) () = dlopen;
7949 #endif
7950 #ifdef __cplusplus
7951 }
7952 #endif
7953
7954 int
7955 main ()
7956 {
7957 return f != dlopen;
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964   (eval $ac_link) 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -z "$ac_c_werror_flag"
7972                          || test ! -s conftest.err'
7973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974   (eval $ac_try) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   ac_cv_func_dlopen=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ac_cv_func_dlopen=no
7990 fi
7991 rm -f conftest.err conftest.$ac_objext \
7992       conftest$ac_exeext conftest.$ac_ext
7993 fi
7994 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7995 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7996 if test $ac_cv_func_dlopen = yes; then
7997   lt_cv_dlopen="dlopen"
7998 else
7999   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8000 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   ac_check_lib_save_LIBS=$LIBS
8005 LIBS="-ldl  $LIBS"
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 /* Override any gcc2 internal prototype to avoid an error.  */
8014 #ifdef __cplusplus
8015 extern "C"
8016 #endif
8017 /* We use char because int might match the return type of a gcc2
8018    builtin and then its argument prototype would still apply.  */
8019 char dlopen ();
8020 int
8021 main ()
8022 {
8023 dlopen ();
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030   (eval $ac_link) 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -z "$ac_c_werror_flag"
8038                          || test ! -s conftest.err'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; } &&
8044          { ac_try='test -s conftest$ac_exeext'
8045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046   (eval $ac_try) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; }; then
8050   ac_cv_lib_dl_dlopen=yes
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055 ac_cv_lib_dl_dlopen=no
8056 fi
8057 rm -f conftest.err conftest.$ac_objext \
8058       conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8060 fi
8061 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8063 if test $ac_cv_lib_dl_dlopen = yes; then
8064   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8065 else
8066   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   ac_check_lib_save_LIBS=$LIBS
8072 LIBS="-lsvld  $LIBS"
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079
8080 /* Override any gcc2 internal prototype to avoid an error.  */
8081 #ifdef __cplusplus
8082 extern "C"
8083 #endif
8084 /* We use char because int might match the return type of a gcc2
8085    builtin and then its argument prototype would still apply.  */
8086 char dlopen ();
8087 int
8088 main ()
8089 {
8090 dlopen ();
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097   (eval $ac_link) 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -z "$ac_c_werror_flag"
8105                          || test ! -s conftest.err'
8106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107   (eval $ac_try) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; } &&
8111          { ac_try='test -s conftest$ac_exeext'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; }; then
8117   ac_cv_lib_svld_dlopen=yes
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_cv_lib_svld_dlopen=no
8123 fi
8124 rm -f conftest.err conftest.$ac_objext \
8125       conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_lib_save_LIBS
8127 fi
8128 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8129 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8130 if test $ac_cv_lib_svld_dlopen = yes; then
8131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8132 else
8133   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8134 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8135 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   ac_check_lib_save_LIBS=$LIBS
8139 LIBS="-ldld  $LIBS"
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146
8147 /* Override any gcc2 internal prototype to avoid an error.  */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 /* We use char because int might match the return type of a gcc2
8152    builtin and then its argument prototype would still apply.  */
8153 char dld_link ();
8154 int
8155 main ()
8156 {
8157 dld_link ();
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -z "$ac_c_werror_flag"
8172                          || test ! -s conftest.err'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; } &&
8178          { ac_try='test -s conftest$ac_exeext'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   ac_cv_lib_dld_dld_link=yes
8185 else
8186   echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_cv_lib_dld_dld_link=no
8190 fi
8191 rm -f conftest.err conftest.$ac_objext \
8192       conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8196 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8197 if test $ac_cv_lib_dld_dld_link = yes; then
8198   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8199 fi
8200
8201
8202 fi
8203
8204
8205 fi
8206
8207
8208 fi
8209
8210
8211 fi
8212
8213
8214 fi
8215
8216     ;;
8217   esac
8218
8219   if test "x$lt_cv_dlopen" != xno; then
8220     enable_dlopen=yes
8221   else
8222     enable_dlopen=no
8223   fi
8224
8225   case $lt_cv_dlopen in
8226   dlopen)
8227     save_CPPFLAGS="$CPPFLAGS"
8228     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8229
8230     save_LDFLAGS="$LDFLAGS"
8231     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8232
8233     save_LIBS="$LIBS"
8234     LIBS="$lt_cv_dlopen_libs $LIBS"
8235
8236     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8237 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8238 if test "${lt_cv_dlopen_self+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241           if test "$cross_compiling" = yes; then :
8242   lt_cv_dlopen_self=cross
8243 else
8244   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8245   lt_status=$lt_dlunknown
8246   cat > conftest.$ac_ext <<EOF
8247 #line 8247 "configure"
8248 #include "confdefs.h"
8249
8250 #if HAVE_DLFCN_H
8251 #include <dlfcn.h>
8252 #endif
8253
8254 #include <stdio.h>
8255
8256 #ifdef RTLD_GLOBAL
8257 #  define LT_DLGLOBAL           RTLD_GLOBAL
8258 #else
8259 #  ifdef DL_GLOBAL
8260 #    define LT_DLGLOBAL         DL_GLOBAL
8261 #  else
8262 #    define LT_DLGLOBAL         0
8263 #  endif
8264 #endif
8265
8266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8267    find out it does not work in some platform. */
8268 #ifndef LT_DLLAZY_OR_NOW
8269 #  ifdef RTLD_LAZY
8270 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8271 #  else
8272 #    ifdef DL_LAZY
8273 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8274 #    else
8275 #      ifdef RTLD_NOW
8276 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8277 #      else
8278 #        ifdef DL_NOW
8279 #          define LT_DLLAZY_OR_NOW      DL_NOW
8280 #        else
8281 #          define LT_DLLAZY_OR_NOW      0
8282 #        endif
8283 #      endif
8284 #    endif
8285 #  endif
8286 #endif
8287
8288 #ifdef __cplusplus
8289 extern "C" void exit (int);
8290 #endif
8291
8292 void fnord() { int i=42;}
8293 int main ()
8294 {
8295   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8296   int status = $lt_dlunknown;
8297
8298   if (self)
8299     {
8300       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8301       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8302       /* dlclose (self); */
8303     }
8304
8305     exit (status);
8306 }
8307 EOF
8308   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8313     (./conftest; exit; ) 2>/dev/null
8314     lt_status=$?
8315     case x$lt_status in
8316       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8317       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8318       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8319     esac
8320   else :
8321     # compilation failed
8322     lt_cv_dlopen_self=no
8323   fi
8324 fi
8325 rm -fr conftest*
8326
8327
8328 fi
8329 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8330 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8331
8332     if test "x$lt_cv_dlopen_self" = xyes; then
8333       LDFLAGS="$LDFLAGS $link_static_flag"
8334       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8335 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8336 if test "${lt_cv_dlopen_self_static+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339           if test "$cross_compiling" = yes; then :
8340   lt_cv_dlopen_self_static=cross
8341 else
8342   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8343   lt_status=$lt_dlunknown
8344   cat > conftest.$ac_ext <<EOF
8345 #line 8345 "configure"
8346 #include "confdefs.h"
8347
8348 #if HAVE_DLFCN_H
8349 #include <dlfcn.h>
8350 #endif
8351
8352 #include <stdio.h>
8353
8354 #ifdef RTLD_GLOBAL
8355 #  define LT_DLGLOBAL           RTLD_GLOBAL
8356 #else
8357 #  ifdef DL_GLOBAL
8358 #    define LT_DLGLOBAL         DL_GLOBAL
8359 #  else
8360 #    define LT_DLGLOBAL         0
8361 #  endif
8362 #endif
8363
8364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8365    find out it does not work in some platform. */
8366 #ifndef LT_DLLAZY_OR_NOW
8367 #  ifdef RTLD_LAZY
8368 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8369 #  else
8370 #    ifdef DL_LAZY
8371 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8372 #    else
8373 #      ifdef RTLD_NOW
8374 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8375 #      else
8376 #        ifdef DL_NOW
8377 #          define LT_DLLAZY_OR_NOW      DL_NOW
8378 #        else
8379 #          define LT_DLLAZY_OR_NOW      0
8380 #        endif
8381 #      endif
8382 #    endif
8383 #  endif
8384 #endif
8385
8386 #ifdef __cplusplus
8387 extern "C" void exit (int);
8388 #endif
8389
8390 void fnord() { int i=42;}
8391 int main ()
8392 {
8393   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8394   int status = $lt_dlunknown;
8395
8396   if (self)
8397     {
8398       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8399       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8400       /* dlclose (self); */
8401     }
8402
8403     exit (status);
8404 }
8405 EOF
8406   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407   (eval $ac_link) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8411     (./conftest; exit; ) 2>/dev/null
8412     lt_status=$?
8413     case x$lt_status in
8414       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8415       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8416       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8417     esac
8418   else :
8419     # compilation failed
8420     lt_cv_dlopen_self_static=no
8421   fi
8422 fi
8423 rm -fr conftest*
8424
8425
8426 fi
8427 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8428 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8429     fi
8430
8431     CPPFLAGS="$save_CPPFLAGS"
8432     LDFLAGS="$save_LDFLAGS"
8433     LIBS="$save_LIBS"
8434     ;;
8435   esac
8436
8437   case $lt_cv_dlopen_self in
8438   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8439   *) enable_dlopen_self=unknown ;;
8440   esac
8441
8442   case $lt_cv_dlopen_self_static in
8443   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8444   *) enable_dlopen_self_static=unknown ;;
8445   esac
8446 fi
8447
8448
8449 # Report which librarie types wil actually be built
8450 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8451 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8452 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8453 echo "${ECHO_T}$can_build_shared" >&6
8454
8455 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8456 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8457 test "$can_build_shared" = "no" && enable_shared=no
8458
8459 # On AIX, shared libraries and static libraries use the same namespace, and
8460 # are all built from PIC.
8461 case "$host_os" in
8462 aix3*)
8463   test "$enable_shared" = yes && enable_static=no
8464   if test -n "$RANLIB"; then
8465     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8466     postinstall_cmds='$RANLIB $lib'
8467   fi
8468   ;;
8469
8470 aix4* | aix5*)
8471   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8472     test "$enable_shared" = yes && enable_static=no
8473   fi
8474   ;;
8475   darwin* | rhapsody*)
8476   if test "$GCC" = yes; then
8477     archive_cmds_need_lc=no
8478     case "$host_os" in
8479     rhapsody* | darwin1.[012])
8480       allow_undefined_flag='-undefined suppress'
8481       ;;
8482     *) # Darwin 1.3 on
8483       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8484         allow_undefined_flag='-flat_namespace -undefined suppress'
8485       else
8486         case ${MACOSX_DEPLOYMENT_TARGET} in
8487           10.[012])
8488             allow_undefined_flag='-flat_namespace -undefined suppress'
8489             ;;
8490           10.*)
8491             allow_undefined_flag='-undefined dynamic_lookup'
8492             ;;
8493         esac
8494       fi
8495       ;;
8496     esac
8497     output_verbose_link_cmd='echo'
8498     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8499     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8501     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}'
8502     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8503     hardcode_direct=no
8504     hardcode_automatic=yes
8505     hardcode_shlibpath_var=unsupported
8506     whole_archive_flag_spec='-all_load $convenience'
8507     link_all_deplibs=yes
8508   else
8509     ld_shlibs=no
8510   fi
8511     ;;
8512 esac
8513 echo "$as_me:$LINENO: result: $enable_shared" >&5
8514 echo "${ECHO_T}$enable_shared" >&6
8515
8516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8518 # Make sure either enable_shared or enable_static is yes.
8519 test "$enable_shared" = yes || enable_static=yes
8520 echo "$as_me:$LINENO: result: $enable_static" >&5
8521 echo "${ECHO_T}$enable_static" >&6
8522
8523 # The else clause should only fire when bootstrapping the
8524 # libtool distribution, otherwise you forgot to ship ltmain.sh
8525 # with your package, and you will get complaints that there are
8526 # no rules to generate ltmain.sh.
8527 if test -f "$ltmain"; then
8528   # See if we are running on zsh, and set the options which allow our commands through
8529   # without removal of \ escapes.
8530   if test -n "${ZSH_VERSION+set}" ; then
8531     setopt NO_GLOB_SUBST
8532   fi
8533   # Now quote all the things that may contain metacharacters while being
8534   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8535   # variables and quote the copies for generation of the libtool script.
8536   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8537     SED SHELL STRIP \
8538     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8539     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8540     deplibs_check_method reload_flag reload_cmds need_locks \
8541     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8542     lt_cv_sys_global_symbol_to_c_name_address \
8543     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8544     old_postinstall_cmds old_postuninstall_cmds \
8545     compiler \
8546     CC \
8547     LD \
8548     lt_prog_compiler_wl \
8549     lt_prog_compiler_pic \
8550     lt_prog_compiler_static \
8551     lt_prog_compiler_no_builtin_flag \
8552     export_dynamic_flag_spec \
8553     thread_safe_flag_spec \
8554     whole_archive_flag_spec \
8555     enable_shared_with_static_runtimes \
8556     old_archive_cmds \
8557     old_archive_from_new_cmds \
8558     predep_objects \
8559     postdep_objects \
8560     predeps \
8561     postdeps \
8562     compiler_lib_search_path \
8563     archive_cmds \
8564     archive_expsym_cmds \
8565     postinstall_cmds \
8566     postuninstall_cmds \
8567     old_archive_from_expsyms_cmds \
8568     allow_undefined_flag \
8569     no_undefined_flag \
8570     export_symbols_cmds \
8571     hardcode_libdir_flag_spec \
8572     hardcode_libdir_flag_spec_ld \
8573     hardcode_libdir_separator \
8574     hardcode_automatic \
8575     module_cmds \
8576     module_expsym_cmds \
8577     lt_cv_prog_compiler_c_o \
8578     exclude_expsyms \
8579     include_expsyms; do
8580
8581     case $var in
8582     old_archive_cmds | \
8583     old_archive_from_new_cmds | \
8584     archive_cmds | \
8585     archive_expsym_cmds | \
8586     module_cmds | \
8587     module_expsym_cmds | \
8588     old_archive_from_expsyms_cmds | \
8589     export_symbols_cmds | \
8590     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8591     postinstall_cmds | postuninstall_cmds | \
8592     old_postinstall_cmds | old_postuninstall_cmds | \
8593     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8594       # Double-quote double-evaled strings.
8595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8596       ;;
8597     *)
8598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8599       ;;
8600     esac
8601   done
8602
8603   case $lt_echo in
8604   *'\$0 --fallback-echo"')
8605     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8606     ;;
8607   esac
8608
8609 cfgfile="${ofile}T"
8610   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8611   $rm -f "$cfgfile"
8612   { echo "$as_me:$LINENO: creating $ofile" >&5
8613 echo "$as_me: creating $ofile" >&6;}
8614
8615   cat <<__EOF__ >> "$cfgfile"
8616 #! $SHELL
8617
8618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8621 #
8622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8623 # Free Software Foundation, Inc.
8624 #
8625 # This file is part of GNU Libtool:
8626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8627 #
8628 # This program is free software; you can redistribute it and/or modify
8629 # it under the terms of the GNU General Public License as published by
8630 # the Free Software Foundation; either version 2 of the License, or
8631 # (at your option) any later version.
8632 #
8633 # This program is distributed in the hope that it will be useful, but
8634 # WITHOUT ANY WARRANTY; without even the implied warranty of
8635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8636 # General Public License for more details.
8637 #
8638 # You should have received a copy of the GNU General Public License
8639 # along with this program; if not, write to the Free Software
8640 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8641 #
8642 # As a special exception to the GNU General Public License, if you
8643 # distribute this file as part of a program that contains a
8644 # configuration script generated by Autoconf, you may include it under
8645 # the same distribution terms that you use for the rest of that program.
8646
8647 # A sed program that does not truncate output.
8648 SED=$lt_SED
8649
8650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8651 Xsed="$SED -e s/^X//"
8652
8653 # The HP-UX ksh and POSIX shell print the target directory to stdout
8654 # if CDPATH is set.
8655 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8656
8657 # The names of the tagged configurations supported by this script.
8658 available_tags=
8659
8660 # ### BEGIN LIBTOOL CONFIG
8661
8662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8663
8664 # Shell to use when invoking shell scripts.
8665 SHELL=$lt_SHELL
8666
8667 # Whether or not to build shared libraries.
8668 build_libtool_libs=$enable_shared
8669
8670 # Whether or not to build static libraries.
8671 build_old_libs=$enable_static
8672
8673 # Whether or not to add -lc for building shared libraries.
8674 build_libtool_need_lc=$archive_cmds_need_lc
8675
8676 # Whether or not to disallow shared libs when runtime libs are static
8677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8678
8679 # Whether or not to optimize for fast installation.
8680 fast_install=$enable_fast_install
8681
8682 # The host system.
8683 host_alias=$host_alias
8684 host=$host
8685
8686 # An echo program that does not interpret backslashes.
8687 echo=$lt_echo
8688
8689 # The archiver.
8690 AR=$lt_AR
8691 AR_FLAGS=$lt_AR_FLAGS
8692
8693 # A C compiler.
8694 LTCC=$lt_LTCC
8695
8696 # A language-specific compiler.
8697 CC=$lt_compiler
8698
8699 # Is the compiler the GNU C compiler?
8700 with_gcc=$GCC
8701
8702 # An ERE matcher.
8703 EGREP=$lt_EGREP
8704
8705 # The linker used to build libraries.
8706 LD=$lt_LD
8707
8708 # Whether we need hard or soft links.
8709 LN_S=$lt_LN_S
8710
8711 # A BSD-compatible nm program.
8712 NM=$lt_NM
8713
8714 # A symbol stripping program
8715 STRIP=$lt_STRIP
8716
8717 # Used to examine libraries when file_magic_cmd begins "file"
8718 MAGIC_CMD=$MAGIC_CMD
8719
8720 # Used on cygwin: DLL creation program.
8721 DLLTOOL="$DLLTOOL"
8722
8723 # Used on cygwin: object dumper.
8724 OBJDUMP="$OBJDUMP"
8725
8726 # Used on cygwin: assembler.
8727 AS="$AS"
8728
8729 # The name of the directory that contains temporary libtool files.
8730 objdir=$objdir
8731
8732 # How to create reloadable object files.
8733 reload_flag=$lt_reload_flag
8734 reload_cmds=$lt_reload_cmds
8735
8736 # How to pass a linker flag through the compiler.
8737 wl=$lt_lt_prog_compiler_wl
8738
8739 # Object file suffix (normally "o").
8740 objext="$ac_objext"
8741
8742 # Old archive suffix (normally "a").
8743 libext="$libext"
8744
8745 # Shared library suffix (normally ".so").
8746 shrext_cmds='$shrext_cmds'
8747
8748 # Executable file suffix (normally "").
8749 exeext="$exeext"
8750
8751 # Additional compiler flags for building library objects.
8752 pic_flag=$lt_lt_prog_compiler_pic
8753 pic_mode=$pic_mode
8754
8755 # What is the maximum length of a command?
8756 max_cmd_len=$lt_cv_sys_max_cmd_len
8757
8758 # Does compiler simultaneously support -c and -o options?
8759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8760
8761 # Must we lock files when doing compilation ?
8762 need_locks=$lt_need_locks
8763
8764 # Do we need the lib prefix for modules?
8765 need_lib_prefix=$need_lib_prefix
8766
8767 # Do we need a version for libraries?
8768 need_version=$need_version
8769
8770 # Whether dlopen is supported.
8771 dlopen_support=$enable_dlopen
8772
8773 # Whether dlopen of programs is supported.
8774 dlopen_self=$enable_dlopen_self
8775
8776 # Whether dlopen of statically linked programs is supported.
8777 dlopen_self_static=$enable_dlopen_self_static
8778
8779 # Compiler flag to prevent dynamic linking.
8780 link_static_flag=$lt_lt_prog_compiler_static
8781
8782 # Compiler flag to turn off builtin functions.
8783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8784
8785 # Compiler flag to allow reflexive dlopens.
8786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8787
8788 # Compiler flag to generate shared objects directly from archives.
8789 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8790
8791 # Compiler flag to generate thread-safe objects.
8792 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8793
8794 # Library versioning type.
8795 version_type=$version_type
8796
8797 # Format of library name prefix.
8798 libname_spec=$lt_libname_spec
8799
8800 # List of archive names.  First name is the real one, the rest are links.
8801 # The last name is the one that the linker finds with -lNAME.
8802 library_names_spec=$lt_library_names_spec
8803
8804 # The coded name of the library, if different from the real name.
8805 soname_spec=$lt_soname_spec
8806
8807 # Commands used to build and install an old-style archive.
8808 RANLIB=$lt_RANLIB
8809 old_archive_cmds=$lt_old_archive_cmds
8810 old_postinstall_cmds=$lt_old_postinstall_cmds
8811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8812
8813 # Create an old-style archive from a shared archive.
8814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8815
8816 # Create a temporary old-style archive to link instead of a shared archive.
8817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8818
8819 # Commands used to build and install a shared archive.
8820 archive_cmds=$lt_archive_cmds
8821 archive_expsym_cmds=$lt_archive_expsym_cmds
8822 postinstall_cmds=$lt_postinstall_cmds
8823 postuninstall_cmds=$lt_postuninstall_cmds
8824
8825 # Commands used to build a loadable module (assumed same as above if empty)
8826 module_cmds=$lt_module_cmds
8827 module_expsym_cmds=$lt_module_expsym_cmds
8828
8829 # Commands to strip libraries.
8830 old_striplib=$lt_old_striplib
8831 striplib=$lt_striplib
8832
8833 # Dependencies to place before the objects being linked to create a
8834 # shared library.
8835 predep_objects=$lt_predep_objects
8836
8837 # Dependencies to place after the objects being linked to create a
8838 # shared library.
8839 postdep_objects=$lt_postdep_objects
8840
8841 # Dependencies to place before the objects being linked to create a
8842 # shared library.
8843 predeps=$lt_predeps
8844
8845 # Dependencies to place after the objects being linked to create a
8846 # shared library.
8847 postdeps=$lt_postdeps
8848
8849 # The library search path used internally by the compiler when linking
8850 # a shared library.
8851 compiler_lib_search_path=$lt_compiler_lib_search_path
8852
8853 # Method to check whether dependent libraries are shared objects.
8854 deplibs_check_method=$lt_deplibs_check_method
8855
8856 # Command to use when deplibs_check_method == file_magic.
8857 file_magic_cmd=$lt_file_magic_cmd
8858
8859 # Flag that allows shared libraries with undefined symbols to be built.
8860 allow_undefined_flag=$lt_allow_undefined_flag
8861
8862 # Flag that forces no undefined symbols.
8863 no_undefined_flag=$lt_no_undefined_flag
8864
8865 # Commands used to finish a libtool library installation in a directory.
8866 finish_cmds=$lt_finish_cmds
8867
8868 # Same as above, but a single script fragment to be evaled but not shown.
8869 finish_eval=$lt_finish_eval
8870
8871 # Take the output of nm and produce a listing of raw symbols and C names.
8872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8873
8874 # Transform the output of nm in a proper C declaration
8875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8876
8877 # Transform the output of nm in a C name address pair
8878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8879
8880 # This is the shared library runtime path variable.
8881 runpath_var=$runpath_var
8882
8883 # This is the shared library path variable.
8884 shlibpath_var=$shlibpath_var
8885
8886 # Is shlibpath searched before the hard-coded library search path?
8887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8888
8889 # How to hardcode a shared library path into an executable.
8890 hardcode_action=$hardcode_action
8891
8892 # Whether we should hardcode library paths into libraries.
8893 hardcode_into_libs=$hardcode_into_libs
8894
8895 # Flag to hardcode \$libdir into a binary during linking.
8896 # This must work even if \$libdir does not exist.
8897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8898
8899 # If ld is used when linking, flag to hardcode \$libdir into
8900 # a binary during linking. This must work even if \$libdir does
8901 # not exist.
8902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8903
8904 # Whether we need a single -rpath flag with a separated argument.
8905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8906
8907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8908 # resulting binary.
8909 hardcode_direct=$hardcode_direct
8910
8911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8912 # resulting binary.
8913 hardcode_minus_L=$hardcode_minus_L
8914
8915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8916 # the resulting binary.
8917 hardcode_shlibpath_var=$hardcode_shlibpath_var
8918
8919 # Set to yes if building a shared library automatically hardcodes DIR into the library
8920 # and all subsequent libraries and executables linked against it.
8921 hardcode_automatic=$hardcode_automatic
8922
8923 # Variables whose values should be saved in libtool wrapper scripts and
8924 # restored at relink time.
8925 variables_saved_for_relink="$variables_saved_for_relink"
8926
8927 # Whether libtool must link a program against all its dependency libraries.
8928 link_all_deplibs=$link_all_deplibs
8929
8930 # Compile-time system search path for libraries
8931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8932
8933 # Run-time system search path for libraries
8934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8935
8936 # Fix the shell variable \$srcfile for the compiler.
8937 fix_srcfile_path="$fix_srcfile_path"
8938
8939 # Set to yes if exported symbols are required.
8940 always_export_symbols=$always_export_symbols
8941
8942 # The commands to list exported symbols.
8943 export_symbols_cmds=$lt_export_symbols_cmds
8944
8945 # The commands to extract the exported symbol list from a shared archive.
8946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8947
8948 # Symbols that should not be listed in the preloaded symbols.
8949 exclude_expsyms=$lt_exclude_expsyms
8950
8951 # Symbols that must always be exported.
8952 include_expsyms=$lt_include_expsyms
8953
8954 # ### END LIBTOOL CONFIG
8955
8956 __EOF__
8957
8958
8959   case $host_os in
8960   aix3*)
8961     cat <<\EOF >> "$cfgfile"
8962
8963 # AIX sometimes has problems with the GCC collect2 program.  For some
8964 # reason, if we set the COLLECT_NAMES environment variable, the problems
8965 # vanish in a puff of smoke.
8966 if test "X${COLLECT_NAMES+set}" != Xset; then
8967   COLLECT_NAMES=
8968   export COLLECT_NAMES
8969 fi
8970 EOF
8971     ;;
8972   esac
8973
8974   # We use sed instead of cat because bash on DJGPP gets confused if
8975   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8976   # text mode, it properly converts lines to CR/LF.  This bash problem
8977   # is reportedly fixed, but why not run on old versions too?
8978   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8979
8980   mv -f "$cfgfile" "$ofile" || \
8981     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8982   chmod +x "$ofile"
8983
8984 else
8985   # If there is no Makefile yet, we rely on a make rule to execute
8986   # `config.status --recheck' to rerun these tests and create the
8987   # libtool script then.
8988   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8989   if test -f "$ltmain_in"; then
8990     test -f Makefile && make "$ltmain"
8991   fi
8992 fi
8993
8994
8995 ac_ext=c
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001 CC="$lt_save_CC"
9002
9003
9004 # Check whether --with-tags or --without-tags was given.
9005 if test "${with_tags+set}" = set; then
9006   withval="$with_tags"
9007   tagnames="$withval"
9008 fi;
9009
9010 if test -f "$ltmain" && test -n "$tagnames"; then
9011   if test ! -f "${ofile}"; then
9012     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9013 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9014   fi
9015
9016   if test -z "$LTCC"; then
9017     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9018     if test -z "$LTCC"; then
9019       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9020 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9021     else
9022       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9023 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9024     fi
9025   fi
9026
9027   # Extract list of available tagged configurations in $ofile.
9028   # Note that this assumes the entire list is on one line.
9029   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9030
9031   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032   for tagname in $tagnames; do
9033     IFS="$lt_save_ifs"
9034     # Check whether tagname contains only valid characters
9035     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9036     "") ;;
9037     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9038 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9039    { (exit 1); exit 1; }; }
9040         ;;
9041     esac
9042
9043     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9044     then
9045       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9046 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9047    { (exit 1); exit 1; }; }
9048     fi
9049
9050     # Update the list of available tags.
9051     if test -n "$tagname"; then
9052       echo appending configuration tag \"$tagname\" to $ofile
9053
9054       case $tagname in
9055       CXX)
9056         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9057           ac_ext=cc
9058 ac_cpp='$CXXCPP $CPPFLAGS'
9059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9062
9063
9064
9065
9066 archive_cmds_need_lc_CXX=no
9067 allow_undefined_flag_CXX=
9068 always_export_symbols_CXX=no
9069 archive_expsym_cmds_CXX=
9070 export_dynamic_flag_spec_CXX=
9071 hardcode_direct_CXX=no
9072 hardcode_libdir_flag_spec_CXX=
9073 hardcode_libdir_flag_spec_ld_CXX=
9074 hardcode_libdir_separator_CXX=
9075 hardcode_minus_L_CXX=no
9076 hardcode_automatic_CXX=no
9077 module_cmds_CXX=
9078 module_expsym_cmds_CXX=
9079 link_all_deplibs_CXX=unknown
9080 old_archive_cmds_CXX=$old_archive_cmds
9081 no_undefined_flag_CXX=
9082 whole_archive_flag_spec_CXX=
9083 enable_shared_with_static_runtimes_CXX=no
9084
9085 # Dependencies to place before and after the object being linked:
9086 predep_objects_CXX=
9087 postdep_objects_CXX=
9088 predeps_CXX=
9089 postdeps_CXX=
9090 compiler_lib_search_path_CXX=
9091
9092 # Source file extension for C++ test sources.
9093 ac_ext=cc
9094
9095 # Object file extension for compiled C++ test sources.
9096 objext=o
9097 objext_CXX=$objext
9098
9099 # Code to be used in simple compile tests
9100 lt_simple_compile_test_code="int some_variable = 0;\n"
9101
9102 # Code to be used in simple link tests
9103 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9104
9105 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9106
9107 # If no C compiler was specified, use CC.
9108 LTCC=${LTCC-"$CC"}
9109
9110 # Allow CC to be a program name with arguments.
9111 compiler=$CC
9112
9113
9114 # Allow CC to be a program name with arguments.
9115 lt_save_CC=$CC
9116 lt_save_LD=$LD
9117 lt_save_GCC=$GCC
9118 GCC=$GXX
9119 lt_save_with_gnu_ld=$with_gnu_ld
9120 lt_save_path_LD=$lt_cv_path_LD
9121 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9122   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9123 else
9124   unset lt_cv_prog_gnu_ld
9125 fi
9126 if test -n "${lt_cv_path_LDCXX+set}"; then
9127   lt_cv_path_LD=$lt_cv_path_LDCXX
9128 else
9129   unset lt_cv_path_LD
9130 fi
9131 test -z "${LDCXX+set}" || LD=$LDCXX
9132 CC=${CXX-"c++"}
9133 compiler=$CC
9134 compiler_CXX=$CC
9135 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9136
9137 # We don't want -fno-exception wen compiling C++ code, so set the
9138 # no_builtin_flag separately
9139 if test "$GXX" = yes; then
9140   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9141 else
9142   lt_prog_compiler_no_builtin_flag_CXX=
9143 fi
9144
9145 if test "$GXX" = yes; then
9146   # Set up default GNU C++ configuration
9147
9148
9149 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9150 if test "${with_gnu_ld+set}" = set; then
9151   withval="$with_gnu_ld"
9152   test "$withval" = no || with_gnu_ld=yes
9153 else
9154   with_gnu_ld=no
9155 fi;
9156 ac_prog=ld
9157 if test "$GCC" = yes; then
9158   # Check if gcc -print-prog-name=ld gives a path.
9159   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9160 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9161   case $host in
9162   *-*-mingw*)
9163     # gcc leaves a trailing carriage return which upsets mingw
9164     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9165   *)
9166     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9167   esac
9168   case $ac_prog in
9169     # Accept absolute paths.
9170     [\\/]* | ?:[\\/]*)
9171       re_direlt='/[^/][^/]*/\.\./'
9172       # Canonicalize the pathname of ld
9173       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9174       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9175         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9176       done
9177       test -z "$LD" && LD="$ac_prog"
9178       ;;
9179   "")
9180     # If it fails, then pretend we aren't using GCC.
9181     ac_prog=ld
9182     ;;
9183   *)
9184     # If it is relative, then search for the first ld in PATH.
9185     with_gnu_ld=unknown
9186     ;;
9187   esac
9188 elif test "$with_gnu_ld" = yes; then
9189   echo "$as_me:$LINENO: checking for GNU ld" >&5
9190 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9191 else
9192   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9193 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9194 fi
9195 if test "${lt_cv_path_LD+set}" = set; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   if test -z "$LD"; then
9199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9200   for ac_dir in $PATH; do
9201     IFS="$lt_save_ifs"
9202     test -z "$ac_dir" && ac_dir=.
9203     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9204       lt_cv_path_LD="$ac_dir/$ac_prog"
9205       # Check to see if the program is GNU ld.  I'd rather use --version,
9206       # but apparently some GNU ld's only accept -v.
9207       # Break only if it was the GNU/non-GNU ld that we prefer.
9208       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9209       *GNU* | *'with BFD'*)
9210         test "$with_gnu_ld" != no && break
9211         ;;
9212       *)
9213         test "$with_gnu_ld" != yes && break
9214         ;;
9215       esac
9216     fi
9217   done
9218   IFS="$lt_save_ifs"
9219 else
9220   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9221 fi
9222 fi
9223
9224 LD="$lt_cv_path_LD"
9225 if test -n "$LD"; then
9226   echo "$as_me:$LINENO: result: $LD" >&5
9227 echo "${ECHO_T}$LD" >&6
9228 else
9229   echo "$as_me:$LINENO: result: no" >&5
9230 echo "${ECHO_T}no" >&6
9231 fi
9232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9234    { (exit 1); exit 1; }; }
9235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9238   echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9241 case `$LD -v 2>&1 </dev/null` in
9242 *GNU* | *'with BFD'*)
9243   lt_cv_prog_gnu_ld=yes
9244   ;;
9245 *)
9246   lt_cv_prog_gnu_ld=no
9247   ;;
9248 esac
9249 fi
9250 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9251 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9252 with_gnu_ld=$lt_cv_prog_gnu_ld
9253
9254
9255
9256   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9257   # archiving commands below assume that GNU ld is being used.
9258   if test "$with_gnu_ld" = yes; then
9259     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260     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'
9261
9262     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9263     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9264
9265     # If archive_cmds runs LD, not CC, wlarc should be empty
9266     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9267     #     investigate it a little bit more. (MM)
9268     wlarc='${wl}'
9269
9270     # ancient GNU ld didn't support --whole-archive et. al.
9271     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9272         grep 'no-whole-archive' > /dev/null; then
9273       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9274     else
9275       whole_archive_flag_spec_CXX=
9276     fi
9277   else
9278     with_gnu_ld=no
9279     wlarc=
9280
9281     # A generic and very simple default shared library creation
9282     # command for GNU C++ for the case where it uses the native
9283     # linker, instead of GNU ld.  If possible, this setting should
9284     # overridden to take advantage of the native linker features on
9285     # the platform it is being used on.
9286     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9287   fi
9288
9289   # Commands to make compiler produce verbose output that lists
9290   # what "hidden" libraries, object files and flags are used when
9291   # linking a shared library.
9292   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9293
9294 else
9295   GXX=no
9296   with_gnu_ld=no
9297   wlarc=
9298 fi
9299
9300 # PORTME: fill in a description of your system's C++ link characteristics
9301 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9302 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9303 ld_shlibs_CXX=yes
9304 case $host_os in
9305   aix3*)
9306     # FIXME: insert proper C++ library support
9307     ld_shlibs_CXX=no
9308     ;;
9309   aix4* | aix5*)
9310     if test "$host_cpu" = ia64; then
9311       # On IA64, the linker does run time linking by default, so we don't
9312       # have to do anything special.
9313       aix_use_runtimelinking=no
9314       exp_sym_flag='-Bexport'
9315       no_entry_flag=""
9316     else
9317       aix_use_runtimelinking=no
9318
9319       # Test if we are trying to use run time linking or normal
9320       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9321       # need to do runtime linking.
9322       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9323         for ld_flag in $LDFLAGS; do
9324           case $ld_flag in
9325           *-brtl*)
9326             aix_use_runtimelinking=yes
9327             break
9328             ;;
9329           esac
9330         done
9331       esac
9332
9333       exp_sym_flag='-bexport'
9334       no_entry_flag='-bnoentry'
9335     fi
9336
9337     # When large executables or shared objects are built, AIX ld can
9338     # have problems creating the table of contents.  If linking a library
9339     # or program results in "error TOC overflow" add -mminimal-toc to
9340     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9341     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9342
9343     archive_cmds_CXX=''
9344     hardcode_direct_CXX=yes
9345     hardcode_libdir_separator_CXX=':'
9346     link_all_deplibs_CXX=yes
9347
9348     if test "$GXX" = yes; then
9349       case $host_os in aix4.012|aix4.012.*)
9350       # We only want to do this on AIX 4.2 and lower, the check
9351       # below for broken collect2 doesn't work under 4.3+
9352         collect2name=`${CC} -print-prog-name=collect2`
9353         if test -f "$collect2name" && \
9354            strings "$collect2name" | grep resolve_lib_name >/dev/null
9355         then
9356           # We have reworked collect2
9357           hardcode_direct_CXX=yes
9358         else
9359           # We have old collect2
9360           hardcode_direct_CXX=unsupported
9361           # It fails to find uninstalled libraries when the uninstalled
9362           # path is not listed in the libpath.  Setting hardcode_minus_L
9363           # to unsupported forces relinking
9364           hardcode_minus_L_CXX=yes
9365           hardcode_libdir_flag_spec_CXX='-L$libdir'
9366           hardcode_libdir_separator_CXX=
9367         fi
9368       esac
9369       shared_flag='-shared'
9370     else
9371       # not using gcc
9372       if test "$host_cpu" = ia64; then
9373         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9374         # chokes on -Wl,-G. The following line is correct:
9375         shared_flag='-G'
9376       else
9377         if test "$aix_use_runtimelinking" = yes; then
9378           shared_flag='${wl}-G'
9379         else
9380           shared_flag='${wl}-bM:SRE'
9381         fi
9382       fi
9383     fi
9384
9385     # It seems that -bexpall does not export symbols beginning with
9386     # underscore (_), so it is better to generate a list of symbols to export.
9387     always_export_symbols_CXX=yes
9388     if test "$aix_use_runtimelinking" = yes; then
9389       # Warning - without using the other runtime loading flags (-brtl),
9390       # -berok will link without error, but may produce a broken library.
9391       allow_undefined_flag_CXX='-berok'
9392       # Determine the default libpath from the value encoded in an empty executable.
9393       cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399
9400 int
9401 main ()
9402 {
9403
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410   (eval $ac_link) 2>conftest.er1
9411   ac_status=$?
9412   grep -v '^ *+' conftest.er1 >conftest.err
9413   rm -f conftest.er1
9414   cat conftest.err >&5
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -z "$ac_cxx_werror_flag"
9418                          || test ! -s conftest.err'
9419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420   (eval $ac_try) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); }; } &&
9424          { ac_try='test -s conftest$ac_exeext'
9425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426   (eval $ac_try) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); }; }; then
9430
9431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9432 }'`
9433 # Check for a 64-bit object if we didn't find anything.
9434 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; }
9435 }'`; fi
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440 fi
9441 rm -f conftest.err conftest.$ac_objext \
9442       conftest$ac_exeext conftest.$ac_ext
9443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9444
9445       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9446
9447       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"
9448      else
9449       if test "$host_cpu" = ia64; then
9450         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9451         allow_undefined_flag_CXX="-z nodefs"
9452         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"
9453       else
9454         # Determine the default libpath from the value encoded in an empty executable.
9455         cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461
9462 int
9463 main ()
9464 {
9465
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472   (eval $ac_link) 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } &&
9479          { ac_try='test -z "$ac_cxx_werror_flag"
9480                          || test ! -s conftest.err'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; } &&
9486          { ac_try='test -s conftest$ac_exeext'
9487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488   (eval $ac_try) 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); }; }; then
9492
9493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9494 }'`
9495 # Check for a 64-bit object if we didn't find anything.
9496 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; }
9497 }'`; fi
9498 else
9499   echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9501
9502 fi
9503 rm -f conftest.err conftest.$ac_objext \
9504       conftest$ac_exeext conftest.$ac_ext
9505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9506
9507         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9508         # Warning - without using the other run time loading flags,
9509         # -berok will link without error, but may produce a broken library.
9510         no_undefined_flag_CXX=' ${wl}-bernotok'
9511         allow_undefined_flag_CXX=' ${wl}-berok'
9512         # -bexpall does not export symbols beginning with underscore (_)
9513         always_export_symbols_CXX=yes
9514         # Exported symbols can be pulled into shared objects from archives
9515         whole_archive_flag_spec_CXX=' '
9516         archive_cmds_need_lc_CXX=yes
9517         # This is similar to how AIX traditionally builds it's shared libraries.
9518         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'
9519       fi
9520     fi
9521     ;;
9522   chorus*)
9523     case $cc_basename in
9524       *)
9525         # FIXME: insert proper C++ library support
9526         ld_shlibs_CXX=no
9527         ;;
9528     esac
9529     ;;
9530
9531   cygwin* | mingw* | pw32*)
9532     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9533     # as there is no search path for DLLs.
9534     hardcode_libdir_flag_spec_CXX='-L$libdir'
9535     allow_undefined_flag_CXX=unsupported
9536     always_export_symbols_CXX=no
9537     enable_shared_with_static_runtimes_CXX=yes
9538
9539     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9540       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'
9541       # If the export-symbols file already is a .def file (1st line
9542       # is EXPORTS), use it as is; otherwise, prepend...
9543       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9544         cp $export_symbols $output_objdir/$soname.def;
9545       else
9546         echo EXPORTS > $output_objdir/$soname.def;
9547         cat $export_symbols >> $output_objdir/$soname.def;
9548       fi~
9549       $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'
9550     else
9551       ld_shlibs_CXX=no
9552     fi
9553   ;;
9554
9555   darwin* | rhapsody*)
9556   if test "$GXX" = yes; then
9557     archive_cmds_need_lc_CXX=no
9558     case "$host_os" in
9559     rhapsody* | darwin1.[012])
9560       allow_undefined_flag_CXX='-undefined suppress'
9561       ;;
9562     *) # Darwin 1.3 on
9563       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9564         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9565       else
9566         case ${MACOSX_DEPLOYMENT_TARGET} in
9567           10.[012])
9568             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9569             ;;
9570           10.*)
9571             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9572             ;;
9573         esac
9574       fi
9575       ;;
9576     esac
9577     lt_int_apple_cc_single_mod=no
9578     output_verbose_link_cmd='echo'
9579     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9580       lt_int_apple_cc_single_mod=yes
9581     fi
9582     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9583       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9584     else
9585       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'
9586     fi
9587     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9588
9589     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9590     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9591       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}'
9592     else
9593       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}'
9594     fi
9595     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9596     hardcode_direct_CXX=no
9597     hardcode_automatic_CXX=yes
9598     hardcode_shlibpath_var_CXX=unsupported
9599     whole_archive_flag_spec_CXX='-all_load $convenience'
9600     link_all_deplibs_CXX=yes
9601   else
9602     ld_shlibs_CXX=no
9603   fi
9604     ;;
9605
9606   dgux*)
9607     case $cc_basename in
9608       ec++)
9609         # FIXME: insert proper C++ library support
9610         ld_shlibs_CXX=no
9611         ;;
9612       ghcx)
9613         # Green Hills C++ Compiler
9614         # FIXME: insert proper C++ library support
9615         ld_shlibs_CXX=no
9616         ;;
9617       *)
9618         # FIXME: insert proper C++ library support
9619         ld_shlibs_CXX=no
9620         ;;
9621     esac
9622     ;;
9623   freebsd12*)
9624     # C++ shared libraries reported to be fairly broken before switch to ELF
9625     ld_shlibs_CXX=no
9626     ;;
9627   freebsd-elf*)
9628     archive_cmds_need_lc_CXX=no
9629     ;;
9630   freebsd* | kfreebsd*-gnu)
9631     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9632     # conventions
9633     ld_shlibs_CXX=yes
9634     ;;
9635   gnu*)
9636     ;;
9637   hpux9*)
9638     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9639     hardcode_libdir_separator_CXX=:
9640     export_dynamic_flag_spec_CXX='${wl}-E'
9641     hardcode_direct_CXX=yes
9642     hardcode_minus_L_CXX=yes # Not in the search PATH,
9643                                 # but as the default
9644                                 # location of the library.
9645
9646     case $cc_basename in
9647     CC)
9648       # FIXME: insert proper C++ library support
9649       ld_shlibs_CXX=no
9650       ;;
9651     aCC)
9652       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'
9653       # Commands to make compiler produce verbose output that lists
9654       # what "hidden" libraries, object files and flags are used when
9655       # linking a shared library.
9656       #
9657       # There doesn't appear to be a way to prevent this compiler from
9658       # explicitly linking system object files so we need to strip them
9659       # from the output so that they don't get included in the library
9660       # dependencies.
9661       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'
9662       ;;
9663     *)
9664       if test "$GXX" = yes; then
9665         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'
9666       else
9667         # FIXME: insert proper C++ library support
9668         ld_shlibs_CXX=no
9669       fi
9670       ;;
9671     esac
9672     ;;
9673   hpux10*|hpux11*)
9674     if test $with_gnu_ld = no; then
9675       case "$host_cpu" in
9676       hppa*64*)
9677         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9678         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9679         hardcode_libdir_separator_CXX=:
9680         ;;
9681       ia64*)
9682         hardcode_libdir_flag_spec_CXX='-L$libdir'
9683         ;;
9684       *)
9685         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9686         hardcode_libdir_separator_CXX=:
9687         export_dynamic_flag_spec_CXX='${wl}-E'
9688         ;;
9689       esac
9690     fi
9691     case "$host_cpu" in
9692     hppa*64*)
9693       hardcode_direct_CXX=no
9694       hardcode_shlibpath_var_CXX=no
9695       ;;
9696     ia64*)
9697       hardcode_direct_CXX=no
9698       hardcode_shlibpath_var_CXX=no
9699       hardcode_minus_L_CXX=yes # Not in the search PATH,
9700                                               # but as the default
9701                                               # location of the library.
9702       ;;
9703     *)
9704       hardcode_direct_CXX=yes
9705       hardcode_minus_L_CXX=yes # Not in the search PATH,
9706                                               # but as the default
9707                                               # location of the library.
9708       ;;
9709     esac
9710
9711     case $cc_basename in
9712       CC)
9713         # FIXME: insert proper C++ library support
9714         ld_shlibs_CXX=no
9715         ;;
9716       aCC)
9717         case "$host_cpu" in
9718         hppa*64*|ia64*)
9719           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9720           ;;
9721         *)
9722           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9723           ;;
9724         esac
9725         # Commands to make compiler produce verbose output that lists
9726         # what "hidden" libraries, object files and flags are used when
9727         # linking a shared library.
9728         #
9729         # There doesn't appear to be a way to prevent this compiler from
9730         # explicitly linking system object files so we need to strip them
9731         # from the output so that they don't get included in the library
9732         # dependencies.
9733         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'
9734         ;;
9735       *)
9736         if test "$GXX" = yes; then
9737           if test $with_gnu_ld = no; then
9738             case "$host_cpu" in
9739             ia64*|hppa*64*)
9740               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9741               ;;
9742             *)
9743               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'
9744               ;;
9745             esac
9746           fi
9747         else
9748           # FIXME: insert proper C++ library support
9749           ld_shlibs_CXX=no
9750         fi
9751         ;;
9752     esac
9753     ;;
9754   irix5* | irix6*)
9755     case $cc_basename in
9756       CC)
9757         # SGI C++
9758         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'
9759
9760         # Archives containing C++ object files must be created using
9761         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9762         # necessary to make sure instantiated templates are included
9763         # in the archive.
9764         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9765         ;;
9766       *)
9767         if test "$GXX" = yes; then
9768           if test "$with_gnu_ld" = no; then
9769             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'
9770           else
9771             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'
9772           fi
9773         fi
9774         link_all_deplibs_CXX=yes
9775         ;;
9776     esac
9777     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9778     hardcode_libdir_separator_CXX=:
9779     ;;
9780   linux*)
9781     case $cc_basename in
9782       KCC)
9783         # Kuck and Associates, Inc. (KAI) C++ Compiler
9784
9785         # KCC will only create a shared library if the output file
9786         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9787         # to its proper name (with version) after linking.
9788         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'
9789         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'
9790         # Commands to make compiler produce verbose output that lists
9791         # what "hidden" libraries, object files and flags are used when
9792         # linking a shared library.
9793         #
9794         # There doesn't appear to be a way to prevent this compiler from
9795         # explicitly linking system object files so we need to strip them
9796         # from the output so that they don't get included in the library
9797         # dependencies.
9798         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'
9799
9800         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9801         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9802
9803         # Archives containing C++ object files must be created using
9804         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9805         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9806         ;;
9807       icpc)
9808         # Intel C++
9809         with_gnu_ld=yes
9810         archive_cmds_need_lc_CXX=no
9811         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812         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'
9813         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9815         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9816         ;;
9817       cxx)
9818         # Compaq C++
9819         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820         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'
9821
9822         runpath_var=LD_RUN_PATH
9823         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9824         hardcode_libdir_separator_CXX=:
9825
9826         # Commands to make compiler produce verbose output that lists
9827         # what "hidden" libraries, object files and flags are used when
9828         # linking a shared library.
9829         #
9830         # There doesn't appear to be a way to prevent this compiler from
9831         # explicitly linking system object files so we need to strip them
9832         # from the output so that they don't get included in the library
9833         # dependencies.
9834         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'
9835         ;;
9836     esac
9837     ;;
9838   lynxos*)
9839     # FIXME: insert proper C++ library support
9840     ld_shlibs_CXX=no
9841     ;;
9842   m88k*)
9843     # FIXME: insert proper C++ library support
9844     ld_shlibs_CXX=no
9845     ;;
9846   mvs*)
9847     case $cc_basename in
9848       cxx)
9849         # FIXME: insert proper C++ library support
9850         ld_shlibs_CXX=no
9851         ;;
9852       *)
9853         # FIXME: insert proper C++ library support
9854         ld_shlibs_CXX=no
9855         ;;
9856     esac
9857     ;;
9858   netbsd*)
9859     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9860       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9861       wlarc=
9862       hardcode_libdir_flag_spec_CXX='-R$libdir'
9863       hardcode_direct_CXX=yes
9864       hardcode_shlibpath_var_CXX=no
9865     fi
9866     # Workaround some broken pre-1.5 toolchains
9867     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9868     ;;
9869   osf3*)
9870     case $cc_basename in
9871       KCC)
9872         # Kuck and Associates, Inc. (KAI) C++ Compiler
9873
9874         # KCC will only create a shared library if the output file
9875         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9876         # to its proper name (with version) after linking.
9877         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'
9878
9879         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9880         hardcode_libdir_separator_CXX=:
9881
9882         # Archives containing C++ object files must be created using
9883         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9884         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9885
9886         ;;
9887       RCC)
9888         # Rational C++ 2.4.1
9889         # FIXME: insert proper C++ library support
9890         ld_shlibs_CXX=no
9891         ;;
9892       cxx)
9893         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894         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'
9895
9896         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897         hardcode_libdir_separator_CXX=:
9898
9899         # Commands to make compiler produce verbose output that lists
9900         # what "hidden" libraries, object files and flags are used when
9901         # linking a shared library.
9902         #
9903         # There doesn't appear to be a way to prevent this compiler from
9904         # explicitly linking system object files so we need to strip them
9905         # from the output so that they don't get included in the library
9906         # dependencies.
9907         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'
9908         ;;
9909       *)
9910         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9911           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9912           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'
9913
9914           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9915           hardcode_libdir_separator_CXX=:
9916
9917           # Commands to make compiler produce verbose output that lists
9918           # what "hidden" libraries, object files and flags are used when
9919           # linking a shared library.
9920           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9921
9922         else
9923           # FIXME: insert proper C++ library support
9924           ld_shlibs_CXX=no
9925         fi
9926         ;;
9927     esac
9928     ;;
9929   osf4* | osf5*)
9930     case $cc_basename in
9931       KCC)
9932         # Kuck and Associates, Inc. (KAI) C++ Compiler
9933
9934         # KCC will only create a shared library if the output file
9935         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9936         # to its proper name (with version) after linking.
9937         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'
9938
9939         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9940         hardcode_libdir_separator_CXX=:
9941
9942         # Archives containing C++ object files must be created using
9943         # the KAI C++ compiler.
9944         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9945         ;;
9946       RCC)
9947         # Rational C++ 2.4.1
9948         # FIXME: insert proper C++ library support
9949         ld_shlibs_CXX=no
9950         ;;
9951       cxx)
9952         allow_undefined_flag_CXX=' -expect_unresolved \*'
9953         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'
9954         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9955           echo "-hidden">> $lib.exp~
9956           $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~
9957           $rm $lib.exp'
9958
9959         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9960         hardcode_libdir_separator_CXX=:
9961
9962         # Commands to make compiler produce verbose output that lists
9963         # what "hidden" libraries, object files and flags are used when
9964         # linking a shared library.
9965         #
9966         # There doesn't appear to be a way to prevent this compiler from
9967         # explicitly linking system object files so we need to strip them
9968         # from the output so that they don't get included in the library
9969         # dependencies.
9970         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'
9971         ;;
9972       *)
9973         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9974           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9975          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'
9976
9977           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9978           hardcode_libdir_separator_CXX=:
9979
9980           # Commands to make compiler produce verbose output that lists
9981           # what "hidden" libraries, object files and flags are used when
9982           # linking a shared library.
9983           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9984
9985         else
9986           # FIXME: insert proper C++ library support
9987           ld_shlibs_CXX=no
9988         fi
9989         ;;
9990     esac
9991     ;;
9992   psos*)
9993     # FIXME: insert proper C++ library support
9994     ld_shlibs_CXX=no
9995     ;;
9996   sco*)
9997     archive_cmds_need_lc_CXX=no
9998     case $cc_basename in
9999       CC)
10000         # FIXME: insert proper C++ library support
10001         ld_shlibs_CXX=no
10002         ;;
10003       *)
10004         # FIXME: insert proper C++ library support
10005         ld_shlibs_CXX=no
10006         ;;
10007     esac
10008     ;;
10009   sunos4*)
10010     case $cc_basename in
10011       CC)
10012         # Sun C++ 4.x
10013         # FIXME: insert proper C++ library support
10014         ld_shlibs_CXX=no
10015         ;;
10016       lcc)
10017         # Lucid
10018         # FIXME: insert proper C++ library support
10019         ld_shlibs_CXX=no
10020         ;;
10021       *)
10022         # FIXME: insert proper C++ library support
10023         ld_shlibs_CXX=no
10024         ;;
10025     esac
10026     ;;
10027   solaris*)
10028     case $cc_basename in
10029       CC)
10030         # Sun C++ 4.2, 5.x and Centerline C++
10031         no_undefined_flag_CXX=' -zdefs'
10032         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10033         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10034         $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'
10035
10036         hardcode_libdir_flag_spec_CXX='-R$libdir'
10037         hardcode_shlibpath_var_CXX=no
10038         case $host_os in
10039           solaris2.0-5 | solaris2.0-5.*) ;;
10040           *)
10041             # The C++ compiler is used as linker so we must use $wl
10042             # flag to pass the commands to the underlying system
10043             # linker.
10044             # Supported since Solaris 2.6 (maybe 2.5.1?)
10045             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10046             ;;
10047         esac
10048         link_all_deplibs_CXX=yes
10049
10050         # Commands to make compiler produce verbose output that lists
10051         # what "hidden" libraries, object files and flags are used when
10052         # linking a shared library.
10053         #
10054         # There doesn't appear to be a way to prevent this compiler from
10055         # explicitly linking system object files so we need to strip them
10056         # from the output so that they don't get included in the library
10057         # dependencies.
10058         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'
10059
10060         # Archives containing C++ object files must be created using
10061         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10062         # necessary to make sure instantiated templates are included
10063         # in the archive.
10064         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10065         ;;
10066       gcx)
10067         # Green Hills C++ Compiler
10068         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10069
10070         # The C++ compiler must be used to create the archive.
10071         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10072         ;;
10073       *)
10074         # GNU C++ compiler with Solaris linker
10075         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10076           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10077           if $CC --version | grep -v '^2\.7' > /dev/null; then
10078             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10079             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10080                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10081
10082             # Commands to make compiler produce verbose output that lists
10083             # what "hidden" libraries, object files and flags are used when
10084             # linking a shared library.
10085             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10086           else
10087             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10088             # platform.
10089             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10090             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10091                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10092
10093             # Commands to make compiler produce verbose output that lists
10094             # what "hidden" libraries, object files and flags are used when
10095             # linking a shared library.
10096             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10097           fi
10098
10099           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10100         fi
10101         ;;
10102     esac
10103     ;;
10104   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10105     archive_cmds_need_lc_CXX=no
10106     ;;
10107   tandem*)
10108     case $cc_basename in
10109       NCC)
10110         # NonStop-UX NCC 3.20
10111         # FIXME: insert proper C++ library support
10112         ld_shlibs_CXX=no
10113         ;;
10114       *)
10115         # FIXME: insert proper C++ library support
10116         ld_shlibs_CXX=no
10117         ;;
10118     esac
10119     ;;
10120   vxworks*)
10121     # FIXME: insert proper C++ library support
10122     ld_shlibs_CXX=no
10123     ;;
10124   *)
10125     # FIXME: insert proper C++ library support
10126     ld_shlibs_CXX=no
10127     ;;
10128 esac
10129 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10130 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10131 test "$ld_shlibs_CXX" = no && can_build_shared=no
10132
10133 GCC_CXX="$GXX"
10134 LD_CXX="$LD"
10135
10136
10137 cat > conftest.$ac_ext <<EOF
10138 class Foo
10139 {
10140 public:
10141   Foo (void) { a = 0; }
10142 private:
10143   int a;
10144 };
10145 EOF
10146
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148   (eval $ac_compile) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; then
10152   # Parse the compiler output and extract the necessary
10153   # objects, libraries and library flags.
10154
10155   # Sentinel used to keep track of whether or not we are before
10156   # the conftest object file.
10157   pre_test_object_deps_done=no
10158
10159   # The `*' in the case matches for architectures that use `case' in
10160   # $output_verbose_cmd can trigger glob expansion during the loop
10161   # eval without this substitution.
10162   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10163
10164   for p in `eval $output_verbose_link_cmd`; do
10165     case $p in
10166
10167     -L* | -R* | -l*)
10168        # Some compilers place space between "-{L,R}" and the path.
10169        # Remove the space.
10170        if test $p = "-L" \
10171           || test $p = "-R"; then
10172          prev=$p
10173          continue
10174        else
10175          prev=
10176        fi
10177
10178        if test "$pre_test_object_deps_done" = no; then
10179          case $p in
10180          -L* | -R*)
10181            # Internal compiler library paths should come after those
10182            # provided the user.  The postdeps already come after the
10183            # user supplied libs so there is no need to process them.
10184            if test -z "$compiler_lib_search_path_CXX"; then
10185              compiler_lib_search_path_CXX="${prev}${p}"
10186            else
10187              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10188            fi
10189            ;;
10190          # The "-l" case would never come before the object being
10191          # linked, so don't bother handling this case.
10192          esac
10193        else
10194          if test -z "$postdeps_CXX"; then
10195            postdeps_CXX="${prev}${p}"
10196          else
10197            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10198          fi
10199        fi
10200        ;;
10201
10202     *.$objext)
10203        # This assumes that the test object file only shows up
10204        # once in the compiler output.
10205        if test "$p" = "conftest.$objext"; then
10206          pre_test_object_deps_done=yes
10207          continue
10208        fi
10209
10210        if test "$pre_test_object_deps_done" = no; then
10211          if test -z "$predep_objects_CXX"; then
10212            predep_objects_CXX="$p"
10213          else
10214            predep_objects_CXX="$predep_objects_CXX $p"
10215          fi
10216        else
10217          if test -z "$postdep_objects_CXX"; then
10218            postdep_objects_CXX="$p"
10219          else
10220            postdep_objects_CXX="$postdep_objects_CXX $p"
10221          fi
10222        fi
10223        ;;
10224
10225     *) ;; # Ignore the rest.
10226
10227     esac
10228   done
10229
10230   # Clean up.
10231   rm -f a.out a.exe
10232 else
10233   echo "libtool.m4: error: problem compiling CXX test program"
10234 fi
10235
10236 $rm -f confest.$objext
10237
10238 case " $postdeps_CXX " in
10239 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10240 esac
10241
10242 lt_prog_compiler_wl_CXX=
10243 lt_prog_compiler_pic_CXX=
10244 lt_prog_compiler_static_CXX=
10245
10246 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10247 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10248
10249   # C++ specific cases for pic, static, wl, etc.
10250   if test "$GXX" = yes; then
10251     lt_prog_compiler_wl_CXX='-Wl,'
10252     lt_prog_compiler_static_CXX='-static'
10253
10254     case $host_os in
10255     aix*)
10256       # All AIX code is PIC.
10257       if test "$host_cpu" = ia64; then
10258         # AIX 5 now supports IA64 processor
10259         lt_prog_compiler_static_CXX='-Bstatic'
10260       fi
10261       ;;
10262     amigaos*)
10263       # FIXME: we need at least 68020 code to build shared libraries, but
10264       # adding the `-m68020' flag to GCC prevents building anything better,
10265       # like `-m68040'.
10266       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10267       ;;
10268     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10269       # PIC is the default for these OSes.
10270       ;;
10271     mingw* | os2* | pw32*)
10272       # This hack is so that the source file can tell whether it is being
10273       # built for inclusion in a dll (and should export symbols for example).
10274       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10275       ;;
10276     darwin* | rhapsody*)
10277       # PIC is the default on this platform
10278       # Common symbols not allowed in MH_DYLIB files
10279       lt_prog_compiler_pic_CXX='-fno-common'
10280       ;;
10281     *djgpp*)
10282       # DJGPP does not support shared libraries at all
10283       lt_prog_compiler_pic_CXX=
10284       ;;
10285     sysv4*MP*)
10286       if test -d /usr/nec; then
10287         lt_prog_compiler_pic_CXX=-Kconform_pic
10288       fi
10289       ;;
10290     hpux*)
10291       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10292       # not for PA HP-UX.
10293       case "$host_cpu" in
10294       hppa*64*|ia64*)
10295         ;;
10296       *)
10297         lt_prog_compiler_pic_CXX='-fPIC'
10298         ;;
10299       esac
10300       ;;
10301     *)
10302       lt_prog_compiler_pic_CXX='-fPIC'
10303       ;;
10304     esac
10305   else
10306     case $host_os in
10307       aix4* | aix5*)
10308         # All AIX code is PIC.
10309         if test "$host_cpu" = ia64; then
10310           # AIX 5 now supports IA64 processor
10311           lt_prog_compiler_static_CXX='-Bstatic'
10312         else
10313           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10314         fi
10315         ;;
10316       chorus*)
10317         case $cc_basename in
10318         cxch68)
10319           # Green Hills C++ Compiler
10320           # _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"
10321           ;;
10322         esac
10323         ;;
10324       dgux*)
10325         case $cc_basename in
10326           ec++)
10327             lt_prog_compiler_pic_CXX='-KPIC'
10328             ;;
10329           ghcx)
10330             # Green Hills C++ Compiler
10331             lt_prog_compiler_pic_CXX='-pic'
10332             ;;
10333           *)
10334             ;;
10335         esac
10336         ;;
10337       freebsd* | kfreebsd*-gnu)
10338         # FreeBSD uses GNU C++
10339         ;;
10340       hpux9* | hpux10* | hpux11*)
10341         case $cc_basename in
10342           CC)
10343             lt_prog_compiler_wl_CXX='-Wl,'
10344             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10345             if test "$host_cpu" != ia64; then
10346               lt_prog_compiler_pic_CXX='+Z'
10347             fi
10348             ;;
10349           aCC)
10350             lt_prog_compiler_wl_CXX='-Wl,'
10351             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10352             case "$host_cpu" in
10353             hppa*64*|ia64*)
10354               # +Z the default
10355               ;;
10356             *)
10357               lt_prog_compiler_pic_CXX='+Z'
10358               ;;
10359             esac
10360             ;;
10361           *)
10362             ;;
10363         esac
10364         ;;
10365       irix5* | irix6* | nonstopux*)
10366         case $cc_basename in
10367           CC)
10368             lt_prog_compiler_wl_CXX='-Wl,'
10369             lt_prog_compiler_static_CXX='-non_shared'
10370             # CC pic flag -KPIC is the default.
10371             ;;
10372           *)
10373             ;;
10374         esac
10375         ;;
10376       linux*)
10377         case $cc_basename in
10378           KCC)
10379             # KAI C++ Compiler
10380             lt_prog_compiler_wl_CXX='--backend -Wl,'
10381             lt_prog_compiler_pic_CXX='-fPIC'
10382             ;;
10383           icpc)
10384             # Intel C++
10385             lt_prog_compiler_wl_CXX='-Wl,'
10386             lt_prog_compiler_pic_CXX='-KPIC'
10387             lt_prog_compiler_static_CXX='-static'
10388             ;;
10389           cxx)
10390             # Compaq C++
10391             # Make sure the PIC flag is empty.  It appears that all Alpha
10392             # Linux and Compaq Tru64 Unix objects are PIC.
10393             lt_prog_compiler_pic_CXX=
10394             lt_prog_compiler_static_CXX='-non_shared'
10395             ;;
10396           *)
10397             ;;
10398         esac
10399         ;;
10400       lynxos*)
10401         ;;
10402       m88k*)
10403         ;;
10404       mvs*)
10405         case $cc_basename in
10406           cxx)
10407             lt_prog_compiler_pic_CXX='-W c,exportall'
10408             ;;
10409           *)
10410             ;;
10411         esac
10412         ;;
10413       netbsd*)
10414         ;;
10415       osf3* | osf4* | osf5*)
10416         case $cc_basename in
10417           KCC)
10418             lt_prog_compiler_wl_CXX='--backend -Wl,'
10419             ;;
10420           RCC)
10421             # Rational C++ 2.4.1
10422             lt_prog_compiler_pic_CXX='-pic'
10423             ;;
10424           cxx)
10425             # Digital/Compaq C++
10426             lt_prog_compiler_wl_CXX='-Wl,'
10427             # Make sure the PIC flag is empty.  It appears that all Alpha
10428             # Linux and Compaq Tru64 Unix objects are PIC.
10429             lt_prog_compiler_pic_CXX=
10430             lt_prog_compiler_static_CXX='-non_shared'
10431             ;;
10432           *)
10433             ;;
10434         esac
10435         ;;
10436       psos*)
10437         ;;
10438       sco*)
10439         case $cc_basename in
10440           CC)
10441             lt_prog_compiler_pic_CXX='-fPIC'
10442             ;;
10443           *)
10444             ;;
10445         esac
10446         ;;
10447       solaris*)
10448         case $cc_basename in
10449           CC)
10450             # Sun C++ 4.2, 5.x and Centerline C++
10451             lt_prog_compiler_pic_CXX='-KPIC'
10452             lt_prog_compiler_static_CXX='-Bstatic'
10453             lt_prog_compiler_wl_CXX='-Qoption ld '
10454             ;;
10455           gcx)
10456             # Green Hills C++ Compiler
10457             lt_prog_compiler_pic_CXX='-PIC'
10458             ;;
10459           *)
10460             ;;
10461         esac
10462         ;;
10463       sunos4*)
10464         case $cc_basename in
10465           CC)
10466             # Sun C++ 4.x
10467             lt_prog_compiler_pic_CXX='-pic'
10468             lt_prog_compiler_static_CXX='-Bstatic'
10469             ;;
10470           lcc)
10471             # Lucid
10472             lt_prog_compiler_pic_CXX='-pic'
10473             ;;
10474           *)
10475             ;;
10476         esac
10477         ;;
10478       tandem*)
10479         case $cc_basename in
10480           NCC)
10481             # NonStop-UX NCC 3.20
10482             lt_prog_compiler_pic_CXX='-KPIC'
10483             ;;
10484           *)
10485             ;;
10486         esac
10487         ;;
10488       unixware*)
10489         ;;
10490       vxworks*)
10491         ;;
10492       *)
10493         lt_prog_compiler_can_build_shared_CXX=no
10494         ;;
10495     esac
10496   fi
10497
10498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10499 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10500
10501 #
10502 # Check to make sure the PIC flag actually works.
10503 #
10504 if test -n "$lt_prog_compiler_pic_CXX"; then
10505
10506 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10507 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10508 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   lt_prog_compiler_pic_works_CXX=no
10512   ac_outfile=conftest.$ac_objext
10513    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10514    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10515    # Insert the option either (1) after the last *FLAGS variable, or
10516    # (2) before a word containing "conftest.", or (3) at the end.
10517    # Note that $ac_compile itself does not contain backslashes and begins
10518    # with a dollar sign (not a hyphen), so the echo should work correctly.
10519    # The option is referenced via a variable to avoid confusing sed.
10520    lt_compile=`echo "$ac_compile" | $SED \
10521    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10523    -e 's:$: $lt_compiler_flag:'`
10524    (eval echo "\"\$as_me:10524: $lt_compile\"" >&5)
10525    (eval "$lt_compile" 2>conftest.err)
10526    ac_status=$?
10527    cat conftest.err >&5
10528    echo "$as_me:10528: \$? = $ac_status" >&5
10529    if (exit $ac_status) && test -s "$ac_outfile"; then
10530      # The compiler can only warn and ignore the option if not recognized
10531      # So say no if there are warnings
10532      if test ! -s conftest.err; then
10533        lt_prog_compiler_pic_works_CXX=yes
10534      fi
10535    fi
10536    $rm conftest*
10537
10538 fi
10539 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10540 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10541
10542 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10543     case $lt_prog_compiler_pic_CXX in
10544      "" | " "*) ;;
10545      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10546      esac
10547 else
10548     lt_prog_compiler_pic_CXX=
10549      lt_prog_compiler_can_build_shared_CXX=no
10550 fi
10551
10552 fi
10553 case "$host_os" in
10554   # For platforms which do not support PIC, -DPIC is meaningless:
10555   *djgpp*)
10556     lt_prog_compiler_pic_CXX=
10557     ;;
10558   *)
10559     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10560     ;;
10561 esac
10562
10563 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10564 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10565 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568   lt_cv_prog_compiler_c_o_CXX=no
10569    $rm -r conftest 2>/dev/null
10570    mkdir conftest
10571    cd conftest
10572    mkdir out
10573    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10574
10575    lt_compiler_flag="-o out/conftest2.$ac_objext"
10576    # Insert the option either (1) after the last *FLAGS variable, or
10577    # (2) before a word containing "conftest.", or (3) at the end.
10578    # Note that $ac_compile itself does not contain backslashes and begins
10579    # with a dollar sign (not a hyphen), so the echo should work correctly.
10580    lt_compile=`echo "$ac_compile" | $SED \
10581    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583    -e 's:$: $lt_compiler_flag:'`
10584    (eval echo "\"\$as_me:10584: $lt_compile\"" >&5)
10585    (eval "$lt_compile" 2>out/conftest.err)
10586    ac_status=$?
10587    cat out/conftest.err >&5
10588    echo "$as_me:10588: \$? = $ac_status" >&5
10589    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10590    then
10591      # The compiler can only warn and ignore the option if not recognized
10592      # So say no if there are warnings
10593      if test ! -s out/conftest.err; then
10594        lt_cv_prog_compiler_c_o_CXX=yes
10595      fi
10596    fi
10597    chmod u+w .
10598    $rm conftest*
10599    # SGI C++ compiler will create directory out/ii_files/ for
10600    # template instantiation
10601    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10602    $rm out/* && rmdir out
10603    cd ..
10604    rmdir conftest
10605    $rm conftest*
10606
10607 fi
10608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10609 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10610
10611
10612 hard_links="nottested"
10613 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10614   # do not overwrite the value of need_locks provided by the user
10615   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10616 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10617   hard_links=yes
10618   $rm conftest*
10619   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10620   touch conftest.a
10621   ln conftest.a conftest.b 2>&5 || hard_links=no
10622   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10623   echo "$as_me:$LINENO: result: $hard_links" >&5
10624 echo "${ECHO_T}$hard_links" >&6
10625   if test "$hard_links" = no; then
10626     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10627 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10628     need_locks=warn
10629   fi
10630 else
10631   need_locks=no
10632 fi
10633
10634 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10636
10637   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10638   case $host_os in
10639   aix4* | aix5*)
10640     # If we're using GNU nm, then we don't want the "-C" option.
10641     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10642     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10643       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'
10644     else
10645       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'
10646     fi
10647     ;;
10648   pw32*)
10649     export_symbols_cmds_CXX="$ltdll_cmds"
10650   ;;
10651   cygwin* | mingw*)
10652     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10653   ;;
10654   *)
10655     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10656   ;;
10657   esac
10658
10659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10661 test "$ld_shlibs_CXX" = no && can_build_shared=no
10662
10663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10664 if test "$GCC" = yes; then
10665   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10666 fi
10667
10668 #
10669 # Do we need to explicitly link libc?
10670 #
10671 case "x$archive_cmds_need_lc_CXX" in
10672 x|xyes)
10673   # Assume -lc should be added
10674   archive_cmds_need_lc_CXX=yes
10675
10676   if test "$enable_shared" = yes && test "$GCC" = yes; then
10677     case $archive_cmds_CXX in
10678     *'~'*)
10679       # FIXME: we may have to deal with multi-command sequences.
10680       ;;
10681     '$CC '*)
10682       # Test whether the compiler implicitly links with -lc since on some
10683       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10684       # to ld, don't add -lc before -lgcc.
10685       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10687       $rm conftest*
10688       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10689
10690       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691   (eval $ac_compile) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } 2>conftest.err; then
10695         soname=conftest
10696         lib=conftest
10697         libobjs=conftest.$ac_objext
10698         deplibs=
10699         wl=$lt_prog_compiler_wl_CXX
10700         compiler_flags=-v
10701         linker_flags=-v
10702         verstring=
10703         output_objdir=.
10704         libname=conftest
10705         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10706         allow_undefined_flag_CXX=
10707         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10708   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }
10712         then
10713           archive_cmds_need_lc_CXX=no
10714         else
10715           archive_cmds_need_lc_CXX=yes
10716         fi
10717         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10718       else
10719         cat conftest.err 1>&5
10720       fi
10721       $rm conftest*
10722       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10723 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10724       ;;
10725     esac
10726   fi
10727   ;;
10728 esac
10729
10730 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10732 library_names_spec=
10733 libname_spec='lib$name'
10734 soname_spec=
10735 shrext_cmds=".so"
10736 postinstall_cmds=
10737 postuninstall_cmds=
10738 finish_cmds=
10739 finish_eval=
10740 shlibpath_var=
10741 shlibpath_overrides_runpath=unknown
10742 version_type=none
10743 dynamic_linker="$host_os ld.so"
10744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10745 if test "$GCC" = yes; then
10746   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10747   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10748     # if the path contains ";" then we assume it to be the separator
10749     # otherwise default to the standard path separator (i.e. ":") - it is
10750     # assumed that no part of a normal pathname contains ";" but that should
10751     # okay in the real world where ";" in dirpaths is itself problematic.
10752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10753   else
10754     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10755   fi
10756 else
10757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10758 fi
10759 need_lib_prefix=unknown
10760 hardcode_into_libs=no
10761
10762 # when you set need_version to no, make sure it does not cause -set_version
10763 # flags to be left without arguments
10764 need_version=unknown
10765
10766 case $host_os in
10767 aix3*)
10768   version_type=linux
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10770   shlibpath_var=LIBPATH
10771
10772   # AIX 3 has no versioning support, so we append a major version to the name.
10773   soname_spec='${libname}${release}${shared_ext}$major'
10774   ;;
10775
10776 aix4* | aix5*)
10777   version_type=linux
10778   need_lib_prefix=no
10779   need_version=no
10780   hardcode_into_libs=yes
10781   if test "$host_cpu" = ia64; then
10782     # AIX 5 supports IA64
10783     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10784     shlibpath_var=LD_LIBRARY_PATH
10785   else
10786     # With GCC up to 2.95.x, collect2 would create an import file
10787     # for dependence libraries.  The import file would start with
10788     # the line `#! .'.  This would cause the generated library to
10789     # depend on `.', always an invalid library.  This was fixed in
10790     # development snapshots of GCC prior to 3.0.
10791     case $host_os in
10792       aix4 | aix4.[01] | aix4.[01].*)
10793       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10794            echo ' yes '
10795            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10796         :
10797       else
10798         can_build_shared=no
10799       fi
10800       ;;
10801     esac
10802     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10803     # soname into executable. Probably we can add versioning support to
10804     # collect2, so additional links can be useful in future.
10805     if test "$aix_use_runtimelinking" = yes; then
10806       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10807       # instead of lib<name>.a to let people know that these are not
10808       # typical AIX shared libraries.
10809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810     else
10811       # We preserve .a as extension for shared libraries through AIX4.2
10812       # and later when we are not doing run time linking.
10813       library_names_spec='${libname}${release}.a $libname.a'
10814       soname_spec='${libname}${release}${shared_ext}$major'
10815     fi
10816     shlibpath_var=LIBPATH
10817   fi
10818   ;;
10819
10820 amigaos*)
10821   library_names_spec='$libname.ixlibrary $libname.a'
10822   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10823   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'
10824   ;;
10825
10826 beos*)
10827   library_names_spec='${libname}${shared_ext}'
10828   dynamic_linker="$host_os ld.so"
10829   shlibpath_var=LIBRARY_PATH
10830   ;;
10831
10832 bsdi4*)
10833   version_type=linux
10834   need_version=no
10835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836   soname_spec='${libname}${release}${shared_ext}$major'
10837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10838   shlibpath_var=LD_LIBRARY_PATH
10839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10841   # the default ld.so.conf also contains /usr/contrib/lib and
10842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10843   # libtool to hard-code these into programs
10844   ;;
10845
10846 cygwin* | mingw* | pw32*)
10847   version_type=windows
10848   shrext_cmds=".dll"
10849   need_version=no
10850   need_lib_prefix=no
10851
10852   case $GCC,$host_os in
10853   yes,cygwin* | yes,mingw* | yes,pw32*)
10854     library_names_spec='$libname.dll.a'
10855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10856     postinstall_cmds='base_file=`basename \${file}`~
10857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10858       dldir=$destdir/`dirname \$dlpath`~
10859       test -d \$dldir || mkdir -p \$dldir~
10860       $install_prog $dir/$dlname \$dldir/$dlname'
10861     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10862       dlpath=$dir/\$dldll~
10863        $rm \$dlpath'
10864     shlibpath_overrides_runpath=yes
10865
10866     case $host_os in
10867     cygwin*)
10868       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10869       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10870       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10871       ;;
10872     mingw*)
10873       # MinGW DLLs use traditional 'lib' prefix
10874       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10875       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10876       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10877         # It is most probably a Windows format PATH printed by
10878         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10879         # path with ; separators, and with drive letters. We can handle the
10880         # drive letters (cygwin fileutils understands them), so leave them,
10881         # especially as we might pass files found there to a mingw objdump,
10882         # which wouldn't understand a cygwinified path. Ahh.
10883         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10884       else
10885         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10886       fi
10887       ;;
10888     pw32*)
10889       # pw32 DLLs use 'pw' prefix rather than 'lib'
10890       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10891       ;;
10892     esac
10893     ;;
10894
10895   *)
10896     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10897     ;;
10898   esac
10899   dynamic_linker='Win32 ld.exe'
10900   # FIXME: first we should search . and the directory the executable is in
10901   shlibpath_var=PATH
10902   ;;
10903
10904 darwin* | rhapsody*)
10905   dynamic_linker="$host_os dyld"
10906   version_type=darwin
10907   need_lib_prefix=no
10908   need_version=no
10909   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10910   soname_spec='${libname}${release}${major}$shared_ext'
10911   shlibpath_overrides_runpath=yes
10912   shlibpath_var=DYLD_LIBRARY_PATH
10913   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10914   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10915   if test "$GCC" = yes; then
10916     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"`
10917   else
10918     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10919   fi
10920   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10921   ;;
10922
10923 dgux*)
10924   version_type=linux
10925   need_lib_prefix=no
10926   need_version=no
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10928   soname_spec='${libname}${release}${shared_ext}$major'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   ;;
10931
10932 freebsd1*)
10933   dynamic_linker=no
10934   ;;
10935
10936 kfreebsd*-gnu)
10937   version_type=linux
10938   need_lib_prefix=no
10939   need_version=no
10940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941   soname_spec='${libname}${release}${shared_ext}$major'
10942   shlibpath_var=LD_LIBRARY_PATH
10943   shlibpath_overrides_runpath=no
10944   hardcode_into_libs=yes
10945   dynamic_linker='GNU ld.so'
10946   ;;
10947
10948 freebsd*)
10949   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10950   version_type=freebsd-$objformat
10951   case $version_type in
10952     freebsd-elf*)
10953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10954       need_version=no
10955       need_lib_prefix=no
10956       ;;
10957     freebsd-*)
10958       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10959       need_version=yes
10960       ;;
10961   esac
10962   shlibpath_var=LD_LIBRARY_PATH
10963   case $host_os in
10964   freebsd2*)
10965     shlibpath_overrides_runpath=yes
10966     ;;
10967   freebsd3.01* | freebsdelf3.01*)
10968     shlibpath_overrides_runpath=yes
10969     hardcode_into_libs=yes
10970     ;;
10971   *) # from 3.2 on
10972     shlibpath_overrides_runpath=no
10973     hardcode_into_libs=yes
10974     ;;
10975   esac
10976   ;;
10977
10978 gnu*)
10979   version_type=linux
10980   need_lib_prefix=no
10981   need_version=no
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10983   soname_spec='${libname}${release}${shared_ext}$major'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   hardcode_into_libs=yes
10986   ;;
10987
10988 hpux9* | hpux10* | hpux11*)
10989   # Give a soname corresponding to the major version so that dld.sl refuses to
10990   # link against other versions.
10991   version_type=sunos
10992   need_lib_prefix=no
10993   need_version=no
10994   case "$host_cpu" in
10995   ia64*)
10996     shrext_cmds='.so'
10997     hardcode_into_libs=yes
10998     dynamic_linker="$host_os dld.so"
10999     shlibpath_var=LD_LIBRARY_PATH
11000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002     soname_spec='${libname}${release}${shared_ext}$major'
11003     if test "X$HPUX_IA64_MODE" = X32; then
11004       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11005     else
11006       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11007     fi
11008     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11009     ;;
11010    hppa*64*)
11011      shrext_cmds='.sl'
11012      hardcode_into_libs=yes
11013      dynamic_linker="$host_os dld.sl"
11014      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11015      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017      soname_spec='${libname}${release}${shared_ext}$major'
11018      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11019      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11020      ;;
11021    *)
11022     shrext_cmds='.sl'
11023     dynamic_linker="$host_os dld.sl"
11024     shlibpath_var=SHLIB_PATH
11025     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027     soname_spec='${libname}${release}${shared_ext}$major'
11028     ;;
11029   esac
11030   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11031   postinstall_cmds='chmod 555 $lib'
11032   ;;
11033
11034 irix5* | irix6* | nonstopux*)
11035   case $host_os in
11036     nonstopux*) version_type=nonstopux ;;
11037     *)
11038         if test "$lt_cv_prog_gnu_ld" = yes; then
11039                 version_type=linux
11040         else
11041                 version_type=irix
11042         fi ;;
11043   esac
11044   need_lib_prefix=no
11045   need_version=no
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11048   case $host_os in
11049   irix5* | nonstopux*)
11050     libsuff= shlibsuff=
11051     ;;
11052   *)
11053     case $LD in # libtool.m4 will add one of these switches to LD
11054     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11055       libsuff= shlibsuff= libmagic=32-bit;;
11056     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11057       libsuff=32 shlibsuff=N32 libmagic=N32;;
11058     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11059       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11060     *) libsuff= shlibsuff= libmagic=never-match;;
11061     esac
11062     ;;
11063   esac
11064   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11065   shlibpath_overrides_runpath=no
11066   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11067   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11068   hardcode_into_libs=yes
11069   ;;
11070
11071 # No shared lib support for Linux oldld, aout, or coff.
11072 linux*oldld* | linux*aout* | linux*coff*)
11073   dynamic_linker=no
11074   ;;
11075
11076 # This must be Linux ELF.
11077 linux*)
11078   version_type=linux
11079   need_lib_prefix=no
11080   need_version=no
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082   soname_spec='${libname}${release}${shared_ext}$major'
11083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11084   shlibpath_var=LD_LIBRARY_PATH
11085   shlibpath_overrides_runpath=no
11086   # This implies no fast_install, which is unacceptable.
11087   # Some rework will be needed to allow for fast_install
11088   # before this can be enabled.
11089   hardcode_into_libs=yes
11090
11091   # find out which ABI we are using
11092   libsuff=
11093   case "$host_cpu" in
11094   x86_64*|s390x*|powerpc64*)
11095     echo '#line 11095 "configure"' > conftest.$ac_ext
11096     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097   (eval $ac_compile) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; then
11101       case `/usr/bin/file conftest.$ac_objext` in
11102       *64-bit*)
11103         libsuff=64
11104         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11105         ;;
11106       esac
11107     fi
11108     rm -rf conftest*
11109     ;;
11110   esac
11111
11112   # Append ld.so.conf contents to the search path
11113   if test -f /etc/ld.so.conf; then
11114     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11115     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11116   fi
11117
11118   # We used to test for /lib/ld.so.1 and disable shared libraries on
11119   # powerpc, because MkLinux only supported shared libraries with the
11120   # GNU dynamic linker.  Since this was broken with cross compilers,
11121   # most powerpc-linux boxes support dynamic linking these days and
11122   # people can always --disable-shared, the test was removed, and we
11123   # assume the GNU/Linux dynamic linker is in use.
11124   dynamic_linker='GNU/Linux ld.so'
11125   ;;
11126
11127 knetbsd*-gnu)
11128   version_type=linux
11129   need_lib_prefix=no
11130   need_version=no
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   shlibpath_overrides_runpath=no
11135   hardcode_into_libs=yes
11136   dynamic_linker='GNU ld.so'
11137   ;;
11138
11139 netbsd*)
11140   version_type=sunos
11141   need_lib_prefix=no
11142   need_version=no
11143   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146     dynamic_linker='NetBSD (a.out) ld.so'
11147   else
11148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11149     soname_spec='${libname}${release}${shared_ext}$major'
11150     dynamic_linker='NetBSD ld.elf_so'
11151   fi
11152   shlibpath_var=LD_LIBRARY_PATH
11153   shlibpath_overrides_runpath=yes
11154   hardcode_into_libs=yes
11155   ;;
11156
11157 newsos6)
11158   version_type=linux
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160   shlibpath_var=LD_LIBRARY_PATH
11161   shlibpath_overrides_runpath=yes
11162   ;;
11163
11164 nto-qnx*)
11165   version_type=linux
11166   need_lib_prefix=no
11167   need_version=no
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169   soname_spec='${libname}${release}${shared_ext}$major'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   shlibpath_overrides_runpath=yes
11172   ;;
11173
11174 openbsd*)
11175   version_type=sunos
11176   need_lib_prefix=no
11177   need_version=yes
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11179   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11180   shlibpath_var=LD_LIBRARY_PATH
11181   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11182     case $host_os in
11183       openbsd2.[89] | openbsd2.[89].*)
11184         shlibpath_overrides_runpath=no
11185         ;;
11186       *)
11187         shlibpath_overrides_runpath=yes
11188         ;;
11189       esac
11190   else
11191     shlibpath_overrides_runpath=yes
11192   fi
11193   ;;
11194
11195 os2*)
11196   libname_spec='$name'
11197   shrext_cmds=".dll"
11198   need_lib_prefix=no
11199   library_names_spec='$libname${shared_ext} $libname.a'
11200   dynamic_linker='OS/2 ld.exe'
11201   shlibpath_var=LIBPATH
11202   ;;
11203
11204 osf3* | osf4* | osf5*)
11205   version_type=osf
11206   need_lib_prefix=no
11207   need_version=no
11208   soname_spec='${libname}${release}${shared_ext}$major'
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11212   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11213   ;;
11214
11215 sco3.2v5*)
11216   version_type=osf
11217   soname_spec='${libname}${release}${shared_ext}$major'
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   ;;
11221
11222 solaris*)
11223   version_type=linux
11224   need_lib_prefix=no
11225   need_version=no
11226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227   soname_spec='${libname}${release}${shared_ext}$major'
11228   shlibpath_var=LD_LIBRARY_PATH
11229   shlibpath_overrides_runpath=yes
11230   hardcode_into_libs=yes
11231   # ldd complains unless libraries are executable
11232   postinstall_cmds='chmod +x $lib'
11233   ;;
11234
11235 sunos4*)
11236   version_type=sunos
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11238   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   shlibpath_overrides_runpath=yes
11241   if test "$with_gnu_ld" = yes; then
11242     need_lib_prefix=no
11243   fi
11244   need_version=yes
11245   ;;
11246
11247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11248   version_type=linux
11249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250   soname_spec='${libname}${release}${shared_ext}$major'
11251   shlibpath_var=LD_LIBRARY_PATH
11252   case $host_vendor in
11253     sni)
11254       shlibpath_overrides_runpath=no
11255       need_lib_prefix=no
11256       export_dynamic_flag_spec='${wl}-Blargedynsym'
11257       runpath_var=LD_RUN_PATH
11258       ;;
11259     siemens)
11260       need_lib_prefix=no
11261       ;;
11262     motorola)
11263       need_lib_prefix=no
11264       need_version=no
11265       shlibpath_overrides_runpath=no
11266       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11267       ;;
11268   esac
11269   ;;
11270
11271 sysv4*MP*)
11272   if test -d /usr/nec ;then
11273     version_type=linux
11274     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11275     soname_spec='$libname${shared_ext}.$major'
11276     shlibpath_var=LD_LIBRARY_PATH
11277   fi
11278   ;;
11279
11280 uts4*)
11281   version_type=linux
11282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   shlibpath_var=LD_LIBRARY_PATH
11285   ;;
11286
11287 *)
11288   dynamic_linker=no
11289   ;;
11290 esac
11291 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11292 echo "${ECHO_T}$dynamic_linker" >&6
11293 test "$dynamic_linker" = no && can_build_shared=no
11294
11295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11297 hardcode_action_CXX=
11298 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11299    test -n "$runpath_var CXX" || \
11300    test "X$hardcode_automatic_CXX"="Xyes" ; then
11301
11302   # We can hardcode non-existant directories.
11303   if test "$hardcode_direct_CXX" != no &&
11304      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11305      # have to relink, otherwise we might link with an installed library
11306      # when we should be linking with a yet-to-be-installed one
11307      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11308      test "$hardcode_minus_L_CXX" != no; then
11309     # Linking always hardcodes the temporary library directory.
11310     hardcode_action_CXX=relink
11311   else
11312     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11313     hardcode_action_CXX=immediate
11314   fi
11315 else
11316   # We cannot hardcode anything, or else we can only hardcode existing
11317   # directories.
11318   hardcode_action_CXX=unsupported
11319 fi
11320 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11321 echo "${ECHO_T}$hardcode_action_CXX" >&6
11322
11323 if test "$hardcode_action_CXX" = relink; then
11324   # Fast installation is not supported
11325   enable_fast_install=no
11326 elif test "$shlibpath_overrides_runpath" = yes ||
11327      test "$enable_shared" = no; then
11328   # Fast installation is not necessary
11329   enable_fast_install=needless
11330 fi
11331
11332 striplib=
11333 old_striplib=
11334 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11335 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11336 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11337   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11338   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11339   echo "$as_me:$LINENO: result: yes" >&5
11340 echo "${ECHO_T}yes" >&6
11341 else
11342 # FIXME - insert some real tests, host_os isn't really good enough
11343   case $host_os in
11344    darwin*)
11345        if test -n "$STRIP" ; then
11346          striplib="$STRIP -x"
11347          echo "$as_me:$LINENO: result: yes" >&5
11348 echo "${ECHO_T}yes" >&6
11349        else
11350   echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6
11352 fi
11353        ;;
11354    *)
11355   echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6
11357     ;;
11358   esac
11359 fi
11360
11361 if test "x$enable_dlopen" != xyes; then
11362   enable_dlopen=unknown
11363   enable_dlopen_self=unknown
11364   enable_dlopen_self_static=unknown
11365 else
11366   lt_cv_dlopen=no
11367   lt_cv_dlopen_libs=
11368
11369   case $host_os in
11370   beos*)
11371     lt_cv_dlopen="load_add_on"
11372     lt_cv_dlopen_libs=
11373     lt_cv_dlopen_self=yes
11374     ;;
11375
11376   mingw* | pw32*)
11377     lt_cv_dlopen="LoadLibrary"
11378     lt_cv_dlopen_libs=
11379    ;;
11380
11381   cygwin*)
11382     lt_cv_dlopen="dlopen"
11383     lt_cv_dlopen_libs=
11384    ;;
11385
11386   darwin*)
11387   # if libdl is installed we need to link against it
11388     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393   ac_check_lib_save_LIBS=$LIBS
11394 LIBS="-ldl  $LIBS"
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401
11402 /* Override any gcc2 internal prototype to avoid an error.  */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 /* We use char because int might match the return type of a gcc2
11407    builtin and then its argument prototype would still apply.  */
11408 char dlopen ();
11409 int
11410 main ()
11411 {
11412 dlopen ();
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419   (eval $ac_link) 2>conftest.er1
11420   ac_status=$?
11421   grep -v '^ *+' conftest.er1 >conftest.err
11422   rm -f conftest.er1
11423   cat conftest.err >&5
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -z "$ac_cxx_werror_flag"
11427                          || test ! -s conftest.err'
11428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429   (eval $ac_try) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; } &&
11433          { ac_try='test -s conftest$ac_exeext'
11434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435   (eval $ac_try) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }; then
11439   ac_cv_lib_dl_dlopen=yes
11440 else
11441   echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 ac_cv_lib_dl_dlopen=no
11445 fi
11446 rm -f conftest.err conftest.$ac_objext \
11447       conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11452 if test $ac_cv_lib_dl_dlopen = yes; then
11453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454 else
11455
11456     lt_cv_dlopen="dyld"
11457     lt_cv_dlopen_libs=
11458     lt_cv_dlopen_self=yes
11459
11460 fi
11461
11462    ;;
11463
11464   *)
11465     echo "$as_me:$LINENO: checking for shl_load" >&5
11466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11467 if test "${ac_cv_func_shl_load+set}" = set; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11478 #define shl_load innocuous_shl_load
11479
11480 /* System header to define __stub macros and hopefully few prototypes,
11481     which can conflict with char shl_load (); below.
11482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11483     <limits.h> exists even on freestanding compilers.  */
11484
11485 #ifdef __STDC__
11486 # include <limits.h>
11487 #else
11488 # include <assert.h>
11489 #endif
11490
11491 #undef shl_load
11492
11493 /* Override any gcc2 internal prototype to avoid an error.  */
11494 #ifdef __cplusplus
11495 extern "C"
11496 {
11497 #endif
11498 /* We use char because int might match the return type of a gcc2
11499    builtin and then its argument prototype would still apply.  */
11500 char shl_load ();
11501 /* The GNU C library defines this for functions which it implements
11502     to always fail with ENOSYS.  Some functions are actually named
11503     something starting with __ and the normal name is an alias.  */
11504 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11505 choke me
11506 #else
11507 char (*f) () = shl_load;
11508 #endif
11509 #ifdef __cplusplus
11510 }
11511 #endif
11512
11513 int
11514 main ()
11515 {
11516 return f != shl_load;
11517   ;
11518   return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext conftest$ac_exeext
11522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523   (eval $ac_link) 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -z "$ac_cxx_werror_flag"
11531                          || test ! -s conftest.err'
11532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533   (eval $ac_try) 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; } &&
11537          { ac_try='test -s conftest$ac_exeext'
11538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539   (eval $ac_try) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; }; then
11543   ac_cv_func_shl_load=yes
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 ac_cv_func_shl_load=no
11549 fi
11550 rm -f conftest.err conftest.$ac_objext \
11551       conftest$ac_exeext conftest.$ac_ext
11552 fi
11553 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11555 if test $ac_cv_func_shl_load = yes; then
11556   lt_cv_dlopen="shl_load"
11557 else
11558   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   ac_check_lib_save_LIBS=$LIBS
11564 LIBS="-ldld  $LIBS"
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571
11572 /* Override any gcc2 internal prototype to avoid an error.  */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 /* We use char because int might match the return type of a gcc2
11577    builtin and then its argument prototype would still apply.  */
11578 char shl_load ();
11579 int
11580 main ()
11581 {
11582 shl_load ();
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589   (eval $ac_link) 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -z "$ac_cxx_werror_flag"
11597                          || test ! -s conftest.err'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; } &&
11603          { ac_try='test -s conftest$ac_exeext'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   ac_cv_lib_dld_shl_load=yes
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 ac_cv_lib_dld_shl_load=no
11615 fi
11616 rm -f conftest.err conftest.$ac_objext \
11617       conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11619 fi
11620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11622 if test $ac_cv_lib_dld_shl_load = yes; then
11623   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11624 else
11625   echo "$as_me:$LINENO: checking for dlopen" >&5
11626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11627 if test "${ac_cv_func_dlopen+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11638 #define dlopen innocuous_dlopen
11639
11640 /* System header to define __stub macros and hopefully few prototypes,
11641     which can conflict with char dlopen (); below.
11642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643     <limits.h> exists even on freestanding compilers.  */
11644
11645 #ifdef __STDC__
11646 # include <limits.h>
11647 #else
11648 # include <assert.h>
11649 #endif
11650
11651 #undef dlopen
11652
11653 /* Override any gcc2 internal prototype to avoid an error.  */
11654 #ifdef __cplusplus
11655 extern "C"
11656 {
11657 #endif
11658 /* We use char because int might match the return type of a gcc2
11659    builtin and then its argument prototype would still apply.  */
11660 char dlopen ();
11661 /* The GNU C library defines this for functions which it implements
11662     to always fail with ENOSYS.  Some functions are actually named
11663     something starting with __ and the normal name is an alias.  */
11664 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11665 choke me
11666 #else
11667 char (*f) () = dlopen;
11668 #endif
11669 #ifdef __cplusplus
11670 }
11671 #endif
11672
11673 int
11674 main ()
11675 {
11676 return f != dlopen;
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683   (eval $ac_link) 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } &&
11690          { ac_try='test -z "$ac_cxx_werror_flag"
11691                          || test ! -s conftest.err'
11692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693   (eval $ac_try) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   ac_cv_func_dlopen=yes
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_cv_func_dlopen=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext \
11711       conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11715 if test $ac_cv_func_dlopen = yes; then
11716   lt_cv_dlopen="dlopen"
11717 else
11718   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-ldl  $LIBS"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731
11732 /* Override any gcc2 internal prototype to avoid an error.  */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737    builtin and then its argument prototype would still apply.  */
11738 char dlopen ();
11739 int
11740 main ()
11741 {
11742 dlopen ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749   (eval $ac_link) 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -z "$ac_cxx_werror_flag"
11757                          || test ! -s conftest.err'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; } &&
11763          { ac_try='test -s conftest$ac_exeext'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   ac_cv_lib_dl_dlopen=yes
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 ac_cv_lib_dl_dlopen=no
11775 fi
11776 rm -f conftest.err conftest.$ac_objext \
11777       conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_lib_save_LIBS
11779 fi
11780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11782 if test $ac_cv_lib_dl_dlopen = yes; then
11783   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11784 else
11785   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11786 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11787 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   ac_check_lib_save_LIBS=$LIBS
11791 LIBS="-lsvld  $LIBS"
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798
11799 /* Override any gcc2 internal prototype to avoid an error.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 /* We use char because int might match the return type of a gcc2
11804    builtin and then its argument prototype would still apply.  */
11805 char dlopen ();
11806 int
11807 main ()
11808 {
11809 dlopen ();
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816   (eval $ac_link) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_cxx_werror_flag"
11824                          || test ! -s conftest.err'
11825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826   (eval $ac_try) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; } &&
11830          { ac_try='test -s conftest$ac_exeext'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; }; then
11836   ac_cv_lib_svld_dlopen=yes
11837 else
11838   echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841 ac_cv_lib_svld_dlopen=no
11842 fi
11843 rm -f conftest.err conftest.$ac_objext \
11844       conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11846 fi
11847 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11849 if test $ac_cv_lib_svld_dlopen = yes; then
11850   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11851 else
11852   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-ldld  $LIBS"
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865
11866 /* Override any gcc2 internal prototype to avoid an error.  */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 /* We use char because int might match the return type of a gcc2
11871    builtin and then its argument prototype would still apply.  */
11872 char dld_link ();
11873 int
11874 main ()
11875 {
11876 dld_link ();
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883   (eval $ac_link) 2>conftest.er1
11884   ac_status=$?
11885   grep -v '^ *+' conftest.er1 >conftest.err
11886   rm -f conftest.er1
11887   cat conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } &&
11890          { ac_try='test -z "$ac_cxx_werror_flag"
11891                          || test ! -s conftest.err'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; } &&
11897          { ac_try='test -s conftest$ac_exeext'
11898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899   (eval $ac_try) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; }; then
11903   ac_cv_lib_dld_dld_link=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 ac_cv_lib_dld_dld_link=no
11909 fi
11910 rm -f conftest.err conftest.$ac_objext \
11911       conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11913 fi
11914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11916 if test $ac_cv_lib_dld_dld_link = yes; then
11917   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11918 fi
11919
11920
11921 fi
11922
11923
11924 fi
11925
11926
11927 fi
11928
11929
11930 fi
11931
11932
11933 fi
11934
11935     ;;
11936   esac
11937
11938   if test "x$lt_cv_dlopen" != xno; then
11939     enable_dlopen=yes
11940   else
11941     enable_dlopen=no
11942   fi
11943
11944   case $lt_cv_dlopen in
11945   dlopen)
11946     save_CPPFLAGS="$CPPFLAGS"
11947     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11948
11949     save_LDFLAGS="$LDFLAGS"
11950     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11951
11952     save_LIBS="$LIBS"
11953     LIBS="$lt_cv_dlopen_libs $LIBS"
11954
11955     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11956 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11957 if test "${lt_cv_dlopen_self+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960           if test "$cross_compiling" = yes; then :
11961   lt_cv_dlopen_self=cross
11962 else
11963   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964   lt_status=$lt_dlunknown
11965   cat > conftest.$ac_ext <<EOF
11966 #line 11966 "configure"
11967 #include "confdefs.h"
11968
11969 #if HAVE_DLFCN_H
11970 #include <dlfcn.h>
11971 #endif
11972
11973 #include <stdio.h>
11974
11975 #ifdef RTLD_GLOBAL
11976 #  define LT_DLGLOBAL           RTLD_GLOBAL
11977 #else
11978 #  ifdef DL_GLOBAL
11979 #    define LT_DLGLOBAL         DL_GLOBAL
11980 #  else
11981 #    define LT_DLGLOBAL         0
11982 #  endif
11983 #endif
11984
11985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986    find out it does not work in some platform. */
11987 #ifndef LT_DLLAZY_OR_NOW
11988 #  ifdef RTLD_LAZY
11989 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11990 #  else
11991 #    ifdef DL_LAZY
11992 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11993 #    else
11994 #      ifdef RTLD_NOW
11995 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11996 #      else
11997 #        ifdef DL_NOW
11998 #          define LT_DLLAZY_OR_NOW      DL_NOW
11999 #        else
12000 #          define LT_DLLAZY_OR_NOW      0
12001 #        endif
12002 #      endif
12003 #    endif
12004 #  endif
12005 #endif
12006
12007 #ifdef __cplusplus
12008 extern "C" void exit (int);
12009 #endif
12010
12011 void fnord() { int i=42;}
12012 int main ()
12013 {
12014   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12015   int status = $lt_dlunknown;
12016
12017   if (self)
12018     {
12019       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12020       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12021       /* dlclose (self); */
12022     }
12023
12024     exit (status);
12025 }
12026 EOF
12027   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028   (eval $ac_link) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12032     (./conftest; exit; ) 2>/dev/null
12033     lt_status=$?
12034     case x$lt_status in
12035       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12036       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12037       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12038     esac
12039   else :
12040     # compilation failed
12041     lt_cv_dlopen_self=no
12042   fi
12043 fi
12044 rm -fr conftest*
12045
12046
12047 fi
12048 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12049 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12050
12051     if test "x$lt_cv_dlopen_self" = xyes; then
12052       LDFLAGS="$LDFLAGS $link_static_flag"
12053       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12054 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12055 if test "${lt_cv_dlopen_self_static+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058           if test "$cross_compiling" = yes; then :
12059   lt_cv_dlopen_self_static=cross
12060 else
12061   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062   lt_status=$lt_dlunknown
12063   cat > conftest.$ac_ext <<EOF
12064 #line 12064 "configure"
12065 #include "confdefs.h"
12066
12067 #if HAVE_DLFCN_H
12068 #include <dlfcn.h>
12069 #endif
12070
12071 #include <stdio.h>
12072
12073 #ifdef RTLD_GLOBAL
12074 #  define LT_DLGLOBAL           RTLD_GLOBAL
12075 #else
12076 #  ifdef DL_GLOBAL
12077 #    define LT_DLGLOBAL         DL_GLOBAL
12078 #  else
12079 #    define LT_DLGLOBAL         0
12080 #  endif
12081 #endif
12082
12083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084    find out it does not work in some platform. */
12085 #ifndef LT_DLLAZY_OR_NOW
12086 #  ifdef RTLD_LAZY
12087 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12088 #  else
12089 #    ifdef DL_LAZY
12090 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12091 #    else
12092 #      ifdef RTLD_NOW
12093 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12094 #      else
12095 #        ifdef DL_NOW
12096 #          define LT_DLLAZY_OR_NOW      DL_NOW
12097 #        else
12098 #          define LT_DLLAZY_OR_NOW      0
12099 #        endif
12100 #      endif
12101 #    endif
12102 #  endif
12103 #endif
12104
12105 #ifdef __cplusplus
12106 extern "C" void exit (int);
12107 #endif
12108
12109 void fnord() { int i=42;}
12110 int main ()
12111 {
12112   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113   int status = $lt_dlunknown;
12114
12115   if (self)
12116     {
12117       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12118       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12119       /* dlclose (self); */
12120     }
12121
12122     exit (status);
12123 }
12124 EOF
12125   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126   (eval $ac_link) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12130     (./conftest; exit; ) 2>/dev/null
12131     lt_status=$?
12132     case x$lt_status in
12133       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12134       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12135       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12136     esac
12137   else :
12138     # compilation failed
12139     lt_cv_dlopen_self_static=no
12140   fi
12141 fi
12142 rm -fr conftest*
12143
12144
12145 fi
12146 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12148     fi
12149
12150     CPPFLAGS="$save_CPPFLAGS"
12151     LDFLAGS="$save_LDFLAGS"
12152     LIBS="$save_LIBS"
12153     ;;
12154   esac
12155
12156   case $lt_cv_dlopen_self in
12157   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12158   *) enable_dlopen_self=unknown ;;
12159   esac
12160
12161   case $lt_cv_dlopen_self_static in
12162   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12163   *) enable_dlopen_self_static=unknown ;;
12164   esac
12165 fi
12166
12167
12168 # The else clause should only fire when bootstrapping the
12169 # libtool distribution, otherwise you forgot to ship ltmain.sh
12170 # with your package, and you will get complaints that there are
12171 # no rules to generate ltmain.sh.
12172 if test -f "$ltmain"; then
12173   # See if we are running on zsh, and set the options which allow our commands through
12174   # without removal of \ escapes.
12175   if test -n "${ZSH_VERSION+set}" ; then
12176     setopt NO_GLOB_SUBST
12177   fi
12178   # Now quote all the things that may contain metacharacters while being
12179   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12180   # variables and quote the copies for generation of the libtool script.
12181   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12182     SED SHELL STRIP \
12183     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12184     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12185     deplibs_check_method reload_flag reload_cmds need_locks \
12186     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12187     lt_cv_sys_global_symbol_to_c_name_address \
12188     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12189     old_postinstall_cmds old_postuninstall_cmds \
12190     compiler_CXX \
12191     CC_CXX \
12192     LD_CXX \
12193     lt_prog_compiler_wl_CXX \
12194     lt_prog_compiler_pic_CXX \
12195     lt_prog_compiler_static_CXX \
12196     lt_prog_compiler_no_builtin_flag_CXX \
12197     export_dynamic_flag_spec_CXX \
12198     thread_safe_flag_spec_CXX \
12199     whole_archive_flag_spec_CXX \
12200     enable_shared_with_static_runtimes_CXX \
12201     old_archive_cmds_CXX \
12202     old_archive_from_new_cmds_CXX \
12203     predep_objects_CXX \
12204     postdep_objects_CXX \
12205     predeps_CXX \
12206     postdeps_CXX \
12207     compiler_lib_search_path_CXX \
12208     archive_cmds_CXX \
12209     archive_expsym_cmds_CXX \
12210     postinstall_cmds_CXX \
12211     postuninstall_cmds_CXX \
12212     old_archive_from_expsyms_cmds_CXX \
12213     allow_undefined_flag_CXX \
12214     no_undefined_flag_CXX \
12215     export_symbols_cmds_CXX \
12216     hardcode_libdir_flag_spec_CXX \
12217     hardcode_libdir_flag_spec_ld_CXX \
12218     hardcode_libdir_separator_CXX \
12219     hardcode_automatic_CXX \
12220     module_cmds_CXX \
12221     module_expsym_cmds_CXX \
12222     lt_cv_prog_compiler_c_o_CXX \
12223     exclude_expsyms_CXX \
12224     include_expsyms_CXX; do
12225
12226     case $var in
12227     old_archive_cmds_CXX | \
12228     old_archive_from_new_cmds_CXX | \
12229     archive_cmds_CXX | \
12230     archive_expsym_cmds_CXX | \
12231     module_cmds_CXX | \
12232     module_expsym_cmds_CXX | \
12233     old_archive_from_expsyms_cmds_CXX | \
12234     export_symbols_cmds_CXX | \
12235     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12236     postinstall_cmds | postuninstall_cmds | \
12237     old_postinstall_cmds | old_postuninstall_cmds | \
12238     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12239       # Double-quote double-evaled strings.
12240       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12241       ;;
12242     *)
12243       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12244       ;;
12245     esac
12246   done
12247
12248   case $lt_echo in
12249   *'\$0 --fallback-echo"')
12250     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12251     ;;
12252   esac
12253
12254 cfgfile="$ofile"
12255
12256   cat <<__EOF__ >> "$cfgfile"
12257 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12258
12259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12260
12261 # Shell to use when invoking shell scripts.
12262 SHELL=$lt_SHELL
12263
12264 # Whether or not to build shared libraries.
12265 build_libtool_libs=$enable_shared
12266
12267 # Whether or not to build static libraries.
12268 build_old_libs=$enable_static
12269
12270 # Whether or not to add -lc for building shared libraries.
12271 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12272
12273 # Whether or not to disallow shared libs when runtime libs are static
12274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12275
12276 # Whether or not to optimize for fast installation.
12277 fast_install=$enable_fast_install
12278
12279 # The host system.
12280 host_alias=$host_alias
12281 host=$host
12282
12283 # An echo program that does not interpret backslashes.
12284 echo=$lt_echo
12285
12286 # The archiver.
12287 AR=$lt_AR
12288 AR_FLAGS=$lt_AR_FLAGS
12289
12290 # A C compiler.
12291 LTCC=$lt_LTCC
12292
12293 # A language-specific compiler.
12294 CC=$lt_compiler_CXX
12295
12296 # Is the compiler the GNU C compiler?
12297 with_gcc=$GCC_CXX
12298
12299 # An ERE matcher.
12300 EGREP=$lt_EGREP
12301
12302 # The linker used to build libraries.
12303 LD=$lt_LD_CXX
12304
12305 # Whether we need hard or soft links.
12306 LN_S=$lt_LN_S
12307
12308 # A BSD-compatible nm program.
12309 NM=$lt_NM
12310
12311 # A symbol stripping program
12312 STRIP=$lt_STRIP
12313
12314 # Used to examine libraries when file_magic_cmd begins "file"
12315 MAGIC_CMD=$MAGIC_CMD
12316
12317 # Used on cygwin: DLL creation program.
12318 DLLTOOL="$DLLTOOL"
12319
12320 # Used on cygwin: object dumper.
12321 OBJDUMP="$OBJDUMP"
12322
12323 # Used on cygwin: assembler.
12324 AS="$AS"
12325
12326 # The name of the directory that contains temporary libtool files.
12327 objdir=$objdir
12328
12329 # How to create reloadable object files.
12330 reload_flag=$lt_reload_flag
12331 reload_cmds=$lt_reload_cmds
12332
12333 # How to pass a linker flag through the compiler.
12334 wl=$lt_lt_prog_compiler_wl_CXX
12335
12336 # Object file suffix (normally "o").
12337 objext="$ac_objext"
12338
12339 # Old archive suffix (normally "a").
12340 libext="$libext"
12341
12342 # Shared library suffix (normally ".so").
12343 shrext_cmds='$shrext_cmds'
12344
12345 # Executable file suffix (normally "").
12346 exeext="$exeext"
12347
12348 # Additional compiler flags for building library objects.
12349 pic_flag=$lt_lt_prog_compiler_pic_CXX
12350 pic_mode=$pic_mode
12351
12352 # What is the maximum length of a command?
12353 max_cmd_len=$lt_cv_sys_max_cmd_len
12354
12355 # Does compiler simultaneously support -c and -o options?
12356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12357
12358 # Must we lock files when doing compilation ?
12359 need_locks=$lt_need_locks
12360
12361 # Do we need the lib prefix for modules?
12362 need_lib_prefix=$need_lib_prefix
12363
12364 # Do we need a version for libraries?
12365 need_version=$need_version
12366
12367 # Whether dlopen is supported.
12368 dlopen_support=$enable_dlopen
12369
12370 # Whether dlopen of programs is supported.
12371 dlopen_self=$enable_dlopen_self
12372
12373 # Whether dlopen of statically linked programs is supported.
12374 dlopen_self_static=$enable_dlopen_self_static
12375
12376 # Compiler flag to prevent dynamic linking.
12377 link_static_flag=$lt_lt_prog_compiler_static_CXX
12378
12379 # Compiler flag to turn off builtin functions.
12380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12381
12382 # Compiler flag to allow reflexive dlopens.
12383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12384
12385 # Compiler flag to generate shared objects directly from archives.
12386 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12387
12388 # Compiler flag to generate thread-safe objects.
12389 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12390
12391 # Library versioning type.
12392 version_type=$version_type
12393
12394 # Format of library name prefix.
12395 libname_spec=$lt_libname_spec
12396
12397 # List of archive names.  First name is the real one, the rest are links.
12398 # The last name is the one that the linker finds with -lNAME.
12399 library_names_spec=$lt_library_names_spec
12400
12401 # The coded name of the library, if different from the real name.
12402 soname_spec=$lt_soname_spec
12403
12404 # Commands used to build and install an old-style archive.
12405 RANLIB=$lt_RANLIB
12406 old_archive_cmds=$lt_old_archive_cmds_CXX
12407 old_postinstall_cmds=$lt_old_postinstall_cmds
12408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12409
12410 # Create an old-style archive from a shared archive.
12411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12412
12413 # Create a temporary old-style archive to link instead of a shared archive.
12414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12415
12416 # Commands used to build and install a shared archive.
12417 archive_cmds=$lt_archive_cmds_CXX
12418 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12419 postinstall_cmds=$lt_postinstall_cmds
12420 postuninstall_cmds=$lt_postuninstall_cmds
12421
12422 # Commands used to build a loadable module (assumed same as above if empty)
12423 module_cmds=$lt_module_cmds_CXX
12424 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12425
12426 # Commands to strip libraries.
12427 old_striplib=$lt_old_striplib
12428 striplib=$lt_striplib
12429
12430 # Dependencies to place before the objects being linked to create a
12431 # shared library.
12432 predep_objects=$lt_predep_objects_CXX
12433
12434 # Dependencies to place after the objects being linked to create a
12435 # shared library.
12436 postdep_objects=$lt_postdep_objects_CXX
12437
12438 # Dependencies to place before the objects being linked to create a
12439 # shared library.
12440 predeps=$lt_predeps_CXX
12441
12442 # Dependencies to place after the objects being linked to create a
12443 # shared library.
12444 postdeps=$lt_postdeps_CXX
12445
12446 # The library search path used internally by the compiler when linking
12447 # a shared library.
12448 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12449
12450 # Method to check whether dependent libraries are shared objects.
12451 deplibs_check_method=$lt_deplibs_check_method
12452
12453 # Command to use when deplibs_check_method == file_magic.
12454 file_magic_cmd=$lt_file_magic_cmd
12455
12456 # Flag that allows shared libraries with undefined symbols to be built.
12457 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12458
12459 # Flag that forces no undefined symbols.
12460 no_undefined_flag=$lt_no_undefined_flag_CXX
12461
12462 # Commands used to finish a libtool library installation in a directory.
12463 finish_cmds=$lt_finish_cmds
12464
12465 # Same as above, but a single script fragment to be evaled but not shown.
12466 finish_eval=$lt_finish_eval
12467
12468 # Take the output of nm and produce a listing of raw symbols and C names.
12469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12470
12471 # Transform the output of nm in a proper C declaration
12472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12473
12474 # Transform the output of nm in a C name address pair
12475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12476
12477 # This is the shared library runtime path variable.
12478 runpath_var=$runpath_var
12479
12480 # This is the shared library path variable.
12481 shlibpath_var=$shlibpath_var
12482
12483 # Is shlibpath searched before the hard-coded library search path?
12484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12485
12486 # How to hardcode a shared library path into an executable.
12487 hardcode_action=$hardcode_action_CXX
12488
12489 # Whether we should hardcode library paths into libraries.
12490 hardcode_into_libs=$hardcode_into_libs
12491
12492 # Flag to hardcode \$libdir into a binary during linking.
12493 # This must work even if \$libdir does not exist.
12494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12495
12496 # If ld is used when linking, flag to hardcode \$libdir into
12497 # a binary during linking. This must work even if \$libdir does
12498 # not exist.
12499 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12500
12501 # Whether we need a single -rpath flag with a separated argument.
12502 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12503
12504 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12505 # resulting binary.
12506 hardcode_direct=$hardcode_direct_CXX
12507
12508 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12509 # resulting binary.
12510 hardcode_minus_L=$hardcode_minus_L_CXX
12511
12512 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12513 # the resulting binary.
12514 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12515
12516 # Set to yes if building a shared library automatically hardcodes DIR into the library
12517 # and all subsequent libraries and executables linked against it.
12518 hardcode_automatic=$hardcode_automatic_CXX
12519
12520 # Variables whose values should be saved in libtool wrapper scripts and
12521 # restored at relink time.
12522 variables_saved_for_relink="$variables_saved_for_relink"
12523
12524 # Whether libtool must link a program against all its dependency libraries.
12525 link_all_deplibs=$link_all_deplibs_CXX
12526
12527 # Compile-time system search path for libraries
12528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12529
12530 # Run-time system search path for libraries
12531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12532
12533 # Fix the shell variable \$srcfile for the compiler.
12534 fix_srcfile_path="$fix_srcfile_path_CXX"
12535
12536 # Set to yes if exported symbols are required.
12537 always_export_symbols=$always_export_symbols_CXX
12538
12539 # The commands to list exported symbols.
12540 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12541
12542 # The commands to extract the exported symbol list from a shared archive.
12543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12544
12545 # Symbols that should not be listed in the preloaded symbols.
12546 exclude_expsyms=$lt_exclude_expsyms_CXX
12547
12548 # Symbols that must always be exported.
12549 include_expsyms=$lt_include_expsyms_CXX
12550
12551 # ### END LIBTOOL TAG CONFIG: $tagname
12552
12553 __EOF__
12554
12555
12556 else
12557   # If there is no Makefile yet, we rely on a make rule to execute
12558   # `config.status --recheck' to rerun these tests and create the
12559   # libtool script then.
12560   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12561   if test -f "$ltmain_in"; then
12562     test -f Makefile && make "$ltmain"
12563   fi
12564 fi
12565
12566
12567 ac_ext=c
12568 ac_cpp='$CPP $CPPFLAGS'
12569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12572
12573 CC=$lt_save_CC
12574 LDCXX=$LD
12575 LD=$lt_save_LD
12576 GCC=$lt_save_GCC
12577 with_gnu_ldcxx=$with_gnu_ld
12578 with_gnu_ld=$lt_save_with_gnu_ld
12579 lt_cv_path_LDCXX=$lt_cv_path_LD
12580 lt_cv_path_LD=$lt_save_path_LD
12581 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12582 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12583
12584         else
12585           tagname=""
12586         fi
12587         ;;
12588
12589       F77)
12590         if test -n "$F77" && test "X$F77" != "Xno"; then
12591
12592 ac_ext=f
12593 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12594 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12596
12597
12598 archive_cmds_need_lc_F77=no
12599 allow_undefined_flag_F77=
12600 always_export_symbols_F77=no
12601 archive_expsym_cmds_F77=
12602 export_dynamic_flag_spec_F77=
12603 hardcode_direct_F77=no
12604 hardcode_libdir_flag_spec_F77=
12605 hardcode_libdir_flag_spec_ld_F77=
12606 hardcode_libdir_separator_F77=
12607 hardcode_minus_L_F77=no
12608 hardcode_automatic_F77=no
12609 module_cmds_F77=
12610 module_expsym_cmds_F77=
12611 link_all_deplibs_F77=unknown
12612 old_archive_cmds_F77=$old_archive_cmds
12613 no_undefined_flag_F77=
12614 whole_archive_flag_spec_F77=
12615 enable_shared_with_static_runtimes_F77=no
12616
12617 # Source file extension for f77 test sources.
12618 ac_ext=f
12619
12620 # Object file extension for compiled f77 test sources.
12621 objext=o
12622 objext_F77=$objext
12623
12624 # Code to be used in simple compile tests
12625 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12626
12627 # Code to be used in simple link tests
12628 lt_simple_link_test_code="      program t\n      end\n"
12629
12630 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12631
12632 # If no C compiler was specified, use CC.
12633 LTCC=${LTCC-"$CC"}
12634
12635 # Allow CC to be a program name with arguments.
12636 compiler=$CC
12637
12638
12639 # Allow CC to be a program name with arguments.
12640 lt_save_CC="$CC"
12641 CC=${F77-"f77"}
12642 compiler=$CC
12643 compiler_F77=$CC
12644 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12645
12646 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12647 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12648 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12649 echo "${ECHO_T}$can_build_shared" >&6
12650
12651 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12653 test "$can_build_shared" = "no" && enable_shared=no
12654
12655 # On AIX, shared libraries and static libraries use the same namespace, and
12656 # are all built from PIC.
12657 case "$host_os" in
12658 aix3*)
12659   test "$enable_shared" = yes && enable_static=no
12660   if test -n "$RANLIB"; then
12661     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662     postinstall_cmds='$RANLIB $lib'
12663   fi
12664   ;;
12665 aix4* | aix5*)
12666   test "$enable_shared" = yes && enable_static=no
12667   ;;
12668 esac
12669 echo "$as_me:$LINENO: result: $enable_shared" >&5
12670 echo "${ECHO_T}$enable_shared" >&6
12671
12672 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12673 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12674 # Make sure either enable_shared or enable_static is yes.
12675 test "$enable_shared" = yes || enable_static=yes
12676 echo "$as_me:$LINENO: result: $enable_static" >&5
12677 echo "${ECHO_T}$enable_static" >&6
12678
12679 test "$ld_shlibs_F77" = no && can_build_shared=no
12680
12681 GCC_F77="$G77"
12682 LD_F77="$LD"
12683
12684 lt_prog_compiler_wl_F77=
12685 lt_prog_compiler_pic_F77=
12686 lt_prog_compiler_static_F77=
12687
12688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12690
12691   if test "$GCC" = yes; then
12692     lt_prog_compiler_wl_F77='-Wl,'
12693     lt_prog_compiler_static_F77='-static'
12694
12695     case $host_os in
12696       aix*)
12697       # All AIX code is PIC.
12698       if test "$host_cpu" = ia64; then
12699         # AIX 5 now supports IA64 processor
12700         lt_prog_compiler_static_F77='-Bstatic'
12701       fi
12702       ;;
12703
12704     amigaos*)
12705       # FIXME: we need at least 68020 code to build shared libraries, but
12706       # adding the `-m68020' flag to GCC prevents building anything better,
12707       # like `-m68040'.
12708       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12709       ;;
12710
12711     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12712       # PIC is the default for these OSes.
12713       ;;
12714
12715     mingw* | pw32* | os2*)
12716       # This hack is so that the source file can tell whether it is being
12717       # built for inclusion in a dll (and should export symbols for example).
12718       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12719       ;;
12720
12721     darwin* | rhapsody*)
12722       # PIC is the default on this platform
12723       # Common symbols not allowed in MH_DYLIB files
12724       lt_prog_compiler_pic_F77='-fno-common'
12725       ;;
12726
12727     msdosdjgpp*)
12728       # Just because we use GCC doesn't mean we suddenly get shared libraries
12729       # on systems that don't support them.
12730       lt_prog_compiler_can_build_shared_F77=no
12731       enable_shared=no
12732       ;;
12733
12734     sysv4*MP*)
12735       if test -d /usr/nec; then
12736         lt_prog_compiler_pic_F77=-Kconform_pic
12737       fi
12738       ;;
12739
12740     hpux*)
12741       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12742       # not for PA HP-UX.
12743       case "$host_cpu" in
12744       hppa*64*|ia64*)
12745         # +Z the default
12746         ;;
12747       *)
12748         lt_prog_compiler_pic_F77='-fPIC'
12749         ;;
12750       esac
12751       ;;
12752
12753     *)
12754       lt_prog_compiler_pic_F77='-fPIC'
12755       ;;
12756     esac
12757   else
12758     # PORTME Check for flag to pass linker flags through the system compiler.
12759     case $host_os in
12760     aix*)
12761       lt_prog_compiler_wl_F77='-Wl,'
12762       if test "$host_cpu" = ia64; then
12763         # AIX 5 now supports IA64 processor
12764         lt_prog_compiler_static_F77='-Bstatic'
12765       else
12766         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12767       fi
12768       ;;
12769
12770     mingw* | pw32* | os2*)
12771       # This hack is so that the source file can tell whether it is being
12772       # built for inclusion in a dll (and should export symbols for example).
12773       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12774       ;;
12775
12776     hpux9* | hpux10* | hpux11*)
12777       lt_prog_compiler_wl_F77='-Wl,'
12778       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12779       # not for PA HP-UX.
12780       case "$host_cpu" in
12781       hppa*64*|ia64*)
12782         # +Z the default
12783         ;;
12784       *)
12785         lt_prog_compiler_pic_F77='+Z'
12786         ;;
12787       esac
12788       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12789       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12790       ;;
12791
12792     irix5* | irix6* | nonstopux*)
12793       lt_prog_compiler_wl_F77='-Wl,'
12794       # PIC (with -KPIC) is the default.
12795       lt_prog_compiler_static_F77='-non_shared'
12796       ;;
12797
12798     newsos6)
12799       lt_prog_compiler_pic_F77='-KPIC'
12800       lt_prog_compiler_static_F77='-Bstatic'
12801       ;;
12802
12803     linux*)
12804       case $CC in
12805       icc* | ecc*)
12806         lt_prog_compiler_wl_F77='-Wl,'
12807         lt_prog_compiler_pic_F77='-KPIC'
12808         lt_prog_compiler_static_F77='-static'
12809         ;;
12810       ccc*)
12811         lt_prog_compiler_wl_F77='-Wl,'
12812         # All Alpha code is PIC.
12813         lt_prog_compiler_static_F77='-non_shared'
12814         ;;
12815       esac
12816       ;;
12817
12818     osf3* | osf4* | osf5*)
12819       lt_prog_compiler_wl_F77='-Wl,'
12820       # All OSF/1 code is PIC.
12821       lt_prog_compiler_static_F77='-non_shared'
12822       ;;
12823
12824     sco3.2v5*)
12825       lt_prog_compiler_pic_F77='-Kpic'
12826       lt_prog_compiler_static_F77='-dn'
12827       ;;
12828
12829     solaris*)
12830       lt_prog_compiler_wl_F77='-Wl,'
12831       lt_prog_compiler_pic_F77='-KPIC'
12832       lt_prog_compiler_static_F77='-Bstatic'
12833       ;;
12834
12835     sunos4*)
12836       lt_prog_compiler_wl_F77='-Qoption ld '
12837       lt_prog_compiler_pic_F77='-PIC'
12838       lt_prog_compiler_static_F77='-Bstatic'
12839       ;;
12840
12841     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12842       lt_prog_compiler_wl_F77='-Wl,'
12843       lt_prog_compiler_pic_F77='-KPIC'
12844       lt_prog_compiler_static_F77='-Bstatic'
12845       ;;
12846
12847     sysv4*MP*)
12848       if test -d /usr/nec ;then
12849         lt_prog_compiler_pic_F77='-Kconform_pic'
12850         lt_prog_compiler_static_F77='-Bstatic'
12851       fi
12852       ;;
12853
12854     uts4*)
12855       lt_prog_compiler_pic_F77='-pic'
12856       lt_prog_compiler_static_F77='-Bstatic'
12857       ;;
12858
12859     *)
12860       lt_prog_compiler_can_build_shared_F77=no
12861       ;;
12862     esac
12863   fi
12864
12865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12866 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12867
12868 #
12869 # Check to make sure the PIC flag actually works.
12870 #
12871 if test -n "$lt_prog_compiler_pic_F77"; then
12872
12873 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12874 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12875 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12876   echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878   lt_prog_compiler_pic_works_F77=no
12879   ac_outfile=conftest.$ac_objext
12880    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12881    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12882    # Insert the option either (1) after the last *FLAGS variable, or
12883    # (2) before a word containing "conftest.", or (3) at the end.
12884    # Note that $ac_compile itself does not contain backslashes and begins
12885    # with a dollar sign (not a hyphen), so the echo should work correctly.
12886    # The option is referenced via a variable to avoid confusing sed.
12887    lt_compile=`echo "$ac_compile" | $SED \
12888    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12890    -e 's:$: $lt_compiler_flag:'`
12891    (eval echo "\"\$as_me:12891: $lt_compile\"" >&5)
12892    (eval "$lt_compile" 2>conftest.err)
12893    ac_status=$?
12894    cat conftest.err >&5
12895    echo "$as_me:12895: \$? = $ac_status" >&5
12896    if (exit $ac_status) && test -s "$ac_outfile"; then
12897      # The compiler can only warn and ignore the option if not recognized
12898      # So say no if there are warnings
12899      if test ! -s conftest.err; then
12900        lt_prog_compiler_pic_works_F77=yes
12901      fi
12902    fi
12903    $rm conftest*
12904
12905 fi
12906 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12907 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12908
12909 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12910     case $lt_prog_compiler_pic_F77 in
12911      "" | " "*) ;;
12912      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12913      esac
12914 else
12915     lt_prog_compiler_pic_F77=
12916      lt_prog_compiler_can_build_shared_F77=no
12917 fi
12918
12919 fi
12920 case "$host_os" in
12921   # For platforms which do not support PIC, -DPIC is meaningless:
12922   *djgpp*)
12923     lt_prog_compiler_pic_F77=
12924     ;;
12925   *)
12926     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12927     ;;
12928 esac
12929
12930 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12932 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   lt_cv_prog_compiler_c_o_F77=no
12936    $rm -r conftest 2>/dev/null
12937    mkdir conftest
12938    cd conftest
12939    mkdir out
12940    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12941
12942    lt_compiler_flag="-o out/conftest2.$ac_objext"
12943    # Insert the option either (1) after the last *FLAGS variable, or
12944    # (2) before a word containing "conftest.", or (3) at the end.
12945    # Note that $ac_compile itself does not contain backslashes and begins
12946    # with a dollar sign (not a hyphen), so the echo should work correctly.
12947    lt_compile=`echo "$ac_compile" | $SED \
12948    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12950    -e 's:$: $lt_compiler_flag:'`
12951    (eval echo "\"\$as_me:12951: $lt_compile\"" >&5)
12952    (eval "$lt_compile" 2>out/conftest.err)
12953    ac_status=$?
12954    cat out/conftest.err >&5
12955    echo "$as_me:12955: \$? = $ac_status" >&5
12956    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12957    then
12958      # The compiler can only warn and ignore the option if not recognized
12959      # So say no if there are warnings
12960      if test ! -s out/conftest.err; then
12961        lt_cv_prog_compiler_c_o_F77=yes
12962      fi
12963    fi
12964    chmod u+w .
12965    $rm conftest*
12966    # SGI C++ compiler will create directory out/ii_files/ for
12967    # template instantiation
12968    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12969    $rm out/* && rmdir out
12970    cd ..
12971    rmdir conftest
12972    $rm conftest*
12973
12974 fi
12975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12977
12978
12979 hard_links="nottested"
12980 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12981   # do not overwrite the value of need_locks provided by the user
12982   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12984   hard_links=yes
12985   $rm conftest*
12986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12987   touch conftest.a
12988   ln conftest.a conftest.b 2>&5 || hard_links=no
12989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12990   echo "$as_me:$LINENO: result: $hard_links" >&5
12991 echo "${ECHO_T}$hard_links" >&6
12992   if test "$hard_links" = no; then
12993     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12995     need_locks=warn
12996   fi
12997 else
12998   need_locks=no
12999 fi
13000
13001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13003
13004   runpath_var=
13005   allow_undefined_flag_F77=
13006   enable_shared_with_static_runtimes_F77=no
13007   archive_cmds_F77=
13008   archive_expsym_cmds_F77=
13009   old_archive_From_new_cmds_F77=
13010   old_archive_from_expsyms_cmds_F77=
13011   export_dynamic_flag_spec_F77=
13012   whole_archive_flag_spec_F77=
13013   thread_safe_flag_spec_F77=
13014   hardcode_libdir_flag_spec_F77=
13015   hardcode_libdir_flag_spec_ld_F77=
13016   hardcode_libdir_separator_F77=
13017   hardcode_direct_F77=no
13018   hardcode_minus_L_F77=no
13019   hardcode_shlibpath_var_F77=unsupported
13020   link_all_deplibs_F77=unknown
13021   hardcode_automatic_F77=no
13022   module_cmds_F77=
13023   module_expsym_cmds_F77=
13024   always_export_symbols_F77=no
13025   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13026   # include_expsyms should be a list of space-separated symbols to be *always*
13027   # included in the symbol list
13028   include_expsyms_F77=
13029   # exclude_expsyms can be an extended regexp of symbols to exclude
13030   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13031   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13032   # as well as any symbol that contains `d'.
13033   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13034   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13035   # platforms (ab)use it in PIC code, but their linkers get confused if
13036   # the symbol is explicitly referenced.  Since portable code cannot
13037   # rely on this symbol name, it's probably fine to never include it in
13038   # preloaded symbol tables.
13039   extract_expsyms_cmds=
13040
13041   case $host_os in
13042   cygwin* | mingw* | pw32*)
13043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13044     # When not using gcc, we currently assume that we are using
13045     # Microsoft Visual C++.
13046     if test "$GCC" != yes; then
13047       with_gnu_ld=no
13048     fi
13049     ;;
13050   openbsd*)
13051     with_gnu_ld=no
13052     ;;
13053   esac
13054
13055   ld_shlibs_F77=yes
13056   if test "$with_gnu_ld" = yes; then
13057     # If archive_cmds runs LD, not CC, wlarc should be empty
13058     wlarc='${wl}'
13059
13060     # See if GNU ld supports shared libraries.
13061     case $host_os in
13062     aix3* | aix4* | aix5*)
13063       # On AIX/PPC, the GNU linker is very broken
13064       if test "$host_cpu" != ia64; then
13065         ld_shlibs_F77=no
13066         cat <<EOF 1>&2
13067
13068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13069 *** to be unable to reliably create shared libraries on AIX.
13070 *** Therefore, libtool is disabling shared libraries support.  If you
13071 *** really care for shared libraries, you may want to modify your PATH
13072 *** so that a non-GNU linker is found, and then restart.
13073
13074 EOF
13075       fi
13076       ;;
13077
13078     amigaos*)
13079       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)'
13080       hardcode_libdir_flag_spec_F77='-L$libdir'
13081       hardcode_minus_L_F77=yes
13082
13083       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13084       # that the semantics of dynamic libraries on AmigaOS, at least up
13085       # to version 4, is to share data among multiple programs linked
13086       # with the same dynamic library.  Since this doesn't match the
13087       # behavior of shared libraries on other platforms, we can't use
13088       # them.
13089       ld_shlibs_F77=no
13090       ;;
13091
13092     beos*)
13093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13094         allow_undefined_flag_F77=unsupported
13095         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13096         # support --undefined.  This deserves some investigation.  FIXME
13097         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098       else
13099         ld_shlibs_F77=no
13100       fi
13101       ;;
13102
13103     cygwin* | mingw* | pw32*)
13104       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13105       # as there is no search path for DLLs.
13106       hardcode_libdir_flag_spec_F77='-L$libdir'
13107       allow_undefined_flag_F77=unsupported
13108       always_export_symbols_F77=no
13109       enable_shared_with_static_runtimes_F77=yes
13110       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13111
13112       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13113         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13114         # If the export-symbols file already is a .def file (1st line
13115         # is EXPORTS), use it as is; otherwise, prepend...
13116         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13117           cp $export_symbols $output_objdir/$soname.def;
13118         else
13119           echo EXPORTS > $output_objdir/$soname.def;
13120           cat $export_symbols >> $output_objdir/$soname.def;
13121         fi~
13122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13123       else
13124         ld_shlibs=no
13125       fi
13126       ;;
13127
13128     netbsd*)
13129       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13130         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13131         wlarc=
13132       else
13133         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13135       fi
13136       ;;
13137
13138     solaris* | sysv5*)
13139       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13140         ld_shlibs_F77=no
13141         cat <<EOF 1>&2
13142
13143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13144 *** create shared libraries on Solaris systems.  Therefore, libtool
13145 *** is disabling shared libraries support.  We urge you to upgrade GNU
13146 *** binutils to release 2.9.1 or newer.  Another option is to modify
13147 *** your PATH or compiler configuration so that the native linker is
13148 *** used, and then restart.
13149
13150 EOF
13151       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13152         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13154       else
13155         ld_shlibs_F77=no
13156       fi
13157       ;;
13158
13159     sunos4*)
13160       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13161       wlarc=
13162       hardcode_direct_F77=yes
13163       hardcode_shlibpath_var_F77=no
13164       ;;
13165
13166   linux*)
13167     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13168         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169         archive_cmds_F77="$tmp_archive_cmds"
13170       supports_anon_versioning=no
13171       case `$LD -v 2>/dev/null` in
13172         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13173         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13174         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13175         *\ 2.11.*) ;; # other 2.11 versions
13176         *) supports_anon_versioning=yes ;;
13177       esac
13178       if test $supports_anon_versioning = yes; then
13179         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13181 $echo "local: *; };" >> $output_objdir/$libname.ver~
13182         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13183       else
13184         archive_expsym_cmds_F77="$tmp_archive_cmds"
13185       fi
13186     else
13187       ld_shlibs_F77=no
13188     fi
13189     ;;
13190
13191     *)
13192       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13193         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13195       else
13196         ld_shlibs_F77=no
13197       fi
13198       ;;
13199     esac
13200
13201     if test "$ld_shlibs_F77" = yes; then
13202       runpath_var=LD_RUN_PATH
13203       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13204       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13205       # ancient GNU ld didn't support --whole-archive et. al.
13206       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13207         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13208       else
13209         whole_archive_flag_spec_F77=
13210       fi
13211     fi
13212   else
13213     # PORTME fill in a description of your system's linker (not GNU ld)
13214     case $host_os in
13215     aix3*)
13216       allow_undefined_flag_F77=unsupported
13217       always_export_symbols_F77=yes
13218       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'
13219       # Note: this linker hardcodes the directories in LIBPATH if there
13220       # are no directories specified by -L.
13221       hardcode_minus_L_F77=yes
13222       if test "$GCC" = yes && test -z "$link_static_flag"; then
13223         # Neither direct hardcoding nor static linking is supported with a
13224         # broken collect2.
13225         hardcode_direct_F77=unsupported
13226       fi
13227       ;;
13228
13229     aix4* | aix5*)
13230       if test "$host_cpu" = ia64; then
13231         # On IA64, the linker does run time linking by default, so we don't
13232         # have to do anything special.
13233         aix_use_runtimelinking=no
13234         exp_sym_flag='-Bexport'
13235         no_entry_flag=""
13236       else
13237         # If we're using GNU nm, then we don't want the "-C" option.
13238         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13239         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13240           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'
13241         else
13242           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'
13243         fi
13244         aix_use_runtimelinking=no
13245
13246         # Test if we are trying to use run time linking or normal
13247         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13248         # need to do runtime linking.
13249         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13250           for ld_flag in $LDFLAGS; do
13251           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13252             aix_use_runtimelinking=yes
13253             break
13254           fi
13255           done
13256         esac
13257
13258         exp_sym_flag='-bexport'
13259         no_entry_flag='-bnoentry'
13260       fi
13261
13262       # When large executables or shared objects are built, AIX ld can
13263       # have problems creating the table of contents.  If linking a library
13264       # or program results in "error TOC overflow" add -mminimal-toc to
13265       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13266       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13267
13268       archive_cmds_F77=''
13269       hardcode_direct_F77=yes
13270       hardcode_libdir_separator_F77=':'
13271       link_all_deplibs_F77=yes
13272
13273       if test "$GCC" = yes; then
13274         case $host_os in aix4.012|aix4.012.*)
13275         # We only want to do this on AIX 4.2 and lower, the check
13276         # below for broken collect2 doesn't work under 4.3+
13277           collect2name=`${CC} -print-prog-name=collect2`
13278           if test -f "$collect2name" && \
13279            strings "$collect2name" | grep resolve_lib_name >/dev/null
13280           then
13281           # We have reworked collect2
13282           hardcode_direct_F77=yes
13283           else
13284           # We have old collect2
13285           hardcode_direct_F77=unsupported
13286           # It fails to find uninstalled libraries when the uninstalled
13287           # path is not listed in the libpath.  Setting hardcode_minus_L
13288           # to unsupported forces relinking
13289           hardcode_minus_L_F77=yes
13290           hardcode_libdir_flag_spec_F77='-L$libdir'
13291           hardcode_libdir_separator_F77=
13292           fi
13293         esac
13294         shared_flag='-shared'
13295       else
13296         # not using gcc
13297         if test "$host_cpu" = ia64; then
13298         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299         # chokes on -Wl,-G. The following line is correct:
13300           shared_flag='-G'
13301         else
13302         if test "$aix_use_runtimelinking" = yes; then
13303             shared_flag='${wl}-G'
13304           else
13305             shared_flag='${wl}-bM:SRE'
13306         fi
13307         fi
13308       fi
13309
13310       # It seems that -bexpall does not export symbols beginning with
13311       # underscore (_), so it is better to generate a list of symbols to export.
13312       always_export_symbols_F77=yes
13313       if test "$aix_use_runtimelinking" = yes; then
13314         # Warning - without using the other runtime loading flags (-brtl),
13315         # -berok will link without error, but may produce a broken library.
13316         allow_undefined_flag_F77='-berok'
13317        # Determine the default libpath from the value encoded in an empty executable.
13318        cat >conftest.$ac_ext <<_ACEOF
13319       program main
13320
13321       end
13322 _ACEOF
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325   (eval $ac_link) 2>conftest.er1
13326   ac_status=$?
13327   grep -v '^ *+' conftest.er1 >conftest.err
13328   rm -f conftest.er1
13329   cat conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } &&
13332          { ac_try='test -z "$ac_f77_werror_flag"
13333                          || test ! -s conftest.err'
13334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335   (eval $ac_try) 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; } &&
13339          { ac_try='test -s conftest$ac_exeext'
13340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341   (eval $ac_try) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; }; then
13345
13346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13347 }'`
13348 # Check for a 64-bit object if we didn't find anything.
13349 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; }
13350 }'`; fi
13351 else
13352   echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355 fi
13356 rm -f conftest.err conftest.$ac_objext \
13357       conftest$ac_exeext conftest.$ac_ext
13358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13359
13360        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13361         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"
13362        else
13363         if test "$host_cpu" = ia64; then
13364           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13365           allow_undefined_flag_F77="-z nodefs"
13366           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"
13367         else
13368          # Determine the default libpath from the value encoded in an empty executable.
13369          cat >conftest.$ac_ext <<_ACEOF
13370       program main
13371
13372       end
13373 _ACEOF
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376   (eval $ac_link) 2>conftest.er1
13377   ac_status=$?
13378   grep -v '^ *+' conftest.er1 >conftest.err
13379   rm -f conftest.er1
13380   cat conftest.err >&5
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); } &&
13383          { ac_try='test -z "$ac_f77_werror_flag"
13384                          || test ! -s conftest.err'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; } &&
13390          { ac_try='test -s conftest$ac_exeext'
13391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392   (eval $ac_try) 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); }; }; then
13396
13397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13398 }'`
13399 # Check for a 64-bit object if we didn't find anything.
13400 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; }
13401 }'`; fi
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 fi
13407 rm -f conftest.err conftest.$ac_objext \
13408       conftest$ac_exeext conftest.$ac_ext
13409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13410
13411          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13412           # Warning - without using the other run time loading flags,
13413           # -berok will link without error, but may produce a broken library.
13414           no_undefined_flag_F77=' ${wl}-bernotok'
13415           allow_undefined_flag_F77=' ${wl}-berok'
13416           # -bexpall does not export symbols beginning with underscore (_)
13417           always_export_symbols_F77=yes
13418           # Exported symbols can be pulled into shared objects from archives
13419           whole_archive_flag_spec_F77=' '
13420           archive_cmds_need_lc_F77=yes
13421           # This is similar to how AIX traditionally builds it's shared libraries.
13422           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'
13423         fi
13424       fi
13425       ;;
13426
13427     amigaos*)
13428       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)'
13429       hardcode_libdir_flag_spec_F77='-L$libdir'
13430       hardcode_minus_L_F77=yes
13431       # see comment about different semantics on the GNU ld section
13432       ld_shlibs_F77=no
13433       ;;
13434
13435     bsdi4*)
13436       export_dynamic_flag_spec_F77=-rdynamic
13437       ;;
13438
13439     cygwin* | mingw* | pw32*)
13440       # When not using gcc, we currently assume that we are using
13441       # Microsoft Visual C++.
13442       # hardcode_libdir_flag_spec is actually meaningless, as there is
13443       # no search path for DLLs.
13444       hardcode_libdir_flag_spec_F77=' '
13445       allow_undefined_flag_F77=unsupported
13446       # Tell ltmain to make .lib files, not .a files.
13447       libext=lib
13448       # Tell ltmain to make .dll files, not .so files.
13449       shrext_cmds=".dll"
13450       # FIXME: Setting linknames here is a bad hack.
13451       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13452       # The linker will automatically build a .lib file if we build a DLL.
13453       old_archive_From_new_cmds_F77='true'
13454       # FIXME: Should let the user specify the lib program.
13455       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13456       fix_srcfile_path='`cygpath -w "$srcfile"`'
13457       enable_shared_with_static_runtimes_F77=yes
13458       ;;
13459
13460     darwin* | rhapsody*)
13461     if test "$GXX" = yes ; then
13462       archive_cmds_need_lc_F77=no
13463       case "$host_os" in
13464       rhapsody* | darwin1.[012])
13465         allow_undefined_flag_F77='-undefined suppress'
13466         ;;
13467       *) # Darwin 1.3 on
13468       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13469         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13470       else
13471         case ${MACOSX_DEPLOYMENT_TARGET} in
13472           10.[012])
13473             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13474             ;;
13475           10.*)
13476             allow_undefined_flag_F77='-undefined dynamic_lookup'
13477             ;;
13478         esac
13479       fi
13480         ;;
13481       esac
13482         lt_int_apple_cc_single_mod=no
13483         output_verbose_link_cmd='echo'
13484         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13485           lt_int_apple_cc_single_mod=yes
13486         fi
13487         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13488           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13489         else
13490         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'
13491       fi
13492       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13493       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13494         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13495           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}'
13496         else
13497           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}'
13498         fi
13499           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13500       hardcode_direct_F77=no
13501       hardcode_automatic_F77=yes
13502       hardcode_shlibpath_var_F77=unsupported
13503       whole_archive_flag_spec_F77='-all_load $convenience'
13504       link_all_deplibs_F77=yes
13505     else
13506       ld_shlibs_F77=no
13507     fi
13508       ;;
13509
13510     dgux*)
13511       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13512       hardcode_libdir_flag_spec_F77='-L$libdir'
13513       hardcode_shlibpath_var_F77=no
13514       ;;
13515
13516     freebsd1*)
13517       ld_shlibs_F77=no
13518       ;;
13519
13520     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13521     # support.  Future versions do this automatically, but an explicit c++rt0.o
13522     # does not break anything, and helps significantly (at the cost of a little
13523     # extra space).
13524     freebsd2.2*)
13525       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13526       hardcode_libdir_flag_spec_F77='-R$libdir'
13527       hardcode_direct_F77=yes
13528       hardcode_shlibpath_var_F77=no
13529       ;;
13530
13531     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13532     freebsd2*)
13533       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13534       hardcode_direct_F77=yes
13535       hardcode_minus_L_F77=yes
13536       hardcode_shlibpath_var_F77=no
13537       ;;
13538
13539     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13540     freebsd* | kfreebsd*-gnu)
13541       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13542       hardcode_libdir_flag_spec_F77='-R$libdir'
13543       hardcode_direct_F77=yes
13544       hardcode_shlibpath_var_F77=no
13545       ;;
13546
13547     hpux9*)
13548       if test "$GCC" = yes; then
13549         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'
13550       else
13551         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'
13552       fi
13553       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13554       hardcode_libdir_separator_F77=:
13555       hardcode_direct_F77=yes
13556
13557       # hardcode_minus_L: Not really in the search PATH,
13558       # but as the default location of the library.
13559       hardcode_minus_L_F77=yes
13560       export_dynamic_flag_spec_F77='${wl}-E'
13561       ;;
13562
13563     hpux10* | hpux11*)
13564       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13565         case "$host_cpu" in
13566         hppa*64*|ia64*)
13567           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13568           ;;
13569         *)
13570           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13571           ;;
13572         esac
13573       else
13574         case "$host_cpu" in
13575         hppa*64*|ia64*)
13576           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13577           ;;
13578         *)
13579           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13580           ;;
13581         esac
13582       fi
13583       if test "$with_gnu_ld" = no; then
13584         case "$host_cpu" in
13585         hppa*64*)
13586           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13587           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13588           hardcode_libdir_separator_F77=:
13589           hardcode_direct_F77=no
13590           hardcode_shlibpath_var_F77=no
13591           ;;
13592         ia64*)
13593           hardcode_libdir_flag_spec_F77='-L$libdir'
13594           hardcode_direct_F77=no
13595           hardcode_shlibpath_var_F77=no
13596
13597           # hardcode_minus_L: Not really in the search PATH,
13598           # but as the default location of the library.
13599           hardcode_minus_L_F77=yes
13600           ;;
13601         *)
13602           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13603           hardcode_libdir_separator_F77=:
13604           hardcode_direct_F77=yes
13605           export_dynamic_flag_spec_F77='${wl}-E'
13606
13607           # hardcode_minus_L: Not really in the search PATH,
13608           # but as the default location of the library.
13609           hardcode_minus_L_F77=yes
13610           ;;
13611         esac
13612       fi
13613       ;;
13614
13615     irix5* | irix6* | nonstopux*)
13616       if test "$GCC" = yes; then
13617         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'
13618       else
13619         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'
13620         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13621       fi
13622       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13623       hardcode_libdir_separator_F77=:
13624       link_all_deplibs_F77=yes
13625       ;;
13626
13627     netbsd*)
13628       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13630       else
13631         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13632       fi
13633       hardcode_libdir_flag_spec_F77='-R$libdir'
13634       hardcode_direct_F77=yes
13635       hardcode_shlibpath_var_F77=no
13636       ;;
13637
13638     newsos6)
13639       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13640       hardcode_direct_F77=yes
13641       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13642       hardcode_libdir_separator_F77=:
13643       hardcode_shlibpath_var_F77=no
13644       ;;
13645
13646     openbsd*)
13647       hardcode_direct_F77=yes
13648       hardcode_shlibpath_var_F77=no
13649       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13650         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13652         export_dynamic_flag_spec_F77='${wl}-E'
13653       else
13654        case $host_os in
13655          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13656            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13657            hardcode_libdir_flag_spec_F77='-R$libdir'
13658            ;;
13659          *)
13660            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13662            ;;
13663        esac
13664       fi
13665       ;;
13666
13667     os2*)
13668       hardcode_libdir_flag_spec_F77='-L$libdir'
13669       hardcode_minus_L_F77=yes
13670       allow_undefined_flag_F77=unsupported
13671       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'
13672       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13673       ;;
13674
13675     osf3*)
13676       if test "$GCC" = yes; then
13677         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13678         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'
13679       else
13680         allow_undefined_flag_F77=' -expect_unresolved \*'
13681         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'
13682       fi
13683       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13684       hardcode_libdir_separator_F77=:
13685       ;;
13686
13687     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13688       if test "$GCC" = yes; then
13689         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13690         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'
13691         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13692       else
13693         allow_undefined_flag_F77=' -expect_unresolved \*'
13694         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'
13695         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~
13696         $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'
13697
13698         # Both c and cxx compiler support -rpath directly
13699         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13700       fi
13701       hardcode_libdir_separator_F77=:
13702       ;;
13703
13704     sco3.2v5*)
13705       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13706       hardcode_shlibpath_var_F77=no
13707       export_dynamic_flag_spec_F77='${wl}-Bexport'
13708       runpath_var=LD_RUN_PATH
13709       hardcode_runpath_var=yes
13710       ;;
13711
13712     solaris*)
13713       no_undefined_flag_F77=' -z text'
13714       if test "$GCC" = yes; then
13715         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13717           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13718       else
13719         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13721         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13722       fi
13723       hardcode_libdir_flag_spec_F77='-R$libdir'
13724       hardcode_shlibpath_var_F77=no
13725       case $host_os in
13726       solaris2.[0-5] | solaris2.[0-5].*) ;;
13727       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13728         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13729       esac
13730       link_all_deplibs_F77=yes
13731       ;;
13732
13733     sunos4*)
13734       if test "x$host_vendor" = xsequent; then
13735         # Use $CC to link under sequent, because it throws in some extra .o
13736         # files that make .init and .fini sections work.
13737         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13738       else
13739         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13740       fi
13741       hardcode_libdir_flag_spec_F77='-L$libdir'
13742       hardcode_direct_F77=yes
13743       hardcode_minus_L_F77=yes
13744       hardcode_shlibpath_var_F77=no
13745       ;;
13746
13747     sysv4)
13748       case $host_vendor in
13749         sni)
13750           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751           hardcode_direct_F77=yes # is this really true???
13752         ;;
13753         siemens)
13754           ## LD is ld it makes a PLAMLIB
13755           ## CC just makes a GrossModule.
13756           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13757           reload_cmds_F77='$CC -r -o $output$reload_objs'
13758           hardcode_direct_F77=no
13759         ;;
13760         motorola)
13761           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13762           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13763         ;;
13764       esac
13765       runpath_var='LD_RUN_PATH'
13766       hardcode_shlibpath_var_F77=no
13767       ;;
13768
13769     sysv4.3*)
13770       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771       hardcode_shlibpath_var_F77=no
13772       export_dynamic_flag_spec_F77='-Bexport'
13773       ;;
13774
13775     sysv4*MP*)
13776       if test -d /usr/nec; then
13777         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778         hardcode_shlibpath_var_F77=no
13779         runpath_var=LD_RUN_PATH
13780         hardcode_runpath_var=yes
13781         ld_shlibs_F77=yes
13782       fi
13783       ;;
13784
13785     sysv4.2uw2*)
13786       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13787       hardcode_direct_F77=yes
13788       hardcode_minus_L_F77=no
13789       hardcode_shlibpath_var_F77=no
13790       hardcode_runpath_var=yes
13791       runpath_var=LD_RUN_PATH
13792       ;;
13793
13794    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13795       no_undefined_flag_F77='${wl}-z ${wl}text'
13796       if test "$GCC" = yes; then
13797         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13798       else
13799         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800       fi
13801       runpath_var='LD_RUN_PATH'
13802       hardcode_shlibpath_var_F77=no
13803       ;;
13804
13805     sysv5*)
13806       no_undefined_flag_F77=' -z text'
13807       # $CC -shared without GNU ld will not create a library from C++
13808       # object files and a static libstdc++, better avoid it by now
13809       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13810       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13811                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13812       hardcode_libdir_flag_spec_F77=
13813       hardcode_shlibpath_var_F77=no
13814       runpath_var='LD_RUN_PATH'
13815       ;;
13816
13817     uts4*)
13818       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819       hardcode_libdir_flag_spec_F77='-L$libdir'
13820       hardcode_shlibpath_var_F77=no
13821       ;;
13822
13823     *)
13824       ld_shlibs_F77=no
13825       ;;
13826     esac
13827   fi
13828
13829 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13830 echo "${ECHO_T}$ld_shlibs_F77" >&6
13831 test "$ld_shlibs_F77" = no && can_build_shared=no
13832
13833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13834 if test "$GCC" = yes; then
13835   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13836 fi
13837
13838 #
13839 # Do we need to explicitly link libc?
13840 #
13841 case "x$archive_cmds_need_lc_F77" in
13842 x|xyes)
13843   # Assume -lc should be added
13844   archive_cmds_need_lc_F77=yes
13845
13846   if test "$enable_shared" = yes && test "$GCC" = yes; then
13847     case $archive_cmds_F77 in
13848     *'~'*)
13849       # FIXME: we may have to deal with multi-command sequences.
13850       ;;
13851     '$CC '*)
13852       # Test whether the compiler implicitly links with -lc since on some
13853       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13854       # to ld, don't add -lc before -lgcc.
13855       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13856 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13857       $rm conftest*
13858       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13859
13860       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13861   (eval $ac_compile) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } 2>conftest.err; then
13865         soname=conftest
13866         lib=conftest
13867         libobjs=conftest.$ac_objext
13868         deplibs=
13869         wl=$lt_prog_compiler_wl_F77
13870         compiler_flags=-v
13871         linker_flags=-v
13872         verstring=
13873         output_objdir=.
13874         libname=conftest
13875         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13876         allow_undefined_flag_F77=
13877         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13878   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }
13882         then
13883           archive_cmds_need_lc_F77=no
13884         else
13885           archive_cmds_need_lc_F77=yes
13886         fi
13887         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13888       else
13889         cat conftest.err 1>&5
13890       fi
13891       $rm conftest*
13892       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13893 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13894       ;;
13895     esac
13896   fi
13897   ;;
13898 esac
13899
13900 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13901 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13902 library_names_spec=
13903 libname_spec='lib$name'
13904 soname_spec=
13905 shrext_cmds=".so"
13906 postinstall_cmds=
13907 postuninstall_cmds=
13908 finish_cmds=
13909 finish_eval=
13910 shlibpath_var=
13911 shlibpath_overrides_runpath=unknown
13912 version_type=none
13913 dynamic_linker="$host_os ld.so"
13914 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13915 if test "$GCC" = yes; then
13916   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13917   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13918     # if the path contains ";" then we assume it to be the separator
13919     # otherwise default to the standard path separator (i.e. ":") - it is
13920     # assumed that no part of a normal pathname contains ";" but that should
13921     # okay in the real world where ";" in dirpaths is itself problematic.
13922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13923   else
13924     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13925   fi
13926 else
13927   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13928 fi
13929 need_lib_prefix=unknown
13930 hardcode_into_libs=no
13931
13932 # when you set need_version to no, make sure it does not cause -set_version
13933 # flags to be left without arguments
13934 need_version=unknown
13935
13936 case $host_os in
13937 aix3*)
13938   version_type=linux
13939   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13940   shlibpath_var=LIBPATH
13941
13942   # AIX 3 has no versioning support, so we append a major version to the name.
13943   soname_spec='${libname}${release}${shared_ext}$major'
13944   ;;
13945
13946 aix4* | aix5*)
13947   version_type=linux
13948   need_lib_prefix=no
13949   need_version=no
13950   hardcode_into_libs=yes
13951   if test "$host_cpu" = ia64; then
13952     # AIX 5 supports IA64
13953     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13954     shlibpath_var=LD_LIBRARY_PATH
13955   else
13956     # With GCC up to 2.95.x, collect2 would create an import file
13957     # for dependence libraries.  The import file would start with
13958     # the line `#! .'.  This would cause the generated library to
13959     # depend on `.', always an invalid library.  This was fixed in
13960     # development snapshots of GCC prior to 3.0.
13961     case $host_os in
13962       aix4 | aix4.[01] | aix4.[01].*)
13963       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13964            echo ' yes '
13965            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13966         :
13967       else
13968         can_build_shared=no
13969       fi
13970       ;;
13971     esac
13972     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13973     # soname into executable. Probably we can add versioning support to
13974     # collect2, so additional links can be useful in future.
13975     if test "$aix_use_runtimelinking" = yes; then
13976       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13977       # instead of lib<name>.a to let people know that these are not
13978       # typical AIX shared libraries.
13979       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980     else
13981       # We preserve .a as extension for shared libraries through AIX4.2
13982       # and later when we are not doing run time linking.
13983       library_names_spec='${libname}${release}.a $libname.a'
13984       soname_spec='${libname}${release}${shared_ext}$major'
13985     fi
13986     shlibpath_var=LIBPATH
13987   fi
13988   ;;
13989
13990 amigaos*)
13991   library_names_spec='$libname.ixlibrary $libname.a'
13992   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13993   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'
13994   ;;
13995
13996 beos*)
13997   library_names_spec='${libname}${shared_ext}'
13998   dynamic_linker="$host_os ld.so"
13999   shlibpath_var=LIBRARY_PATH
14000   ;;
14001
14002 bsdi4*)
14003   version_type=linux
14004   need_version=no
14005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006   soname_spec='${libname}${release}${shared_ext}$major'
14007   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14008   shlibpath_var=LD_LIBRARY_PATH
14009   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14010   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14011   # the default ld.so.conf also contains /usr/contrib/lib and
14012   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14013   # libtool to hard-code these into programs
14014   ;;
14015
14016 cygwin* | mingw* | pw32*)
14017   version_type=windows
14018   shrext_cmds=".dll"
14019   need_version=no
14020   need_lib_prefix=no
14021
14022   case $GCC,$host_os in
14023   yes,cygwin* | yes,mingw* | yes,pw32*)
14024     library_names_spec='$libname.dll.a'
14025     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14026     postinstall_cmds='base_file=`basename \${file}`~
14027       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14028       dldir=$destdir/`dirname \$dlpath`~
14029       test -d \$dldir || mkdir -p \$dldir~
14030       $install_prog $dir/$dlname \$dldir/$dlname'
14031     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14032       dlpath=$dir/\$dldll~
14033        $rm \$dlpath'
14034     shlibpath_overrides_runpath=yes
14035
14036     case $host_os in
14037     cygwin*)
14038       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14039       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14040       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14041       ;;
14042     mingw*)
14043       # MinGW DLLs use traditional 'lib' prefix
14044       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14045       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14046       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14047         # It is most probably a Windows format PATH printed by
14048         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14049         # path with ; separators, and with drive letters. We can handle the
14050         # drive letters (cygwin fileutils understands them), so leave them,
14051         # especially as we might pass files found there to a mingw objdump,
14052         # which wouldn't understand a cygwinified path. Ahh.
14053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14054       else
14055         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14056       fi
14057       ;;
14058     pw32*)
14059       # pw32 DLLs use 'pw' prefix rather than 'lib'
14060       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14061       ;;
14062     esac
14063     ;;
14064
14065   *)
14066     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14067     ;;
14068   esac
14069   dynamic_linker='Win32 ld.exe'
14070   # FIXME: first we should search . and the directory the executable is in
14071   shlibpath_var=PATH
14072   ;;
14073
14074 darwin* | rhapsody*)
14075   dynamic_linker="$host_os dyld"
14076   version_type=darwin
14077   need_lib_prefix=no
14078   need_version=no
14079   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14080   soname_spec='${libname}${release}${major}$shared_ext'
14081   shlibpath_overrides_runpath=yes
14082   shlibpath_var=DYLD_LIBRARY_PATH
14083   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14084   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14085   if test "$GCC" = yes; then
14086     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"`
14087   else
14088     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14089   fi
14090   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14091   ;;
14092
14093 dgux*)
14094   version_type=linux
14095   need_lib_prefix=no
14096   need_version=no
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14098   soname_spec='${libname}${release}${shared_ext}$major'
14099   shlibpath_var=LD_LIBRARY_PATH
14100   ;;
14101
14102 freebsd1*)
14103   dynamic_linker=no
14104   ;;
14105
14106 kfreebsd*-gnu)
14107   version_type=linux
14108   need_lib_prefix=no
14109   need_version=no
14110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14111   soname_spec='${libname}${release}${shared_ext}$major'
14112   shlibpath_var=LD_LIBRARY_PATH
14113   shlibpath_overrides_runpath=no
14114   hardcode_into_libs=yes
14115   dynamic_linker='GNU ld.so'
14116   ;;
14117
14118 freebsd*)
14119   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14120   version_type=freebsd-$objformat
14121   case $version_type in
14122     freebsd-elf*)
14123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14124       need_version=no
14125       need_lib_prefix=no
14126       ;;
14127     freebsd-*)
14128       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14129       need_version=yes
14130       ;;
14131   esac
14132   shlibpath_var=LD_LIBRARY_PATH
14133   case $host_os in
14134   freebsd2*)
14135     shlibpath_overrides_runpath=yes
14136     ;;
14137   freebsd3.01* | freebsdelf3.01*)
14138     shlibpath_overrides_runpath=yes
14139     hardcode_into_libs=yes
14140     ;;
14141   *) # from 3.2 on
14142     shlibpath_overrides_runpath=no
14143     hardcode_into_libs=yes
14144     ;;
14145   esac
14146   ;;
14147
14148 gnu*)
14149   version_type=linux
14150   need_lib_prefix=no
14151   need_version=no
14152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14153   soname_spec='${libname}${release}${shared_ext}$major'
14154   shlibpath_var=LD_LIBRARY_PATH
14155   hardcode_into_libs=yes
14156   ;;
14157
14158 hpux9* | hpux10* | hpux11*)
14159   # Give a soname corresponding to the major version so that dld.sl refuses to
14160   # link against other versions.
14161   version_type=sunos
14162   need_lib_prefix=no
14163   need_version=no
14164   case "$host_cpu" in
14165   ia64*)
14166     shrext_cmds='.so'
14167     hardcode_into_libs=yes
14168     dynamic_linker="$host_os dld.so"
14169     shlibpath_var=LD_LIBRARY_PATH
14170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172     soname_spec='${libname}${release}${shared_ext}$major'
14173     if test "X$HPUX_IA64_MODE" = X32; then
14174       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14175     else
14176       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14177     fi
14178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14179     ;;
14180    hppa*64*)
14181      shrext_cmds='.sl'
14182      hardcode_into_libs=yes
14183      dynamic_linker="$host_os dld.sl"
14184      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14185      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187      soname_spec='${libname}${release}${shared_ext}$major'
14188      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14189      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14190      ;;
14191    *)
14192     shrext_cmds='.sl'
14193     dynamic_linker="$host_os dld.sl"
14194     shlibpath_var=SHLIB_PATH
14195     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197     soname_spec='${libname}${release}${shared_ext}$major'
14198     ;;
14199   esac
14200   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14201   postinstall_cmds='chmod 555 $lib'
14202   ;;
14203
14204 irix5* | irix6* | nonstopux*)
14205   case $host_os in
14206     nonstopux*) version_type=nonstopux ;;
14207     *)
14208         if test "$lt_cv_prog_gnu_ld" = yes; then
14209                 version_type=linux
14210         else
14211                 version_type=irix
14212         fi ;;
14213   esac
14214   need_lib_prefix=no
14215   need_version=no
14216   soname_spec='${libname}${release}${shared_ext}$major'
14217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14218   case $host_os in
14219   irix5* | nonstopux*)
14220     libsuff= shlibsuff=
14221     ;;
14222   *)
14223     case $LD in # libtool.m4 will add one of these switches to LD
14224     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14225       libsuff= shlibsuff= libmagic=32-bit;;
14226     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14227       libsuff=32 shlibsuff=N32 libmagic=N32;;
14228     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14229       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14230     *) libsuff= shlibsuff= libmagic=never-match;;
14231     esac
14232     ;;
14233   esac
14234   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14235   shlibpath_overrides_runpath=no
14236   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14237   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14238   hardcode_into_libs=yes
14239   ;;
14240
14241 # No shared lib support for Linux oldld, aout, or coff.
14242 linux*oldld* | linux*aout* | linux*coff*)
14243   dynamic_linker=no
14244   ;;
14245
14246 # This must be Linux ELF.
14247 linux*)
14248   version_type=linux
14249   need_lib_prefix=no
14250   need_version=no
14251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252   soname_spec='${libname}${release}${shared_ext}$major'
14253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14254   shlibpath_var=LD_LIBRARY_PATH
14255   shlibpath_overrides_runpath=no
14256   # This implies no fast_install, which is unacceptable.
14257   # Some rework will be needed to allow for fast_install
14258   # before this can be enabled.
14259   hardcode_into_libs=yes
14260
14261   # find out which ABI we are using
14262   libsuff=
14263   case "$host_cpu" in
14264   x86_64*|s390x*|powerpc64*)
14265     echo '#line 14265 "configure"' > conftest.$ac_ext
14266     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; then
14271       case `/usr/bin/file conftest.$ac_objext` in
14272       *64-bit*)
14273         libsuff=64
14274         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14275         ;;
14276       esac
14277     fi
14278     rm -rf conftest*
14279     ;;
14280   esac
14281
14282   # Append ld.so.conf contents to the search path
14283   if test -f /etc/ld.so.conf; then
14284     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14285     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14286   fi
14287
14288   # We used to test for /lib/ld.so.1 and disable shared libraries on
14289   # powerpc, because MkLinux only supported shared libraries with the
14290   # GNU dynamic linker.  Since this was broken with cross compilers,
14291   # most powerpc-linux boxes support dynamic linking these days and
14292   # people can always --disable-shared, the test was removed, and we
14293   # assume the GNU/Linux dynamic linker is in use.
14294   dynamic_linker='GNU/Linux ld.so'
14295   ;;
14296
14297 knetbsd*-gnu)
14298   version_type=linux
14299   need_lib_prefix=no
14300   need_version=no
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14302   soname_spec='${libname}${release}${shared_ext}$major'
14303   shlibpath_var=LD_LIBRARY_PATH
14304   shlibpath_overrides_runpath=no
14305   hardcode_into_libs=yes
14306   dynamic_linker='GNU ld.so'
14307   ;;
14308
14309 netbsd*)
14310   version_type=sunos
14311   need_lib_prefix=no
14312   need_version=no
14313   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14315     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14316     dynamic_linker='NetBSD (a.out) ld.so'
14317   else
14318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14319     soname_spec='${libname}${release}${shared_ext}$major'
14320     dynamic_linker='NetBSD ld.elf_so'
14321   fi
14322   shlibpath_var=LD_LIBRARY_PATH
14323   shlibpath_overrides_runpath=yes
14324   hardcode_into_libs=yes
14325   ;;
14326
14327 newsos6)
14328   version_type=linux
14329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330   shlibpath_var=LD_LIBRARY_PATH
14331   shlibpath_overrides_runpath=yes
14332   ;;
14333
14334 nto-qnx*)
14335   version_type=linux
14336   need_lib_prefix=no
14337   need_version=no
14338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339   soname_spec='${libname}${release}${shared_ext}$major'
14340   shlibpath_var=LD_LIBRARY_PATH
14341   shlibpath_overrides_runpath=yes
14342   ;;
14343
14344 openbsd*)
14345   version_type=sunos
14346   need_lib_prefix=no
14347   need_version=yes
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14349   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14350   shlibpath_var=LD_LIBRARY_PATH
14351   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14352     case $host_os in
14353       openbsd2.[89] | openbsd2.[89].*)
14354         shlibpath_overrides_runpath=no
14355         ;;
14356       *)
14357         shlibpath_overrides_runpath=yes
14358         ;;
14359       esac
14360   else
14361     shlibpath_overrides_runpath=yes
14362   fi
14363   ;;
14364
14365 os2*)
14366   libname_spec='$name'
14367   shrext_cmds=".dll"
14368   need_lib_prefix=no
14369   library_names_spec='$libname${shared_ext} $libname.a'
14370   dynamic_linker='OS/2 ld.exe'
14371   shlibpath_var=LIBPATH
14372   ;;
14373
14374 osf3* | osf4* | osf5*)
14375   version_type=osf
14376   need_lib_prefix=no
14377   need_version=no
14378   soname_spec='${libname}${release}${shared_ext}$major'
14379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380   shlibpath_var=LD_LIBRARY_PATH
14381   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14382   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14383   ;;
14384
14385 sco3.2v5*)
14386   version_type=osf
14387   soname_spec='${libname}${release}${shared_ext}$major'
14388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389   shlibpath_var=LD_LIBRARY_PATH
14390   ;;
14391
14392 solaris*)
14393   version_type=linux
14394   need_lib_prefix=no
14395   need_version=no
14396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397   soname_spec='${libname}${release}${shared_ext}$major'
14398   shlibpath_var=LD_LIBRARY_PATH
14399   shlibpath_overrides_runpath=yes
14400   hardcode_into_libs=yes
14401   # ldd complains unless libraries are executable
14402   postinstall_cmds='chmod +x $lib'
14403   ;;
14404
14405 sunos4*)
14406   version_type=sunos
14407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14408   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14409   shlibpath_var=LD_LIBRARY_PATH
14410   shlibpath_overrides_runpath=yes
14411   if test "$with_gnu_ld" = yes; then
14412     need_lib_prefix=no
14413   fi
14414   need_version=yes
14415   ;;
14416
14417 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14418   version_type=linux
14419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420   soname_spec='${libname}${release}${shared_ext}$major'
14421   shlibpath_var=LD_LIBRARY_PATH
14422   case $host_vendor in
14423     sni)
14424       shlibpath_overrides_runpath=no
14425       need_lib_prefix=no
14426       export_dynamic_flag_spec='${wl}-Blargedynsym'
14427       runpath_var=LD_RUN_PATH
14428       ;;
14429     siemens)
14430       need_lib_prefix=no
14431       ;;
14432     motorola)
14433       need_lib_prefix=no
14434       need_version=no
14435       shlibpath_overrides_runpath=no
14436       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14437       ;;
14438   esac
14439   ;;
14440
14441 sysv4*MP*)
14442   if test -d /usr/nec ;then
14443     version_type=linux
14444     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14445     soname_spec='$libname${shared_ext}.$major'
14446     shlibpath_var=LD_LIBRARY_PATH
14447   fi
14448   ;;
14449
14450 uts4*)
14451   version_type=linux
14452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453   soname_spec='${libname}${release}${shared_ext}$major'
14454   shlibpath_var=LD_LIBRARY_PATH
14455   ;;
14456
14457 *)
14458   dynamic_linker=no
14459   ;;
14460 esac
14461 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14462 echo "${ECHO_T}$dynamic_linker" >&6
14463 test "$dynamic_linker" = no && can_build_shared=no
14464
14465 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14466 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14467 hardcode_action_F77=
14468 if test -n "$hardcode_libdir_flag_spec_F77" || \
14469    test -n "$runpath_var F77" || \
14470    test "X$hardcode_automatic_F77"="Xyes" ; then
14471
14472   # We can hardcode non-existant directories.
14473   if test "$hardcode_direct_F77" != no &&
14474      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14475      # have to relink, otherwise we might link with an installed library
14476      # when we should be linking with a yet-to-be-installed one
14477      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14478      test "$hardcode_minus_L_F77" != no; then
14479     # Linking always hardcodes the temporary library directory.
14480     hardcode_action_F77=relink
14481   else
14482     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14483     hardcode_action_F77=immediate
14484   fi
14485 else
14486   # We cannot hardcode anything, or else we can only hardcode existing
14487   # directories.
14488   hardcode_action_F77=unsupported
14489 fi
14490 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14491 echo "${ECHO_T}$hardcode_action_F77" >&6
14492
14493 if test "$hardcode_action_F77" = relink; then
14494   # Fast installation is not supported
14495   enable_fast_install=no
14496 elif test "$shlibpath_overrides_runpath" = yes ||
14497      test "$enable_shared" = no; then
14498   # Fast installation is not necessary
14499   enable_fast_install=needless
14500 fi
14501
14502 striplib=
14503 old_striplib=
14504 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14506 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14507   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14508   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14509   echo "$as_me:$LINENO: result: yes" >&5
14510 echo "${ECHO_T}yes" >&6
14511 else
14512 # FIXME - insert some real tests, host_os isn't really good enough
14513   case $host_os in
14514    darwin*)
14515        if test -n "$STRIP" ; then
14516          striplib="$STRIP -x"
14517          echo "$as_me:$LINENO: result: yes" >&5
14518 echo "${ECHO_T}yes" >&6
14519        else
14520   echo "$as_me:$LINENO: result: no" >&5
14521 echo "${ECHO_T}no" >&6
14522 fi
14523        ;;
14524    *)
14525   echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6
14527     ;;
14528   esac
14529 fi
14530
14531
14532
14533 # The else clause should only fire when bootstrapping the
14534 # libtool distribution, otherwise you forgot to ship ltmain.sh
14535 # with your package, and you will get complaints that there are
14536 # no rules to generate ltmain.sh.
14537 if test -f "$ltmain"; then
14538   # See if we are running on zsh, and set the options which allow our commands through
14539   # without removal of \ escapes.
14540   if test -n "${ZSH_VERSION+set}" ; then
14541     setopt NO_GLOB_SUBST
14542   fi
14543   # Now quote all the things that may contain metacharacters while being
14544   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14545   # variables and quote the copies for generation of the libtool script.
14546   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14547     SED SHELL STRIP \
14548     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14549     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14550     deplibs_check_method reload_flag reload_cmds need_locks \
14551     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14552     lt_cv_sys_global_symbol_to_c_name_address \
14553     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14554     old_postinstall_cmds old_postuninstall_cmds \
14555     compiler_F77 \
14556     CC_F77 \
14557     LD_F77 \
14558     lt_prog_compiler_wl_F77 \
14559     lt_prog_compiler_pic_F77 \
14560     lt_prog_compiler_static_F77 \
14561     lt_prog_compiler_no_builtin_flag_F77 \
14562     export_dynamic_flag_spec_F77 \
14563     thread_safe_flag_spec_F77 \
14564     whole_archive_flag_spec_F77 \
14565     enable_shared_with_static_runtimes_F77 \
14566     old_archive_cmds_F77 \
14567     old_archive_from_new_cmds_F77 \
14568     predep_objects_F77 \
14569     postdep_objects_F77 \
14570     predeps_F77 \
14571     postdeps_F77 \
14572     compiler_lib_search_path_F77 \
14573     archive_cmds_F77 \
14574     archive_expsym_cmds_F77 \
14575     postinstall_cmds_F77 \
14576     postuninstall_cmds_F77 \
14577     old_archive_from_expsyms_cmds_F77 \
14578     allow_undefined_flag_F77 \
14579     no_undefined_flag_F77 \
14580     export_symbols_cmds_F77 \
14581     hardcode_libdir_flag_spec_F77 \
14582     hardcode_libdir_flag_spec_ld_F77 \
14583     hardcode_libdir_separator_F77 \
14584     hardcode_automatic_F77 \
14585     module_cmds_F77 \
14586     module_expsym_cmds_F77 \
14587     lt_cv_prog_compiler_c_o_F77 \
14588     exclude_expsyms_F77 \
14589     include_expsyms_F77; do
14590
14591     case $var in
14592     old_archive_cmds_F77 | \
14593     old_archive_from_new_cmds_F77 | \
14594     archive_cmds_F77 | \
14595     archive_expsym_cmds_F77 | \
14596     module_cmds_F77 | \
14597     module_expsym_cmds_F77 | \
14598     old_archive_from_expsyms_cmds_F77 | \
14599     export_symbols_cmds_F77 | \
14600     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14601     postinstall_cmds | postuninstall_cmds | \
14602     old_postinstall_cmds | old_postuninstall_cmds | \
14603     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14604       # Double-quote double-evaled strings.
14605       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14606       ;;
14607     *)
14608       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14609       ;;
14610     esac
14611   done
14612
14613   case $lt_echo in
14614   *'\$0 --fallback-echo"')
14615     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14616     ;;
14617   esac
14618
14619 cfgfile="$ofile"
14620
14621   cat <<__EOF__ >> "$cfgfile"
14622 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14623
14624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14625
14626 # Shell to use when invoking shell scripts.
14627 SHELL=$lt_SHELL
14628
14629 # Whether or not to build shared libraries.
14630 build_libtool_libs=$enable_shared
14631
14632 # Whether or not to build static libraries.
14633 build_old_libs=$enable_static
14634
14635 # Whether or not to add -lc for building shared libraries.
14636 build_libtool_need_lc=$archive_cmds_need_lc_F77
14637
14638 # Whether or not to disallow shared libs when runtime libs are static
14639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14640
14641 # Whether or not to optimize for fast installation.
14642 fast_install=$enable_fast_install
14643
14644 # The host system.
14645 host_alias=$host_alias
14646 host=$host
14647
14648 # An echo program that does not interpret backslashes.
14649 echo=$lt_echo
14650
14651 # The archiver.
14652 AR=$lt_AR
14653 AR_FLAGS=$lt_AR_FLAGS
14654
14655 # A C compiler.
14656 LTCC=$lt_LTCC
14657
14658 # A language-specific compiler.
14659 CC=$lt_compiler_F77
14660
14661 # Is the compiler the GNU C compiler?
14662 with_gcc=$GCC_F77
14663
14664 # An ERE matcher.
14665 EGREP=$lt_EGREP
14666
14667 # The linker used to build libraries.
14668 LD=$lt_LD_F77
14669
14670 # Whether we need hard or soft links.
14671 LN_S=$lt_LN_S
14672
14673 # A BSD-compatible nm program.
14674 NM=$lt_NM
14675
14676 # A symbol stripping program
14677 STRIP=$lt_STRIP
14678
14679 # Used to examine libraries when file_magic_cmd begins "file"
14680 MAGIC_CMD=$MAGIC_CMD
14681
14682 # Used on cygwin: DLL creation program.
14683 DLLTOOL="$DLLTOOL"
14684
14685 # Used on cygwin: object dumper.
14686 OBJDUMP="$OBJDUMP"
14687
14688 # Used on cygwin: assembler.
14689 AS="$AS"
14690
14691 # The name of the directory that contains temporary libtool files.
14692 objdir=$objdir
14693
14694 # How to create reloadable object files.
14695 reload_flag=$lt_reload_flag
14696 reload_cmds=$lt_reload_cmds
14697
14698 # How to pass a linker flag through the compiler.
14699 wl=$lt_lt_prog_compiler_wl_F77
14700
14701 # Object file suffix (normally "o").
14702 objext="$ac_objext"
14703
14704 # Old archive suffix (normally "a").
14705 libext="$libext"
14706
14707 # Shared library suffix (normally ".so").
14708 shrext_cmds='$shrext_cmds'
14709
14710 # Executable file suffix (normally "").
14711 exeext="$exeext"
14712
14713 # Additional compiler flags for building library objects.
14714 pic_flag=$lt_lt_prog_compiler_pic_F77
14715 pic_mode=$pic_mode
14716
14717 # What is the maximum length of a command?
14718 max_cmd_len=$lt_cv_sys_max_cmd_len
14719
14720 # Does compiler simultaneously support -c and -o options?
14721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14722
14723 # Must we lock files when doing compilation ?
14724 need_locks=$lt_need_locks
14725
14726 # Do we need the lib prefix for modules?
14727 need_lib_prefix=$need_lib_prefix
14728
14729 # Do we need a version for libraries?
14730 need_version=$need_version
14731
14732 # Whether dlopen is supported.
14733 dlopen_support=$enable_dlopen
14734
14735 # Whether dlopen of programs is supported.
14736 dlopen_self=$enable_dlopen_self
14737
14738 # Whether dlopen of statically linked programs is supported.
14739 dlopen_self_static=$enable_dlopen_self_static
14740
14741 # Compiler flag to prevent dynamic linking.
14742 link_static_flag=$lt_lt_prog_compiler_static_F77
14743
14744 # Compiler flag to turn off builtin functions.
14745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14746
14747 # Compiler flag to allow reflexive dlopens.
14748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14749
14750 # Compiler flag to generate shared objects directly from archives.
14751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14752
14753 # Compiler flag to generate thread-safe objects.
14754 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14755
14756 # Library versioning type.
14757 version_type=$version_type
14758
14759 # Format of library name prefix.
14760 libname_spec=$lt_libname_spec
14761
14762 # List of archive names.  First name is the real one, the rest are links.
14763 # The last name is the one that the linker finds with -lNAME.
14764 library_names_spec=$lt_library_names_spec
14765
14766 # The coded name of the library, if different from the real name.
14767 soname_spec=$lt_soname_spec
14768
14769 # Commands used to build and install an old-style archive.
14770 RANLIB=$lt_RANLIB
14771 old_archive_cmds=$lt_old_archive_cmds_F77
14772 old_postinstall_cmds=$lt_old_postinstall_cmds
14773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14774
14775 # Create an old-style archive from a shared archive.
14776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14777
14778 # Create a temporary old-style archive to link instead of a shared archive.
14779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14780
14781 # Commands used to build and install a shared archive.
14782 archive_cmds=$lt_archive_cmds_F77
14783 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14784 postinstall_cmds=$lt_postinstall_cmds
14785 postuninstall_cmds=$lt_postuninstall_cmds
14786
14787 # Commands used to build a loadable module (assumed same as above if empty)
14788 module_cmds=$lt_module_cmds_F77
14789 module_expsym_cmds=$lt_module_expsym_cmds_F77
14790
14791 # Commands to strip libraries.
14792 old_striplib=$lt_old_striplib
14793 striplib=$lt_striplib
14794
14795 # Dependencies to place before the objects being linked to create a
14796 # shared library.
14797 predep_objects=$lt_predep_objects_F77
14798
14799 # Dependencies to place after the objects being linked to create a
14800 # shared library.
14801 postdep_objects=$lt_postdep_objects_F77
14802
14803 # Dependencies to place before the objects being linked to create a
14804 # shared library.
14805 predeps=$lt_predeps_F77
14806
14807 # Dependencies to place after the objects being linked to create a
14808 # shared library.
14809 postdeps=$lt_postdeps_F77
14810
14811 # The library search path used internally by the compiler when linking
14812 # a shared library.
14813 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14814
14815 # Method to check whether dependent libraries are shared objects.
14816 deplibs_check_method=$lt_deplibs_check_method
14817
14818 # Command to use when deplibs_check_method == file_magic.
14819 file_magic_cmd=$lt_file_magic_cmd
14820
14821 # Flag that allows shared libraries with undefined symbols to be built.
14822 allow_undefined_flag=$lt_allow_undefined_flag_F77
14823
14824 # Flag that forces no undefined symbols.
14825 no_undefined_flag=$lt_no_undefined_flag_F77
14826
14827 # Commands used to finish a libtool library installation in a directory.
14828 finish_cmds=$lt_finish_cmds
14829
14830 # Same as above, but a single script fragment to be evaled but not shown.
14831 finish_eval=$lt_finish_eval
14832
14833 # Take the output of nm and produce a listing of raw symbols and C names.
14834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14835
14836 # Transform the output of nm in a proper C declaration
14837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14838
14839 # Transform the output of nm in a C name address pair
14840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14841
14842 # This is the shared library runtime path variable.
14843 runpath_var=$runpath_var
14844
14845 # This is the shared library path variable.
14846 shlibpath_var=$shlibpath_var
14847
14848 # Is shlibpath searched before the hard-coded library search path?
14849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14850
14851 # How to hardcode a shared library path into an executable.
14852 hardcode_action=$hardcode_action_F77
14853
14854 # Whether we should hardcode library paths into libraries.
14855 hardcode_into_libs=$hardcode_into_libs
14856
14857 # Flag to hardcode \$libdir into a binary during linking.
14858 # This must work even if \$libdir does not exist.
14859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14860
14861 # If ld is used when linking, flag to hardcode \$libdir into
14862 # a binary during linking. This must work even if \$libdir does
14863 # not exist.
14864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14865
14866 # Whether we need a single -rpath flag with a separated argument.
14867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14868
14869 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14870 # resulting binary.
14871 hardcode_direct=$hardcode_direct_F77
14872
14873 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14874 # resulting binary.
14875 hardcode_minus_L=$hardcode_minus_L_F77
14876
14877 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14878 # the resulting binary.
14879 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14880
14881 # Set to yes if building a shared library automatically hardcodes DIR into the library
14882 # and all subsequent libraries and executables linked against it.
14883 hardcode_automatic=$hardcode_automatic_F77
14884
14885 # Variables whose values should be saved in libtool wrapper scripts and
14886 # restored at relink time.
14887 variables_saved_for_relink="$variables_saved_for_relink"
14888
14889 # Whether libtool must link a program against all its dependency libraries.
14890 link_all_deplibs=$link_all_deplibs_F77
14891
14892 # Compile-time system search path for libraries
14893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14894
14895 # Run-time system search path for libraries
14896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14897
14898 # Fix the shell variable \$srcfile for the compiler.
14899 fix_srcfile_path="$fix_srcfile_path_F77"
14900
14901 # Set to yes if exported symbols are required.
14902 always_export_symbols=$always_export_symbols_F77
14903
14904 # The commands to list exported symbols.
14905 export_symbols_cmds=$lt_export_symbols_cmds_F77
14906
14907 # The commands to extract the exported symbol list from a shared archive.
14908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14909
14910 # Symbols that should not be listed in the preloaded symbols.
14911 exclude_expsyms=$lt_exclude_expsyms_F77
14912
14913 # Symbols that must always be exported.
14914 include_expsyms=$lt_include_expsyms_F77
14915
14916 # ### END LIBTOOL TAG CONFIG: $tagname
14917
14918 __EOF__
14919
14920
14921 else
14922   # If there is no Makefile yet, we rely on a make rule to execute
14923   # `config.status --recheck' to rerun these tests and create the
14924   # libtool script then.
14925   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14926   if test -f "$ltmain_in"; then
14927     test -f Makefile && make "$ltmain"
14928   fi
14929 fi
14930
14931
14932 ac_ext=c
14933 ac_cpp='$CPP $CPPFLAGS'
14934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14937
14938 CC="$lt_save_CC"
14939
14940         else
14941           tagname=""
14942         fi
14943         ;;
14944
14945       GCJ)
14946         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14947
14948
14949
14950 # Source file extension for Java test sources.
14951 ac_ext=java
14952
14953 # Object file extension for compiled Java test sources.
14954 objext=o
14955 objext_GCJ=$objext
14956
14957 # Code to be used in simple compile tests
14958 lt_simple_compile_test_code="class foo {}\n"
14959
14960 # Code to be used in simple link tests
14961 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14962
14963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14964
14965 # If no C compiler was specified, use CC.
14966 LTCC=${LTCC-"$CC"}
14967
14968 # Allow CC to be a program name with arguments.
14969 compiler=$CC
14970
14971
14972 # Allow CC to be a program name with arguments.
14973 lt_save_CC="$CC"
14974 CC=${GCJ-"gcj"}
14975 compiler=$CC
14976 compiler_GCJ=$CC
14977
14978 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14979 archive_cmds_need_lc_GCJ=no
14980
14981
14982 lt_prog_compiler_no_builtin_flag_GCJ=
14983
14984 if test "$GCC" = yes; then
14985   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14986
14987
14988 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14989 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14990 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   lt_cv_prog_compiler_rtti_exceptions=no
14994   ac_outfile=conftest.$ac_objext
14995    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14996    lt_compiler_flag="-fno-rtti -fno-exceptions"
14997    # Insert the option either (1) after the last *FLAGS variable, or
14998    # (2) before a word containing "conftest.", or (3) at the end.
14999    # Note that $ac_compile itself does not contain backslashes and begins
15000    # with a dollar sign (not a hyphen), so the echo should work correctly.
15001    # The option is referenced via a variable to avoid confusing sed.
15002    lt_compile=`echo "$ac_compile" | $SED \
15003    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15005    -e 's:$: $lt_compiler_flag:'`
15006    (eval echo "\"\$as_me:15006: $lt_compile\"" >&5)
15007    (eval "$lt_compile" 2>conftest.err)
15008    ac_status=$?
15009    cat conftest.err >&5
15010    echo "$as_me:15010: \$? = $ac_status" >&5
15011    if (exit $ac_status) && test -s "$ac_outfile"; then
15012      # The compiler can only warn and ignore the option if not recognized
15013      # So say no if there are warnings
15014      if test ! -s conftest.err; then
15015        lt_cv_prog_compiler_rtti_exceptions=yes
15016      fi
15017    fi
15018    $rm conftest*
15019
15020 fi
15021 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15022 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15023
15024 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15025     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15026 else
15027     :
15028 fi
15029
15030 fi
15031
15032 lt_prog_compiler_wl_GCJ=
15033 lt_prog_compiler_pic_GCJ=
15034 lt_prog_compiler_static_GCJ=
15035
15036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15038
15039   if test "$GCC" = yes; then
15040     lt_prog_compiler_wl_GCJ='-Wl,'
15041     lt_prog_compiler_static_GCJ='-static'
15042
15043     case $host_os in
15044       aix*)
15045       # All AIX code is PIC.
15046       if test "$host_cpu" = ia64; then
15047         # AIX 5 now supports IA64 processor
15048         lt_prog_compiler_static_GCJ='-Bstatic'
15049       fi
15050       ;;
15051
15052     amigaos*)
15053       # FIXME: we need at least 68020 code to build shared libraries, but
15054       # adding the `-m68020' flag to GCC prevents building anything better,
15055       # like `-m68040'.
15056       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15057       ;;
15058
15059     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15060       # PIC is the default for these OSes.
15061       ;;
15062
15063     mingw* | pw32* | os2*)
15064       # This hack is so that the source file can tell whether it is being
15065       # built for inclusion in a dll (and should export symbols for example).
15066       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15067       ;;
15068
15069     darwin* | rhapsody*)
15070       # PIC is the default on this platform
15071       # Common symbols not allowed in MH_DYLIB files
15072       lt_prog_compiler_pic_GCJ='-fno-common'
15073       ;;
15074
15075     msdosdjgpp*)
15076       # Just because we use GCC doesn't mean we suddenly get shared libraries
15077       # on systems that don't support them.
15078       lt_prog_compiler_can_build_shared_GCJ=no
15079       enable_shared=no
15080       ;;
15081
15082     sysv4*MP*)
15083       if test -d /usr/nec; then
15084         lt_prog_compiler_pic_GCJ=-Kconform_pic
15085       fi
15086       ;;
15087
15088     hpux*)
15089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090       # not for PA HP-UX.
15091       case "$host_cpu" in
15092       hppa*64*|ia64*)
15093         # +Z the default
15094         ;;
15095       *)
15096         lt_prog_compiler_pic_GCJ='-fPIC'
15097         ;;
15098       esac
15099       ;;
15100
15101     *)
15102       lt_prog_compiler_pic_GCJ='-fPIC'
15103       ;;
15104     esac
15105   else
15106     # PORTME Check for flag to pass linker flags through the system compiler.
15107     case $host_os in
15108     aix*)
15109       lt_prog_compiler_wl_GCJ='-Wl,'
15110       if test "$host_cpu" = ia64; then
15111         # AIX 5 now supports IA64 processor
15112         lt_prog_compiler_static_GCJ='-Bstatic'
15113       else
15114         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15115       fi
15116       ;;
15117
15118     mingw* | pw32* | os2*)
15119       # This hack is so that the source file can tell whether it is being
15120       # built for inclusion in a dll (and should export symbols for example).
15121       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15122       ;;
15123
15124     hpux9* | hpux10* | hpux11*)
15125       lt_prog_compiler_wl_GCJ='-Wl,'
15126       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15127       # not for PA HP-UX.
15128       case "$host_cpu" in
15129       hppa*64*|ia64*)
15130         # +Z the default
15131         ;;
15132       *)
15133         lt_prog_compiler_pic_GCJ='+Z'
15134         ;;
15135       esac
15136       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15137       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15138       ;;
15139
15140     irix5* | irix6* | nonstopux*)
15141       lt_prog_compiler_wl_GCJ='-Wl,'
15142       # PIC (with -KPIC) is the default.
15143       lt_prog_compiler_static_GCJ='-non_shared'
15144       ;;
15145
15146     newsos6)
15147       lt_prog_compiler_pic_GCJ='-KPIC'
15148       lt_prog_compiler_static_GCJ='-Bstatic'
15149       ;;
15150
15151     linux*)
15152       case $CC in
15153       icc* | ecc*)
15154         lt_prog_compiler_wl_GCJ='-Wl,'
15155         lt_prog_compiler_pic_GCJ='-KPIC'
15156         lt_prog_compiler_static_GCJ='-static'
15157         ;;
15158       ccc*)
15159         lt_prog_compiler_wl_GCJ='-Wl,'
15160         # All Alpha code is PIC.
15161         lt_prog_compiler_static_GCJ='-non_shared'
15162         ;;
15163       esac
15164       ;;
15165
15166     osf3* | osf4* | osf5*)
15167       lt_prog_compiler_wl_GCJ='-Wl,'
15168       # All OSF/1 code is PIC.
15169       lt_prog_compiler_static_GCJ='-non_shared'
15170       ;;
15171
15172     sco3.2v5*)
15173       lt_prog_compiler_pic_GCJ='-Kpic'
15174       lt_prog_compiler_static_GCJ='-dn'
15175       ;;
15176
15177     solaris*)
15178       lt_prog_compiler_wl_GCJ='-Wl,'
15179       lt_prog_compiler_pic_GCJ='-KPIC'
15180       lt_prog_compiler_static_GCJ='-Bstatic'
15181       ;;
15182
15183     sunos4*)
15184       lt_prog_compiler_wl_GCJ='-Qoption ld '
15185       lt_prog_compiler_pic_GCJ='-PIC'
15186       lt_prog_compiler_static_GCJ='-Bstatic'
15187       ;;
15188
15189     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15190       lt_prog_compiler_wl_GCJ='-Wl,'
15191       lt_prog_compiler_pic_GCJ='-KPIC'
15192       lt_prog_compiler_static_GCJ='-Bstatic'
15193       ;;
15194
15195     sysv4*MP*)
15196       if test -d /usr/nec ;then
15197         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15198         lt_prog_compiler_static_GCJ='-Bstatic'
15199       fi
15200       ;;
15201
15202     uts4*)
15203       lt_prog_compiler_pic_GCJ='-pic'
15204       lt_prog_compiler_static_GCJ='-Bstatic'
15205       ;;
15206
15207     *)
15208       lt_prog_compiler_can_build_shared_GCJ=no
15209       ;;
15210     esac
15211   fi
15212
15213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15214 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15215
15216 #
15217 # Check to make sure the PIC flag actually works.
15218 #
15219 if test -n "$lt_prog_compiler_pic_GCJ"; then
15220
15221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15223 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226   lt_prog_compiler_pic_works_GCJ=no
15227   ac_outfile=conftest.$ac_objext
15228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15229    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15230    # Insert the option either (1) after the last *FLAGS variable, or
15231    # (2) before a word containing "conftest.", or (3) at the end.
15232    # Note that $ac_compile itself does not contain backslashes and begins
15233    # with a dollar sign (not a hyphen), so the echo should work correctly.
15234    # The option is referenced via a variable to avoid confusing sed.
15235    lt_compile=`echo "$ac_compile" | $SED \
15236    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15238    -e 's:$: $lt_compiler_flag:'`
15239    (eval echo "\"\$as_me:15239: $lt_compile\"" >&5)
15240    (eval "$lt_compile" 2>conftest.err)
15241    ac_status=$?
15242    cat conftest.err >&5
15243    echo "$as_me:15243: \$? = $ac_status" >&5
15244    if (exit $ac_status) && test -s "$ac_outfile"; then
15245      # The compiler can only warn and ignore the option if not recognized
15246      # So say no if there are warnings
15247      if test ! -s conftest.err; then
15248        lt_prog_compiler_pic_works_GCJ=yes
15249      fi
15250    fi
15251    $rm conftest*
15252
15253 fi
15254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15255 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15256
15257 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15258     case $lt_prog_compiler_pic_GCJ in
15259      "" | " "*) ;;
15260      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15261      esac
15262 else
15263     lt_prog_compiler_pic_GCJ=
15264      lt_prog_compiler_can_build_shared_GCJ=no
15265 fi
15266
15267 fi
15268 case "$host_os" in
15269   # For platforms which do not support PIC, -DPIC is meaningless:
15270   *djgpp*)
15271     lt_prog_compiler_pic_GCJ=
15272     ;;
15273   *)
15274     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15275     ;;
15276 esac
15277
15278 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15280 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283   lt_cv_prog_compiler_c_o_GCJ=no
15284    $rm -r conftest 2>/dev/null
15285    mkdir conftest
15286    cd conftest
15287    mkdir out
15288    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15289
15290    lt_compiler_flag="-o out/conftest2.$ac_objext"
15291    # Insert the option either (1) after the last *FLAGS variable, or
15292    # (2) before a word containing "conftest.", or (3) at the end.
15293    # Note that $ac_compile itself does not contain backslashes and begins
15294    # with a dollar sign (not a hyphen), so the echo should work correctly.
15295    lt_compile=`echo "$ac_compile" | $SED \
15296    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15298    -e 's:$: $lt_compiler_flag:'`
15299    (eval echo "\"\$as_me:15299: $lt_compile\"" >&5)
15300    (eval "$lt_compile" 2>out/conftest.err)
15301    ac_status=$?
15302    cat out/conftest.err >&5
15303    echo "$as_me:15303: \$? = $ac_status" >&5
15304    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15305    then
15306      # The compiler can only warn and ignore the option if not recognized
15307      # So say no if there are warnings
15308      if test ! -s out/conftest.err; then
15309        lt_cv_prog_compiler_c_o_GCJ=yes
15310      fi
15311    fi
15312    chmod u+w .
15313    $rm conftest*
15314    # SGI C++ compiler will create directory out/ii_files/ for
15315    # template instantiation
15316    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15317    $rm out/* && rmdir out
15318    cd ..
15319    rmdir conftest
15320    $rm conftest*
15321
15322 fi
15323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15325
15326
15327 hard_links="nottested"
15328 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15329   # do not overwrite the value of need_locks provided by the user
15330   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15332   hard_links=yes
15333   $rm conftest*
15334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15335   touch conftest.a
15336   ln conftest.a conftest.b 2>&5 || hard_links=no
15337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15338   echo "$as_me:$LINENO: result: $hard_links" >&5
15339 echo "${ECHO_T}$hard_links" >&6
15340   if test "$hard_links" = no; then
15341     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15343     need_locks=warn
15344   fi
15345 else
15346   need_locks=no
15347 fi
15348
15349 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15351
15352   runpath_var=
15353   allow_undefined_flag_GCJ=
15354   enable_shared_with_static_runtimes_GCJ=no
15355   archive_cmds_GCJ=
15356   archive_expsym_cmds_GCJ=
15357   old_archive_From_new_cmds_GCJ=
15358   old_archive_from_expsyms_cmds_GCJ=
15359   export_dynamic_flag_spec_GCJ=
15360   whole_archive_flag_spec_GCJ=
15361   thread_safe_flag_spec_GCJ=
15362   hardcode_libdir_flag_spec_GCJ=
15363   hardcode_libdir_flag_spec_ld_GCJ=
15364   hardcode_libdir_separator_GCJ=
15365   hardcode_direct_GCJ=no
15366   hardcode_minus_L_GCJ=no
15367   hardcode_shlibpath_var_GCJ=unsupported
15368   link_all_deplibs_GCJ=unknown
15369   hardcode_automatic_GCJ=no
15370   module_cmds_GCJ=
15371   module_expsym_cmds_GCJ=
15372   always_export_symbols_GCJ=no
15373   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15374   # include_expsyms should be a list of space-separated symbols to be *always*
15375   # included in the symbol list
15376   include_expsyms_GCJ=
15377   # exclude_expsyms can be an extended regexp of symbols to exclude
15378   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15379   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15380   # as well as any symbol that contains `d'.
15381   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15382   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15383   # platforms (ab)use it in PIC code, but their linkers get confused if
15384   # the symbol is explicitly referenced.  Since portable code cannot
15385   # rely on this symbol name, it's probably fine to never include it in
15386   # preloaded symbol tables.
15387   extract_expsyms_cmds=
15388
15389   case $host_os in
15390   cygwin* | mingw* | pw32*)
15391     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15392     # When not using gcc, we currently assume that we are using
15393     # Microsoft Visual C++.
15394     if test "$GCC" != yes; then
15395       with_gnu_ld=no
15396     fi
15397     ;;
15398   openbsd*)
15399     with_gnu_ld=no
15400     ;;
15401   esac
15402
15403   ld_shlibs_GCJ=yes
15404   if test "$with_gnu_ld" = yes; then
15405     # If archive_cmds runs LD, not CC, wlarc should be empty
15406     wlarc='${wl}'
15407
15408     # See if GNU ld supports shared libraries.
15409     case $host_os in
15410     aix3* | aix4* | aix5*)
15411       # On AIX/PPC, the GNU linker is very broken
15412       if test "$host_cpu" != ia64; then
15413         ld_shlibs_GCJ=no
15414         cat <<EOF 1>&2
15415
15416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15417 *** to be unable to reliably create shared libraries on AIX.
15418 *** Therefore, libtool is disabling shared libraries support.  If you
15419 *** really care for shared libraries, you may want to modify your PATH
15420 *** so that a non-GNU linker is found, and then restart.
15421
15422 EOF
15423       fi
15424       ;;
15425
15426     amigaos*)
15427       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)'
15428       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429       hardcode_minus_L_GCJ=yes
15430
15431       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15432       # that the semantics of dynamic libraries on AmigaOS, at least up
15433       # to version 4, is to share data among multiple programs linked
15434       # with the same dynamic library.  Since this doesn't match the
15435       # behavior of shared libraries on other platforms, we can't use
15436       # them.
15437       ld_shlibs_GCJ=no
15438       ;;
15439
15440     beos*)
15441       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15442         allow_undefined_flag_GCJ=unsupported
15443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15444         # support --undefined.  This deserves some investigation.  FIXME
15445         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15446       else
15447         ld_shlibs_GCJ=no
15448       fi
15449       ;;
15450
15451     cygwin* | mingw* | pw32*)
15452       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15453       # as there is no search path for DLLs.
15454       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15455       allow_undefined_flag_GCJ=unsupported
15456       always_export_symbols_GCJ=no
15457       enable_shared_with_static_runtimes_GCJ=yes
15458       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15459
15460       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15462         # If the export-symbols file already is a .def file (1st line
15463         # is EXPORTS), use it as is; otherwise, prepend...
15464         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15465           cp $export_symbols $output_objdir/$soname.def;
15466         else
15467           echo EXPORTS > $output_objdir/$soname.def;
15468           cat $export_symbols >> $output_objdir/$soname.def;
15469         fi~
15470         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15471       else
15472         ld_shlibs=no
15473       fi
15474       ;;
15475
15476     netbsd*)
15477       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15478         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15479         wlarc=
15480       else
15481         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483       fi
15484       ;;
15485
15486     solaris* | sysv5*)
15487       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15488         ld_shlibs_GCJ=no
15489         cat <<EOF 1>&2
15490
15491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15492 *** create shared libraries on Solaris systems.  Therefore, libtool
15493 *** is disabling shared libraries support.  We urge you to upgrade GNU
15494 *** binutils to release 2.9.1 or newer.  Another option is to modify
15495 *** your PATH or compiler configuration so that the native linker is
15496 *** used, and then restart.
15497
15498 EOF
15499       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15502       else
15503         ld_shlibs_GCJ=no
15504       fi
15505       ;;
15506
15507     sunos4*)
15508       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15509       wlarc=
15510       hardcode_direct_GCJ=yes
15511       hardcode_shlibpath_var_GCJ=no
15512       ;;
15513
15514   linux*)
15515     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15516         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517         archive_cmds_GCJ="$tmp_archive_cmds"
15518       supports_anon_versioning=no
15519       case `$LD -v 2>/dev/null` in
15520         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15521         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15522         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15523         *\ 2.11.*) ;; # other 2.11 versions
15524         *) supports_anon_versioning=yes ;;
15525       esac
15526       if test $supports_anon_versioning = yes; then
15527         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15529 $echo "local: *; };" >> $output_objdir/$libname.ver~
15530         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15531       else
15532         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15533       fi
15534     else
15535       ld_shlibs_GCJ=no
15536     fi
15537     ;;
15538
15539     *)
15540       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15541         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15542         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15543       else
15544         ld_shlibs_GCJ=no
15545       fi
15546       ;;
15547     esac
15548
15549     if test "$ld_shlibs_GCJ" = yes; then
15550       runpath_var=LD_RUN_PATH
15551       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15552       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15553       # ancient GNU ld didn't support --whole-archive et. al.
15554       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15555         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15556       else
15557         whole_archive_flag_spec_GCJ=
15558       fi
15559     fi
15560   else
15561     # PORTME fill in a description of your system's linker (not GNU ld)
15562     case $host_os in
15563     aix3*)
15564       allow_undefined_flag_GCJ=unsupported
15565       always_export_symbols_GCJ=yes
15566       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'
15567       # Note: this linker hardcodes the directories in LIBPATH if there
15568       # are no directories specified by -L.
15569       hardcode_minus_L_GCJ=yes
15570       if test "$GCC" = yes && test -z "$link_static_flag"; then
15571         # Neither direct hardcoding nor static linking is supported with a
15572         # broken collect2.
15573         hardcode_direct_GCJ=unsupported
15574       fi
15575       ;;
15576
15577     aix4* | aix5*)
15578       if test "$host_cpu" = ia64; then
15579         # On IA64, the linker does run time linking by default, so we don't
15580         # have to do anything special.
15581         aix_use_runtimelinking=no
15582         exp_sym_flag='-Bexport'
15583         no_entry_flag=""
15584       else
15585         # If we're using GNU nm, then we don't want the "-C" option.
15586         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15587         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15588           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'
15589         else
15590           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'
15591         fi
15592         aix_use_runtimelinking=no
15593
15594         # Test if we are trying to use run time linking or normal
15595         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15596         # need to do runtime linking.
15597         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15598           for ld_flag in $LDFLAGS; do
15599           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15600             aix_use_runtimelinking=yes
15601             break
15602           fi
15603           done
15604         esac
15605
15606         exp_sym_flag='-bexport'
15607         no_entry_flag='-bnoentry'
15608       fi
15609
15610       # When large executables or shared objects are built, AIX ld can
15611       # have problems creating the table of contents.  If linking a library
15612       # or program results in "error TOC overflow" add -mminimal-toc to
15613       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15614       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15615
15616       archive_cmds_GCJ=''
15617       hardcode_direct_GCJ=yes
15618       hardcode_libdir_separator_GCJ=':'
15619       link_all_deplibs_GCJ=yes
15620
15621       if test "$GCC" = yes; then
15622         case $host_os in aix4.012|aix4.012.*)
15623         # We only want to do this on AIX 4.2 and lower, the check
15624         # below for broken collect2 doesn't work under 4.3+
15625           collect2name=`${CC} -print-prog-name=collect2`
15626           if test -f "$collect2name" && \
15627            strings "$collect2name" | grep resolve_lib_name >/dev/null
15628           then
15629           # We have reworked collect2
15630           hardcode_direct_GCJ=yes
15631           else
15632           # We have old collect2
15633           hardcode_direct_GCJ=unsupported
15634           # It fails to find uninstalled libraries when the uninstalled
15635           # path is not listed in the libpath.  Setting hardcode_minus_L
15636           # to unsupported forces relinking
15637           hardcode_minus_L_GCJ=yes
15638           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15639           hardcode_libdir_separator_GCJ=
15640           fi
15641         esac
15642         shared_flag='-shared'
15643       else
15644         # not using gcc
15645         if test "$host_cpu" = ia64; then
15646         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15647         # chokes on -Wl,-G. The following line is correct:
15648           shared_flag='-G'
15649         else
15650         if test "$aix_use_runtimelinking" = yes; then
15651             shared_flag='${wl}-G'
15652           else
15653             shared_flag='${wl}-bM:SRE'
15654         fi
15655         fi
15656       fi
15657
15658       # It seems that -bexpall does not export symbols beginning with
15659       # underscore (_), so it is better to generate a list of symbols to export.
15660       always_export_symbols_GCJ=yes
15661       if test "$aix_use_runtimelinking" = yes; then
15662         # Warning - without using the other runtime loading flags (-brtl),
15663         # -berok will link without error, but may produce a broken library.
15664         allow_undefined_flag_GCJ='-berok'
15665        # Determine the default libpath from the value encoded in an empty executable.
15666        cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672
15673 int
15674 main ()
15675 {
15676
15677   ;
15678   return 0;
15679 }
15680 _ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15683   (eval $ac_link) 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } &&
15690          { ac_try='test -z "$ac_c_werror_flag"
15691                          || test ! -s conftest.err'
15692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693   (eval $ac_try) 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; } &&
15697          { ac_try='test -s conftest$ac_exeext'
15698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699   (eval $ac_try) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; }; then
15703
15704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15705 }'`
15706 # Check for a 64-bit object if we didn't find anything.
15707 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; }
15708 }'`; fi
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 fi
15714 rm -f conftest.err conftest.$ac_objext \
15715       conftest$ac_exeext conftest.$ac_ext
15716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717
15718        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15719         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"
15720        else
15721         if test "$host_cpu" = ia64; then
15722           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15723           allow_undefined_flag_GCJ="-z nodefs"
15724           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"
15725         else
15726          # Determine the default libpath from the value encoded in an empty executable.
15727          cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h.  */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h.  */
15733
15734 int
15735 main ()
15736 {
15737
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744   (eval $ac_link) 2>conftest.er1
15745   ac_status=$?
15746   grep -v '^ *+' conftest.er1 >conftest.err
15747   rm -f conftest.er1
15748   cat conftest.err >&5
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); } &&
15751          { ac_try='test -z "$ac_c_werror_flag"
15752                          || test ! -s conftest.err'
15753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754   (eval $ac_try) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); }; } &&
15758          { ac_try='test -s conftest$ac_exeext'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764
15765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15766 }'`
15767 # Check for a 64-bit object if we didn't find anything.
15768 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; }
15769 }'`; fi
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 fi
15775 rm -f conftest.err conftest.$ac_objext \
15776       conftest$ac_exeext conftest.$ac_ext
15777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15778
15779          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15780           # Warning - without using the other run time loading flags,
15781           # -berok will link without error, but may produce a broken library.
15782           no_undefined_flag_GCJ=' ${wl}-bernotok'
15783           allow_undefined_flag_GCJ=' ${wl}-berok'
15784           # -bexpall does not export symbols beginning with underscore (_)
15785           always_export_symbols_GCJ=yes
15786           # Exported symbols can be pulled into shared objects from archives
15787           whole_archive_flag_spec_GCJ=' '
15788           archive_cmds_need_lc_GCJ=yes
15789           # This is similar to how AIX traditionally builds it's shared libraries.
15790           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'
15791         fi
15792       fi
15793       ;;
15794
15795     amigaos*)
15796       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)'
15797       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15798       hardcode_minus_L_GCJ=yes
15799       # see comment about different semantics on the GNU ld section
15800       ld_shlibs_GCJ=no
15801       ;;
15802
15803     bsdi4*)
15804       export_dynamic_flag_spec_GCJ=-rdynamic
15805       ;;
15806
15807     cygwin* | mingw* | pw32*)
15808       # When not using gcc, we currently assume that we are using
15809       # Microsoft Visual C++.
15810       # hardcode_libdir_flag_spec is actually meaningless, as there is
15811       # no search path for DLLs.
15812       hardcode_libdir_flag_spec_GCJ=' '
15813       allow_undefined_flag_GCJ=unsupported
15814       # Tell ltmain to make .lib files, not .a files.
15815       libext=lib
15816       # Tell ltmain to make .dll files, not .so files.
15817       shrext_cmds=".dll"
15818       # FIXME: Setting linknames here is a bad hack.
15819       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15820       # The linker will automatically build a .lib file if we build a DLL.
15821       old_archive_From_new_cmds_GCJ='true'
15822       # FIXME: Should let the user specify the lib program.
15823       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15824       fix_srcfile_path='`cygpath -w "$srcfile"`'
15825       enable_shared_with_static_runtimes_GCJ=yes
15826       ;;
15827
15828     darwin* | rhapsody*)
15829     if test "$GXX" = yes ; then
15830       archive_cmds_need_lc_GCJ=no
15831       case "$host_os" in
15832       rhapsody* | darwin1.[012])
15833         allow_undefined_flag_GCJ='-undefined suppress'
15834         ;;
15835       *) # Darwin 1.3 on
15836       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15837         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15838       else
15839         case ${MACOSX_DEPLOYMENT_TARGET} in
15840           10.[012])
15841             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15842             ;;
15843           10.*)
15844             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15845             ;;
15846         esac
15847       fi
15848         ;;
15849       esac
15850         lt_int_apple_cc_single_mod=no
15851         output_verbose_link_cmd='echo'
15852         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15853           lt_int_apple_cc_single_mod=yes
15854         fi
15855         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15856           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15857         else
15858         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'
15859       fi
15860       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15861       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15862         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15863           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}'
15864         else
15865           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}'
15866         fi
15867           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15868       hardcode_direct_GCJ=no
15869       hardcode_automatic_GCJ=yes
15870       hardcode_shlibpath_var_GCJ=unsupported
15871       whole_archive_flag_spec_GCJ='-all_load $convenience'
15872       link_all_deplibs_GCJ=yes
15873     else
15874       ld_shlibs_GCJ=no
15875     fi
15876       ;;
15877
15878     dgux*)
15879       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15880       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15881       hardcode_shlibpath_var_GCJ=no
15882       ;;
15883
15884     freebsd1*)
15885       ld_shlibs_GCJ=no
15886       ;;
15887
15888     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15889     # support.  Future versions do this automatically, but an explicit c++rt0.o
15890     # does not break anything, and helps significantly (at the cost of a little
15891     # extra space).
15892     freebsd2.2*)
15893       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15894       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15895       hardcode_direct_GCJ=yes
15896       hardcode_shlibpath_var_GCJ=no
15897       ;;
15898
15899     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15900     freebsd2*)
15901       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15902       hardcode_direct_GCJ=yes
15903       hardcode_minus_L_GCJ=yes
15904       hardcode_shlibpath_var_GCJ=no
15905       ;;
15906
15907     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15908     freebsd* | kfreebsd*-gnu)
15909       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15910       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15911       hardcode_direct_GCJ=yes
15912       hardcode_shlibpath_var_GCJ=no
15913       ;;
15914
15915     hpux9*)
15916       if test "$GCC" = yes; then
15917         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'
15918       else
15919         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'
15920       fi
15921       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15922       hardcode_libdir_separator_GCJ=:
15923       hardcode_direct_GCJ=yes
15924
15925       # hardcode_minus_L: Not really in the search PATH,
15926       # but as the default location of the library.
15927       hardcode_minus_L_GCJ=yes
15928       export_dynamic_flag_spec_GCJ='${wl}-E'
15929       ;;
15930
15931     hpux10* | hpux11*)
15932       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15933         case "$host_cpu" in
15934         hppa*64*|ia64*)
15935           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15936           ;;
15937         *)
15938           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15939           ;;
15940         esac
15941       else
15942         case "$host_cpu" in
15943         hppa*64*|ia64*)
15944           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15945           ;;
15946         *)
15947           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15948           ;;
15949         esac
15950       fi
15951       if test "$with_gnu_ld" = no; then
15952         case "$host_cpu" in
15953         hppa*64*)
15954           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15955           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15956           hardcode_libdir_separator_GCJ=:
15957           hardcode_direct_GCJ=no
15958           hardcode_shlibpath_var_GCJ=no
15959           ;;
15960         ia64*)
15961           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15962           hardcode_direct_GCJ=no
15963           hardcode_shlibpath_var_GCJ=no
15964
15965           # hardcode_minus_L: Not really in the search PATH,
15966           # but as the default location of the library.
15967           hardcode_minus_L_GCJ=yes
15968           ;;
15969         *)
15970           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15971           hardcode_libdir_separator_GCJ=:
15972           hardcode_direct_GCJ=yes
15973           export_dynamic_flag_spec_GCJ='${wl}-E'
15974
15975           # hardcode_minus_L: Not really in the search PATH,
15976           # but as the default location of the library.
15977           hardcode_minus_L_GCJ=yes
15978           ;;
15979         esac
15980       fi
15981       ;;
15982
15983     irix5* | irix6* | nonstopux*)
15984       if test "$GCC" = yes; then
15985         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'
15986       else
15987         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'
15988         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15989       fi
15990       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15991       hardcode_libdir_separator_GCJ=:
15992       link_all_deplibs_GCJ=yes
15993       ;;
15994
15995     netbsd*)
15996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15997         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15998       else
15999         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16000       fi
16001       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16002       hardcode_direct_GCJ=yes
16003       hardcode_shlibpath_var_GCJ=no
16004       ;;
16005
16006     newsos6)
16007       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008       hardcode_direct_GCJ=yes
16009       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16010       hardcode_libdir_separator_GCJ=:
16011       hardcode_shlibpath_var_GCJ=no
16012       ;;
16013
16014     openbsd*)
16015       hardcode_direct_GCJ=yes
16016       hardcode_shlibpath_var_GCJ=no
16017       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16018         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16019         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16020         export_dynamic_flag_spec_GCJ='${wl}-E'
16021       else
16022        case $host_os in
16023          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16024            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16025            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16026            ;;
16027          *)
16028            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16029            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16030            ;;
16031        esac
16032       fi
16033       ;;
16034
16035     os2*)
16036       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16037       hardcode_minus_L_GCJ=yes
16038       allow_undefined_flag_GCJ=unsupported
16039       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'
16040       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16041       ;;
16042
16043     osf3*)
16044       if test "$GCC" = yes; then
16045         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16046         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'
16047       else
16048         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16049         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'
16050       fi
16051       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16052       hardcode_libdir_separator_GCJ=:
16053       ;;
16054
16055     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16056       if test "$GCC" = yes; then
16057         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16058         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'
16059         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16060       else
16061         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16062         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'
16063         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~
16064         $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'
16065
16066         # Both c and cxx compiler support -rpath directly
16067         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16068       fi
16069       hardcode_libdir_separator_GCJ=:
16070       ;;
16071
16072     sco3.2v5*)
16073       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074       hardcode_shlibpath_var_GCJ=no
16075       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16076       runpath_var=LD_RUN_PATH
16077       hardcode_runpath_var=yes
16078       ;;
16079
16080     solaris*)
16081       no_undefined_flag_GCJ=' -z text'
16082       if test "$GCC" = yes; then
16083         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16084         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16085           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16086       else
16087         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16088         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16090       fi
16091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16092       hardcode_shlibpath_var_GCJ=no
16093       case $host_os in
16094       solaris2.[0-5] | solaris2.[0-5].*) ;;
16095       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16096         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16097       esac
16098       link_all_deplibs_GCJ=yes
16099       ;;
16100
16101     sunos4*)
16102       if test "x$host_vendor" = xsequent; then
16103         # Use $CC to link under sequent, because it throws in some extra .o
16104         # files that make .init and .fini sections work.
16105         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16106       else
16107         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16108       fi
16109       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110       hardcode_direct_GCJ=yes
16111       hardcode_minus_L_GCJ=yes
16112       hardcode_shlibpath_var_GCJ=no
16113       ;;
16114
16115     sysv4)
16116       case $host_vendor in
16117         sni)
16118           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119           hardcode_direct_GCJ=yes # is this really true???
16120         ;;
16121         siemens)
16122           ## LD is ld it makes a PLAMLIB
16123           ## CC just makes a GrossModule.
16124           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16125           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16126           hardcode_direct_GCJ=no
16127         ;;
16128         motorola)
16129           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16131         ;;
16132       esac
16133       runpath_var='LD_RUN_PATH'
16134       hardcode_shlibpath_var_GCJ=no
16135       ;;
16136
16137     sysv4.3*)
16138       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16139       hardcode_shlibpath_var_GCJ=no
16140       export_dynamic_flag_spec_GCJ='-Bexport'
16141       ;;
16142
16143     sysv4*MP*)
16144       if test -d /usr/nec; then
16145         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146         hardcode_shlibpath_var_GCJ=no
16147         runpath_var=LD_RUN_PATH
16148         hardcode_runpath_var=yes
16149         ld_shlibs_GCJ=yes
16150       fi
16151       ;;
16152
16153     sysv4.2uw2*)
16154       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16155       hardcode_direct_GCJ=yes
16156       hardcode_minus_L_GCJ=no
16157       hardcode_shlibpath_var_GCJ=no
16158       hardcode_runpath_var=yes
16159       runpath_var=LD_RUN_PATH
16160       ;;
16161
16162    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16163       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16164       if test "$GCC" = yes; then
16165         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166       else
16167         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168       fi
16169       runpath_var='LD_RUN_PATH'
16170       hardcode_shlibpath_var_GCJ=no
16171       ;;
16172
16173     sysv5*)
16174       no_undefined_flag_GCJ=' -z text'
16175       # $CC -shared without GNU ld will not create a library from C++
16176       # object files and a static libstdc++, better avoid it by now
16177       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16179                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16180       hardcode_libdir_flag_spec_GCJ=
16181       hardcode_shlibpath_var_GCJ=no
16182       runpath_var='LD_RUN_PATH'
16183       ;;
16184
16185     uts4*)
16186       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188       hardcode_shlibpath_var_GCJ=no
16189       ;;
16190
16191     *)
16192       ld_shlibs_GCJ=no
16193       ;;
16194     esac
16195   fi
16196
16197 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16198 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16199 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16200
16201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16202 if test "$GCC" = yes; then
16203   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16204 fi
16205
16206 #
16207 # Do we need to explicitly link libc?
16208 #
16209 case "x$archive_cmds_need_lc_GCJ" in
16210 x|xyes)
16211   # Assume -lc should be added
16212   archive_cmds_need_lc_GCJ=yes
16213
16214   if test "$enable_shared" = yes && test "$GCC" = yes; then
16215     case $archive_cmds_GCJ in
16216     *'~'*)
16217       # FIXME: we may have to deal with multi-command sequences.
16218       ;;
16219     '$CC '*)
16220       # Test whether the compiler implicitly links with -lc since on some
16221       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16222       # to ld, don't add -lc before -lgcc.
16223       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16224 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16225       $rm conftest*
16226       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16227
16228       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229   (eval $ac_compile) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } 2>conftest.err; then
16233         soname=conftest
16234         lib=conftest
16235         libobjs=conftest.$ac_objext
16236         deplibs=
16237         wl=$lt_prog_compiler_wl_GCJ
16238         compiler_flags=-v
16239         linker_flags=-v
16240         verstring=
16241         output_objdir=.
16242         libname=conftest
16243         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16244         allow_undefined_flag_GCJ=
16245         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16246   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }
16250         then
16251           archive_cmds_need_lc_GCJ=no
16252         else
16253           archive_cmds_need_lc_GCJ=yes
16254         fi
16255         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16256       else
16257         cat conftest.err 1>&5
16258       fi
16259       $rm conftest*
16260       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16261 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16262       ;;
16263     esac
16264   fi
16265   ;;
16266 esac
16267
16268 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16269 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16270 library_names_spec=
16271 libname_spec='lib$name'
16272 soname_spec=
16273 shrext_cmds=".so"
16274 postinstall_cmds=
16275 postuninstall_cmds=
16276 finish_cmds=
16277 finish_eval=
16278 shlibpath_var=
16279 shlibpath_overrides_runpath=unknown
16280 version_type=none
16281 dynamic_linker="$host_os ld.so"
16282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16283 if test "$GCC" = yes; then
16284   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16285   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16286     # if the path contains ";" then we assume it to be the separator
16287     # otherwise default to the standard path separator (i.e. ":") - it is
16288     # assumed that no part of a normal pathname contains ";" but that should
16289     # okay in the real world where ";" in dirpaths is itself problematic.
16290     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16291   else
16292     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16293   fi
16294 else
16295   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16296 fi
16297 need_lib_prefix=unknown
16298 hardcode_into_libs=no
16299
16300 # when you set need_version to no, make sure it does not cause -set_version
16301 # flags to be left without arguments
16302 need_version=unknown
16303
16304 case $host_os in
16305 aix3*)
16306   version_type=linux
16307   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16308   shlibpath_var=LIBPATH
16309
16310   # AIX 3 has no versioning support, so we append a major version to the name.
16311   soname_spec='${libname}${release}${shared_ext}$major'
16312   ;;
16313
16314 aix4* | aix5*)
16315   version_type=linux
16316   need_lib_prefix=no
16317   need_version=no
16318   hardcode_into_libs=yes
16319   if test "$host_cpu" = ia64; then
16320     # AIX 5 supports IA64
16321     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16322     shlibpath_var=LD_LIBRARY_PATH
16323   else
16324     # With GCC up to 2.95.x, collect2 would create an import file
16325     # for dependence libraries.  The import file would start with
16326     # the line `#! .'.  This would cause the generated library to
16327     # depend on `.', always an invalid library.  This was fixed in
16328     # development snapshots of GCC prior to 3.0.
16329     case $host_os in
16330       aix4 | aix4.[01] | aix4.[01].*)
16331       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16332            echo ' yes '
16333            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16334         :
16335       else
16336         can_build_shared=no
16337       fi
16338       ;;
16339     esac
16340     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16341     # soname into executable. Probably we can add versioning support to
16342     # collect2, so additional links can be useful in future.
16343     if test "$aix_use_runtimelinking" = yes; then
16344       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16345       # instead of lib<name>.a to let people know that these are not
16346       # typical AIX shared libraries.
16347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348     else
16349       # We preserve .a as extension for shared libraries through AIX4.2
16350       # and later when we are not doing run time linking.
16351       library_names_spec='${libname}${release}.a $libname.a'
16352       soname_spec='${libname}${release}${shared_ext}$major'
16353     fi
16354     shlibpath_var=LIBPATH
16355   fi
16356   ;;
16357
16358 amigaos*)
16359   library_names_spec='$libname.ixlibrary $libname.a'
16360   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16361   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'
16362   ;;
16363
16364 beos*)
16365   library_names_spec='${libname}${shared_ext}'
16366   dynamic_linker="$host_os ld.so"
16367   shlibpath_var=LIBRARY_PATH
16368   ;;
16369
16370 bsdi4*)
16371   version_type=linux
16372   need_version=no
16373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374   soname_spec='${libname}${release}${shared_ext}$major'
16375   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16376   shlibpath_var=LD_LIBRARY_PATH
16377   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16378   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16379   # the default ld.so.conf also contains /usr/contrib/lib and
16380   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16381   # libtool to hard-code these into programs
16382   ;;
16383
16384 cygwin* | mingw* | pw32*)
16385   version_type=windows
16386   shrext_cmds=".dll"
16387   need_version=no
16388   need_lib_prefix=no
16389
16390   case $GCC,$host_os in
16391   yes,cygwin* | yes,mingw* | yes,pw32*)
16392     library_names_spec='$libname.dll.a'
16393     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16394     postinstall_cmds='base_file=`basename \${file}`~
16395       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16396       dldir=$destdir/`dirname \$dlpath`~
16397       test -d \$dldir || mkdir -p \$dldir~
16398       $install_prog $dir/$dlname \$dldir/$dlname'
16399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16400       dlpath=$dir/\$dldll~
16401        $rm \$dlpath'
16402     shlibpath_overrides_runpath=yes
16403
16404     case $host_os in
16405     cygwin*)
16406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16409       ;;
16410     mingw*)
16411       # MinGW DLLs use traditional 'lib' prefix
16412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16413       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16414       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16415         # It is most probably a Windows format PATH printed by
16416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16417         # path with ; separators, and with drive letters. We can handle the
16418         # drive letters (cygwin fileutils understands them), so leave them,
16419         # especially as we might pass files found there to a mingw objdump,
16420         # which wouldn't understand a cygwinified path. Ahh.
16421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16422       else
16423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16424       fi
16425       ;;
16426     pw32*)
16427       # pw32 DLLs use 'pw' prefix rather than 'lib'
16428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16429       ;;
16430     esac
16431     ;;
16432
16433   *)
16434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16435     ;;
16436   esac
16437   dynamic_linker='Win32 ld.exe'
16438   # FIXME: first we should search . and the directory the executable is in
16439   shlibpath_var=PATH
16440   ;;
16441
16442 darwin* | rhapsody*)
16443   dynamic_linker="$host_os dyld"
16444   version_type=darwin
16445   need_lib_prefix=no
16446   need_version=no
16447   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16448   soname_spec='${libname}${release}${major}$shared_ext'
16449   shlibpath_overrides_runpath=yes
16450   shlibpath_var=DYLD_LIBRARY_PATH
16451   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16452   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16453   if test "$GCC" = yes; then
16454     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"`
16455   else
16456     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16457   fi
16458   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16459   ;;
16460
16461 dgux*)
16462   version_type=linux
16463   need_lib_prefix=no
16464   need_version=no
16465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16466   soname_spec='${libname}${release}${shared_ext}$major'
16467   shlibpath_var=LD_LIBRARY_PATH
16468   ;;
16469
16470 freebsd1*)
16471   dynamic_linker=no
16472   ;;
16473
16474 kfreebsd*-gnu)
16475   version_type=linux
16476   need_lib_prefix=no
16477   need_version=no
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16479   soname_spec='${libname}${release}${shared_ext}$major'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   shlibpath_overrides_runpath=no
16482   hardcode_into_libs=yes
16483   dynamic_linker='GNU ld.so'
16484   ;;
16485
16486 freebsd*)
16487   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16488   version_type=freebsd-$objformat
16489   case $version_type in
16490     freebsd-elf*)
16491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16492       need_version=no
16493       need_lib_prefix=no
16494       ;;
16495     freebsd-*)
16496       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16497       need_version=yes
16498       ;;
16499   esac
16500   shlibpath_var=LD_LIBRARY_PATH
16501   case $host_os in
16502   freebsd2*)
16503     shlibpath_overrides_runpath=yes
16504     ;;
16505   freebsd3.01* | freebsdelf3.01*)
16506     shlibpath_overrides_runpath=yes
16507     hardcode_into_libs=yes
16508     ;;
16509   *) # from 3.2 on
16510     shlibpath_overrides_runpath=no
16511     hardcode_into_libs=yes
16512     ;;
16513   esac
16514   ;;
16515
16516 gnu*)
16517   version_type=linux
16518   need_lib_prefix=no
16519   need_version=no
16520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16521   soname_spec='${libname}${release}${shared_ext}$major'
16522   shlibpath_var=LD_LIBRARY_PATH
16523   hardcode_into_libs=yes
16524   ;;
16525
16526 hpux9* | hpux10* | hpux11*)
16527   # Give a soname corresponding to the major version so that dld.sl refuses to
16528   # link against other versions.
16529   version_type=sunos
16530   need_lib_prefix=no
16531   need_version=no
16532   case "$host_cpu" in
16533   ia64*)
16534     shrext_cmds='.so'
16535     hardcode_into_libs=yes
16536     dynamic_linker="$host_os dld.so"
16537     shlibpath_var=LD_LIBRARY_PATH
16538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540     soname_spec='${libname}${release}${shared_ext}$major'
16541     if test "X$HPUX_IA64_MODE" = X32; then
16542       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16543     else
16544       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16545     fi
16546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16547     ;;
16548    hppa*64*)
16549      shrext_cmds='.sl'
16550      hardcode_into_libs=yes
16551      dynamic_linker="$host_os dld.sl"
16552      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16553      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16554      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555      soname_spec='${libname}${release}${shared_ext}$major'
16556      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16557      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16558      ;;
16559    *)
16560     shrext_cmds='.sl'
16561     dynamic_linker="$host_os dld.sl"
16562     shlibpath_var=SHLIB_PATH
16563     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565     soname_spec='${libname}${release}${shared_ext}$major'
16566     ;;
16567   esac
16568   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16569   postinstall_cmds='chmod 555 $lib'
16570   ;;
16571
16572 irix5* | irix6* | nonstopux*)
16573   case $host_os in
16574     nonstopux*) version_type=nonstopux ;;
16575     *)
16576         if test "$lt_cv_prog_gnu_ld" = yes; then
16577                 version_type=linux
16578         else
16579                 version_type=irix
16580         fi ;;
16581   esac
16582   need_lib_prefix=no
16583   need_version=no
16584   soname_spec='${libname}${release}${shared_ext}$major'
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16586   case $host_os in
16587   irix5* | nonstopux*)
16588     libsuff= shlibsuff=
16589     ;;
16590   *)
16591     case $LD in # libtool.m4 will add one of these switches to LD
16592     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16593       libsuff= shlibsuff= libmagic=32-bit;;
16594     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16595       libsuff=32 shlibsuff=N32 libmagic=N32;;
16596     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16597       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16598     *) libsuff= shlibsuff= libmagic=never-match;;
16599     esac
16600     ;;
16601   esac
16602   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16603   shlibpath_overrides_runpath=no
16604   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16605   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16606   hardcode_into_libs=yes
16607   ;;
16608
16609 # No shared lib support for Linux oldld, aout, or coff.
16610 linux*oldld* | linux*aout* | linux*coff*)
16611   dynamic_linker=no
16612   ;;
16613
16614 # This must be Linux ELF.
16615 linux*)
16616   version_type=linux
16617   need_lib_prefix=no
16618   need_version=no
16619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620   soname_spec='${libname}${release}${shared_ext}$major'
16621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16622   shlibpath_var=LD_LIBRARY_PATH
16623   shlibpath_overrides_runpath=no
16624   # This implies no fast_install, which is unacceptable.
16625   # Some rework will be needed to allow for fast_install
16626   # before this can be enabled.
16627   hardcode_into_libs=yes
16628
16629   # find out which ABI we are using
16630   libsuff=
16631   case "$host_cpu" in
16632   x86_64*|s390x*|powerpc64*)
16633     echo '#line 16633 "configure"' > conftest.$ac_ext
16634     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635   (eval $ac_compile) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; then
16639       case `/usr/bin/file conftest.$ac_objext` in
16640       *64-bit*)
16641         libsuff=64
16642         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16643         ;;
16644       esac
16645     fi
16646     rm -rf conftest*
16647     ;;
16648   esac
16649
16650   # Append ld.so.conf contents to the search path
16651   if test -f /etc/ld.so.conf; then
16652     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16653     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16654   fi
16655
16656   # We used to test for /lib/ld.so.1 and disable shared libraries on
16657   # powerpc, because MkLinux only supported shared libraries with the
16658   # GNU dynamic linker.  Since this was broken with cross compilers,
16659   # most powerpc-linux boxes support dynamic linking these days and
16660   # people can always --disable-shared, the test was removed, and we
16661   # assume the GNU/Linux dynamic linker is in use.
16662   dynamic_linker='GNU/Linux ld.so'
16663   ;;
16664
16665 knetbsd*-gnu)
16666   version_type=linux
16667   need_lib_prefix=no
16668   need_version=no
16669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16670   soname_spec='${libname}${release}${shared_ext}$major'
16671   shlibpath_var=LD_LIBRARY_PATH
16672   shlibpath_overrides_runpath=no
16673   hardcode_into_libs=yes
16674   dynamic_linker='GNU ld.so'
16675   ;;
16676
16677 netbsd*)
16678   version_type=sunos
16679   need_lib_prefix=no
16680   need_version=no
16681   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16683     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16684     dynamic_linker='NetBSD (a.out) ld.so'
16685   else
16686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16687     soname_spec='${libname}${release}${shared_ext}$major'
16688     dynamic_linker='NetBSD ld.elf_so'
16689   fi
16690   shlibpath_var=LD_LIBRARY_PATH
16691   shlibpath_overrides_runpath=yes
16692   hardcode_into_libs=yes
16693   ;;
16694
16695 newsos6)
16696   version_type=linux
16697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698   shlibpath_var=LD_LIBRARY_PATH
16699   shlibpath_overrides_runpath=yes
16700   ;;
16701
16702 nto-qnx*)
16703   version_type=linux
16704   need_lib_prefix=no
16705   need_version=no
16706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707   soname_spec='${libname}${release}${shared_ext}$major'
16708   shlibpath_var=LD_LIBRARY_PATH
16709   shlibpath_overrides_runpath=yes
16710   ;;
16711
16712 openbsd*)
16713   version_type=sunos
16714   need_lib_prefix=no
16715   need_version=yes
16716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16717   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16718   shlibpath_var=LD_LIBRARY_PATH
16719   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16720     case $host_os in
16721       openbsd2.[89] | openbsd2.[89].*)
16722         shlibpath_overrides_runpath=no
16723         ;;
16724       *)
16725         shlibpath_overrides_runpath=yes
16726         ;;
16727       esac
16728   else
16729     shlibpath_overrides_runpath=yes
16730   fi
16731   ;;
16732
16733 os2*)
16734   libname_spec='$name'
16735   shrext_cmds=".dll"
16736   need_lib_prefix=no
16737   library_names_spec='$libname${shared_ext} $libname.a'
16738   dynamic_linker='OS/2 ld.exe'
16739   shlibpath_var=LIBPATH
16740   ;;
16741
16742 osf3* | osf4* | osf5*)
16743   version_type=osf
16744   need_lib_prefix=no
16745   need_version=no
16746   soname_spec='${libname}${release}${shared_ext}$major'
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748   shlibpath_var=LD_LIBRARY_PATH
16749   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16750   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16751   ;;
16752
16753 sco3.2v5*)
16754   version_type=osf
16755   soname_spec='${libname}${release}${shared_ext}$major'
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757   shlibpath_var=LD_LIBRARY_PATH
16758   ;;
16759
16760 solaris*)
16761   version_type=linux
16762   need_lib_prefix=no
16763   need_version=no
16764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765   soname_spec='${libname}${release}${shared_ext}$major'
16766   shlibpath_var=LD_LIBRARY_PATH
16767   shlibpath_overrides_runpath=yes
16768   hardcode_into_libs=yes
16769   # ldd complains unless libraries are executable
16770   postinstall_cmds='chmod +x $lib'
16771   ;;
16772
16773 sunos4*)
16774   version_type=sunos
16775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16777   shlibpath_var=LD_LIBRARY_PATH
16778   shlibpath_overrides_runpath=yes
16779   if test "$with_gnu_ld" = yes; then
16780     need_lib_prefix=no
16781   fi
16782   need_version=yes
16783   ;;
16784
16785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16786   version_type=linux
16787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   shlibpath_var=LD_LIBRARY_PATH
16790   case $host_vendor in
16791     sni)
16792       shlibpath_overrides_runpath=no
16793       need_lib_prefix=no
16794       export_dynamic_flag_spec='${wl}-Blargedynsym'
16795       runpath_var=LD_RUN_PATH
16796       ;;
16797     siemens)
16798       need_lib_prefix=no
16799       ;;
16800     motorola)
16801       need_lib_prefix=no
16802       need_version=no
16803       shlibpath_overrides_runpath=no
16804       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16805       ;;
16806   esac
16807   ;;
16808
16809 sysv4*MP*)
16810   if test -d /usr/nec ;then
16811     version_type=linux
16812     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16813     soname_spec='$libname${shared_ext}.$major'
16814     shlibpath_var=LD_LIBRARY_PATH
16815   fi
16816   ;;
16817
16818 uts4*)
16819   version_type=linux
16820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821   soname_spec='${libname}${release}${shared_ext}$major'
16822   shlibpath_var=LD_LIBRARY_PATH
16823   ;;
16824
16825 *)
16826   dynamic_linker=no
16827   ;;
16828 esac
16829 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16830 echo "${ECHO_T}$dynamic_linker" >&6
16831 test "$dynamic_linker" = no && can_build_shared=no
16832
16833 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16835 hardcode_action_GCJ=
16836 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16837    test -n "$runpath_var GCJ" || \
16838    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16839
16840   # We can hardcode non-existant directories.
16841   if test "$hardcode_direct_GCJ" != no &&
16842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16843      # have to relink, otherwise we might link with an installed library
16844      # when we should be linking with a yet-to-be-installed one
16845      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16846      test "$hardcode_minus_L_GCJ" != no; then
16847     # Linking always hardcodes the temporary library directory.
16848     hardcode_action_GCJ=relink
16849   else
16850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16851     hardcode_action_GCJ=immediate
16852   fi
16853 else
16854   # We cannot hardcode anything, or else we can only hardcode existing
16855   # directories.
16856   hardcode_action_GCJ=unsupported
16857 fi
16858 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16859 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16860
16861 if test "$hardcode_action_GCJ" = relink; then
16862   # Fast installation is not supported
16863   enable_fast_install=no
16864 elif test "$shlibpath_overrides_runpath" = yes ||
16865      test "$enable_shared" = no; then
16866   # Fast installation is not necessary
16867   enable_fast_install=needless
16868 fi
16869
16870 striplib=
16871 old_striplib=
16872 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16875   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16876   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16877   echo "$as_me:$LINENO: result: yes" >&5
16878 echo "${ECHO_T}yes" >&6
16879 else
16880 # FIXME - insert some real tests, host_os isn't really good enough
16881   case $host_os in
16882    darwin*)
16883        if test -n "$STRIP" ; then
16884          striplib="$STRIP -x"
16885          echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6
16887        else
16888   echo "$as_me:$LINENO: result: no" >&5
16889 echo "${ECHO_T}no" >&6
16890 fi
16891        ;;
16892    *)
16893   echo "$as_me:$LINENO: result: no" >&5
16894 echo "${ECHO_T}no" >&6
16895     ;;
16896   esac
16897 fi
16898
16899 if test "x$enable_dlopen" != xyes; then
16900   enable_dlopen=unknown
16901   enable_dlopen_self=unknown
16902   enable_dlopen_self_static=unknown
16903 else
16904   lt_cv_dlopen=no
16905   lt_cv_dlopen_libs=
16906
16907   case $host_os in
16908   beos*)
16909     lt_cv_dlopen="load_add_on"
16910     lt_cv_dlopen_libs=
16911     lt_cv_dlopen_self=yes
16912     ;;
16913
16914   mingw* | pw32*)
16915     lt_cv_dlopen="LoadLibrary"
16916     lt_cv_dlopen_libs=
16917    ;;
16918
16919   cygwin*)
16920     lt_cv_dlopen="dlopen"
16921     lt_cv_dlopen_libs=
16922    ;;
16923
16924   darwin*)
16925   # if libdl is installed we need to link against it
16926     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16927 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-ldl  $LIBS"
16933 cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h.  */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h.  */
16939
16940 /* Override any gcc2 internal prototype to avoid an error.  */
16941 #ifdef __cplusplus
16942 extern "C"
16943 #endif
16944 /* We use char because int might match the return type of a gcc2
16945    builtin and then its argument prototype would still apply.  */
16946 char dlopen ();
16947 int
16948 main ()
16949 {
16950 dlopen ();
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957   (eval $ac_link) 2>conftest.er1
16958   ac_status=$?
16959   grep -v '^ *+' conftest.er1 >conftest.err
16960   rm -f conftest.er1
16961   cat conftest.err >&5
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } &&
16964          { ac_try='test -z "$ac_c_werror_flag"
16965                          || test ! -s conftest.err'
16966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967   (eval $ac_try) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }; } &&
16971          { ac_try='test -s conftest$ac_exeext'
16972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973   (eval $ac_try) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; }; then
16977   ac_cv_lib_dl_dlopen=yes
16978 else
16979   echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16981
16982 ac_cv_lib_dl_dlopen=no
16983 fi
16984 rm -f conftest.err conftest.$ac_objext \
16985       conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16987 fi
16988 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16990 if test $ac_cv_lib_dl_dlopen = yes; then
16991   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16992 else
16993
16994     lt_cv_dlopen="dyld"
16995     lt_cv_dlopen_libs=
16996     lt_cv_dlopen_self=yes
16997
16998 fi
16999
17000    ;;
17001
17002   *)
17003     echo "$as_me:$LINENO: checking for shl_load" >&5
17004 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17005 if test "${ac_cv_func_shl_load+set}" = set; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008   cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h.  */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h.  */
17014 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17016 #define shl_load innocuous_shl_load
17017
17018 /* System header to define __stub macros and hopefully few prototypes,
17019     which can conflict with char shl_load (); below.
17020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021     <limits.h> exists even on freestanding compilers.  */
17022
17023 #ifdef __STDC__
17024 # include <limits.h>
17025 #else
17026 # include <assert.h>
17027 #endif
17028
17029 #undef shl_load
17030
17031 /* Override any gcc2 internal prototype to avoid an error.  */
17032 #ifdef __cplusplus
17033 extern "C"
17034 {
17035 #endif
17036 /* We use char because int might match the return type of a gcc2
17037    builtin and then its argument prototype would still apply.  */
17038 char shl_load ();
17039 /* The GNU C library defines this for functions which it implements
17040     to always fail with ENOSYS.  Some functions are actually named
17041     something starting with __ and the normal name is an alias.  */
17042 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17043 choke me
17044 #else
17045 char (*f) () = shl_load;
17046 #endif
17047 #ifdef __cplusplus
17048 }
17049 #endif
17050
17051 int
17052 main ()
17053 {
17054 return f != shl_load;
17055   ;
17056   return 0;
17057 }
17058 _ACEOF
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061   (eval $ac_link) 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } &&
17068          { ac_try='test -z "$ac_c_werror_flag"
17069                          || test ! -s conftest.err'
17070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071   (eval $ac_try) 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); }; } &&
17075          { ac_try='test -s conftest$ac_exeext'
17076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077   (eval $ac_try) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; }; then
17081   ac_cv_func_shl_load=yes
17082 else
17083   echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086 ac_cv_func_shl_load=no
17087 fi
17088 rm -f conftest.err conftest.$ac_objext \
17089       conftest$ac_exeext conftest.$ac_ext
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17092 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17093 if test $ac_cv_func_shl_load = yes; then
17094   lt_cv_dlopen="shl_load"
17095 else
17096   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17097 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17098 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17099   echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101   ac_check_lib_save_LIBS=$LIBS
17102 LIBS="-ldld  $LIBS"
17103 cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109
17110 /* Override any gcc2 internal prototype to avoid an error.  */
17111 #ifdef __cplusplus
17112 extern "C"
17113 #endif
17114 /* We use char because int might match the return type of a gcc2
17115    builtin and then its argument prototype would still apply.  */
17116 char shl_load ();
17117 int
17118 main ()
17119 {
17120 shl_load ();
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127   (eval $ac_link) 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_c_werror_flag"
17135                          || test ! -s conftest.err'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; } &&
17141          { ac_try='test -s conftest$ac_exeext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_lib_dld_shl_load=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 ac_cv_lib_dld_shl_load=no
17153 fi
17154 rm -f conftest.err conftest.$ac_objext \
17155       conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17157 fi
17158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17160 if test $ac_cv_lib_dld_shl_load = yes; then
17161   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17162 else
17163   echo "$as_me:$LINENO: checking for dlopen" >&5
17164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17165 if test "${ac_cv_func_dlopen+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17176 #define dlopen innocuous_dlopen
17177
17178 /* System header to define __stub macros and hopefully few prototypes,
17179     which can conflict with char dlopen (); below.
17180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181     <limits.h> exists even on freestanding compilers.  */
17182
17183 #ifdef __STDC__
17184 # include <limits.h>
17185 #else
17186 # include <assert.h>
17187 #endif
17188
17189 #undef dlopen
17190
17191 /* Override any gcc2 internal prototype to avoid an error.  */
17192 #ifdef __cplusplus
17193 extern "C"
17194 {
17195 #endif
17196 /* We use char because int might match the return type of a gcc2
17197    builtin and then its argument prototype would still apply.  */
17198 char dlopen ();
17199 /* The GNU C library defines this for functions which it implements
17200     to always fail with ENOSYS.  Some functions are actually named
17201     something starting with __ and the normal name is an alias.  */
17202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17203 choke me
17204 #else
17205 char (*f) () = dlopen;
17206 #endif
17207 #ifdef __cplusplus
17208 }
17209 #endif
17210
17211 int
17212 main ()
17213 {
17214 return f != dlopen;
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221   (eval $ac_link) 2>conftest.er1
17222   ac_status=$?
17223   grep -v '^ *+' conftest.er1 >conftest.err
17224   rm -f conftest.er1
17225   cat conftest.err >&5
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } &&
17228          { ac_try='test -z "$ac_c_werror_flag"
17229                          || test ! -s conftest.err'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   ac_cv_func_dlopen=yes
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ac_cv_func_dlopen=no
17247 fi
17248 rm -f conftest.err conftest.$ac_objext \
17249       conftest$ac_exeext conftest.$ac_ext
17250 fi
17251 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17252 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17253 if test $ac_cv_func_dlopen = yes; then
17254   lt_cv_dlopen="dlopen"
17255 else
17256   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17259   echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261   ac_check_lib_save_LIBS=$LIBS
17262 LIBS="-ldl  $LIBS"
17263 cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269
17270 /* Override any gcc2 internal prototype to avoid an error.  */
17271 #ifdef __cplusplus
17272 extern "C"
17273 #endif
17274 /* We use char because int might match the return type of a gcc2
17275    builtin and then its argument prototype would still apply.  */
17276 char dlopen ();
17277 int
17278 main ()
17279 {
17280 dlopen ();
17281   ;
17282   return 0;
17283 }
17284 _ACEOF
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287   (eval $ac_link) 2>conftest.er1
17288   ac_status=$?
17289   grep -v '^ *+' conftest.er1 >conftest.err
17290   rm -f conftest.er1
17291   cat conftest.err >&5
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -z "$ac_c_werror_flag"
17295                          || test ! -s conftest.err'
17296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297   (eval $ac_try) 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); }; } &&
17301          { ac_try='test -s conftest$ac_exeext'
17302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303   (eval $ac_try) 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; }; then
17307   ac_cv_lib_dl_dlopen=yes
17308 else
17309   echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_cv_lib_dl_dlopen=no
17313 fi
17314 rm -f conftest.err conftest.$ac_objext \
17315       conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17317 fi
17318 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17320 if test $ac_cv_lib_dl_dlopen = yes; then
17321   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17322 else
17323   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17324 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17325 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   ac_check_lib_save_LIBS=$LIBS
17329 LIBS="-lsvld  $LIBS"
17330 cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336
17337 /* Override any gcc2 internal prototype to avoid an error.  */
17338 #ifdef __cplusplus
17339 extern "C"
17340 #endif
17341 /* We use char because int might match the return type of a gcc2
17342    builtin and then its argument prototype would still apply.  */
17343 char dlopen ();
17344 int
17345 main ()
17346 {
17347 dlopen ();
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17354   (eval $ac_link) 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -z "$ac_c_werror_flag"
17362                          || test ! -s conftest.err'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; } &&
17368          { ac_try='test -s conftest$ac_exeext'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; }; then
17374   ac_cv_lib_svld_dlopen=yes
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 ac_cv_lib_svld_dlopen=no
17380 fi
17381 rm -f conftest.err conftest.$ac_objext \
17382       conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17384 fi
17385 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17386 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17387 if test $ac_cv_lib_svld_dlopen = yes; then
17388   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17389 else
17390   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17391 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17392 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17393   echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395   ac_check_lib_save_LIBS=$LIBS
17396 LIBS="-ldld  $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403
17404 /* Override any gcc2 internal prototype to avoid an error.  */
17405 #ifdef __cplusplus
17406 extern "C"
17407 #endif
17408 /* We use char because int might match the return type of a gcc2
17409    builtin and then its argument prototype would still apply.  */
17410 char dld_link ();
17411 int
17412 main ()
17413 {
17414 dld_link ();
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421   (eval $ac_link) 2>conftest.er1
17422   ac_status=$?
17423   grep -v '^ *+' conftest.er1 >conftest.err
17424   rm -f conftest.er1
17425   cat conftest.err >&5
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); } &&
17428          { ac_try='test -z "$ac_c_werror_flag"
17429                          || test ! -s conftest.err'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437   (eval $ac_try) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; }; then
17441   ac_cv_lib_dld_dld_link=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 ac_cv_lib_dld_dld_link=no
17447 fi
17448 rm -f conftest.err conftest.$ac_objext \
17449       conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17451 fi
17452 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17453 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17454 if test $ac_cv_lib_dld_dld_link = yes; then
17455   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17456 fi
17457
17458
17459 fi
17460
17461
17462 fi
17463
17464
17465 fi
17466
17467
17468 fi
17469
17470
17471 fi
17472
17473     ;;
17474   esac
17475
17476   if test "x$lt_cv_dlopen" != xno; then
17477     enable_dlopen=yes
17478   else
17479     enable_dlopen=no
17480   fi
17481
17482   case $lt_cv_dlopen in
17483   dlopen)
17484     save_CPPFLAGS="$CPPFLAGS"
17485     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17486
17487     save_LDFLAGS="$LDFLAGS"
17488     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17489
17490     save_LIBS="$LIBS"
17491     LIBS="$lt_cv_dlopen_libs $LIBS"
17492
17493     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17494 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17495 if test "${lt_cv_dlopen_self+set}" = set; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498           if test "$cross_compiling" = yes; then :
17499   lt_cv_dlopen_self=cross
17500 else
17501   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17502   lt_status=$lt_dlunknown
17503   cat > conftest.$ac_ext <<EOF
17504 #line 17504 "configure"
17505 #include "confdefs.h"
17506
17507 #if HAVE_DLFCN_H
17508 #include <dlfcn.h>
17509 #endif
17510
17511 #include <stdio.h>
17512
17513 #ifdef RTLD_GLOBAL
17514 #  define LT_DLGLOBAL           RTLD_GLOBAL
17515 #else
17516 #  ifdef DL_GLOBAL
17517 #    define LT_DLGLOBAL         DL_GLOBAL
17518 #  else
17519 #    define LT_DLGLOBAL         0
17520 #  endif
17521 #endif
17522
17523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17524    find out it does not work in some platform. */
17525 #ifndef LT_DLLAZY_OR_NOW
17526 #  ifdef RTLD_LAZY
17527 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17528 #  else
17529 #    ifdef DL_LAZY
17530 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17531 #    else
17532 #      ifdef RTLD_NOW
17533 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17534 #      else
17535 #        ifdef DL_NOW
17536 #          define LT_DLLAZY_OR_NOW      DL_NOW
17537 #        else
17538 #          define LT_DLLAZY_OR_NOW      0
17539 #        endif
17540 #      endif
17541 #    endif
17542 #  endif
17543 #endif
17544
17545 #ifdef __cplusplus
17546 extern "C" void exit (int);
17547 #endif
17548
17549 void fnord() { int i=42;}
17550 int main ()
17551 {
17552   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17553   int status = $lt_dlunknown;
17554
17555   if (self)
17556     {
17557       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17558       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17559       /* dlclose (self); */
17560     }
17561
17562     exit (status);
17563 }
17564 EOF
17565   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566   (eval $ac_link) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17570     (./conftest; exit; ) 2>/dev/null
17571     lt_status=$?
17572     case x$lt_status in
17573       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17574       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17575       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17576     esac
17577   else :
17578     # compilation failed
17579     lt_cv_dlopen_self=no
17580   fi
17581 fi
17582 rm -fr conftest*
17583
17584
17585 fi
17586 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17587 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17588
17589     if test "x$lt_cv_dlopen_self" = xyes; then
17590       LDFLAGS="$LDFLAGS $link_static_flag"
17591       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17592 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17593 if test "${lt_cv_dlopen_self_static+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596           if test "$cross_compiling" = yes; then :
17597   lt_cv_dlopen_self_static=cross
17598 else
17599   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17600   lt_status=$lt_dlunknown
17601   cat > conftest.$ac_ext <<EOF
17602 #line 17602 "configure"
17603 #include "confdefs.h"
17604
17605 #if HAVE_DLFCN_H
17606 #include <dlfcn.h>
17607 #endif
17608
17609 #include <stdio.h>
17610
17611 #ifdef RTLD_GLOBAL
17612 #  define LT_DLGLOBAL           RTLD_GLOBAL
17613 #else
17614 #  ifdef DL_GLOBAL
17615 #    define LT_DLGLOBAL         DL_GLOBAL
17616 #  else
17617 #    define LT_DLGLOBAL         0
17618 #  endif
17619 #endif
17620
17621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622    find out it does not work in some platform. */
17623 #ifndef LT_DLLAZY_OR_NOW
17624 #  ifdef RTLD_LAZY
17625 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17626 #  else
17627 #    ifdef DL_LAZY
17628 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17629 #    else
17630 #      ifdef RTLD_NOW
17631 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17632 #      else
17633 #        ifdef DL_NOW
17634 #          define LT_DLLAZY_OR_NOW      DL_NOW
17635 #        else
17636 #          define LT_DLLAZY_OR_NOW      0
17637 #        endif
17638 #      endif
17639 #    endif
17640 #  endif
17641 #endif
17642
17643 #ifdef __cplusplus
17644 extern "C" void exit (int);
17645 #endif
17646
17647 void fnord() { int i=42;}
17648 int main ()
17649 {
17650   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17651   int status = $lt_dlunknown;
17652
17653   if (self)
17654     {
17655       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17656       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17657       /* dlclose (self); */
17658     }
17659
17660     exit (status);
17661 }
17662 EOF
17663   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664   (eval $ac_link) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17668     (./conftest; exit; ) 2>/dev/null
17669     lt_status=$?
17670     case x$lt_status in
17671       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17672       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17673       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17674     esac
17675   else :
17676     # compilation failed
17677     lt_cv_dlopen_self_static=no
17678   fi
17679 fi
17680 rm -fr conftest*
17681
17682
17683 fi
17684 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17685 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17686     fi
17687
17688     CPPFLAGS="$save_CPPFLAGS"
17689     LDFLAGS="$save_LDFLAGS"
17690     LIBS="$save_LIBS"
17691     ;;
17692   esac
17693
17694   case $lt_cv_dlopen_self in
17695   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17696   *) enable_dlopen_self=unknown ;;
17697   esac
17698
17699   case $lt_cv_dlopen_self_static in
17700   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17701   *) enable_dlopen_self_static=unknown ;;
17702   esac
17703 fi
17704
17705
17706 # The else clause should only fire when bootstrapping the
17707 # libtool distribution, otherwise you forgot to ship ltmain.sh
17708 # with your package, and you will get complaints that there are
17709 # no rules to generate ltmain.sh.
17710 if test -f "$ltmain"; then
17711   # See if we are running on zsh, and set the options which allow our commands through
17712   # without removal of \ escapes.
17713   if test -n "${ZSH_VERSION+set}" ; then
17714     setopt NO_GLOB_SUBST
17715   fi
17716   # Now quote all the things that may contain metacharacters while being
17717   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17718   # variables and quote the copies for generation of the libtool script.
17719   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17720     SED SHELL STRIP \
17721     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17722     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17723     deplibs_check_method reload_flag reload_cmds need_locks \
17724     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17725     lt_cv_sys_global_symbol_to_c_name_address \
17726     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17727     old_postinstall_cmds old_postuninstall_cmds \
17728     compiler_GCJ \
17729     CC_GCJ \
17730     LD_GCJ \
17731     lt_prog_compiler_wl_GCJ \
17732     lt_prog_compiler_pic_GCJ \
17733     lt_prog_compiler_static_GCJ \
17734     lt_prog_compiler_no_builtin_flag_GCJ \
17735     export_dynamic_flag_spec_GCJ \
17736     thread_safe_flag_spec_GCJ \
17737     whole_archive_flag_spec_GCJ \
17738     enable_shared_with_static_runtimes_GCJ \
17739     old_archive_cmds_GCJ \
17740     old_archive_from_new_cmds_GCJ \
17741     predep_objects_GCJ \
17742     postdep_objects_GCJ \
17743     predeps_GCJ \
17744     postdeps_GCJ \
17745     compiler_lib_search_path_GCJ \
17746     archive_cmds_GCJ \
17747     archive_expsym_cmds_GCJ \
17748     postinstall_cmds_GCJ \
17749     postuninstall_cmds_GCJ \
17750     old_archive_from_expsyms_cmds_GCJ \
17751     allow_undefined_flag_GCJ \
17752     no_undefined_flag_GCJ \
17753     export_symbols_cmds_GCJ \
17754     hardcode_libdir_flag_spec_GCJ \
17755     hardcode_libdir_flag_spec_ld_GCJ \
17756     hardcode_libdir_separator_GCJ \
17757     hardcode_automatic_GCJ \
17758     module_cmds_GCJ \
17759     module_expsym_cmds_GCJ \
17760     lt_cv_prog_compiler_c_o_GCJ \
17761     exclude_expsyms_GCJ \
17762     include_expsyms_GCJ; do
17763
17764     case $var in
17765     old_archive_cmds_GCJ | \
17766     old_archive_from_new_cmds_GCJ | \
17767     archive_cmds_GCJ | \
17768     archive_expsym_cmds_GCJ | \
17769     module_cmds_GCJ | \
17770     module_expsym_cmds_GCJ | \
17771     old_archive_from_expsyms_cmds_GCJ | \
17772     export_symbols_cmds_GCJ | \
17773     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17774     postinstall_cmds | postuninstall_cmds | \
17775     old_postinstall_cmds | old_postuninstall_cmds | \
17776     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17777       # Double-quote double-evaled strings.
17778       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17779       ;;
17780     *)
17781       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17782       ;;
17783     esac
17784   done
17785
17786   case $lt_echo in
17787   *'\$0 --fallback-echo"')
17788     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17789     ;;
17790   esac
17791
17792 cfgfile="$ofile"
17793
17794   cat <<__EOF__ >> "$cfgfile"
17795 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17796
17797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17798
17799 # Shell to use when invoking shell scripts.
17800 SHELL=$lt_SHELL
17801
17802 # Whether or not to build shared libraries.
17803 build_libtool_libs=$enable_shared
17804
17805 # Whether or not to build static libraries.
17806 build_old_libs=$enable_static
17807
17808 # Whether or not to add -lc for building shared libraries.
17809 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17810
17811 # Whether or not to disallow shared libs when runtime libs are static
17812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17813
17814 # Whether or not to optimize for fast installation.
17815 fast_install=$enable_fast_install
17816
17817 # The host system.
17818 host_alias=$host_alias
17819 host=$host
17820
17821 # An echo program that does not interpret backslashes.
17822 echo=$lt_echo
17823
17824 # The archiver.
17825 AR=$lt_AR
17826 AR_FLAGS=$lt_AR_FLAGS
17827
17828 # A C compiler.
17829 LTCC=$lt_LTCC
17830
17831 # A language-specific compiler.
17832 CC=$lt_compiler_GCJ
17833
17834 # Is the compiler the GNU C compiler?
17835 with_gcc=$GCC_GCJ
17836
17837 # An ERE matcher.
17838 EGREP=$lt_EGREP
17839
17840 # The linker used to build libraries.
17841 LD=$lt_LD_GCJ
17842
17843 # Whether we need hard or soft links.
17844 LN_S=$lt_LN_S
17845
17846 # A BSD-compatible nm program.
17847 NM=$lt_NM
17848
17849 # A symbol stripping program
17850 STRIP=$lt_STRIP
17851
17852 # Used to examine libraries when file_magic_cmd begins "file"
17853 MAGIC_CMD=$MAGIC_CMD
17854
17855 # Used on cygwin: DLL creation program.
17856 DLLTOOL="$DLLTOOL"
17857
17858 # Used on cygwin: object dumper.
17859 OBJDUMP="$OBJDUMP"
17860
17861 # Used on cygwin: assembler.
17862 AS="$AS"
17863
17864 # The name of the directory that contains temporary libtool files.
17865 objdir=$objdir
17866
17867 # How to create reloadable object files.
17868 reload_flag=$lt_reload_flag
17869 reload_cmds=$lt_reload_cmds
17870
17871 # How to pass a linker flag through the compiler.
17872 wl=$lt_lt_prog_compiler_wl_GCJ
17873
17874 # Object file suffix (normally "o").
17875 objext="$ac_objext"
17876
17877 # Old archive suffix (normally "a").
17878 libext="$libext"
17879
17880 # Shared library suffix (normally ".so").
17881 shrext_cmds='$shrext_cmds'
17882
17883 # Executable file suffix (normally "").
17884 exeext="$exeext"
17885
17886 # Additional compiler flags for building library objects.
17887 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17888 pic_mode=$pic_mode
17889
17890 # What is the maximum length of a command?
17891 max_cmd_len=$lt_cv_sys_max_cmd_len
17892
17893 # Does compiler simultaneously support -c and -o options?
17894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17895
17896 # Must we lock files when doing compilation ?
17897 need_locks=$lt_need_locks
17898
17899 # Do we need the lib prefix for modules?
17900 need_lib_prefix=$need_lib_prefix
17901
17902 # Do we need a version for libraries?
17903 need_version=$need_version
17904
17905 # Whether dlopen is supported.
17906 dlopen_support=$enable_dlopen
17907
17908 # Whether dlopen of programs is supported.
17909 dlopen_self=$enable_dlopen_self
17910
17911 # Whether dlopen of statically linked programs is supported.
17912 dlopen_self_static=$enable_dlopen_self_static
17913
17914 # Compiler flag to prevent dynamic linking.
17915 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17916
17917 # Compiler flag to turn off builtin functions.
17918 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17919
17920 # Compiler flag to allow reflexive dlopens.
17921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17922
17923 # Compiler flag to generate shared objects directly from archives.
17924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17925
17926 # Compiler flag to generate thread-safe objects.
17927 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17928
17929 # Library versioning type.
17930 version_type=$version_type
17931
17932 # Format of library name prefix.
17933 libname_spec=$lt_libname_spec
17934
17935 # List of archive names.  First name is the real one, the rest are links.
17936 # The last name is the one that the linker finds with -lNAME.
17937 library_names_spec=$lt_library_names_spec
17938
17939 # The coded name of the library, if different from the real name.
17940 soname_spec=$lt_soname_spec
17941
17942 # Commands used to build and install an old-style archive.
17943 RANLIB=$lt_RANLIB
17944 old_archive_cmds=$lt_old_archive_cmds_GCJ
17945 old_postinstall_cmds=$lt_old_postinstall_cmds
17946 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17947
17948 # Create an old-style archive from a shared archive.
17949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17950
17951 # Create a temporary old-style archive to link instead of a shared archive.
17952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17953
17954 # Commands used to build and install a shared archive.
17955 archive_cmds=$lt_archive_cmds_GCJ
17956 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17957 postinstall_cmds=$lt_postinstall_cmds
17958 postuninstall_cmds=$lt_postuninstall_cmds
17959
17960 # Commands used to build a loadable module (assumed same as above if empty)
17961 module_cmds=$lt_module_cmds_GCJ
17962 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17963
17964 # Commands to strip libraries.
17965 old_striplib=$lt_old_striplib
17966 striplib=$lt_striplib
17967
17968 # Dependencies to place before the objects being linked to create a
17969 # shared library.
17970 predep_objects=$lt_predep_objects_GCJ
17971
17972 # Dependencies to place after the objects being linked to create a
17973 # shared library.
17974 postdep_objects=$lt_postdep_objects_GCJ
17975
17976 # Dependencies to place before the objects being linked to create a
17977 # shared library.
17978 predeps=$lt_predeps_GCJ
17979
17980 # Dependencies to place after the objects being linked to create a
17981 # shared library.
17982 postdeps=$lt_postdeps_GCJ
17983
17984 # The library search path used internally by the compiler when linking
17985 # a shared library.
17986 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17987
17988 # Method to check whether dependent libraries are shared objects.
17989 deplibs_check_method=$lt_deplibs_check_method
17990
17991 # Command to use when deplibs_check_method == file_magic.
17992 file_magic_cmd=$lt_file_magic_cmd
17993
17994 # Flag that allows shared libraries with undefined symbols to be built.
17995 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17996
17997 # Flag that forces no undefined symbols.
17998 no_undefined_flag=$lt_no_undefined_flag_GCJ
17999
18000 # Commands used to finish a libtool library installation in a directory.
18001 finish_cmds=$lt_finish_cmds
18002
18003 # Same as above, but a single script fragment to be evaled but not shown.
18004 finish_eval=$lt_finish_eval
18005
18006 # Take the output of nm and produce a listing of raw symbols and C names.
18007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18008
18009 # Transform the output of nm in a proper C declaration
18010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18011
18012 # Transform the output of nm in a C name address pair
18013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18014
18015 # This is the shared library runtime path variable.
18016 runpath_var=$runpath_var
18017
18018 # This is the shared library path variable.
18019 shlibpath_var=$shlibpath_var
18020
18021 # Is shlibpath searched before the hard-coded library search path?
18022 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18023
18024 # How to hardcode a shared library path into an executable.
18025 hardcode_action=$hardcode_action_GCJ
18026
18027 # Whether we should hardcode library paths into libraries.
18028 hardcode_into_libs=$hardcode_into_libs
18029
18030 # Flag to hardcode \$libdir into a binary during linking.
18031 # This must work even if \$libdir does not exist.
18032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18033
18034 # If ld is used when linking, flag to hardcode \$libdir into
18035 # a binary during linking. This must work even if \$libdir does
18036 # not exist.
18037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18038
18039 # Whether we need a single -rpath flag with a separated argument.
18040 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18041
18042 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18043 # resulting binary.
18044 hardcode_direct=$hardcode_direct_GCJ
18045
18046 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18047 # resulting binary.
18048 hardcode_minus_L=$hardcode_minus_L_GCJ
18049
18050 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18051 # the resulting binary.
18052 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18053
18054 # Set to yes if building a shared library automatically hardcodes DIR into the library
18055 # and all subsequent libraries and executables linked against it.
18056 hardcode_automatic=$hardcode_automatic_GCJ
18057
18058 # Variables whose values should be saved in libtool wrapper scripts and
18059 # restored at relink time.
18060 variables_saved_for_relink="$variables_saved_for_relink"
18061
18062 # Whether libtool must link a program against all its dependency libraries.
18063 link_all_deplibs=$link_all_deplibs_GCJ
18064
18065 # Compile-time system search path for libraries
18066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18067
18068 # Run-time system search path for libraries
18069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18070
18071 # Fix the shell variable \$srcfile for the compiler.
18072 fix_srcfile_path="$fix_srcfile_path_GCJ"
18073
18074 # Set to yes if exported symbols are required.
18075 always_export_symbols=$always_export_symbols_GCJ
18076
18077 # The commands to list exported symbols.
18078 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18079
18080 # The commands to extract the exported symbol list from a shared archive.
18081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18082
18083 # Symbols that should not be listed in the preloaded symbols.
18084 exclude_expsyms=$lt_exclude_expsyms_GCJ
18085
18086 # Symbols that must always be exported.
18087 include_expsyms=$lt_include_expsyms_GCJ
18088
18089 # ### END LIBTOOL TAG CONFIG: $tagname
18090
18091 __EOF__
18092
18093
18094 else
18095   # If there is no Makefile yet, we rely on a make rule to execute
18096   # `config.status --recheck' to rerun these tests and create the
18097   # libtool script then.
18098   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18099   if test -f "$ltmain_in"; then
18100     test -f Makefile && make "$ltmain"
18101   fi
18102 fi
18103
18104
18105 ac_ext=c
18106 ac_cpp='$CPP $CPPFLAGS'
18107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18110
18111 CC="$lt_save_CC"
18112
18113         else
18114           tagname=""
18115         fi
18116         ;;
18117
18118       RC)
18119
18120
18121
18122 # Source file extension for RC test sources.
18123 ac_ext=rc
18124
18125 # Object file extension for compiled RC test sources.
18126 objext=o
18127 objext_RC=$objext
18128
18129 # Code to be used in simple compile tests
18130 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18131
18132 # Code to be used in simple link tests
18133 lt_simple_link_test_code="$lt_simple_compile_test_code"
18134
18135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18136
18137 # If no C compiler was specified, use CC.
18138 LTCC=${LTCC-"$CC"}
18139
18140 # Allow CC to be a program name with arguments.
18141 compiler=$CC
18142
18143
18144 # Allow CC to be a program name with arguments.
18145 lt_save_CC="$CC"
18146 CC=${RC-"windres"}
18147 compiler=$CC
18148 compiler_RC=$CC
18149 lt_cv_prog_compiler_c_o_RC=yes
18150
18151 # The else clause should only fire when bootstrapping the
18152 # libtool distribution, otherwise you forgot to ship ltmain.sh
18153 # with your package, and you will get complaints that there are
18154 # no rules to generate ltmain.sh.
18155 if test -f "$ltmain"; then
18156   # See if we are running on zsh, and set the options which allow our commands through
18157   # without removal of \ escapes.
18158   if test -n "${ZSH_VERSION+set}" ; then
18159     setopt NO_GLOB_SUBST
18160   fi
18161   # Now quote all the things that may contain metacharacters while being
18162   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18163   # variables and quote the copies for generation of the libtool script.
18164   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18165     SED SHELL STRIP \
18166     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18167     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18168     deplibs_check_method reload_flag reload_cmds need_locks \
18169     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18170     lt_cv_sys_global_symbol_to_c_name_address \
18171     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18172     old_postinstall_cmds old_postuninstall_cmds \
18173     compiler_RC \
18174     CC_RC \
18175     LD_RC \
18176     lt_prog_compiler_wl_RC \
18177     lt_prog_compiler_pic_RC \
18178     lt_prog_compiler_static_RC \
18179     lt_prog_compiler_no_builtin_flag_RC \
18180     export_dynamic_flag_spec_RC \
18181     thread_safe_flag_spec_RC \
18182     whole_archive_flag_spec_RC \
18183     enable_shared_with_static_runtimes_RC \
18184     old_archive_cmds_RC \
18185     old_archive_from_new_cmds_RC \
18186     predep_objects_RC \
18187     postdep_objects_RC \
18188     predeps_RC \
18189     postdeps_RC \
18190     compiler_lib_search_path_RC \
18191     archive_cmds_RC \
18192     archive_expsym_cmds_RC \
18193     postinstall_cmds_RC \
18194     postuninstall_cmds_RC \
18195     old_archive_from_expsyms_cmds_RC \
18196     allow_undefined_flag_RC \
18197     no_undefined_flag_RC \
18198     export_symbols_cmds_RC \
18199     hardcode_libdir_flag_spec_RC \
18200     hardcode_libdir_flag_spec_ld_RC \
18201     hardcode_libdir_separator_RC \
18202     hardcode_automatic_RC \
18203     module_cmds_RC \
18204     module_expsym_cmds_RC \
18205     lt_cv_prog_compiler_c_o_RC \
18206     exclude_expsyms_RC \
18207     include_expsyms_RC; do
18208
18209     case $var in
18210     old_archive_cmds_RC | \
18211     old_archive_from_new_cmds_RC | \
18212     archive_cmds_RC | \
18213     archive_expsym_cmds_RC | \
18214     module_cmds_RC | \
18215     module_expsym_cmds_RC | \
18216     old_archive_from_expsyms_cmds_RC | \
18217     export_symbols_cmds_RC | \
18218     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18219     postinstall_cmds | postuninstall_cmds | \
18220     old_postinstall_cmds | old_postuninstall_cmds | \
18221     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18222       # Double-quote double-evaled strings.
18223       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18224       ;;
18225     *)
18226       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18227       ;;
18228     esac
18229   done
18230
18231   case $lt_echo in
18232   *'\$0 --fallback-echo"')
18233     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18234     ;;
18235   esac
18236
18237 cfgfile="$ofile"
18238
18239   cat <<__EOF__ >> "$cfgfile"
18240 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18241
18242 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18243
18244 # Shell to use when invoking shell scripts.
18245 SHELL=$lt_SHELL
18246
18247 # Whether or not to build shared libraries.
18248 build_libtool_libs=$enable_shared
18249
18250 # Whether or not to build static libraries.
18251 build_old_libs=$enable_static
18252
18253 # Whether or not to add -lc for building shared libraries.
18254 build_libtool_need_lc=$archive_cmds_need_lc_RC
18255
18256 # Whether or not to disallow shared libs when runtime libs are static
18257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18258
18259 # Whether or not to optimize for fast installation.
18260 fast_install=$enable_fast_install
18261
18262 # The host system.
18263 host_alias=$host_alias
18264 host=$host
18265
18266 # An echo program that does not interpret backslashes.
18267 echo=$lt_echo
18268
18269 # The archiver.
18270 AR=$lt_AR
18271 AR_FLAGS=$lt_AR_FLAGS
18272
18273 # A C compiler.
18274 LTCC=$lt_LTCC
18275
18276 # A language-specific compiler.
18277 CC=$lt_compiler_RC
18278
18279 # Is the compiler the GNU C compiler?
18280 with_gcc=$GCC_RC
18281
18282 # An ERE matcher.
18283 EGREP=$lt_EGREP
18284
18285 # The linker used to build libraries.
18286 LD=$lt_LD_RC
18287
18288 # Whether we need hard or soft links.
18289 LN_S=$lt_LN_S
18290
18291 # A BSD-compatible nm program.
18292 NM=$lt_NM
18293
18294 # A symbol stripping program
18295 STRIP=$lt_STRIP
18296
18297 # Used to examine libraries when file_magic_cmd begins "file"
18298 MAGIC_CMD=$MAGIC_CMD
18299
18300 # Used on cygwin: DLL creation program.
18301 DLLTOOL="$DLLTOOL"
18302
18303 # Used on cygwin: object dumper.
18304 OBJDUMP="$OBJDUMP"
18305
18306 # Used on cygwin: assembler.
18307 AS="$AS"
18308
18309 # The name of the directory that contains temporary libtool files.
18310 objdir=$objdir
18311
18312 # How to create reloadable object files.
18313 reload_flag=$lt_reload_flag
18314 reload_cmds=$lt_reload_cmds
18315
18316 # How to pass a linker flag through the compiler.
18317 wl=$lt_lt_prog_compiler_wl_RC
18318
18319 # Object file suffix (normally "o").
18320 objext="$ac_objext"
18321
18322 # Old archive suffix (normally "a").
18323 libext="$libext"
18324
18325 # Shared library suffix (normally ".so").
18326 shrext_cmds='$shrext_cmds'
18327
18328 # Executable file suffix (normally "").
18329 exeext="$exeext"
18330
18331 # Additional compiler flags for building library objects.
18332 pic_flag=$lt_lt_prog_compiler_pic_RC
18333 pic_mode=$pic_mode
18334
18335 # What is the maximum length of a command?
18336 max_cmd_len=$lt_cv_sys_max_cmd_len
18337
18338 # Does compiler simultaneously support -c and -o options?
18339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18340
18341 # Must we lock files when doing compilation ?
18342 need_locks=$lt_need_locks
18343
18344 # Do we need the lib prefix for modules?
18345 need_lib_prefix=$need_lib_prefix
18346
18347 # Do we need a version for libraries?
18348 need_version=$need_version
18349
18350 # Whether dlopen is supported.
18351 dlopen_support=$enable_dlopen
18352
18353 # Whether dlopen of programs is supported.
18354 dlopen_self=$enable_dlopen_self
18355
18356 # Whether dlopen of statically linked programs is supported.
18357 dlopen_self_static=$enable_dlopen_self_static
18358
18359 # Compiler flag to prevent dynamic linking.
18360 link_static_flag=$lt_lt_prog_compiler_static_RC
18361
18362 # Compiler flag to turn off builtin functions.
18363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18364
18365 # Compiler flag to allow reflexive dlopens.
18366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18367
18368 # Compiler flag to generate shared objects directly from archives.
18369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18370
18371 # Compiler flag to generate thread-safe objects.
18372 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18373
18374 # Library versioning type.
18375 version_type=$version_type
18376
18377 # Format of library name prefix.
18378 libname_spec=$lt_libname_spec
18379
18380 # List of archive names.  First name is the real one, the rest are links.
18381 # The last name is the one that the linker finds with -lNAME.
18382 library_names_spec=$lt_library_names_spec
18383
18384 # The coded name of the library, if different from the real name.
18385 soname_spec=$lt_soname_spec
18386
18387 # Commands used to build and install an old-style archive.
18388 RANLIB=$lt_RANLIB
18389 old_archive_cmds=$lt_old_archive_cmds_RC
18390 old_postinstall_cmds=$lt_old_postinstall_cmds
18391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18392
18393 # Create an old-style archive from a shared archive.
18394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18395
18396 # Create a temporary old-style archive to link instead of a shared archive.
18397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18398
18399 # Commands used to build and install a shared archive.
18400 archive_cmds=$lt_archive_cmds_RC
18401 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18402 postinstall_cmds=$lt_postinstall_cmds
18403 postuninstall_cmds=$lt_postuninstall_cmds
18404
18405 # Commands used to build a loadable module (assumed same as above if empty)
18406 module_cmds=$lt_module_cmds_RC
18407 module_expsym_cmds=$lt_module_expsym_cmds_RC
18408
18409 # Commands to strip libraries.
18410 old_striplib=$lt_old_striplib
18411 striplib=$lt_striplib
18412
18413 # Dependencies to place before the objects being linked to create a
18414 # shared library.
18415 predep_objects=$lt_predep_objects_RC
18416
18417 # Dependencies to place after the objects being linked to create a
18418 # shared library.
18419 postdep_objects=$lt_postdep_objects_RC
18420
18421 # Dependencies to place before the objects being linked to create a
18422 # shared library.
18423 predeps=$lt_predeps_RC
18424
18425 # Dependencies to place after the objects being linked to create a
18426 # shared library.
18427 postdeps=$lt_postdeps_RC
18428
18429 # The library search path used internally by the compiler when linking
18430 # a shared library.
18431 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18432
18433 # Method to check whether dependent libraries are shared objects.
18434 deplibs_check_method=$lt_deplibs_check_method
18435
18436 # Command to use when deplibs_check_method == file_magic.
18437 file_magic_cmd=$lt_file_magic_cmd
18438
18439 # Flag that allows shared libraries with undefined symbols to be built.
18440 allow_undefined_flag=$lt_allow_undefined_flag_RC
18441
18442 # Flag that forces no undefined symbols.
18443 no_undefined_flag=$lt_no_undefined_flag_RC
18444
18445 # Commands used to finish a libtool library installation in a directory.
18446 finish_cmds=$lt_finish_cmds
18447
18448 # Same as above, but a single script fragment to be evaled but not shown.
18449 finish_eval=$lt_finish_eval
18450
18451 # Take the output of nm and produce a listing of raw symbols and C names.
18452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18453
18454 # Transform the output of nm in a proper C declaration
18455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18456
18457 # Transform the output of nm in a C name address pair
18458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18459
18460 # This is the shared library runtime path variable.
18461 runpath_var=$runpath_var
18462
18463 # This is the shared library path variable.
18464 shlibpath_var=$shlibpath_var
18465
18466 # Is shlibpath searched before the hard-coded library search path?
18467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18468
18469 # How to hardcode a shared library path into an executable.
18470 hardcode_action=$hardcode_action_RC
18471
18472 # Whether we should hardcode library paths into libraries.
18473 hardcode_into_libs=$hardcode_into_libs
18474
18475 # Flag to hardcode \$libdir into a binary during linking.
18476 # This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18478
18479 # If ld is used when linking, flag to hardcode \$libdir into
18480 # a binary during linking. This must work even if \$libdir does
18481 # not exist.
18482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18483
18484 # Whether we need a single -rpath flag with a separated argument.
18485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18486
18487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488 # resulting binary.
18489 hardcode_direct=$hardcode_direct_RC
18490
18491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_minus_L=$hardcode_minus_L_RC
18494
18495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496 # the resulting binary.
18497 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18498
18499 # Set to yes if building a shared library automatically hardcodes DIR into the library
18500 # and all subsequent libraries and executables linked against it.
18501 hardcode_automatic=$hardcode_automatic_RC
18502
18503 # Variables whose values should be saved in libtool wrapper scripts and
18504 # restored at relink time.
18505 variables_saved_for_relink="$variables_saved_for_relink"
18506
18507 # Whether libtool must link a program against all its dependency libraries.
18508 link_all_deplibs=$link_all_deplibs_RC
18509
18510 # Compile-time system search path for libraries
18511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18512
18513 # Run-time system search path for libraries
18514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515
18516 # Fix the shell variable \$srcfile for the compiler.
18517 fix_srcfile_path="$fix_srcfile_path_RC"
18518
18519 # Set to yes if exported symbols are required.
18520 always_export_symbols=$always_export_symbols_RC
18521
18522 # The commands to list exported symbols.
18523 export_symbols_cmds=$lt_export_symbols_cmds_RC
18524
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18527
18528 # Symbols that should not be listed in the preloaded symbols.
18529 exclude_expsyms=$lt_exclude_expsyms_RC
18530
18531 # Symbols that must always be exported.
18532 include_expsyms=$lt_include_expsyms_RC
18533
18534 # ### END LIBTOOL TAG CONFIG: $tagname
18535
18536 __EOF__
18537
18538
18539 else
18540   # If there is no Makefile yet, we rely on a make rule to execute
18541   # `config.status --recheck' to rerun these tests and create the
18542   # libtool script then.
18543   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544   if test -f "$ltmain_in"; then
18545     test -f Makefile && make "$ltmain"
18546   fi
18547 fi
18548
18549
18550 ac_ext=c
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555
18556 CC="$lt_save_CC"
18557
18558         ;;
18559
18560       *)
18561         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18562 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18563    { (exit 1); exit 1; }; }
18564         ;;
18565       esac
18566
18567       # Append the new tag name to the list of available tags.
18568       if test -n "$tagname" ; then
18569       available_tags="$available_tags $tagname"
18570     fi
18571     fi
18572   done
18573   IFS="$lt_save_ifs"
18574
18575   # Now substitute the updated list of available tags.
18576   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18577     mv "${ofile}T" "$ofile"
18578     chmod +x "$ofile"
18579   else
18580     rm -f "${ofile}T"
18581     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18582 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18583    { (exit 1); exit 1; }; }
18584   fi
18585 fi
18586
18587
18588
18589 # This can be used to rebuild libtool when needed
18590 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18591
18592 # Always use our own libtool.
18593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18594
18595 # Prevent multiple expansion
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18617 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18618 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18619 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18620   echo $ECHO_N "(cached) $ECHO_C" >&6
18621 else
18622   cat >conftest.make <<\_ACEOF
18623 all:
18624         @echo 'ac_maketemp="$(MAKE)"'
18625 _ACEOF
18626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18627 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18628 if test -n "$ac_maketemp"; then
18629   eval ac_cv_prog_make_${ac_make}_set=yes
18630 else
18631   eval ac_cv_prog_make_${ac_make}_set=no
18632 fi
18633 rm -f conftest.make
18634 fi
18635 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18636   echo "$as_me:$LINENO: result: yes" >&5
18637 echo "${ECHO_T}yes" >&6
18638   SET_MAKE=
18639 else
18640   echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6
18642   SET_MAKE="MAKE=${MAKE-make}"
18643 fi
18644
18645
18646 if test "$athena" = true; then
18647     enable_athena=yes
18648     prefix=/afs/.athena.mit.edu/system/moira
18649     bindir=$prefix/arch/$ATHENA_SYS/bin
18650     libdir=$prefix/arch/$ATHENA_SYS/lib
18651     sbindir=$bindir
18652
18653
18654     case $CPPFLAGS in
18655         *-I/usr/athena/include*) ;;
18656         *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
18657     esac
18658
18659
18660     case $PRO_C_INCLUDES in
18661         *INCLUDE=/usr/athena/include*) ;;
18662         *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
18663     esac
18664
18665
18666
18667     case $LIBPATH in
18668         *-L/usr/athena/lib*) ;;
18669         *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
18670     esac
18671
18672 fi
18673
18674 # We currently just don't support changing this
18675 mrbindir=/moira/bin
18676
18677
18678 # Athena-local policy decisions
18679 echo "$as_me:$LINENO: checking for Athena" >&5
18680 echo $ECHO_N "checking for Athena... $ECHO_C" >&6
18681 # Check whether --enable-athena or --disable-athena was given.
18682 if test "${enable_athena+set}" = set; then
18683   enableval="$enable_athena"
18684
18685 else
18686   if test "$athena" = true; then
18687            enableval=yes
18688        else
18689            enableval=no
18690        fi
18691 fi;
18692 echo "$as_me:$LINENO: result: $enableval" >&5
18693 echo "${ECHO_T}$enableval" >&6
18694 if test "$enableval" = yes; then
18695
18696     cat >>confdefs.h <<\_ACEOF
18697 #define ATHENA 1
18698 _ACEOF
18699
18700
18701     case $PRO_C_DEFS in
18702         *DEFINE=ATHENA*) ;;
18703         *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
18704     esac
18705
18706
18707 fi
18708
18709 # Networking libraries
18710 { echo "$as_me:$LINENO: checking network libraries......" >&5
18711 echo "$as_me: checking network libraries......" >&6;}
18712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18714 if test "${ac_cv_func_gethostbyname+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18725 #define gethostbyname innocuous_gethostbyname
18726
18727 /* System header to define __stub macros and hopefully few prototypes,
18728     which can conflict with char gethostbyname (); below.
18729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730     <limits.h> exists even on freestanding compilers.  */
18731
18732 #ifdef __STDC__
18733 # include <limits.h>
18734 #else
18735 # include <assert.h>
18736 #endif
18737
18738 #undef gethostbyname
18739
18740 /* Override any gcc2 internal prototype to avoid an error.  */
18741 #ifdef __cplusplus
18742 extern "C"
18743 {
18744 #endif
18745 /* We use char because int might match the return type of a gcc2
18746    builtin and then its argument prototype would still apply.  */
18747 char gethostbyname ();
18748 /* The GNU C library defines this for functions which it implements
18749     to always fail with ENOSYS.  Some functions are actually named
18750     something starting with __ and the normal name is an alias.  */
18751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18752 choke me
18753 #else
18754 char (*f) () = gethostbyname;
18755 #endif
18756 #ifdef __cplusplus
18757 }
18758 #endif
18759
18760 int
18761 main ()
18762 {
18763 return f != gethostbyname;
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770   (eval $ac_link) 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } &&
18777          { ac_try='test -z "$ac_c_werror_flag"
18778                          || test ! -s conftest.err'
18779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780   (eval $ac_try) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; } &&
18784          { ac_try='test -s conftest$ac_exeext'
18785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786   (eval $ac_try) 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; }; then
18790   ac_cv_func_gethostbyname=yes
18791 else
18792   echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 ac_cv_func_gethostbyname=no
18796 fi
18797 rm -f conftest.err conftest.$ac_objext \
18798       conftest$ac_exeext conftest.$ac_ext
18799 fi
18800 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18801 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18802 if test $ac_cv_func_gethostbyname = yes; then
18803   :
18804 else
18805
18806 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18807 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18808 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18809   echo $ECHO_N "(cached) $ECHO_C" >&6
18810 else
18811   ac_check_lib_save_LIBS=$LIBS
18812 LIBS="-lnsl  $LIBS"
18813 cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h.  */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h.  */
18819
18820 /* Override any gcc2 internal prototype to avoid an error.  */
18821 #ifdef __cplusplus
18822 extern "C"
18823 #endif
18824 /* We use char because int might match the return type of a gcc2
18825    builtin and then its argument prototype would still apply.  */
18826 char gethostbyname ();
18827 int
18828 main ()
18829 {
18830 gethostbyname ();
18831   ;
18832   return 0;
18833 }
18834 _ACEOF
18835 rm -f conftest.$ac_objext conftest$ac_exeext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18837   (eval $ac_link) 2>conftest.er1
18838   ac_status=$?
18839   grep -v '^ *+' conftest.er1 >conftest.err
18840   rm -f conftest.er1
18841   cat conftest.err >&5
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); } &&
18844          { ac_try='test -z "$ac_c_werror_flag"
18845                          || test ! -s conftest.err'
18846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847   (eval $ac_try) 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; } &&
18851          { ac_try='test -s conftest$ac_exeext'
18852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853   (eval $ac_try) 2>&5
18854   ac_status=$?
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); }; }; then
18857   ac_cv_lib_nsl_gethostbyname=yes
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 ac_cv_lib_nsl_gethostbyname=no
18863 fi
18864 rm -f conftest.err conftest.$ac_objext \
18865       conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18867 fi
18868 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18869 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18870 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18871   cat >>confdefs.h <<_ACEOF
18872 #define HAVE_LIBNSL 1
18873 _ACEOF
18874
18875   LIBS="-lnsl $LIBS"
18876
18877 else
18878
18879 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
18880 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
18881 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
18882   echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884   ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lresolv  $LIBS"
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h.  */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h.  */
18892
18893 /* Override any gcc2 internal prototype to avoid an error.  */
18894 #ifdef __cplusplus
18895 extern "C"
18896 #endif
18897 /* We use char because int might match the return type of a gcc2
18898    builtin and then its argument prototype would still apply.  */
18899 char gethostbyname ();
18900 int
18901 main ()
18902 {
18903 gethostbyname ();
18904   ;
18905   return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910   (eval $ac_link) 2>conftest.er1
18911   ac_status=$?
18912   grep -v '^ *+' conftest.er1 >conftest.err
18913   rm -f conftest.er1
18914   cat conftest.err >&5
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); } &&
18917          { ac_try='test -z "$ac_c_werror_flag"
18918                          || test ! -s conftest.err'
18919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920   (eval $ac_try) 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest$ac_exeext'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; }; then
18930   ac_cv_lib_resolv_gethostbyname=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 ac_cv_lib_resolv_gethostbyname=no
18936 fi
18937 rm -f conftest.err conftest.$ac_objext \
18938       conftest$ac_exeext conftest.$ac_ext
18939 LIBS=$ac_check_lib_save_LIBS
18940 fi
18941 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
18942 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
18943 if test $ac_cv_lib_resolv_gethostbyname = yes; then
18944   cat >>confdefs.h <<_ACEOF
18945 #define HAVE_LIBRESOLV 1
18946 _ACEOF
18947
18948   LIBS="-lresolv $LIBS"
18949
18950 fi
18951
18952 fi
18953
18954 fi
18955
18956 echo "$as_me:$LINENO: checking for socket" >&5
18957 echo $ECHO_N "checking for socket... $ECHO_C" >&6
18958 if test "${ac_cv_func_socket+set}" = set; then
18959   echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961   cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18969 #define socket innocuous_socket
18970
18971 /* System header to define __stub macros and hopefully few prototypes,
18972     which can conflict with char socket (); below.
18973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18974     <limits.h> exists even on freestanding compilers.  */
18975
18976 #ifdef __STDC__
18977 # include <limits.h>
18978 #else
18979 # include <assert.h>
18980 #endif
18981
18982 #undef socket
18983
18984 /* Override any gcc2 internal prototype to avoid an error.  */
18985 #ifdef __cplusplus
18986 extern "C"
18987 {
18988 #endif
18989 /* We use char because int might match the return type of a gcc2
18990    builtin and then its argument prototype would still apply.  */
18991 char socket ();
18992 /* The GNU C library defines this for functions which it implements
18993     to always fail with ENOSYS.  Some functions are actually named
18994     something starting with __ and the normal name is an alias.  */
18995 #if defined (__stub_socket) || defined (__stub___socket)
18996 choke me
18997 #else
18998 char (*f) () = socket;
18999 #endif
19000 #ifdef __cplusplus
19001 }
19002 #endif
19003
19004 int
19005 main ()
19006 {
19007 return f != socket;
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014   (eval $ac_link) 2>conftest.er1
19015   ac_status=$?
19016   grep -v '^ *+' conftest.er1 >conftest.err
19017   rm -f conftest.er1
19018   cat conftest.err >&5
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); } &&
19021          { ac_try='test -z "$ac_c_werror_flag"
19022                          || test ! -s conftest.err'
19023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024   (eval $ac_try) 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; } &&
19028          { ac_try='test -s conftest$ac_exeext'
19029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030   (eval $ac_try) 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); }; }; then
19034   ac_cv_func_socket=yes
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039 ac_cv_func_socket=no
19040 fi
19041 rm -f conftest.err conftest.$ac_objext \
19042       conftest$ac_exeext conftest.$ac_ext
19043 fi
19044 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19045 echo "${ECHO_T}$ac_cv_func_socket" >&6
19046 if test $ac_cv_func_socket = yes; then
19047   :
19048 else
19049
19050 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19051 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19052 if test "${ac_cv_lib_socket_socket+set}" = set; then
19053   echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055   ac_check_lib_save_LIBS=$LIBS
19056 LIBS="-lsocket  $LIBS"
19057 cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063
19064 /* Override any gcc2 internal prototype to avoid an error.  */
19065 #ifdef __cplusplus
19066 extern "C"
19067 #endif
19068 /* We use char because int might match the return type of a gcc2
19069    builtin and then its argument prototype would still apply.  */
19070 char socket ();
19071 int
19072 main ()
19073 {
19074 socket ();
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081   (eval $ac_link) 2>conftest.er1
19082   ac_status=$?
19083   grep -v '^ *+' conftest.er1 >conftest.err
19084   rm -f conftest.er1
19085   cat conftest.err >&5
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); } &&
19088          { ac_try='test -z "$ac_c_werror_flag"
19089                          || test ! -s conftest.err'
19090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091   (eval $ac_try) 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; } &&
19095          { ac_try='test -s conftest$ac_exeext'
19096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097   (eval $ac_try) 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; }; then
19101   ac_cv_lib_socket_socket=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 ac_cv_lib_socket_socket=no
19107 fi
19108 rm -f conftest.err conftest.$ac_objext \
19109       conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19113 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19114 if test $ac_cv_lib_socket_socket = yes; then
19115   cat >>confdefs.h <<_ACEOF
19116 #define HAVE_LIBSOCKET 1
19117 _ACEOF
19118
19119   LIBS="-lsocket $LIBS"
19120
19121 else
19122   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19123 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19124 if test "${ac_cv_lib_socket_socket+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127   ac_check_lib_save_LIBS=$LIBS
19128 LIBS="-lsocket -lnsl $LIBS"
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135
19136 /* Override any gcc2 internal prototype to avoid an error.  */
19137 #ifdef __cplusplus
19138 extern "C"
19139 #endif
19140 /* We use char because int might match the return type of a gcc2
19141    builtin and then its argument prototype would still apply.  */
19142 char socket ();
19143 int
19144 main ()
19145 {
19146 socket ();
19147   ;
19148   return 0;
19149 }
19150 _ACEOF
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19153   (eval $ac_link) 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } &&
19160          { ac_try='test -z "$ac_c_werror_flag"
19161                          || test ! -s conftest.err'
19162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163   (eval $ac_try) 2>&5
19164   ac_status=$?
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); }; } &&
19167          { ac_try='test -s conftest$ac_exeext'
19168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169   (eval $ac_try) 2>&5
19170   ac_status=$?
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); }; }; then
19173   ac_cv_lib_socket_socket=yes
19174 else
19175   echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19177
19178 ac_cv_lib_socket_socket=no
19179 fi
19180 rm -f conftest.err conftest.$ac_objext \
19181       conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19183 fi
19184 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19185 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19186 if test $ac_cv_lib_socket_socket = yes; then
19187   LIBS="-lsocket -lnsl $LIBS"
19188 else
19189   :
19190 fi
19191
19192 fi
19193
19194 fi
19195
19196
19197 # com_err (required, but can be built)
19198 echo "$as_me:$LINENO: checking for com_err" >&5
19199 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
19200
19201 # Check whether --with-com_err or --without-com_err was given.
19202 if test "${with_com_err+set}" = set; then
19203   withval="$with_com_err"
19204   echo "$as_me:$LINENO: result: $withval" >&5
19205 echo "${ECHO_T}$withval" >&6
19206      if test $withval = "no"; then
19207          { { echo "$as_me:$LINENO: error: com_err is required for Moira" >&5
19208 echo "$as_me: error: com_err is required for Moira" >&2;}
19209    { (exit 1); exit 1; }; }
19210      fi
19211      if test $withval != "yes"; then
19212
19213
19214     case $CPPFLAGS in
19215         *-I$withval/include*) ;;
19216         *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
19217     esac
19218
19219
19220     case $PRO_C_INCLUDES in
19221         *INCLUDE=$withval/include*) ;;
19222         *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
19223     esac
19224
19225
19226
19227     case $LIBPATH in
19228         *-L$withval/lib*) ;;
19229         *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
19230     esac
19231
19232      fi
19233      COMPILE_ET=compile_et
19234 else
19235   echo "$as_me:$LINENO: result: util/et" >&5
19236 echo "${ECHO_T}util/et" >&6
19237
19238
19239     case $CPPFLAGS in
19240         *-I`pwd`/util/et*) ;;
19241         *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
19242     esac
19243
19244
19245     case $PRO_C_INCLUDES in
19246         *INCLUDE=`pwd`/util/et*) ;;
19247         *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
19248     esac
19249
19250
19251
19252     case $LIBPATH in
19253         *-L`pwd`/util/et*) ;;
19254         *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
19255     esac
19256
19257      COMPILE_ET=`pwd`/util/et/compile_et
19258
19259
19260 subdirs="$subdirs util/et"
19261
19262 fi;
19263
19264
19265
19266 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
19267 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
19268 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
19269   echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271   ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lk5crypto  $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h.  */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h.  */
19279
19280
19281 int
19282 main ()
19283 {
19284 main ();
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291   (eval $ac_link) 2>conftest.er1
19292   ac_status=$?
19293   grep -v '^ *+' conftest.er1 >conftest.err
19294   rm -f conftest.er1
19295   cat conftest.err >&5
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } &&
19298          { ac_try='test -z "$ac_c_werror_flag"
19299                          || test ! -s conftest.err'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; } &&
19305          { ac_try='test -s conftest$ac_exeext'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   ac_cv_lib_k5crypto_main=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 ac_cv_lib_k5crypto_main=no
19317 fi
19318 rm -f conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19321 fi
19322 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
19323 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
19324 if test $ac_cv_lib_k5crypto_main = yes; then
19325   crypto="k5crypto"
19326 else
19327   echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
19328 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
19329 if test "${ac_cv_lib_crypto_main+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lcrypto  $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340
19341
19342 int
19343 main ()
19344 {
19345 main ();
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352   (eval $ac_link) 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_c_werror_flag"
19360                          || test ! -s conftest.err'
19361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362   (eval $ac_try) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest$ac_exeext'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; }; then
19372   ac_cv_lib_crypto_main=yes
19373 else
19374   echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 ac_cv_lib_crypto_main=no
19378 fi
19379 rm -f conftest.err conftest.$ac_objext \
19380       conftest$ac_exeext conftest.$ac_ext
19381 LIBS=$ac_check_lib_save_LIBS
19382 fi
19383 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
19384 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
19385 if test $ac_cv_lib_crypto_main = yes; then
19386   crypto="crypto"
19387 fi
19388
19389 fi
19390
19391
19392 # Kerberos (Kerberos 4 optional, Kerberos 5 required)
19393 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
19394 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
19395
19396 # Check whether --with-krb4 or --without-krb4 was given.
19397 if test "${with_krb4+set}" = set; then
19398   withval="$with_krb4"
19399   krb4="$withval"
19400 else
19401   krb4=no
19402 fi;
19403 echo "$as_me:$LINENO: result: $krb4" >&5
19404 echo "${ECHO_T}$krb4" >&6
19405 if test "$krb4" != no; then
19406     if test "$krb4" != yes; then
19407
19408
19409     case $CPPFLAGS in
19410         *-I$krb4/include*) ;;
19411         *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
19412     esac
19413
19414
19415     case $PRO_C_INCLUDES in
19416         *INCLUDE=$krb4/include*) ;;
19417         *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
19418     esac
19419
19420
19421         if test -d "$krb4/include/kerberosIV"; then
19422
19423
19424     case $CPPFLAGS in
19425         *-I$krb4/include/kerberosIV*) ;;
19426         *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
19427     esac
19428
19429
19430     case $PRO_C_INCLUDES in
19431         *INCLUDE=$krb4/include/kerberosIV*) ;;
19432         *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
19433     esac
19434
19435
19436         fi
19437
19438     case $LIBPATH in
19439         *-L$krb4/lib*) ;;
19440         *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
19441     esac
19442
19443     elif test -d /usr/include/kerberosIV; then
19444
19445
19446     case $CPPFLAGS in
19447         *-I/usr/include/kerberosIV*) ;;
19448         *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
19449     esac
19450
19451
19452     case $PRO_C_INCLUDES in
19453         *INCLUDE=/usr/include/kerberosIV*) ;;
19454         *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
19455     esac
19456
19457
19458     fi
19459
19460     cat >>confdefs.h <<\_ACEOF
19461 #define HAVE_KRB4 1
19462 _ACEOF
19463
19464
19465     case $PRO_C_DEFS in
19466         *DEFINE=HAVE_KRB4*) ;;
19467         *) PRO_C_DEFS=DEFINE=HAVE_KRB4\ $PRO_C_DEFS ;;
19468     esac
19469
19470
19471     echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
19472 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6
19473 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476   ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv $LIBS"
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484
19485 /* Override any gcc2 internal prototype to avoid an error.  */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 /* We use char because int might match the return type of a gcc2
19490    builtin and then its argument prototype would still apply.  */
19491 char krb_rd_req ();
19492 int
19493 main ()
19494 {
19495 krb_rd_req ();
19496   ;
19497   return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19502   (eval $ac_link) 2>conftest.er1
19503   ac_status=$?
19504   grep -v '^ *+' conftest.er1 >conftest.err
19505   rm -f conftest.er1
19506   cat conftest.err >&5
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); } &&
19509          { ac_try='test -z "$ac_c_werror_flag"
19510                          || test ! -s conftest.err'
19511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512   (eval $ac_try) 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; } &&
19516          { ac_try='test -s conftest$ac_exeext'
19517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518   (eval $ac_try) 2>&5
19519   ac_status=$?
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); }; }; then
19522   ac_cv_lib_krb4_krb_rd_req=yes
19523 else
19524   echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 ac_cv_lib_krb4_krb_rd_req=no
19528 fi
19529 rm -f conftest.err conftest.$ac_objext \
19530       conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19532 fi
19533 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
19534 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6
19535 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
19536   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
19537 else
19538   echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
19539 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6
19540 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lkrb $LIBPATH -ldes $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551
19552 /* Override any gcc2 internal prototype to avoid an error.  */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 /* We use char because int might match the return type of a gcc2
19557    builtin and then its argument prototype would still apply.  */
19558 char krb_rd_req ();
19559 int
19560 main ()
19561 {
19562 krb_rd_req ();
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569   (eval $ac_link) 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_c_werror_flag"
19577                          || test ! -s conftest.err'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; } &&
19583          { ac_try='test -s conftest$ac_exeext'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_cv_lib_krb_krb_rd_req=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_lib_krb_krb_rd_req=no
19595 fi
19596 rm -f conftest.err conftest.$ac_objext \
19597       conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
19601 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6
19602 if test $ac_cv_lib_krb_krb_rd_req = yes; then
19603   KRB4_LIBS="-lkrb -ldes"
19604 else
19605   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
19606 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
19607    { (exit 1); exit 1; }; }
19608 fi
19609
19610 fi
19611
19612 fi
19613
19614 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
19615 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
19616
19617 # Check whether --with-krb5 or --without-krb5 was given.
19618 if test "${with_krb5+set}" = set; then
19619   withval="$with_krb5"
19620   krb5="$withval"
19621 else
19622   krb5=no
19623 fi;
19624 echo "$as_me:$LINENO: result: $krb5" >&5
19625 echo "${ECHO_T}$krb5" >&6
19626 if test "$krb5" != no; then
19627     REG_SVR_DEFS=-DKRB5
19628     if test "$krb5" != yes; then
19629         REG_SVR_INCLUDES=-I$krb5/include
19630         REG_SVR_LIBS=-L$krb5/lib
19631
19632
19633     case $CPPFLAGS in
19634         *-I$krb5/include*) ;;
19635         *) CPPFLAGS=-I$krb5/include\ $CPPFLAGS ;;
19636     esac
19637
19638
19639     case $PRO_C_INCLUDES in
19640         *INCLUDE=$krb5/include*) ;;
19641         *) PRO_C_INCLUDES=INCLUDE=$krb5/include\ $PRO_C_INCLUDES ;;
19642     esac
19643
19644
19645
19646     case $LIBPATH in
19647         *-L$krb5/lib*) ;;
19648         *) LIBPATH=-L$krb5/lib\ $LIBPATH ;;
19649     esac
19650
19651     fi
19652
19653     cat >>confdefs.h <<\_ACEOF
19654 #define HAVE_KRB5 1
19655 _ACEOF
19656
19657
19658     case $PRO_C_DEFS in
19659         *DEFINE=HAVE_KRB5*) ;;
19660         *) PRO_C_DEFS=DEFINE=HAVE_KRB5\ $PRO_C_DEFS ;;
19661     esac
19662
19663
19664     KRB5_LIBS="-lkrb5 -l${crypto} -lcom_err -lresolv"
19665     REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb5 -l${crypto} -lresolv"
19666 else
19667     REG_SVR_DEFS=-DKRB4
19668     REG_SVR_LIBS=-lkadm
19669 fi
19670
19671
19672
19673
19674 # Hesiod support
19675 echo "$as_me:$LINENO: checking for Hesiod" >&5
19676 echo $ECHO_N "checking for Hesiod... $ECHO_C" >&6
19677
19678 # Check whether --with-hesiod or --without-hesiod was given.
19679 if test "${with_hesiod+set}" = set; then
19680   withval="$with_hesiod"
19681   hesiod="$withval"
19682 else
19683   hesiod=no
19684 fi;
19685 echo "$as_me:$LINENO: result: $hesiod" >&5
19686 echo "${ECHO_T}$hesiod" >&6
19687 if test "$hesiod" != no; then
19688     if test "$hesiod" != yes; then
19689
19690
19691     case $CPPFLAGS in
19692         *-I$hesiod/include*) ;;
19693         *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
19694     esac
19695
19696
19697     case $PRO_C_INCLUDES in
19698         *INCLUDE=$hesiod/include*) ;;
19699         *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
19700     esac
19701
19702
19703
19704     case $LIBPATH in
19705         *-L$hesiod/lib*) ;;
19706         *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
19707     esac
19708
19709     fi
19710     echo "$as_me:$LINENO: checking for res_send" >&5
19711 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19712 if test "${ac_cv_func_res_send+set}" = set; then
19713   echo $ECHO_N "(cached) $ECHO_C" >&6
19714 else
19715   cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h.  */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h.  */
19721 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19723 #define res_send innocuous_res_send
19724
19725 /* System header to define __stub macros and hopefully few prototypes,
19726     which can conflict with char res_send (); below.
19727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19728     <limits.h> exists even on freestanding compilers.  */
19729
19730 #ifdef __STDC__
19731 # include <limits.h>
19732 #else
19733 # include <assert.h>
19734 #endif
19735
19736 #undef res_send
19737
19738 /* Override any gcc2 internal prototype to avoid an error.  */
19739 #ifdef __cplusplus
19740 extern "C"
19741 {
19742 #endif
19743 /* We use char because int might match the return type of a gcc2
19744    builtin and then its argument prototype would still apply.  */
19745 char res_send ();
19746 /* The GNU C library defines this for functions which it implements
19747     to always fail with ENOSYS.  Some functions are actually named
19748     something starting with __ and the normal name is an alias.  */
19749 #if defined (__stub_res_send) || defined (__stub___res_send)
19750 choke me
19751 #else
19752 char (*f) () = res_send;
19753 #endif
19754 #ifdef __cplusplus
19755 }
19756 #endif
19757
19758 int
19759 main ()
19760 {
19761 return f != res_send;
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19768   (eval $ac_link) 2>conftest.er1
19769   ac_status=$?
19770   grep -v '^ *+' conftest.er1 >conftest.err
19771   rm -f conftest.er1
19772   cat conftest.err >&5
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); } &&
19775          { ac_try='test -z "$ac_c_werror_flag"
19776                          || test ! -s conftest.err'
19777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778   (eval $ac_try) 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; } &&
19782          { ac_try='test -s conftest$ac_exeext'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; }; then
19788   ac_cv_func_res_send=yes
19789 else
19790   echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 ac_cv_func_res_send=no
19794 fi
19795 rm -f conftest.err conftest.$ac_objext \
19796       conftest$ac_exeext conftest.$ac_ext
19797 fi
19798 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19799 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19800 if test $ac_cv_func_res_send = yes; then
19801   :
19802 else
19803
19804 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19805 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19806 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809   ac_check_lib_save_LIBS=$LIBS
19810 LIBS="-lresolv  $LIBS"
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817
19818 /* Override any gcc2 internal prototype to avoid an error.  */
19819 #ifdef __cplusplus
19820 extern "C"
19821 #endif
19822 /* We use char because int might match the return type of a gcc2
19823    builtin and then its argument prototype would still apply.  */
19824 char res_send ();
19825 int
19826 main ()
19827 {
19828 res_send ();
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835   (eval $ac_link) 2>conftest.er1
19836   ac_status=$?
19837   grep -v '^ *+' conftest.er1 >conftest.err
19838   rm -f conftest.er1
19839   cat conftest.err >&5
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); } &&
19842          { ac_try='test -z "$ac_c_werror_flag"
19843                          || test ! -s conftest.err'
19844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845   (eval $ac_try) 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }; } &&
19849          { ac_try='test -s conftest$ac_exeext'
19850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851   (eval $ac_try) 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; }; then
19855   ac_cv_lib_resolv_res_send=yes
19856 else
19857   echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 ac_cv_lib_resolv_res_send=no
19861 fi
19862 rm -f conftest.err conftest.$ac_objext \
19863       conftest$ac_exeext conftest.$ac_ext
19864 LIBS=$ac_check_lib_save_LIBS
19865 fi
19866 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19867 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19868 if test $ac_cv_lib_resolv_res_send = yes; then
19869   cat >>confdefs.h <<_ACEOF
19870 #define HAVE_LIBRESOLV 1
19871 _ACEOF
19872
19873   LIBS="-lresolv $LIBS"
19874
19875 fi
19876
19877 fi
19878
19879     echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
19880 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6
19881 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   ac_check_lib_save_LIBS=$LIBS
19885 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892
19893 /* Override any gcc2 internal prototype to avoid an error.  */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 /* We use char because int might match the return type of a gcc2
19898    builtin and then its argument prototype would still apply.  */
19899 char hes_resolve ();
19900 int
19901 main ()
19902 {
19903 hes_resolve ();
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910   (eval $ac_link) 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag"
19918                          || test ! -s conftest.err'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; } &&
19924          { ac_try='test -s conftest$ac_exeext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_lib_hesiod_hes_resolve=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_lib_hesiod_hes_resolve=no
19936 fi
19937 rm -f conftest.err conftest.$ac_objext \
19938       conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19940 fi
19941 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
19942 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6
19943 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
19944   :
19945 else
19946   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
19947 echo "$as_me: error: Hesiod library not found" >&2;}
19948    { (exit 1); exit 1; }; }
19949 fi
19950
19951
19952     cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_HESIOD 1
19954 _ACEOF
19955
19956
19957     case $PRO_C_DEFS in
19958         *DEFINE=HAVE_HESIOD*) ;;
19959         *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
19960     esac
19961
19962
19963 fi
19964
19965 # Zephyr support
19966 echo "$as_me:$LINENO: checking for Zephyr" >&5
19967 echo $ECHO_N "checking for Zephyr... $ECHO_C" >&6
19968
19969 # Check whether --with-zephyr or --without-zephyr was given.
19970 if test "${with_zephyr+set}" = set; then
19971   withval="$with_zephyr"
19972   zephyr="$withval"
19973 else
19974   zephyr=no
19975 fi;
19976 echo "$as_me:$LINENO: result: $zephyr" >&5
19977 echo "${ECHO_T}$zephyr" >&6
19978 if test "$zephyr" != no; then
19979     if test "$zephyr" != yes; then
19980
19981
19982     case $CPPFLAGS in
19983         *-I$zephyr/include*) ;;
19984         *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
19985     esac
19986
19987
19988     case $PRO_C_INCLUDES in
19989         *INCLUDE=$zephyr/include*) ;;
19990         *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
19991     esac
19992
19993
19994
19995     case $LIBPATH in
19996         *-L$zephyr/lib*) ;;
19997         *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
19998     esac
19999
20000     fi
20001     echo "$as_me:$LINENO: checking for ZInitialize in -lzephyr" >&5
20002 echo $ECHO_N "checking for ZInitialize in -lzephyr... $ECHO_C" >&6
20003 if test "${ac_cv_lib_zephyr_ZInitialize+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   ac_check_lib_save_LIBS=$LIBS
20007 LIBS="-lzephyr $LIBPATH $KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014
20015 /* Override any gcc2 internal prototype to avoid an error.  */
20016 #ifdef __cplusplus
20017 extern "C"
20018 #endif
20019 /* We use char because int might match the return type of a gcc2
20020    builtin and then its argument prototype would still apply.  */
20021 char ZInitialize ();
20022 int
20023 main ()
20024 {
20025 ZInitialize ();
20026   ;
20027   return 0;
20028 }
20029 _ACEOF
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20032   (eval $ac_link) 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } &&
20039          { ac_try='test -z "$ac_c_werror_flag"
20040                          || test ! -s conftest.err'
20041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042   (eval $ac_try) 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; } &&
20046          { ac_try='test -s conftest$ac_exeext'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; }; then
20052   ac_cv_lib_zephyr_ZInitialize=yes
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_cv_lib_zephyr_ZInitialize=no
20058 fi
20059 rm -f conftest.err conftest.$ac_objext \
20060       conftest$ac_exeext conftest.$ac_ext
20061 LIBS=$ac_check_lib_save_LIBS
20062 fi
20063 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitialize" >&5
20064 echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitialize" >&6
20065 if test $ac_cv_lib_zephyr_ZInitialize = yes; then
20066   :
20067 else
20068   { { echo "$as_me:$LINENO: error: Zephyr library not found" >&5
20069 echo "$as_me: error: Zephyr library not found" >&2;}
20070    { (exit 1); exit 1; }; }
20071 fi
20072
20073
20074     cat >>confdefs.h <<\_ACEOF
20075 #define HAVE_ZEPHYR 1
20076 _ACEOF
20077
20078
20079     case $PRO_C_DEFS in
20080         *DEFINE=HAVE_ZEPHYR*) ;;
20081         *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
20082     esac
20083
20084
20085 fi
20086
20087 # RSAREF support (default: build util/rsaref if present)
20088 echo "$as_me:$LINENO: checking for RSAREF" >&5
20089 echo $ECHO_N "checking for RSAREF... $ECHO_C" >&6
20090
20091 # Check whether --with-rsaref or --without-rsaref was given.
20092 if test "${with_rsaref+set}" = set; then
20093   withval="$with_rsaref"
20094   rsaref="$withval"
20095      RSAREF_CPPFLAGS="-I$rsaref/include"
20096      RSAREF_LIBS="$rsaref/lib/rsaref.a"
20097 else
20098   RSAREF_SUBDIRS=reg_svr
20099     if test -d $srcdir/util/rsaref; then
20100          rsaref=$srcdir/util/rsaref
20101          RSAREF_SUBDIRS="util/rsaref reg_svr"
20102          RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
20103          # autoconf can't deal with creating util/rsaref if util doesn't exist
20104          if test ! -d util; then
20105              mkdir util
20106          fi
20107          RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
20108          RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
20109          RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
20110      else
20111          rsaref=no
20112      fi
20113 fi;
20114 echo "$as_me:$LINENO: result: $rsaref" >&5
20115 echo "${ECHO_T}$rsaref" >&6
20116 if test "$rsaref" != no; then
20117
20118     cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_RSAREF 1
20120 _ACEOF
20121
20122
20123     case $PRO_C_DEFS in
20124         *DEFINE=HAVE_RSAREF*) ;;
20125         *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
20126     esac
20127
20128
20129 fi
20130
20131
20132
20133
20134
20135 # Oracle (default: yes, if $ORACLE_HOME is set)
20136 echo "$as_me:$LINENO: checking for Oracle" >&5
20137 echo $ECHO_N "checking for Oracle... $ECHO_C" >&6
20138
20139 # Check whether --with-oracle or --without-oracle was given.
20140 if test "${with_oracle+set}" = set; then
20141   withval="$with_oracle"
20142   oracle="$withval"
20143 else
20144   if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
20145          oracle=$ORACLE_HOME
20146      else
20147          oracle=no
20148      fi
20149 fi;
20150 echo "$as_me:$LINENO: result: $oracle" >&5
20151 echo "${ECHO_T}$oracle" >&6
20152 if test "$oracle" != no; then
20153     echo "$as_me:$LINENO: checking Pro*C version" >&5
20154 echo $ECHO_N "checking Pro*C version... $ECHO_C" >&6
20155     ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
20156     echo "$as_me:$LINENO: result: $release" >&5
20157 echo "${ECHO_T}$release" >&6
20158     case $release in
20159         2.0.6.0.0)
20160             SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
20161             ;;
20162         2.2.4.0.0)
20163             SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric   -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
20164             ;;
20165         8.1.7.4.0)
20166             SQL_LIBS="-L$oracle/lib -lclntsh `cat $oracle/lib/sysliblist` -R$oracle/lib -laio -lm -lthread"
20167             ;;
20168         10.2.0.2.0)
20169             SQL_LIBS="-L$oracle/lib32 -lclntsh `cat $oracle/lib32/ldflags` `cat $oracle/lib32/sysliblist` -R$oracle/lib32 -laio -lposix4 -lm -lthread"
20170             ;;
20171         *)
20172             { { echo "$as_me:$LINENO: error: Unsupported Oracle release" >&5
20173 echo "$as_me: error: Unsupported Oracle release" >&2;}
20174    { (exit 1); exit 1; }; }
20175             ;;
20176     esac
20177     SVRSUBDIRS='$(SVRDIRS)'
20178     SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile incremental/mailman/Makefile reg_svr/Makefile regtape/Makefile"
20179     PRO_C=$oracle/bin/proc
20180     PRO_C_OPTS=CODE=ANSI_C
20181     PRO_C_DEFS="DEFINE=_PROC_ DEFINE=__sparc $PRO_C_DEFS"
20182 fi
20183
20184
20185
20186
20187
20188
20189
20190 # Java support, for webmoira
20191 echo "$as_me:$LINENO: checking for Java" >&5
20192 echo $ECHO_N "checking for Java... $ECHO_C" >&6
20193
20194 # Check whether --with-java or --without-java was given.
20195 if test "${with_java+set}" = set; then
20196   withval="$with_java"
20197    java="$withval"
20198 else
20199   if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
20200         java=$JAVA_HOME
20201      else
20202         java=no
20203      fi
20204 fi;
20205 echo "$as_me:$LINENO: result: $java" >&5
20206 echo "${ECHO_T}$java" >&6
20207 if test "$java" != no; then
20208     if test "$java" != yes; then
20209         JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
20210     fi
20211
20212     cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_JAVA 1
20214 _ACEOF
20215
20216
20217     case $PRO_C_DEFS in
20218         *DEFINE=HAVE_JAVA*) ;;
20219         *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
20220     esac
20221
20222
20223
20224     WEBMOIRA_SUBDIRS="webmoira"
20225     WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
20226 fi
20227
20228
20229
20230 # LDAP support
20231 echo "$as_me:$LINENO: checking for LDAP" >&5
20232 echo $ECHO_N "checking for LDAP... $ECHO_C" >&6
20233
20234 # Check whether --with-ldap or --without-ldap was given.
20235 if test "${with_ldap+set}" = set; then
20236   withval="$with_ldap"
20237    ldap="$withval"
20238 else
20239   if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
20240          ldap=$LDAP_HOME
20241      else
20242          ldap=no
20243      fi
20244 fi;
20245 echo "$as_me:$LINENO: result: $ldap" >&5
20246 echo "${ECHO_T}$ldap" >&6
20247 if test "$ldap" != no -a "$oracle" != no; then
20248     if test "$ldap" != yes; then
20249         LDAP_CPPFLAGS="-I$ldap/include"
20250         LDAP_LIBS="-L$ldap/lib"
20251     fi
20252
20253     cat >>confdefs.h <<\_ACEOF
20254 #define HAVE_LDAP 1
20255 _ACEOF
20256
20257
20258     case $PRO_C_DEFS in
20259         *DEFINE=HAVE_LDAP*) ;;
20260         *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
20261     esac
20262
20263
20264
20265     WINAD_SUBDIRS="winad ldap"
20266     WINAD_OUTPUT_FILES="incremental/winad/Makefile incremental/ldap/Makefile"
20267 fi
20268
20269
20270
20271
20272 # AFS support
20273 echo "$as_me:$LINENO: checking for AFS" >&5
20274 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
20275
20276 # Check whether --with-afs or --without-afs was given.
20277 if test "${with_afs+set}" = set; then
20278   withval="$with_afs"
20279   afs="$withval"
20280 else
20281   afs=no
20282 fi;
20283 echo "$as_me:$LINENO: result: $afs" >&5
20284 echo "${ECHO_T}$afs" >&6
20285 if test "$afs" != no -a "$oracle" != no; then
20286     if test "$afs" != yes; then
20287         AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
20288         AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
20289         AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
20290         AFS_DIR=$afs
20291     fi
20292     echo "$as_me:$LINENO: checking for pioctl in -lsys" >&5
20293 echo $ECHO_N "checking for pioctl in -lsys... $ECHO_C" >&6
20294 if test "${ac_cv_lib_sys_pioctl+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297   ac_check_lib_save_LIBS=$LIBS
20298 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys -lafsutil $LIBS"
20299 cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305
20306 /* Override any gcc2 internal prototype to avoid an error.  */
20307 #ifdef __cplusplus
20308 extern "C"
20309 #endif
20310 /* We use char because int might match the return type of a gcc2
20311    builtin and then its argument prototype would still apply.  */
20312 char pioctl ();
20313 int
20314 main ()
20315 {
20316 pioctl ();
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20323   (eval $ac_link) 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } &&
20330          { ac_try='test -z "$ac_c_werror_flag"
20331                          || test ! -s conftest.err'
20332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333   (eval $ac_try) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; } &&
20337          { ac_try='test -s conftest$ac_exeext'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; }; then
20343   ac_cv_lib_sys_pioctl=yes
20344 else
20345   echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_cv_lib_sys_pioctl=no
20349 fi
20350 rm -f conftest.err conftest.$ac_objext \
20351       conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20353 fi
20354 echo "$as_me:$LINENO: result: $ac_cv_lib_sys_pioctl" >&5
20355 echo "${ECHO_T}$ac_cv_lib_sys_pioctl" >&6
20356 if test $ac_cv_lib_sys_pioctl = yes; then
20357   :
20358 else
20359   { { echo "$as_me:$LINENO: error: AFS libraries not found" >&5
20360 echo "$as_me: error: AFS libraries not found" >&2;}
20361    { (exit 1); exit 1; }; }
20362 fi
20363
20364
20365     cat >>confdefs.h <<\_ACEOF
20366 #define HAVE_AFS 1
20367 _ACEOF
20368
20369
20370     case $PRO_C_DEFS in
20371         *DEFINE=HAVE_AFS*) ;;
20372         *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
20373     esac
20374
20375
20376
20377     AFS_SUBDIRS="afs"
20378     AFS_OUTPUT_FILES="incremental/afs/Makefile"
20379     if test -d $srcdir/afssync; then
20380         AFS_SYNCDIR="afssync"
20381         AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
20382     fi
20383 fi
20384
20385
20386
20387
20388
20389
20390
20391 # GNU readline
20392 { echo "$as_me:$LINENO: checking for GNU readline......" >&5
20393 echo "$as_me: checking for GNU readline......" >&6;}
20394
20395 # Check whether --with-readline or --without-readline was given.
20396 if test "${with_readline+set}" = set; then
20397   withval="$with_readline"
20398   readline="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
20399 echo "${ECHO_T}$withval" >&6
20400 else
20401   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20402 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20403 if test "${ac_cv_lib_readline_readline+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lreadline -ltermcap $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414
20415 /* Override any gcc2 internal prototype to avoid an error.  */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 /* We use char because int might match the return type of a gcc2
20420    builtin and then its argument prototype would still apply.  */
20421 char readline ();
20422 int
20423 main ()
20424 {
20425 readline ();
20426   ;
20427   return 0;
20428 }
20429 _ACEOF
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20432   (eval $ac_link) 2>conftest.er1
20433   ac_status=$?
20434   grep -v '^ *+' conftest.er1 >conftest.err
20435   rm -f conftest.er1
20436   cat conftest.err >&5
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } &&
20439          { ac_try='test -z "$ac_c_werror_flag"
20440                          || test ! -s conftest.err'
20441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442   (eval $ac_try) 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; } &&
20446          { ac_try='test -s conftest$ac_exeext'
20447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448   (eval $ac_try) 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); }; }; then
20452   ac_cv_lib_readline_readline=yes
20453 else
20454   echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457 ac_cv_lib_readline_readline=no
20458 fi
20459 rm -f conftest.err conftest.$ac_objext \
20460       conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20462 fi
20463 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20464 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20465 if test $ac_cv_lib_readline_readline = yes; then
20466   readline=yes
20467 else
20468   if test "$athena" = true; then
20469              unset ac_cv_lib_readline_readline
20470              echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20471 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20472 if test "${ac_cv_lib_readline_readline+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475   ac_check_lib_save_LIBS=$LIBS
20476 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483
20484 /* Override any gcc2 internal prototype to avoid an error.  */
20485 #ifdef __cplusplus
20486 extern "C"
20487 #endif
20488 /* We use char because int might match the return type of a gcc2
20489    builtin and then its argument prototype would still apply.  */
20490 char readline ();
20491 int
20492 main ()
20493 {
20494 readline ();
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20501   (eval $ac_link) 2>conftest.er1
20502   ac_status=$?
20503   grep -v '^ *+' conftest.er1 >conftest.err
20504   rm -f conftest.er1
20505   cat conftest.err >&5
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } &&
20508          { ac_try='test -z "$ac_c_werror_flag"
20509                          || test ! -s conftest.err'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; } &&
20515          { ac_try='test -s conftest$ac_exeext'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; }; then
20521   ac_cv_lib_readline_readline=yes
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_cv_lib_readline_readline=no
20527 fi
20528 rm -f conftest.err conftest.$ac_objext \
20529       conftest$ac_exeext conftest.$ac_ext
20530 LIBS=$ac_check_lib_save_LIBS
20531 fi
20532 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20533 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20534 if test $ac_cv_lib_readline_readline = yes; then
20535   readline=/mit/gnu
20536 else
20537   :
20538 fi
20539
20540          fi
20541 fi
20542
20543 fi;
20544 if test "$readline" != no; then
20545     if test "$readline" != yes; then
20546         READLINE_CPPFLAGS="-I$readline/include"
20547         READLINE_LIBS="-L$readline/lib"
20548     fi
20549     READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
20550     READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
20551 fi
20552
20553
20554
20555 # Curses
20556 curses=curses
20557 { echo "$as_me:$LINENO: checking for curses..." >&5
20558 echo "$as_me: checking for curses..." >&6;}
20559 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
20560 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
20561 if test "${ac_cv_lib_curses_main+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-lcurses  $LIBS"
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h.  */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h.  */
20572
20573
20574 int
20575 main ()
20576 {
20577 main ();
20578   ;
20579   return 0;
20580 }
20581 _ACEOF
20582 rm -f conftest.$ac_objext conftest$ac_exeext
20583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20584   (eval $ac_link) 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } &&
20591          { ac_try='test -z "$ac_c_werror_flag"
20592                          || test ! -s conftest.err'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; } &&
20598          { ac_try='test -s conftest$ac_exeext'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; }; then
20604   ac_cv_lib_curses_main=yes
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 ac_cv_lib_curses_main=no
20610 fi
20611 rm -f conftest.err conftest.$ac_objext \
20612       conftest$ac_exeext conftest.$ac_ext
20613 LIBS=$ac_check_lib_save_LIBS
20614 fi
20615 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
20616 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
20617 if test $ac_cv_lib_curses_main = yes; then
20618   :
20619 else
20620   echo "$as_me:$LINENO: checking for main in -lncurses" >&5
20621 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
20622 if test "${ac_cv_lib_ncurses_main+set}" = set; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-lncurses  $LIBS"
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633
20634
20635 int
20636 main ()
20637 {
20638 main ();
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645   (eval $ac_link) 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } &&
20652          { ac_try='test -z "$ac_c_werror_flag"
20653                          || test ! -s conftest.err'
20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655   (eval $ac_try) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; } &&
20659          { ac_try='test -s conftest$ac_exeext'
20660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661   (eval $ac_try) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   ac_cv_lib_ncurses_main=yes
20666 else
20667   echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_cv_lib_ncurses_main=no
20671 fi
20672 rm -f conftest.err conftest.$ac_objext \
20673       conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20675 fi
20676 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
20677 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
20678 if test $ac_cv_lib_ncurses_main = yes; then
20679   curses=ncurses
20680 fi
20681
20682 fi
20683
20684 if test -n "$curses"; then
20685     OLDLIBS=$LIBS
20686     LIBS=-l$curses
20687     { echo "$as_me:$LINENO: checking if curses needs termcap..." >&5
20688 echo "$as_me: checking if curses needs termcap..." >&6;}
20689                 if test "$cross_compiling" = yes; then
20690   :
20691 else
20692   cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 #include <curses.h>
20699                 main(int argc, char **argv)
20700                 {
20701                     initscr();
20702                     endwin();
20703                     return 0;
20704                 }
20705 _ACEOF
20706 rm -f conftest$ac_exeext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708   (eval $ac_link) 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713   (eval $ac_try) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; }; then
20717   CURSES_LIBS="-l$curses"
20718 else
20719   echo "$as_me: program exited with status $ac_status" >&5
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723 ( exit $ac_status )
20724 LIBS="-l$curses -ltermcap"
20725                 if test "$cross_compiling" = yes; then
20726   :
20727 else
20728   cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 #include <curses.h>
20735                             main(int argc, char **argv)
20736                             {
20737                                 initscr();
20738                                 endwin();
20739                                 return 0;
20740                             }
20741 _ACEOF
20742 rm -f conftest$ac_exeext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20744   (eval $ac_link) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; }; then
20753   CURSES_LIBS="-l$curses -ltermcap"
20754 else
20755   echo "$as_me: program exited with status $ac_status" >&5
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ( exit $ac_status )
20760 :
20761 fi
20762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20763 fi
20764 fi
20765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20766 fi
20767     LIBS=$OLDLIBS
20768 fi
20769 if test -n "$CURSES_LIBS"; then
20770     OLDLIBS=$LIBS
20771     LIBS=$CURSES_LIBS
20772     cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778 #include <curses.h>
20779 int
20780 main ()
20781 {
20782 WINDOW *w; getmaxx(w);
20783   ;
20784   return 0;
20785 }
20786 _ACEOF
20787 rm -f conftest.$ac_objext conftest$ac_exeext
20788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789   (eval $ac_link) 2>conftest.er1
20790   ac_status=$?
20791   grep -v '^ *+' conftest.er1 >conftest.err
20792   rm -f conftest.er1
20793   cat conftest.err >&5
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } &&
20796          { ac_try='test -z "$ac_c_werror_flag"
20797                          || test ! -s conftest.err'
20798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799   (eval $ac_try) 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; } &&
20803          { ac_try='test -s conftest$ac_exeext'
20804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805   (eval $ac_try) 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); }; }; then
20809   :
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h.  */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h.  */
20820 #include <curses.h>
20821 int
20822 main ()
20823 {
20824 WINDOW *w; w->_maxx;
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831   (eval $ac_compile) 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } &&
20838          { ac_try='test -z "$ac_c_werror_flag"
20839                          || test ! -s conftest.err'
20840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841   (eval $ac_try) 2>&5
20842   ac_status=$?
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); }; } &&
20845          { ac_try='test -s conftest.$ac_objext'
20846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847   (eval $ac_try) 2>&5
20848   ac_status=$?
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); }; }; then
20851   CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
20857 fi
20858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20859 fi
20860 rm -f conftest.err conftest.$ac_objext \
20861       conftest$ac_exeext conftest.$ac_ext
20862     cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <curses.h>
20869 int
20870 main ()
20871 {
20872 newterm(NULL, NULL, NULL);
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879   (eval $ac_link) 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -z "$ac_c_werror_flag"
20887                          || test ! -s conftest.err'
20888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889   (eval $ac_try) 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; } &&
20893          { ac_try='test -s conftest$ac_exeext'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; }; then
20899   CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
20900 else
20901   echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 fi
20905 rm -f conftest.err conftest.$ac_objext \
20906       conftest$ac_exeext conftest.$ac_ext
20907     LIBS=$OLDLIBS
20908     CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
20909     CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
20910 else
20911     { echo "$as_me:$LINENO: WARNING: Couldn't find -lcurses" >&5
20912 echo "$as_me: WARNING: Couldn't find -lcurses" >&2;}
20913 fi
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924 for ac_func in getusershell strlcpy strlcat uname strvis
20925 do
20926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20927 echo "$as_me:$LINENO: checking for $ac_func" >&5
20928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20929 if eval "test \"\${$as_ac_var+set}\" = set"; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20940 #define $ac_func innocuous_$ac_func
20941
20942 /* System header to define __stub macros and hopefully few prototypes,
20943     which can conflict with char $ac_func (); below.
20944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20945     <limits.h> exists even on freestanding compilers.  */
20946
20947 #ifdef __STDC__
20948 # include <limits.h>
20949 #else
20950 # include <assert.h>
20951 #endif
20952
20953 #undef $ac_func
20954
20955 /* Override any gcc2 internal prototype to avoid an error.  */
20956 #ifdef __cplusplus
20957 extern "C"
20958 {
20959 #endif
20960 /* We use char because int might match the return type of a gcc2
20961    builtin and then its argument prototype would still apply.  */
20962 char $ac_func ();
20963 /* The GNU C library defines this for functions which it implements
20964     to always fail with ENOSYS.  Some functions are actually named
20965     something starting with __ and the normal name is an alias.  */
20966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20967 choke me
20968 #else
20969 char (*f) () = $ac_func;
20970 #endif
20971 #ifdef __cplusplus
20972 }
20973 #endif
20974
20975 int
20976 main ()
20977 {
20978 return f != $ac_func;
20979   ;
20980   return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext conftest$ac_exeext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20985   (eval $ac_link) 2>conftest.er1
20986   ac_status=$?
20987   grep -v '^ *+' conftest.er1 >conftest.err
20988   rm -f conftest.er1
20989   cat conftest.err >&5
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } &&
20992          { ac_try='test -z "$ac_c_werror_flag"
20993                          || test ! -s conftest.err'
20994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995   (eval $ac_try) 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; } &&
20999          { ac_try='test -s conftest$ac_exeext'
21000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; }; then
21005   eval "$as_ac_var=yes"
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 eval "$as_ac_var=no"
21011 fi
21012 rm -f conftest.err conftest.$ac_objext \
21013       conftest$ac_exeext conftest.$ac_ext
21014 fi
21015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21017 if test `eval echo '${'$as_ac_var'}'` = yes; then
21018   cat >>confdefs.h <<_ACEOF
21019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21020 _ACEOF
21021
21022 fi
21023 done
21024
21025
21026 echo "$as_me:$LINENO: checking for sigaction" >&5
21027 echo $ECHO_N "checking for sigaction... $ECHO_C" >&6
21028 if test "${ac_cv_func_sigaction+set}" = set; then
21029   echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21031   cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h.  */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h.  */
21037 /* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
21038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21039 #define sigaction innocuous_sigaction
21040
21041 /* System header to define __stub macros and hopefully few prototypes,
21042     which can conflict with char sigaction (); below.
21043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21044     <limits.h> exists even on freestanding compilers.  */
21045
21046 #ifdef __STDC__
21047 # include <limits.h>
21048 #else
21049 # include <assert.h>
21050 #endif
21051
21052 #undef sigaction
21053
21054 /* Override any gcc2 internal prototype to avoid an error.  */
21055 #ifdef __cplusplus
21056 extern "C"
21057 {
21058 #endif
21059 /* We use char because int might match the return type of a gcc2
21060    builtin and then its argument prototype would still apply.  */
21061 char sigaction ();
21062 /* The GNU C library defines this for functions which it implements
21063     to always fail with ENOSYS.  Some functions are actually named
21064     something starting with __ and the normal name is an alias.  */
21065 #if defined (__stub_sigaction) || defined (__stub___sigaction)
21066 choke me
21067 #else
21068 char (*f) () = sigaction;
21069 #endif
21070 #ifdef __cplusplus
21071 }
21072 #endif
21073
21074 int
21075 main ()
21076 {
21077 return f != sigaction;
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084   (eval $ac_link) 2>conftest.er1
21085   ac_status=$?
21086   grep -v '^ *+' conftest.er1 >conftest.err
21087   rm -f conftest.er1
21088   cat conftest.err >&5
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); } &&
21091          { ac_try='test -z "$ac_c_werror_flag"
21092                          || test ! -s conftest.err'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; } &&
21098          { ac_try='test -s conftest$ac_exeext'
21099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100   (eval $ac_try) 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; }; then
21104   ac_cv_func_sigaction=yes
21105 else
21106   echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21108
21109 ac_cv_func_sigaction=no
21110 fi
21111 rm -f conftest.err conftest.$ac_objext \
21112       conftest$ac_exeext conftest.$ac_ext
21113 fi
21114 echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
21115 echo "${ECHO_T}$ac_cv_func_sigaction" >&6
21116 if test $ac_cv_func_sigaction = yes; then
21117   cat >>confdefs.h <<\_ACEOF
21118 #define HAVE_POSIX_SIGNALS 1
21119 _ACEOF
21120
21121 fi
21122
21123
21124
21125
21126 for ac_header in unistd.h getopt.h
21127 do
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21130   echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 fi
21135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21137 else
21138   # Is the header compilable?
21139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 $ac_includes_default
21148 #include <$ac_header>
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152   (eval $ac_compile) 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -z "$ac_c_werror_flag"
21160                          || test ! -s conftest.err'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; } &&
21166          { ac_try='test -s conftest.$ac_objext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ac_header_compiler=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ac_header_compiler=no
21178 fi
21179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21181 echo "${ECHO_T}$ac_header_compiler" >&6
21182
21183 # Is the header present?
21184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h.  */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h.  */
21192 #include <$ac_header>
21193 _ACEOF
21194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } >/dev/null; then
21202   if test -s conftest.err; then
21203     ac_cpp_err=$ac_c_preproc_warn_flag
21204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21205   else
21206     ac_cpp_err=
21207   fi
21208 else
21209   ac_cpp_err=yes
21210 fi
21211 if test -z "$ac_cpp_err"; then
21212   ac_header_preproc=yes
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217   ac_header_preproc=no
21218 fi
21219 rm -f conftest.err conftest.$ac_ext
21220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21221 echo "${ECHO_T}$ac_header_preproc" >&6
21222
21223 # So?  What about this header?
21224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21225   yes:no: )
21226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21230     ac_header_preproc=yes
21231     ;;
21232   no:yes:* )
21233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21245     (
21246       cat <<\_ASBOX
21247 ## ------------------------------------------ ##
21248 ## Report this to the AC_PACKAGE_NAME lists.  ##
21249 ## ------------------------------------------ ##
21250 _ASBOX
21251     ) |
21252       sed "s/^/$as_me: WARNING:     /" >&2
21253     ;;
21254 esac
21255 echo "$as_me:$LINENO: checking for $ac_header" >&5
21256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260   eval "$as_ac_Header=\$ac_header_preproc"
21261 fi
21262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21264
21265 fi
21266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267   cat >>confdefs.h <<_ACEOF
21268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269 _ACEOF
21270
21271 fi
21272
21273 done
21274
21275
21276 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21277   echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21278 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21279 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21280   echo $ECHO_N "(cached) $ECHO_C" >&6
21281 fi
21282 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21283 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21284 else
21285   # Is the header compilable?
21286 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21287 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294 $ac_includes_default
21295 #include <netinet/in.h>
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299   (eval $ac_compile) 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -z "$ac_c_werror_flag"
21307                          || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_header_compiler=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_header_compiler=no
21325 fi
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328 echo "${ECHO_T}$ac_header_compiler" >&6
21329
21330 # Is the header present?
21331 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21332 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 #include <netinet/in.h>
21340 _ACEOF
21341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21343   ac_status=$?
21344   grep -v '^ *+' conftest.er1 >conftest.err
21345   rm -f conftest.er1
21346   cat conftest.err >&5
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } >/dev/null; then
21349   if test -s conftest.err; then
21350     ac_cpp_err=$ac_c_preproc_warn_flag
21351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21352   else
21353     ac_cpp_err=
21354   fi
21355 else
21356   ac_cpp_err=yes
21357 fi
21358 if test -z "$ac_cpp_err"; then
21359   ac_header_preproc=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364   ac_header_preproc=no
21365 fi
21366 rm -f conftest.err conftest.$ac_ext
21367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6
21369
21370 # So?  What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21372   yes:no: )
21373     { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375     { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21377     ac_header_preproc=yes
21378     ;;
21379   no:yes:* )
21380     { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21382     { echo "$as_me:$LINENO: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21388     { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21390     { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21392     (
21393       cat <<\_ASBOX
21394 ## ------------------------------------------ ##
21395 ## Report this to the AC_PACKAGE_NAME lists.  ##
21396 ## ------------------------------------------ ##
21397 _ASBOX
21398     ) |
21399       sed "s/^/$as_me: WARNING:     /" >&2
21400     ;;
21401 esac
21402 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21403 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21404 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   ac_cv_header_netinet_in_h=$ac_header_preproc
21408 fi
21409 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21410 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21411
21412 fi
21413 if test $ac_cv_header_netinet_in_h = yes; then
21414   cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_NETINET_IN_H 1
21416 _ACEOF
21417
21418 else
21419   no_netinet_in=yes
21420 fi
21421
21422
21423
21424 if test "$no_netinet_in" != "yes"; then
21425     echo "$as_me:$LINENO: checking for in_addr_t defined in netinet/in.h" >&5
21426 echo $ECHO_N "checking for in_addr_t defined in netinet/in.h... $ECHO_C" >&6
21427     cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 #include <netinet/in.h>
21434
21435 _ACEOF
21436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21437   $EGREP "in_addr_t" >/dev/null 2>&1; then
21438   ac_cv_type_in_addr_t=yes
21439 else
21440   ac_cv_type_in_addr_t=no
21441 fi
21442 rm -f conftest*
21443
21444     echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21445 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
21446 fi
21447
21448 if test "$ac_cv_type_in_addr_t" != "yes"; then
21449   cat >>confdefs.h <<\_ACEOF
21450 #define in_addr_t uint32_t
21451 _ACEOF
21452
21453 fi
21454
21455
21456     case $PRO_C_INCLUDES in
21457         *INCLUDE='$(srcdir)'*) ;;
21458         *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
21459     esac
21460
21461
21462
21463     case $CPPFLAGS in
21464         *-I'$(SRCTOP)/include'*) ;;
21465         *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
21466     esac
21467
21468
21469     case $PRO_C_INCLUDES in
21470         *INCLUDE='$(SRCTOP)/include'*) ;;
21471         *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
21472     esac
21473
21474
21475
21476
21477     case $CPPFLAGS in
21478         *-I'$(SRCTOP)/lib'*) ;;
21479         *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
21480     esac
21481
21482
21483     case $PRO_C_INCLUDES in
21484         *INCLUDE='$(SRCTOP)/lib'*) ;;
21485         *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
21486     esac
21487
21488
21489
21490
21491     case $CPPFLAGS in
21492         *-I'$(BUILDTOP)/lib'*) ;;
21493         *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
21494     esac
21495
21496
21497     case $PRO_C_INCLUDES in
21498         *INCLUDE='$(BUILDTOP)/lib'*) ;;
21499         *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
21500     esac
21501
21502
21503
21504
21505     case $CPPFLAGS in
21506         *-I'$(BUILDTOP)/db'*) ;;
21507         *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
21508     esac
21509
21510
21511     case $PRO_C_INCLUDES in
21512         *INCLUDE='$(BUILDTOP)/db'*) ;;
21513         *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
21514     esac
21515
21516
21517
21518
21519     case $CPPFLAGS in
21520         *-I'$(srcdir)'*) ;;
21521         *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
21522     esac
21523
21524
21525     case $PRO_C_INCLUDES in
21526         *INCLUDE='$(srcdir)'*) ;;
21527         *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
21528     esac
21529
21530
21531 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
21532 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
21533 KLIBS="$LIBS"
21534 if test "$hesiod" != no; then
21535   KLIBS="-lhesiod $KLIBS"
21536 fi
21537 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $KLIBS"
21538 if test "$zephyr" != no; then
21539   KLIBS="-lzephyr $KLIBS"
21540 fi
21541 MR_LIBDEP='$(BUILDTOP)/lib/libmoira.la'
21542
21543
21544 LIBS="$MR_LIBDEP $KLIBS"
21545
21546
21547                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile clients/Makefile clients/lib/Makefile clients/addusr/Makefile clients/blanche/Makefile clients/chfn/Makefile clients/chpobox/Makefile clients/chsh/Makefile clients/eunice/Makefile clients/mailmaint/Makefile clients/mitch/Makefile clients/moira/Makefile clients/mrcheck/Makefile clients/mrtest/Makefile clients/stanley/Makefile clients/stella/Makefile update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"
21548 cat >confcache <<\_ACEOF
21549 # This file is a shell script that caches the results of configure
21550 # tests run on this system so they can be shared between configure
21551 # scripts and configure runs, see configure's option --config-cache.
21552 # It is not useful on other systems.  If it contains results you don't
21553 # want to keep, you may remove or edit it.
21554 #
21555 # config.status only pays attention to the cache file if you give it
21556 # the --recheck option to rerun configure.
21557 #
21558 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21559 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21560 # following values.
21561
21562 _ACEOF
21563
21564 # The following way of writing the cache mishandles newlines in values,
21565 # but we know of no workaround that is simple, portable, and efficient.
21566 # So, don't put newlines in cache variables' values.
21567 # Ultrix sh set writes to stderr and can't be redirected directly,
21568 # and sets the high bit in the cache file unless we assign to the vars.
21569 {
21570   (set) 2>&1 |
21571     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21572     *ac_space=\ *)
21573       # `set' does not quote correctly, so add quotes (double-quote
21574       # substitution turns \\\\ into \\, and sed turns \\ into \).
21575       sed -n \
21576         "s/'/'\\\\''/g;
21577           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21578       ;;
21579     *)
21580       # `set' quotes correctly as required by POSIX, so do not add quotes.
21581       sed -n \
21582         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21583       ;;
21584     esac;
21585 } |
21586   sed '
21587      t clear
21588      : clear
21589      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21590      t end
21591      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21592      : end' >>confcache
21593 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21594   if test -w $cache_file; then
21595     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21596     cat confcache >$cache_file
21597   else
21598     echo "not updating unwritable cache $cache_file"
21599   fi
21600 fi
21601 rm -f confcache
21602
21603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21604 # Let make expand exec_prefix.
21605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21606
21607 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21608 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21609 # trailing colons and then remove the whole line if VPATH becomes empty
21610 # (actually we leave an empty line to preserve line numbers).
21611 if test "x$srcdir" = x.; then
21612   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21613 s/:*\$(srcdir):*/:/;
21614 s/:*\${srcdir}:*/:/;
21615 s/:*@srcdir@:*/:/;
21616 s/^\([^=]*=[     ]*\):*/\1/;
21617 s/:*$//;
21618 s/^[^=]*=[       ]*$//;
21619 }'
21620 fi
21621
21622 # Transform confdefs.h into DEFS.
21623 # Protect against shell expansion while executing Makefile rules.
21624 # Protect against Makefile macro expansion.
21625 #
21626 # If the first sed substitution is executed (which looks for macros that
21627 # take arguments), then we branch to the quote section.  Otherwise,
21628 # look for a macro that doesn't take arguments.
21629 cat >confdef2opt.sed <<\_ACEOF
21630 t clear
21631 : clear
21632 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
21633 t quote
21634 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
21635 t quote
21636 d
21637 : quote
21638 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
21639 s,\[,\\&,g
21640 s,\],\\&,g
21641 s,\$,$$,g
21642 p
21643 _ACEOF
21644 # We use echo to avoid assuming a particular line-breaking character.
21645 # The extra dot is to prevent the shell from consuming trailing
21646 # line-breaks from the sub-command output.  A line-break within
21647 # single-quotes doesn't work because, if this script is created in a
21648 # platform that uses two characters for line-breaks (e.g., DOS), tr
21649 # would break.
21650 ac_LF_and_DOT=`echo; echo .`
21651 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21652 rm -f confdef2opt.sed
21653
21654
21655 ac_libobjs=
21656 ac_ltlibobjs=
21657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21658   # 1. Remove the extension, and $U if already installed.
21659   ac_i=`echo "$ac_i" |
21660          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21661   # 2. Add them.
21662   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21663   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21664 done
21665 LIBOBJS=$ac_libobjs
21666
21667 LTLIBOBJS=$ac_ltlibobjs
21668
21669
21670
21671 : ${CONFIG_STATUS=./config.status}
21672 ac_clean_files_save=$ac_clean_files
21673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21676 cat >$CONFIG_STATUS <<_ACEOF
21677 #! $SHELL
21678 # Generated by $as_me.
21679 # Run this file to recreate the current configuration.
21680 # Compiler output produced by configure, useful for debugging
21681 # configure, is in config.log if it exists.
21682
21683 debug=false
21684 ac_cs_recheck=false
21685 ac_cs_silent=false
21686 SHELL=\${CONFIG_SHELL-$SHELL}
21687 _ACEOF
21688
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21690 ## --------------------- ##
21691 ## M4sh Initialization.  ##
21692 ## --------------------- ##
21693
21694 # Be Bourne compatible
21695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21696   emulate sh
21697   NULLCMD=:
21698   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21699   # is contrary to our usage.  Disable this feature.
21700   alias -g '${1+"$@"}'='"$@"'
21701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21702   set -o posix
21703 fi
21704 DUALCASE=1; export DUALCASE # for MKS sh
21705
21706 # Support unset when possible.
21707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21708   as_unset=unset
21709 else
21710   as_unset=false
21711 fi
21712
21713
21714 # Work around bugs in pre-3.0 UWIN ksh.
21715 $as_unset ENV MAIL MAILPATH
21716 PS1='$ '
21717 PS2='> '
21718 PS4='+ '
21719
21720 # NLS nuisances.
21721 for as_var in \
21722   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21723   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21724   LC_TELEPHONE LC_TIME
21725 do
21726   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21727     eval $as_var=C; export $as_var
21728   else
21729     $as_unset $as_var
21730   fi
21731 done
21732
21733 # Required to use basename.
21734 if expr a : '\(a\)' >/dev/null 2>&1; then
21735   as_expr=expr
21736 else
21737   as_expr=false
21738 fi
21739
21740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21741   as_basename=basename
21742 else
21743   as_basename=false
21744 fi
21745
21746
21747 # Name of the executable.
21748 as_me=`$as_basename "$0" ||
21749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21750          X"$0" : 'X\(//\)$' \| \
21751          X"$0" : 'X\(/\)$' \| \
21752          .     : '\(.\)' 2>/dev/null ||
21753 echo X/"$0" |
21754     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21755           /^X\/\(\/\/\)$/{ s//\1/; q; }
21756           /^X\/\(\/\).*/{ s//\1/; q; }
21757           s/.*/./; q'`
21758
21759
21760 # PATH needs CR, and LINENO needs CR and PATH.
21761 # Avoid depending upon Character Ranges.
21762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21765 as_cr_digits='0123456789'
21766 as_cr_alnum=$as_cr_Letters$as_cr_digits
21767
21768 # The user is always right.
21769 if test "${PATH_SEPARATOR+set}" != set; then
21770   echo "#! /bin/sh" >conf$$.sh
21771   echo  "exit 0"   >>conf$$.sh
21772   chmod +x conf$$.sh
21773   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21774     PATH_SEPARATOR=';'
21775   else
21776     PATH_SEPARATOR=:
21777   fi
21778   rm -f conf$$.sh
21779 fi
21780
21781
21782   as_lineno_1=$LINENO
21783   as_lineno_2=$LINENO
21784   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21785   test "x$as_lineno_1" != "x$as_lineno_2" &&
21786   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21787   # Find who we are.  Look in the path if we contain no path at all
21788   # relative or not.
21789   case $0 in
21790     *[\\/]* ) as_myself=$0 ;;
21791     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792 for as_dir in $PATH
21793 do
21794   IFS=$as_save_IFS
21795   test -z "$as_dir" && as_dir=.
21796   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21797 done
21798
21799        ;;
21800   esac
21801   # We did not find ourselves, most probably we were run as `sh COMMAND'
21802   # in which case we are not to be found in the path.
21803   if test "x$as_myself" = x; then
21804     as_myself=$0
21805   fi
21806   if test ! -f "$as_myself"; then
21807     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21809    { (exit 1); exit 1; }; }
21810   fi
21811   case $CONFIG_SHELL in
21812   '')
21813     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21815 do
21816   IFS=$as_save_IFS
21817   test -z "$as_dir" && as_dir=.
21818   for as_base in sh bash ksh sh5; do
21819          case $as_dir in
21820          /*)
21821            if ("$as_dir/$as_base" -c '
21822   as_lineno_1=$LINENO
21823   as_lineno_2=$LINENO
21824   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21825   test "x$as_lineno_1" != "x$as_lineno_2" &&
21826   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21827              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21828              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21829              CONFIG_SHELL=$as_dir/$as_base
21830              export CONFIG_SHELL
21831              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21832            fi;;
21833          esac
21834        done
21835 done
21836 ;;
21837   esac
21838
21839   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840   # uniformly replaced by the line number.  The first 'sed' inserts a
21841   # line-number line before each line; the second 'sed' does the real
21842   # work.  The second script uses 'N' to pair each line-number line
21843   # with the numbered line, and appends trailing '-' during
21844   # substitution so that $LINENO is not a special case at line end.
21845   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21846   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21847   sed '=' <$as_myself |
21848     sed '
21849       N
21850       s,$,-,
21851       : loop
21852       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21853       t loop
21854       s,-$,,
21855       s,^['$as_cr_digits']*\n,,
21856     ' >$as_me.lineno &&
21857   chmod +x $as_me.lineno ||
21858     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21860    { (exit 1); exit 1; }; }
21861
21862   # Don't try to exec as it changes $[0], causing all sort of problems
21863   # (the dirname of $[0] is not the place where we might find the
21864   # original and so on.  Autoconf is especially sensible to this).
21865   . ./$as_me.lineno
21866   # Exit status is that of the last command.
21867   exit
21868 }
21869
21870
21871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21872   *c*,-n*) ECHO_N= ECHO_C='
21873 ' ECHO_T='      ' ;;
21874   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21875   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21876 esac
21877
21878 if expr a : '\(a\)' >/dev/null 2>&1; then
21879   as_expr=expr
21880 else
21881   as_expr=false
21882 fi
21883
21884 rm -f conf$$ conf$$.exe conf$$.file
21885 echo >conf$$.file
21886 if ln -s conf$$.file conf$$ 2>/dev/null; then
21887   # We could just check for DJGPP; but this test a) works b) is more generic
21888   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21889   if test -f conf$$.exe; then
21890     # Don't use ln at all; we don't have any links
21891     as_ln_s='cp -p'
21892   else
21893     as_ln_s='ln -s'
21894   fi
21895 elif ln conf$$.file conf$$ 2>/dev/null; then
21896   as_ln_s=ln
21897 else
21898   as_ln_s='cp -p'
21899 fi
21900 rm -f conf$$ conf$$.exe conf$$.file
21901
21902 if mkdir -p . 2>/dev/null; then
21903   as_mkdir_p=:
21904 else
21905   test -d ./-p && rmdir ./-p
21906   as_mkdir_p=false
21907 fi
21908
21909 as_executable_p="test -f"
21910
21911 # Sed expression to map a string onto a valid CPP name.
21912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21913
21914 # Sed expression to map a string onto a valid variable name.
21915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21916
21917
21918 # IFS
21919 # We need space, tab and new line, in precisely that order.
21920 as_nl='
21921 '
21922 IFS="   $as_nl"
21923
21924 # CDPATH.
21925 $as_unset CDPATH
21926
21927 exec 6>&1
21928
21929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21930 # report actual input values of CONFIG_FILES etc. instead of their
21931 # values after options handling.  Logging --version etc. is OK.
21932 exec 5>>config.log
21933 {
21934   echo
21935   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936 ## Running $as_me. ##
21937 _ASBOX
21938 } >&5
21939 cat >&5 <<_CSEOF
21940
21941 This file was extended by $as_me, which was
21942 generated by GNU Autoconf 2.59.  Invocation command line was
21943
21944   CONFIG_FILES    = $CONFIG_FILES
21945   CONFIG_HEADERS  = $CONFIG_HEADERS
21946   CONFIG_LINKS    = $CONFIG_LINKS
21947   CONFIG_COMMANDS = $CONFIG_COMMANDS
21948   $ $0 $@
21949
21950 _CSEOF
21951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21952 echo >&5
21953 _ACEOF
21954
21955 # Files that config.status was made for.
21956 if test -n "$ac_config_files"; then
21957   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21958 fi
21959
21960 if test -n "$ac_config_headers"; then
21961   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21962 fi
21963
21964 if test -n "$ac_config_links"; then
21965   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21966 fi
21967
21968 if test -n "$ac_config_commands"; then
21969   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21970 fi
21971
21972 cat >>$CONFIG_STATUS <<\_ACEOF
21973
21974 ac_cs_usage="\
21975 \`$as_me' instantiates files from templates according to the
21976 current configuration.
21977
21978 Usage: $0 [OPTIONS] [FILE]...
21979
21980   -h, --help       print this help, then exit
21981   -V, --version    print version number, then exit
21982   -q, --quiet      do not print progress messages
21983   -d, --debug      don't remove temporary files
21984       --recheck    update $as_me by reconfiguring in the same conditions
21985   --file=FILE[:TEMPLATE]
21986                    instantiate the configuration file FILE
21987
21988 Configuration files:
21989 $config_files
21990
21991 Report bugs to <bug-autoconf@gnu.org>."
21992 _ACEOF
21993
21994 cat >>$CONFIG_STATUS <<_ACEOF
21995 ac_cs_version="\\
21996 config.status
21997 configured by $0, generated by GNU Autoconf 2.59,
21998   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21999
22000 Copyright (C) 2003 Free Software Foundation, Inc.
22001 This config.status script is free software; the Free Software Foundation
22002 gives unlimited permission to copy, distribute and modify it."
22003 srcdir=$srcdir
22004 INSTALL="$INSTALL"
22005 _ACEOF
22006
22007 cat >>$CONFIG_STATUS <<\_ACEOF
22008 # If no file are specified by the user, then we need to provide default
22009 # value.  By we need to know if files were specified by the user.
22010 ac_need_defaults=:
22011 while test $# != 0
22012 do
22013   case $1 in
22014   --*=*)
22015     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22016     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22017     ac_shift=:
22018     ;;
22019   -*)
22020     ac_option=$1
22021     ac_optarg=$2
22022     ac_shift=shift
22023     ;;
22024   *) # This is not an option, so the user has probably given explicit
22025      # arguments.
22026      ac_option=$1
22027      ac_need_defaults=false;;
22028   esac
22029
22030   case $ac_option in
22031   # Handling of the options.
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22035     ac_cs_recheck=: ;;
22036   --version | --vers* | -V )
22037     echo "$ac_cs_version"; exit 0 ;;
22038   --he | --h)
22039     # Conflict between --help and --header
22040     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22041 Try \`$0 --help' for more information." >&5
22042 echo "$as_me: error: ambiguous option: $1
22043 Try \`$0 --help' for more information." >&2;}
22044    { (exit 1); exit 1; }; };;
22045   --help | --hel | -h )
22046     echo "$ac_cs_usage"; exit 0 ;;
22047   --debug | --d* | -d )
22048     debug=: ;;
22049   --file | --fil | --fi | --f )
22050     $ac_shift
22051     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22052     ac_need_defaults=false;;
22053   --header | --heade | --head | --hea )
22054     $ac_shift
22055     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22056     ac_need_defaults=false;;
22057   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22058   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22059     ac_cs_silent=: ;;
22060
22061   # This is an error.
22062   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22063 Try \`$0 --help' for more information." >&5
22064 echo "$as_me: error: unrecognized option: $1
22065 Try \`$0 --help' for more information." >&2;}
22066    { (exit 1); exit 1; }; } ;;
22067
22068   *) ac_config_targets="$ac_config_targets $1" ;;
22069
22070   esac
22071   shift
22072 done
22073
22074 ac_configure_extra_args=
22075
22076 if $ac_cs_silent; then
22077   exec 6>/dev/null
22078   ac_configure_extra_args="$ac_configure_extra_args --silent"
22079 fi
22080
22081 _ACEOF
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083 if \$ac_cs_recheck; then
22084   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22085   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22086 fi
22087
22088 _ACEOF
22089
22090
22091
22092
22093
22094 cat >>$CONFIG_STATUS <<\_ACEOF
22095 for ac_config_target in $ac_config_targets
22096 do
22097   case "$ac_config_target" in
22098   # Handling of arguments.
22099   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22100   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22101   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22102   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
22103   "clients/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lib/Makefile" ;;
22104   "clients/addusr/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/addusr/Makefile" ;;
22105   "clients/blanche/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/blanche/Makefile" ;;
22106   "clients/chfn/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chfn/Makefile" ;;
22107   "clients/chpobox/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chpobox/Makefile" ;;
22108   "clients/chsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chsh/Makefile" ;;
22109   "clients/eunice/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/eunice/Makefile" ;;
22110   "clients/mailmaint/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mailmaint/Makefile" ;;
22111   "clients/mitch/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mitch/Makefile" ;;
22112   "clients/moira/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/moira/Makefile" ;;
22113   "clients/mrcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrcheck/Makefile" ;;
22114   "clients/mrtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrtest/Makefile" ;;
22115   "clients/stanley/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stanley/Makefile" ;;
22116   "clients/stella/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stella/Makefile" ;;
22117   "update/Makefile" ) CONFIG_FILES="$CONFIG_FILES update/Makefile" ;;
22118   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22119   "$WEBMOIRA_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WEBMOIRA_OUTPUT_FILES" ;;
22120   "$SERVER_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $SERVER_OUTPUT_FILES" ;;
22121   "$WINAD_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WINAD_OUTPUT_FILES" ;;
22122   "$AFS_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $AFS_OUTPUT_FILES" ;;
22123   "$RSAREF_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $RSAREF_OUTPUT_FILES" ;;
22124   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22126    { (exit 1); exit 1; }; };;
22127   esac
22128 done
22129
22130 # If the user did not use the arguments to specify the items to instantiate,
22131 # then the envvar interface is used.  Set only those that are not.
22132 # We use the long form for the default assignment because of an extremely
22133 # bizarre bug on SunOS 4.1.3.
22134 if $ac_need_defaults; then
22135   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22136 fi
22137
22138 # Have a temporary directory for convenience.  Make it in the build tree
22139 # simply because there is no reason to put it here, and in addition,
22140 # creating and moving files from /tmp can sometimes cause problems.
22141 # Create a temporary directory, and hook for its removal unless debugging.
22142 $debug ||
22143 {
22144   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22145   trap '{ (exit 1); exit 1; }' 1 2 13 15
22146 }
22147
22148 # Create a (secure) tmp directory for tmp files.
22149
22150 {
22151   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22152   test -n "$tmp" && test -d "$tmp"
22153 }  ||
22154 {
22155   tmp=./confstat$$-$RANDOM
22156   (umask 077 && mkdir $tmp)
22157 } ||
22158 {
22159    echo "$me: cannot create a temporary directory in ." >&2
22160    { (exit 1); exit 1; }
22161 }
22162
22163 _ACEOF
22164
22165 cat >>$CONFIG_STATUS <<_ACEOF
22166
22167 #
22168 # CONFIG_FILES section.
22169 #
22170
22171 # No need to generate the scripts if there are no CONFIG_FILES.
22172 # This happens for instance when ./config.status config.h
22173 if test -n "\$CONFIG_FILES"; then
22174   # Protect against being on the right side of a sed subst in config.status.
22175   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22176    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22177 s,@SHELL@,$SHELL,;t t
22178 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22179 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22180 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22181 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22182 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22183 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22184 s,@exec_prefix@,$exec_prefix,;t t
22185 s,@prefix@,$prefix,;t t
22186 s,@program_transform_name@,$program_transform_name,;t t
22187 s,@bindir@,$bindir,;t t
22188 s,@sbindir@,$sbindir,;t t
22189 s,@libexecdir@,$libexecdir,;t t
22190 s,@datadir@,$datadir,;t t
22191 s,@sysconfdir@,$sysconfdir,;t t
22192 s,@sharedstatedir@,$sharedstatedir,;t t
22193 s,@localstatedir@,$localstatedir,;t t
22194 s,@libdir@,$libdir,;t t
22195 s,@includedir@,$includedir,;t t
22196 s,@oldincludedir@,$oldincludedir,;t t
22197 s,@infodir@,$infodir,;t t
22198 s,@mandir@,$mandir,;t t
22199 s,@build_alias@,$build_alias,;t t
22200 s,@host_alias@,$host_alias,;t t
22201 s,@target_alias@,$target_alias,;t t
22202 s,@DEFS@,$DEFS,;t t
22203 s,@ECHO_C@,$ECHO_C,;t t
22204 s,@ECHO_N@,$ECHO_N,;t t
22205 s,@ECHO_T@,$ECHO_T,;t t
22206 s,@LIBS@,$LIBS,;t t
22207 s,@build@,$build,;t t
22208 s,@build_cpu@,$build_cpu,;t t
22209 s,@build_vendor@,$build_vendor,;t t
22210 s,@build_os@,$build_os,;t t
22211 s,@host@,$host,;t t
22212 s,@host_cpu@,$host_cpu,;t t
22213 s,@host_vendor@,$host_vendor,;t t
22214 s,@host_os@,$host_os,;t t
22215 s,@SO_LDFLAGS@,$SO_LDFLAGS,;t t
22216 s,@CC@,$CC,;t t
22217 s,@CFLAGS@,$CFLAGS,;t t
22218 s,@LDFLAGS@,$LDFLAGS,;t t
22219 s,@CPPFLAGS@,$CPPFLAGS,;t t
22220 s,@ac_ct_CC@,$ac_ct_CC,;t t
22221 s,@EXEEXT@,$EXEEXT,;t t
22222 s,@OBJEXT@,$OBJEXT,;t t
22223 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22224 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22225 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22226 s,@RANLIB@,$RANLIB,;t t
22227 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22228 s,@EGREP@,$EGREP,;t t
22229 s,@LN_S@,$LN_S,;t t
22230 s,@ECHO@,$ECHO,;t t
22231 s,@AR@,$AR,;t t
22232 s,@ac_ct_AR@,$ac_ct_AR,;t t
22233 s,@STRIP@,$STRIP,;t t
22234 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22235 s,@CPP@,$CPP,;t t
22236 s,@CXX@,$CXX,;t t
22237 s,@CXXFLAGS@,$CXXFLAGS,;t t
22238 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22239 s,@CXXCPP@,$CXXCPP,;t t
22240 s,@F77@,$F77,;t t
22241 s,@FFLAGS@,$FFLAGS,;t t
22242 s,@ac_ct_F77@,$ac_ct_F77,;t t
22243 s,@LIBTOOL@,$LIBTOOL,;t t
22244 s,@SET_MAKE@,$SET_MAKE,;t t
22245 s,@mrbindir@,$mrbindir,;t t
22246 s,@subdirs@,$subdirs,;t t
22247 s,@COM_ERR_SUBDIR@,$COM_ERR_SUBDIR,;t t
22248 s,@COMPILE_ET@,$COMPILE_ET,;t t
22249 s,@REG_SVR_DEFS@,$REG_SVR_DEFS,;t t
22250 s,@REG_SVR_INCLUDES@,$REG_SVR_INCLUDES,;t t
22251 s,@REG_SVR_LIBS@,$REG_SVR_LIBS,;t t
22252 s,@RSAREF_CPPFLAGS@,$RSAREF_CPPFLAGS,;t t
22253 s,@RSAREF_LIBS@,$RSAREF_LIBS,;t t
22254 s,@RSAREF_SUBDIRS@,$RSAREF_SUBDIRS,;t t
22255 s,@RSAREF_LIBDEP@,$RSAREF_LIBDEP,;t t
22256 s,@PRO_C@,$PRO_C,;t t
22257 s,@PRO_C_DEFS@,$PRO_C_DEFS,;t t
22258 s,@PRO_C_INCLUDES@,$PRO_C_INCLUDES,;t t
22259 s,@PRO_C_OPTS@,$PRO_C_OPTS,;t t
22260 s,@SQL_LIBS@,$SQL_LIBS,;t t
22261 s,@SVRSUBDIRS@,$SVRSUBDIRS,;t t
22262 s,@JAVA_CPPFLAGS@,$JAVA_CPPFLAGS,;t t
22263 s,@WEBMOIRA_SUBDIRS@,$WEBMOIRA_SUBDIRS,;t t
22264 s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
22265 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
22266 s,@WINAD_SUBDIRS@,$WINAD_SUBDIRS,;t t
22267 s,@AFS_CPPFLAGS@,$AFS_CPPFLAGS,;t t
22268 s,@AFS_PRO_C_INCLUDES@,$AFS_PRO_C_INCLUDES,;t t
22269 s,@AFS_LIBS@,$AFS_LIBS,;t t
22270 s,@AFS_DIR@,$AFS_DIR,;t t
22271 s,@AFS_SUBDIRS@,$AFS_SUBDIRS,;t t
22272 s,@AFS_SYNCDIR@,$AFS_SYNCDIR,;t t
22273 s,@READLINE_CPPFLAGS@,$READLINE_CPPFLAGS,;t t
22274 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
22275 s,@CURSES_CPPFLAGS@,$CURSES_CPPFLAGS,;t t
22276 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
22277 s,@CURSES_SUBDIRS@,$CURSES_SUBDIRS,;t t
22278 s,@MR_LIBDEP@,$MR_LIBDEP,;t t
22279 s,@KLIBS@,$KLIBS,;t t
22280 s,@LIBOBJS@,$LIBOBJS,;t t
22281 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22282 CEOF
22283
22284 _ACEOF
22285
22286   cat >>$CONFIG_STATUS <<\_ACEOF
22287   # Split the substitutions into bite-sized pieces for seds with
22288   # small command number limits, like on Digital OSF/1 and HP-UX.
22289   ac_max_sed_lines=48
22290   ac_sed_frag=1 # Number of current file.
22291   ac_beg=1 # First line for current file.
22292   ac_end=$ac_max_sed_lines # Line after last line for current file.
22293   ac_more_lines=:
22294   ac_sed_cmds=
22295   while $ac_more_lines; do
22296     if test $ac_beg -gt 1; then
22297       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22298     else
22299       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22300     fi
22301     if test ! -s $tmp/subs.frag; then
22302       ac_more_lines=false
22303     else
22304       # The purpose of the label and of the branching condition is to
22305       # speed up the sed processing (if there are no `@' at all, there
22306       # is no need to browse any of the substitutions).
22307       # These are the two extra sed commands mentioned above.
22308       (echo ':t
22309   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22310       if test -z "$ac_sed_cmds"; then
22311         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22312       else
22313         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22314       fi
22315       ac_sed_frag=`expr $ac_sed_frag + 1`
22316       ac_beg=$ac_end
22317       ac_end=`expr $ac_end + $ac_max_sed_lines`
22318     fi
22319   done
22320   if test -z "$ac_sed_cmds"; then
22321     ac_sed_cmds=cat
22322   fi
22323 fi # test -n "$CONFIG_FILES"
22324
22325 _ACEOF
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22328   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22329   case $ac_file in
22330   - | *:- | *:-:* ) # input from stdin
22331         cat >$tmp/stdin
22332         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22333         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22334   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22335         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22336   * )   ac_file_in=$ac_file.in ;;
22337   esac
22338
22339   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22340   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22342          X"$ac_file" : 'X\(//\)[^/]' \| \
22343          X"$ac_file" : 'X\(//\)$' \| \
22344          X"$ac_file" : 'X\(/\)' \| \
22345          .     : '\(.\)' 2>/dev/null ||
22346 echo X"$ac_file" |
22347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22349           /^X\(\/\/\)$/{ s//\1/; q; }
22350           /^X\(\/\).*/{ s//\1/; q; }
22351           s/.*/./; q'`
22352   { if $as_mkdir_p; then
22353     mkdir -p "$ac_dir"
22354   else
22355     as_dir="$ac_dir"
22356     as_dirs=
22357     while test ! -d "$as_dir"; do
22358       as_dirs="$as_dir $as_dirs"
22359       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22361          X"$as_dir" : 'X\(//\)[^/]' \| \
22362          X"$as_dir" : 'X\(//\)$' \| \
22363          X"$as_dir" : 'X\(/\)' \| \
22364          .     : '\(.\)' 2>/dev/null ||
22365 echo X"$as_dir" |
22366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22368           /^X\(\/\/\)$/{ s//\1/; q; }
22369           /^X\(\/\).*/{ s//\1/; q; }
22370           s/.*/./; q'`
22371     done
22372     test ! -n "$as_dirs" || mkdir $as_dirs
22373   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22375    { (exit 1); exit 1; }; }; }
22376
22377   ac_builddir=.
22378
22379 if test "$ac_dir" != .; then
22380   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22381   # A "../" for each directory in $ac_dir_suffix.
22382   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22383 else
22384   ac_dir_suffix= ac_top_builddir=
22385 fi
22386
22387 case $srcdir in
22388   .)  # No --srcdir option.  We are building in place.
22389     ac_srcdir=.
22390     if test -z "$ac_top_builddir"; then
22391        ac_top_srcdir=.
22392     else
22393        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22394     fi ;;
22395   [\\/]* | ?:[\\/]* )  # Absolute path.
22396     ac_srcdir=$srcdir$ac_dir_suffix;
22397     ac_top_srcdir=$srcdir ;;
22398   *) # Relative path.
22399     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22400     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22401 esac
22402
22403 # Do not use `cd foo && pwd` to compute absolute paths, because
22404 # the directories may not exist.
22405 case `pwd` in
22406 .) ac_abs_builddir="$ac_dir";;
22407 *)
22408   case "$ac_dir" in
22409   .) ac_abs_builddir=`pwd`;;
22410   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22411   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22412   esac;;
22413 esac
22414 case $ac_abs_builddir in
22415 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22416 *)
22417   case ${ac_top_builddir}. in
22418   .) ac_abs_top_builddir=$ac_abs_builddir;;
22419   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22420   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22421   esac;;
22422 esac
22423 case $ac_abs_builddir in
22424 .) ac_abs_srcdir=$ac_srcdir;;
22425 *)
22426   case $ac_srcdir in
22427   .) ac_abs_srcdir=$ac_abs_builddir;;
22428   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22429   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22430   esac;;
22431 esac
22432 case $ac_abs_builddir in
22433 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22434 *)
22435   case $ac_top_srcdir in
22436   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22437   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22438   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22439   esac;;
22440 esac
22441
22442
22443   case $INSTALL in
22444   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22445   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22446   esac
22447
22448   if test x"$ac_file" != x-; then
22449     { echo "$as_me:$LINENO: creating $ac_file" >&5
22450 echo "$as_me: creating $ac_file" >&6;}
22451     rm -f "$ac_file"
22452   fi
22453   # Let's still pretend it is `configure' which instantiates (i.e., don't
22454   # use $as_me), people would be surprised to read:
22455   #    /* config.h.  Generated by config.status.  */
22456   if test x"$ac_file" = x-; then
22457     configure_input=
22458   else
22459     configure_input="$ac_file.  "
22460   fi
22461   configure_input=$configure_input"Generated from `echo $ac_file_in |
22462                                      sed 's,.*/,,'` by configure."
22463
22464   # First look for the input files in the build tree, otherwise in the
22465   # src tree.
22466   ac_file_inputs=`IFS=:
22467     for f in $ac_file_in; do
22468       case $f in
22469       -) echo $tmp/stdin ;;
22470       [\\/$]*)
22471          # Absolute (can't be DOS-style, as IFS=:)
22472          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22473 echo "$as_me: error: cannot find input file: $f" >&2;}
22474    { (exit 1); exit 1; }; }
22475          echo "$f";;
22476       *) # Relative
22477          if test -f "$f"; then
22478            # Build tree
22479            echo "$f"
22480          elif test -f "$srcdir/$f"; then
22481            # Source tree
22482            echo "$srcdir/$f"
22483          else
22484            # /dev/null tree
22485            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22486 echo "$as_me: error: cannot find input file: $f" >&2;}
22487    { (exit 1); exit 1; }; }
22488          fi;;
22489       esac
22490     done` || { (exit 1); exit 1; }
22491 _ACEOF
22492 cat >>$CONFIG_STATUS <<_ACEOF
22493   sed "$ac_vpsub
22494 $extrasub
22495 _ACEOF
22496 cat >>$CONFIG_STATUS <<\_ACEOF
22497 :t
22498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22499 s,@configure_input@,$configure_input,;t t
22500 s,@srcdir@,$ac_srcdir,;t t
22501 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22502 s,@top_srcdir@,$ac_top_srcdir,;t t
22503 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22504 s,@builddir@,$ac_builddir,;t t
22505 s,@abs_builddir@,$ac_abs_builddir,;t t
22506 s,@top_builddir@,$ac_top_builddir,;t t
22507 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22508 s,@INSTALL@,$ac_INSTALL,;t t
22509 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22510   rm -f $tmp/stdin
22511   if test x"$ac_file" != x-; then
22512     mv $tmp/out $ac_file
22513   else
22514     cat $tmp/out
22515     rm -f $tmp/out
22516   fi
22517
22518 done
22519 _ACEOF
22520
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522
22523 { (exit 0); exit 0; }
22524 _ACEOF
22525 chmod +x $CONFIG_STATUS
22526 ac_clean_files=$ac_clean_files_save
22527
22528
22529 # configure is writing to config.log, and then calls config.status.
22530 # config.status does its own redirection, appending to config.log.
22531 # Unfortunately, on DOS this fails, as config.log is still kept open
22532 # by configure, so config.status won't be able to write to it; its
22533 # output is simply discarded.  So we exec the FD to /dev/null,
22534 # effectively closing config.log, so it can be properly (re)opened and
22535 # appended to by config.status.  When coming back to configure, we
22536 # need to make the FD available again.
22537 if test "$no_create" != yes; then
22538   ac_cs_success=:
22539   ac_config_status_args=
22540   test "$silent" = yes &&
22541     ac_config_status_args="$ac_config_status_args --quiet"
22542   exec 5>/dev/null
22543   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22544   exec 5>>config.log
22545   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22546   # would make configure fail if this is the last instruction.
22547   $ac_cs_success || { (exit 1); exit 1; }
22548 fi
22549
22550 #
22551 # CONFIG_SUBDIRS section.
22552 #
22553 if test "$no_recursion" != yes; then
22554
22555   # Remove --cache-file and --srcdir arguments so they do not pile up.
22556   ac_sub_configure_args=
22557   ac_prev=
22558   for ac_arg in $ac_configure_args; do
22559     if test -n "$ac_prev"; then
22560       ac_prev=
22561       continue
22562     fi
22563     case $ac_arg in
22564     -cache-file | --cache-file | --cache-fil | --cache-fi \
22565     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22566       ac_prev=cache_file ;;
22567     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22568     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22569     | --c=*)
22570       ;;
22571     --config-cache | -C)
22572       ;;
22573     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22574       ac_prev=srcdir ;;
22575     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22576       ;;
22577     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22578       ac_prev=prefix ;;
22579     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22580       ;;
22581     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22582     esac
22583   done
22584
22585   # Always prepend --prefix to ensure using the same prefix
22586   # in subdir configurations.
22587   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22588
22589   ac_popdir=`pwd`
22590   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22591
22592     # Do not complain, so a configure script can configure whichever
22593     # parts of a large source tree are present.
22594     test -d $srcdir/$ac_dir || continue
22595
22596     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22597 echo "$as_me: configuring in $ac_dir" >&6;}
22598     { if $as_mkdir_p; then
22599     mkdir -p "$ac_dir"
22600   else
22601     as_dir="$ac_dir"
22602     as_dirs=
22603     while test ! -d "$as_dir"; do
22604       as_dirs="$as_dir $as_dirs"
22605       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22607          X"$as_dir" : 'X\(//\)[^/]' \| \
22608          X"$as_dir" : 'X\(//\)$' \| \
22609          X"$as_dir" : 'X\(/\)' \| \
22610          .     : '\(.\)' 2>/dev/null ||
22611 echo X"$as_dir" |
22612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22613           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22614           /^X\(\/\/\)$/{ s//\1/; q; }
22615           /^X\(\/\).*/{ s//\1/; q; }
22616           s/.*/./; q'`
22617     done
22618     test ! -n "$as_dirs" || mkdir $as_dirs
22619   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22620 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22621    { (exit 1); exit 1; }; }; }
22622
22623     ac_builddir=.
22624
22625 if test "$ac_dir" != .; then
22626   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22627   # A "../" for each directory in $ac_dir_suffix.
22628   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22629 else
22630   ac_dir_suffix= ac_top_builddir=
22631 fi
22632
22633 case $srcdir in
22634   .)  # No --srcdir option.  We are building in place.
22635     ac_srcdir=.
22636     if test -z "$ac_top_builddir"; then
22637        ac_top_srcdir=.
22638     else
22639        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22640     fi ;;
22641   [\\/]* | ?:[\\/]* )  # Absolute path.
22642     ac_srcdir=$srcdir$ac_dir_suffix;
22643     ac_top_srcdir=$srcdir ;;
22644   *) # Relative path.
22645     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22646     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22647 esac
22648
22649 # Do not use `cd foo && pwd` to compute absolute paths, because
22650 # the directories may not exist.
22651 case `pwd` in
22652 .) ac_abs_builddir="$ac_dir";;
22653 *)
22654   case "$ac_dir" in
22655   .) ac_abs_builddir=`pwd`;;
22656   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22657   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22658   esac;;
22659 esac
22660 case $ac_abs_builddir in
22661 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22662 *)
22663   case ${ac_top_builddir}. in
22664   .) ac_abs_top_builddir=$ac_abs_builddir;;
22665   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22666   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22667   esac;;
22668 esac
22669 case $ac_abs_builddir in
22670 .) ac_abs_srcdir=$ac_srcdir;;
22671 *)
22672   case $ac_srcdir in
22673   .) ac_abs_srcdir=$ac_abs_builddir;;
22674   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22675   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22676   esac;;
22677 esac
22678 case $ac_abs_builddir in
22679 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22680 *)
22681   case $ac_top_srcdir in
22682   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22683   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22684   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22685   esac;;
22686 esac
22687
22688
22689     cd $ac_dir
22690
22691     # Check for guested configure; otherwise get Cygnus style configure.
22692     if test -f $ac_srcdir/configure.gnu; then
22693       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22694     elif test -f $ac_srcdir/configure; then
22695       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22696     elif test -f $ac_srcdir/configure.in; then
22697       ac_sub_configure=$ac_configure
22698     else
22699       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22700 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22701       ac_sub_configure=
22702     fi
22703
22704     # The recursion is here.
22705     if test -n "$ac_sub_configure"; then
22706       # Make the cache file name correct relative to the subdirectory.
22707       case $cache_file in
22708       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22709       *) # Relative path.
22710         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
22711       esac
22712
22713       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22714 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22715       # The eval makes quoting arguments work.
22716       eval $ac_sub_configure $ac_sub_configure_args \
22717            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22718         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22719 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22720    { (exit 1); exit 1; }; }
22721     fi
22722
22723     cd $ac_popdir
22724   done
22725 fi
22726
This page took 1.653309 seconds and 5 git commands to generate.